diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 922f7d4c0..98baa1ffb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,13 +9,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🗒️ - uses: actions/checkout@v3 + uses: actions/checkout@v4 ## install node and dependancies - uses: actions/setup-node@v3 name: Setup Node.js with: - node-version: '18.x' + node-version: '20.x' - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff44995ad..78d565ff5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-node@v3 name: Setup Node.js with: - node-version: '18.x' + node-version: '20.x' - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index d7d476378..36775b3ba 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -7,12 +7,12 @@ jobs: interaction-and-accessibility: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 ## install node and dependancies - uses: actions/setup-node@v3 name: Setup Node.js with: - node-version: '18.x' + node-version: '20.x' - uses: pnpm/action-setup@v2 name: Install pnpm diff --git a/dist/Flex-3dc5ee69.mjs b/dist/Flex-ad3a4da0.mjs similarity index 71% rename from dist/Flex-3dc5ee69.mjs rename to dist/Flex-ad3a4da0.mjs index 7c7ecb595..456e88456 100644 --- a/dist/Flex-3dc5ee69.mjs +++ b/dist/Flex-ad3a4da0.mjs @@ -1,11 +1,11 @@ import * as U from "react"; -import It, { createContext as Cr, forwardRef as At, createElement as ir, Fragment as ku, useContext as ft, useLayoutEffect as Ds, useEffect as Fe, useState as Ye, useRef as be, useMemo as gt, useReducer as _0, useCallback as q, useInsertionEffect as ym, useId as _r, cloneElement as Ka, Children as Ms, isValidElement as Eu, PureComponent as k0 } from "react"; -import { createPortal as xm } from "react-dom"; +import It, { createContext as Cr, forwardRef as At, createElement as ir, Fragment as wu, useContext as ft, useLayoutEffect as $s, useEffect as Fe, useState as Ye, useRef as be, useMemo as gt, useReducer as S0, useCallback as q, useInsertionEffect as bm, useId as _r, cloneElement as Ka, Children as Ds, isValidElement as Cu, PureComponent as w0 } from "react"; +import { createPortal as ym } from "react-dom"; var yi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function Is(e) { +function Ms(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } -function Fs(e) { +function Is(e) { if (e.__esModule) return e; var t = e.default; @@ -32,7 +32,7 @@ function Fs(e) { }); }), r; } -var Ec = { exports: {} }, Yo = {}; +var _c = { exports: {} }, qo = {}; /** * @license React * react-jsx-runtime.production.min.js @@ -42,11 +42,11 @@ var Ec = { exports: {} }, Yo = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var qd; -function E0() { - if (qd) - return Yo; - qd = 1; +var Yd; +function C0() { + if (Yd) + return qo; + Yd = 1; var e = It, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 }; function i(s, l, c) { var u, d = {}, f = null, p = null; @@ -58,9 +58,9 @@ function E0() { d[u] === void 0 && (d[u] = l[u]); return { $$typeof: t, type: s, key: f, ref: p, props: d, _owner: o.current }; } - return Yo.Fragment = r, Yo.jsx = i, Yo.jsxs = i, Yo; + return qo.Fragment = r, qo.jsx = i, qo.jsxs = i, qo; } -var qo = {}; +var Go = {}; /** * @license React * react-jsx-runtime.development.js @@ -70,9 +70,9 @@ var qo = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var Gd; -function P0() { - return Gd || (Gd = 1, process.env.NODE_ENV !== "production" && function() { +var qd; +function _0() { + return qd || (qd = 1, process.env.NODE_ENV !== "production" && function() { var e = It, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, h = "@@iterator"; function v(x) { if (x === null || typeof x != "object") @@ -90,18 +90,18 @@ function P0() { } function S(x, W, K) { { - var me = b.ReactDebugCurrentFrame, De = me.getStackAddendum(); - De !== "" && (W += "%s", K = K.concat([De])); - var Oe = K.map(function(Pe) { + var me = b.ReactDebugCurrentFrame, Me = me.getStackAddendum(); + Me !== "" && (W += "%s", K = K.concat([Me])); + var Re = K.map(function(Pe) { return String(Pe); }); - Oe.unshift("Warning: " + W), Function.prototype.apply.call(console[x], console, Oe); + Re.unshift("Warning: " + W), Function.prototype.apply.call(console[x], console, Re); } } - var k = !1, w = !1, M = !1, P = !1, I = !1, z; + var _ = !1, w = !1, M = !1, P = !1, I = !1, z; z = Symbol.for("react.module.reference"); function j(x) { - return !!(typeof x == "string" || typeof x == "function" || x === n || x === a || I || x === o || x === c || x === u || P || x === p || k || w || M || typeof x == "object" && x !== null && (x.$$typeof === f || x.$$typeof === d || x.$$typeof === i || x.$$typeof === s || x.$$typeof === l || // This needs to include all possible module reference object + return !!(typeof x == "string" || typeof x == "function" || x === n || x === a || I || x === o || x === c || x === u || P || x === p || _ || w || M || typeof x == "object" && x !== null && (x.$$typeof === f || x.$$typeof === d || x.$$typeof === i || x.$$typeof === s || x.$$typeof === l || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. @@ -111,8 +111,8 @@ function P0() { var me = x.displayName; if (me) return me; - var De = W.displayName || W.name || ""; - return De !== "" ? K + "(" + De + ")" : K; + var Me = W.displayName || W.name || ""; + return Me !== "" ? K + "(" + Me + ")" : K; } function ne(x) { return x.displayName || "Context"; @@ -152,9 +152,9 @@ function P0() { var me = x.displayName || null; return me !== null ? me : J(x.type) || "Memo"; case f: { - var De = x, Oe = De._payload, Pe = De._init; + var Me = x, Re = Me._payload, Pe = Me._init; try { - return J(Pe(Oe)); + return J(Pe(Re)); } catch { return null; } @@ -166,7 +166,7 @@ function P0() { function T() { } T.__reactDisabledLog = !0; - function O() { + function A() { { if (ee === 0) { oe = console.log, D = console.info, ce = console.warn, fe = console.error, F = console.group, N = console.groupCollapsed, V = console.groupEnd; @@ -225,13 +225,13 @@ function P0() { } } var C = b.ReactCurrentDispatcher, H; - function A(x, W, K) { + function O(x, W, K) { { if (H === void 0) try { throw Error(); - } catch (De) { - var me = De.stack.trim().match(/\n( *(at )?)/); + } catch (Me) { + var me = Me.stack.trim().match(/\n( *(at )?)/); H = me && me[1] || ""; } return ` @@ -243,7 +243,7 @@ function P0() { var ae = typeof WeakMap == "function" ? WeakMap : Map; Y = new ae(); } - function $(x, W) { + function R(x, W) { if (!x || Z) return ""; { @@ -253,10 +253,10 @@ function P0() { } var me; Z = !0; - var De = Error.prepareStackTrace; + var Me = Error.prepareStackTrace; Error.prepareStackTrace = void 0; - var Oe; - Oe = C.current, C.current = null, O(); + var Re; + Re = C.current, C.current = null, A(); try { if (W) { var Pe = function() { @@ -309,13 +309,13 @@ function P0() { } } } finally { - Z = !1, C.current = Oe, B(), Error.prepareStackTrace = De; + Z = !1, C.current = Re, B(), Error.prepareStackTrace = Me; } - var Pr = x ? x.displayName || x.name : "", hi = Pr ? A(Pr) : ""; + var Pr = x ? x.displayName || x.name : "", hi = Pr ? O(Pr) : ""; return typeof x == "function" && Y.set(x, hi), hi; } function Se(x, W, K) { - return $(x, !1); + return R(x, !1); } function he(x) { var W = x.prototype; @@ -325,14 +325,14 @@ function P0() { if (x == null) return ""; if (typeof x == "function") - return $(x, he(x)); + return R(x, he(x)); if (typeof x == "string") - return A(x); + return O(x); switch (x) { case c: - return A("Suspense"); + return O("Suspense"); case u: - return A("SuspenseList"); + return O("SuspenseList"); } if (typeof x == "object") switch (x.$$typeof) { @@ -341,16 +341,16 @@ function P0() { case d: return le(x.type, W, K); case f: { - var me = x, De = me._payload, Oe = me._init; + var me = x, Me = me._payload, Re = me._init; try { - return le(Oe(De), W, K); + return le(Re(Me), W, K); } catch { } } } return ""; } - var Re = Object.prototype.hasOwnProperty, ye = {}, we = b.ReactDebugCurrentFrame; + var De = Object.prototype.hasOwnProperty, ye = {}, we = b.ReactDebugCurrentFrame; function ht(x) { if (x) { var W = x._owner, K = le(x.type, x._source, W ? W.type : null); @@ -358,11 +358,11 @@ function P0() { } else we.setExtraStackFrame(null); } - function ke(x, W, K, me, De) { + function ke(x, W, K, me, Me) { { - var Oe = Function.call.bind(Re); + var Re = Function.call.bind(De); for (var Pe in x) - if (Oe(x, Pe)) { + if (Re(x, Pe)) { var Ee = void 0; try { if (typeof x[Pe] != "function") { @@ -373,7 +373,7 @@ function P0() { } catch (ot) { Ee = ot; } - Ee && !(Ee instanceof Error) && (ht(De), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", me || "React class", K, Pe, typeof Ee), ht(null)), Ee instanceof Error && !(Ee.message in ye) && (ye[Ee.message] = !0, ht(De), y("Failed %s type: %s", K, Ee.message), ht(null)); + Ee && !(Ee instanceof Error) && (ht(Me), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", me || "React class", K, Pe, typeof Ee), ht(null)), Ee instanceof Error && !(Ee.message in ye) && (ye[Ee.message] = !0, ht(Me), y("Failed %s type: %s", K, Ee.message), ht(null)); } } } @@ -381,7 +381,7 @@ function P0() { function rt(x) { return dt(x); } - function Me(x) { + function Ie(x) { { var W = typeof Symbol == "function" && Symbol.toStringTag, K = W && x[Symbol.toStringTag] || x.constructor.name || "Object"; return K; @@ -389,27 +389,27 @@ function P0() { } function se(x) { try { - return Ae(x), !1; + return Oe(x), !1; } catch { return !0; } } - function Ae(x) { + function Oe(x) { return "" + x; } function Ot(x) { if (se(x)) - return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(x)), Ae(x); + return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(x)), Oe(x); } var xt = b.ReactCurrentOwner, lt = { key: !0, ref: !0, __self: !0, __source: !0 - }, zr, Vr, Lr; - Lr = {}; + }, Vr, Lr, Wr; + Wr = {}; function te(x) { - if (Re.call(x, "ref")) { + if (De.call(x, "ref")) { var W = Object.getOwnPropertyDescriptor(x, "ref").get; if (W && W.isReactWarning) return !1; @@ -417,7 +417,7 @@ function P0() { return x.ref !== void 0; } function ve(x) { - if (Re.call(x, "key")) { + if (De.call(x, "key")) { var W = Object.getOwnPropertyDescriptor(x, "key").get; if (W && W.isReactWarning) return !1; @@ -427,13 +427,13 @@ function P0() { function kr(x, W) { if (typeof x.ref == "string" && xt.current && W && xt.current.stateNode !== W) { var K = J(xt.current.type); - Lr[K] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', J(xt.current.type), x.ref), Lr[K] = !0); + Wr[K] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', J(xt.current.type), x.ref), Wr[K] = !0); } } function G(x, W) { { var K = function() { - zr || (zr = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W)); + Vr || (Vr = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W)); }; K.isReactWarning = !0, Object.defineProperty(x, "key", { get: K, @@ -444,7 +444,7 @@ function P0() { function ie(x, W) { { var K = function() { - Vr || (Vr = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W)); + Lr || (Lr = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W)); }; K.isReactWarning = !0, Object.defineProperty(x, "ref", { get: K, @@ -452,7 +452,7 @@ function P0() { }); } } - var xe = function(x, W, K, me, De, Oe, Pe) { + var xe = function(x, W, K, me, Me, Re, Pe) { var Ee = { // This tag allows us to uniquely identify this as a React Element $$typeof: t, @@ -462,7 +462,7 @@ function P0() { ref: K, props: Pe, // Record the component responsible for creating this element. - _owner: Oe + _owner: Re }; return Ee._store = {}, Object.defineProperty(Ee._store, "validated", { configurable: !1, @@ -478,25 +478,25 @@ function P0() { configurable: !1, enumerable: !1, writable: !1, - value: De + value: Me }), Object.freeze && (Object.freeze(Ee.props), Object.freeze(Ee)), Ee; }; - function Ce(x, W, K, me, De) { + function Ce(x, W, K, me, Me) { { - var Oe, Pe = {}, Ee = null, Ct = null; - K !== void 0 && (Ot(K), Ee = "" + K), ve(W) && (Ot(W.key), Ee = "" + W.key), te(W) && (Ct = W.ref, kr(W, De)); - for (Oe in W) - Re.call(W, Oe) && !lt.hasOwnProperty(Oe) && (Pe[Oe] = W[Oe]); + var Re, Pe = {}, Ee = null, Ct = null; + K !== void 0 && (Ot(K), Ee = "" + K), ve(W) && (Ot(W.key), Ee = "" + W.key), te(W) && (Ct = W.ref, kr(W, Me)); + for (Re in W) + De.call(W, Re) && !lt.hasOwnProperty(Re) && (Pe[Re] = W[Re]); if (x && x.defaultProps) { var ot = x.defaultProps; - for (Oe in ot) - Pe[Oe] === void 0 && (Pe[Oe] = ot[Oe]); + for (Re in ot) + Pe[Re] === void 0 && (Pe[Re] = ot[Re]); } if (Ee || Ct) { var ct = typeof x == "function" ? x.displayName || x.name || "Unknown" : x; Ee && G(Pe, ct), Ct && ie(Pe, ct); } - return xe(x, Ee, Ct, De, me, xt.current, Pe); + return xe(x, Ee, Ct, Me, me, xt.current, Pe); } } var He = b.ReactCurrentOwner, wt = b.ReactDebugCurrentFrame; @@ -509,7 +509,7 @@ function P0() { } var nt; nt = !1; - function Wr(x) { + function Ur(x) { return typeof x == "object" && x !== null && x.$$typeof === t; } function Er() { @@ -524,7 +524,7 @@ Check the render method of \`` + x + "`."; return ""; } } - function dl(x) { + function cl(x) { { if (x !== void 0) { var W = x.fileName.replace(/^.*[\\\/]/, ""), K = x.lineNumber; @@ -536,7 +536,7 @@ Check your code at ` + W + ":" + K + "."; } } var ui = {}; - function fl(x) { + function ul(x) { { var W = Er(); if (!W) { @@ -553,7 +553,7 @@ Check the top-level render call using <` + K + ">."); if (!x._store || x._store.validated || x.key != null) return; x._store.validated = !0; - var K = fl(W); + var K = ul(W); if (ui[K]) return; ui[K] = !0; @@ -568,15 +568,15 @@ Check the top-level render call using <` + K + ">."); if (rt(x)) for (var K = 0; K < x.length; K++) { var me = x[K]; - Wr(me) && di(me, W); + Ur(me) && di(me, W); } - else if (Wr(x)) + else if (Ur(x)) x._store && (x._store.validated = !0); else if (x) { - var De = v(x); - if (typeof De == "function" && De !== x.entries) - for (var Oe = De.call(x), Pe; !(Pe = Oe.next()).done; ) - Wr(Pe.value) && di(Pe.value, W); + var Me = v(x); + if (typeof Me == "function" && Me !== x.entries) + for (var Re = Me.call(x), Pe; !(Pe = Re.next()).done; ) + Ur(Pe.value) && di(Pe.value, W); } } } @@ -599,13 +599,13 @@ Check the top-level render call using <` + K + ">."); ke(K, x.props, "prop", me, x); } else if (W.PropTypes !== void 0 && !nt) { nt = !0; - var De = J(W); - y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", De || "Unknown"); + var Me = J(W); + y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Me || "Unknown"); } typeof W.getDefaultProps == "function" && !W.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } - function pl(x) { + function dl(x) { { for (var W = Object.keys(x.props), K = 0; K < W.length; K++) { var me = W[K]; @@ -617,18 +617,18 @@ Check the top-level render call using <` + K + ">."); x.ref !== null && (Ze(x), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null)); } } - function pi(x, W, K, me, De, Oe) { + function pi(x, W, K, me, Me, Re) { { var Pe = j(x); if (!Pe) { var Ee = ""; (x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (Ee += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); - var Ct = dl(De); + var Ct = cl(Me); Ct ? Ee += Ct : Ee += Er(); var ot; x === null ? ot = "null" : rt(x) ? ot = "array" : x !== void 0 && x.$$typeof === t ? (ot = "<" + (J(x.type) || "Unknown") + " />", Ee = " Did you accidentally export a JSX literal instead of a component?") : ot = typeof x, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ot, Ee); } - var ct = Ce(x, W, K, De, Oe); + var ct = Ce(x, W, K, Me, Re); if (ct == null) return ct; if (Pe) { @@ -644,89 +644,97 @@ Check the top-level render call using <` + K + ">."); else fi(jt, x); } - return x === n ? pl(ct) : fr(ct), ct; + return x === n ? dl(ct) : fr(ct), ct; } } - function hl(x, W, K) { + function fl(x, W, K) { return pi(x, W, K, !0); } - function ml(x, W, K) { + function pl(x, W, K) { return pi(x, W, K, !1); } - var vl = ml, sn = hl; - qo.Fragment = n, qo.jsx = vl, qo.jsxs = sn; - }()), qo; + var hl = pl, ln = fl; + Go.Fragment = n, Go.jsx = hl, Go.jsxs = ln; + }()), Go; } -process.env.NODE_ENV === "production" ? Ec.exports = E0() : Ec.exports = P0(); -var L = Ec.exports, ka = {}; -function Ea(e) { +process.env.NODE_ENV === "production" ? _c.exports = C0() : _c.exports = _0(); +var L = _c.exports, Pa = {}; +function Ta(e) { "@babel/helpers - typeof"; - return Ea = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { + return Ta = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; - }, Ea(e); + }, Ta(e); } -function T0(e, t) { - if (Ea(e) !== "object" || e === null) +function k0(e, t) { + if (Ta(e) !== "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t || "default"); - if (Ea(n) !== "object") + if (Ta(n) !== "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } -function A0(e) { - var t = T0(e, "string"); - return Ea(t) === "symbol" ? t : String(t); +function E0(e) { + var t = k0(e, "string"); + return Ta(t) === "symbol" ? t : String(t); } -function Sm(e, t, r) { - return t = A0(t), t in e ? Object.defineProperty(e, t, { +function _u(e, t, r) { + return t = E0(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } -function wm(e) { +function xm(e) { var t = {}; return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } -var O0 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Cm = wm( +var P0 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Sm = xm( function(e) { - return O0.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; + return P0.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ); -function $0(e) { +function kc(e, t) { + return kc = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) { + return n.__proto__ = o, n; + }, kc(e, t); +} +function T0(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, kc(e, t); +} +function A0(e) { if (e.sheet) return e.sheet; for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t]; } -function R0(e) { +function O0(e) { var t = document.createElement("style"); return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t; } -var D0 = /* @__PURE__ */ function() { +var R0 = /* @__PURE__ */ function() { function e(r) { this.isSpeedy = r.speedy === void 0 ? process.env.NODE_ENV === "production" : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.before = null; } var t = e.prototype; return t.insert = function(n) { if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) { - var o = R0(this), a; + var o = O0(this), a; this.tags.length === 0 ? a = this.before : a = this.tags[this.tags.length - 1].nextSibling, this.container.insertBefore(o, a), this.tags.push(o); } var i = this.tags[this.tags.length - 1]; if (this.isSpeedy) { - var s = $0(i); + var s = A0(i); try { var l = n.charCodeAt(1) === 105 && n.charCodeAt(0) === 64; s.insertRule( @@ -754,12 +762,12 @@ var D0 = /* @__PURE__ */ function() { }), this.tags = [], this.ctr = 0; }, e; }(); -function M0(e) { - function t(V, T, O, B, C) { - for (var H = 0, A = 0, Z = 0, Y = 0, ae, $, Se = 0, he = 0, le, Re = le = ae = 0, ye = 0, we = 0, ht = 0, ke = 0, dt = O.length, rt = dt - 1, Me, se = "", Ae = "", Ot = "", xt = "", lt; ye < dt; ) { - if ($ = O.charCodeAt(ye), ye === rt && A + Y + Z + H !== 0 && (A !== 0 && ($ = A === 47 ? 10 : 47), Y = Z = H = 0, dt++, rt++), A + Y + Z + H === 0) { +function $0(e) { + function t(V, T, A, B, C) { + for (var H = 0, O = 0, Z = 0, Y = 0, ae, R, Se = 0, he = 0, le, De = le = ae = 0, ye = 0, we = 0, ht = 0, ke = 0, dt = A.length, rt = dt - 1, Ie, se = "", Oe = "", Ot = "", xt = "", lt; ye < dt; ) { + if (R = A.charCodeAt(ye), ye === rt && O + Y + Z + H !== 0 && (O !== 0 && (R = O === 47 ? 10 : 47), Y = Z = H = 0, dt++, rt++), O + Y + Z + H === 0) { if (ye === rt && (0 < we && (se = se.replace(f, "")), 0 < se.trim().length)) { - switch ($) { + switch (R) { case 32: case 9: case 59: @@ -767,14 +775,14 @@ function M0(e) { case 10: break; default: - se += O.charAt(ye); + se += A.charAt(ye); } - $ = 59; + R = 59; } - switch ($) { + switch (R) { case 123: for (se = se.trim(), ae = se.charCodeAt(0), le = 1, ke = ++ye; ye < dt; ) { - switch ($ = O.charCodeAt(ye)) { + switch (R = A.charCodeAt(ye)) { case 123: le++; break; @@ -782,44 +790,44 @@ function M0(e) { le--; break; case 47: - switch ($ = O.charCodeAt(ye + 1)) { + switch (R = A.charCodeAt(ye + 1)) { case 42: case 47: e: { - for (Re = ye + 1; Re < rt; ++Re) - switch (O.charCodeAt(Re)) { + for (De = ye + 1; De < rt; ++De) + switch (A.charCodeAt(De)) { case 47: - if ($ === 42 && O.charCodeAt(Re - 1) === 42 && ye + 2 !== Re) { - ye = Re + 1; + if (R === 42 && A.charCodeAt(De - 1) === 42 && ye + 2 !== De) { + ye = De + 1; break e; } break; case 10: - if ($ === 47) { - ye = Re + 1; + if (R === 47) { + ye = De + 1; break e; } } - ye = Re; + ye = De; } } break; case 91: - $++; + R++; case 40: - $++; + R++; case 34: case 39: - for (; ye++ < rt && O.charCodeAt(ye) !== $; ) + for (; ye++ < rt && A.charCodeAt(ye) !== R; ) ; } if (le === 0) break; ye++; } - switch (le = O.substring(ke, ye), ae === 0 && (ae = (se = se.replace(d, "").trim()).charCodeAt(0)), ae) { + switch (le = A.substring(ke, ye), ae === 0 && (ae = (se = se.replace(d, "").trim()).charCodeAt(0)), ae) { case 64: - switch (0 < we && (se = se.replace(f, "")), $ = se.charCodeAt(1), $) { + switch (0 < we && (se = se.replace(f, "")), R = se.charCodeAt(1), R) { case 100: case 109: case 115: @@ -829,8 +837,8 @@ function M0(e) { default: we = oe; } - if (le = t(T, we, le, $, C + 1), ke = le.length, 0 < ce && (we = r(oe, se, ht), lt = s(3, le, we, T, J, ne, ke, $, C, B), se = we.join(""), lt !== void 0 && (ke = (le = lt.trim()).length) === 0 && ($ = 0, le = "")), 0 < ke) - switch ($) { + if (le = t(T, we, le, R, C + 1), ke = le.length, 0 < ce && (we = r(oe, se, ht), lt = s(3, le, we, T, J, ne, ke, R, C, B), se = we.join(""), lt !== void 0 && (ke = (le = lt.trim()).length) === 0 && (R = 0, le = "")), 0 < ke) + switch (R) { case 115: se = se.replace(M, i); case 100: @@ -842,7 +850,7 @@ function M0(e) { se = se.replace(y, "$1 $2"), le = se + "{" + le + "}", le = ee === 1 || ee === 2 && a("@" + le, 3) ? "@-webkit-" + le + "@" + le : "@" + le; break; default: - le = se + le, B === 112 && (le = (Ae += le, "")); + le = se + le, B === 112 && (le = (Oe += le, "")); } else le = ""; @@ -850,94 +858,94 @@ function M0(e) { default: le = t(T, r(T, se, ht), le, B, C + 1); } - Ot += le, le = ht = we = Re = ae = 0, se = "", $ = O.charCodeAt(++ye); + Ot += le, le = ht = we = De = ae = 0, se = "", R = A.charCodeAt(++ye); break; case 125: case 59: if (se = (0 < we ? se.replace(f, "") : se).trim(), 1 < (ke = se.length)) - switch (Re === 0 && (ae = se.charCodeAt(0), ae === 45 || 96 < ae && 123 > ae) && (ke = (se = se.replace(" ", ":")).length), 0 < ce && (lt = s(1, se, T, V, J, ne, Ae.length, B, C, B)) !== void 0 && (ke = (se = lt.trim()).length) === 0 && (se = "\0\0"), ae = se.charCodeAt(0), $ = se.charCodeAt(1), ae) { + switch (De === 0 && (ae = se.charCodeAt(0), ae === 45 || 96 < ae && 123 > ae) && (ke = (se = se.replace(" ", ":")).length), 0 < ce && (lt = s(1, se, T, V, J, ne, Oe.length, B, C, B)) !== void 0 && (ke = (se = lt.trim()).length) === 0 && (se = "\0\0"), ae = se.charCodeAt(0), R = se.charCodeAt(1), ae) { case 0: break; case 64: - if ($ === 105 || $ === 99) { - xt += se + O.charAt(ye); + if (R === 105 || R === 99) { + xt += se + A.charAt(ye); break; } default: - se.charCodeAt(ke - 1) !== 58 && (Ae += o(se, ae, $, se.charCodeAt(2))); + se.charCodeAt(ke - 1) !== 58 && (Oe += o(se, ae, R, se.charCodeAt(2))); } - ht = we = Re = ae = 0, se = "", $ = O.charCodeAt(++ye); + ht = we = De = ae = 0, se = "", R = A.charCodeAt(++ye); } } - switch ($) { + switch (R) { case 13: case 10: - A === 47 ? A = 0 : 1 + ae === 0 && B !== 107 && 0 < se.length && (we = 1, se += "\0"), 0 < ce * F && s(0, se, T, V, J, ne, Ae.length, B, C, B), ne = 1, J++; + O === 47 ? O = 0 : 1 + ae === 0 && B !== 107 && 0 < se.length && (we = 1, se += "\0"), 0 < ce * F && s(0, se, T, V, J, ne, Oe.length, B, C, B), ne = 1, J++; break; case 59: case 125: - if (A + Y + Z + H === 0) { + if (O + Y + Z + H === 0) { ne++; break; } default: - switch (ne++, Me = O.charAt(ye), $) { + switch (ne++, Ie = A.charAt(ye), R) { case 9: case 32: - if (Y + H + A === 0) + if (Y + H + O === 0) switch (Se) { case 44: case 58: case 9: case 32: - Me = ""; + Ie = ""; break; default: - $ !== 32 && (Me = " "); + R !== 32 && (Ie = " "); } break; case 0: - Me = "\\0"; + Ie = "\\0"; break; case 12: - Me = "\\f"; + Ie = "\\f"; break; case 11: - Me = "\\v"; + Ie = "\\v"; break; case 38: - Y + A + H === 0 && (we = ht = 1, Me = "\f" + Me); + Y + O + H === 0 && (we = ht = 1, Ie = "\f" + Ie); break; case 108: - if (Y + A + H + Q === 0 && 0 < Re) - switch (ye - Re) { + if (Y + O + H + Q === 0 && 0 < De) + switch (ye - De) { case 2: - Se === 112 && O.charCodeAt(ye - 3) === 58 && (Q = Se); + Se === 112 && A.charCodeAt(ye - 3) === 58 && (Q = Se); case 8: he === 111 && (Q = he); } break; case 58: - Y + A + H === 0 && (Re = ye); + Y + O + H === 0 && (De = ye); break; case 44: - A + Z + Y + H === 0 && (we = 1, Me += "\r"); + O + Z + Y + H === 0 && (we = 1, Ie += "\r"); break; case 34: case 39: - A === 0 && (Y = Y === $ ? 0 : Y === 0 ? $ : Y); + O === 0 && (Y = Y === R ? 0 : Y === 0 ? R : Y); break; case 91: - Y + A + Z === 0 && H++; + Y + O + Z === 0 && H++; break; case 93: - Y + A + Z === 0 && H--; + Y + O + Z === 0 && H--; break; case 41: - Y + A + H === 0 && Z--; + Y + O + H === 0 && Z--; break; case 40: - if (Y + A + H === 0) { + if (Y + O + H === 0) { if (ae === 0) switch (2 * Se + 3 * he) { case 533: @@ -949,65 +957,65 @@ function M0(e) { } break; case 64: - A + Z + Y + H + Re + le === 0 && (le = 1); + O + Z + Y + H + De + le === 0 && (le = 1); break; case 42: case 47: if (!(0 < Y + H + Z)) - switch (A) { + switch (O) { case 0: - switch (2 * $ + 3 * O.charCodeAt(ye + 1)) { + switch (2 * R + 3 * A.charCodeAt(ye + 1)) { case 235: - A = 47; + O = 47; break; case 220: - ke = ye, A = 42; + ke = ye, O = 42; } break; case 42: - $ === 47 && Se === 42 && ke + 2 !== ye && (O.charCodeAt(ke + 2) === 33 && (Ae += O.substring(ke, ye + 1)), Me = "", A = 0); + R === 47 && Se === 42 && ke + 2 !== ye && (A.charCodeAt(ke + 2) === 33 && (Oe += A.substring(ke, ye + 1)), Ie = "", O = 0); } } - A === 0 && (se += Me); + O === 0 && (se += Ie); } - he = Se, Se = $, ye++; + he = Se, Se = R, ye++; } - if (ke = Ae.length, 0 < ke) { - if (we = T, 0 < ce && (lt = s(2, Ae, we, V, J, ne, ke, B, C, B), lt !== void 0 && (Ae = lt).length === 0)) - return xt + Ae + Ot; - if (Ae = we.join(",") + "{" + Ae + "}", ee * Q !== 0) { - switch (ee !== 2 || a(Ae, 2) || (Q = 0), Q) { + if (ke = Oe.length, 0 < ke) { + if (we = T, 0 < ce && (lt = s(2, Oe, we, V, J, ne, ke, B, C, B), lt !== void 0 && (Oe = lt).length === 0)) + return xt + Oe + Ot; + if (Oe = we.join(",") + "{" + Oe + "}", ee * Q !== 0) { + switch (ee !== 2 || a(Oe, 2) || (Q = 0), Q) { case 111: - Ae = Ae.replace(k, ":-moz-$1") + Ae; + Oe = Oe.replace(_, ":-moz-$1") + Oe; break; case 112: - Ae = Ae.replace(S, "::-webkit-input-$1") + Ae.replace(S, "::-moz-$1") + Ae.replace(S, ":-ms-input-$1") + Ae; + Oe = Oe.replace(S, "::-webkit-input-$1") + Oe.replace(S, "::-moz-$1") + Oe.replace(S, ":-ms-input-$1") + Oe; } Q = 0; } } - return xt + Ae + Ot; + return xt + Oe + Ot; } - function r(V, T, O) { + function r(V, T, A) { var B = T.trim().split(v); T = B; var C = B.length, H = V.length; switch (H) { case 0: case 1: - var A = 0; - for (V = H === 0 ? "" : V[0] + " "; A < C; ++A) - T[A] = n(V, T[A], O).trim(); + var O = 0; + for (V = H === 0 ? "" : V[0] + " "; O < C; ++O) + T[O] = n(V, T[O], A).trim(); break; default: - var Z = A = 0; - for (T = []; A < C; ++A) + var Z = O = 0; + for (T = []; O < C; ++O) for (var Y = 0; Y < H; ++Y) - T[Z++] = n(V[Y] + " ", B[A], O).trim(); + T[Z++] = n(V[Y] + " ", B[O], A).trim(); } return T; } - function n(V, T, O) { + function n(V, T, A) { var B = T.charCodeAt(0); switch (33 > B && (B = (T = T.trim()).charCodeAt(0)), B) { case 38: @@ -1015,17 +1023,17 @@ function M0(e) { case 58: return V.trim() + T.replace(b, "$1" + V.trim()); default: - if (0 < 1 * O && 0 < T.indexOf("\f")) + if (0 < 1 * A && 0 < T.indexOf("\f")) return T.replace(b, (V.charCodeAt(0) === 58 ? "" : "$1") + V.trim()); } return V + T; } - function o(V, T, O, B) { - var C = V + ";", H = 2 * T + 3 * O + 4 * B; + function o(V, T, A, B) { + var C = V + ";", H = 2 * T + 3 * A + 4 * B; if (H === 944) { V = C.indexOf(":", 9) + 1; - var A = C.substring(V, C.length - 1).trim(); - return A = C.substring(0, V).trim() + A + ";", ee === 1 || ee === 2 && a(A, 1) ? "-webkit-" + A + A : A; + var O = C.substring(V, C.length - 1).trim(); + return O = C.substring(0, V).trim() + O + ";", ee === 1 || ee === 2 && a(O, 1) ? "-webkit-" + O + O : O; } if (ee === 0 || ee === 2 && !a(C, 1)) return C; @@ -1069,45 +1077,45 @@ function M0(e) { case 1023: if (C.charCodeAt(8) !== 99) break; - return A = C.substring(C.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + A + "-webkit-" + C + "-ms-flex-pack" + A + C; + return O = C.substring(C.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + O + "-webkit-" + C + "-ms-flex-pack" + O + C; case 1005: return m.test(C) ? C.replace(p, ":-webkit-") + C.replace(p, ":-moz-") + C : C; case 1e3: - switch (A = C.substring(13).trim(), T = A.indexOf("-") + 1, A.charCodeAt(0) + A.charCodeAt(T)) { + switch (O = C.substring(13).trim(), T = O.indexOf("-") + 1, O.charCodeAt(0) + O.charCodeAt(T)) { case 226: - A = C.replace(w, "tb"); + O = C.replace(w, "tb"); break; case 232: - A = C.replace(w, "tb-rl"); + O = C.replace(w, "tb-rl"); break; case 220: - A = C.replace(w, "lr"); + O = C.replace(w, "lr"); break; default: return C; } - return "-webkit-" + C + "-ms-" + A + C; + return "-webkit-" + C + "-ms-" + O + C; case 1017: if (C.indexOf("sticky", 9) === -1) break; case 975: - switch (T = (C = V).length - 10, A = (C.charCodeAt(T) === 33 ? C.substring(0, T) : C).substring(V.indexOf(":", 7) + 1).trim(), H = A.charCodeAt(0) + (A.charCodeAt(7) | 0)) { + switch (T = (C = V).length - 10, O = (C.charCodeAt(T) === 33 ? C.substring(0, T) : C).substring(V.indexOf(":", 7) + 1).trim(), H = O.charCodeAt(0) + (O.charCodeAt(7) | 0)) { case 203: - if (111 > A.charCodeAt(8)) + if (111 > O.charCodeAt(8)) break; case 115: - C = C.replace(A, "-webkit-" + A) + ";" + C; + C = C.replace(O, "-webkit-" + O) + ";" + C; break; case 207: case 102: - C = C.replace(A, "-webkit-" + (102 < H ? "inline-" : "") + "box") + ";" + C.replace(A, "-webkit-" + A) + ";" + C.replace(A, "-ms-" + A + "box") + ";" + C; + C = C.replace(O, "-webkit-" + (102 < H ? "inline-" : "") + "box") + ";" + C.replace(O, "-webkit-" + O) + ";" + C.replace(O, "-ms-" + O + "box") + ";" + C; } return C + ";"; case 938: if (C.charCodeAt(5) === 45) switch (C.charCodeAt(6)) { case 105: - return A = C.replace("-items", ""), "-webkit-" + C + "-webkit-box-" + A + "-ms-flex-" + A + C; + return O = C.replace("-items", ""), "-webkit-" + C + "-webkit-box-" + O + "-ms-flex-" + O + C; case 115: return "-webkit-" + C + "-ms-flex-item-" + C.replace(I, "") + C; default: @@ -1121,25 +1129,25 @@ function M0(e) { case 931: case 953: if (j.test(V) === !0) - return (A = V.substring(V.indexOf(":") + 1)).charCodeAt(0) === 115 ? o(V.replace("stretch", "fill-available"), T, O, B).replace(":fill-available", ":stretch") : C.replace(A, "-webkit-" + A) + C.replace(A, "-moz-" + A.replace("fill-", "")) + C; + return (O = V.substring(V.indexOf(":") + 1)).charCodeAt(0) === 115 ? o(V.replace("stretch", "fill-available"), T, A, B).replace(":fill-available", ":stretch") : C.replace(O, "-webkit-" + O) + C.replace(O, "-moz-" + O.replace("fill-", "")) + C; break; case 962: - if (C = "-webkit-" + C + (C.charCodeAt(5) === 102 ? "-ms-" + C : "") + C, O + B === 211 && C.charCodeAt(13) === 105 && 0 < C.indexOf("transform", 10)) + if (C = "-webkit-" + C + (C.charCodeAt(5) === 102 ? "-ms-" + C : "") + C, A + B === 211 && C.charCodeAt(13) === 105 && 0 < C.indexOf("transform", 10)) return C.substring(0, C.indexOf(";", 27) + 1).replace(h, "$1-webkit-$2") + C; } return C; } function a(V, T) { - var O = V.indexOf(T === 1 ? ":" : "{"), B = V.substring(0, T !== 3 ? O : 10); - return O = V.substring(O + 1, V.length - 1), fe(T !== 2 ? B : B.replace(z, "$1"), O, T); + var A = V.indexOf(T === 1 ? ":" : "{"), B = V.substring(0, T !== 3 ? A : 10); + return A = V.substring(A + 1, V.length - 1), fe(T !== 2 ? B : B.replace(z, "$1"), A, T); } function i(V, T) { - var O = o(T, T.charCodeAt(0), T.charCodeAt(1), T.charCodeAt(2)); - return O !== T + ";" ? O.replace(P, " or ($1)").substring(4) : "(" + T + ")"; + var A = o(T, T.charCodeAt(0), T.charCodeAt(1), T.charCodeAt(2)); + return A !== T + ";" ? A.replace(P, " or ($1)").substring(4) : "(" + T + ")"; } - function s(V, T, O, B, C, H, A, Z, Y, ae) { - for (var $ = 0, Se = T, he; $ < ce; ++$) - switch (he = D[$].call(u, V, Se, O, B, C, H, A, Z, Y, ae)) { + function s(V, T, A, B, C, H, O, Z, Y, ae) { + for (var R = 0, Se = T, he; R < ce; ++R) + switch (he = D[R].call(u, V, Se, A, B, C, H, O, Z, Y, ae)) { case void 0: case !1: case !0: @@ -1161,7 +1169,7 @@ function M0(e) { if (typeof V == "function") D[ce++] = V; else if (typeof V == "object") - for (var T = 0, O = V.length; T < O; ++T) + for (var T = 0, A = V.length; T < A; ++T) l(V[T]); else F = !!V | 0; @@ -1172,18 +1180,18 @@ function M0(e) { return V = V.prefix, V !== void 0 && (fe = null, V ? typeof V != "function" ? ee = 1 : (ee = 2, fe = V) : ee = 0), c; } function u(V, T) { - var O = V; - if (33 > O.charCodeAt(0) && (O = O.trim()), N = O, O = [N], 0 < ce) { - var B = s(-1, T, O, O, J, ne, 0, 0, 0, 0); + var A = V; + if (33 > A.charCodeAt(0) && (A = A.trim()), N = A, A = [N], 0 < ce) { + var B = s(-1, T, A, A, J, ne, 0, 0, 0, 0); B !== void 0 && typeof B == "string" && (T = B); } - var C = t(oe, O, T, 0, 0); - return 0 < ce && (B = s(-2, C, O, O, J, ne, C.length, 0, 0, 0), B !== void 0 && (C = B)), N = "", Q = 0, ne = J = 1, C; + var C = t(oe, A, T, 0, 0); + return 0 < ce && (B = s(-2, C, A, A, J, ne, C.length, 0, 0, 0), B !== void 0 && (C = B)), N = "", Q = 0, ne = J = 1, C; } - var d = /^\0+/g, f = /[\0\r\f]/g, p = /: */g, m = /zoo|gra/, h = /([,: ])(transform)/g, v = /,\r+?/g, b = /([\t\r\n ])*\f?&/g, y = /@(k\w+)\s*(\S*)\s*/, S = /::(place)/g, k = /:(read-only)/g, w = /[svh]\w+-[tblr]{2}/, M = /\(\s*(.*)\s*\)/g, P = /([\s\S]*?);/g, I = /-self|flex-/g, z = /[^]*?(:[rp][el]a[\w-]+)[^]*/, j = /stretch|:\s*\w+\-(?:conte|avail)/, X = /([^-])(image-set\()/, ne = 1, J = 1, Q = 0, ee = 1, oe = [], D = [], ce = 0, fe = null, F = 0, N = ""; + var d = /^\0+/g, f = /[\0\r\f]/g, p = /: */g, m = /zoo|gra/, h = /([,: ])(transform)/g, v = /,\r+?/g, b = /([\t\r\n ])*\f?&/g, y = /@(k\w+)\s*(\S*)\s*/, S = /::(place)/g, _ = /:(read-only)/g, w = /[svh]\w+-[tblr]{2}/, M = /\(\s*(.*)\s*\)/g, P = /([\s\S]*?);/g, I = /-self|flex-/g, z = /[^]*?(:[rp][el]a[\w-]+)[^]*/, j = /stretch|:\s*\w+\-(?:conte|avail)/, X = /([^-])(image-set\()/, ne = 1, J = 1, Q = 0, ee = 1, oe = [], D = [], ce = 0, fe = null, F = 0, N = ""; return u.use = l, u.set = c, e !== void 0 && c(e), u; } -var Xd = function(t) { +var Gd = function(t) { var r = /* @__PURE__ */ new WeakMap(); return function(n) { if (r.has(n)) @@ -1191,18 +1199,18 @@ var Xd = function(t) { var o = t(n); return r.set(n, o), o; }; -}, Pc = "/*|*/", I0 = Pc + "}"; -function F0(e) { - e && Pa.current.insert(e + "}"); +}, Ec = "/*|*/", D0 = Ec + "}"; +function M0(e) { + e && Aa.current.insert(e + "}"); } -var Pa = { +var Aa = { current: null -}, N0 = function(t, r, n, o, a, i, s, l, c, u) { +}, I0 = function(t, r, n, o, a, i, s, l, c, u) { switch (t) { case 1: { switch (r.charCodeAt(0)) { case 64: - return Pa.current.insert(r + ";"), ""; + return Aa.current.insert(r + ";"), ""; case 108: if (r.charCodeAt(2) === 98) return ""; @@ -1211,27 +1219,27 @@ var Pa = { } case 2: { if (l === 0) - return r + Pc; + return r + Ec; break; } case 3: switch (l) { case 102: case 112: - return Pa.current.insert(n[0] + r), ""; + return Aa.current.insert(n[0] + r), ""; default: - return r + (u === 0 ? Pc : ""); + return r + (u === 0 ? Ec : ""); } case -2: - r.split(I0).forEach(F0); + r.split(D0).forEach(M0); } -}, j0 = function(t) { +}, F0 = function(t) { t === void 0 && (t = {}); var r = t.key || "css", n; t.prefix !== void 0 && (n = { prefix: t.prefix }); - var o = new M0(n); + var o = new $0(n); if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r)) throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed'); var a = {}, i; @@ -1246,13 +1254,13 @@ var Pa = { }); } var l; - if (o.use(t.stylisPlugins)(N0), l = function(p, m, h, v) { + if (o.use(t.stylisPlugins)(I0), l = function(p, m, h, v) { var b = m.name; - if (Pa.current = h, process.env.NODE_ENV !== "production" && m.map !== void 0) { + if (Aa.current = h, process.env.NODE_ENV !== "production" && m.map !== void 0) { var y = m.map; - Pa.current = { - insert: function(k) { - h.insert(k + y); + Aa.current = { + insert: function(_) { + h.insert(_ + y); } }; } @@ -1288,7 +1296,7 @@ var Pa = { } var d = { key: r, - sheet: new D0({ + sheet: new R0({ key: r, container: i, nonce: t.nonce, @@ -1300,14 +1308,14 @@ var Pa = { insert: l }; return d; -}, B0 = !0; -function _m(e, t, r) { +}, N0 = !0; +function wm(e, t, r) { var n = ""; return r.split(" ").forEach(function(o) { e[o] !== void 0 ? t.push(e[o]) : n += o + " "; }), n; } -var km = function(t, r, n) { +var Cm = function(t, r, n) { var o = t.key + "-" + r.name; if ( // we only need to add the styles to the registered cache if the @@ -1319,7 +1327,7 @@ var km = function(t, r, n) { // in node since emotion-server relies on whether a style is in // the registered cache to know whether a style is global or not // also, note that this check will be dead code eliminated in the browser - B0 === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles), t.inserted[r.name] === void 0 + N0 === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles), t.inserted[r.name] === void 0 ) { var a = r; do @@ -1327,7 +1335,7 @@ var km = function(t, r, n) { while (a !== void 0); } }; -function z0(e) { +function j0(e) { for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4) r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */ @@ -1346,7 +1354,7 @@ function z0(e) { return t ^= t >>> 13, t = /* Math.imul(h, m): */ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36); } -var V0 = { +var B0 = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, @@ -1393,21 +1401,21 @@ var V0 = { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, Kd = `You have illegal escape sequence in your template literal, most likely inside content's property value. +}, Xd = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, L0 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", W0 = /[A-Z]|^ms/g, Em = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Pu = function(t) { +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, z0 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", V0 = /[A-Z]|^ms/g, _m = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ku = function(t) { return t.charCodeAt(1) === 45; -}, Zd = function(t) { +}, Kd = function(t) { return t != null && typeof t != "boolean"; -}, El = wm(function(e) { - return Pu(e) ? e : e.replace(W0, "-$&").toLowerCase(); +}, _l = xm(function(e) { + return ku(e) ? e : e.replace(V0, "-$&").toLowerCase(); }), ss = function(t, r) { switch (t) { case "animation": case "animationName": if (typeof r == "string") - return r.replace(Em, function(n, o, a) { + return r.replace(_m, function(n, o, a) { return vr = { name: o, styles: a, @@ -1415,20 +1423,20 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter }, o; }); } - return V0[t] !== 1 && !Pu(t) && typeof r == "number" && r !== 0 ? r + "px" : r; + return B0[t] !== 1 && !ku(t) && typeof r == "number" && r !== 0 ? r + "px" : r; }; if (process.env.NODE_ENV !== "production") { - var U0 = /(attr|calc|counters?|url)\(/, H0 = ["normal", "none", "counter", "open-quote", "close-quote", "no-open-quote", "no-close-quote", "initial", "inherit", "unset"], Y0 = ss, q0 = /^-ms-/, G0 = /-(.)/g, Jd = {}; + var L0 = /(attr|calc|counters?|url)\(/, W0 = ["normal", "none", "counter", "open-quote", "close-quote", "no-open-quote", "no-close-quote", "initial", "inherit", "unset"], U0 = ss, H0 = /^-ms-/, Y0 = /-(.)/g, Zd = {}; ss = function(t, r) { - t === "content" && (typeof r != "string" || H0.indexOf(r) === -1 && !U0.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`"); - var n = Y0(t, r); - return n !== "" && !Pu(t) && t.indexOf("-") !== -1 && Jd[t] === void 0 && (Jd[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(q0, "ms-").replace(G0, function(o, a) { + t === "content" && (typeof r != "string" || W0.indexOf(r) === -1 && !L0.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`"); + var n = U0(t, r); + return n !== "" && !ku(t) && t.indexOf("-") !== -1 && Zd[t] === void 0 && (Zd[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(H0, "ms-").replace(Y0, function(o, a) { return a.toUpperCase(); }) + "?")), n; }; } -var Qd = !0; -function Ta(e, t, r, n) { +var Jd = !0; +function Oa(e, t, r, n) { if (r == null) return ""; if (r.__emotion_styles !== void 0) { @@ -1458,19 +1466,19 @@ function Ta(e, t, r, n) { var a = r.styles + ";"; return process.env.NODE_ENV !== "production" && r.map !== void 0 && (a += r.map), a; } - return X0(e, t, r); + return q0(e, t, r); } case "function": { if (e !== void 0) { var i = vr, s = r(e); - return vr = i, Ta(e, t, s, n); + return vr = i, Oa(e, t, s, n); } else process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"); break; } case "string": if (process.env.NODE_ENV !== "production") { - var l = [], c = r.replace(Em, function(d, f, p) { + var l = [], c = r.replace(_m, function(d, f, p) { var m = "animation" + l.length; return l.push("const " + m + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + m + "}"; }); @@ -1486,59 +1494,59 @@ You should wrap it with \`css\` like this: if (t == null) return r; var u = t[r]; - return process.env.NODE_ENV !== "production" && n && Qd && u !== void 0 && (console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"), Qd = !1), u !== void 0 && !n ? u : r; + return process.env.NODE_ENV !== "production" && n && Jd && u !== void 0 && (console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"), Jd = !1), u !== void 0 && !n ? u : r; } -function X0(e, t, r) { +function q0(e, t, r) { var n = ""; if (Array.isArray(r)) for (var o = 0; o < r.length; o++) - n += Ta(e, t, r[o], !1); + n += Oa(e, t, r[o], !1); else for (var a in r) { var i = r[a]; if (typeof i != "object") - t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Zd(i) && (n += El(a) + ":" + ss(a, i) + ";"); + t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Kd(i) && (n += _l(a) + ":" + ss(a, i) + ";"); else { if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production") throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion."); if (Array.isArray(i) && typeof i[0] == "string" && (t == null || t[i[0]] === void 0)) for (var s = 0; s < i.length; s++) - Zd(i[s]) && (n += El(a) + ":" + ss(a, i[s]) + ";"); + Kd(i[s]) && (n += _l(a) + ":" + ss(a, i[s]) + ";"); else { - var l = Ta(e, t, i, !1); + var l = Oa(e, t, i, !1); switch (a) { case "animation": case "animationName": { - n += El(a) + ":" + l + ";"; + n += _l(a) + ":" + l + ";"; break; } default: - process.env.NODE_ENV !== "production" && a === "undefined" && console.error(L0), n += a + "{" + l + "}"; + process.env.NODE_ENV !== "production" && a === "undefined" && console.error(z0), n += a + "{" + l + "}"; } } } } return n; } -var ef = /label:\s*([^\s;\n{]+)\s*;/g, Pm; -process.env.NODE_ENV !== "production" && (Pm = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//); -var vr, Tc = function(t, r, n) { +var Qd = /label:\s*([^\s;\n{]+)\s*;/g, km; +process.env.NODE_ENV !== "production" && (km = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//); +var vr, Pc = function(t, r, n) { if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0) return t[0]; var o = !0, a = ""; vr = void 0; var i = t[0]; - i == null || i.raw === void 0 ? (o = !1, a += Ta(n, r, i, !1)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Kd), a += i[0]); + i == null || i.raw === void 0 ? (o = !1, a += Oa(n, r, i, !1)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Xd), a += i[0]); for (var s = 1; s < t.length; s++) - a += Ta(n, r, t[s], a.charCodeAt(a.length - 1) === 46), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Kd), a += i[s]); + a += Oa(n, r, t[s], a.charCodeAt(a.length - 1) === 46), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Xd), a += i[s]); var l; - process.env.NODE_ENV !== "production" && (a = a.replace(Pm, function(f) { + process.env.NODE_ENV !== "production" && (a = a.replace(km, function(f) { return l = f, ""; - })), ef.lastIndex = 0; - for (var c = "", u; (u = ef.exec(a)) !== null; ) + })), Qd.lastIndex = 0; + for (var c = "", u; (u = Qd.exec(a)) !== null; ) c += "-" + // $FlowFixMe we know it's not null u[1]; - var d = z0(a) + c; + var d = j0(a) + c; return process.env.NODE_ENV !== "production" ? { name: d, styles: a, @@ -1552,57 +1560,57 @@ var vr, Tc = function(t, r, n) { styles: a, next: vr }; -}, K0 = Object.prototype.hasOwnProperty, Tm = /* @__PURE__ */ Cr( +}, G0 = Object.prototype.hasOwnProperty, Em = /* @__PURE__ */ Cr( // we're doing this to avoid preconstruct's dead code elimination in this one case // because this module is primarily intended for the browser and node // but it's also required in react native and similar environments sometimes // and we could have a special build just for that // but this is much easier and the native packages // might use a different theme context in the future anyway - typeof HTMLElement < "u" ? j0() : null -), Aa = /* @__PURE__ */ Cr({}); -Tm.Provider; -var Am = function(t) { + typeof HTMLElement < "u" ? F0() : null +), Ra = /* @__PURE__ */ Cr({}); +Em.Provider; +var Pm = function(t) { var r = function(o, a) { - return /* @__PURE__ */ ir(Tm.Consumer, null, function(i) { + return /* @__PURE__ */ ir(Em.Consumer, null, function(i) { return t(o, i, a); }); }; return /* @__PURE__ */ At(r); -}, tf = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", rf = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Z0 = function() { +}, ef = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", tf = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", X0 = function() { return null; -}, nf = function(t, r, n, o) { +}, rf = function(t, r, n, o) { var a = n === null ? r.css : r.css(n); typeof a == "string" && t.registered[a] !== void 0 && (a = t.registered[a]); - var i = r[tf], s = [a], l = ""; - typeof r.className == "string" ? l = _m(t.registered, s, r.className) : r.className != null && (l = r.className + " "); - var c = Tc(s); + var i = r[ef], s = [a], l = ""; + typeof r.className == "string" ? l = wm(t.registered, s, r.className) : r.className != null && (l = r.className + " "); + var c = Pc(s); if (process.env.NODE_ENV !== "production" && c.name.indexOf("-") === -1) { - var u = r[rf]; - u && (c = Tc([c, "label:" + u + ";"])); + var u = r[tf]; + u && (c = Pc([c, "label:" + u + ";"])); } - km(t, c, typeof i == "string"), l += t.key + "-" + c.name; + Cm(t, c, typeof i == "string"), l += t.key + "-" + c.name; var d = {}; for (var f in r) - K0.call(r, f) && f !== "css" && f !== tf && (process.env.NODE_ENV === "production" || f !== rf) && (d[f] = r[f]); + G0.call(r, f) && f !== "css" && f !== ef && (process.env.NODE_ENV === "production" || f !== tf) && (d[f] = r[f]); d.ref = o, d.className = l; - var p = /* @__PURE__ */ ir(i, d), m = /* @__PURE__ */ ir(Z0, null); - return /* @__PURE__ */ ir(ku, null, m, p); -}, J0 = /* @__PURE__ */ Am(function(e, t, r) { - return typeof e.css == "function" ? /* @__PURE__ */ ir(Aa.Consumer, null, function(n) { - return nf(t, e, n, r); - }) : nf(t, e, null, r); + var p = /* @__PURE__ */ ir(i, d), m = /* @__PURE__ */ ir(X0, null); + return /* @__PURE__ */ ir(wu, null, m, p); +}, K0 = /* @__PURE__ */ Pm(function(e, t, r) { + return typeof e.css == "function" ? /* @__PURE__ */ ir(Ra.Consumer, null, function(n) { + return rf(t, e, n, r); + }) : rf(t, e, null, r); }); -process.env.NODE_ENV !== "production" && (J0.displayName = "EmotionCssPropInternal"); -var Q0 = Cm, ex = function(t) { +process.env.NODE_ENV !== "production" && (K0.displayName = "EmotionCssPropInternal"); +var Z0 = Sm, J0 = function(t) { return t !== "theme" && t !== "innerRef"; -}, of = function(t) { +}, nf = function(t) { return typeof t == "string" && // 96 is one less than the char code // for "a" so this is checking that // it's a lowercase character - t.charCodeAt(0) > 96 ? Q0 : ex; + t.charCodeAt(0) > 96 ? Z0 : J0; }; -function af(e, t) { +function of(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); @@ -1612,23 +1620,23 @@ function af(e, t) { } return r; } -function tx(e) { +function Q0(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; - t % 2 ? af(Object(r), !0).forEach(function(n) { - Sm(e, n, r[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : af(Object(r)).forEach(function(n) { + t % 2 ? of(Object(r), !0).forEach(function(n) { + _u(e, n, r[n]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : of(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } -var sf = `You have illegal escape sequence in your template literal, most likely inside content's property value. +var af = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, rx = function() { +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, ex = function() { return null; -}, nx = function e(t, r) { +}, tx = function e(t, r) { if (process.env.NODE_ENV !== "production" && t === void 0) throw new Error(`You are trying to create a styled element with an undefined component. You may have forgotten to import it.`); @@ -1639,35 +1647,35 @@ You may have forgotten to import it.`); } : r.shouldForwardProp); var i = t.__emotion_real === t, s = i && t.__emotion_base || t; typeof o != "function" && i && (o = t.__emotion_forwardProp); - var l = o || of(s), c = !l("as"); + var l = o || nf(s), c = !l("as"); return function() { var u = arguments, d = i && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : []; if (n !== void 0 && d.push("label:" + n + ";"), u[0] == null || u[0].raw === void 0) d.push.apply(d, u); else { - process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(sf), d.push(u[0][0]); + process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(af), d.push(u[0][0]); for (var f = u.length, p = 1; p < f; p++) - process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(sf), d.push(u[p], u[0][p]); + process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(af), d.push(u[p], u[0][p]); } - var m = Am(function(h, v, b) { - return /* @__PURE__ */ ir(Aa.Consumer, null, function(y) { - var S = c && h.as || s, k = "", w = [], M = h; + var m = Pm(function(h, v, b) { + return /* @__PURE__ */ ir(Ra.Consumer, null, function(y) { + var S = c && h.as || s, _ = "", w = [], M = h; if (h.theme == null) { M = {}; for (var P in h) M[P] = h[P]; M.theme = y; } - typeof h.className == "string" ? k = _m(v.registered, w, h.className) : h.className != null && (k = h.className + " "); - var I = Tc(d.concat(w), v.registered, M); - km(v, I, typeof S == "string"), k += v.key + "-" + I.name, a !== void 0 && (k += " " + a); - var z = c && o === void 0 ? of(S) : l, j = {}; + typeof h.className == "string" ? _ = wm(v.registered, w, h.className) : h.className != null && (_ = h.className + " "); + var I = Pc(d.concat(w), v.registered, M); + Cm(v, I, typeof S == "string"), _ += v.key + "-" + I.name, a !== void 0 && (_ += " " + a); + var z = c && o === void 0 ? nf(S) : l, j = {}; for (var X in h) c && X === "as" || // $FlowFixMe z(X) && (j[X] = h[X]); - j.className = k, j.ref = b || h.innerRef, process.env.NODE_ENV !== "production" && h.innerRef && console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead" + (n === void 0 ? "" : " in the usage of `" + n + "`")); - var ne = /* @__PURE__ */ ir(S, j), J = /* @__PURE__ */ ir(rx, null); - return /* @__PURE__ */ ir(ku, null, J, ne); + j.className = _, j.ref = b || h.innerRef, process.env.NODE_ENV !== "production" && h.innerRef && console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead" + (n === void 0 ? "" : " in the usage of `" + n + "`")); + var ne = /* @__PURE__ */ ir(S, j), J = /* @__PURE__ */ ir(ex, null); + return /* @__PURE__ */ ir(wu, null, J, ne); }); }); return m.displayName = n !== void 0 ? n : "Styled(" + (typeof s == "string" ? s : s.displayName || s.name || "Component") + ")", m.defaultProps = t.defaultProps, m.__emotion_real = m, m.__emotion_base = s, m.__emotion_styles = d, m.__emotion_forwardProp = o, Object.defineProperty(m, "toString", { @@ -1675,10 +1683,10 @@ You may have forgotten to import it.`); return a === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + a; } }), m.withComponent = function(h, v) { - return e(h, v !== void 0 ? tx({}, r || {}, {}, v) : r).apply(void 0, d); + return e(h, v !== void 0 ? Q0({}, r || {}, {}, v) : r).apply(void 0, d); }, m; }; -}, ox = [ +}, rx = [ "a", "abbr", "address", @@ -1814,24 +1822,24 @@ You may have forgotten to import it.`); "svg", "text", "tspan" -], Ac = nx.bind(); -ox.forEach(function(e) { - Ac[e] = Ac(e); +], Tc = tx.bind(); +rx.forEach(function(e) { + Tc[e] = Tc(e); }); -const ax = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: Ac -}, Symbol.toStringTag, { value: "Module" })), ix = /* @__PURE__ */ Fs(ax); + default: Tc +}, Symbol.toStringTag, { value: "Module" })), ox = /* @__PURE__ */ Is(nx); /* object-assign (c) Sindre Sorhus @license MIT */ -var Pl, lf; -function Om() { - if (lf) - return Pl; - lf = 1; +var kl, sf; +function Tm() { + if (sf) + return kl; + sf = 1; var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable; function n(a) { if (a == null) @@ -1860,7 +1868,7 @@ function Om() { return !1; } } - return Pl = o() ? Object.assign : function(a, i) { + return kl = o() ? Object.assign : function(a, i) { for (var s, l = n(a), c, u = 1; u < arguments.length; u++) { s = Object(arguments[u]); for (var d in s) @@ -1872,18 +1880,18 @@ function Om() { } } return l; - }, Pl; + }, kl; } -var sx = Om(); -const xr = /* @__PURE__ */ Is(sx); -var cf = function(t, r) { +var ax = Tm(); +const xr = /* @__PURE__ */ Ms(ax); +var lf = function(t, r) { var n = xr({}, t, r); for (var o in t) { var a; !t[o] || typeof r[o] != "object" || xr(n, (a = {}, a[o] = xr(t[o], r[o]), a)); } return n; -}, lx = function(t) { +}, ix = function(t) { var r = {}; return Object.keys(t).sort(function(n, o) { return n.localeCompare(o, void 0, { @@ -1893,15 +1901,15 @@ var cf = function(t, r) { }).forEach(function(n) { r[n] = t[n]; }), r; -}, cx = { +}, sx = { breakpoints: [40, 52, 64].map(function(e) { return e + "em"; }) -}, $m = function(t) { +}, Am = function(t) { return "@media screen and (min-width: " + t + ")"; -}, ux = function(t, r) { - return Qr(r, t, t); -}, Qr = function(t, r, n, o, a) { +}, lx = function(t, r) { + return en(r, t, t); +}, en = function(t, r, n, o, a) { for (r = r && r.split ? r.split(".") : [r], o = 0; o < r.length; o++) t = t ? t[r[o]] : a; return t === a ? n : t; @@ -1910,18 +1918,18 @@ var cf = function(t, r) { var s = {}, l = !1, c = i.theme && i.theme.disableStyledSystemCache; for (var u in i) if (t[u]) { - var d = t[u], f = i[u], p = Qr(i.theme, d.scale, d.defaults); + var d = t[u], f = i[u], p = en(i.theme, d.scale, d.defaults); if (typeof f == "object") { - if (r.breakpoints = !c && r.breakpoints || Qr(i.theme, "breakpoints", cx.breakpoints), Array.isArray(f)) { - r.media = !c && r.media || [null].concat(r.breakpoints.map($m)), s = cf(s, dx(r.media, d, p, f, i)); + if (r.breakpoints = !c && r.breakpoints || en(i.theme, "breakpoints", sx.breakpoints), Array.isArray(f)) { + r.media = !c && r.media || [null].concat(r.breakpoints.map(Am)), s = lf(s, cx(r.media, d, p, f, i)); continue; } - f !== null && (s = cf(s, fx(r.breakpoints, d, p, f, i)), l = !0); + f !== null && (s = lf(s, ux(r.breakpoints, d, p, f, i)), l = !0); continue; } xr(s, d(f, p, i)); } - return l && (s = lx(s)), s; + return l && (s = ix(s)), s; }; n.config = t, n.propNames = Object.keys(t), n.cache = r; var o = Object.keys(t).filter(function(a) { @@ -1931,7 +1939,7 @@ var cf = function(t, r) { var i; n[a] = e((i = {}, i[a] = t[a], i)); }), n; -}, dx = function(t, r, n, o, a) { +}, cx = function(t, r, n, o, a) { var i = {}; return o.slice(0, t.length).forEach(function(s, l) { var c = t[l], u = r(s, n, a); @@ -1942,20 +1950,20 @@ var cf = function(t, r) { xr(i, (d = {}, d[c] = xr({}, i[c], u), d)); } }), i; -}, fx = function(t, r, n, o, a) { +}, ux = function(t, r, n, o, a) { var i = {}; for (var s in o) { var l = t[s], c = o[s], u = r(c, n, a); if (!l) xr(i, u); else { - var d, f = $m(l); + var d, f = Am(l); xr(i, (d = {}, d[f] = xr({}, i[f], u), d)); } } return i; }, ls = function(t) { - var r = t.properties, n = t.property, o = t.scale, a = t.transform, i = a === void 0 ? ux : a, s = t.defaultScale; + var r = t.properties, n = t.property, o = t.scale, a = t.transform, i = a === void 0 ? lx : a, s = t.defaultScale; r = r || [n]; var l = function(u, d, f) { var p = {}, m = i(u, d, f); @@ -1985,7 +1993,7 @@ var cf = function(t, r) { }); var n = Za(r); return n; -}, Tu = function() { +}, Eu = function() { for (var t = {}, r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o]; n.forEach(function(i) { @@ -1993,15 +2001,15 @@ var cf = function(t, r) { }); var a = Za(t); return a; -}, px = function(t) { +}, dx = function(t) { return typeof t == "number" && !isNaN(t); -}, hx = function(t, r) { - return Qr(r, t, !px(t) || t > 1 ? t : t * 100 + "%"); -}, mx = { +}, fx = function(t, r) { + return en(r, t, !dx(t) || t > 1 ? t : t * 100 + "%"); +}, px = { width: { property: "width", scale: "sizes", - transform: hx + transform: fx }, height: { property: "height", @@ -2032,7 +2040,7 @@ var cf = function(t, r) { overflowY: !0, display: !0, verticalAlign: !0 -}, qt = dr(mx), Oc = { +}, qt = dr(px), Ac = { color: { property: "color", scale: "colors" @@ -2043,10 +2051,10 @@ var cf = function(t, r) { }, opacity: !0 }; -Oc.bg = Oc.backgroundColor; -var Au = dr(Oc), vx = { +Ac.bg = Ac.backgroundColor; +var Pu = dr(Ac), hx = { fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72] -}, gx = { +}, mx = { fontFamily: { property: "fontFamily", scale: "fonts" @@ -2054,7 +2062,7 @@ var Au = dr(Oc), vx = { fontSize: { property: "fontSize", scale: "fontSizes", - defaultScale: vx.fontSizes + defaultScale: hx.fontSizes }, fontWeight: { property: "fontWeight", @@ -2070,7 +2078,7 @@ var Au = dr(Oc), vx = { }, textAlign: !0, fontStyle: !0 -}, on = dr(gx), bx = { +}, an = dr(mx), vx = { alignItems: !0, alignContent: !0, justifyItems: !0, @@ -2085,23 +2093,23 @@ var Au = dr(Oc), vx = { justifySelf: !0, alignSelf: !0, order: !0 -}, Ft = dr(bx), Tl = { +}, Ft = dr(vx), El = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512] -}, yx = { +}, gx = { gridGap: { property: "gridGap", scale: "space", - defaultScale: Tl.space + defaultScale: El.space }, gridColumnGap: { property: "gridColumnGap", scale: "space", - defaultScale: Tl.space + defaultScale: El.space }, gridRowGap: { property: "gridRowGap", scale: "space", - defaultScale: Tl.space + defaultScale: El.space }, gridColumn: !0, gridRow: !0, @@ -2112,7 +2120,7 @@ var Au = dr(Oc), vx = { gridTemplateRows: !0, gridTemplateAreas: !0, gridArea: !0 -}, Gt = dr(yx), Pt = { +}, Gt = dr(gx), Pt = { border: { property: "border", scale: "borders" @@ -2238,20 +2246,20 @@ Pt.borderRightStyle = { property: "borderRightStyle", scale: "borderStyles" }; -var Sr = dr(Pt), en = { +var Sr = dr(Pt), tn = { background: !0, backgroundImage: !0, backgroundSize: !0, backgroundPosition: !0, backgroundRepeat: !0 }; -en.bgImage = en.backgroundImage; -en.bgSize = en.backgroundSize; -en.bgPosition = en.backgroundPosition; -en.bgRepeat = en.backgroundRepeat; -var Io = dr(en), xi = { +tn.bgImage = tn.backgroundImage; +tn.bgSize = tn.backgroundSize; +tn.bgPosition = tn.backgroundPosition; +tn.bgRepeat = tn.backgroundRepeat; +var Fo = dr(tn), xi = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512] -}, xx = { +}, bx = { position: !0, zIndex: { property: "zIndex", @@ -2277,57 +2285,57 @@ var Io = dr(en), xi = { scale: "space", defaultScale: xi.space } -}, Wn = dr(xx), zt = { +}, Hn = dr(bx), zt = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512] -}, uf = function(t) { +}, cf = function(t) { return typeof t == "number" && !isNaN(t); -}, Pn = function(t, r) { - if (!uf(t)) - return Qr(r, t, t); - var n = t < 0, o = Math.abs(t), a = Qr(r, o, o); - return uf(a) ? a * (n ? -1 : 1) : n ? "-" + a : a; +}, Tn = function(t, r) { + if (!cf(t)) + return en(r, t, t); + var n = t < 0, o = Math.abs(t), a = en(r, o, o); + return cf(a) ? a * (n ? -1 : 1) : n ? "-" + a : a; }, Ne = {}; Ne.margin = { margin: { property: "margin", scale: "space", - transform: Pn, + transform: Tn, defaultScale: zt.space }, marginTop: { property: "marginTop", scale: "space", - transform: Pn, + transform: Tn, defaultScale: zt.space }, marginRight: { property: "marginRight", scale: "space", - transform: Pn, + transform: Tn, defaultScale: zt.space }, marginBottom: { property: "marginBottom", scale: "space", - transform: Pn, + transform: Tn, defaultScale: zt.space }, marginLeft: { property: "marginLeft", scale: "space", - transform: Pn, + transform: Tn, defaultScale: zt.space }, marginX: { properties: ["marginLeft", "marginRight"], scale: "space", - transform: Pn, + transform: Tn, defaultScale: zt.space }, marginY: { properties: ["marginTop", "marginBottom"], scale: "space", - transform: Pn, + transform: Tn, defaultScale: zt.space } }; @@ -2382,7 +2390,7 @@ Ne.padding.pb = Ne.padding.paddingBottom; Ne.padding.pl = Ne.padding.paddingLeft; Ne.padding.px = Ne.padding.paddingX; Ne.padding.py = Ne.padding.paddingY; -var Rm = dr(Ne.margin), Dm = dr(Ne.padding), Mm = Tu(Rm, Dm), Bi = dr({ +var Om = dr(Ne.margin), Rm = dr(Ne.padding), $m = Eu(Om, Rm), Bi = dr({ boxShadow: { property: "boxShadow", scale: "shadows" @@ -2392,26 +2400,26 @@ var Rm = dr(Ne.margin), Dm = dr(Ne.padding), Mm = Tu(Rm, Dm), Bi = dr({ scale: "shadows" } }); -function Oa() { - return Oa = Object.assign || function(e) { +function $a() { + return $a = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; - }, Oa.apply(this, arguments); + }, $a.apply(this, arguments); } var mr = function(t, r, n, o, a) { for (r = r && r.split ? r.split(".") : [r], o = 0; o < r.length; o++) t = t ? t[r[o]] : a; return t === a ? n : t; -}, Sx = [40, 52, 64].map(function(e) { +}, yx = [40, 52, 64].map(function(e) { return e + "em"; -}), wx = { +}), xx = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512], fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72] -}, Cx = { +}, Sx = { bg: "backgroundColor", m: "margin", mt: "marginTop", @@ -2427,13 +2435,13 @@ var mr = function(t, r, n, o, a) { pl: "paddingLeft", px: "paddingX", py: "paddingY" -}, df = { +}, uf = { marginX: ["marginLeft", "marginRight"], marginY: ["marginTop", "marginBottom"], paddingX: ["paddingLeft", "paddingRight"], paddingY: ["paddingTop", "paddingBottom"], size: ["width", "height"] -}, _x = { +}, wx = { color: "colors", backgroundColor: "colors", borderColor: "colors", @@ -2505,17 +2513,17 @@ var mr = function(t, r, n, o, a) { // svg fill: "colors", stroke: "colors" -}, kx = function(t, r) { +}, Cx = function(t, r) { if (typeof r != "number" || r >= 0) return mr(t, r, r); var n = Math.abs(r), o = mr(t, n, n); return typeof o == "string" ? "-" + o : o * -1; -}, Ex = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(e, t) { +}, _x = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(e, t) { var r; - return Oa({}, e, (r = {}, r[t] = kx, r)); -}, {}), Im = function(t) { + return $a({}, e, (r = {}, r[t] = Cx, r)); +}, {}), Dm = function(t) { return function(r) { - var n = {}, o = mr(r, "breakpoints", Sx), a = [null].concat(o.map(function(u) { + var n = {}, o = mr(r, "breakpoints", yx), a = [null].concat(o.map(function(u) { return "@media screen and (min-width: " + u + ")"; })); for (var i in t) { @@ -2537,24 +2545,24 @@ var mr = function(t, r, n, o, a) { } return n; }; -}, Fm = function e(t) { +}, Mm = function e(t) { return function(r) { r === void 0 && (r = {}); - var n = Oa({}, wx, {}, r.theme || r), o = {}, a = typeof t == "function" ? t(n) : t, i = Im(a)(n); + var n = $a({}, xx, {}, r.theme || r), o = {}, a = typeof t == "function" ? t(n) : t, i = Dm(a)(n); for (var s in i) { var l = i[s], c = typeof l == "function" ? l(n) : l; if (s === "variant") { var u = e(mr(n, c))(n); - o = Oa({}, o, {}, u); + o = $a({}, o, {}, u); continue; } if (c && typeof c == "object") { o[s] = e(c)(n); continue; } - var d = mr(Cx, s, s), f = mr(_x, d), p = mr(n, f, mr(n, d, {})), m = mr(Ex, d, mr), h = m(p, c, c); - if (df[d]) - for (var v = df[d], b = 0; b < v.length; b++) + var d = mr(Sx, s, s), f = mr(wx, d), p = mr(n, f, mr(n, d, {})), m = mr(_x, d, mr), h = m(p, c, c); + if (uf[d]) + for (var v = uf[d], b = 0; b < v.length; b++) o[v[b]] = h; else o[d] = h; @@ -2562,31 +2570,31 @@ var mr = function(t, r, n, o, a) { return o; }; }; -const Nm = Fm, Px = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Im = Mm, kx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - css: Fm, - default: Nm, + css: Mm, + default: Im, get: mr, - responsive: Im + responsive: Dm }, Symbol.toStringTag, { value: "Module" })); -var Ns = function(t) { +var Fs = function(t) { var r, n = t.scale, o = t.prop, a = o === void 0 ? "variant" : o, i = t.variants, s = i === void 0 ? {} : i, l = t.key, c; Object.keys(s).length ? c = function(p, m, h) { - return Nm(Qr(m, p, null))(h.theme); + return Im(en(m, p, null))(h.theme); } : c = function(p, m) { - return Qr(m, p, null); + return en(m, p, null); }, c.scale = n || l, c.defaults = s; var u = (r = {}, r[a] = c, r), d = Za(u); return d; -}, jm = Ns({ +}, Fm = Fs({ key: "buttons" -}), Bm = Ns({ +}), Nm = Fs({ key: "textStyles", prop: "textStyle" -}), zm = Ns({ +}), jm = Fs({ key: "colorStyles", prop: "colors" -}), Tx = qt.width, Ax = qt.height, Ox = qt.minWidth, $x = qt.minHeight, Rx = qt.maxWidth, Dx = qt.maxHeight, Mx = qt.size, Ix = qt.verticalAlign, Fx = qt.display, Nx = qt.overflow, jx = qt.overflowX, Bx = qt.overflowY, zx = Au.opacity, Vx = on.fontSize, Lx = on.fontFamily, Wx = on.fontWeight, Ux = on.lineHeight, Hx = on.textAlign, Yx = on.fontStyle, qx = on.letterSpacing, Gx = Ft.alignItems, Xx = Ft.alignContent, Kx = Ft.justifyItems, Zx = Ft.justifyContent, Jx = Ft.flexWrap, Qx = Ft.flexDirection, eS = Ft.flex, tS = Ft.flexGrow, rS = Ft.flexShrink, nS = Ft.flexBasis, oS = Ft.justifySelf, aS = Ft.alignSelf, iS = Ft.order, sS = Gt.gridGap, lS = Gt.gridColumnGap, cS = Gt.gridRowGap, uS = Gt.gridColumn, dS = Gt.gridRow, fS = Gt.gridAutoFlow, pS = Gt.gridAutoColumns, hS = Gt.gridAutoRows, mS = Gt.gridTemplateColumns, vS = Gt.gridTemplateRows, gS = Gt.gridTemplateAreas, bS = Gt.gridArea, yS = Sr.borderWidth, xS = Sr.borderStyle, SS = Sr.borderColor, wS = Sr.borderTop, CS = Sr.borderRight, _S = Sr.borderBottom, kS = Sr.borderLeft, ES = Sr.borderRadius, PS = Io.backgroundImage, TS = Io.backgroundSize, AS = Io.backgroundPosition, OS = Io.backgroundRepeat, $S = Wn.zIndex, RS = Wn.top, DS = Wn.right, MS = Wn.bottom, IS = Wn.left, FS = function(t) { +}), Ex = qt.width, Px = qt.height, Tx = qt.minWidth, Ax = qt.minHeight, Ox = qt.maxWidth, Rx = qt.maxHeight, $x = qt.size, Dx = qt.verticalAlign, Mx = qt.display, Ix = qt.overflow, Fx = qt.overflowX, Nx = qt.overflowY, jx = Pu.opacity, Bx = an.fontSize, zx = an.fontFamily, Vx = an.fontWeight, Lx = an.lineHeight, Wx = an.textAlign, Ux = an.fontStyle, Hx = an.letterSpacing, Yx = Ft.alignItems, qx = Ft.alignContent, Gx = Ft.justifyItems, Xx = Ft.justifyContent, Kx = Ft.flexWrap, Zx = Ft.flexDirection, Jx = Ft.flex, Qx = Ft.flexGrow, eS = Ft.flexShrink, tS = Ft.flexBasis, rS = Ft.justifySelf, nS = Ft.alignSelf, oS = Ft.order, aS = Gt.gridGap, iS = Gt.gridColumnGap, sS = Gt.gridRowGap, lS = Gt.gridColumn, cS = Gt.gridRow, uS = Gt.gridAutoFlow, dS = Gt.gridAutoColumns, fS = Gt.gridAutoRows, pS = Gt.gridTemplateColumns, hS = Gt.gridTemplateRows, mS = Gt.gridTemplateAreas, vS = Gt.gridArea, gS = Sr.borderWidth, bS = Sr.borderStyle, yS = Sr.borderColor, xS = Sr.borderTop, SS = Sr.borderRight, wS = Sr.borderBottom, CS = Sr.borderLeft, _S = Sr.borderRadius, kS = Fo.backgroundImage, ES = Fo.backgroundSize, PS = Fo.backgroundPosition, TS = Fo.backgroundRepeat, AS = Hn.zIndex, OS = Hn.top, RS = Hn.right, $S = Hn.bottom, DS = Hn.left, MS = function(t) { var r = t.prop, n = t.cssProperty, o = t.alias, a = t.key, i = t.transformValue, s = t.scale, l = t.properties, c = {}; c[r] = ls({ properties: l, @@ -2598,132 +2606,132 @@ var Ns = function(t) { var u = Za(c); return u; }; -const NS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const IS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - alignContent: Xx, - alignItems: Gx, - alignSelf: aS, - background: Io, - backgroundImage: PS, - backgroundPosition: AS, - backgroundRepeat: OS, - backgroundSize: TS, + alignContent: qx, + alignItems: Yx, + alignSelf: nS, + background: Fo, + backgroundImage: kS, + backgroundPosition: PS, + backgroundRepeat: TS, + backgroundSize: ES, border: Sr, - borderBottom: _S, - borderColor: SS, - borderLeft: kS, - borderRadius: ES, - borderRight: CS, - borderStyle: xS, - borderTop: wS, - borderWidth: yS, + borderBottom: wS, + borderColor: yS, + borderLeft: CS, + borderRadius: _S, + borderRight: SS, + borderStyle: bS, + borderTop: xS, + borderWidth: gS, borders: Sr, - bottom: MS, + bottom: $S, boxShadow: Bi, - buttonStyle: jm, - color: Au, - colorStyle: zm, - compose: Tu, + buttonStyle: Fm, + color: Pu, + colorStyle: jm, + compose: Eu, createParser: Za, createStyleFunction: ls, - display: Fx, - flex: eS, - flexBasis: nS, - flexDirection: Qx, - flexGrow: tS, - flexShrink: rS, - flexWrap: Jx, + display: Mx, + flex: Jx, + flexBasis: tS, + flexDirection: Zx, + flexGrow: Qx, + flexShrink: eS, + flexWrap: Kx, flexbox: Ft, - fontFamily: Lx, - fontSize: Vx, - fontStyle: Yx, - fontWeight: Wx, - get: Qr, + fontFamily: zx, + fontSize: Bx, + fontStyle: Ux, + fontWeight: Vx, + get: en, grid: Gt, - gridArea: bS, - gridAutoColumns: pS, - gridAutoFlow: fS, - gridAutoRows: hS, - gridColumn: uS, - gridColumnGap: lS, - gridGap: sS, - gridRow: dS, - gridRowGap: cS, - gridTemplateAreas: gS, - gridTemplateColumns: mS, - gridTemplateRows: vS, - height: Ax, - justifyContent: Zx, - justifyItems: Kx, - justifySelf: oS, + gridArea: vS, + gridAutoColumns: dS, + gridAutoFlow: uS, + gridAutoRows: fS, + gridColumn: lS, + gridColumnGap: iS, + gridGap: aS, + gridRow: cS, + gridRowGap: sS, + gridTemplateAreas: mS, + gridTemplateColumns: pS, + gridTemplateRows: hS, + height: Px, + justifyContent: Xx, + justifyItems: Gx, + justifySelf: rS, layout: qt, - left: IS, - letterSpacing: qx, - lineHeight: Ux, - margin: Rm, - maxHeight: Dx, - maxWidth: Rx, - minHeight: $x, - minWidth: Ox, - opacity: zx, - order: iS, - overflow: Nx, - overflowX: jx, - overflowY: Bx, - padding: Dm, - position: Wn, - right: DS, + left: DS, + letterSpacing: Hx, + lineHeight: Lx, + margin: Om, + maxHeight: Rx, + maxWidth: Ox, + minHeight: Ax, + minWidth: Tx, + opacity: jx, + order: oS, + overflow: Ix, + overflowX: Fx, + overflowY: Nx, + padding: Rm, + position: Hn, + right: RS, shadow: Bi, - size: Mx, - space: Mm, - style: FS, + size: $x, + space: $m, + style: MS, system: dr, - textAlign: Hx, + textAlign: Wx, textShadow: Bi, - textStyle: Bm, - top: RS, - typography: on, - variant: Ns, - verticalAlign: Ix, - width: Tx, - zIndex: $S -}, Symbol.toStringTag, { value: "Module" })), jS = /* @__PURE__ */ Fs(NS), BS = /* @__PURE__ */ Fs(Px); -function zS(e) { + textStyle: Nm, + top: OS, + typography: an, + variant: Fs, + verticalAlign: Dx, + width: Ex, + zIndex: AS +}, Symbol.toStringTag, { value: "Module" })), FS = /* @__PURE__ */ Is(IS), NS = /* @__PURE__ */ Is(kx); +function jS(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } -var VS = Tu(Mm, on, Au, qt, Ft, Sr, Io, Wn, Gt, Bi, jm, Bm, zm), Vm = VS.propNames, Lm = function(t) { +var BS = Eu($m, an, Pu, qt, Ft, Sr, Fo, Hn, Gt, Bi, Fm, Nm, jm), Bm = BS.propNames, zm = function(t) { var r = new RegExp("^(" + t.join("|") + ")$"); - return zS(function(n) { - return Cm(n) && !r.test(n); + return jS(function(n) { + return Sm(n) && !r.test(n); }); }; -const LS = Lm(Vm), WS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const zS = zm(Bm), VS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - createShouldForwardProp: Lm, - default: LS, - props: Vm -}, Symbol.toStringTag, { value: "Module" })), US = /* @__PURE__ */ Fs(WS); -Object.defineProperty(ka, "__esModule", { + createShouldForwardProp: zm, + default: zS, + props: Bm +}, Symbol.toStringTag, { value: "Module" })), LS = /* @__PURE__ */ Is(VS); +Object.defineProperty(Pa, "__esModule", { value: !0 }); -var Wm = ka.Flex = Un = ka.Box = void 0; -Ou(It); -var Um = Ou(ix), Gn = jS, ua = YS(BS), HS = Ou(US); -function Hm() { +var Vm = Pa.Flex = Yn = Pa.Box = void 0; +Tu(It); +var Lm = Tu(ox), Kn = FS, fa = US(NS), WS = Tu(LS); +function Wm() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return Hm = function() { + return Wm = function() { return e; }, e; } -function YS(e) { +function US(e) { if (e && e.__esModule) return e; - var t = Hm(); + var t = Wm(); if (t && t.has(e)) return t.get(e); var r = {}; @@ -2737,46 +2745,46 @@ function YS(e) { } return r.default = e, t && t.set(e, r), r; } -function Ou(e) { +function Tu(e) { return e && e.__esModule ? e : { default: e }; } -var qS = function(t) { - return (0, ua.default)(t.sx)(t.theme); -}, GS = function(t) { - return (0, ua.default)(t.__css)(t.theme); -}, XS = function(t) { +var HS = function(t) { + return (0, fa.default)(t.sx)(t.theme); +}, YS = function(t) { + return (0, fa.default)(t.__css)(t.theme); +}, qS = function(t) { var r = t.theme, n = t.variant, o = t.tx, a = o === void 0 ? "variants" : o; - return (0, ua.default)((0, ua.get)(r, a + "." + n, (0, ua.get)(r, n)))(r); -}, Ym = (0, Um.default)("div", { - shouldForwardProp: HS.default + return (0, fa.default)((0, fa.get)(r, a + "." + n, (0, fa.get)(r, n)))(r); +}, Um = (0, Lm.default)("div", { + shouldForwardProp: WS.default })({ boxSizing: "border-box", margin: 0, minWidth: 0 -}, GS, XS, qS, function(e) { +}, YS, qS, HS, function(e) { return e.css; -}, (0, Gn.compose)(Gn.space, Gn.layout, Gn.typography, Gn.color, Gn.flexbox)), Un = ka.Box = Ym, KS = (0, Um.default)(Ym)({ +}, (0, Kn.compose)(Kn.space, Kn.layout, Kn.typography, Kn.color, Kn.flexbox)), Yn = Pa.Box = Um, GS = (0, Lm.default)(Um)({ display: "flex" }); -Wm = ka.Flex = KS; -function gn() { - return gn = Object.assign || function(e) { +Vm = Pa.Flex = GS; +function bn() { + return bn = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; - }, gn.apply(this, arguments); + }, bn.apply(this, arguments); } -var bV = At(function(e, t) { - return It.createElement(Un, gn({ +var fV = At(function(e, t) { + return It.createElement(Yn, bn({ ref: t, tx: "text" }, e)); }); At(function(e, t) { - return It.createElement(Un, gn({ + return It.createElement(Yn, bn({ ref: t, as: "h2", tx: "text", @@ -2790,14 +2798,14 @@ At(function(e, t) { } })); }); -var yV = At(function(e, t) { - return It.createElement(Un, gn({ +var pV = At(function(e, t) { + return It.createElement(Yn, bn({ ref: t, as: "a", variant: "link" }, e)); -}), xV = At(function(e, t) { - return It.createElement(Un, gn({ +}), hV = At(function(e, t) { + return It.createElement(Yn, bn({ ref: t, as: "button", tx: "buttons", @@ -2820,7 +2828,7 @@ var yV = At(function(e, t) { })); }); At(function(e, t) { - return It.createElement(Un, gn({ + return It.createElement(Yn, bn({ ref: t, as: "img" }, e, { @@ -2830,8 +2838,8 @@ At(function(e, t) { } })); }); -var SV = At(function(e, t) { - return It.createElement(Un, gn({ +var mV = At(function(e, t) { + return It.createElement(Yn, bn({ ref: t, variant: "card" }, e)); @@ -2844,7 +2852,7 @@ function yr(e) { return arguments.length === 0 || at(r) ? t : e.apply(this, arguments); }; } -function An(e) { +function On(e) { return function t(r, n) { switch (arguments.length) { case 0: @@ -2862,7 +2870,7 @@ function An(e) { } }; } -function ZS(e, t) { +function XS(e, t) { switch (e) { case 0: return function() { @@ -2912,29 +2920,29 @@ function ZS(e, t) { throw new Error("First argument to _arity must be a non-negative integer no greater than ten"); } } -function qm(e) { +function Hm(e) { return function t(r, n, o) { switch (arguments.length) { case 0: return t; case 1: - return at(r) ? t : An(function(a, i) { + return at(r) ? t : On(function(a, i) { return e(r, a, i); }); case 2: - return at(r) && at(n) ? t : at(r) ? An(function(a, i) { + return at(r) && at(n) ? t : at(r) ? On(function(a, i) { return e(a, n, i); - }) : at(n) ? An(function(a, i) { + }) : at(n) ? On(function(a, i) { return e(r, a, i); }) : yr(function(a) { return e(r, n, a); }); default: - return at(r) && at(n) && at(o) ? t : at(r) && at(n) ? An(function(a, i) { + return at(r) && at(n) && at(o) ? t : at(r) && at(n) ? On(function(a, i) { return e(a, i, o); - }) : at(r) && at(o) ? An(function(a, i) { + }) : at(r) && at(o) ? On(function(a, i) { return e(a, n, i); - }) : at(n) && at(o) ? An(function(a, i) { + }) : at(n) && at(o) ? On(function(a, i) { return e(r, a, i); }) : at(r) ? yr(function(a) { return e(a, n, o); @@ -2946,15 +2954,15 @@ function qm(e) { } }; } -const JS = Array.isArray || function(t) { +const KS = Array.isArray || function(t) { return t != null && t.length >= 0 && Object.prototype.toString.call(t) === "[object Array]"; }; -function QS(e) { +function ZS(e) { return Object.prototype.toString.call(e) === "[object String]"; } -var e1 = /* @__PURE__ */ yr(function(t) { - return JS(t) ? !0 : !t || typeof t != "object" || QS(t) ? !1 : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1; -}), t1 = /* @__PURE__ */ function() { +var JS = /* @__PURE__ */ yr(function(t) { + return KS(t) ? !0 : !t || typeof t != "object" || ZS(t) ? !1 : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1; +}), QS = /* @__PURE__ */ function() { function e(t) { this.f = t; } @@ -2966,15 +2974,15 @@ var e1 = /* @__PURE__ */ yr(function(t) { return this.f(t, r); }, e; }(); -function r1(e) { - return new t1(e); +function e1(e) { + return new QS(e); } -var n1 = /* @__PURE__ */ An(function(t, r) { - return ZS(t.length, function() { +var t1 = /* @__PURE__ */ On(function(t, r) { + return XS(t.length, function() { return t.apply(r, arguments); }); }); -function o1(e, t, r) { +function r1(e, t, r) { for (var n = 0, o = r.length; n < o; ) { if (t = e["@@transducer/step"](t, r[n]), t && t["@@transducer/reduced"]) { t = t["@@transducer/value"]; @@ -2984,7 +2992,7 @@ function o1(e, t, r) { } return e["@@transducer/result"](t); } -function ff(e, t, r) { +function df(e, t, r) { for (var n = r.next(); !n.done; ) { if (t = e["@@transducer/step"](t, n.value), t && t["@@transducer/reduced"]) { t = t["@@transducer/value"]; @@ -2994,116 +3002,84 @@ function ff(e, t, r) { } return e["@@transducer/result"](t); } -function pf(e, t, r, n) { - return e["@@transducer/result"](r[n](n1(e["@@transducer/step"], e), t)); +function ff(e, t, r, n) { + return e["@@transducer/result"](r[n](t1(e["@@transducer/step"], e), t)); } -var hf = typeof Symbol < "u" ? Symbol.iterator : "@@iterator"; -function wV(e, t, r) { - if (typeof e == "function" && (e = r1(e)), e1(r)) - return o1(e, t, r); +var pf = typeof Symbol < "u" ? Symbol.iterator : "@@iterator"; +function vV(e, t, r) { + if (typeof e == "function" && (e = e1(e)), JS(r)) + return r1(e, t, r); if (typeof r["fantasy-land/reduce"] == "function") - return pf(e, t, r, "fantasy-land/reduce"); - if (r[hf] != null) - return ff(e, t, r[hf]()); + return ff(e, t, r, "fantasy-land/reduce"); + if (r[pf] != null) + return df(e, t, r[pf]()); if (typeof r.next == "function") - return ff(e, t, r); + return df(e, t, r); if (typeof r.reduce == "function") - return pf(e, t, r, "reduce"); + return ff(e, t, r, "reduce"); throw new TypeError("reduce: list must be array or iterable"); } -function Mn(e, t) { +function In(e, t) { return Object.prototype.hasOwnProperty.call(t, e); } -var mf = Object.prototype.toString, a1 = /* @__PURE__ */ function() { - return mf.call(arguments) === "[object Arguments]" ? function(t) { - return mf.call(t) === "[object Arguments]"; +var hf = Object.prototype.toString, n1 = /* @__PURE__ */ function() { + return hf.call(arguments) === "[object Arguments]" ? function(t) { + return hf.call(t) === "[object Arguments]"; } : function(t) { - return Mn("callee", t); + return In("callee", t); }; -}(), i1 = !/* @__PURE__ */ { +}(), o1 = !/* @__PURE__ */ { toString: null -}.propertyIsEnumerable("toString"), vf = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], gf = /* @__PURE__ */ function() { +}.propertyIsEnumerable("toString"), mf = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], vf = /* @__PURE__ */ function() { return arguments.propertyIsEnumerable("length"); -}(), s1 = function(t, r) { +}(), a1 = function(t, r) { for (var n = 0; n < t.length; ) { if (t[n] === r) return !0; n += 1; } return !1; -}, CV = /* @__PURE__ */ yr(typeof Object.keys == "function" && !gf ? function(t) { +}, gV = /* @__PURE__ */ yr(typeof Object.keys == "function" && !vf ? function(t) { return Object(t) !== t ? [] : Object.keys(t); } : function(t) { if (Object(t) !== t) return []; - var r, n, o = [], a = gf && a1(t); + var r, n, o = [], a = vf && n1(t); for (r in t) - Mn(r, t) && (!a || r !== "length") && (o[o.length] = r); - if (i1) - for (n = vf.length - 1; n >= 0; ) - r = vf[n], Mn(r, t) && !s1(o, r) && (o[o.length] = r), n -= 1; + In(r, t) && (!a || r !== "length") && (o[o.length] = r); + if (o1) + for (n = mf.length - 1; n >= 0; ) + r = mf[n], In(r, t) && !a1(o, r) && (o[o.length] = r), n -= 1; return o; -}), _V = /* @__PURE__ */ yr(function(t) { +}), bV = /* @__PURE__ */ yr(function(t) { return t === null ? "Null" : t === void 0 ? "Undefined" : Object.prototype.toString.call(t).slice(8, -1); }); -function bf(e) { +function gf(e) { return Object.prototype.toString.call(e) === "[object Object]"; } -var l1 = /* @__PURE__ */ qm(function(t, r, n) { +var i1 = /* @__PURE__ */ Hm(function(t, r, n) { var o = {}, a; for (a in r) - Mn(a, r) && (o[a] = Mn(a, n) ? t(a, r[a], n[a]) : r[a]); + In(a, r) && (o[a] = In(a, n) ? t(a, r[a], n[a]) : r[a]); for (a in n) - Mn(a, n) && !Mn(a, o) && (o[a] = n[a]); + In(a, n) && !In(a, o) && (o[a] = n[a]); return o; -}), kV = /* @__PURE__ */ qm(function e(t, r, n) { - return l1(function(o, a, i) { - return bf(a) && bf(i) ? e(t, a, i) : t(o, a, i); +}), yV = /* @__PURE__ */ Hm(function e(t, r, n) { + return i1(function(o, a, i) { + return gf(a) && gf(i) ? e(t, a, i) : t(o, a, i); }, r, n); }); -function $a(e) { - "@babel/helpers - typeof"; - return $a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { - return typeof t; - } : function(t) { - return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; - }, $a(e); -} -function c1(e, t) { - if ($a(e) !== "object" || e === null) - return e; - var r = e[Symbol.toPrimitive]; - if (r !== void 0) { - var n = r.call(e, t || "default"); - if ($a(n) !== "object") - return n; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (t === "string" ? String : Number)(e); -} -function u1(e) { - var t = c1(e, "string"); - return $a(t) === "symbol" ? t : String(t); -} -function d1(e, t, r) { - return t = u1(t), t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r, e; -} -function cs() { - return cs = Object.assign ? Object.assign.bind() : function(e) { +function Wn() { + return Wn = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; - }, cs.apply(this, arguments); + }, Wn.apply(this, arguments); } -var $c = { exports: {} }, Le = {}; +var Oc = { exports: {} }, We = {}; /** @license React v16.13.1 * react-is.production.min.js * @@ -3112,11 +3088,11 @@ var $c = { exports: {} }, Le = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var yf; -function f1() { - if (yf) - return Le; - yf = 1; +var bf; +function s1() { + if (bf) + return We; + bf = 1; var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119; function S(w) { if (typeof w == "object" && w !== null) { @@ -3148,38 +3124,38 @@ function f1() { } } } - function k(w) { + function _(w) { return S(w) === c; } - return Le.AsyncMode = l, Le.ConcurrentMode = c, Le.ContextConsumer = s, Le.ContextProvider = i, Le.Element = t, Le.ForwardRef = u, Le.Fragment = n, Le.Lazy = m, Le.Memo = p, Le.Portal = r, Le.Profiler = a, Le.StrictMode = o, Le.Suspense = d, Le.isAsyncMode = function(w) { - return k(w) || S(w) === l; - }, Le.isConcurrentMode = k, Le.isContextConsumer = function(w) { + return We.AsyncMode = l, We.ConcurrentMode = c, We.ContextConsumer = s, We.ContextProvider = i, We.Element = t, We.ForwardRef = u, We.Fragment = n, We.Lazy = m, We.Memo = p, We.Portal = r, We.Profiler = a, We.StrictMode = o, We.Suspense = d, We.isAsyncMode = function(w) { + return _(w) || S(w) === l; + }, We.isConcurrentMode = _, We.isContextConsumer = function(w) { return S(w) === s; - }, Le.isContextProvider = function(w) { + }, We.isContextProvider = function(w) { return S(w) === i; - }, Le.isElement = function(w) { + }, We.isElement = function(w) { return typeof w == "object" && w !== null && w.$$typeof === t; - }, Le.isForwardRef = function(w) { + }, We.isForwardRef = function(w) { return S(w) === u; - }, Le.isFragment = function(w) { + }, We.isFragment = function(w) { return S(w) === n; - }, Le.isLazy = function(w) { + }, We.isLazy = function(w) { return S(w) === m; - }, Le.isMemo = function(w) { + }, We.isMemo = function(w) { return S(w) === p; - }, Le.isPortal = function(w) { + }, We.isPortal = function(w) { return S(w) === r; - }, Le.isProfiler = function(w) { + }, We.isProfiler = function(w) { return S(w) === a; - }, Le.isStrictMode = function(w) { + }, We.isStrictMode = function(w) { return S(w) === o; - }, Le.isSuspense = function(w) { + }, We.isSuspense = function(w) { return S(w) === d; - }, Le.isValidElementType = function(w) { + }, We.isValidElementType = function(w) { return typeof w == "string" || typeof w == "function" || w === n || w === c || w === a || w === o || w === d || w === f || typeof w == "object" && w !== null && (w.$$typeof === m || w.$$typeof === p || w.$$typeof === i || w.$$typeof === s || w.$$typeof === u || w.$$typeof === v || w.$$typeof === b || w.$$typeof === y || w.$$typeof === h); - }, Le.typeOf = S, Le; + }, We.typeOf = S, We; } -var We = {}; +var Ue = {}; /** @license React v16.13.1 * react-is.development.js * @@ -3188,20 +3164,20 @@ var We = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var xf; -function p1() { - return xf || (xf = 1, process.env.NODE_ENV !== "production" && function() { +var yf; +function l1() { + return yf || (yf = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119; - function S($) { - return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - $ === n || $ === c || $ === a || $ === o || $ === d || $ === f || typeof $ == "object" && $ !== null && ($.$$typeof === m || $.$$typeof === p || $.$$typeof === i || $.$$typeof === s || $.$$typeof === u || $.$$typeof === v || $.$$typeof === b || $.$$typeof === y || $.$$typeof === h); + function S(R) { + return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + R === n || R === c || R === a || R === o || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === m || R.$$typeof === p || R.$$typeof === i || R.$$typeof === s || R.$$typeof === u || R.$$typeof === v || R.$$typeof === b || R.$$typeof === y || R.$$typeof === h); } - function k($) { - if (typeof $ == "object" && $ !== null) { - var Se = $.$$typeof; + function _(R) { + if (typeof R == "object" && R !== null) { + var Se = R.$$typeof; switch (Se) { case t: - var he = $.type; + var he = R.type; switch (he) { case l: case c: @@ -3229,66 +3205,66 @@ function p1() { } } var w = l, M = c, P = s, I = i, z = t, j = u, X = n, ne = m, J = p, Q = r, ee = a, oe = o, D = d, ce = !1; - function fe($) { - return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F($) || k($) === l; + function fe(R) { + return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(R) || _(R) === l; } - function F($) { - return k($) === c; + function F(R) { + return _(R) === c; } - function N($) { - return k($) === s; + function N(R) { + return _(R) === s; } - function V($) { - return k($) === i; + function V(R) { + return _(R) === i; } - function T($) { - return typeof $ == "object" && $ !== null && $.$$typeof === t; + function T(R) { + return typeof R == "object" && R !== null && R.$$typeof === t; } - function O($) { - return k($) === u; + function A(R) { + return _(R) === u; } - function B($) { - return k($) === n; + function B(R) { + return _(R) === n; } - function C($) { - return k($) === m; + function C(R) { + return _(R) === m; } - function H($) { - return k($) === p; + function H(R) { + return _(R) === p; } - function A($) { - return k($) === r; + function O(R) { + return _(R) === r; } - function Z($) { - return k($) === a; + function Z(R) { + return _(R) === a; } - function Y($) { - return k($) === o; + function Y(R) { + return _(R) === o; } - function ae($) { - return k($) === d; + function ae(R) { + return _(R) === d; } - We.AsyncMode = w, We.ConcurrentMode = M, We.ContextConsumer = P, We.ContextProvider = I, We.Element = z, We.ForwardRef = j, We.Fragment = X, We.Lazy = ne, We.Memo = J, We.Portal = Q, We.Profiler = ee, We.StrictMode = oe, We.Suspense = D, We.isAsyncMode = fe, We.isConcurrentMode = F, We.isContextConsumer = N, We.isContextProvider = V, We.isElement = T, We.isForwardRef = O, We.isFragment = B, We.isLazy = C, We.isMemo = H, We.isPortal = A, We.isProfiler = Z, We.isStrictMode = Y, We.isSuspense = ae, We.isValidElementType = S, We.typeOf = k; - }()), We; + Ue.AsyncMode = w, Ue.ConcurrentMode = M, Ue.ContextConsumer = P, Ue.ContextProvider = I, Ue.Element = z, Ue.ForwardRef = j, Ue.Fragment = X, Ue.Lazy = ne, Ue.Memo = J, Ue.Portal = Q, Ue.Profiler = ee, Ue.StrictMode = oe, Ue.Suspense = D, Ue.isAsyncMode = fe, Ue.isConcurrentMode = F, Ue.isContextConsumer = N, Ue.isContextProvider = V, Ue.isElement = T, Ue.isForwardRef = A, Ue.isFragment = B, Ue.isLazy = C, Ue.isMemo = H, Ue.isPortal = O, Ue.isProfiler = Z, Ue.isStrictMode = Y, Ue.isSuspense = ae, Ue.isValidElementType = S, Ue.typeOf = _; + }()), Ue; } -process.env.NODE_ENV === "production" ? $c.exports = f1() : $c.exports = p1(); -var $u = $c.exports, Gm = $u, h1 = { +process.env.NODE_ENV === "production" ? Oc.exports = s1() : Oc.exports = l1(); +var Au = Oc.exports, Ym = Au, c1 = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 -}, m1 = { +}, u1 = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 -}, Xm = {}; -Xm[Gm.ForwardRef] = h1; -Xm[Gm.Memo] = m1; -function Sf(e, t) { +}, qm = {}; +qm[Ym.ForwardRef] = c1; +qm[Ym.Memo] = u1; +function xf(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); @@ -3298,18 +3274,18 @@ function Sf(e, t) { } return r; } -function v1(e) { +function d1(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; - t % 2 ? Sf(Object(r), !0).forEach(function(n) { - d1(e, n, r[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Sf(Object(r)).forEach(function(n) { + t % 2 ? xf(Object(r), !0).forEach(function(n) { + _u(e, n, r[n]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : xf(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } -var g1 = function(t, r) { +var f1 = function(t, r) { if (typeof r == "function") { var n = r(t); if (process.env.NODE_ENV !== "production" && (n == null || typeof n != "object" || Array.isArray(n))) @@ -3318,22 +3294,22 @@ var g1 = function(t, r) { } if (process.env.NODE_ENV !== "production" && (r == null || typeof r != "object" || Array.isArray(r))) throw new Error("[ThemeProvider] Please make your theme prop a plain object"); - return v1({}, t, {}, r); -}, b1 = Xd(function(e) { - return Xd(function(t) { - return g1(e, t); + return d1({}, t, {}, r); +}, p1 = Gd(function(e) { + return Gd(function(t) { + return f1(e, t); }); -}), EV = function(t) { - return /* @__PURE__ */ ir(Aa.Consumer, null, function(r) { - return t.theme !== r && (r = b1(r)(t.theme)), /* @__PURE__ */ ir(Aa.Provider, { +}), xV = function(t) { + return /* @__PURE__ */ ir(Ra.Consumer, null, function(r) { + return t.theme !== r && (r = p1(r)(t.theme)), /* @__PURE__ */ ir(Ra.Provider, { value: r }, t.children); }); }; -function y1() { - return It.useContext(Aa); +function h1() { + return It.useContext(Ra); } -const x1 = { +const m1 = { color: "primary", bg: "transparent", borderWidth: "1px", @@ -3357,7 +3333,7 @@ const x1 = { bg: "unset", color: "gray" } -}, S1 = { +}, v1 = { color: "primary", bg: "unset", textDecoration: "underline", @@ -3372,7 +3348,7 @@ const x1 = { color: "gray", textDecoration: "none" } -}, w1 = { +}, g1 = { color: "white", bg: "primary", borderWidth: "1px", @@ -3399,7 +3375,7 @@ const x1 = { borderColor: "gray", boxShadow: "disabled" } -}, C1 = { +}, b1 = { color: "primary", bg: "white", borderWidth: "1px", @@ -3424,7 +3400,7 @@ const x1 = { borderColor: "grayShade1", boxShadow: "disabled" } -}, _1 = { +}, y1 = { variant: "buttons.secondary", color: "labels.red", borderColor: "grayShade2", @@ -3445,13 +3421,13 @@ const x1 = { borderColor: "grayShade1", boxShadow: "disabled" } -}, k1 = { - ghost: x1, - alert: _1, - inline: S1, - primary: w1, - secondary: C1 -}, E1 = { +}, x1 = { + ghost: m1, + alert: y1, + inline: v1, + primary: g1, + secondary: b1 +}, S1 = { bg: "white", boxShadow: "secondary", borderColor: "grayShade2", @@ -3469,7 +3445,7 @@ const x1 = { "& path": { fill: "black" } -}, P1 = { +}, w1 = { bg: "white", borderColor: "white", ":hover": { @@ -3487,7 +3463,7 @@ const x1 = { "& path": { fill: "black" } -}, T1 = { +}, C1 = { bg: "transparent", borderColor: "transparent", ":hover": { @@ -3506,11 +3482,11 @@ const x1 = { "& path": { fill: "black" } -}, A1 = { - "icon-primary": E1, - "icon-ghost": P1, - "icon-ghost-white": T1 -}, O1 = { +}, _1 = { + "icon-primary": S1, + "icon-ghost": w1, + "icon-ghost-white": C1 +}, k1 = { color: "black", bg: "grayShade3", borderTopColor: "primary", @@ -3526,9 +3502,9 @@ const x1 = { color: "black", bg: "grayShade3" } -}, $1 = { - "footer-primary": O1 -}, R1 = { +}, E1 = { + "footer-primary": k1 +}, P1 = { color: "primary", bg: "white", borderWidth: "1px", @@ -3552,9 +3528,9 @@ const x1 = { borderColor: "grayShade1", boxShadow: "disabled" } -}, D1 = { - "file-secondary": R1 -}, M1 = { +}, T1 = { + "file-secondary": P1 +}, A1 = { primary: { div: { bg: "grayShade3", @@ -3589,9 +3565,9 @@ const x1 = { borderColor: "transparent" } } -}, I1 = { +}, O1 = { color: "black" -}, F1 = { +}, R1 = { bg: "black", color: "white", // Arrow @@ -3603,25 +3579,25 @@ const x1 = { pl: "10px", color: "gray" } -}, N1 = { +}, $1 = { bg: "white", color: "black", borderColor: "grayShade2" -}, j1 = { +}, D1 = { bg: "white", color: "black", borderColor: "gray" -}, B1 = { - card: N1, - readOnly: j1 -}, z1 = { +}, M1 = { + card: $1, + readOnly: D1 +}, I1 = { color: "labels.red" -}, V1 = { +}, F1 = { color: "darkGray" -}, L1 = { - error: z1, - default: V1 -}, W1 = { +}, N1 = { + error: I1, + default: F1 +}, j1 = { color: "black", bg: "grayShade3", ":hover": { @@ -3650,27 +3626,27 @@ const x1 = { "~ svg path": { fill: "gray" } -}, U1 = { +}, B1 = { variant: "inputs.primary", bg: "white", ":focus": { borderColor: "gray" } -}, H1 = { +}, z1 = { variant: "inputs.primary", bg: "grayShade2", borderColor: "grayShade2", ":focus": { borderColor: "grayShade2" } -}, Y1 = { - disabled: H1, - primary: W1, - white: U1 -}, q1 = { +}, V1 = { + disabled: z1, + primary: j1, + white: B1 +}, L1 = { default: "transparent", error: "labels.red" -}, G1 = { +}, W1 = { bg: "white", borderLeftColor: "grayShade2", "> div:first-of-type": { @@ -3685,7 +3661,7 @@ const x1 = { "~ div": { borderTopColor: "grayShade3" } -}, X1 = { +}, U1 = { bg: "white", borderRightColor: "grayShade2", "> div": { @@ -3694,7 +3670,7 @@ const x1 = { fill: "gray" } } -}, K1 = { +}, H1 = { color: "black", bg: "white", cursor: "pointer", @@ -3718,7 +3694,7 @@ const x1 = { "~ div": { borderTopColor: "grayShade3" } -}, Z1 = { +}, Y1 = { bg: "primaryShade2", color: "primary", path: { @@ -3728,44 +3704,44 @@ const x1 = { "~ div": { borderTopColor: "primaryShade2" } -}, J1 = { +}, q1 = { variant: "navigation.item.default", cursor: "default", ":hover": {}, ":active": {} -}, Q1 = { - default: K1, - active: Z1, - disabled: J1 -}, ew = { +}, G1 = { + default: H1, + active: Y1, + disabled: q1 +}, X1 = { variant: "navigation.subItem.default", cursor: "default", ":hover": {}, ":active": {} -}, tw = { +}, K1 = { variant: "navigation.item.default", borderLeftWidth: "2px", borderLeftStyle: "solid", borderLeftColor: "grayShade2" -}, rw = { +}, Z1 = { variant: "navigation.subItem.default", color: "primary", cursor: "default", borderLeftColor: "primary", ":hover": {} -}, nw = { - default: tw, - active: rw, - disabled: ew -}, ow = { - container: X1, - item: Q1, - subItem: nw, - category: G1 -}, aw = { +}, J1 = { + default: K1, + active: Z1, + disabled: X1 +}, Q1 = { + container: U1, + item: G1, + subItem: J1, + category: W1 +}, ew = { bg: "white", boxShadow: "list" -}, iw = { +}, tw = { color: "black", bg: "white", fontWeight: "label", @@ -3776,16 +3752,16 @@ const x1 = { ":hover": { bg: "grayShade3" } -}, sw = { +}, rw = { variant: "variants.list.item.primary", bg: "grayShade3" -}, lw = { - primary: iw, - active: sw -}, cw = { - container: aw, - item: lw -}, uw = { +}, nw = { + primary: tw, + active: rw +}, ow = { + container: ew, + item: nw +}, aw = { bg: "white", borderBottomColor: "grayShade2", zIndex: "modals", @@ -3799,79 +3775,79 @@ const x1 = { } } } -}, dw = { +}, iw = { fontFamily: "title", fontSize: "title", fontWeight: "title", color: "black" -}, fw = { +}, sw = { fontFamily: "subtitle", fontSize: "subtitle", fontWeight: "subtitle", color: "black" -}, pw = { +}, lw = { fontFamily: "label", fontSize: "label", fontWeight: 500, color: "black" -}, hw = { +}, cw = { fontFamily: "microlabel", fontSize: "microlabel", fontWeight: "microlabel", color: "black" -}, mw = { +}, uw = { variant: "text.microlabeling", color: "gray" -}, vw = { +}, dw = { fontFamily: "value", fontSize: "value", fontWeight: "value", color: "black" -}, gw = { +}, fw = { variant: "text.value", color: "primary" -}, bw = { +}, pw = { fontFamily: "text", fontSize: "text", fontWeight: "text", color: "black" -}, yw = { +}, hw = { variant: "text.labeling", color: "gray" -}, xw = { +}, mw = { color: "gray" -}, Sw = { +}, vw = { color: "primary" -}, ww = { +}, gw = { color: "labels.orange" -}, wf = { - title: dw, - text: bw, - subtitle: fw, - labeling: pw, - value: vw, - valuePrimary: gw, - labelingGray: yw, - microlabeling: hw, - microlabelingGray: mw, - inputValidationneutral: xw, - inputValidationsuccess: Sw, - inputValidationwarning: ww -}, Cw = { +}, Sf = { + title: iw, + text: pw, + subtitle: sw, + labeling: lw, + value: dw, + valuePrimary: fw, + labelingGray: hw, + microlabeling: cw, + microlabelingGray: uw, + inputValidationneutral: mw, + inputValidationsuccess: vw, + inputValidationwarning: gw +}, bw = { bg: "white", borderTopColor: "primary", boxShadow: "popup" -}, _w = { +}, yw = { bg: "white", ":not(:last-of-type)": { borderBottomColor: "grayShade3", borderBottomWidth: "2px", borderBottomStyle: "solid" } -}, kw = { - drawerSection: _w, - primary: Cw -}, Ew = { +}, xw = { + drawerSection: yw, + primary: bw +}, Sw = { black: { bg: "black", color: "white" @@ -3880,7 +3856,7 @@ const x1 = { bg: "labels.green", color: "white" } -}, Pw = { +}, ww = { red: { bg: "labels.red" }, @@ -3890,7 +3866,7 @@ const x1 = { gray: { bg: "gray" } -}, Tw = { +}, Cw = { bg: "grayShade2", borderColor: "gray", "> span": { @@ -3898,7 +3874,7 @@ const x1 = { bg: "white" } } -}, Aw = { +}, _w = { bg: "white", borderColor: "gray", "> span": { @@ -3906,10 +3882,10 @@ const x1 = { bg: "grayShade2" } } -}, Ow = { - gray: Tw, - white: Aw -}, $w = { +}, kw = { + gray: Cw, + white: _w +}, Ew = { default: { "> span": { color: "grayShade3" @@ -3952,7 +3928,7 @@ const x1 = { }, bg: "labels.yellow" } -}, Rw = { +}, Pw = { default: { "> span": { color: "black" @@ -4009,13 +3985,13 @@ const x1 = { border: "1px solid", borderColor: "labels.yellow" } -}, Dw = { - keyValue: Ow, - primary: $w, - bordered: Rw, - dot: Ew, - blink: Pw -}, Mw = { +}, Tw = { + keyValue: kw, + primary: Ew, + bordered: Pw, + dot: Sw, + blink: ww +}, Aw = { primary: { span: { bg: "grayShade3", @@ -4032,7 +4008,7 @@ const x1 = { bg: "grayShade1" } } -}, Iw = { +}, Ow = { primary: { span: { bg: "grayShade3", @@ -4049,7 +4025,7 @@ const x1 = { bg: "grayShade1" } } -}, Fw = { +}, Rw = { bg: "grayShade3", borderColor: "transparent", cursor: "pointer", @@ -4059,26 +4035,26 @@ const x1 = { ":focus": { borderColor: "gray" } -}, Nw = { +}, $w = { variant: "variants.select.primary", bg: "white" -}, jw = { +}, Dw = { bg: "grayShade2", borderColor: "transparent", cursor: "default", pointerEvents: "none" -}, Bw = { - disabled: jw, - primary: Fw, - white: Nw -}, zw = { +}, Mw = { + disabled: Dw, + primary: Rw, + white: $w +}, Iw = { color: "labels.red" -}, Vw = { +}, Fw = { color: "darkGray" -}, Lw = { - error: zw, - default: Vw -}, Ww = { +}, Nw = { + error: Iw, + default: Fw +}, jw = { progress: { bg: "labels.green", "> span": { @@ -4091,7 +4067,7 @@ const x1 = { bg: "#EBEBEB" } } -}, Uw = { +}, Bw = { black: { bg: "grayShade2", "> div": { @@ -4116,7 +4092,7 @@ const x1 = { bg: "labels.orange" } } -}, Hw = { +}, zw = { bg: "primaryShade2", whiteSpace: "pre-wrap", pre: { @@ -4125,7 +4101,7 @@ const x1 = { fontSize: "value", whiteSpace: "pre-wrap" } -}, Yw = { +}, Vw = { color: "labels.green", bg: "primaryShade2", borderLeftWidth: 0, @@ -4141,7 +4117,7 @@ const x1 = { } } } -}, qw = { +}, Lw = { color: "labels.red", bg: "labels.redShade2", borderLeftWidth: 0, @@ -4157,7 +4133,7 @@ const x1 = { } } } -}, Gw = { +}, Ww = { color: "labels.orange", bg: "labels.orangeShade2", borderLeftWidth: 0, @@ -4173,7 +4149,7 @@ const x1 = { } } } -}, Xw = { +}, Uw = { color: "black", bg: "grayShade2", borderLeftWidth: 0, @@ -4189,18 +4165,18 @@ const x1 = { } } } -}, Kw = { - valid: Yw, - error: qw, - warning: Gw, - neutral: Xw -}, Zw = { +}, Hw = { + valid: Vw, + error: Lw, + warning: Ww, + neutral: Uw +}, Yw = { primary: { path: { fill: "black" } } -}, Jw = { +}, qw = { bg: "transparent", label: { color: "black", @@ -4216,7 +4192,7 @@ const x1 = { "& > div > button:disabled > svg > path": { fill: "grayShade1" } -}, Qw = { +}, Gw = { variant: "pagination.primary", label: { color: "black", @@ -4229,7 +4205,7 @@ const x1 = { borderColor: "gray" } } -}, eC = { +}, Xw = { variant: "pagination.primary", label: { color: "black", @@ -4240,18 +4216,18 @@ const x1 = { "& > div > button:disabled > svg > path": { fill: "grayShade1" } -}, tC = { - primary: Jw, - white: Qw, - disabled: eC -}, rC = { +}, Kw = { + primary: qw, + white: Gw, + disabled: Xw +}, Zw = { secondary: { notification: { bg: "white", borderColor: "grayShade2" } } -}, nC = { +}, Jw = { primary: "#21B182", primaryShade1: "#65D3AF", primaryShade2: "#E6F2EE", @@ -4275,8 +4251,8 @@ const x1 = { orangeShade2: "#FDF0E4", redShade2: "#F8DEDE" } -}, oC = { - colors: nC, +}, Qw = { + colors: Jw, fonts: { text: "Inter", title: "Inter", @@ -4326,27 +4302,27 @@ const x1 = { focused: "0 0 0 2px rgba(33, 177, 130, 0.6)" }, variants: { - ...B1, - tooltip: F1, - label: I1, - list: cw, - header: uw, - checkbox: Mw, - radio: Iw, - badges: Dw, - popup: kw, - bar: Ww, - perf: Uw, - code: Hw, - select: Bw, - callout: Kw, - icon: Zw, - ...wf + ...M1, + tooltip: R1, + label: O1, + list: ow, + header: aw, + checkbox: Aw, + radio: Ow, + badges: Tw, + popup: xw, + bar: jw, + perf: Bw, + code: zw, + select: Mw, + callout: Hw, + icon: Yw, + ...Sf }, text: { - inputInfo: L1, - selectInfo: Lw, - ...wf + inputInfo: N1, + selectInfo: Nw, + ...Sf }, zIndices: { default: 10, @@ -4356,18 +4332,18 @@ const x1 = { notifications: 50 }, buttons: { - ...k1, - ...A1, - ...$1, - ...D1, - toggleButton: M1 - }, - navigation: ow, - inputs: Y1, - inputIntents: q1, - pagination: tC, - notification: rC -}, aC = { + ...x1, + ..._1, + ...E1, + ...T1, + toggleButton: A1 + }, + navigation: Q1, + inputs: V1, + inputIntents: L1, + pagination: Kw, + notification: Zw +}, eC = { white: "#181a1b", gray: "#A6A6A6", grayShade1: "#707070", @@ -4391,7 +4367,7 @@ const x1 = { redShade2: "#4E3131", purpleShade2: "#8449BB" } -}, iC = { +}, tC = { primary: "0 0 1px 2px rgba(160, 160, 160, 0.1)", secondary: "0 0 1px 2px rgba(160, 160, 160, 0.1)", explorer: "0 0 1px 2px rgba(160, 160, 160, 0.1)", @@ -4403,23 +4379,23 @@ const x1 = { popup: "0 0 1px 2px rgba(160, 160, 160, 0.1)", notification: "0 0 1px 2px rgba(160, 160, 160, 0.1)", focused: "0 0 0 2px rgba(33, 177, 130, 0.6)" -}, PV = () => y1(), TV = { - ...oC, - colors: aC, - shadows: iC +}, SV = () => h1(), wV = { + ...Qw, + colors: eC, + shadows: tC }; -function sC(e) { +function rC(e) { if (e.sheet) return e.sheet; for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t]; } -function lC(e) { +function nC(e) { var t = document.createElement("style"); return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t; } -var cC = /* @__PURE__ */ function() { +var oC = /* @__PURE__ */ function() { function e(r) { var n = this; this._insertTag = function(o) { @@ -4431,7 +4407,7 @@ var cC = /* @__PURE__ */ function() { return t.hydrate = function(n) { n.forEach(this._insertTag); }, t.insert = function(n) { - this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(lC(this)); + this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(nC(this)); var o = this.tags[this.tags.length - 1]; if (process.env.NODE_ENV !== "production") { var a = n.charCodeAt(0) === 64 && n.charCodeAt(1) === 105; @@ -4439,7 +4415,7 @@ var cC = /* @__PURE__ */ function() { ` + n + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !a; } if (this.isSpeedy) { - var i = sC(o); + var i = rC(o); try { i.insertRule(n, i.cssRules.length); } catch (s) { @@ -4453,14 +4429,14 @@ var cC = /* @__PURE__ */ function() { return n.parentNode && n.parentNode.removeChild(n); }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1); }, e; -}(), Tt = "-ms-", us = "-moz-", Be = "-webkit-", Ru = "comm", Du = "rule", Mu = "decl", uC = "@import", Km = "@keyframes", dC = "@layer", fC = Math.abs, js = String.fromCharCode, pC = Object.assign; -function hC(e, t) { +}(), Tt = "-ms-", cs = "-moz-", Be = "-webkit-", Ou = "comm", Ru = "rule", $u = "decl", aC = "@import", Gm = "@keyframes", iC = "@layer", sC = Math.abs, Ns = String.fromCharCode, lC = Object.assign; +function cC(e, t) { return kt(e, 0) ^ 45 ? (((t << 2 ^ kt(e, 0)) << 2 ^ kt(e, 1)) << 2 ^ kt(e, 2)) << 2 ^ kt(e, 3) : 0; } -function Zm(e) { +function Xm(e) { return e.trim(); } -function mC(e, t) { +function uC(e, t) { return (e = t.exec(e)) ? e[0] : e; } function ze(e, t, r) { @@ -4472,47 +4448,47 @@ function Rc(e, t) { function kt(e, t) { return e.charCodeAt(t) | 0; } -function Ra(e, t, r) { +function Da(e, t, r) { return e.slice(t, r); } function $r(e) { return e.length; } -function Iu(e) { +function Du(e) { return e.length; } function Si(e, t) { return t.push(e), e; } -function vC(e, t) { +function dC(e, t) { return e.map(t).join(""); } -var Bs = 1, Eo = 1, Jm = 0, Ht = 0, vt = 0, Fo = ""; -function zs(e, t, r, n, o, a, i) { - return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Bs, column: Eo, length: i, return: "" }; +var js = 1, Po = 1, Km = 0, Ht = 0, vt = 0, No = ""; +function Bs(e, t, r, n, o, a, i) { + return { value: e, root: t, parent: r, type: n, props: o, children: a, line: js, column: Po, length: i, return: "" }; } -function Go(e, t) { - return pC(zs("", null, null, "", null, null, 0), e, { length: -e.length }, t); +function Xo(e, t) { + return lC(Bs("", null, null, "", null, null, 0), e, { length: -e.length }, t); } -function gC() { +function fC() { return vt; } -function bC() { - return vt = Ht > 0 ? kt(Fo, --Ht) : 0, Eo--, vt === 10 && (Eo = 1, Bs--), vt; +function pC() { + return vt = Ht > 0 ? kt(No, --Ht) : 0, Po--, vt === 10 && (Po = 1, js--), vt; } function Kt() { - return vt = Ht < Jm ? kt(Fo, Ht++) : 0, Eo++, vt === 10 && (Eo = 1, Bs++), vt; + return vt = Ht < Km ? kt(No, Ht++) : 0, Po++, vt === 10 && (Po = 1, js++), vt; } -function Dr() { - return kt(Fo, Ht); +function Mr() { + return kt(No, Ht); } function zi() { return Ht; } function Ja(e, t) { - return Ra(Fo, e, t); + return Da(No, e, t); } -function Da(e) { +function Ma(e) { switch (e) { case 0: case 9: @@ -4544,36 +4520,36 @@ function Da(e) { } return 0; } -function Qm(e) { - return Bs = Eo = 1, Jm = $r(Fo = e), Ht = 0, []; +function Zm(e) { + return js = Po = 1, Km = $r(No = e), Ht = 0, []; } -function ev(e) { - return Fo = "", e; +function Jm(e) { + return No = "", e; } function Vi(e) { - return Zm(Ja(Ht - 1, Dc(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); + return Xm(Ja(Ht - 1, $c(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } -function yC(e) { - for (; (vt = Dr()) && vt < 33; ) +function hC(e) { + for (; (vt = Mr()) && vt < 33; ) Kt(); - return Da(e) > 2 || Da(vt) > 3 ? "" : " "; + return Ma(e) > 2 || Ma(vt) > 3 ? "" : " "; } -function xC(e, t) { +function mC(e, t) { for (; --t && Kt() && !(vt < 48 || vt > 102 || vt > 57 && vt < 65 || vt > 70 && vt < 97); ) ; - return Ja(e, zi() + (t < 6 && Dr() == 32 && Kt() == 32)); + return Ja(e, zi() + (t < 6 && Mr() == 32 && Kt() == 32)); } -function Dc(e) { +function $c(e) { for (; Kt(); ) switch (vt) { case e: return Ht; case 34: case 39: - e !== 34 && e !== 39 && Dc(vt); + e !== 34 && e !== 39 && $c(vt); break; case 40: - e === 41 && Dc(e); + e === 41 && $c(e); break; case 92: Kt(); @@ -4581,22 +4557,22 @@ function Dc(e) { } return Ht; } -function SC(e, t) { +function vC(e, t) { for (; Kt() && e + vt !== 47 + 10; ) - if (e + vt === 42 + 42 && Dr() === 47) + if (e + vt === 42 + 42 && Mr() === 47) break; - return "/*" + Ja(t, Ht - 1) + "*" + js(e === 47 ? e : Kt()); + return "/*" + Ja(t, Ht - 1) + "*" + Ns(e === 47 ? e : Kt()); } -function wC(e) { - for (; !Da(Dr()); ) +function gC(e) { + for (; !Ma(Mr()); ) Kt(); return Ja(e, Ht); } -function CC(e) { - return ev(Li("", null, null, null, [""], e = Qm(e), 0, [0], e)); +function bC(e) { + return Jm(Li("", null, null, null, [""], e = Zm(e), 0, [0], e)); } function Li(e, t, r, n, o, a, i, s, l) { - for (var c = 0, u = 0, d = i, f = 0, p = 0, m = 0, h = 1, v = 1, b = 1, y = 0, S = "", k = o, w = a, M = n, P = S; v; ) + for (var c = 0, u = 0, d = i, f = 0, p = 0, m = 0, h = 1, v = 1, b = 1, y = 0, S = "", _ = o, w = a, M = n, P = S; v; ) switch (m = y, y = Kt()) { case 40: if (m != 108 && kt(P, d - 1) == 58) { @@ -4612,16 +4588,16 @@ function Li(e, t, r, n, o, a, i, s, l) { case 10: case 13: case 32: - P += yC(m); + P += hC(m); break; case 92: - P += xC(zi() - 1, 7); + P += mC(zi() - 1, 7); continue; case 47: - switch (Dr()) { + switch (Mr()) { case 42: case 47: - Si(_C(SC(Kt(), zi()), t, r), l); + Si(yC(vC(Kt(), zi()), t, r), l); break; default: P += "/"; @@ -4637,21 +4613,21 @@ function Li(e, t, r, n, o, a, i, s, l) { case 125: v = 0; case 59 + u: - b == -1 && (P = ze(P, /\f/g, "")), p > 0 && $r(P) - d && Si(p > 32 ? _f(P + ";", n, r, d - 1) : _f(ze(P, " ", "") + ";", n, r, d - 2), l); + b == -1 && (P = ze(P, /\f/g, "")), p > 0 && $r(P) - d && Si(p > 32 ? Cf(P + ";", n, r, d - 1) : Cf(ze(P, " ", "") + ";", n, r, d - 2), l); break; case 59: P += ";"; default: - if (Si(M = Cf(P, t, r, c, u, o, s, S, k = [], w = [], d), a), y === 123) + if (Si(M = wf(P, t, r, c, u, o, s, S, _ = [], w = [], d), a), y === 123) if (u === 0) - Li(P, t, M, M, k, a, d, s, w); + Li(P, t, M, M, _, a, d, s, w); else switch (f === 99 && kt(P, 3) === 110 ? 100 : f) { case 100: case 108: case 109: case 115: - Li(e, M, M, n && Si(Cf(e, M, M, 0, 0, o, s, S, o, k = [], d), w), o, w, d, s, n ? k : w); + Li(e, M, M, n && Si(wf(e, M, M, 0, 0, o, s, S, o, _ = [], d), w), o, w, d, s, n ? _ : w); break; default: Li(P, M, M, M, [""], w, 0, s, w); @@ -4665,10 +4641,10 @@ function Li(e, t, r, n, o, a, i, s, l) { if (h < 1) { if (y == 123) --h; - else if (y == 125 && h++ == 0 && bC() == 125) + else if (y == 125 && h++ == 0 && pC() == 125) continue; } - switch (P += js(y), y * h) { + switch (P += Ns(y), y * h) { case 38: b = u > 0 ? 1 : (P += "\f", -1); break; @@ -4676,7 +4652,7 @@ function Li(e, t, r, n, o, a, i, s, l) { s[c++] = ($r(P) - 1) * b, b = 1; break; case 64: - Dr() === 45 && (P += Vi(Kt())), f = Dr(), u = d = $r(S = P += wC(zi())), y++; + Mr() === 45 && (P += Vi(Kt())), f = Mr(), u = d = $r(S = P += gC(zi())), y++; break; case 45: m === 45 && $r(P) == 2 && (h = 0); @@ -4684,54 +4660,54 @@ function Li(e, t, r, n, o, a, i, s, l) { } return a; } -function Cf(e, t, r, n, o, a, i, s, l, c, u) { - for (var d = o - 1, f = o === 0 ? a : [""], p = Iu(f), m = 0, h = 0, v = 0; m < n; ++m) - for (var b = 0, y = Ra(e, d + 1, d = fC(h = i[m])), S = e; b < p; ++b) - (S = Zm(h > 0 ? f[b] + " " + y : ze(y, /&\f/g, f[b]))) && (l[v++] = S); - return zs(e, t, r, o === 0 ? Du : s, l, c, u); +function wf(e, t, r, n, o, a, i, s, l, c, u) { + for (var d = o - 1, f = o === 0 ? a : [""], p = Du(f), m = 0, h = 0, v = 0; m < n; ++m) + for (var b = 0, y = Da(e, d + 1, d = sC(h = i[m])), S = e; b < p; ++b) + (S = Xm(h > 0 ? f[b] + " " + y : ze(y, /&\f/g, f[b]))) && (l[v++] = S); + return Bs(e, t, r, o === 0 ? Ru : s, l, c, u); } -function _C(e, t, r) { - return zs(e, t, r, Ru, js(gC()), Ra(e, 2, -2), 0); +function yC(e, t, r) { + return Bs(e, t, r, Ou, Ns(fC()), Da(e, 2, -2), 0); } -function _f(e, t, r, n) { - return zs(e, t, r, Mu, Ra(e, 0, n), Ra(e, n + 1, -1), n); +function Cf(e, t, r, n) { + return Bs(e, t, r, $u, Da(e, 0, n), Da(e, n + 1, -1), n); } -function ho(e, t) { - for (var r = "", n = Iu(e), o = 0; o < n; o++) +function mo(e, t) { + for (var r = "", n = Du(e), o = 0; o < n; o++) r += t(e[o], o, e, t) || ""; return r; } -function kC(e, t, r, n) { +function xC(e, t, r, n) { switch (e.type) { - case dC: + case iC: if (e.children.length) break; - case uC: - case Mu: + case aC: + case $u: return e.return = e.return || e.value; - case Ru: + case Ou: return ""; - case Km: - return e.return = e.value + "{" + ho(e.children, n) + "}"; - case Du: + case Gm: + return e.return = e.value + "{" + mo(e.children, n) + "}"; + case Ru: e.value = e.props.join(","); } - return $r(r = ho(e.children, n)) ? e.return = e.value + "{" + r + "}" : ""; + return $r(r = mo(e.children, n)) ? e.return = e.value + "{" + r + "}" : ""; } -function EC(e) { - var t = Iu(e); +function SC(e) { + var t = Du(e); return function(r, n, o, a) { for (var i = "", s = 0; s < t; s++) i += e[s](r, n, o, a) || ""; return i; }; } -function PC(e) { +function wC(e) { return function(t) { t.root || (t = t.return) && e(t); }; } -var kf = function(t) { +var _f = function(t) { var r = /* @__PURE__ */ new WeakMap(); return function(n) { if (r.has(n)) @@ -4740,62 +4716,62 @@ var kf = function(t) { return r.set(n, o), o; }; }; -function tv(e) { +function Qm(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } -var TC = function(t, r, n) { - for (var o = 0, a = 0; o = a, a = Dr(), o === 38 && a === 12 && (r[n] = 1), !Da(a); ) +var CC = function(t, r, n) { + for (var o = 0, a = 0; o = a, a = Mr(), o === 38 && a === 12 && (r[n] = 1), !Ma(a); ) Kt(); return Ja(t, Ht); -}, AC = function(t, r) { +}, _C = function(t, r) { var n = -1, o = 44; do - switch (Da(o)) { + switch (Ma(o)) { case 0: - o === 38 && Dr() === 12 && (r[n] = 1), t[n] += TC(Ht - 1, r, n); + o === 38 && Mr() === 12 && (r[n] = 1), t[n] += CC(Ht - 1, r, n); break; case 2: t[n] += Vi(o); break; case 4: if (o === 44) { - t[++n] = Dr() === 58 ? "&\f" : "", r[n] = t[n].length; + t[++n] = Mr() === 58 ? "&\f" : "", r[n] = t[n].length; break; } default: - t[n] += js(o); + t[n] += Ns(o); } while (o = Kt()); return t; -}, OC = function(t, r) { - return ev(AC(Qm(t), r)); -}, Ef = /* @__PURE__ */ new WeakMap(), $C = function(t) { +}, kC = function(t, r) { + return Jm(_C(Zm(t), r)); +}, kf = /* @__PURE__ */ new WeakMap(), EC = function(t) { if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo // negative .length indicates that this rule has been already prefixed t.length < 1)) { for (var r = t.value, n = t.parent, o = t.column === n.column && t.line === n.line; n.type !== "rule"; ) if (n = n.parent, !n) return; - if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Ef.get(n)) && !o) { - Ef.set(t, !0); - for (var a = [], i = OC(r, a), s = n.props, l = 0, c = 0; l < i.length; l++) + if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !kf.get(n)) && !o) { + kf.set(t, !0); + for (var a = [], i = kC(r, a), s = n.props, l = 0, c = 0; l < i.length; l++) for (var u = 0; u < s.length; u++, c++) t.props[c] = a[l] ? i[l].replace(/&\f/g, s[u]) : s[u] + " " + i[l]; } } -}, RC = function(t) { +}, PC = function(t) { if (t.type === "decl") { var r = t.value; // charcode for l r.charCodeAt(0) === 108 && // charcode for b r.charCodeAt(2) === 98 && (t.return = "", t.value = ""); } -}, DC = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", MC = function(t) { - return t.type === "comm" && t.children.indexOf(DC) > -1; -}, IC = function(t) { +}, TC = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", AC = function(t) { + return t.type === "comm" && t.children.indexOf(TC) > -1; +}, OC = function(t) { return function(r, n, o) { if (!(r.type !== "rule" || t.compat)) { var a = r.value.match(/(:first|:nth|:nth-last)-child/g); @@ -4808,7 +4784,7 @@ var TC = function(t, r, n) { if (c.line < r.line) break; if (c.column < r.column) { - if (MC(c)) + if (AC(c)) return; break; } @@ -4819,20 +4795,20 @@ var TC = function(t, r, n) { } } }; -}, rv = function(t) { +}, ev = function(t) { return t.type.charCodeAt(1) === 105 && t.type.charCodeAt(0) === 64; -}, FC = function(t, r) { +}, RC = function(t, r) { for (var n = t - 1; n >= 0; n--) - if (!rv(r[n])) + if (!ev(r[n])) return !0; return !1; -}, Pf = function(t) { +}, Ef = function(t) { t.type = "", t.value = "", t.return = "", t.children = "", t.props = ""; -}, NC = function(t, r, n) { - rv(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), Pf(t)) : FC(r, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), Pf(t))); +}, $C = function(t, r, n) { + ev(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), Ef(t)) : RC(r, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), Ef(t))); }; -function nv(e, t) { - switch (hC(e, t)) { +function tv(e, t) { + switch (cC(e, t)) { case 5103: return Be + "print-" + e + e; case 5737: @@ -4866,7 +4842,7 @@ function nv(e, t) { case 4810: case 6968: case 2756: - return Be + e + us + e + Tt + e + e; + return Be + e + cs + e + Tt + e + e; case 6828: case 4268: return Be + e + Tt + e + e; @@ -4916,9 +4892,9 @@ function nv(e, t) { if (kt(e, t + 4) !== 45) break; case 102: - return ze(e, /(.+:)(.+)-([^]+)/, "$1" + Be + "$2-$3$1" + us + (kt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; + return ze(e, /(.+:)(.+)-([^]+)/, "$1" + Be + "$2-$3$1" + cs + (kt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: - return ~Rc(e, "stretch") ? nv(ze(e, "stretch", "fill-available"), t) + e : e; + return ~Rc(e, "stretch") ? tv(ze(e, "stretch", "fill-available"), t) + e : e; } break; case 4949: @@ -4945,38 +4921,38 @@ function nv(e, t) { } return e; } -var jC = function(t, r, n, o) { +var DC = function(t, r, n, o) { if (t.length > -1 && !t.return) switch (t.type) { - case Mu: - t.return = nv(t.value, t.length); + case $u: + t.return = tv(t.value, t.length); break; - case Km: - return ho([Go(t, { + case Gm: + return mo([Xo(t, { value: ze(t.value, "@", "@" + Be) })], o); - case Du: + case Ru: if (t.length) - return vC(t.props, function(a) { - switch (mC(a, /(::plac\w+|:read-\w+)/)) { + return dC(t.props, function(a) { + switch (uC(a, /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": - return ho([Go(t, { - props: [ze(a, /:(read-\w+)/, ":" + us + "$1")] + return mo([Xo(t, { + props: [ze(a, /:(read-\w+)/, ":" + cs + "$1")] })], o); case "::placeholder": - return ho([Go(t, { + return mo([Xo(t, { props: [ze(a, /:(plac\w+)/, ":" + Be + "input-$1")] - }), Go(t, { - props: [ze(a, /:(plac\w+)/, ":" + us + "$1")] - }), Go(t, { + }), Xo(t, { + props: [ze(a, /:(plac\w+)/, ":" + cs + "$1")] + }), Xo(t, { props: [ze(a, /:(plac\w+)/, Tt + "input-$1")] })], o); } return ""; }); } -}, BC = [jC], zC = function(t) { +}, MC = [DC], IC = function(t) { var r = t.key; if (process.env.NODE_ENV !== "production" && !r) throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. @@ -4988,7 +4964,7 @@ If multiple caches share the same key they might "fight" for each other's style v.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", "")); }); } - var o = t.stylisPlugins || BC; + var o = t.stylisPlugins || MC; if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r)) throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed'); var a = {}, i, s = []; @@ -5002,19 +4978,19 @@ If multiple caches share the same key they might "fight" for each other's style s.push(h); } ); - var l, c = [$C, RC]; - process.env.NODE_ENV !== "production" && c.push(IC({ + var l, c = [EC, PC]; + process.env.NODE_ENV !== "production" && c.push(OC({ get compat() { return m.compat; } - }), NC); + }), $C); { - var u, d = [kC, process.env.NODE_ENV !== "production" ? function(h) { - h.root || (h.return ? u.insert(h.return) : h.value && h.type !== Ru && u.insert(h.value + "{}")); - } : PC(function(h) { + var u, d = [xC, process.env.NODE_ENV !== "production" ? function(h) { + h.root || (h.return ? u.insert(h.return) : h.value && h.type !== Ou && u.insert(h.value + "{}")); + } : wC(function(h) { u.insert(h); - })], f = EC(c.concat(o, d)), p = function(v) { - return ho(CC(v), f); + })], f = SC(c.concat(o, d)), p = function(v) { + return mo(bC(v), f); }; l = function(v, b, y, S) { u = y, process.env.NODE_ENV !== "production" && b.map !== void 0 && (u = { @@ -5026,7 +5002,7 @@ If multiple caches share the same key they might "fight" for each other's style } var m = { key: r, - sheet: new cC({ + sheet: new oC({ key: r, container: i, nonce: t.nonce, @@ -5040,14 +5016,14 @@ If multiple caches share the same key they might "fight" for each other's style insert: l }; return m.sheet.hydrate(s), m; -}, VC = !0; -function Fu(e, t, r) { +}, FC = !0; +function Mu(e, t, r) { var n = ""; return r.split(" ").forEach(function(o) { e[o] !== void 0 ? t.push(e[o] + ";") : n += o + " "; }), n; } -var Vs = function(t, r, n) { +var zs = function(t, r, n) { var o = t.key + "-" + r.name; // we only need to add the styles to the registered cache if the // class name could be used further down @@ -5058,9 +5034,9 @@ var Vs = function(t, r, n) { // in node since emotion-server relies on whether a style is in // the registered cache to know whether a style is global or not // also, note that this check will be dead code eliminated in the browser - VC === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles); -}, Ls = function(t, r, n) { - Vs(t, r, n); + FC === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles); +}, Vs = function(t, r, n) { + zs(t, r, n); var o = t.key + "-" + r.name; if (t.inserted[r.name] === void 0) { var a = r; @@ -5069,7 +5045,7 @@ var Vs = function(t, r, n) { while (a !== void 0); } }; -function LC(e) { +function NC(e) { for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4) r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */ @@ -5088,7 +5064,7 @@ function LC(e) { return t ^= t >>> 13, t = /* Math.imul(h, m): */ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36); } -var WC = { +var jC = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, @@ -5136,21 +5112,21 @@ var WC = { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, Tf = `You have illegal escape sequence in your template literal, most likely inside content's property value. +}, Pf = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, UC = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", HC = /[A-Z]|^ms/g, ov = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Nu = function(t) { +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, BC = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", zC = /[A-Z]|^ms/g, rv = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Iu = function(t) { return t.charCodeAt(1) === 45; -}, Af = function(t) { +}, Tf = function(t) { return t != null && typeof t != "boolean"; -}, Al = /* @__PURE__ */ tv(function(e) { - return Nu(e) ? e : e.replace(HC, "-$&").toLowerCase(); -}), ds = function(t, r) { +}, Pl = /* @__PURE__ */ Qm(function(e) { + return Iu(e) ? e : e.replace(zC, "-$&").toLowerCase(); +}), us = function(t, r) { switch (t) { case "animation": case "animationName": if (typeof r == "string") - return r.replace(ov, function(n, o, a) { + return r.replace(rv, function(n, o, a) { return gr = { name: o, styles: a, @@ -5158,26 +5134,26 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter }, o; }); } - return WC[t] !== 1 && !Nu(t) && typeof r == "number" && r !== 0 ? r + "px" : r; + return jC[t] !== 1 && !Iu(t) && typeof r == "number" && r !== 0 ? r + "px" : r; }; if (process.env.NODE_ENV !== "production") { - var YC = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, qC = ["normal", "none", "initial", "inherit", "unset"], GC = ds, XC = /^-ms-/, KC = /-(.)/g, Of = {}; - ds = function(t, r) { - if (t === "content" && (typeof r != "string" || qC.indexOf(r) === -1 && !YC.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'"))) + var VC = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, LC = ["normal", "none", "initial", "inherit", "unset"], WC = us, UC = /^-ms-/, HC = /-(.)/g, Af = {}; + us = function(t, r) { + if (t === "content" && (typeof r != "string" || LC.indexOf(r) === -1 && !VC.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'"))) throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`"); - var n = GC(t, r); - return n !== "" && !Nu(t) && t.indexOf("-") !== -1 && Of[t] === void 0 && (Of[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(XC, "ms-").replace(KC, function(o, a) { + var n = WC(t, r); + return n !== "" && !Iu(t) && t.indexOf("-") !== -1 && Af[t] === void 0 && (Af[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(UC, "ms-").replace(HC, function(o, a) { return a.toUpperCase(); }) + "?")), n; }; } -var av = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform."; -function Ma(e, t, r) { +var nv = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform."; +function Ia(e, t, r) { if (r == null) return ""; if (r.__emotion_styles !== void 0) { if (process.env.NODE_ENV !== "production" && r.toString() === "NO_COMPONENT_SELECTOR") - throw new Error(av); + throw new Error(nv); return r; } switch (typeof r) { @@ -5202,19 +5178,19 @@ function Ma(e, t, r) { var o = r.styles + ";"; return process.env.NODE_ENV !== "production" && r.map !== void 0 && (o += r.map), o; } - return ZC(e, t, r); + return YC(e, t, r); } case "function": { if (e !== void 0) { var a = gr, i = r(e); - return gr = a, Ma(e, t, i); + return gr = a, Ia(e, t, i); } else process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"); break; } case "string": if (process.env.NODE_ENV !== "production") { - var s = [], l = r.replace(ov, function(u, d, f) { + var s = [], l = r.replace(rv, function(u, d, f) { var p = "animation" + s.length; return s.push("const " + p + " = keyframes`" + f.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}"; }); @@ -5232,57 +5208,57 @@ You should wrap it with \`css\` like this: var c = t[r]; return c !== void 0 ? c : r; } -function ZC(e, t, r) { +function YC(e, t, r) { var n = ""; if (Array.isArray(r)) for (var o = 0; o < r.length; o++) - n += Ma(e, t, r[o]) + ";"; + n += Ia(e, t, r[o]) + ";"; else for (var a in r) { var i = r[a]; if (typeof i != "object") - t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Af(i) && (n += Al(a) + ":" + ds(a, i) + ";"); + t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Tf(i) && (n += Pl(a) + ":" + us(a, i) + ";"); else { if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production") - throw new Error(av); + throw new Error(nv); if (Array.isArray(i) && typeof i[0] == "string" && (t == null || t[i[0]] === void 0)) for (var s = 0; s < i.length; s++) - Af(i[s]) && (n += Al(a) + ":" + ds(a, i[s]) + ";"); + Tf(i[s]) && (n += Pl(a) + ":" + us(a, i[s]) + ";"); else { - var l = Ma(e, t, i); + var l = Ia(e, t, i); switch (a) { case "animation": case "animationName": { - n += Al(a) + ":" + l + ";"; + n += Pl(a) + ":" + l + ";"; break; } default: - process.env.NODE_ENV !== "production" && a === "undefined" && console.error(UC), n += a + "{" + l + "}"; + process.env.NODE_ENV !== "production" && a === "undefined" && console.error(BC), n += a + "{" + l + "}"; } } } } return n; } -var $f = /label:\s*([^\s;\n{]+)\s*(;|$)/g, iv; -process.env.NODE_ENV !== "production" && (iv = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g); -var gr, Po = function(t, r, n) { +var Of = /label:\s*([^\s;\n{]+)\s*(;|$)/g, ov; +process.env.NODE_ENV !== "production" && (ov = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g); +var gr, To = function(t, r, n) { if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0) return t[0]; var o = !0, a = ""; gr = void 0; var i = t[0]; - i == null || i.raw === void 0 ? (o = !1, a += Ma(n, r, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Tf), a += i[0]); + i == null || i.raw === void 0 ? (o = !1, a += Ia(n, r, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Pf), a += i[0]); for (var s = 1; s < t.length; s++) - a += Ma(n, r, t[s]), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Tf), a += i[s]); + a += Ia(n, r, t[s]), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Pf), a += i[s]); var l; - process.env.NODE_ENV !== "production" && (a = a.replace(iv, function(f) { + process.env.NODE_ENV !== "production" && (a = a.replace(ov, function(f) { return l = f, ""; - })), $f.lastIndex = 0; - for (var c = "", u; (u = $f.exec(a)) !== null; ) + })), Of.lastIndex = 0; + for (var c = "", u; (u = Of.exec(a)) !== null; ) c += "-" + // $FlowFixMe we know it's not null u[1]; - var d = LC(a) + c; + var d = NC(a) + c; return process.env.NODE_ENV !== "production" ? { name: d, styles: a, @@ -5296,29 +5272,29 @@ var gr, Po = function(t, r, n) { styles: a, next: gr }; -}, JC = function(t) { +}, qC = function(t) { return t(); -}, sv = U["useInsertionEffect"] ? U["useInsertionEffect"] : !1, ju = sv || JC, Rf = sv || U.useLayoutEffect, Bu = {}.hasOwnProperty, zu = /* @__PURE__ */ U.createContext( +}, av = U["useInsertionEffect"] ? U["useInsertionEffect"] : !1, Fu = av || qC, Rf = av || U.useLayoutEffect, Nu = {}.hasOwnProperty, ju = /* @__PURE__ */ U.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case // because this module is primarily intended for the browser and node // but it's also required in react native and similar environments sometimes // and we could have a special build just for that // but this is much easier and the native packages // might use a different theme context in the future anyway - typeof HTMLElement < "u" ? /* @__PURE__ */ zC({ + typeof HTMLElement < "u" ? /* @__PURE__ */ IC({ key: "css" }) : null ); -process.env.NODE_ENV !== "production" && (zu.displayName = "EmotionCacheContext"); -zu.Provider; -var Ws = function(t) { +process.env.NODE_ENV !== "production" && (ju.displayName = "EmotionCacheContext"); +ju.Provider; +var Ls = function(t) { return /* @__PURE__ */ At(function(r, n) { - var o = ft(zu); + var o = ft(ju); return t(r, o, n); }); -}, bn = /* @__PURE__ */ U.createContext({}); -process.env.NODE_ENV !== "production" && (bn.displayName = "EmotionThemeContext"); -var QC = function(t, r) { +}, yn = /* @__PURE__ */ U.createContext({}); +process.env.NODE_ENV !== "production" && (yn.displayName = "EmotionThemeContext"); +var GC = function(t, r) { if (typeof r == "function") { var n = r(t); if (process.env.NODE_ENV !== "production" && (n == null || typeof n != "object" || Array.isArray(n))) @@ -5327,76 +5303,76 @@ var QC = function(t, r) { } if (process.env.NODE_ENV !== "production" && (r == null || typeof r != "object" || Array.isArray(r))) throw new Error("[ThemeProvider] Please make your theme prop a plain object"); - return cs({}, t, r); -}, e_ = /* @__PURE__ */ kf(function(e) { - return kf(function(t) { - return QC(e, t); + return Wn({}, t, r); +}, XC = /* @__PURE__ */ _f(function(e) { + return _f(function(t) { + return GC(e, t); }); -}), AV = function(t) { - var r = U.useContext(bn); - return t.theme !== r && (r = e_(r)(t.theme)), /* @__PURE__ */ U.createElement(bn.Provider, { +}), CV = function(t) { + var r = U.useContext(yn); + return t.theme !== r && (r = XC(r)(t.theme)), /* @__PURE__ */ U.createElement(yn.Provider, { value: r }, t.children); -}, Df = function(t) { +}, $f = function(t) { var r = t.split("."); return r[r.length - 1]; -}, t_ = function(t) { +}, KC = function(t) { var r = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t); if (r || (r = /^([A-Za-z0-9$.]+)@/.exec(t), r)) - return Df(r[1]); -}, r_ = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), n_ = function(t) { + return $f(r[1]); +}, ZC = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), JC = function(t) { return t.replace(/\$/g, "-"); -}, o_ = function(t) { +}, QC = function(t) { if (t) for (var r = t.split(` `), n = 0; n < r.length; n++) { - var o = t_(r[n]); + var o = KC(r[n]); if (o) { - if (r_.has(o)) + if (ZC.has(o)) break; if (/^[A-Z]/.test(o)) - return n_(o); + return JC(o); } } -}, Mc = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Ic = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", a_ = function(t, r) { +}, Dc = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Mc = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", e_ = function(t, r) { if (process.env.NODE_ENV !== "production" && typeof r.css == "string" && // check if there is a css declaration r.css.indexOf(":") !== -1) throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + r.css + "`"); var n = {}; for (var o in r) - Bu.call(r, o) && (n[o] = r[o]); - if (n[Mc] = t, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) { - var a = o_(new Error().stack); - a && (n[Ic] = a); + Nu.call(r, o) && (n[o] = r[o]); + if (n[Dc] = t, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) { + var a = QC(new Error().stack); + a && (n[Mc] = a); } return n; -}, i_ = function(t) { +}, t_ = function(t) { var r = t.cache, n = t.serialized, o = t.isStringTag; - return Vs(r, n, o), ju(function() { - return Ls(r, n, o); + return zs(r, n, o), Fu(function() { + return Vs(r, n, o); }), null; -}, lv = /* @__PURE__ */ Ws(function(e, t, r) { +}, iv = /* @__PURE__ */ Ls(function(e, t, r) { var n = e.css; typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]); - var o = e[Mc], a = [n], i = ""; - typeof e.className == "string" ? i = Fu(t.registered, a, e.className) : e.className != null && (i = e.className + " "); - var s = Po(a, void 0, U.useContext(bn)); + var o = e[Dc], a = [n], i = ""; + typeof e.className == "string" ? i = Mu(t.registered, a, e.className) : e.className != null && (i = e.className + " "); + var s = To(a, void 0, U.useContext(yn)); if (process.env.NODE_ENV !== "production" && s.name.indexOf("-") === -1) { - var l = e[Ic]; - l && (s = Po([s, "label:" + l + ";"])); + var l = e[Mc]; + l && (s = To([s, "label:" + l + ";"])); } i += t.key + "-" + s.name; var c = {}; for (var u in e) - Bu.call(e, u) && u !== "css" && u !== Mc && (process.env.NODE_ENV === "production" || u !== Ic) && (c[u] = e[u]); - return c.ref = r, c.className = i, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(i_, { + Nu.call(e, u) && u !== "css" && u !== Dc && (process.env.NODE_ENV === "production" || u !== Mc) && (c[u] = e[u]); + return c.ref = r, c.className = i, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(t_, { cache: t, serialized: s, isStringTag: typeof o == "string" }), /* @__PURE__ */ U.createElement(o, c)); }); -process.env.NODE_ENV !== "production" && (lv.displayName = "EmotionCssPropInternal"); -var s_ = lv, l_ = { +process.env.NODE_ENV !== "production" && (iv.displayName = "EmotionCssPropInternal"); +var r_ = iv, n_ = { name: "@emotion/react", version: "11.11.1", main: "dist/emotion-react.cjs.js", @@ -5526,22 +5502,22 @@ var s_ = lv, l_ = { } } } -}, OV = function(t, r) { +}, _V = function(t, r) { var n = arguments; - if (r == null || !Bu.call(r, "css")) + if (r == null || !Nu.call(r, "css")) return U.createElement.apply(void 0, n); var o = n.length, a = new Array(o); - a[0] = s_, a[1] = a_(t, r); + a[0] = r_, a[1] = e_(t, r); for (var i = 2; i < o; i++) a[i] = n[i]; return U.createElement.apply(null, a); -}, Mf = !1, c_ = /* @__PURE__ */ Ws(function(e, t) { - process.env.NODE_ENV !== "production" && !Mf && // check for className as well since the user is +}, Df = !1, o_ = /* @__PURE__ */ Ls(function(e, t) { + process.env.NODE_ENV !== "production" && !Df && // check for className as well since the user is // probably using the custom createElement which // means it will be turned into a className prop // $FlowFixMe I don't really want to add it to the type since it shouldn't be used - (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Mf = !0); - var r = e.styles, n = Po([r], void 0, U.useContext(bn)), o = U.useRef(); + (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Df = !0); + var r = e.styles, n = To([r], void 0, U.useContext(yn)), o = U.useRef(); return Rf(function() { var a = t.key + "-global", i = new t.sheet.constructor({ key: a, @@ -5558,21 +5534,21 @@ var s_ = lv, l_ = { a[1] = !1; return; } - if (n.next !== void 0 && Ls(t, n.next, !0), i.tags.length) { + if (n.next !== void 0 && Vs(t, n.next, !0), i.tags.length) { var l = i.tags[i.tags.length - 1].nextElementSibling; i.before = l, i.flush(); } t.insert("", n, i, !1); }, [t, n.name]), null; }); -process.env.NODE_ENV !== "production" && (c_.displayName = "EmotionGlobal"); -function u_() { +process.env.NODE_ENV !== "production" && (o_.displayName = "EmotionGlobal"); +function a_() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; - return Po(t); + return To(t); } -var d_ = function() { - var t = u_.apply(void 0, arguments), r = "animation-" + t.name; +var i_ = function() { + var t = a_.apply(void 0, arguments), r = "animation-" + t.name; return { name: r, styles: "@keyframes " + r + "{" + t.styles + "}", @@ -5581,7 +5557,7 @@ var d_ = function() { return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; } }; -}, f_ = function e(t) { +}, s_ = function e(t) { for (var r = t.length, n = 0, o = ""; n < r; n++) { var a = t[n]; if (a != null) { @@ -5607,52 +5583,52 @@ var d_ = function() { } return o; }; -function p_(e, t, r) { - var n = [], o = Fu(e, n, r); +function l_(e, t, r) { + var n = [], o = Mu(e, n, r); return n.length < 2 ? r : o + t(n); } -var h_ = function(t) { +var c_ = function(t) { var r = t.cache, n = t.serializedArr; - return ju(function() { + return Fu(function() { for (var o = 0; o < n.length; o++) - Ls(r, n[o], !1); + Vs(r, n[o], !1); }), null; -}, m_ = /* @__PURE__ */ Ws(function(e, t) { +}, u_ = /* @__PURE__ */ Ls(function(e, t) { var r = !1, n = [], o = function() { if (r && process.env.NODE_ENV !== "production") throw new Error("css can only be used during render"); for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++) u[d] = arguments[d]; - var f = Po(u, t.registered); - return n.push(f), Vs(t, f, !1), t.key + "-" + f.name; + var f = To(u, t.registered); + return n.push(f), zs(t, f, !1), t.key + "-" + f.name; }, a = function() { if (r && process.env.NODE_ENV !== "production") throw new Error("cx can only be used during render"); for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++) u[d] = arguments[d]; - return p_(t.registered, o, f_(u)); + return l_(t.registered, o, s_(u)); }, i = { css: o, cx: a, - theme: U.useContext(bn) + theme: U.useContext(yn) }, s = e.children(i); - return r = !0, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(h_, { + return r = !0, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(c_, { cache: t, serializedArr: n }), s); }); -process.env.NODE_ENV !== "production" && (m_.displayName = "EmotionClassNames"); +process.env.NODE_ENV !== "production" && (u_.displayName = "EmotionClassNames"); if (process.env.NODE_ENV !== "production") { - var If = !0, v_ = typeof jest < "u" || typeof vi < "u"; - if (If && !v_) { - var Ff = ( + var Mf = !0, d_ = typeof jest < "u" || typeof vi < "u"; + if (Mf && !d_) { + var If = ( // $FlowIgnore - typeof globalThis < "u" ? globalThis : If ? window : global - ), Nf = "__EMOTION_REACT_" + l_.version.split(".")[0] + "__"; - Ff[Nf] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), Ff[Nf] = !0; + typeof globalThis < "u" ? globalThis : Mf ? window : global + ), Ff = "__EMOTION_REACT_" + n_.version.split(".")[0] + "__"; + If[Ff] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), If[Ff] = !0; } } -function g_(e, t) { +function f_(e, t) { return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`; } function Nt(e = {}) { @@ -5670,7 +5646,7 @@ function Nt(e = {}) { const u = ft(s); if (!u && r) { const d = new Error( - a ?? g_(n, o) + a ?? f_(n, o) ); throw d.name = "ContextError", (c = Error.captureStackTrace) == null || c.call(Error, d, l), d; } @@ -5678,19 +5654,19 @@ function Nt(e = {}) { } return [s.Provider, l, s]; } -var [b_, y_] = Nt({ +var [p_, h_] = Nt({ strict: !1, name: "PortalManagerContext" }); -function x_(e) { +function m_(e) { const { children: t, zIndex: r } = e; - return /* @__PURE__ */ L.jsx(b_, { value: { zIndex: r }, children: t }); + return /* @__PURE__ */ L.jsx(p_, { value: { zIndex: r }, children: t }); } -x_.displayName = "PortalManager"; -var Ia = globalThis != null && globalThis.document ? Ds : Fe, [cv, S_] = Nt({ +m_.displayName = "PortalManager"; +var Fa = globalThis != null && globalThis.document ? $s : Fe, [sv, v_] = Nt({ strict: !1, name: "PortalContext" -}), Vu = "chakra-portal", w_ = ".chakra-portal", C_ = (e) => /* @__PURE__ */ L.jsx( +}), Bu = "chakra-portal", g_ = ".chakra-portal", b_ = (e) => /* @__PURE__ */ L.jsx( "div", { className: "chakra-portal-zIndex", @@ -5705,25 +5681,25 @@ var Ia = globalThis != null && globalThis.document ? Ds : Fe, [cv, S_] = Nt({ }, children: e.children } -), __ = (e) => { +), y_ = (e) => { const { appendToParentPortal: t, children: r } = e, [n, o] = Ye(null), a = be(null), [, i] = Ye({}); Fe(() => i({}), []); - const s = S_(), l = y_(); - Ia(() => { + const s = v_(), l = h_(); + Fa(() => { if (!n) return; const u = n.ownerDocument, d = t ? s ?? u.body : u.body; if (!d) return; - a.current = u.createElement("div"), a.current.className = Vu, d.appendChild(a.current), i({}); + a.current = u.createElement("div"), a.current.className = Bu, d.appendChild(a.current), i({}); const f = a.current; return () => { d.contains(f) && d.removeChild(f); }; }, [n]); - const c = l != null && l.zIndex ? /* @__PURE__ */ L.jsx(C_, { zIndex: l == null ? void 0 : l.zIndex, children: r }) : r; - return a.current ? xm( - /* @__PURE__ */ L.jsx(cv, { value: a.current, children: c }), + const c = l != null && l.zIndex ? /* @__PURE__ */ L.jsx(b_, { zIndex: l == null ? void 0 : l.zIndex, children: r }) : r; + return a.current ? ym( + /* @__PURE__ */ L.jsx(sv, { value: a.current, children: c }), a.current ) : /* @__PURE__ */ L.jsx( "span", @@ -5733,18 +5709,18 @@ var Ia = globalThis != null && globalThis.document ? Ds : Fe, [cv, S_] = Nt({ } } ); -}, k_ = (e) => { +}, x_ = (e) => { const { children: t, containerRef: r, appendToParentPortal: n } = e, o = r.current, a = o ?? (typeof window < "u" ? document.body : void 0), i = gt(() => { const l = o == null ? void 0 : o.ownerDocument.createElement("div"); - return l && (l.className = Vu), l; + return l && (l.className = Bu), l; }, [o]), [, s] = Ye({}); - return Ia(() => s({}), []), Ia(() => { + return Fa(() => s({}), []), Fa(() => { if (!(!i || !a)) return a.appendChild(i), () => { a.removeChild(i); }; - }, [i, a]), a && i ? xm( - /* @__PURE__ */ L.jsx(cv, { value: n ? i : null, children: t }), + }, [i, a]), a && i ? ym( + /* @__PURE__ */ L.jsx(sv, { value: n ? i : null, children: t }), i ) : null; }; @@ -5753,14 +5729,14 @@ function Qa(e) { appendToParentPortal: !0, ...e }, { containerRef: r, ...n } = t; - return r ? /* @__PURE__ */ L.jsx(k_, { containerRef: r, ...n }) : /* @__PURE__ */ L.jsx(__, { ...n }); + return r ? /* @__PURE__ */ L.jsx(x_, { containerRef: r, ...n }) : /* @__PURE__ */ L.jsx(y_, { ...n }); } -Qa.className = Vu; -Qa.selector = w_; +Qa.className = Bu; +Qa.selector = g_; Qa.displayName = "Portal"; -function an() { +function sn() { const e = ft( - bn + yn ); if (!e) throw Error( @@ -5768,23 +5744,23 @@ function an() { ); return e; } -var uv = Cr({}); -uv.displayName = "ColorModeContext"; -function Lu() { - const e = ft(uv); +var lv = Cr({}); +lv.displayName = "ColorModeContext"; +function zu() { + const e = ft(lv); if (e === void 0) throw new Error("useColorMode must be used within a ColorModeProvider"); return e; } -function $V(e, t) { - const { colorMode: r } = Lu(); +function kV(e, t) { + const { colorMode: r } = zu(); return r === "dark" ? t : e; } -function dv() { - const e = Lu(), t = an(); +function cv() { + const e = zu(), t = sn(); return { ...e, theme: t }; } -function E_(e, t, r) { +function S_(e, t, r) { var n, o; if (t == null) return t; @@ -5794,7 +5770,7 @@ function E_(e, t, r) { }; return (o = (n = a(t)) != null ? n : a(r)) != null ? o : r; } -function P_(e, t, r) { +function w_(e, t, r) { var n, o; if (t == null) return t; @@ -5804,182 +5780,182 @@ function P_(e, t, r) { }; return (o = (n = a(t)) != null ? n : a(r)) != null ? o : r; } -function RV(e, t, r) { - const n = an(); - return T_(e, t, r)(n); +function EV(e, t, r) { + const n = sn(); + return C_(e, t, r)(n); } -function T_(e, t, r) { +function C_(e, t, r) { const n = Array.isArray(t) ? t : [t], o = Array.isArray(r) ? r : [r]; return (a) => { const i = o.filter(Boolean), s = n.map((l, c) => { var u, d; if (e === "breakpoints") - return E_(a, l, (u = i[c]) != null ? u : l); + return S_(a, l, (u = i[c]) != null ? u : l); const f = `${e}.${l}`; - return P_(a, f, (d = i[c]) != null ? d : l); + return w_(a, f, (d = i[c]) != null ? d : l); }); return Array.isArray(t) ? s : s[0]; }; } var Xe = (...e) => e.filter(Boolean).join(" "); -function A_() { +function __() { return process.env.NODE_ENV !== "production"; } function Lt(e) { const t = typeof e; return e != null && (t === "object" || t === "function") && !Array.isArray(e); } -var DV = (e) => { +var PV = (e) => { const { condition: t, message: r } = e; - t && A_() && console.warn(r); + t && __() && console.warn(r); }; -function hn(e, ...t) { - return O_(e) ? e(...t) : e; +function mn(e, ...t) { + return k_(e) ? e(...t) : e; } -var O_ = (e) => typeof e == "function", to = (e) => e ? "" : void 0, Ol = (e) => e ? !0 : void 0; -function Rt(...e) { +var k_ = (e) => typeof e == "function", Ar = (e) => e ? "" : void 0, Tl = (e) => e ? !0 : void 0; +function $t(...e) { return function(r) { e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented)); }; } -function $_(...e) { +function E_(...e) { return function(r) { e.forEach((n) => { n == null || n(r); }); }; } -var fs = { exports: {} }; -fs.exports; +var ds = { exports: {} }; +ds.exports; (function(e, t) { - var r = 200, n = "__lodash_hash_undefined__", o = 800, a = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", v = "[object Number]", b = "[object Null]", y = "[object Object]", S = "[object Proxy]", k = "[object RegExp]", w = "[object Set]", M = "[object String]", P = "[object Undefined]", I = "[object WeakMap]", z = "[object ArrayBuffer]", j = "[object DataView]", X = "[object Float32Array]", ne = "[object Float64Array]", J = "[object Int8Array]", Q = "[object Int16Array]", ee = "[object Int32Array]", oe = "[object Uint8Array]", D = "[object Uint8ClampedArray]", ce = "[object Uint16Array]", fe = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, N = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, T = {}; - T[X] = T[ne] = T[J] = T[Q] = T[ee] = T[oe] = T[D] = T[ce] = T[fe] = !0, T[s] = T[l] = T[z] = T[u] = T[j] = T[d] = T[f] = T[p] = T[h] = T[v] = T[y] = T[k] = T[w] = T[M] = T[I] = !1; - var O = typeof yi == "object" && yi && yi.Object === Object && yi, B = typeof self == "object" && self && self.Object === Object && self, C = O || B || Function("return this")(), H = t && !t.nodeType && t, A = H && !0 && e && !e.nodeType && e, Z = A && A.exports === H, Y = Z && O.process, ae = function() { + var r = 200, n = "__lodash_hash_undefined__", o = 800, a = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", v = "[object Number]", b = "[object Null]", y = "[object Object]", S = "[object Proxy]", _ = "[object RegExp]", w = "[object Set]", M = "[object String]", P = "[object Undefined]", I = "[object WeakMap]", z = "[object ArrayBuffer]", j = "[object DataView]", X = "[object Float32Array]", ne = "[object Float64Array]", J = "[object Int8Array]", Q = "[object Int16Array]", ee = "[object Int32Array]", oe = "[object Uint8Array]", D = "[object Uint8ClampedArray]", ce = "[object Uint16Array]", fe = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, N = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, T = {}; + T[X] = T[ne] = T[J] = T[Q] = T[ee] = T[oe] = T[D] = T[ce] = T[fe] = !0, T[s] = T[l] = T[z] = T[u] = T[j] = T[d] = T[f] = T[p] = T[h] = T[v] = T[y] = T[_] = T[w] = T[M] = T[I] = !1; + var A = typeof yi == "object" && yi && yi.Object === Object && yi, B = typeof self == "object" && self && self.Object === Object && self, C = A || B || Function("return this")(), H = t && !t.nodeType && t, O = H && !0 && e && !e.nodeType && e, Z = O && O.exports === H, Y = Z && A.process, ae = function() { try { - var g = A && A.require && A.require("util").types; + var g = O && O.require && O.require("util").types; return g || Y && Y.binding && Y.binding("util"); } catch { } - }(), $ = ae && ae.isTypedArray; - function Se(g, _, R) { - switch (R.length) { + }(), R = ae && ae.isTypedArray; + function Se(g, k, $) { + switch ($.length) { case 0: - return g.call(_); + return g.call(k); case 1: - return g.call(_, R[0]); + return g.call(k, $[0]); case 2: - return g.call(_, R[0], R[1]); + return g.call(k, $[0], $[1]); case 3: - return g.call(_, R[0], R[1], R[2]); + return g.call(k, $[0], $[1], $[2]); } - return g.apply(_, R); + return g.apply(k, $); } - function he(g, _) { - for (var R = -1, re = Array(g); ++R < g; ) - re[R] = _(R); + function he(g, k) { + for (var $ = -1, re = Array(g); ++$ < g; ) + re[$] = k($); return re; } function le(g) { - return function(_) { - return g(_); + return function(k) { + return g(k); }; } - function Re(g, _) { - return g == null ? void 0 : g[_]; + function De(g, k) { + return g == null ? void 0 : g[k]; } - function ye(g, _) { - return function(R) { - return g(_(R)); + function ye(g, k) { + return function($) { + return g(k($)); }; } - var we = Array.prototype, ht = Function.prototype, ke = Object.prototype, dt = C["__core-js_shared__"], rt = ht.toString, Me = ke.hasOwnProperty, se = function() { + var we = Array.prototype, ht = Function.prototype, ke = Object.prototype, dt = C["__core-js_shared__"], rt = ht.toString, Ie = ke.hasOwnProperty, se = function() { var g = /[^.]+$/.exec(dt && dt.keys && dt.keys.IE_PROTO || ""); return g ? "Symbol(src)_1." + g : ""; - }(), Ae = ke.toString, Ot = rt.call(Object), xt = RegExp( - "^" + rt.call(Me).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ), lt = Z ? C.Buffer : void 0, zr = C.Symbol, Vr = C.Uint8Array, Lr = lt ? lt.allocUnsafe : void 0, te = ye(Object.getPrototypeOf, Object), ve = Object.create, kr = ke.propertyIsEnumerable, G = we.splice, ie = zr ? zr.toStringTag : void 0, xe = function() { + }(), Oe = ke.toString, Ot = rt.call(Object), xt = RegExp( + "^" + rt.call(Ie).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ), lt = Z ? C.Buffer : void 0, Vr = C.Symbol, Lr = C.Uint8Array, Wr = lt ? lt.allocUnsafe : void 0, te = ye(Object.getPrototypeOf, Object), ve = Object.create, kr = ke.propertyIsEnumerable, G = we.splice, ie = Vr ? Vr.toStringTag : void 0, xe = function() { try { - var g = bl(Object, "defineProperty"); + var g = vl(Object, "defineProperty"); return g({}, "", {}), g; } catch { } - }(), Ce = lt ? lt.isBuffer : void 0, He = Math.max, wt = Date.now, Ze = bl(C, "Map"), nt = bl(Object, "create"), Wr = function() { + }(), Ce = lt ? lt.isBuffer : void 0, He = Math.max, wt = Date.now, Ze = vl(C, "Map"), nt = vl(Object, "create"), Ur = function() { function g() { } - return function(_) { - if (!En(_)) + return function(k) { + if (!Pn(k)) return {}; if (ve) - return ve(_); - g.prototype = _; - var R = new g(); - return g.prototype = void 0, R; + return ve(k); + g.prototype = k; + var $ = new g(); + return g.prototype = void 0, $; }; }(); function Er(g) { - var _ = -1, R = g == null ? 0 : g.length; - for (this.clear(); ++_ < R; ) { - var re = g[_]; + var k = -1, $ = g == null ? 0 : g.length; + for (this.clear(); ++k < $; ) { + var re = g[k]; this.set(re[0], re[1]); } } - function dl() { + function cl() { this.__data__ = nt ? nt(null) : {}, this.size = 0; } function ui(g) { - var _ = this.has(g) && delete this.__data__[g]; - return this.size -= _ ? 1 : 0, _; + var k = this.has(g) && delete this.__data__[g]; + return this.size -= k ? 1 : 0, k; } - function fl(g) { - var _ = this.__data__; + function ul(g) { + var k = this.__data__; if (nt) { - var R = _[g]; - return R === n ? void 0 : R; + var $ = k[g]; + return $ === n ? void 0 : $; } - return Me.call(_, g) ? _[g] : void 0; + return Ie.call(k, g) ? k[g] : void 0; } function di(g) { - var _ = this.__data__; - return nt ? _[g] !== void 0 : Me.call(_, g); + var k = this.__data__; + return nt ? k[g] !== void 0 : Ie.call(k, g); } - function fi(g, _) { - var R = this.__data__; - return this.size += this.has(g) ? 0 : 1, R[g] = nt && _ === void 0 ? n : _, this; + function fi(g, k) { + var $ = this.__data__; + return this.size += this.has(g) ? 0 : 1, $[g] = nt && k === void 0 ? n : k, this; } - Er.prototype.clear = dl, Er.prototype.delete = ui, Er.prototype.get = fl, Er.prototype.has = di, Er.prototype.set = fi; + Er.prototype.clear = cl, Er.prototype.delete = ui, Er.prototype.get = ul, Er.prototype.has = di, Er.prototype.set = fi; function fr(g) { - var _ = -1, R = g == null ? 0 : g.length; - for (this.clear(); ++_ < R; ) { - var re = g[_]; + var k = -1, $ = g == null ? 0 : g.length; + for (this.clear(); ++k < $; ) { + var re = g[k]; this.set(re[0], re[1]); } } - function pl() { + function dl() { this.__data__ = [], this.size = 0; } function pi(g) { - var _ = this.__data__, R = Bt(_, g); - if (R < 0) + var k = this.__data__, $ = Bt(k, g); + if ($ < 0) return !1; - var re = _.length - 1; - return R == re ? _.pop() : G.call(_, R, 1), --this.size, !0; + var re = k.length - 1; + return $ == re ? k.pop() : G.call(k, $, 1), --this.size, !0; } - function hl(g) { - var _ = this.__data__, R = Bt(_, g); - return R < 0 ? void 0 : _[R][1]; + function fl(g) { + var k = this.__data__, $ = Bt(k, g); + return $ < 0 ? void 0 : k[$][1]; } - function ml(g) { + function pl(g) { return Bt(this.__data__, g) > -1; } - function vl(g, _) { - var R = this.__data__, re = Bt(R, g); - return re < 0 ? (++this.size, R.push([g, _])) : R[re][1] = _, this; + function hl(g, k) { + var $ = this.__data__, re = Bt($, g); + return re < 0 ? (++this.size, $.push([g, k])) : $[re][1] = k, this; } - fr.prototype.clear = pl, fr.prototype.delete = pi, fr.prototype.get = hl, fr.prototype.has = ml, fr.prototype.set = vl; - function sn(g) { - var _ = -1, R = g == null ? 0 : g.length; - for (this.clear(); ++_ < R; ) { - var re = g[_]; + fr.prototype.clear = dl, fr.prototype.delete = pi, fr.prototype.get = fl, fr.prototype.has = pl, fr.prototype.set = hl; + function ln(g) { + var k = -1, $ = g == null ? 0 : g.length; + for (this.clear(); ++k < $; ) { + var re = g[k]; this.set(re[0], re[1]); } } @@ -5991,8 +5967,8 @@ fs.exports; }; } function W(g) { - var _ = gi(this, g).delete(g); - return this.size -= _ ? 1 : 0, _; + var k = gi(this, g).delete(g); + return this.size -= k ? 1 : 0, k; } function K(g) { return gi(this, g).get(g); @@ -6000,21 +5976,21 @@ fs.exports; function me(g) { return gi(this, g).has(g); } - function De(g, _) { - var R = gi(this, g), re = R.size; - return R.set(g, _), this.size += R.size == re ? 0 : 1, this; + function Me(g, k) { + var $ = gi(this, g), re = $.size; + return $.set(g, k), this.size += $.size == re ? 0 : 1, this; } - sn.prototype.clear = x, sn.prototype.delete = W, sn.prototype.get = K, sn.prototype.has = me, sn.prototype.set = De; - function Oe(g) { - var _ = this.__data__ = new fr(g); - this.size = _.size; + ln.prototype.clear = x, ln.prototype.delete = W, ln.prototype.get = K, ln.prototype.has = me, ln.prototype.set = Me; + function Re(g) { + var k = this.__data__ = new fr(g); + this.size = k.size; } function Pe() { this.__data__ = new fr(), this.size = 0; } function Ee(g) { - var _ = this.__data__, R = _.delete(g); - return this.size = _.size, R; + var k = this.__data__, $ = k.delete(g); + return this.size = k.size, $; } function Ct(g) { return this.__data__.get(g); @@ -6022,235 +5998,235 @@ fs.exports; function ot(g) { return this.__data__.has(g); } - function ct(g, _) { - var R = this.__data__; - if (R instanceof fr) { - var re = R.__data__; + function ct(g, k) { + var $ = this.__data__; + if ($ instanceof fr) { + var re = $.__data__; if (!Ze || re.length < r - 1) - return re.push([g, _]), this.size = ++R.size, this; - R = this.__data__ = new sn(re); + return re.push([g, k]), this.size = ++$.size, this; + $ = this.__data__ = new ln(re); } - return R.set(g, _), this.size = R.size, this; + return $.set(g, k), this.size = $.size, this; } - Oe.prototype.clear = Pe, Oe.prototype.delete = Ee, Oe.prototype.get = Ct, Oe.prototype.has = ot, Oe.prototype.set = ct; - function jt(g, _) { - var R = Sl(g), re = !R && xl(g), $e = !R && !re && Vd(g), qe = !R && !re && !$e && Wd(g), Qe = R || re || $e || qe, Te = Qe ? he(g.length, String) : [], et = Te.length; + Re.prototype.clear = Pe, Re.prototype.delete = Ee, Re.prototype.get = Ct, Re.prototype.has = ot, Re.prototype.set = ct; + function jt(g, k) { + var $ = yl(g), re = !$ && bl(g), $e = !$ && !re && zd(g), qe = !$ && !re && !$e && Ld(g), Qe = $ || re || $e || qe, Te = Qe ? he(g.length, String) : [], et = Te.length; for (var tr in g) - (_ || Me.call(g, tr)) && !(Qe && // Safari 9 has enumerable `arguments.length` in strict mode. + (k || Ie.call(g, tr)) && !(Qe && // Safari 9 has enumerable `arguments.length` in strict mode. (tr == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. $e && (tr == "offset" || tr == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. qe && (tr == "buffer" || tr == "byteLength" || tr == "byteOffset") || // Skip index properties. - Bd(tr, et))) && Te.push(tr); + jd(tr, et))) && Te.push(tr); return Te; } - function Pr(g, _, R) { - (R !== void 0 && !bi(g[_], R) || R === void 0 && !(_ in g)) && gl(g, _, R); + function Pr(g, k, $) { + ($ !== void 0 && !bi(g[k], $) || $ === void 0 && !(k in g)) && ml(g, k, $); } - function hi(g, _, R) { - var re = g[_]; - (!(Me.call(g, _) && bi(re, R)) || R === void 0 && !(_ in g)) && gl(g, _, R); + function hi(g, k, $) { + var re = g[k]; + (!(Ie.call(g, k) && bi(re, $)) || $ === void 0 && !(k in g)) && ml(g, k, $); } - function Bt(g, _) { - for (var R = g.length; R--; ) - if (bi(g[R][0], _)) - return R; + function Bt(g, k) { + for (var $ = g.length; $--; ) + if (bi(g[$][0], k)) + return $; return -1; } - function gl(g, _, R) { - _ == "__proto__" && xe ? xe(g, _, { + function ml(g, k, $) { + k == "__proto__" && xe ? xe(g, k, { configurable: !0, enumerable: !0, - value: R, + value: $, writable: !0 - }) : g[_] = R; + }) : g[k] = $; } - var qy = i0(); + var Uy = n0(); function mi(g) { - return g == null ? g === void 0 ? P : b : ie && ie in Object(g) ? s0(g) : p0(g); + return g == null ? g === void 0 ? P : b : ie && ie in Object(g) ? o0(g) : u0(g); } - function Nd(g) { - return Uo(g) && mi(g) == s; + function Fd(g) { + return Ho(g) && mi(g) == s; } - function Gy(g) { - if (!En(g) || d0(g)) + function Hy(g) { + if (!Pn(g) || l0(g)) return !1; - var _ = Cl(g) ? xt : N; - return _.test(g0(g)); + var k = Sl(g) ? xt : N; + return k.test(h0(g)); } - function Xy(g) { - return Uo(g) && Ld(g.length) && !!T[mi(g)]; + function Yy(g) { + return Ho(g) && Vd(g.length) && !!T[mi(g)]; } - function Ky(g) { - if (!En(g)) - return f0(g); - var _ = zd(g), R = []; + function qy(g) { + if (!Pn(g)) + return c0(g); + var k = Bd(g), $ = []; for (var re in g) - re == "constructor" && (_ || !Me.call(g, re)) || R.push(re); - return R; + re == "constructor" && (k || !Ie.call(g, re)) || $.push(re); + return $; } - function jd(g, _, R, re, $e) { - g !== _ && qy(_, function(qe, Qe) { - if ($e || ($e = new Oe()), En(qe)) - Zy(g, _, Qe, R, jd, re, $e); + function Nd(g, k, $, re, $e) { + g !== k && Uy(k, function(qe, Qe) { + if ($e || ($e = new Re()), Pn(qe)) + Gy(g, k, Qe, $, Nd, re, $e); else { - var Te = re ? re(yl(g, Qe), qe, Qe + "", g, _, $e) : void 0; + var Te = re ? re(gl(g, Qe), qe, Qe + "", g, k, $e) : void 0; Te === void 0 && (Te = qe), Pr(g, Qe, Te); } - }, Ud); + }, Wd); } - function Zy(g, _, R, re, $e, qe, Qe) { - var Te = yl(g, R), et = yl(_, R), tr = Qe.get(et); + function Gy(g, k, $, re, $e, qe, Qe) { + var Te = gl(g, $), et = gl(k, $), tr = Qe.get(et); if (tr) { - Pr(g, R, tr); + Pr(g, $, tr); return; } - var Xt = qe ? qe(Te, et, R + "", g, _, Qe) : void 0, Ho = Xt === void 0; - if (Ho) { - var _l = Sl(et), kl = !_l && Vd(et), Yd = !_l && !kl && Wd(et); - Xt = et, _l || kl || Yd ? Sl(Te) ? Xt = Te : b0(Te) ? Xt = n0(Te) : kl ? (Ho = !1, Xt = e0(et, !0)) : Yd ? (Ho = !1, Xt = r0(et, !0)) : Xt = [] : y0(et) || xl(et) ? (Xt = Te, xl(Te) ? Xt = x0(Te) : (!En(Te) || Cl(Te)) && (Xt = l0(et))) : Ho = !1; + var Xt = qe ? qe(Te, et, $ + "", g, k, Qe) : void 0, Yo = Xt === void 0; + if (Yo) { + var wl = yl(et), Cl = !wl && zd(et), Hd = !wl && !Cl && Ld(et); + Xt = et, wl || Cl || Hd ? yl(Te) ? Xt = Te : m0(Te) ? Xt = e0(Te) : Cl ? (Yo = !1, Xt = Zy(et, !0)) : Hd ? (Yo = !1, Xt = Qy(et, !0)) : Xt = [] : v0(et) || bl(et) ? (Xt = Te, bl(Te) ? Xt = g0(Te) : (!Pn(Te) || Sl(Te)) && (Xt = a0(et))) : Yo = !1; } - Ho && (Qe.set(et, Xt), $e(Xt, et, re, qe, Qe), Qe.delete(et)), Pr(g, R, Xt); + Yo && (Qe.set(et, Xt), $e(Xt, et, re, qe, Qe), Qe.delete(et)), Pr(g, $, Xt); } - function Jy(g, _) { - return m0(h0(g, _, Hd), g + ""); + function Xy(g, k) { + return f0(d0(g, k, Ud), g + ""); } - var Qy = xe ? function(g, _) { + var Ky = xe ? function(g, k) { return xe(g, "toString", { configurable: !0, enumerable: !1, - value: w0(_), + value: y0(k), writable: !0 }); - } : Hd; - function e0(g, _) { - if (_) + } : Ud; + function Zy(g, k) { + if (k) return g.slice(); - var R = g.length, re = Lr ? Lr(R) : new g.constructor(R); + var $ = g.length, re = Wr ? Wr($) : new g.constructor($); return g.copy(re), re; } - function t0(g) { - var _ = new g.constructor(g.byteLength); - return new Vr(_).set(new Vr(g)), _; - } - function r0(g, _) { - var R = _ ? t0(g.buffer) : g.buffer; - return new g.constructor(R, g.byteOffset, g.length); - } - function n0(g, _) { - var R = -1, re = g.length; - for (_ || (_ = Array(re)); ++R < re; ) - _[R] = g[R]; - return _; - } - function o0(g, _, R, re) { - var $e = !R; - R || (R = {}); - for (var qe = -1, Qe = _.length; ++qe < Qe; ) { - var Te = _[qe], et = re ? re(R[Te], g[Te], Te, R, g) : void 0; - et === void 0 && (et = g[Te]), $e ? gl(R, Te, et) : hi(R, Te, et); - } - return R; - } - function a0(g) { - return Jy(function(_, R) { - var re = -1, $e = R.length, qe = $e > 1 ? R[$e - 1] : void 0, Qe = $e > 2 ? R[2] : void 0; - for (qe = g.length > 3 && typeof qe == "function" ? ($e--, qe) : void 0, Qe && c0(R[0], R[1], Qe) && (qe = $e < 3 ? void 0 : qe, $e = 1), _ = Object(_); ++re < $e; ) { - var Te = R[re]; - Te && g(_, Te, re, qe); + function Jy(g) { + var k = new g.constructor(g.byteLength); + return new Lr(k).set(new Lr(g)), k; + } + function Qy(g, k) { + var $ = k ? Jy(g.buffer) : g.buffer; + return new g.constructor($, g.byteOffset, g.length); + } + function e0(g, k) { + var $ = -1, re = g.length; + for (k || (k = Array(re)); ++$ < re; ) + k[$] = g[$]; + return k; + } + function t0(g, k, $, re) { + var $e = !$; + $ || ($ = {}); + for (var qe = -1, Qe = k.length; ++qe < Qe; ) { + var Te = k[qe], et = re ? re($[Te], g[Te], Te, $, g) : void 0; + et === void 0 && (et = g[Te]), $e ? ml($, Te, et) : hi($, Te, et); + } + return $; + } + function r0(g) { + return Xy(function(k, $) { + var re = -1, $e = $.length, qe = $e > 1 ? $[$e - 1] : void 0, Qe = $e > 2 ? $[2] : void 0; + for (qe = g.length > 3 && typeof qe == "function" ? ($e--, qe) : void 0, Qe && i0($[0], $[1], Qe) && (qe = $e < 3 ? void 0 : qe, $e = 1), k = Object(k); ++re < $e; ) { + var Te = $[re]; + Te && g(k, Te, re, qe); } - return _; + return k; }); } - function i0(g) { - return function(_, R, re) { - for (var $e = -1, qe = Object(_), Qe = re(_), Te = Qe.length; Te--; ) { + function n0(g) { + return function(k, $, re) { + for (var $e = -1, qe = Object(k), Qe = re(k), Te = Qe.length; Te--; ) { var et = Qe[g ? Te : ++$e]; - if (R(qe[et], et, qe) === !1) + if ($(qe[et], et, qe) === !1) break; } - return _; + return k; }; } - function gi(g, _) { - var R = g.__data__; - return u0(_) ? R[typeof _ == "string" ? "string" : "hash"] : R.map; + function gi(g, k) { + var $ = g.__data__; + return s0(k) ? $[typeof k == "string" ? "string" : "hash"] : $.map; } - function bl(g, _) { - var R = Re(g, _); - return Gy(R) ? R : void 0; + function vl(g, k) { + var $ = De(g, k); + return Hy($) ? $ : void 0; } - function s0(g) { - var _ = Me.call(g, ie), R = g[ie]; + function o0(g) { + var k = Ie.call(g, ie), $ = g[ie]; try { g[ie] = void 0; var re = !0; } catch { } - var $e = Ae.call(g); - return re && (_ ? g[ie] = R : delete g[ie]), $e; + var $e = Oe.call(g); + return re && (k ? g[ie] = $ : delete g[ie]), $e; } - function l0(g) { - return typeof g.constructor == "function" && !zd(g) ? Wr(te(g)) : {}; + function a0(g) { + return typeof g.constructor == "function" && !Bd(g) ? Ur(te(g)) : {}; } - function Bd(g, _) { - var R = typeof g; - return _ = _ ?? i, !!_ && (R == "number" || R != "symbol" && V.test(g)) && g > -1 && g % 1 == 0 && g < _; + function jd(g, k) { + var $ = typeof g; + return k = k ?? i, !!k && ($ == "number" || $ != "symbol" && V.test(g)) && g > -1 && g % 1 == 0 && g < k; } - function c0(g, _, R) { - if (!En(R)) + function i0(g, k, $) { + if (!Pn($)) return !1; - var re = typeof _; - return (re == "number" ? wl(R) && Bd(_, R.length) : re == "string" && _ in R) ? bi(R[_], g) : !1; + var re = typeof k; + return (re == "number" ? xl($) && jd(k, $.length) : re == "string" && k in $) ? bi($[k], g) : !1; } - function u0(g) { - var _ = typeof g; - return _ == "string" || _ == "number" || _ == "symbol" || _ == "boolean" ? g !== "__proto__" : g === null; + function s0(g) { + var k = typeof g; + return k == "string" || k == "number" || k == "symbol" || k == "boolean" ? g !== "__proto__" : g === null; } - function d0(g) { + function l0(g) { return !!se && se in g; } - function zd(g) { - var _ = g && g.constructor, R = typeof _ == "function" && _.prototype || ke; - return g === R; + function Bd(g) { + var k = g && g.constructor, $ = typeof k == "function" && k.prototype || ke; + return g === $; } - function f0(g) { - var _ = []; + function c0(g) { + var k = []; if (g != null) - for (var R in Object(g)) - _.push(R); - return _; + for (var $ in Object(g)) + k.push($); + return k; } - function p0(g) { - return Ae.call(g); + function u0(g) { + return Oe.call(g); } - function h0(g, _, R) { - return _ = He(_ === void 0 ? g.length - 1 : _, 0), function() { - for (var re = arguments, $e = -1, qe = He(re.length - _, 0), Qe = Array(qe); ++$e < qe; ) - Qe[$e] = re[_ + $e]; + function d0(g, k, $) { + return k = He(k === void 0 ? g.length - 1 : k, 0), function() { + for (var re = arguments, $e = -1, qe = He(re.length - k, 0), Qe = Array(qe); ++$e < qe; ) + Qe[$e] = re[k + $e]; $e = -1; - for (var Te = Array(_ + 1); ++$e < _; ) + for (var Te = Array(k + 1); ++$e < k; ) Te[$e] = re[$e]; - return Te[_] = R(Qe), Se(g, this, Te); + return Te[k] = $(Qe), Se(g, this, Te); }; } - function yl(g, _) { - if (!(_ === "constructor" && typeof g[_] == "function") && _ != "__proto__") - return g[_]; + function gl(g, k) { + if (!(k === "constructor" && typeof g[k] == "function") && k != "__proto__") + return g[k]; } - var m0 = v0(Qy); - function v0(g) { - var _ = 0, R = 0; + var f0 = p0(Ky); + function p0(g) { + var k = 0, $ = 0; return function() { - var re = wt(), $e = a - (re - R); - if (R = re, $e > 0) { - if (++_ >= o) + var re = wt(), $e = a - (re - $); + if ($ = re, $e > 0) { + if (++k >= o) return arguments[0]; } else - _ = 0; + k = 0; return g.apply(void 0, arguments); }; } - function g0(g) { + function h0(g) { if (g != null) { try { return rt.call(g); @@ -6263,81 +6239,81 @@ fs.exports; } return ""; } - function bi(g, _) { - return g === _ || g !== g && _ !== _; + function bi(g, k) { + return g === k || g !== g && k !== k; } - var xl = Nd(function() { + var bl = Fd(function() { return arguments; - }()) ? Nd : function(g) { - return Uo(g) && Me.call(g, "callee") && !kr.call(g, "callee"); - }, Sl = Array.isArray; - function wl(g) { - return g != null && Ld(g.length) && !Cl(g); - } - function b0(g) { - return Uo(g) && wl(g); - } - var Vd = Ce || C0; - function Cl(g) { - if (!En(g)) + }()) ? Fd : function(g) { + return Ho(g) && Ie.call(g, "callee") && !kr.call(g, "callee"); + }, yl = Array.isArray; + function xl(g) { + return g != null && Vd(g.length) && !Sl(g); + } + function m0(g) { + return Ho(g) && xl(g); + } + var zd = Ce || x0; + function Sl(g) { + if (!Pn(g)) return !1; - var _ = mi(g); - return _ == p || _ == m || _ == c || _ == S; + var k = mi(g); + return k == p || k == m || k == c || k == S; } - function Ld(g) { + function Vd(g) { return typeof g == "number" && g > -1 && g % 1 == 0 && g <= i; } - function En(g) { - var _ = typeof g; - return g != null && (_ == "object" || _ == "function"); + function Pn(g) { + var k = typeof g; + return g != null && (k == "object" || k == "function"); } - function Uo(g) { + function Ho(g) { return g != null && typeof g == "object"; } - function y0(g) { - if (!Uo(g) || mi(g) != y) + function v0(g) { + if (!Ho(g) || mi(g) != y) return !1; - var _ = te(g); - if (_ === null) + var k = te(g); + if (k === null) return !0; - var R = Me.call(_, "constructor") && _.constructor; - return typeof R == "function" && R instanceof R && rt.call(R) == Ot; + var $ = Ie.call(k, "constructor") && k.constructor; + return typeof $ == "function" && $ instanceof $ && rt.call($) == Ot; } - var Wd = $ ? le($) : Xy; - function x0(g) { - return o0(g, Ud(g)); + var Ld = R ? le(R) : Yy; + function g0(g) { + return t0(g, Wd(g)); } - function Ud(g) { - return wl(g) ? jt(g, !0) : Ky(g); + function Wd(g) { + return xl(g) ? jt(g, !0) : qy(g); } - var S0 = a0(function(g, _, R, re) { - jd(g, _, R, re); + var b0 = r0(function(g, k, $, re) { + Nd(g, k, $, re); }); - function w0(g) { + function y0(g) { return function() { return g; }; } - function Hd(g) { + function Ud(g) { return g; } - function C0() { + function x0() { return !1; } - e.exports = S0; -})(fs, fs.exports); -var R_ = fs.exports; -const sr = /* @__PURE__ */ Is(R_); -var D_ = (e) => /!(important)?$/.test(e), jf = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, M_ = (e, t) => (r) => { - const n = String(t), o = D_(n), a = jf(n), i = e ? `${e}.${a}` : a; + e.exports = b0; +})(ds, ds.exports); +var P_ = ds.exports; +const sr = /* @__PURE__ */ Ms(P_); +var T_ = (e) => /!(important)?$/.test(e), Nf = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, A_ = (e, t) => (r) => { + const n = String(t), o = T_(n), a = Nf(n), i = e ? `${e}.${a}` : a; let s = Lt(r.__cssMap) && i in r.__cssMap ? r.__cssMap[i].varRef : t; - return s = jf(s), o ? `${s} !important` : s; + return s = Nf(s), o ? `${s} !important` : s; }; -function Wu(e) { +function Vu(e) { const { scale: t, transform: r, compose: n } = e; return (a, i) => { var s; - const l = M_(t, a)(i); + const l = A_(t, a)(i); let c = (s = r == null ? void 0 : r(l, i)) != null ? s : l; return n && (c = n(c, i)), c; }; @@ -6346,45 +6322,45 @@ var wi = (...e) => (t) => e.reduce((r, n) => n(r), t); function rr(e, t) { return (r) => { const n = { property: r, scale: e }; - return n.transform = Wu({ + return n.transform = Vu({ scale: e, transform: t }), n; }; } -var I_ = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t; -function F_(e) { +var O_ = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t; +function R_(e) { const { property: t, scale: r, transform: n } = e; return { scale: r, - property: I_(t), - transform: r ? Wu({ + property: O_(t), + transform: r ? Vu({ scale: r, compose: n }) : n }; } -var fv = [ +var uv = [ "rotate(var(--chakra-rotate, 0))", "scaleX(var(--chakra-scale-x, 1))", "scaleY(var(--chakra-scale-y, 1))", "skewX(var(--chakra-skew-x, 0))", "skewY(var(--chakra-skew-y, 0))" ]; -function N_() { +function $_() { return [ "translateX(var(--chakra-translate-x, 0))", "translateY(var(--chakra-translate-y, 0))", - ...fv + ...uv ].join(" "); } -function j_() { +function D_() { return [ "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)", - ...fv + ...uv ].join(" "); } -var B_ = { +var M_ = { "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)", "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)", "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)", @@ -6405,7 +6381,7 @@ var B_ = { "var(--chakra-sepia)", "var(--chakra-drop-shadow)" ].join(" ") -}, z_ = { +}, I_ = { backdropFilter: [ "var(--chakra-backdrop-blur)", "var(--chakra-backdrop-brightness)", @@ -6427,7 +6403,7 @@ var B_ = { "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)", "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)" }; -function V_(e) { +function F_(e) { return { "--chakra-ring-offset-shadow": "var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)", "--chakra-ring-shadow": "var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)", @@ -6439,7 +6415,7 @@ function V_(e) { ].join(", ") }; } -var L_ = { +var N_ = { "row-reverse": { space: "--chakra-space-x-reverse", divide: "--chakra-divide-x-reverse" @@ -6448,7 +6424,7 @@ var L_ = { space: "--chakra-space-y-reverse", divide: "--chakra-divide-y-reverse" } -}, Fc = { +}, Ic = { "to-t": "to top", "to-tr": "to top right", "to-r": "to right", @@ -6457,31 +6433,31 @@ var L_ = { "to-bl": "to bottom left", "to-l": "to left", "to-tl": "to top left" -}, W_ = new Set(Object.values(Fc)), Nc = /* @__PURE__ */ new Set([ +}, j_ = new Set(Object.values(Ic)), Fc = /* @__PURE__ */ new Set([ "none", "-moz-initial", "inherit", "initial", "revert", "unset" -]), U_ = (e) => e.trim(); -function H_(e, t) { - if (e == null || Nc.has(e)) +]), B_ = (e) => e.trim(); +function z_(e, t) { + if (e == null || Fc.has(e)) return e; - if (!(jc(e) || Nc.has(e))) + if (!(Nc(e) || Fc.has(e))) return `url('${e}')`; const o = /(^[a-z-A-Z]+)\((.*)\)/g.exec(e), a = o == null ? void 0 : o[1], i = o == null ? void 0 : o[2]; if (!a || !i) return e; - const s = a.includes("-gradient") ? a : `${a}-gradient`, [l, ...c] = i.split(",").map(U_).filter(Boolean); + const s = a.includes("-gradient") ? a : `${a}-gradient`, [l, ...c] = i.split(",").map(B_).filter(Boolean); if ((c == null ? void 0 : c.length) === 0) return e; - const u = l in Fc ? Fc[l] : l; + const u = l in Ic ? Ic[l] : l; c.unshift(u); const d = c.map((f) => { - if (W_.has(f)) + if (j_.has(f)) return f; - const p = f.indexOf(" "), [m, h] = p !== -1 ? [f.substr(0, p), f.substr(p + 1)] : [f], v = jc(h) ? h : h && h.split(" "), b = `colors.${m}`, y = b in t.__cssMap ? t.__cssMap[b].varRef : m; + const p = f.indexOf(" "), [m, h] = p !== -1 ? [f.substr(0, p), f.substr(p + 1)] : [f], v = Nc(h) ? h : h && h.split(" "), b = `colors.${m}`, y = b in t.__cssMap ? t.__cssMap[b].varRef : m; return v ? [ y, ...Array.isArray(v) ? v : [v] @@ -6489,28 +6465,28 @@ function H_(e, t) { }); return `${s}(${d.join(", ")})`; } -var jc = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), Y_ = (e, t) => H_(e, t ?? {}); -function q_(e) { +var Nc = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), V_ = (e, t) => z_(e, t ?? {}); +function L_(e) { return /^var\(--.+\)$/.test(e); } -var G_ = (e) => { +var W_ = (e) => { const t = parseFloat(e.toString()), r = e.toString().replace(String(t), ""); return { unitless: !r, value: t, unit: r }; -}, Tr = (e) => (t) => `${e}(${t})`, Ie = { +}, Tr = (e) => (t) => `${e}(${t})`, Ae = { filter(e) { - return e !== "auto" ? e : B_; + return e !== "auto" ? e : M_; }, backdropFilter(e) { - return e !== "auto" ? e : z_; + return e !== "auto" ? e : I_; }, ring(e) { - return V_(Ie.px(e)); + return F_(Ae.px(e)); }, bgClip(e) { return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e }; }, transform(e) { - return e === "auto" ? N_() : e === "auto-gpu" ? j_() : e; + return e === "auto" ? $_() : e === "auto-gpu" ? D_() : e; }, vh(e) { return e === "$100vh" ? "var(--chakra-vh)" : e; @@ -6518,7 +6494,7 @@ var G_ = (e) => { px(e) { if (e == null) return e; - const { unitless: t } = G_(e); + const { unitless: t } = W_(e); return t || typeof e == "number" ? `${e}px` : e; }, fraction(e) { @@ -6529,24 +6505,24 @@ var G_ = (e) => { return t.direction === "rtl" ? r[e] : e; }, degree(e) { - if (q_(e) || e == null) + if (L_(e) || e == null) return e; const t = typeof e == "string" && !e.endsWith("deg"); return typeof e == "number" || t ? `${e}deg` : e; }, - gradient: Y_, + gradient: V_, blur: Tr("blur"), opacity: Tr("opacity"), brightness: Tr("brightness"), contrast: Tr("contrast"), dropShadow: Tr("drop-shadow"), grayscale: Tr("grayscale"), - hueRotate: Tr("hue-rotate"), + hueRotate: (e) => Tr("hue-rotate")(Ae.degree(e)), invert: Tr("invert"), saturate: Tr("saturate"), sepia: Tr("sepia"), bgImage(e) { - return e == null || jc(e) || Nc.has(e) ? e : `url(${e})`; + return e == null || Nc(e) || Fc.has(e) ? e : `url(${e})`; }, outline(e) { const t = String(e) === "0" || String(e) === "none"; @@ -6554,7 +6530,7 @@ var G_ = (e) => { }, flexDirection(e) { var t; - const { space: r, divide: n } = (t = L_[e]) != null ? t : {}, o = { flexDirection: e }; + const { space: r, divide: n } = (t = N_[e]) != null ? t : {}, o = { flexDirection: e }; return r && (o[r] = 1), n && (o[n] = 1), o; } }, E = { @@ -6562,30 +6538,30 @@ var G_ = (e) => { borderStyles: rr("borderStyles"), colors: rr("colors"), borders: rr("borders"), - gradients: rr("gradients", Ie.gradient), - radii: rr("radii", Ie.px), - space: rr("space", wi(Ie.vh, Ie.px)), - spaceT: rr("space", wi(Ie.vh, Ie.px)), + gradients: rr("gradients", Ae.gradient), + radii: rr("radii", Ae.px), + space: rr("space", wi(Ae.vh, Ae.px)), + spaceT: rr("space", wi(Ae.vh, Ae.px)), degreeT(e) { - return { property: e, transform: Ie.degree }; + return { property: e, transform: Ae.degree }; }, prop(e, t, r) { return { property: e, scale: t, ...t && { - transform: Wu({ scale: t, transform: r }) + transform: Vu({ scale: t, transform: r }) } }; }, propT(e, t) { return { property: e, transform: t }; }, - sizes: rr("sizes", wi(Ie.vh, Ie.px)), - sizesT: rr("sizes", wi(Ie.vh, Ie.fraction)), + sizes: rr("sizes", wi(Ae.vh, Ae.px)), + sizesT: rr("sizes", wi(Ae.vh, Ae.fraction)), shadows: rr("shadows"), - logical: F_, - blur: rr("blur", Ie.blur) + logical: R_, + blur: rr("blur", Ae.blur) }, Wi = { background: E.colors("background"), backgroundColor: E.colors("backgroundColor"), @@ -6594,7 +6570,7 @@ var G_ = (e) => { backgroundPosition: !0, backgroundRepeat: !0, backgroundAttachment: !0, - backgroundClip: { transform: Ie.bgClip }, + backgroundClip: { transform: Ae.bgClip }, bgSize: E.prop("backgroundSize"), bgPosition: E.prop("backgroundPosition"), bg: E.colors("background"), @@ -6603,7 +6579,7 @@ var G_ = (e) => { bgRepeat: E.prop("backgroundRepeat"), bgAttachment: E.prop("backgroundAttachment"), bgGradient: E.gradients("backgroundImage"), - bgClip: { transform: Ie.bgClip } + bgClip: { transform: Ae.bgClip } }; Object.assign(Wi, { bgImage: Wi.backgroundImage, @@ -6742,12 +6718,12 @@ Object.assign(je, { borderStartStyle: je.borderInlineStartStyle, borderEndStyle: je.borderInlineEndStyle }); -var X_ = { +var U_ = { color: E.colors("color"), textColor: E.colors("color"), fill: E.colors("fill"), stroke: E.colors("stroke") -}, Bc = { +}, jc = { boxShadow: E.shadows("boxShadow"), mixBlendMode: !0, blendMode: E.prop("mixBlendMode"), @@ -6755,35 +6731,38 @@ var X_ = { bgBlendMode: E.prop("backgroundBlendMode"), opacity: !0 }; -Object.assign(Bc, { - shadow: Bc.boxShadow +Object.assign(jc, { + shadow: jc.boxShadow }); -var K_ = { - filter: { transform: Ie.filter }, +var H_ = { + filter: { transform: Ae.filter }, blur: E.blur("--chakra-blur"), - brightness: E.propT("--chakra-brightness", Ie.brightness), - contrast: E.propT("--chakra-contrast", Ie.contrast), - hueRotate: E.degreeT("--chakra-hue-rotate"), - invert: E.propT("--chakra-invert", Ie.invert), - saturate: E.propT("--chakra-saturate", Ie.saturate), - dropShadow: E.propT("--chakra-drop-shadow", Ie.dropShadow), - backdropFilter: { transform: Ie.backdropFilter }, + brightness: E.propT("--chakra-brightness", Ae.brightness), + contrast: E.propT("--chakra-contrast", Ae.contrast), + hueRotate: E.propT("--chakra-hue-rotate", Ae.hueRotate), + invert: E.propT("--chakra-invert", Ae.invert), + saturate: E.propT("--chakra-saturate", Ae.saturate), + dropShadow: E.propT("--chakra-drop-shadow", Ae.dropShadow), + backdropFilter: { transform: Ae.backdropFilter }, backdropBlur: E.blur("--chakra-backdrop-blur"), backdropBrightness: E.propT( "--chakra-backdrop-brightness", - Ie.brightness + Ae.brightness ), - backdropContrast: E.propT("--chakra-backdrop-contrast", Ie.contrast), - backdropHueRotate: E.degreeT("--chakra-backdrop-hue-rotate"), - backdropInvert: E.propT("--chakra-backdrop-invert", Ie.invert), - backdropSaturate: E.propT("--chakra-backdrop-saturate", Ie.saturate) -}, ps = { + backdropContrast: E.propT("--chakra-backdrop-contrast", Ae.contrast), + backdropHueRotate: E.propT( + "--chakra-backdrop-hue-rotate", + Ae.hueRotate + ), + backdropInvert: E.propT("--chakra-backdrop-invert", Ae.invert), + backdropSaturate: E.propT("--chakra-backdrop-saturate", Ae.saturate) +}, fs = { alignItems: !0, alignContent: !0, justifyItems: !0, justifyContent: !0, flexWrap: !0, - flexDirection: { transform: Ie.flexDirection }, + flexDirection: { transform: Ae.flexDirection }, flex: !0, flexFlow: !0, flexGrow: !0, @@ -6799,10 +6778,10 @@ var K_ = { rowGap: E.space("rowGap"), columnGap: E.space("columnGap") }; -Object.assign(ps, { - flexDir: ps.flexDirection +Object.assign(fs, { + flexDir: fs.flexDirection }); -var pv = { +var dv = { gridGap: E.space("gridGap"), gridColumnGap: E.space("gridColumnGap"), gridRowGap: E.space("gridRowGap"), @@ -6820,13 +6799,13 @@ var pv = { gridTemplateRows: !0, gridTemplateAreas: !0, gridArea: !0 -}, Z_ = { +}, Y_ = { appearance: !0, cursor: !0, resize: !0, userSelect: !0, pointerEvents: !0, - outline: { transform: Ie.outline }, + outline: { transform: Ae.outline }, outlineOffset: !0, outlineColor: E.colors("outlineColor") }, or = { @@ -6868,7 +6847,7 @@ var pv = { verticalAlign: !0, boxSizing: !0, boxDecorationBreak: !0, - float: E.propT("float", Ie.float), + float: E.propT("float", Ae.float), objectFit: !0, objectPosition: !0, visibility: !0, @@ -6885,20 +6864,20 @@ Object.assign(or, { overscrollX: or.overscrollBehaviorX, overscrollY: or.overscrollBehaviorY }); -var J_ = { +var q_ = { listStyleType: !0, listStylePosition: !0, listStylePos: E.prop("listStylePosition"), listStyleImage: !0, listStyleImg: E.prop("listStyleImage") }; -function Q_(e, t, r, n) { +function G_(e, t, r, n) { const o = typeof t == "string" ? t.split(".") : [t]; for (n = 0; n < o.length && e; n += 1) e = e[o[n]]; return e === void 0 ? r : e; } -var ek = (e) => { +var X_ = (e) => { const t = /* @__PURE__ */ new WeakMap(); return (n, o, a, i) => { if (typeof n > "u") @@ -6910,7 +6889,7 @@ var ek = (e) => { const l = e(n, o, a, i); return s.set(o, l), l; }; -}, tk = ek(Q_), rk = { +}, K_ = X_(G_), Z_ = { border: "0px", clip: "rect(0, 0, 0, 0)", width: "1px", @@ -6920,7 +6899,7 @@ var ek = (e) => { overflow: "hidden", whiteSpace: "nowrap", position: "absolute" -}, nk = { +}, J_ = { position: "static", width: "auto", height: "auto", @@ -6929,30 +6908,30 @@ var ek = (e) => { margin: "0", overflow: "visible", whiteSpace: "normal" -}, $l = (e, t, r) => { - const n = {}, o = tk(e, t, {}); +}, Al = (e, t, r) => { + const n = {}, o = K_(e, t, {}); for (const a in o) a in r && r[a] != null || (n[a] = o[a]); return n; -}, ok = { +}, Q_ = { srOnly: { transform(e) { - return e === !0 ? rk : e === "focusable" ? nk : {}; + return e === !0 ? Z_ : e === "focusable" ? J_ : {}; } }, layerStyle: { processResult: !0, - transform: (e, t, r) => $l(t, `layerStyles.${e}`, r) + transform: (e, t, r) => Al(t, `layerStyles.${e}`, r) }, textStyle: { processResult: !0, - transform: (e, t, r) => $l(t, `textStyles.${e}`, r) + transform: (e, t, r) => Al(t, `textStyles.${e}`, r) }, apply: { processResult: !0, - transform: (e, t, r) => $l(t, e, r) + transform: (e, t, r) => Al(t, e, r) } -}, da = { +}, pa = { position: !0, pos: E.prop("position"), zIndex: E.prop("zIndex", "zIndices"), @@ -6976,12 +6955,12 @@ var ek = (e) => { property: { ltr: "right", rtl: "left" } }) }; -Object.assign(da, { - insetStart: da.insetInlineStart, - insetEnd: da.insetInlineEnd +Object.assign(pa, { + insetStart: pa.insetInlineStart, + insetEnd: pa.insetInlineEnd }); -var ak = { - ring: { transform: Ie.ring }, +var ek = { + ring: { transform: Ae.ring }, ringColor: E.colors("--chakra-ring-color"), ringOffset: E.prop("--chakra-ring-offset-width"), ringOffsetColor: E.colors("--chakra-ring-offset-color"), @@ -7038,7 +7017,7 @@ Object.assign(Je, { pe: Je.paddingInlineEnd, paddingEnd: Je.paddingInlineEnd }); -var ik = { +var tk = { textDecorationColor: E.colors("textDecorationColor"), textDecoration: !0, textDecor: { property: "textDecoration" }, @@ -7047,9 +7026,9 @@ var ik = { textDecorationThickness: !0, textUnderlineOffset: !0, textShadow: E.shadows("textShadow") -}, sk = { +}, rk = { clipPath: !0, - transform: E.propT("transform", Ie.transform), + transform: E.propT("transform", Ae.transform), transformOrigin: !0, translateX: E.spaceT("--chakra-translate-x"), translateY: E.spaceT("--chakra-translate-y"), @@ -7059,7 +7038,7 @@ var ik = { scaleY: E.prop("--chakra-scale-y"), scale: E.prop(["--chakra-scale-x", "--chakra-scale-y"]), rotate: E.degreeT("--chakra-rotate") -}, lk = { +}, nk = { transition: !0, transitionDelay: !0, animation: !0, @@ -7070,9 +7049,9 @@ var ik = { "transitionTimingFunction", "transition.easing" ) -}, ck = { +}, ok = { fontFamily: E.prop("fontFamily", "fonts"), - fontSize: E.prop("fontSize", "fontSizes", Ie.px), + fontSize: E.prop("fontSize", "fontSizes", Ae.px), fontWeight: E.prop("fontWeight", "fontWeights"), lineHeight: E.prop("lineHeight", "lineHeights"), letterSpacing: E.prop("letterSpacing", "letterSpacings"), @@ -7100,15 +7079,17 @@ var ik = { textOverflow: "ellipsis", display: "-webkit-box", WebkitBoxOrient: "vertical", + //@ts-ignore WebkitLineClamp: "var(--chakra-line-clamp)" }, property: "--chakra-line-clamp" } -}, uk = { +}, ak = { scrollBehavior: !0, scrollSnapAlign: !0, scrollSnapStop: !0, scrollSnapType: !0, + // scroll margin scrollMargin: E.spaceT("scrollMargin"), scrollMarginTop: E.spaceT("scrollMarginTop"), scrollMarginBottom: E.spaceT("scrollMarginBottom"), @@ -7116,6 +7097,7 @@ var ik = { scrollMarginRight: E.spaceT("scrollMarginRight"), scrollMarginX: E.spaceT(["scrollMarginLeft", "scrollMarginRight"]), scrollMarginY: E.spaceT(["scrollMarginTop", "scrollMarginBottom"]), + // scroll padding scrollPadding: E.spaceT("scrollPadding"), scrollPaddingTop: E.spaceT("scrollPaddingTop"), scrollPaddingBottom: E.spaceT("scrollPaddingBottom"), @@ -7124,59 +7106,59 @@ var ik = { scrollPaddingX: E.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]), scrollPaddingY: E.spaceT(["scrollPaddingTop", "scrollPaddingBottom"]) }; -function hv(e) { +function fv(e) { return Lt(e) && e.reference ? e.reference : String(e); } -var Us = (e, ...t) => t.map(hv).join(` ${e} `).replace(/calc/g, ""), Bf = (...e) => `calc(${Us("+", ...e)})`, zf = (...e) => `calc(${Us("-", ...e)})`, zc = (...e) => `calc(${Us("*", ...e)})`, Vf = (...e) => `calc(${Us("/", ...e)})`, Lf = (e) => { - const t = hv(e); - return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : zc(t, -1); -}, Rn = Object.assign( +var Ws = (e, ...t) => t.map(fv).join(` ${e} `).replace(/calc/g, ""), jf = (...e) => `calc(${Ws("+", ...e)})`, Bf = (...e) => `calc(${Ws("-", ...e)})`, Bc = (...e) => `calc(${Ws("*", ...e)})`, zf = (...e) => `calc(${Ws("/", ...e)})`, Vf = (e) => { + const t = fv(e); + return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Bc(t, -1); +}, Dn = Object.assign( (e) => ({ - add: (...t) => Rn(Bf(e, ...t)), - subtract: (...t) => Rn(zf(e, ...t)), - multiply: (...t) => Rn(zc(e, ...t)), - divide: (...t) => Rn(Vf(e, ...t)), - negate: () => Rn(Lf(e)), + add: (...t) => Dn(jf(e, ...t)), + subtract: (...t) => Dn(Bf(e, ...t)), + multiply: (...t) => Dn(Bc(e, ...t)), + divide: (...t) => Dn(zf(e, ...t)), + negate: () => Dn(Vf(e)), toString: () => e.toString() }), { - add: Bf, - subtract: zf, - multiply: zc, - divide: Vf, - negate: Lf + add: jf, + subtract: Bf, + multiply: Bc, + divide: zf, + negate: Vf } ); -function dk(e, t = "-") { +function ik(e, t = "-") { return e.replace(/\s+/g, t); } -function fk(e) { - const t = dk(e.toString()); - return hk(pk(t)); +function sk(e) { + const t = ik(e.toString()); + return ck(lk(t)); } -function pk(e) { +function lk(e) { return e.includes("\\.") ? e : !Number.isInteger(parseFloat(e.toString())) ? e.replace(".", "\\.") : e; } -function hk(e) { +function ck(e) { return e.replace(/[!-,/:-@[-^`{-~]/g, "\\$&"); } -function mk(e, t = "") { +function uk(e, t = "") { return [t, e].filter(Boolean).join("-"); } -function vk(e, t) { +function dk(e, t) { return `var(${e}${t ? `, ${t}` : ""})`; } -function gk(e, t = "") { - return fk(`--${mk(e, t)}`); +function fk(e, t = "") { + return sk(`--${uk(e, t)}`); } function de(e, t, r) { - const n = gk(e, r); + const n = fk(e, r); return { variable: n, - reference: vk(n, t) + reference: dk(n, t) }; } -function bk(e, t) { +function pk(e, t) { const r = {}; for (const n of t) { if (Array.isArray(n)) { @@ -7188,59 +7170,59 @@ function bk(e, t) { } return r; } -function yk(e) { +function hk(e) { const t = e == null ? 0 : e.length; return t ? e[t - 1] : void 0; } -function xk(e) { +function mk(e) { const t = parseFloat(e.toString()), r = e.toString().replace(String(t), ""); return { unitless: !r, value: t, unit: r }; } -function Vc(e) { +function zc(e) { if (e == null) return e; - const { unitless: t } = xk(e); + const { unitless: t } = mk(e); return t || typeof e == "number" ? `${e}px` : e; } -var mv = (e, t) => parseInt(e[1], 10) > parseInt(t[1], 10) ? 1 : -1, Uu = (e) => Object.fromEntries(Object.entries(e).sort(mv)); -function Wf(e) { - const t = Uu(e); +var pv = (e, t) => parseInt(e[1], 10) > parseInt(t[1], 10) ? 1 : -1, Lu = (e) => Object.fromEntries(Object.entries(e).sort(pv)); +function Lf(e) { + const t = Lu(e); return Object.assign(Object.values(t), t); } -function Sk(e) { - const t = Object.keys(Uu(e)); +function vk(e) { + const t = Object.keys(Lu(e)); return new Set(t); } -function Uf(e) { +function Wf(e) { var t; if (!e) return e; - e = (t = Vc(e)) != null ? t : e; + e = (t = zc(e)) != null ? t : e; const r = -0.02; return typeof e == "number" ? `${e + r}` : e.replace(/(\d+\.?\d*)/u, (n) => `${parseFloat(n) + r}`); } -function ra(e, t) { +function na(e, t) { const r = ["@media screen"]; - return e && r.push("and", `(min-width: ${Vc(e)})`), t && r.push("and", `(max-width: ${Vc(t)})`), r.join(" "); + return e && r.push("and", `(min-width: ${zc(e)})`), t && r.push("and", `(max-width: ${zc(t)})`), r.join(" "); } -function wk(e) { +function gk(e) { var t; if (!e) return null; e.base = (t = e.base) != null ? t : "0px"; - const r = Wf(e), n = Object.entries(e).sort(mv).map(([i, s], l, c) => { + const r = Lf(e), n = Object.entries(e).sort(pv).map(([i, s], l, c) => { var u; let [, d] = (u = c[l + 1]) != null ? u : []; - return d = parseFloat(d) > 0 ? Uf(d) : void 0, { - _minW: Uf(s), + return d = parseFloat(d) > 0 ? Wf(d) : void 0, { + _minW: Wf(s), breakpoint: i, minW: s, maxW: d, - maxWQuery: ra(null, d), - minWQuery: ra(s), - minMaxQuery: ra(s, d) + maxWQuery: na(null, d), + minWQuery: na(s), + minMaxQuery: na(s, d) }; - }), o = Sk(e), a = Array.from(o.values()); + }), o = vk(e), a = Array.from(o.values()); return { keys: o, normalized: r, @@ -7248,16 +7230,22 @@ function wk(e) { const s = Object.keys(i); return s.length > 0 && s.every((l) => o.has(l)); }, - asObject: Uu(e), - asArray: Wf(e), + asObject: Lu(e), + asArray: Lf(e), details: n, get(i) { return n.find((s) => s.breakpoint === i); }, media: [ null, - ...r.map((i) => ra(i)).slice(1) + ...r.map((i) => na(i)).slice(1) ], + /** + * Converts the object responsive syntax to array syntax + * + * @example + * toArrayValue({ base: 1, sm: 2, md: 3 }) // => [1, 2, 3] + */ toArrayValue(i) { if (!Lt(i)) throw new Error("toArrayValue: value must be an object"); @@ -7265,10 +7253,16 @@ function wk(e) { var c; return (c = i[l]) != null ? c : null; }); - for (; yk(s) === null; ) + for (; hk(s) === null; ) s.pop(); return s; }, + /** + * Converts the array responsive syntax to object syntax + * + * @example + * toObjectValue([1, 2, 3]) // => { base: 1, sm: 2, md: 3 } + */ toObjectValue(i) { if (!Array.isArray(i)) throw new Error("toObjectValue: value must be an array"); @@ -7292,82 +7286,308 @@ var _t = { readOnly: (e, t) => `${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`, expanded: (e, t) => `${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`, placeholderShown: (e, t) => `${e}:placeholder-shown ${t}` -}, ln = (e) => vv((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), Ur = (e) => vv((t) => e(t, "~ &"), "[data-peer]", ".peer"), vv = (e, ...t) => t.map(e).join(", "), Hs = { +}, cn = (e) => hv((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), Hr = (e) => hv((t) => e(t, "~ &"), "[data-peer]", ".peer"), hv = (e, ...t) => t.map(e).join(", "), Us = { + /** + * Styles for CSS selector `&:hover` + */ _hover: "&:hover, &[data-hover]", + /** + * Styles for CSS Selector `&:active` + */ _active: "&:active, &[data-active]", + /** + * Styles for CSS selector `&:focus` + * + */ _focus: "&:focus, &[data-focus]", + /** + * Styles for the highlighted state. + */ _highlighted: "&[data-highlighted]", + /** + * Styles to apply when a child of this element has received focus + * - CSS Selector `&:focus-within` + */ _focusWithin: "&:focus-within", + /** + * Styles to apply when this element has received focus via tabbing + * - CSS Selector `&:focus-visible` + */ _focusVisible: "&:focus-visible, &[data-focus-visible]", + /** + * Styles to apply when this element is disabled. The passed styles are applied to these CSS selectors: + * - `&[aria-disabled=true]` + * - `&:disabled` + * - `&[data-disabled]` + * - `&[disabled]` + */ _disabled: "&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]", + /** + * Styles for CSS Selector `&:readonly` + */ _readOnly: "&[aria-readonly=true], &[readonly], &[data-readonly]", + /** + * Styles for CSS selector `&::before` + * + * NOTE:When using this, ensure the `content` is wrapped in a backtick. + * @example + * ```jsx + * + * ``` + */ _before: "&::before", + /** + * Styles for CSS selector `&::after` + * + * NOTE:When using this, ensure the `content` is wrapped in a backtick. + * @example + * ```jsx + * + * ``` + */ _after: "&::after", + /** + * Styles for CSS selector `&:empty` + */ _empty: "&:empty", + /** + * Styles to apply when the ARIA attribute `aria-expanded` is `true` + * - CSS selector `&[aria-expanded=true]` + */ _expanded: "&[aria-expanded=true], &[data-expanded]", + /** + * Styles to apply when the ARIA attribute `aria-checked` is `true` + * - CSS selector `&[aria-checked=true]` + */ _checked: "&[aria-checked=true], &[data-checked]", + /** + * Styles to apply when the ARIA attribute `aria-grabbed` is `true` + * - CSS selector `&[aria-grabbed=true]` + */ _grabbed: "&[aria-grabbed=true], &[data-grabbed]", + /** + * Styles for CSS Selector `&[aria-pressed=true]` + * Typically used to style the current "pressed" state of toggle buttons + */ _pressed: "&[aria-pressed=true], &[data-pressed]", + /** + * Styles to apply when the ARIA attribute `aria-invalid` is `true` + * - CSS selector `&[aria-invalid=true]` + */ _invalid: "&[aria-invalid=true], &[data-invalid]", + /** + * Styles for the valid state + * - CSS selector `&[data-valid], &[data-state=valid]` + */ _valid: "&[data-valid], &[data-state=valid]", + /** + * Styles for CSS Selector `&[aria-busy=true]` or `&[data-loading=true]`. + * Useful for styling loading states + */ _loading: "&[data-loading], &[aria-busy=true]", + /** + * Styles to apply when the ARIA attribute `aria-selected` is `true` + * + * - CSS selector `&[aria-selected=true]` + */ _selected: "&[aria-selected=true], &[data-selected]", + /** + * Styles for CSS Selector `[hidden=true]` + */ _hidden: "&[hidden], &[data-hidden]", + /** + * Styles for CSS Selector `&:-webkit-autofill` + */ _autofill: "&:-webkit-autofill", + /** + * Styles for CSS Selector `&:nth-child(even)` + */ _even: "&:nth-of-type(even)", + /** + * Styles for CSS Selector `&:nth-child(odd)` + */ _odd: "&:nth-of-type(odd)", + /** + * Styles for CSS Selector `&:first-of-type` + */ _first: "&:first-of-type", + /** + * Styles for CSS selector `&::first-letter` + * + * NOTE: This selector is only applied for block-level elements and not preceded by an image or table. + * @example + * ```jsx + * Once upon a time + * ``` + */ _firstLetter: "&::first-letter", + /** + * Styles for CSS Selector `&:last-of-type` + */ _last: "&:last-of-type", + /** + * Styles for CSS Selector `&:not(:first-of-type)` + */ _notFirst: "&:not(:first-of-type)", + /** + * Styles for CSS Selector `&:not(:last-of-type)` + */ _notLast: "&:not(:last-of-type)", + /** + * Styles for CSS Selector `&:visited` + */ _visited: "&:visited", + /** + * Used to style the active link in a navigation + * Styles for CSS Selector `&[aria-current=page]` + */ _activeLink: "&[aria-current=page]", + /** + * Used to style the current step within a process + * Styles for CSS Selector `&[aria-current=step]` + */ _activeStep: "&[aria-current=step]", + /** + * Styles to apply when the ARIA attribute `aria-checked` is `mixed` + * - CSS selector `&[aria-checked=mixed]` + */ _indeterminate: "&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]", - _groupHover: ln(_t.hover), - _peerHover: Ur(_t.hover), - _groupFocus: ln(_t.focus), - _peerFocus: Ur(_t.focus), - _groupFocusVisible: ln(_t.focusVisible), - _peerFocusVisible: Ur(_t.focusVisible), - _groupActive: ln(_t.active), - _peerActive: Ur(_t.active), - _groupDisabled: ln(_t.disabled), - _peerDisabled: Ur(_t.disabled), - _groupInvalid: ln(_t.invalid), - _peerInvalid: Ur(_t.invalid), - _groupChecked: ln(_t.checked), - _peerChecked: Ur(_t.checked), - _groupFocusWithin: ln(_t.focusWithin), - _peerFocusWithin: Ur(_t.focusWithin), - _peerPlaceholderShown: Ur(_t.placeholderShown), + /** + * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is hovered + */ + _groupHover: cn(_t.hover), + /** + * Styles to apply when a sibling element with `.peer` or `data-peer` is hovered + */ + _peerHover: Hr(_t.hover), + /** + * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is focused + */ + _groupFocus: cn(_t.focus), + /** + * Styles to apply when a sibling element with `.peer` or `data-peer` is focused + */ + _peerFocus: Hr(_t.focus), + /** + * Styles to apply when a parent element with `.group`, `data-group` or `role=group` has visible focus + */ + _groupFocusVisible: cn(_t.focusVisible), + /** + * Styles to apply when a sibling element with `.peer`or `data-peer` has visible focus + */ + _peerFocusVisible: Hr(_t.focusVisible), + /** + * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is active + */ + _groupActive: cn(_t.active), + /** + * Styles to apply when a sibling element with `.peer` or `data-peer` is active + */ + _peerActive: Hr(_t.active), + /** + * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is disabled + */ + _groupDisabled: cn(_t.disabled), + /** + * Styles to apply when a sibling element with `.peer` or `data-peer` is disabled + */ + _peerDisabled: Hr(_t.disabled), + /** + * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is invalid + */ + _groupInvalid: cn(_t.invalid), + /** + * Styles to apply when a sibling element with `.peer` or `data-peer` is invalid + */ + _peerInvalid: Hr(_t.invalid), + /** + * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is checked + */ + _groupChecked: cn(_t.checked), + /** + * Styles to apply when a sibling element with `.peer` or `data-peer` is checked + */ + _peerChecked: Hr(_t.checked), + /** + * Styles to apply when a parent element with `.group`, `data-group` or `role=group` has focus within + */ + _groupFocusWithin: cn(_t.focusWithin), + /** + * Styles to apply when a sibling element with `.peer` or `data-peer` has focus within + */ + _peerFocusWithin: Hr(_t.focusWithin), + /** + * Styles to apply when a sibling element with `.peer` or `data-peer` has placeholder shown + */ + _peerPlaceholderShown: Hr(_t.placeholderShown), + /** + * Styles for CSS Selector `&::placeholder`. + */ _placeholder: "&::placeholder", + /** + * Styles for CSS Selector `&:placeholder-shown`. + */ _placeholderShown: "&:placeholder-shown", + /** + * Styles for CSS Selector `&:fullscreen`. + */ _fullScreen: "&:fullscreen", + /** + * Styles for CSS Selector `&::selection` + */ _selection: "&::selection", + /** + * Styles for CSS Selector `[dir=rtl] &` + * It is applied when a parent element or this element has `dir="rtl"` + */ _rtl: "[dir=rtl] &, &[dir=rtl]", + /** + * Styles for CSS Selector `[dir=ltr] &` + * It is applied when a parent element or this element has `dir="ltr"` + */ _ltr: "[dir=ltr] &, &[dir=ltr]", + /** + * Styles for CSS Selector `@media (prefers-color-scheme: dark)` + * It is used when the user has requested the system use a light or dark color theme. + */ _mediaDark: "@media (prefers-color-scheme: dark)", + /** + * Styles for CSS Selector `@media (prefers-reduced-motion: reduce)` + * It is used when the user has requested the system to reduce the amount of animations. + */ _mediaReduceMotion: "@media (prefers-reduced-motion: reduce)", + /** + * Styles for when `data-theme` is applied to any parent of + * this component or element. + */ _dark: ".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]", + /** + * Styles for when `data-theme` is applied to any parent of + * this component or element. + */ _light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]", + /** + * Styles for the CSS Selector `&[data-orientation=horizontal]` + */ _horizontal: "&[data-orientation=horizontal]", + /** + * Styles for the CSS Selector `&[data-orientation=vertical]` + */ _vertical: "&[data-orientation=vertical]" -}, gv = Object.keys( - Hs +}, mv = Object.keys( + Us ); -function Hf(e, t) { +function Uf(e, t) { return de(String(e).replace(/\./g, "-"), void 0, t); } -function Ck(e, t) { +function bk(e, t) { let r = {}; const n = {}; for (const [o, a] of Object.entries(e)) { - const { isSemantic: i, value: s } = a, { variable: l, reference: c } = Hf(o, t == null ? void 0 : t.cssVarPrefix); + const { isSemantic: i, value: s } = a, { variable: l, reference: c } = Uf(o, t == null ? void 0 : t.cssVarPrefix); if (!i) { if (o.startsWith("space")) { - const f = o.split("."), [p, ...m] = f, h = `${p}.-${m.join(".")}`, v = Rn.negate(s), b = Rn.negate(c); + const f = o.split("."), [p, ...m] = f, h = `${p}.-${m.join(".")}`, v = Dn.negate(s), b = Dn.negate(c); n[h] = { value: v, var: l, @@ -7385,7 +7605,7 @@ function Ck(e, t) { const m = [String(o).split(".")[0], f].join("."); if (!e[m]) return f; - const { reference: v } = Hf(m, t == null ? void 0 : t.cssVarPrefix); + const { reference: v } = Uf(m, t == null ? void 0 : t.cssVarPrefix); return v; }, d = Lt(s) ? s : { default: s }; r = sr( @@ -7398,7 +7618,7 @@ function Ck(e, t) { const b = u(`${m}`); if (p === "default") return f[l] = b, f; - const y = (v = (h = Hs) == null ? void 0 : h[p]) != null ? v : p; + const y = (v = (h = Us) == null ? void 0 : h[p]) != null ? v : p; return f[y] = { [l]: b }, f; }, {} @@ -7414,26 +7634,26 @@ function Ck(e, t) { cssMap: n }; } -function _k(e, t = []) { +function yk(e, t = []) { const r = Object.assign({}, e); for (const n of t) n in r && delete r[n]; return r; } -function kk(e, t) { +function xk(e, t) { const r = {}; for (const n of t) n in e && (r[n] = e[n]); return r; } -function Ek(e) { +function Sk(e) { return typeof e == "object" && e != null && !Array.isArray(e); } -function Yf(e, t, r = {}) { +function Hf(e, t, r = {}) { const { stop: n, getKey: o } = r; function a(i, s = []) { var l; - if (Ek(i) || Array.isArray(i)) { + if (Sk(i) || Array.isArray(i)) { const c = {}; for (const [u, d] of Object.entries(i)) { const f = (l = o == null ? void 0 : o(u)) != null ? l : u, p = [...s, f]; @@ -7447,7 +7667,7 @@ function Yf(e, t, r = {}) { } return a(e); } -var Pk = [ +var wk = [ "colors", "borders", "borderWidths", @@ -7467,40 +7687,48 @@ var Pk = [ "blur", "breakpoints" ]; -function Tk(e) { - return kk(e, Pk); +function Ck(e) { + return xk(e, wk); } -function Ak(e) { +function _k(e) { return e.semanticTokens; } -function Ok(e) { +function kk(e) { const { __cssMap: t, __cssVars: r, __breakpoints: n, ...o } = e; return o; } -var $k = (e) => gv.includes(e) || e === "default"; -function Rk({ +var Ek = (e) => mv.includes(e) || e === "default"; +function Pk({ tokens: e, semanticTokens: t }) { const r = {}; - return Yf(e, (n, o) => { + return Hf(e, (n, o) => { n != null && (r[o.join(".")] = { isSemantic: !1, value: n }); - }), Yf( + }), Hf( t, (n, o) => { n != null && (r[o.join(".")] = { isSemantic: !0, value: n }); }, { - stop: (n) => Object.keys(n).every($k) + stop: (n) => Object.keys(n).every(Ek) } ), r; } -function MV(e) { +function TV(e) { var t; - const r = Ok(e), n = Tk(r), o = Ak(r), a = Rk({ tokens: n, semanticTokens: o }), i = (t = r.config) == null ? void 0 : t.cssVarPrefix, { + const r = kk(e), n = Ck(r), o = _k(r), a = Pk({ tokens: n, semanticTokens: o }), i = (t = r.config) == null ? void 0 : t.cssVarPrefix, { + /** + * This is more like a dictionary of tokens users will type `green.500`, + * and their equivalent css variable. + */ cssMap: s, + /** + * The extracted css variables will be stored here, and used in + * the emotion's component to attach variables to `:root` + */ cssVars: l - } = Ck(a, { cssVarPrefix: i }); + } = bk(a, { cssVarPrefix: i }); return Object.assign(r, { __cssVars: { ...{ "--chakra-ring-inset": "var(--chakra-empty,/*!*/ /*!*/)", @@ -7513,38 +7741,38 @@ function MV(e) { "--chakra-space-y-reverse": "0" }, ...l }, __cssMap: s, - __breakpoints: wk(r.breakpoints) + __breakpoints: gk(r.breakpoints) }), r; } -var Hu = sr( +var Wu = sr( {}, Wi, je, - X_, - ps, + U_, + fs, or, - K_, + H_, + ek, + Y_, + dv, + Q_, + pa, + jc, + Je, ak, - Z_, - pv, ok, - da, - Bc, - Je, - uk, - ck, - ik, - sk, - J_, - lk -), Dk = Object.assign({}, Je, or, ps, pv, da), IV = Object.keys( - Dk -), Mk = [...Object.keys(Hu), ...gv], Ik = { ...Hu, ...Hs }, Fk = (e) => e in Ik, Nk = (e) => (t) => { + tk, + rk, + q_, + nk +), Tk = Object.assign({}, Je, or, fs, dv, pa), AV = Object.keys( + Tk +), Ak = [...Object.keys(Wu), ...mv], Ok = { ...Wu, ...Us }, Rk = (e) => e in Ok, $k = (e) => (t) => { if (!t.__breakpoints) return e; const { isResponsive: r, toArrayValue: n, media: o } = t.__breakpoints, a = {}; for (const i in e) { - let s = hn(e[i], t); + let s = mn(e[i], t); if (s == null) continue; if (s = Lt(s) && r(s) ? n(s) : s, !Array.isArray(s)) { @@ -7563,7 +7791,7 @@ var Hu = sr( } return a; }; -function jk(e) { +function Dk(e) { const t = []; let r = "", n = !1; for (let o = 0; o < e.length; o++) { @@ -7572,10 +7800,10 @@ function jk(e) { } return r = r.trim(), r && t.push(r), t; } -function Bk(e) { +function Mk(e) { return /^var\(--.+\)$/.test(e); } -var zk = (e, t) => e.startsWith("--") && typeof t == "string" && !Bk(t), Vk = (e, t) => { +var Ik = (e, t) => e.startsWith("--") && typeof t == "string" && !Mk(t), Fk = (e, t) => { var r, n; if (t == null) return t; @@ -7585,18 +7813,18 @@ var zk = (e, t) => e.startsWith("--") && typeof t == "string" && !Bk(t), Vk = (e }, a = (l) => { var c; return (c = o(l)) != null ? c : l; - }, [i, s] = jk(t); + }, [i, s] = Dk(t); return t = (n = (r = o(i)) != null ? r : a(s)) != null ? n : a(t), t; }; -function Lk(e) { +function Nk(e) { const { configs: t = {}, pseudos: r = {}, theme: n } = e, o = (a, i = !1) => { var s, l, c; - const u = hn(a, n), d = Nk(u)(n); + const u = mn(a, n), d = $k(u)(n); let f = {}; for (let p in d) { const m = d[p]; - let h = hn(m, n); - p in r && (p = r[p]), zk(p, h) && (h = Vk(n, h)); + let h = mn(m, n); + p in r && (p = r[p]), Ik(p, h) && (h = Fk(n, h)); let v = t[p]; if (v === !0 && (v = { property: p }), Lt(h)) { f[p] = (s = f[p]) != null ? s : {}, f[p] = sr( @@ -7608,9 +7836,9 @@ function Lk(e) { } let b = (c = (l = v == null ? void 0 : v.transform) == null ? void 0 : l.call(v, h, n, u)) != null ? c : h; b = v != null && v.processResult ? o(b, !0) : b; - const y = hn(v == null ? void 0 : v.property, n); + const y = mn(v == null ? void 0 : v.property, n); if (!i && (v != null && v.static)) { - const S = hn(v.static, n); + const S = mn(v.static, n); f = sr({}, f, S); } if (y && Array.isArray(y)) { @@ -7632,15 +7860,15 @@ function Lk(e) { }; return o; } -var Wk = (e) => (t) => Lk({ +var jk = (e) => (t) => Nk({ theme: t, - pseudos: Hs, - configs: Hu + pseudos: Us, + configs: Wu })(e); -function FV(e) { +function OV(e) { return e; } -function NV(e) { +function RV(e) { return e; } function Ke(e) { @@ -7653,7 +7881,7 @@ function Ke(e) { } }; } -function Uk(e, t) { +function Bk(e, t) { if (Array.isArray(e)) return e; if (Lt(e)) @@ -7661,24 +7889,24 @@ function Uk(e, t) { if (e != null) return [e]; } -function Hk(e, t) { +function zk(e, t) { for (let r = t + 1; r < e.length; r++) if (e[r] != null) return r; return -1; } -function Yk(e) { +function Vk(e) { const t = e.__breakpoints; return function(n, o, a, i) { var s, l; if (!t) return; - const c = {}, u = Uk(a, t.toArrayValue); + const c = {}, u = Bk(a, t.toArrayValue); if (!u) return c; const d = u.length, f = d === 1, p = !!n.parts; for (let m = 0; m < d; m++) { - const h = t.details[m], v = t.details[Hk(u, m)], b = ra(h.minW, v == null ? void 0 : v._minW), y = hn((s = n[o]) == null ? void 0 : s[u[m]], i); + const h = t.details[m], v = t.details[zk(u, m)], b = na(h.minW, v == null ? void 0 : v._minW), y = mn((s = n[o]) == null ? void 0 : s[u[m]], i); if (y) { if (p) { (l = n.parts) == null || l.forEach((S) => { @@ -7698,26 +7926,26 @@ function Yk(e) { return c; }; } -function qk(e) { +function Lk(e) { return (t) => { var r; - const { variant: n, size: o, theme: a } = t, i = Yk(a); + const { variant: n, size: o, theme: a } = t, i = Vk(a); return sr( {}, - hn((r = e.baseStyle) != null ? r : {}, t), + mn((r = e.baseStyle) != null ? r : {}, t), i(e, "sizes", o, t), i(e, "variants", n, t) ); }; } -function Gk(e, t, r) { +function Wk(e, t, r) { var n, o, a; return (a = (o = (n = e.__cssMap) == null ? void 0 : n[`${t}.${r}`]) == null ? void 0 : o.varRef) != null ? a : r; } -function jr(e) { - return _k(e, ["styleConfig", "size", "variant", "colorScheme"]); +function Br(e) { + return yk(e, ["styleConfig", "size", "variant", "colorScheme"]); } -var Xk = [ +var Uk = [ "borders", "breakpoints", "colors", @@ -7737,22 +7965,22 @@ var Xk = [ "transition", "zIndices" ]; -function Kk(e) { - return Lt(e) ? Xk.every( +function Hk(e) { + return Lt(e) ? Uk.every( (t) => Object.prototype.hasOwnProperty.call(e, t) ) : !1; } -var Zk = { +var Yk = { common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform", colors: "background-color, border-color, color, fill, stroke", dimensions: "width, height", position: "left, right, top, bottom", background: "background-color, background-image, background-position" -}, Jk = { +}, qk = { "ease-in": "cubic-bezier(0.4, 0, 1, 1)", "ease-out": "cubic-bezier(0, 0, 0.2, 1)", "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)" -}, Qk = { +}, Gk = { "ultra-fast": "50ms", faster: "100ms", fast: "150ms", @@ -7760,11 +7988,11 @@ var Zk = { slow: "300ms", slower: "400ms", "ultra-slow": "500ms" -}, eE = { - property: Zk, - easing: Jk, - duration: Qk -}, tE = eE, rE = { +}, Xk = { + property: Yk, + easing: qk, + duration: Gk +}, Kk = Xk, Zk = { hide: -1, auto: "auto", base: 0, @@ -7778,20 +8006,20 @@ var Zk = { skipLink: 1600, toast: 1700, tooltip: 1800 -}, nE = rE, oE = { +}, Jk = Zk, Qk = { none: 0, "1px": "1px solid", "2px": "2px solid", "4px": "4px solid", "8px": "8px solid" -}, aE = oE, iE = { +}, eE = Qk, tE = { base: "0em", sm: "30em", md: "48em", lg: "62em", xl: "80em", "2xl": "96em" -}, sE = iE, lE = { +}, rE = tE, nE = { transparent: "transparent", current: "currentColor", black: "#000000", @@ -8012,7 +8240,7 @@ var Zk = { 800: "#005885", 900: "#003F5E" } -}, cE = lE, uE = { +}, oE = nE, aE = { none: "0", sm: "0.125rem", base: "0.25rem", @@ -8022,7 +8250,7 @@ var Zk = { "2xl": "1rem", "3xl": "1.5rem", full: "9999px" -}, dE = uE, fE = { +}, iE = aE, sE = { xs: "0 0 0 1px rgba(0, 0, 0, 0.05)", sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)", base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)", @@ -8034,7 +8262,7 @@ var Zk = { inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)", none: "none", "dark-lg": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px" -}, pE = fE, hE = { +}, lE = sE, cE = { none: 0, sm: "4px", base: "8px", @@ -8043,7 +8271,7 @@ var Zk = { xl: "24px", "2xl": "40px", "3xl": "64px" -}, mE = hE, vE = { +}, uE = cE, dE = { letterSpacings: { tighter: "-0.05em", tight: "-0.025em", @@ -8102,7 +8330,7 @@ var Zk = { "8xl": "6rem", "9xl": "8rem" } -}, bv = vE, yv = { +}, vv = dE, gv = { px: "1px", 0.5: "0.125rem", 1: "0.25rem", @@ -8136,7 +8364,7 @@ var Zk = { 72: "18rem", 80: "20rem", 96: "24rem" -}, gE = { +}, fE = { max: "max-content", min: "min-content", full: "100%", @@ -8155,28 +8383,28 @@ var Zk = { "7xl": "80rem", "8xl": "90rem", prose: "60ch" -}, bE = { +}, pE = { sm: "640px", md: "768px", lg: "1024px", xl: "1280px" -}, yE = { - ...yv, - ...gE, - container: bE -}, xv = yE, Sv = { - breakpoints: sE, - zIndices: nE, - radii: dE, - blur: mE, - colors: cE, - ...bv, - sizes: xv, - shadows: pE, - space: yv, - borders: aE, - transition: tE -}, { defineMultiStyleConfig: xE, definePartsStyle: na } = Ke([ +}, hE = { + ...gv, + ...fE, + container: pE +}, bv = hE, yv = { + breakpoints: rE, + zIndices: Jk, + radii: iE, + blur: uE, + colors: oE, + ...vv, + sizes: bv, + shadows: lE, + space: gv, + borders: eE, + transition: Kk +}, { defineMultiStyleConfig: mE, definePartsStyle: oa } = Ke([ "stepper", "step", "title", @@ -8185,7 +8413,7 @@ var Zk = { "separator", "icon", "number" -]), Hr = de("stepper-indicator-size"), ro = de("stepper-icon-size"), no = de("stepper-title-font-size"), oa = de("stepper-description-font-size"), Xo = de("stepper-accent-color"), SE = na(({ colorScheme: e }) => ({ +]), Yr = de("stepper-indicator-size"), no = de("stepper-icon-size"), oo = de("stepper-title-font-size"), aa = de("stepper-description-font-size"), Ko = de("stepper-accent-color"), vE = oa(({ colorScheme: e }) => ({ stepper: { display: "flex", justifyContent: "space-between", @@ -8198,21 +8426,21 @@ var Zk = { flexDirection: "row", alignItems: "center" }, - [Xo.variable]: `colors.${e}.500`, + [Ko.variable]: `colors.${e}.500`, _dark: { - [Xo.variable]: `colors.${e}.200` + [Ko.variable]: `colors.${e}.200` } }, title: { - fontSize: no.reference, + fontSize: oo.reference, fontWeight: "medium" }, description: { - fontSize: oa.reference, + fontSize: aa.reference, color: "chakra-subtle-text" }, number: { - fontSize: no.reference + fontSize: oo.reference }, step: { flexShrink: 0, @@ -8229,23 +8457,23 @@ var Zk = { }, icon: { flexShrink: 0, - width: ro.reference, - height: ro.reference + width: no.reference, + height: no.reference }, indicator: { flexShrink: 0, borderRadius: "full", - width: Hr.reference, - height: Hr.reference, + width: Yr.reference, + height: Yr.reference, display: "flex", justifyContent: "center", alignItems: "center", "&[data-status=active]": { borderWidth: "2px", - borderColor: Xo.reference + borderColor: Ko.reference }, "&[data-status=complete]": { - bg: Xo.reference, + bg: Ko.reference, color: "chakra-inverse-text" }, "&[data-status=incomplete]": { @@ -8256,7 +8484,7 @@ var Zk = { bg: "chakra-border-color", flex: "1", "&[data-status=complete]": { - bg: Xo.reference + bg: Ko.reference }, "&[data-orientation=horizontal]": { width: "100%", @@ -8267,44 +8495,44 @@ var Zk = { width: "2px", position: "absolute", height: "100%", - maxHeight: `calc(100% - ${Hr.reference} - 8px)`, - top: `calc(${Hr.reference} + 4px)`, - insetStart: `calc(${Hr.reference} / 2 - 1px)` + maxHeight: `calc(100% - ${Yr.reference} - 8px)`, + top: `calc(${Yr.reference} + 4px)`, + insetStart: `calc(${Yr.reference} / 2 - 1px)` } } -})), wE = xE({ - baseStyle: SE, +})), gE = mE({ + baseStyle: vE, sizes: { - xs: na({ + xs: oa({ stepper: { - [Hr.variable]: "sizes.4", - [ro.variable]: "sizes.3", - [no.variable]: "fontSizes.xs", - [oa.variable]: "fontSizes.xs" + [Yr.variable]: "sizes.4", + [no.variable]: "sizes.3", + [oo.variable]: "fontSizes.xs", + [aa.variable]: "fontSizes.xs" } }), - sm: na({ + sm: oa({ stepper: { - [Hr.variable]: "sizes.6", - [ro.variable]: "sizes.4", - [no.variable]: "fontSizes.sm", - [oa.variable]: "fontSizes.xs" + [Yr.variable]: "sizes.6", + [no.variable]: "sizes.4", + [oo.variable]: "fontSizes.sm", + [aa.variable]: "fontSizes.xs" } }), - md: na({ + md: oa({ stepper: { - [Hr.variable]: "sizes.8", - [ro.variable]: "sizes.5", - [no.variable]: "fontSizes.md", - [oa.variable]: "fontSizes.sm" + [Yr.variable]: "sizes.8", + [no.variable]: "sizes.5", + [oo.variable]: "fontSizes.md", + [aa.variable]: "fontSizes.sm" } }), - lg: na({ + lg: oa({ stepper: { - [Hr.variable]: "sizes.10", - [ro.variable]: "sizes.6", - [no.variable]: "fontSizes.lg", - [oa.variable]: "fontSizes.md" + [Yr.variable]: "sizes.10", + [no.variable]: "sizes.6", + [oo.variable]: "fontSizes.lg", + [aa.variable]: "fontSizes.md" } }) }, @@ -8313,7 +8541,7 @@ var Zk = { colorScheme: "blue" } }); -function Ue(e, t = {}) { +function Le(e, t = {}) { let r = !1; function n() { if (!r) { @@ -8328,12 +8556,12 @@ function Ue(e, t = {}) { n(); for (const d of u) t[d] = l(d); - return Ue(e, t); + return Le(e, t); } function a(...u) { for (const d of u) d in t || (t[d] = l(d)); - return Ue(e, t); + return Le(e, t); } function i() { return Object.fromEntries( @@ -8365,55 +8593,56 @@ function Ue(e, t = {}) { __type: {} }; } -var CE = Ue("accordion").parts("root", "container", "button", "panel").extend("icon"), _E = Ue("alert").parts("title", "description", "container").extend("icon", "spinner"), kE = Ue("avatar").parts("label", "badge", "container").extend("excessLabel", "group"), EE = Ue("breadcrumb").parts("link", "item", "container").extend("separator"); -Ue("button").parts(); -var PE = Ue("checkbox").parts("control", "icon", "container").extend("label"); -Ue("progress").parts("track", "filledTrack").extend("label"); -var TE = Ue("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), AE = Ue("editable").parts( +var bE = Le("accordion").parts("root", "container", "button", "panel").extend("icon"), yE = Le("alert").parts("title", "description", "container").extend("icon", "spinner"), xE = Le("avatar").parts("label", "badge", "container").extend("excessLabel", "group"), SE = Le("breadcrumb").parts("link", "item", "container").extend("separator"); +Le("button").parts(); +var wE = Le("checkbox").parts("control", "icon", "container").extend("label"); +Le("progress").parts("track", "filledTrack").extend("label"); +var CE = Le("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), _E = Le("editable").parts( "preview", "input", "textarea" -), OE = Ue("form").parts( +), kE = Le("form").parts( "container", "requiredIndicator", "helperText" -), $E = Ue("formError").parts("text", "icon"), RE = Ue("input").parts( +), EE = Le("formError").parts("text", "icon"), PE = Le("input").parts( "addon", "field", "element", "group" -), DE = Ue("list").parts("container", "item", "icon"), ME = Ue("menu").parts("button", "list", "item").extend("groupTitle", "icon", "command", "divider"), IE = Ue("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), FE = Ue("numberinput").parts( +), TE = Le("list").parts("container", "item", "icon"), AE = Le("menu").parts("button", "list", "item").extend("groupTitle", "icon", "command", "divider"), OE = Le("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), RE = Le("numberinput").parts( "root", "field", "stepperGroup", "stepper" ); -Ue("pininput").parts("field"); -var NE = Ue("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"), jE = Ue("progress").parts( +Le("pininput").parts("field"); +var $E = Le("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"), DE = Le("progress").parts( "label", "filledTrack", "track" -), BE = Ue("radio").parts( +), ME = Le("radio").parts( "container", "control", "label" -), zE = Ue("select").parts("field", "icon"), VE = Ue("slider").parts( +), IE = Le("select").parts("field", "icon"), FE = Le("slider").parts( "container", "track", "thumb", "filledTrack", "mark" -), LE = Ue("stat").parts( +), NE = Le("stat").parts( "container", "label", "helpText", "number", "icon" -), WE = Ue("switch").parts( +), jE = Le("switch").parts( "container", "track", - "thumb" -), UE = Ue("table").parts( + "thumb", + "label" +), BE = Le("table").parts( "table", "thead", "tbody", @@ -8422,132 +8651,142 @@ var NE = Ue("popover").parts("content", "header", "body", "footer").extend("popp "td", "tfoot", "caption" -), HE = Ue("tabs").parts( +), zE = Le("tabs").parts( "root", "tab", "tablist", "tabpanel", "tabpanels", "indicator" -), YE = Ue("tag").parts( +), VE = Le("tag").parts( "container", "label", "closeButton" -), qE = Ue("card").parts( +), LE = Le("card").parts( "container", "header", "body", "footer" ); -function In(e, t, r) { +Le("stepper").parts( + "stepper", + "step", + "title", + "description", + "indicator", + "separator", + "icon", + "number" +); +function Fn(e, t, r) { return Math.min(Math.max(e, r), t); } -class GE extends Error { +class WE extends Error { constructor(t) { super(`Failed to parse color: "${t}"`); } } -var aa = GE; -function Yu(e) { +var ia = WE; +function Uu(e) { if (typeof e != "string") - throw new aa(e); + throw new ia(e); if (e.trim().toLowerCase() === "transparent") return [0, 0, 0, 0]; let t = e.trim(); - t = rP.test(e) ? ZE(e) : e; - const r = JE.exec(t); + t = ZE.test(e) ? YE(e) : e; + const r = qE.exec(t); if (r) { const i = Array.from(r).slice(1); - return [...i.slice(0, 3).map((s) => parseInt(Fa(s, 2), 16)), parseInt(Fa(i[3] || "f", 2), 16) / 255]; + return [...i.slice(0, 3).map((s) => parseInt(Na(s, 2), 16)), parseInt(Na(i[3] || "f", 2), 16) / 255]; } - const n = QE.exec(t); + const n = GE.exec(t); if (n) { const i = Array.from(n).slice(1); return [...i.slice(0, 3).map((s) => parseInt(s, 16)), parseInt(i[3] || "ff", 16) / 255]; } - const o = eP.exec(t); + const o = XE.exec(t); if (o) { const i = Array.from(o).slice(1); return [...i.slice(0, 3).map((s) => parseInt(s, 10)), parseFloat(i[3] || "1")]; } - const a = tP.exec(t); + const a = KE.exec(t); if (a) { const [i, s, l, c] = Array.from(a).slice(1).map(parseFloat); - if (In(0, 100, s) !== s) - throw new aa(e); - if (In(0, 100, l) !== l) - throw new aa(e); - return [...nP(i, s, l), Number.isNaN(c) ? 1 : c]; + if (Fn(0, 100, s) !== s) + throw new ia(e); + if (Fn(0, 100, l) !== l) + throw new ia(e); + return [...JE(i, s, l), Number.isNaN(c) ? 1 : c]; } - throw new aa(e); + throw new ia(e); } -function XE(e) { +function UE(e) { let t = 5381, r = e.length; for (; r; ) t = t * 33 ^ e.charCodeAt(--r); return (t >>> 0) % 2341; } -const qf = (e) => parseInt(e.replace(/_/g, ""), 36), KE = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e, t) => { - const r = qf(t.substring(0, 3)), n = qf(t.substring(3)).toString(16); +const Yf = (e) => parseInt(e.replace(/_/g, ""), 36), HE = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e, t) => { + const r = Yf(t.substring(0, 3)), n = Yf(t.substring(3)).toString(16); let o = ""; for (let a = 0; a < 6 - n.length; a++) o += "0"; return e[r] = `${o}${n}`, e; }, {}); -function ZE(e) { - const t = e.toLowerCase().trim(), r = KE[XE(t)]; +function YE(e) { + const t = e.toLowerCase().trim(), r = HE[UE(t)]; if (!r) - throw new aa(e); + throw new ia(e); return `#${r}`; } -const Fa = (e, t) => Array.from(Array(t)).map(() => e).join(""), JE = new RegExp(`^#${Fa("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), QE = new RegExp(`^#${Fa("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), eP = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Fa(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), tP = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, rP = /^[a-z]+$/i, Gf = (e) => Math.round(e * 255), nP = (e, t, r) => { +const Na = (e, t) => Array.from(Array(t)).map(() => e).join(""), qE = new RegExp(`^#${Na("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), GE = new RegExp(`^#${Na("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), XE = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Na(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), KE = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, ZE = /^[a-z]+$/i, qf = (e) => Math.round(e * 255), JE = (e, t, r) => { let n = r / 100; if (t === 0) - return [n, n, n].map(Gf); + return [n, n, n].map(qf); const o = (e % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * n - 1)) * (t / 100), i = a * (1 - Math.abs(o % 2 - 1)); let s = 0, l = 0, c = 0; o >= 0 && o < 1 ? (s = a, l = i) : o >= 1 && o < 2 ? (s = i, l = a) : o >= 2 && o < 3 ? (l = a, c = i) : o >= 3 && o < 4 ? (l = i, c = a) : o >= 4 && o < 5 ? (s = i, c = a) : o >= 5 && o < 6 && (s = a, c = i); const u = n - a / 2, d = s + u, f = l + u, p = c + u; - return [d, f, p].map(Gf); + return [d, f, p].map(qf); }; -function oP(e, t, r, n) { - return `rgba(${In(0, 255, e).toFixed()}, ${In(0, 255, t).toFixed()}, ${In(0, 255, r).toFixed()}, ${parseFloat(In(0, 1, n).toFixed(3))})`; +function QE(e, t, r, n) { + return `rgba(${Fn(0, 255, e).toFixed()}, ${Fn(0, 255, t).toFixed()}, ${Fn(0, 255, r).toFixed()}, ${parseFloat(Fn(0, 1, n).toFixed(3))})`; } -function aP(e, t) { - const [r, n, o, a] = Yu(e); - return oP(r, n, o, a - t); +function eP(e, t) { + const [r, n, o, a] = Uu(e); + return QE(r, n, o, a - t); } -function iP(e) { - const [t, r, n, o] = Yu(e); +function tP(e) { + const [t, r, n, o] = Uu(e); let a = (i) => { - const s = In(0, 255, i).toString(16); + const s = Fn(0, 255, i).toString(16); return s.length === 1 ? `0${s}` : s; }; return `#${a(t)}${a(r)}${a(n)}${o < 1 ? a(Math.round(o * 255)) : ""}`; } -function sP(e, t, r, n, o) { +function rP(e, t, r, n, o) { for (t = t.split ? t.split(".") : t, n = 0; n < t.length; n++) e = e ? e[t[n]] : o; return e === o ? r : e; } -var lP = (e) => Object.keys(e).length === 0, Dt = (e, t, r) => { - const n = sP(e, `colors.${t}`, t); +var nP = (e) => Object.keys(e).length === 0, Dt = (e, t, r) => { + const n = rP(e, `colors.${t}`, t); try { - return iP(n), n; + return tP(n), n; } catch { return r ?? "#000000"; } -}, cP = (e) => { - const [t, r, n] = Yu(e); +}, oP = (e) => { + const [t, r, n] = Uu(e); return (t * 299 + r * 587 + n * 114) / 1e3; -}, uP = (e) => (t) => { +}, aP = (e) => (t) => { const r = Dt(t, e); - return cP(r) < 128 ? "dark" : "light"; -}, dP = (e) => (t) => uP(e)(t) === "dark", To = (e, t) => (r) => { + return oP(r) < 128 ? "dark" : "light"; +}, iP = (e) => (t) => aP(e)(t) === "dark", Ao = (e, t) => (r) => { const n = Dt(r, e); - return aP(n, 1 - t); + return eP(n, 1 - t); }; -function Xf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") { +function Gf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") { return { backgroundImage: `linear-gradient( 45deg, @@ -8562,12 +8801,12 @@ function Xf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") { backgroundSize: `${e} ${e}` }; } -var fP = () => `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`; -function pP(e) { - const t = fP(); - return !e || lP(e) ? t : e.string && e.colors ? mP(e.string, e.colors) : e.string && !e.colors ? hP(e.string) : e.colors && !e.string ? vP(e.colors) : t; +var sP = () => `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`; +function lP(e) { + const t = sP(); + return !e || nP(e) ? t : e.string && e.colors ? uP(e.string, e.colors) : e.string && !e.colors ? cP(e.string) : e.colors && !e.string ? dP(e.colors) : t; } -function hP(e) { +function cP(e) { let t = 0; if (e.length === 0) return t.toString(); @@ -8580,7 +8819,7 @@ function hP(e) { } return r; } -function mP(e, t) { +function uP(e, t) { let r = 0; if (e.length === 0) return t[0]; @@ -8588,80 +8827,80 @@ function mP(e, t) { r = e.charCodeAt(n) + ((r << 5) - r), r = r & r; return r = (r % t.length + t.length) % t.length, t[r]; } -function vP(e) { +function dP(e) { return e[Math.floor(Math.random() * e.length)]; } function ue(e, t) { return (r) => r.colorMode === "dark" ? t : e; } -function qu(e) { +function Hu(e) { const { orientation: t, vertical: r, horizontal: n } = e; return t ? t === "vertical" ? r : n : {}; } -function wv(e) { +function xv(e) { return Lt(e) && e.reference ? e.reference : String(e); } -var Ys = (e, ...t) => t.map(wv).join(` ${e} `).replace(/calc/g, ""), Kf = (...e) => `calc(${Ys("+", ...e)})`, Zf = (...e) => `calc(${Ys("-", ...e)})`, Lc = (...e) => `calc(${Ys("*", ...e)})`, Jf = (...e) => `calc(${Ys("/", ...e)})`, Qf = (e) => { - const t = wv(e); - return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Lc(t, -1); -}, Yr = Object.assign( +var Hs = (e, ...t) => t.map(xv).join(` ${e} `).replace(/calc/g, ""), Xf = (...e) => `calc(${Hs("+", ...e)})`, Kf = (...e) => `calc(${Hs("-", ...e)})`, Vc = (...e) => `calc(${Hs("*", ...e)})`, Zf = (...e) => `calc(${Hs("/", ...e)})`, Jf = (e) => { + const t = xv(e); + return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Vc(t, -1); +}, qr = Object.assign( (e) => ({ - add: (...t) => Yr(Kf(e, ...t)), - subtract: (...t) => Yr(Zf(e, ...t)), - multiply: (...t) => Yr(Lc(e, ...t)), - divide: (...t) => Yr(Jf(e, ...t)), - negate: () => Yr(Qf(e)), + add: (...t) => qr(Xf(e, ...t)), + subtract: (...t) => qr(Kf(e, ...t)), + multiply: (...t) => qr(Vc(e, ...t)), + divide: (...t) => qr(Zf(e, ...t)), + negate: () => qr(Jf(e)), toString: () => e.toString() }), { - add: Kf, - subtract: Zf, - multiply: Lc, - divide: Jf, - negate: Qf + add: Xf, + subtract: Kf, + multiply: Vc, + divide: Zf, + negate: Jf } ); -function gP(e) { +function fP(e) { return !Number.isInteger(parseFloat(e.toString())); } -function bP(e, t = "-") { +function pP(e, t = "-") { return e.replace(/\s+/g, t); } -function Cv(e) { - const t = bP(e.toString()); - return t.includes("\\.") ? e : gP(e) ? t.replace(".", "\\.") : e; +function Sv(e) { + const t = pP(e.toString()); + return t.includes("\\.") ? e : fP(e) ? t.replace(".", "\\.") : e; } -function yP(e, t = "") { - return [t, Cv(e)].filter(Boolean).join("-"); +function hP(e, t = "") { + return [t, Sv(e)].filter(Boolean).join("-"); } -function xP(e, t) { - return `var(${Cv(e)}${t ? `, ${t}` : ""})`; +function mP(e, t) { + return `var(${Sv(e)}${t ? `, ${t}` : ""})`; } -function SP(e, t = "") { - return `--${yP(e, t)}`; +function vP(e, t = "") { + return `--${hP(e, t)}`; } function yt(e, t) { - const r = SP(e, t == null ? void 0 : t.prefix); + const r = vP(e, t == null ? void 0 : t.prefix); return { variable: r, - reference: xP(r, wP(t == null ? void 0 : t.fallback)) + reference: mP(r, gP(t == null ? void 0 : t.fallback)) }; } -function wP(e) { +function gP(e) { return typeof e == "string" ? e : e == null ? void 0 : e.reference; } -var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt("switch-track-width"), Nn = yt("switch-track-height"), Rl = yt("switch-track-diff"), _P = Yr.subtract(fa, Nn), Wc = yt("switch-thumb-x"), Ko = yt("switch-bg"), kP = (e) => { +var { defineMultiStyleConfig: bP, definePartsStyle: Ui } = Ke(jE.keys), ha = yt("switch-track-width"), jn = yt("switch-track-height"), Ol = yt("switch-track-diff"), yP = qr.subtract(ha, jn), Lc = yt("switch-thumb-x"), Zo = yt("switch-bg"), xP = (e) => { const { colorScheme: t } = e; return { borderRadius: "full", p: "0.5", - width: [fa.reference], - height: [Nn.reference], + width: [ha.reference], + height: [jn.reference], transitionProperty: "common", transitionDuration: "fast", - [Ko.variable]: "colors.gray.300", + [Zo.variable]: "colors.gray.300", _dark: { - [Ko.variable]: "colors.whiteAlpha.400" + [Zo.variable]: "colors.whiteAlpha.400" }, _focusVisible: { boxShadow: "outline" @@ -8671,60 +8910,60 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( cursor: "not-allowed" }, _checked: { - [Ko.variable]: `colors.${t}.500`, + [Zo.variable]: `colors.${t}.500`, _dark: { - [Ko.variable]: `colors.${t}.200` + [Zo.variable]: `colors.${t}.200` } }, - bg: Ko.reference + bg: Zo.reference }; -}, EP = { +}, SP = { bg: "white", transitionProperty: "transform", transitionDuration: "normal", borderRadius: "inherit", - width: [Nn.reference], - height: [Nn.reference], + width: [jn.reference], + height: [jn.reference], _checked: { - transform: `translateX(${Wc.reference})` + transform: `translateX(${Lc.reference})` } -}, PP = Ui((e) => ({ +}, wP = Ui((e) => ({ container: { - [Rl.variable]: _P, - [Wc.variable]: Rl.reference, + [Ol.variable]: yP, + [Lc.variable]: Ol.reference, _rtl: { - [Wc.variable]: Yr(Rl).negate().toString() + [Lc.variable]: qr(Ol).negate().toString() } }, - track: kP(e), - thumb: EP -})), TP = { + track: xP(e), + thumb: SP +})), CP = { sm: Ui({ container: { - [fa.variable]: "1.375rem", - [Nn.variable]: "sizes.3" + [ha.variable]: "1.375rem", + [jn.variable]: "sizes.3" } }), md: Ui({ container: { - [fa.variable]: "1.875rem", - [Nn.variable]: "sizes.4" + [ha.variable]: "1.875rem", + [jn.variable]: "sizes.4" } }), lg: Ui({ container: { - [fa.variable]: "2.875rem", - [Nn.variable]: "sizes.6" + [ha.variable]: "2.875rem", + [jn.variable]: "sizes.6" } }) -}, AP = CP({ - baseStyle: PP, - sizes: TP, +}, _P = bP({ + baseStyle: wP, + sizes: CP, defaultProps: { size: "md", colorScheme: "blue" } -}), { defineMultiStyleConfig: OP, definePartsStyle: mo } = Ke(UE.keys), $P = mo({ +}), { defineMultiStyleConfig: kP, definePartsStyle: vo } = Ke(BE.keys), EP = vo({ table: { fontVariantNumeric: "lining-nums tabular-nums", borderCollapse: "collapse", @@ -8746,23 +8985,23 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( textAlign: "center", fontWeight: "medium" } -}), hs = { +}), ps = { "&[data-is-numeric=true]": { textAlign: "end" } -}, RP = mo((e) => { +}, PP = vo((e) => { const { colorScheme: t } = e; return { th: { color: ue("gray.600", "gray.400")(e), borderBottom: "1px", borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...hs + ...ps }, td: { borderBottom: "1px", borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...hs + ...ps }, caption: { color: ue("gray.600", "gray.100")(e) @@ -8775,19 +9014,19 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( } } }; -}), DP = mo((e) => { +}), TP = vo((e) => { const { colorScheme: t } = e; return { th: { color: ue("gray.600", "gray.400")(e), borderBottom: "1px", borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...hs + ...ps }, td: { borderBottom: "1px", borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...hs + ...ps }, caption: { color: ue("gray.600", "gray.100")(e) @@ -8813,12 +9052,12 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( } } }; -}), MP = { - simple: RP, - striped: DP, +}), AP = { + simple: PP, + striped: TP, unstyled: {} -}, IP = { - sm: mo({ +}, OP = { + sm: vo({ th: { px: "4", py: "1", @@ -8837,7 +9076,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( fontSize: "xs" } }), - md: mo({ + md: vo({ th: { px: "6", py: "3", @@ -8855,7 +9094,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( fontSize: "sm" } }), - lg: mo({ + lg: vo({ th: { px: "8", py: "4", @@ -8873,21 +9112,21 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( fontSize: "md" } }) -}, FP = OP({ - baseStyle: $P, - variants: MP, - sizes: IP, +}, RP = kP({ + baseStyle: EP, + variants: AP, + sizes: OP, defaultProps: { variant: "simple", size: "md", colorScheme: "gray" } -}), Vt = de("tabs-color"), br = de("tabs-bg"), Ci = de("tabs-border-color"), { defineMultiStyleConfig: NP, definePartsStyle: Mr } = Ke(HE.keys), jP = (e) => { +}), Vt = de("tabs-color"), br = de("tabs-bg"), Ci = de("tabs-border-color"), { defineMultiStyleConfig: $P, definePartsStyle: Ir } = Ke(zE.keys), DP = (e) => { const { orientation: t } = e; return { display: t === "vertical" ? "flex" : "block" }; -}, BP = (e) => { +}, MP = (e) => { const { isFitted: t } = e; return { flex: t ? 1 : void 0, @@ -8902,7 +9141,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( opacity: 0.4 } }; -}, zP = (e) => { +}, IP = (e) => { const { align: t = "start", orientation: r } = e; return { justifyContent: { @@ -8912,36 +9151,36 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( }[t], flexDirection: r === "vertical" ? "column" : "row" }; -}, VP = { +}, FP = { p: 4 -}, LP = Mr((e) => ({ - root: jP(e), - tab: BP(e), - tablist: zP(e), - tabpanel: VP -})), WP = { - sm: Mr({ +}, NP = Ir((e) => ({ + root: DP(e), + tab: MP(e), + tablist: IP(e), + tabpanel: FP +})), jP = { + sm: Ir({ tab: { py: 1, px: 4, fontSize: "sm" } }), - md: Mr({ + md: Ir({ tab: { fontSize: "md", py: 2, px: 4 } }), - lg: Mr({ + lg: Ir({ tab: { fontSize: "lg", py: 3, px: 4 } }) -}, UP = Mr((e) => { +}, BP = Ir((e) => { const { colorScheme: t, orientation: r } = e, n = r === "vertical", o = n ? "borderStart" : "borderBottom", a = n ? "marginStart" : "marginBottom"; return { tablist: { @@ -8972,7 +9211,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( bg: br.reference } }; -}), HP = Mr((e) => { +}), zP = Ir((e) => { const { colorScheme: t } = e; return { tab: { @@ -8999,7 +9238,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( borderColor: "inherit" } }; -}), YP = Mr((e) => { +}), VP = Ir((e) => { const { colorScheme: t } = e; return { tab: { @@ -9033,7 +9272,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( borderColor: "inherit" } }; -}), qP = Mr((e) => { +}), LP = Ir((e) => { const { colorScheme: t, theme: r } = e; return { tab: { @@ -9046,7 +9285,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( } } }; -}), GP = Mr((e) => { +}), WP = Ir((e) => { const { colorScheme: t } = e; return { tab: { @@ -9068,23 +9307,23 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( bg: br.reference } }; -}), XP = Mr({}), KP = { - line: UP, - enclosed: HP, - "enclosed-colored": YP, - "soft-rounded": qP, - "solid-rounded": GP, - unstyled: XP -}, ZP = NP({ - baseStyle: LP, - sizes: WP, - variants: KP, +}), UP = Ir({}), HP = { + line: BP, + enclosed: zP, + "enclosed-colored": VP, + "soft-rounded": LP, + "solid-rounded": WP, + unstyled: UP +}, YP = $P({ + baseStyle: NP, + sizes: jP, + variants: HP, defaultProps: { size: "md", variant: "line", colorScheme: "blue" } -}), pt = bk("badge", ["bg", "color", "shadow"]), JP = { +}), pt = pk("badge", ["bg", "color", "shadow"]), qP = { px: 1, textTransform: "uppercase", fontSize: "xs", @@ -9093,8 +9332,8 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( bg: pt.bg.reference, color: pt.color.reference, boxShadow: pt.shadow.reference -}, QP = (e) => { - const { colorScheme: t, theme: r } = e, n = To(`${t}.500`, 0.6)(r); +}, GP = (e) => { + const { colorScheme: t, theme: r } = e, n = Ao(`${t}.500`, 0.6)(r); return { [pt.bg.variable]: `colors.${t}.500`, [pt.color.variable]: "colors.white", @@ -9103,8 +9342,8 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( [pt.color.variable]: "colors.whiteAlpha.800" } }; -}, eT = (e) => { - const { colorScheme: t, theme: r } = e, n = To(`${t}.200`, 0.16)(r); +}, XP = (e) => { + const { colorScheme: t, theme: r } = e, n = Ao(`${t}.200`, 0.16)(r); return { [pt.bg.variable]: `colors.${t}.100`, [pt.color.variable]: `colors.${t}.800`, @@ -9113,8 +9352,8 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( [pt.color.variable]: `colors.${t}.200` } }; -}, tT = (e) => { - const { colorScheme: t, theme: r } = e, n = To(`${t}.200`, 0.8)(r); +}, KP = (e) => { + const { colorScheme: t, theme: r } = e, n = Ao(`${t}.200`, 0.8)(r); return { [pt.color.variable]: `colors.${t}.500`, _dark: { @@ -9122,39 +9361,39 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( }, [pt.shadow.variable]: `inset 0 0 0px 1px ${pt.color.reference}` }; -}, rT = { - solid: QP, - subtle: eT, - outline: tT -}, pa = { - baseStyle: JP, - variants: rT, +}, ZP = { + solid: GP, + subtle: XP, + outline: KP +}, ma = { + baseStyle: qP, + variants: ZP, defaultProps: { variant: "subtle", colorScheme: "gray" } -}, { defineMultiStyleConfig: nT, definePartsStyle: jn } = Ke(YE.keys), ep = de("tag-bg"), tp = de("tag-color"), Dl = de("tag-shadow"), Hi = de("tag-min-height"), Yi = de("tag-min-width"), qi = de("tag-font-size"), Gi = de("tag-padding-inline"), oT = { +}, { defineMultiStyleConfig: JP, definePartsStyle: Bn } = Ke(VE.keys), Qf = de("tag-bg"), ep = de("tag-color"), Rl = de("tag-shadow"), Hi = de("tag-min-height"), Yi = de("tag-min-width"), qi = de("tag-font-size"), Gi = de("tag-padding-inline"), QP = { fontWeight: "medium", lineHeight: 1.2, outline: 0, - [tp.variable]: pt.color.reference, - [ep.variable]: pt.bg.reference, - [Dl.variable]: pt.shadow.reference, - color: tp.reference, - bg: ep.reference, - boxShadow: Dl.reference, + [ep.variable]: pt.color.reference, + [Qf.variable]: pt.bg.reference, + [Rl.variable]: pt.shadow.reference, + color: ep.reference, + bg: Qf.reference, + boxShadow: Rl.reference, borderRadius: "md", minH: Hi.reference, minW: Yi.reference, fontSize: qi.reference, px: Gi.reference, _focusVisible: { - [Dl.variable]: "shadows.outline" + [Rl.variable]: "shadows.outline" } -}, aT = { +}, eT = { lineHeight: 1.2, overflow: "visible" -}, iT = { +}, tT = { fontSize: "lg", w: "5", h: "5", @@ -9177,12 +9416,12 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( _active: { opacity: 1 } -}, sT = jn({ - container: oT, - label: aT, - closeButton: iT -}), lT = { - sm: jn({ +}, rT = Bn({ + container: QP, + label: eT, + closeButton: tT +}), nT = { + sm: Bn({ container: { [Hi.variable]: "sizes.5", [Yi.variable]: "sizes.5", @@ -9194,7 +9433,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( marginStart: "0.35rem" } }), - md: jn({ + md: Bn({ container: { [Hi.variable]: "sizes.6", [Yi.variable]: "sizes.6", @@ -9202,7 +9441,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( [Gi.variable]: "space.2" } }), - lg: jn({ + lg: Bn({ container: { [Hi.variable]: "sizes.8", [Yi.variable]: "sizes.8", @@ -9210,47 +9449,47 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( [Gi.variable]: "space.3" } }) -}, cT = { - subtle: jn((e) => { +}, oT = { + subtle: Bn((e) => { var t; return { - container: (t = pa.variants) == null ? void 0 : t.subtle(e) + container: (t = ma.variants) == null ? void 0 : t.subtle(e) }; }), - solid: jn((e) => { + solid: Bn((e) => { var t; return { - container: (t = pa.variants) == null ? void 0 : t.solid(e) + container: (t = ma.variants) == null ? void 0 : t.solid(e) }; }), - outline: jn((e) => { + outline: Bn((e) => { var t; return { - container: (t = pa.variants) == null ? void 0 : t.outline(e) + container: (t = ma.variants) == null ? void 0 : t.outline(e) }; }) -}, uT = nT({ - variants: cT, - baseStyle: sT, - sizes: lT, +}, aT = JP({ + variants: oT, + baseStyle: rT, + sizes: nT, defaultProps: { size: "md", variant: "subtle", colorScheme: "gray" } -}), { definePartsStyle: qr, defineMultiStyleConfig: dT } = Ke(RE.keys), oo = de("input-height"), ao = de("input-font-size"), io = de("input-padding"), so = de("input-border-radius"), fT = qr({ +}), { definePartsStyle: Gr, defineMultiStyleConfig: iT } = Ke(PE.keys), ao = de("input-height"), io = de("input-font-size"), so = de("input-padding"), lo = de("input-border-radius"), sT = Gr({ addon: { - height: oo.reference, - fontSize: ao.reference, - px: io.reference, - borderRadius: so.reference + height: ao.reference, + fontSize: io.reference, + px: so.reference, + borderRadius: lo.reference }, field: { width: "100%", - height: oo.reference, - fontSize: ao.reference, - px: io.reference, - borderRadius: so.reference, + height: ao.reference, + fontSize: io.reference, + px: so.reference, + borderRadius: lo.reference, minWidth: 0, outline: 0, position: "relative", @@ -9262,58 +9501,58 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt( cursor: "not-allowed" } } -}), cn = { +}), un = { lg: { - [ao.variable]: "fontSizes.lg", - [io.variable]: "space.4", - [so.variable]: "radii.md", - [oo.variable]: "sizes.12" + [io.variable]: "fontSizes.lg", + [so.variable]: "space.4", + [lo.variable]: "radii.md", + [ao.variable]: "sizes.12" }, md: { - [ao.variable]: "fontSizes.md", - [io.variable]: "space.4", - [so.variable]: "radii.md", - [oo.variable]: "sizes.10" + [io.variable]: "fontSizes.md", + [so.variable]: "space.4", + [lo.variable]: "radii.md", + [ao.variable]: "sizes.10" }, sm: { - [ao.variable]: "fontSizes.sm", - [io.variable]: "space.3", - [so.variable]: "radii.sm", - [oo.variable]: "sizes.8" + [io.variable]: "fontSizes.sm", + [so.variable]: "space.3", + [lo.variable]: "radii.sm", + [ao.variable]: "sizes.8" }, xs: { - [ao.variable]: "fontSizes.xs", - [io.variable]: "space.2", - [so.variable]: "radii.sm", - [oo.variable]: "sizes.6" - } -}, pT = { - lg: qr({ - field: cn.lg, - group: cn.lg + [io.variable]: "fontSizes.xs", + [so.variable]: "space.2", + [lo.variable]: "radii.sm", + [ao.variable]: "sizes.6" + } +}, lT = { + lg: Gr({ + field: un.lg, + group: un.lg }), - md: qr({ - field: cn.md, - group: cn.md + md: Gr({ + field: un.md, + group: un.md }), - sm: qr({ - field: cn.sm, - group: cn.sm + sm: Gr({ + field: un.sm, + group: un.sm }), - xs: qr({ - field: cn.xs, - group: cn.xs + xs: Gr({ + field: un.xs, + group: un.xs }) }; -function Gu(e) { +function Yu(e) { const { focusBorderColor: t, errorBorderColor: r } = e; return { focusBorderColor: t || ue("blue.500", "blue.300")(e), errorBorderColor: r || ue("red.500", "red.300")(e) }; } -var hT = qr((e) => { - const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Gu(e); +var cT = Gr((e) => { + const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Yu(e); return { field: { border: "1px solid", @@ -9342,8 +9581,8 @@ var hT = qr((e) => { bg: ue("gray.100", "whiteAlpha.300")(e) } }; -}), mT = qr((e) => { - const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Gu(e); +}), uT = Gr((e) => { + const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Yu(e); return { field: { border: "2px solid", @@ -9370,8 +9609,8 @@ var hT = qr((e) => { bg: ue("gray.100", "whiteAlpha.50")(e) } }; -}), vT = qr((e) => { - const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Gu(e); +}), dT = Gr((e) => { + const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Yu(e); return { field: { borderBottom: "1px solid", @@ -9400,7 +9639,7 @@ var hT = qr((e) => { bg: "transparent" } }; -}), gT = qr({ +}), fT = Gr({ field: { bg: "transparent", px: "0", @@ -9411,26 +9650,26 @@ var hT = qr((e) => { px: "0", height: "auto" } -}), bT = { - outline: hT, - filled: mT, - flushed: vT, - unstyled: gT -}, Ve = dT({ - baseStyle: fT, - sizes: pT, - variants: bT, +}), pT = { + outline: cT, + filled: uT, + flushed: dT, + unstyled: fT +}, Ve = iT({ + baseStyle: sT, + sizes: lT, + variants: pT, defaultProps: { size: "md", variant: "outline" } -}), rp, yT = { - ...(rp = Ve.baseStyle) == null ? void 0 : rp.field, +}), tp, hT = { + ...(tp = Ve.baseStyle) == null ? void 0 : tp.field, paddingY: "2", minHeight: "20", lineHeight: "short", verticalAlign: "top" -}, np, op, xT = { +}, rp, np, mT = { outline: (e) => { var t, r; return (r = (t = Ve.variants) == null ? void 0 : t.outline(e).field) != null ? r : {}; @@ -9443,30 +9682,30 @@ var hT = qr((e) => { var t, r; return (r = (t = Ve.variants) == null ? void 0 : t.filled(e).field) != null ? r : {}; }, - unstyled: (op = (np = Ve.variants) == null ? void 0 : np.unstyled.field) != null ? op : {} -}, ap, ip, sp, lp, cp, up, dp, fp, ST = { - xs: (ip = (ap = Ve.sizes) == null ? void 0 : ap.xs.field) != null ? ip : {}, - sm: (lp = (sp = Ve.sizes) == null ? void 0 : sp.sm.field) != null ? lp : {}, - md: (up = (cp = Ve.sizes) == null ? void 0 : cp.md.field) != null ? up : {}, - lg: (fp = (dp = Ve.sizes) == null ? void 0 : dp.lg.field) != null ? fp : {} -}, wT = { - baseStyle: yT, - sizes: ST, - variants: xT, + unstyled: (np = (rp = Ve.variants) == null ? void 0 : rp.unstyled.field) != null ? np : {} +}, op, ap, ip, sp, lp, cp, up, dp, vT = { + xs: (ap = (op = Ve.sizes) == null ? void 0 : op.xs.field) != null ? ap : {}, + sm: (sp = (ip = Ve.sizes) == null ? void 0 : ip.sm.field) != null ? sp : {}, + md: (cp = (lp = Ve.sizes) == null ? void 0 : lp.md.field) != null ? cp : {}, + lg: (dp = (up = Ve.sizes) == null ? void 0 : up.lg.field) != null ? dp : {} +}, gT = { + baseStyle: hT, + sizes: vT, + variants: mT, defaultProps: { size: "md", variant: "outline" } -}, _i = yt("tooltip-bg"), Ml = yt("tooltip-fg"), CT = yt("popper-arrow-bg"), _T = { +}, _i = yt("tooltip-bg"), $l = yt("tooltip-fg"), bT = yt("popper-arrow-bg"), yT = { bg: _i.reference, - color: Ml.reference, + color: $l.reference, [_i.variable]: "colors.gray.700", - [Ml.variable]: "colors.whiteAlpha.900", + [$l.variable]: "colors.whiteAlpha.900", _dark: { [_i.variable]: "colors.gray.300", - [Ml.variable]: "colors.gray.900" + [$l.variable]: "colors.gray.900" }, - [CT.variable]: _i.reference, + [bT.variable]: _i.reference, px: "2", py: "0.5", borderRadius: "sm", @@ -9475,12 +9714,12 @@ var hT = qr((e) => { boxShadow: "md", maxW: "xs", zIndex: "tooltip" -}, kT = { - baseStyle: _T -}, { defineMultiStyleConfig: ET, definePartsStyle: ia } = Ke(jE.keys), PT = (e) => { +}, xT = { + baseStyle: yT +}, { defineMultiStyleConfig: ST, definePartsStyle: sa } = Ke(DE.keys), wT = (e) => { const { colorScheme: t, theme: r, isIndeterminate: n, hasStripe: o } = e, a = ue( - Xf(), - Xf("1rem", "rgba(0,0,0,0.1)") + Gf(), + Gf("1rem", "rgba(0,0,0,0.1)") )(e), i = ue(`${t}.500`, `${t}.200`)(e), s = `linear-gradient( to right, transparent 0%, @@ -9491,50 +9730,50 @@ var hT = qr((e) => { ...!n && o && a, ...n ? { bgImage: s } : { bgColor: i } }; -}, TT = { +}, CT = { lineHeight: "1", fontSize: "0.25em", fontWeight: "bold", color: "white" -}, AT = (e) => ({ +}, _T = (e) => ({ bg: ue("gray.100", "whiteAlpha.300")(e) -}), OT = (e) => ({ +}), kT = (e) => ({ transitionProperty: "common", transitionDuration: "slow", - ...PT(e) -}), $T = ia((e) => ({ - label: TT, - filledTrack: OT(e), - track: AT(e) -})), RT = { - xs: ia({ + ...wT(e) +}), ET = sa((e) => ({ + label: CT, + filledTrack: kT(e), + track: _T(e) +})), PT = { + xs: sa({ track: { h: "1" } }), - sm: ia({ + sm: sa({ track: { h: "2" } }), - md: ia({ + md: sa({ track: { h: "3" } }), - lg: ia({ + lg: sa({ track: { h: "4" } }) -}, DT = ET({ - sizes: RT, - baseStyle: $T, +}, TT = ST({ + sizes: PT, + baseStyle: ET, defaultProps: { size: "md", colorScheme: "blue" } -}), MT = (e) => typeof e == "function"; +}), AT = (e) => typeof e == "function"; function Mt(e, ...t) { - return MT(e) ? e(...t) : e; + return AT(e) ? e(...t) : e; } -var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de("checkbox-size"), FT = (e) => { +var { definePartsStyle: Xi, defineMultiStyleConfig: OT } = Ke(wE.keys), va = de("checkbox-size"), RT = (e) => { const { colorScheme: t } = e; return { - w: ha.reference, - h: ha.reference, + w: va.reference, + h: va.reference, transitionProperty: "box-shadow", transitionDuration: "normal", border: "2px solid", @@ -9571,45 +9810,45 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( borderColor: ue("red.500", "red.300")(e) } }; -}, NT = { +}, $T = { _disabled: { cursor: "not-allowed" } -}, jT = { +}, DT = { userSelect: "none", _disabled: { opacity: 0.4 } -}, BT = { +}, MT = { transitionProperty: "transform", transitionDuration: "normal" -}, zT = Xi((e) => ({ - icon: BT, - container: NT, - control: Mt(FT, e), - label: jT -})), VT = { +}, IT = Xi((e) => ({ + icon: MT, + container: $T, + control: Mt(RT, e), + label: DT +})), FT = { sm: Xi({ - control: { [ha.variable]: "sizes.3" }, + control: { [va.variable]: "sizes.3" }, label: { fontSize: "sm" }, icon: { fontSize: "3xs" } }), md: Xi({ - control: { [ha.variable]: "sizes.4" }, + control: { [va.variable]: "sizes.4" }, label: { fontSize: "md" }, icon: { fontSize: "2xs" } }), lg: Xi({ - control: { [ha.variable]: "sizes.5" }, + control: { [va.variable]: "sizes.5" }, label: { fontSize: "lg" }, icon: { fontSize: "2xs" } }) -}, ms = IT({ - baseStyle: zT, - sizes: VT, +}, hs = OT({ + baseStyle: IT, + sizes: FT, defaultProps: { size: "md", colorScheme: "blue" } -}), { defineMultiStyleConfig: LT, definePartsStyle: Ki } = Ke(BE.keys), WT = (e) => { +}), { defineMultiStyleConfig: NT, definePartsStyle: Ki } = Ke(ME.keys), jT = (e) => { var t; - const r = (t = Mt(ms.baseStyle, e)) == null ? void 0 : t.control; + const r = (t = Mt(hs.baseStyle, e)) == null ? void 0 : t.control; return { ...r, borderRadius: "full", @@ -9626,14 +9865,14 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( } } }; -}, UT = Ki((e) => { +}, BT = Ki((e) => { var t, r, n, o; return { - label: (r = (t = ms).baseStyle) == null ? void 0 : r.call(t, e).label, - container: (o = (n = ms).baseStyle) == null ? void 0 : o.call(n, e).container, - control: WT(e) + label: (r = (t = hs).baseStyle) == null ? void 0 : r.call(t, e).label, + container: (o = (n = hs).baseStyle) == null ? void 0 : o.call(n, e).container, + control: jT(e) }; -}), HT = { +}), zT = { md: Ki({ control: { w: "4", h: "4" }, label: { fontSize: "md" } @@ -9646,15 +9885,15 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( control: { width: "3", height: "3" }, label: { fontSize: "sm" } }) -}, YT = LT({ - baseStyle: UT, - sizes: HT, +}, VT = NT({ + baseStyle: BT, + sizes: zT, defaultProps: { size: "md", colorScheme: "blue" } -}), { defineMultiStyleConfig: qT, definePartsStyle: GT } = Ke(zE.keys), ki = de("select-bg"), pp, XT = { - ...(pp = Ve.baseStyle) == null ? void 0 : pp.field, +}), { defineMultiStyleConfig: LT, definePartsStyle: WT } = Ke(IE.keys), ki = de("select-bg"), fp, UT = { + ...(fp = Ve.baseStyle) == null ? void 0 : fp.field, appearance: "none", paddingBottom: "1px", lineHeight: "normal", @@ -9666,7 +9905,7 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( "> option, > optgroup": { bg: ki.reference } -}, KT = { +}, HT = { width: "6", height: "100%", insetEnd: "2", @@ -9676,62 +9915,62 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( _disabled: { opacity: 0.5 } -}, ZT = GT({ - field: XT, - icon: KT +}, YT = WT({ + field: UT, + icon: HT }), Ei = { paddingInlineEnd: "8" -}, hp, mp, vp, gp, bp, yp, xp, Sp, JT = { +}, pp, hp, mp, vp, gp, bp, yp, xp, qT = { lg: { - ...(hp = Ve.sizes) == null ? void 0 : hp.lg, + ...(pp = Ve.sizes) == null ? void 0 : pp.lg, field: { - ...(mp = Ve.sizes) == null ? void 0 : mp.lg.field, + ...(hp = Ve.sizes) == null ? void 0 : hp.lg.field, ...Ei } }, md: { - ...(vp = Ve.sizes) == null ? void 0 : vp.md, + ...(mp = Ve.sizes) == null ? void 0 : mp.md, field: { - ...(gp = Ve.sizes) == null ? void 0 : gp.md.field, + ...(vp = Ve.sizes) == null ? void 0 : vp.md.field, ...Ei } }, sm: { - ...(bp = Ve.sizes) == null ? void 0 : bp.sm, + ...(gp = Ve.sizes) == null ? void 0 : gp.sm, field: { - ...(yp = Ve.sizes) == null ? void 0 : yp.sm.field, + ...(bp = Ve.sizes) == null ? void 0 : bp.sm.field, ...Ei } }, xs: { - ...(xp = Ve.sizes) == null ? void 0 : xp.xs, + ...(yp = Ve.sizes) == null ? void 0 : yp.xs, field: { - ...(Sp = Ve.sizes) == null ? void 0 : Sp.xs.field, + ...(xp = Ve.sizes) == null ? void 0 : xp.xs.field, ...Ei }, icon: { insetEnd: "1" } } -}, QT = qT({ - baseStyle: ZT, - sizes: JT, +}, GT = LT({ + baseStyle: YT, + sizes: qT, variants: Ve.variants, defaultProps: Ve.defaultProps -}), Il = de("skeleton-start-color"), Fl = de("skeleton-end-color"), eA = { - [Il.variable]: "colors.gray.100", - [Fl.variable]: "colors.gray.400", +}), Dl = de("skeleton-start-color"), Ml = de("skeleton-end-color"), XT = { + [Dl.variable]: "colors.gray.100", + [Ml.variable]: "colors.gray.400", _dark: { - [Il.variable]: "colors.gray.800", - [Fl.variable]: "colors.gray.600" + [Dl.variable]: "colors.gray.800", + [Ml.variable]: "colors.gray.600" }, - background: Il.reference, - borderColor: Fl.reference, + background: Dl.reference, + borderColor: Ml.reference, opacity: 0.7, borderRadius: "sm" -}, tA = { - baseStyle: eA -}, Nl = de("skip-link-bg"), rA = { +}, KT = { + baseStyle: XT +}, Il = de("skip-link-bg"), ZT = { borderRadius: "md", fontWeight: "semibold", _focusVisible: { @@ -9740,15 +9979,15 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( position: "fixed", top: "6", insetStart: "6", - [Nl.variable]: "colors.white", + [Il.variable]: "colors.white", _dark: { - [Nl.variable]: "colors.gray.700" + [Il.variable]: "colors.gray.700" }, - bg: Nl.reference + bg: Il.reference } -}, nA = { - baseStyle: rA -}, { defineMultiStyleConfig: oA, definePartsStyle: qs } = Ke(VE.keys), Na = de("slider-thumb-size"), ja = de("slider-track-size"), pn = de("slider-bg"), aA = (e) => { +}, JT = { + baseStyle: ZT +}, { defineMultiStyleConfig: QT, definePartsStyle: Ys } = Ke(FE.keys), ja = de("slider-thumb-size"), Ba = de("slider-track-size"), hn = de("slider-bg"), eA = (e) => { const { orientation: t } = e; return { display: "inline-block", @@ -9759,35 +9998,35 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( cursor: "default", pointerEvents: "none" }, - ...qu({ + ...Hu({ orientation: t, vertical: { h: "100%" }, horizontal: { w: "100%" } }) }; -}, iA = (e) => ({ - ...qu({ +}, tA = (e) => ({ + ...Hu({ orientation: e.orientation, - horizontal: { h: ja.reference }, - vertical: { w: ja.reference } + horizontal: { h: Ba.reference }, + vertical: { w: Ba.reference } }), overflow: "hidden", borderRadius: "sm", - [pn.variable]: "colors.gray.200", + [hn.variable]: "colors.gray.200", _dark: { - [pn.variable]: "colors.whiteAlpha.200" + [hn.variable]: "colors.whiteAlpha.200" }, _disabled: { - [pn.variable]: "colors.gray.300", + [hn.variable]: "colors.gray.300", _dark: { - [pn.variable]: "colors.whiteAlpha.300" + [hn.variable]: "colors.whiteAlpha.300" } }, - bg: pn.reference -}), sA = (e) => { + bg: hn.reference +}), rA = (e) => { const { orientation: t } = e; return { - ...qu({ + ...Hu({ orientation: t, vertical: { left: "50%", @@ -9804,8 +10043,8 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( } } }), - w: Na.reference, - h: Na.reference, + w: ja.reference, + h: ja.reference, display: "flex", alignItems: "center", justifyContent: "center", @@ -9826,110 +10065,110 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( bg: "gray.300" } }; -}, lA = (e) => { +}, nA = (e) => { const { colorScheme: t } = e; return { width: "inherit", height: "inherit", - [pn.variable]: `colors.${t}.500`, + [hn.variable]: `colors.${t}.500`, _dark: { - [pn.variable]: `colors.${t}.200` + [hn.variable]: `colors.${t}.200` }, - bg: pn.reference + bg: hn.reference }; -}, cA = qs((e) => ({ - container: aA(e), - track: iA(e), - thumb: sA(e), - filledTrack: lA(e) -})), uA = qs({ +}, oA = Ys((e) => ({ + container: eA(e), + track: tA(e), + thumb: rA(e), + filledTrack: nA(e) +})), aA = Ys({ container: { - [Na.variable]: "sizes.4", - [ja.variable]: "sizes.1" + [ja.variable]: "sizes.4", + [Ba.variable]: "sizes.1" } -}), dA = qs({ +}), iA = Ys({ container: { - [Na.variable]: "sizes.3.5", - [ja.variable]: "sizes.1" + [ja.variable]: "sizes.3.5", + [Ba.variable]: "sizes.1" } -}), fA = qs({ +}), sA = Ys({ container: { - [Na.variable]: "sizes.2.5", - [ja.variable]: "sizes.0.5" - } -}), pA = { - lg: uA, - md: dA, - sm: fA -}, hA = oA({ - baseStyle: cA, - sizes: pA, + [ja.variable]: "sizes.2.5", + [Ba.variable]: "sizes.0.5" + } +}), lA = { + lg: aA, + md: iA, + sm: sA +}, cA = QT({ + baseStyle: oA, + sizes: lA, defaultProps: { size: "md", colorScheme: "blue" } -}), Dn = yt("spinner-size"), mA = { - width: [Dn.reference], - height: [Dn.reference] -}, vA = { +}), Mn = yt("spinner-size"), uA = { + width: [Mn.reference], + height: [Mn.reference] +}, dA = { xs: { - [Dn.variable]: "sizes.3" + [Mn.variable]: "sizes.3" }, sm: { - [Dn.variable]: "sizes.4" + [Mn.variable]: "sizes.4" }, md: { - [Dn.variable]: "sizes.6" + [Mn.variable]: "sizes.6" }, lg: { - [Dn.variable]: "sizes.8" + [Mn.variable]: "sizes.8" }, xl: { - [Dn.variable]: "sizes.12" + [Mn.variable]: "sizes.12" } -}, gA = { - baseStyle: mA, - sizes: vA, +}, fA = { + baseStyle: uA, + sizes: dA, defaultProps: { size: "md" } -}, { defineMultiStyleConfig: bA, definePartsStyle: _v } = Ke(LE.keys), yA = { +}, { defineMultiStyleConfig: pA, definePartsStyle: wv } = Ke(NE.keys), hA = { fontWeight: "medium" -}, xA = { +}, mA = { opacity: 0.8, marginBottom: "2" -}, SA = { +}, vA = { verticalAlign: "baseline", fontWeight: "semibold" -}, wA = { +}, gA = { marginEnd: 1, w: "3.5", h: "3.5", verticalAlign: "middle" -}, CA = _v({ +}, bA = wv({ container: {}, - label: yA, - helpText: xA, - number: SA, - icon: wA -}), _A = { - md: _v({ + label: hA, + helpText: mA, + number: vA, + icon: gA +}), yA = { + md: wv({ label: { fontSize: "sm" }, helpText: { fontSize: "sm" }, number: { fontSize: "2xl" } }) -}, kA = bA({ - baseStyle: CA, - sizes: _A, +}, xA = pA({ + baseStyle: bA, + sizes: yA, defaultProps: { size: "md" } -}), jl = de("kbd-bg"), EA = { - [jl.variable]: "colors.gray.100", +}), Fl = de("kbd-bg"), SA = { + [Fl.variable]: "colors.gray.100", _dark: { - [jl.variable]: "colors.whiteAlpha.100" + [Fl.variable]: "colors.whiteAlpha.100" }, - bg: jl.reference, + bg: Fl.reference, borderRadius: "md", borderWidth: "1px", borderBottomWidth: "3px", @@ -9938,9 +10177,9 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( lineHeight: "normal", px: "0.4em", whiteSpace: "nowrap" -}, PA = { - baseStyle: EA -}, TA = { +}, wA = { + baseStyle: SA +}, CA = { transitionProperty: "common", transitionDuration: "fast", transitionTimingFunction: "ease-out", @@ -9954,22 +10193,22 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( _focusVisible: { boxShadow: "outline" } -}, AA = { - baseStyle: TA -}, { defineMultiStyleConfig: OA, definePartsStyle: $A } = Ke(DE.keys), RA = { +}, _A = { + baseStyle: CA +}, { defineMultiStyleConfig: kA, definePartsStyle: EA } = Ke(TE.keys), PA = { marginEnd: "2", display: "inline", verticalAlign: "text-bottom" -}, DA = $A({ - icon: RA -}), MA = OA({ - baseStyle: DA -}), { defineMultiStyleConfig: IA, definePartsStyle: FA } = Ke(ME.keys), Or = de("menu-bg"), Bl = de("menu-shadow"), NA = { - [Or.variable]: "#fff", - [Bl.variable]: "shadows.sm", +}, TA = EA({ + icon: PA +}), AA = kA({ + baseStyle: TA +}), { defineMultiStyleConfig: OA, definePartsStyle: RA } = Ke(AE.keys), Rr = de("menu-bg"), Nl = de("menu-shadow"), $A = { + [Rr.variable]: "#fff", + [Nl.variable]: "shadows.sm", _dark: { - [Or.variable]: "colors.gray.700", - [Bl.variable]: "shadows.dark-lg" + [Rr.variable]: "colors.gray.700", + [Nl.variable]: "shadows.dark-lg" }, color: "inherit", minW: "3xs", @@ -9977,72 +10216,72 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( zIndex: 1, borderRadius: "md", borderWidth: "1px", - bg: Or.reference, - boxShadow: Bl.reference -}, jA = { + bg: Rr.reference, + boxShadow: Nl.reference +}, DA = { py: "1.5", px: "3", transitionProperty: "background", transitionDuration: "ultra-fast", transitionTimingFunction: "ease-in", _focus: { - [Or.variable]: "colors.gray.100", + [Rr.variable]: "colors.gray.100", _dark: { - [Or.variable]: "colors.whiteAlpha.100" + [Rr.variable]: "colors.whiteAlpha.100" } }, _active: { - [Or.variable]: "colors.gray.200", + [Rr.variable]: "colors.gray.200", _dark: { - [Or.variable]: "colors.whiteAlpha.200" + [Rr.variable]: "colors.whiteAlpha.200" } }, _expanded: { - [Or.variable]: "colors.gray.100", + [Rr.variable]: "colors.gray.100", _dark: { - [Or.variable]: "colors.whiteAlpha.100" + [Rr.variable]: "colors.whiteAlpha.100" } }, _disabled: { opacity: 0.4, cursor: "not-allowed" }, - bg: Or.reference -}, BA = { + bg: Rr.reference +}, MA = { mx: 4, my: 2, fontWeight: "semibold", fontSize: "sm" -}, zA = { +}, IA = { display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0 -}, VA = { +}, FA = { opacity: 0.6 -}, LA = { +}, NA = { border: 0, borderBottom: "1px solid", borderColor: "inherit", my: "2", opacity: 0.6 -}, WA = { +}, jA = { transitionProperty: "common", transitionDuration: "normal" -}, UA = FA({ - button: WA, - list: NA, - item: jA, - groupTitle: BA, - icon: zA, - command: VA, - divider: LA -}), HA = IA({ - baseStyle: UA -}), { defineMultiStyleConfig: YA, definePartsStyle: Uc } = Ke(IE.keys), zl = de("modal-bg"), Vl = de("modal-shadow"), qA = { +}, BA = RA({ + button: jA, + list: $A, + item: DA, + groupTitle: MA, + icon: IA, + command: FA, + divider: NA +}), zA = OA({ + baseStyle: BA +}), { defineMultiStyleConfig: VA, definePartsStyle: Wc } = Ke(OE.keys), jl = de("modal-bg"), Bl = de("modal-shadow"), LA = { bg: "blackAlpha.600", zIndex: "modal" -}, GA = (e) => { +}, WA = (e) => { const { isCentered: t, scrollBehavior: r } = e; return { display: "flex", @@ -10052,7 +10291,7 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( overflow: r === "inside" ? "hidden" : "auto", overscrollBehaviorY: "none" }; -}, XA = (e) => { +}, UA = (e) => { const { isCentered: t, scrollBehavior: r } = e; return { borderRadius: "md", @@ -10061,25 +10300,25 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( mx: t ? "auto" : void 0, zIndex: "modal", maxH: r === "inside" ? "calc(100% - 7.5rem)" : void 0, - [zl.variable]: "colors.white", - [Vl.variable]: "shadows.lg", + [jl.variable]: "colors.white", + [Bl.variable]: "shadows.lg", _dark: { - [zl.variable]: "colors.gray.700", - [Vl.variable]: "shadows.dark-lg" + [jl.variable]: "colors.gray.700", + [Bl.variable]: "shadows.dark-lg" }, - bg: zl.reference, - boxShadow: Vl.reference + bg: jl.reference, + boxShadow: Bl.reference }; -}, KA = { +}, HA = { px: "6", py: "4", fontSize: "xl", fontWeight: "semibold" -}, ZA = { +}, YA = { position: "absolute", top: "2", insetEnd: "3" -}, JA = (e) => { +}, qA = (e) => { const { scrollBehavior: t } = e; return { px: "6", @@ -10087,20 +10326,20 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de( flex: "1", overflow: t === "inside" ? "auto" : void 0 }; -}, QA = { +}, GA = { px: "6", py: "4" -}, eO = Uc((e) => ({ - overlay: qA, - dialogContainer: Mt(GA, e), - dialog: Mt(XA, e), - header: KA, - closeButton: ZA, - body: Mt(JA, e), - footer: QA +}, XA = Wc((e) => ({ + overlay: LA, + dialogContainer: Mt(WA, e), + dialog: Mt(UA, e), + header: HA, + closeButton: YA, + body: Mt(qA, e), + footer: GA })); function pr(e) { - return Uc(e === "full" ? { + return Wc(e === "full" ? { dialog: { maxW: "100vw", minH: "$100vh", @@ -10111,7 +10350,7 @@ function pr(e) { dialog: { maxW: e } }); } -var tO = { +var KA = { xs: pr("xs"), sm: pr("sm"), md: pr("md"), @@ -10123,46 +10362,46 @@ var tO = { "5xl": pr("5xl"), "6xl": pr("6xl"), full: pr("full") -}, rO = YA({ - baseStyle: eO, - sizes: tO, +}, ZA = VA({ + baseStyle: XA, + sizes: KA, defaultProps: { size: "md" } -}), { defineMultiStyleConfig: nO, definePartsStyle: kv } = Ke(FE.keys), Xu = yt("number-input-stepper-width"), Ev = yt("number-input-input-padding"), oO = Yr(Xu).add("0.5rem").toString(), Ll = yt("number-input-bg"), Wl = yt("number-input-color"), Ul = yt("number-input-border-color"), aO = { - [Xu.variable]: "sizes.6", - [Ev.variable]: oO -}, iO = (e) => { +}), { defineMultiStyleConfig: JA, definePartsStyle: Cv } = Ke(RE.keys), qu = yt("number-input-stepper-width"), _v = yt("number-input-input-padding"), QA = qr(qu).add("0.5rem").toString(), zl = yt("number-input-bg"), Vl = yt("number-input-color"), Ll = yt("number-input-border-color"), eO = { + [qu.variable]: "sizes.6", + [_v.variable]: QA +}, tO = (e) => { var t, r; return (r = (t = Mt(Ve.baseStyle, e)) == null ? void 0 : t.field) != null ? r : {}; -}, sO = { - width: Xu.reference -}, lO = { +}, rO = { + width: qu.reference +}, nO = { borderStart: "1px solid", - borderStartColor: Ul.reference, - color: Wl.reference, - bg: Ll.reference, - [Wl.variable]: "colors.chakra-body-text", - [Ul.variable]: "colors.chakra-border-color", + borderStartColor: Ll.reference, + color: Vl.reference, + bg: zl.reference, + [Vl.variable]: "colors.chakra-body-text", + [Ll.variable]: "colors.chakra-border-color", _dark: { - [Wl.variable]: "colors.whiteAlpha.800", - [Ul.variable]: "colors.whiteAlpha.300" + [Vl.variable]: "colors.whiteAlpha.800", + [Ll.variable]: "colors.whiteAlpha.300" }, _active: { - [Ll.variable]: "colors.gray.200", + [zl.variable]: "colors.gray.200", _dark: { - [Ll.variable]: "colors.whiteAlpha.300" + [zl.variable]: "colors.whiteAlpha.300" } }, _disabled: { opacity: 0.4, cursor: "not-allowed" } -}, cO = kv((e) => { +}, oO = Cv((e) => { var t; return { - root: aO, - field: (t = Mt(iO, e)) != null ? t : {}, - stepperGroup: sO, - stepper: lO + root: eO, + field: (t = Mt(tO, e)) != null ? t : {}, + stepperGroup: rO, + stepper: nO }; }); function Pi(e) { @@ -10172,15 +10411,15 @@ function Pi(e) { md: "md", sm: "sm", xs: "sm" - }, i = (n = (r = o.field) == null ? void 0 : r.fontSize) != null ? n : "md", s = bv.fontSizes[i]; - return kv({ + }, i = (n = (r = o.field) == null ? void 0 : r.fontSize) != null ? n : "md", s = vv.fontSizes[i]; + return Cv({ field: { ...o.field, - paddingInlineEnd: Ev.reference, + paddingInlineEnd: _v.reference, verticalAlign: "top" }, stepper: { - fontSize: Yr(s).multiply(0.75).toString(), + fontSize: qr(s).multiply(0.75).toString(), _first: { borderTopEndRadius: a[e] }, @@ -10192,20 +10431,20 @@ function Pi(e) { } }); } -var uO = { +var aO = { xs: Pi("xs"), sm: Pi("sm"), md: Pi("md"), lg: Pi("lg") -}, dO = nO({ - baseStyle: cO, - sizes: uO, +}, iO = JA({ + baseStyle: oO, + sizes: aO, variants: Ve.variants, defaultProps: Ve.defaultProps -}), wp, fO = { - ...(wp = Ve.baseStyle) == null ? void 0 : wp.field, +}), Sp, sO = { + ...(Sp = Ve.baseStyle) == null ? void 0 : Sp.field, textAlign: "center" -}, pO = { +}, lO = { lg: { fontSize: "lg", w: 12, @@ -10230,7 +10469,7 @@ var uO = { h: 6, borderRadius: "sm" } -}, Cp, _p, hO = { +}, wp, Cp, cO = { outline: (e) => { var t, r, n; return (n = (r = Mt((t = Ve.variants) == null ? void 0 : t.outline, e)) == null ? void 0 : r.field) != null ? n : {}; @@ -10243,20 +10482,20 @@ var uO = { var t, r, n; return (n = (r = Mt((t = Ve.variants) == null ? void 0 : t.filled, e)) == null ? void 0 : r.field) != null ? n : {}; }, - unstyled: (_p = (Cp = Ve.variants) == null ? void 0 : Cp.unstyled.field) != null ? _p : {} -}, mO = { - baseStyle: fO, - sizes: pO, - variants: hO, + unstyled: (Cp = (wp = Ve.variants) == null ? void 0 : wp.unstyled.field) != null ? Cp : {} +}, uO = { + baseStyle: sO, + sizes: lO, + variants: cO, defaultProps: Ve.defaultProps -}, { defineMultiStyleConfig: vO, definePartsStyle: gO } = Ke(NE.keys), Ti = yt("popper-bg"), bO = yt("popper-arrow-bg"), kp = yt("popper-arrow-shadow-color"), yO = { zIndex: 10 }, xO = { +}, { defineMultiStyleConfig: dO, definePartsStyle: fO } = Ke($E.keys), Ti = yt("popper-bg"), pO = yt("popper-arrow-bg"), _p = yt("popper-arrow-shadow-color"), hO = { zIndex: 10 }, mO = { [Ti.variable]: "colors.white", bg: Ti.reference, - [bO.variable]: Ti.reference, - [kp.variable]: "colors.gray.200", + [pO.variable]: Ti.reference, + [_p.variable]: "colors.gray.200", _dark: { [Ti.variable]: "colors.gray.700", - [kp.variable]: "colors.whiteAlpha.300" + [_p.variable]: "colors.whiteAlpha.300" }, width: "xs", border: "1px solid", @@ -10268,107 +10507,107 @@ var uO = { outline: 0, boxShadow: "outline" } -}, SO = { +}, vO = { px: 3, py: 2, borderBottomWidth: "1px" -}, wO = { +}, gO = { px: 3, py: 2 -}, CO = { +}, bO = { px: 3, py: 2, borderTopWidth: "1px" -}, _O = { +}, yO = { position: "absolute", borderRadius: "md", top: 1, insetEnd: 2, padding: 2 -}, kO = gO({ - popper: yO, - content: xO, - header: SO, - body: wO, - footer: CO, - closeButton: _O -}), EO = vO({ - baseStyle: kO -}), { definePartsStyle: Hc, defineMultiStyleConfig: PO } = Ke(TE.keys), Hl = de("drawer-bg"), Yl = de("drawer-box-shadow"); -function Xn(e) { - return Hc(e === "full" ? { +}, xO = fO({ + popper: hO, + content: mO, + header: vO, + body: gO, + footer: bO, + closeButton: yO +}), SO = dO({ + baseStyle: xO +}), { definePartsStyle: Uc, defineMultiStyleConfig: wO } = Ke(CE.keys), Wl = de("drawer-bg"), Ul = de("drawer-box-shadow"); +function Zn(e) { + return Uc(e === "full" ? { dialog: { maxW: "100vw", h: "100vh" } } : { dialog: { maxW: e } }); } -var TO = { +var CO = { bg: "blackAlpha.600", - zIndex: "overlay" -}, AO = { + zIndex: "modal" +}, _O = { display: "flex", zIndex: "modal", justifyContent: "center" -}, OO = (e) => { +}, kO = (e) => { const { isFullHeight: t } = e; return { ...t && { height: "100vh" }, zIndex: "modal", maxH: "100vh", color: "inherit", - [Hl.variable]: "colors.white", - [Yl.variable]: "shadows.lg", + [Wl.variable]: "colors.white", + [Ul.variable]: "shadows.lg", _dark: { - [Hl.variable]: "colors.gray.700", - [Yl.variable]: "shadows.dark-lg" + [Wl.variable]: "colors.gray.700", + [Ul.variable]: "shadows.dark-lg" }, - bg: Hl.reference, - boxShadow: Yl.reference + bg: Wl.reference, + boxShadow: Ul.reference }; -}, $O = { +}, EO = { px: "6", py: "4", fontSize: "xl", fontWeight: "semibold" -}, RO = { +}, PO = { position: "absolute", top: "2", insetEnd: "3" -}, DO = { +}, TO = { px: "6", py: "2", flex: "1", overflow: "auto" -}, MO = { +}, AO = { px: "6", py: "4" -}, IO = Hc((e) => ({ - overlay: TO, - dialogContainer: AO, - dialog: Mt(OO, e), - header: $O, - closeButton: RO, - body: DO, - footer: MO -})), FO = { - xs: Xn("xs"), - sm: Xn("md"), - md: Xn("lg"), - lg: Xn("2xl"), - xl: Xn("4xl"), - full: Xn("full") -}, NO = PO({ - baseStyle: IO, - sizes: FO, +}, OO = Uc((e) => ({ + overlay: CO, + dialogContainer: _O, + dialog: Mt(kO, e), + header: EO, + closeButton: PO, + body: TO, + footer: AO +})), RO = { + xs: Zn("xs"), + sm: Zn("md"), + md: Zn("lg"), + lg: Zn("2xl"), + xl: Zn("4xl"), + full: Zn("full") +}, $O = wO({ + baseStyle: OO, + sizes: RO, defaultProps: { size: "xs" } -}), { definePartsStyle: jO, defineMultiStyleConfig: BO } = Ke(AE.keys), zO = { +}), { definePartsStyle: DO, defineMultiStyleConfig: MO } = Ke(_E.keys), IO = { borderRadius: "md", py: "1", transitionProperty: "common", transitionDuration: "normal" -}, VO = { +}, FO = { borderRadius: "md", py: "1", transitionProperty: "common", @@ -10376,7 +10615,7 @@ var TO = { width: "full", _focusVisible: { boxShadow: "outline" }, _placeholder: { opacity: 0.6 } -}, LO = { +}, NO = { borderRadius: "md", py: "1", transitionProperty: "common", @@ -10384,59 +10623,59 @@ var TO = { width: "full", _focusVisible: { boxShadow: "outline" }, _placeholder: { opacity: 0.6 } -}, WO = jO({ - preview: zO, - input: VO, - textarea: LO -}), UO = BO({ - baseStyle: WO -}), { definePartsStyle: HO, defineMultiStyleConfig: YO } = Ke(OE.keys), vo = de("form-control-color"), qO = { +}, jO = DO({ + preview: IO, + input: FO, + textarea: NO +}), BO = MO({ + baseStyle: jO +}), { definePartsStyle: zO, defineMultiStyleConfig: VO } = Ke(kE.keys), go = de("form-control-color"), LO = { marginStart: "1", - [vo.variable]: "colors.red.500", + [go.variable]: "colors.red.500", _dark: { - [vo.variable]: "colors.red.300" + [go.variable]: "colors.red.300" }, - color: vo.reference -}, GO = { + color: go.reference +}, WO = { mt: "2", - [vo.variable]: "colors.gray.600", + [go.variable]: "colors.gray.600", _dark: { - [vo.variable]: "colors.whiteAlpha.600" + [go.variable]: "colors.whiteAlpha.600" }, - color: vo.reference, + color: go.reference, lineHeight: "normal", fontSize: "sm" -}, XO = HO({ +}, UO = zO({ container: { width: "100%", position: "relative" }, - requiredIndicator: qO, - helperText: GO -}), KO = YO({ - baseStyle: XO -}), { definePartsStyle: ZO, defineMultiStyleConfig: JO } = Ke($E.keys), go = de("form-error-color"), QO = { - [go.variable]: "colors.red.500", + requiredIndicator: LO, + helperText: WO +}), HO = VO({ + baseStyle: UO +}), { definePartsStyle: YO, defineMultiStyleConfig: qO } = Ke(EE.keys), bo = de("form-error-color"), GO = { + [bo.variable]: "colors.red.500", _dark: { - [go.variable]: "colors.red.300" + [bo.variable]: "colors.red.300" }, - color: go.reference, + color: bo.reference, mt: "2", fontSize: "sm", lineHeight: "normal" -}, e$ = { +}, XO = { marginEnd: "0.5em", - [go.variable]: "colors.red.500", + [bo.variable]: "colors.red.500", _dark: { - [go.variable]: "colors.red.300" - }, - color: go.reference -}, t$ = ZO({ - text: QO, - icon: e$ -}), r$ = JO({ - baseStyle: t$ -}), n$ = { + [bo.variable]: "colors.red.300" + }, + color: bo.reference +}, KO = YO({ + text: GO, + icon: XO +}), ZO = qO({ + baseStyle: KO +}), JO = { fontSize: "md", marginEnd: "3", mb: "2", @@ -10447,12 +10686,12 @@ var TO = { _disabled: { opacity: 0.4 } -}, o$ = { - baseStyle: n$ -}, a$ = { +}, QO = { + baseStyle: JO +}, eR = { fontFamily: "heading", fontWeight: "bold" -}, i$ = { +}, tR = { "4xl": { fontSize: ["6xl", null, "7xl"], lineHeight: 1 @@ -10485,34 +10724,34 @@ var TO = { fontSize: "sm", lineHeight: 1.2 } -}, s$ = { - baseStyle: a$, - sizes: i$, +}, rR = { + baseStyle: eR, + sizes: tR, defaultProps: { size: "xl" } -}, { defineMultiStyleConfig: l$, definePartsStyle: c$ } = Ke(EE.keys), ql = de("breadcrumb-link-decor"), u$ = { +}, { defineMultiStyleConfig: nR, definePartsStyle: oR } = Ke(SE.keys), Hl = de("breadcrumb-link-decor"), aR = { transitionProperty: "common", transitionDuration: "fast", transitionTimingFunction: "ease-out", outline: "none", color: "inherit", - textDecoration: ql.reference, - [ql.variable]: "none", + textDecoration: Hl.reference, + [Hl.variable]: "none", "&:not([aria-current=page])": { cursor: "pointer", _hover: { - [ql.variable]: "underline" + [Hl.variable]: "underline" }, _focusVisible: { boxShadow: "outline" } } -}, d$ = c$({ - link: u$ -}), f$ = l$({ - baseStyle: d$ -}), p$ = { +}, iR = oR({ + link: aR +}), sR = nR({ + baseStyle: iR +}), lR = { lineHeight: "1.2", borderRadius: "md", fontWeight: "semibold", @@ -10531,7 +10770,7 @@ var TO = { bg: "initial" } } -}, Pv = (e) => { +}, kv = (e) => { const { colorScheme: t, theme: r } = e; if (t === "gray") return { @@ -10541,7 +10780,7 @@ var TO = { }, _active: { bg: ue("gray.200", "whiteAlpha.300")(e) } }; - const n = To(`${t}.200`, 0.12)(r), o = To(`${t}.200`, 0.24)(r); + const n = Ao(`${t}.200`, 0.12)(r), o = Ao(`${t}.200`, 0.24)(r); return { color: ue(`${t}.600`, `${t}.200`)(e), bg: "transparent", @@ -10552,16 +10791,16 @@ var TO = { bg: ue(`${t}.100`, o)(e) } }; -}, h$ = (e) => { +}, cR = (e) => { const { colorScheme: t } = e, r = ue("gray.200", "whiteAlpha.300")(e); return { border: "1px solid", borderColor: t === "gray" ? r : "currentColor", ".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": { marginEnd: "-1px" }, ".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": { marginBottom: "-1px" }, - ...Mt(Pv, e) + ...Mt(kv, e) }; -}, m$ = { +}, uR = { yellow: { bg: "yellow.400", color: "black", @@ -10574,7 +10813,7 @@ var TO = { hoverBg: "cyan.500", activeBg: "cyan.600" } -}, v$ = (e) => { +}, dR = (e) => { var t; const { colorScheme: r } = e; if (r === "gray") { @@ -10596,7 +10835,7 @@ var TO = { color: o = "white", hoverBg: a = `${r}.600`, activeBg: i = `${r}.700` - } = (t = m$[r]) != null ? t : {}, s = ue(n, `${r}.200`)(e); + } = (t = uR[r]) != null ? t : {}, s = ue(n, `${r}.200`)(e); return { bg: s, color: ue(o, "gray.800")(e), @@ -10608,7 +10847,7 @@ var TO = { }, _active: { bg: ue(i, `${r}.400`)(e) } }; -}, g$ = (e) => { +}, fR = (e) => { const { colorScheme: t } = e; return { padding: 0, @@ -10626,20 +10865,20 @@ var TO = { color: ue(`${t}.700`, `${t}.500`)(e) } }; -}, b$ = { +}, pR = { bg: "none", color: "inherit", display: "inline", lineHeight: "inherit", m: "0", p: "0" -}, y$ = { - ghost: Pv, - outline: h$, - solid: v$, - link: g$, - unstyled: b$ -}, x$ = { +}, hR = { + ghost: kv, + outline: cR, + solid: dR, + link: fR, + unstyled: pR +}, mR = { lg: { h: "12", minW: "12", @@ -10664,96 +10903,96 @@ var TO = { fontSize: "xs", px: "2" } -}, S$ = { - baseStyle: p$, - variants: y$, - sizes: x$, +}, vR = { + baseStyle: lR, + variants: hR, + sizes: mR, defaultProps: { variant: "solid", size: "md", colorScheme: "gray" } -}, { definePartsStyle: Bn, defineMultiStyleConfig: w$ } = Ke(qE.keys), vs = de("card-bg"), Xr = de("card-padding"), Tv = de("card-shadow"), Zi = de("card-radius"), Av = de("card-border-width", "0"), Ov = de("card-border-color"), C$ = Bn({ +}, { definePartsStyle: zn, defineMultiStyleConfig: gR } = Ke(LE.keys), ms = de("card-bg"), Kr = de("card-padding"), Ev = de("card-shadow"), Zi = de("card-radius"), Pv = de("card-border-width", "0"), Tv = de("card-border-color"), bR = zn({ container: { - [vs.variable]: "colors.chakra-body-bg", - backgroundColor: vs.reference, - boxShadow: Tv.reference, + [ms.variable]: "colors.chakra-body-bg", + backgroundColor: ms.reference, + boxShadow: Ev.reference, borderRadius: Zi.reference, color: "chakra-body-text", - borderWidth: Av.reference, - borderColor: Ov.reference + borderWidth: Pv.reference, + borderColor: Tv.reference }, body: { - padding: Xr.reference, + padding: Kr.reference, flex: "1 1 0%" }, header: { - padding: Xr.reference + padding: Kr.reference }, footer: { - padding: Xr.reference + padding: Kr.reference } -}), _$ = { - sm: Bn({ +}), yR = { + sm: zn({ container: { [Zi.variable]: "radii.base", - [Xr.variable]: "space.3" + [Kr.variable]: "space.3" } }), - md: Bn({ + md: zn({ container: { [Zi.variable]: "radii.md", - [Xr.variable]: "space.5" + [Kr.variable]: "space.5" } }), - lg: Bn({ + lg: zn({ container: { [Zi.variable]: "radii.xl", - [Xr.variable]: "space.7" + [Kr.variable]: "space.7" } }) -}, k$ = { - elevated: Bn({ +}, xR = { + elevated: zn({ container: { - [Tv.variable]: "shadows.base", + [Ev.variable]: "shadows.base", _dark: { - [vs.variable]: "colors.gray.700" + [ms.variable]: "colors.gray.700" } } }), - outline: Bn({ + outline: zn({ container: { - [Av.variable]: "1px", - [Ov.variable]: "colors.chakra-border-color" + [Pv.variable]: "1px", + [Tv.variable]: "colors.chakra-border-color" } }), - filled: Bn({ + filled: zn({ container: { - [vs.variable]: "colors.chakra-subtle-bg" + [ms.variable]: "colors.chakra-subtle-bg" } }), unstyled: { body: { - [Xr.variable]: 0 + [Kr.variable]: 0 }, header: { - [Xr.variable]: 0 + [Kr.variable]: 0 }, footer: { - [Xr.variable]: 0 + [Kr.variable]: 0 } } -}, E$ = w$({ - baseStyle: C$, - variants: k$, - sizes: _$, +}, SR = gR({ + baseStyle: bR, + variants: xR, + sizes: yR, defaultProps: { variant: "elevated", size: "md" } -}), ma = yt("close-button-size"), Zo = yt("close-button-bg"), P$ = { - w: [ma.reference], - h: [ma.reference], +}), ga = yt("close-button-size"), Jo = yt("close-button-bg"), wR = { + w: [ga.reference], + h: [ga.reference], borderRadius: "md", transitionProperty: "common", transitionDuration: "normal", @@ -10763,41 +11002,41 @@ var TO = { boxShadow: "none" }, _hover: { - [Zo.variable]: "colors.blackAlpha.100", + [Jo.variable]: "colors.blackAlpha.100", _dark: { - [Zo.variable]: "colors.whiteAlpha.100" + [Jo.variable]: "colors.whiteAlpha.100" } }, _active: { - [Zo.variable]: "colors.blackAlpha.200", + [Jo.variable]: "colors.blackAlpha.200", _dark: { - [Zo.variable]: "colors.whiteAlpha.200" + [Jo.variable]: "colors.whiteAlpha.200" } }, _focusVisible: { boxShadow: "outline" }, - bg: Zo.reference -}, T$ = { + bg: Jo.reference +}, CR = { lg: { - [ma.variable]: "sizes.10", + [ga.variable]: "sizes.10", fontSize: "md" }, md: { - [ma.variable]: "sizes.8", + [ga.variable]: "sizes.8", fontSize: "xs" }, sm: { - [ma.variable]: "sizes.6", + [ga.variable]: "sizes.6", fontSize: "2xs" } -}, A$ = { - baseStyle: P$, - sizes: T$, +}, _R = { + baseStyle: wR, + sizes: CR, defaultProps: { size: "md" } -}, { variants: O$, defaultProps: $$ } = pa, R$ = { +}, { variants: kR, defaultProps: ER } = ma, PR = { fontFamily: "mono", fontSize: "sm", px: "0.2em", @@ -10805,40 +11044,40 @@ var TO = { bg: pt.bg.reference, color: pt.color.reference, boxShadow: pt.shadow.reference -}, D$ = { - baseStyle: R$, - variants: O$, - defaultProps: $$ -}, M$ = { +}, TR = { + baseStyle: PR, + variants: kR, + defaultProps: ER +}, AR = { w: "100%", mx: "auto", maxW: "prose", px: "4" -}, I$ = { - baseStyle: M$ -}, F$ = { +}, OR = { + baseStyle: AR +}, RR = { opacity: 0.6, borderColor: "inherit" -}, N$ = { +}, $R = { borderStyle: "solid" -}, j$ = { +}, DR = { borderStyle: "dashed" -}, B$ = { - solid: N$, - dashed: j$ -}, z$ = { - baseStyle: F$, - variants: B$, +}, MR = { + solid: $R, + dashed: DR +}, IR = { + baseStyle: RR, + variants: MR, defaultProps: { variant: "solid" } -}, { definePartsStyle: V$, defineMultiStyleConfig: L$ } = Ke(CE.keys), W$ = { +}, { definePartsStyle: FR, defineMultiStyleConfig: NR } = Ke(bE.keys), jR = { borderTopWidth: "1px", borderColor: "inherit", _last: { borderBottomWidth: "1px" } -}, U$ = { +}, BR = { transitionProperty: "common", transitionDuration: "normal", fontSize: "md", @@ -10854,20 +11093,20 @@ var TO = { }, px: "4", py: "2" -}, H$ = { +}, zR = { pt: "2", px: "4", pb: "5" -}, Y$ = { +}, VR = { fontSize: "1.25em" -}, q$ = V$({ - container: W$, - button: U$, - panel: H$, - icon: Y$ -}), G$ = L$({ baseStyle: q$ }), { definePartsStyle: ei, defineMultiStyleConfig: X$ } = Ke(_E.keys), Zt = de("alert-fg"), tn = de("alert-bg"), K$ = ei({ +}, LR = FR({ + container: jR, + button: BR, + panel: zR, + icon: VR +}), WR = NR({ baseStyle: LR }), { definePartsStyle: ei, defineMultiStyleConfig: UR } = Ke(yE.keys), Zt = de("alert-fg"), rn = de("alert-bg"), HR = ei({ container: { - bg: tn.reference, + bg: rn.reference, px: "4", py: "3" }, @@ -10894,198 +11133,198 @@ var TO = { h: "5" } }); -function Ku(e) { - const { theme: t, colorScheme: r } = e, n = To(`${r}.200`, 0.16)(t); +function Gu(e) { + const { theme: t, colorScheme: r } = e, n = Ao(`${r}.200`, 0.16)(t); return { light: `colors.${r}.100`, dark: n }; } -var Z$ = ei((e) => { - const { colorScheme: t } = e, r = Ku(e); +var YR = ei((e) => { + const { colorScheme: t } = e, r = Gu(e); return { container: { - [Zt.variable]: `colors.${t}.500`, - [tn.variable]: r.light, + [Zt.variable]: `colors.${t}.600`, + [rn.variable]: r.light, _dark: { [Zt.variable]: `colors.${t}.200`, - [tn.variable]: r.dark + [rn.variable]: r.dark } } }; -}), J$ = ei((e) => { - const { colorScheme: t } = e, r = Ku(e); +}), qR = ei((e) => { + const { colorScheme: t } = e, r = Gu(e); return { container: { - [Zt.variable]: `colors.${t}.500`, - [tn.variable]: r.light, + [Zt.variable]: `colors.${t}.600`, + [rn.variable]: r.light, _dark: { [Zt.variable]: `colors.${t}.200`, - [tn.variable]: r.dark + [rn.variable]: r.dark }, paddingStart: "3", borderStartWidth: "4px", borderStartColor: Zt.reference } }; -}), Q$ = ei((e) => { - const { colorScheme: t } = e, r = Ku(e); +}), GR = ei((e) => { + const { colorScheme: t } = e, r = Gu(e); return { container: { - [Zt.variable]: `colors.${t}.500`, - [tn.variable]: r.light, + [Zt.variable]: `colors.${t}.600`, + [rn.variable]: r.light, _dark: { [Zt.variable]: `colors.${t}.200`, - [tn.variable]: r.dark + [rn.variable]: r.dark }, pt: "2", borderTopWidth: "4px", borderTopColor: Zt.reference } }; -}), eR = ei((e) => { +}), XR = ei((e) => { const { colorScheme: t } = e; return { container: { [Zt.variable]: "colors.white", - [tn.variable]: `colors.${t}.500`, + [rn.variable]: `colors.${t}.600`, _dark: { [Zt.variable]: "colors.gray.900", - [tn.variable]: `colors.${t}.200` + [rn.variable]: `colors.${t}.200` }, color: Zt.reference } }; -}), tR = { - subtle: Z$, - "left-accent": J$, - "top-accent": Q$, - solid: eR -}, rR = X$({ - baseStyle: K$, - variants: tR, +}), KR = { + subtle: YR, + "left-accent": qR, + "top-accent": GR, + solid: XR +}, ZR = UR({ + baseStyle: HR, + variants: KR, defaultProps: { variant: "subtle", colorScheme: "blue" } -}), { definePartsStyle: $v, defineMultiStyleConfig: nR } = Ke(kE.keys), bo = de("avatar-border-color"), va = de("avatar-bg"), Ba = de("avatar-font-size"), Ao = de("avatar-size"), oR = { +}), { definePartsStyle: Av, defineMultiStyleConfig: JR } = Ke(xE.keys), yo = de("avatar-border-color"), ba = de("avatar-bg"), za = de("avatar-font-size"), Oo = de("avatar-size"), QR = { borderRadius: "full", border: "0.2em solid", - borderColor: bo.reference, - [bo.variable]: "white", + borderColor: yo.reference, + [yo.variable]: "white", _dark: { - [bo.variable]: "colors.gray.800" + [yo.variable]: "colors.gray.800" } -}, aR = { - bg: va.reference, - fontSize: Ba.reference, - width: Ao.reference, - height: Ao.reference, +}, e$ = { + bg: ba.reference, + fontSize: za.reference, + width: Oo.reference, + height: Oo.reference, lineHeight: "1", - [va.variable]: "colors.gray.200", + [ba.variable]: "colors.gray.200", _dark: { - [va.variable]: "colors.whiteAlpha.400" + [ba.variable]: "colors.whiteAlpha.400" } -}, iR = (e) => { - const { name: t, theme: r } = e, n = t ? pP({ string: t }) : "colors.gray.400", o = dP(n)(r); +}, t$ = (e) => { + const { name: t, theme: r } = e, n = t ? lP({ string: t }) : "colors.gray.400", o = iP(n)(r); let a = "white"; return o || (a = "gray.800"), { - bg: va.reference, - fontSize: Ba.reference, + bg: ba.reference, + fontSize: za.reference, color: a, - borderColor: bo.reference, + borderColor: yo.reference, verticalAlign: "top", - width: Ao.reference, - height: Ao.reference, + width: Oo.reference, + height: Oo.reference, "&:not([data-loaded])": { - [va.variable]: n + [ba.variable]: n }, - [bo.variable]: "colors.white", + [yo.variable]: "colors.white", _dark: { - [bo.variable]: "colors.gray.800" + [yo.variable]: "colors.gray.800" } }; -}, sR = { - fontSize: Ba.reference, +}, r$ = { + fontSize: za.reference, lineHeight: "1" -}, lR = $v((e) => ({ - badge: Mt(oR, e), - excessLabel: Mt(aR, e), - container: Mt(iR, e), - label: sR +}, n$ = Av((e) => ({ + badge: Mt(QR, e), + excessLabel: Mt(e$, e), + container: Mt(t$, e), + label: r$ })); -function un(e) { - const t = e !== "100%" ? xv[e] : void 0; - return $v({ +function dn(e) { + const t = e !== "100%" ? bv[e] : void 0; + return Av({ container: { - [Ao.variable]: t ?? e, - [Ba.variable]: `calc(${t ?? e} / 2.5)` + [Oo.variable]: t ?? e, + [za.variable]: `calc(${t ?? e} / 2.5)` }, excessLabel: { - [Ao.variable]: t ?? e, - [Ba.variable]: `calc(${t ?? e} / 2.5)` + [Oo.variable]: t ?? e, + [za.variable]: `calc(${t ?? e} / 2.5)` } }); } -var cR = { - "2xs": un(4), - xs: un(6), - sm: un(8), - md: un(12), - lg: un(16), - xl: un(24), - "2xl": un(32), - full: un("100%") -}, uR = nR({ - baseStyle: lR, - sizes: cR, +var o$ = { + "2xs": dn(4), + xs: dn(6), + sm: dn(8), + md: dn(12), + lg: dn(16), + xl: dn(24), + "2xl": dn(32), + full: dn("100%") +}, a$ = JR({ + baseStyle: n$, + sizes: o$, defaultProps: { size: "md" } -}), dR = { - Accordion: G$, - Alert: rR, - Avatar: uR, - Badge: pa, - Breadcrumb: f$, - Button: S$, - Checkbox: ms, - CloseButton: A$, - Code: D$, - Container: I$, - Divider: z$, - Drawer: NO, - Editable: UO, - Form: KO, - FormError: r$, - FormLabel: o$, - Heading: s$, +}), i$ = { + Accordion: WR, + Alert: ZR, + Avatar: a$, + Badge: ma, + Breadcrumb: sR, + Button: vR, + Checkbox: hs, + CloseButton: _R, + Code: TR, + Container: OR, + Divider: IR, + Drawer: $O, + Editable: BO, + Form: HO, + FormError: ZO, + FormLabel: QO, + Heading: rR, Input: Ve, - Kbd: PA, - Link: AA, - List: MA, - Menu: HA, - Modal: rO, - NumberInput: dO, - PinInput: mO, - Popover: EO, - Progress: DT, - Radio: YT, - Select: QT, - Skeleton: tA, - SkipLink: nA, - Slider: hA, - Spinner: gA, - Stat: kA, - Switch: AP, - Table: FP, - Tabs: ZP, - Tag: uT, - Textarea: wT, - Tooltip: kT, - Card: E$, - Stepper: wE -}, Rv = { + Kbd: wA, + Link: _A, + List: AA, + Menu: zA, + Modal: ZA, + NumberInput: iO, + PinInput: uO, + Popover: SO, + Progress: TT, + Radio: VT, + Select: GT, + Skeleton: KT, + SkipLink: JT, + Slider: cA, + Spinner: fA, + Stat: xA, + Switch: _P, + Table: RP, + Tabs: YP, + Tag: aT, + Textarea: gT, + Tooltip: xT, + Card: SR, + Stepper: gE +}, Ov = { colors: { "chakra-body-text": { _light: "gray.800", _dark: "whiteAlpha.900" }, "chakra-body-bg": { _light: "white", _dark: "gray.800" }, @@ -11095,7 +11334,7 @@ var cR = { "chakra-subtle-text": { _light: "gray.600", _dark: "gray.400" }, "chakra-placeholder-color": { _light: "gray.500", _dark: "whiteAlpha.400" } } -}, Dv = { +}, Rv = { global: { body: { fontFamily: "body", @@ -11112,64 +11351,64 @@ var cR = { borderColor: "chakra-border-color" } } -}, Mv = "ltr", Iv = { +}, $v = "ltr", Dv = { useSystemColorMode: !1, initialColorMode: "light", cssVarPrefix: "chakra" -}, Fv = { - semanticTokens: Rv, - direction: Mv, - ...Sv, - components: dR, - styles: Dv, - config: Iv -}, jV = Fv, fR = { - semanticTokens: Rv, - direction: Mv, +}, s$ = { + semanticTokens: Ov, + direction: $v, + ...yv, + components: i$, + styles: Rv, + config: Dv +}, l$ = { + semanticTokens: Ov, + direction: $v, components: {}, - ...Sv, - styles: Dv, - config: Iv + ...yv, + styles: Rv, + config: Dv }; -function sa(e) { +function la(e) { return typeof e == "function"; } -function pR(...e) { +function c$(...e) { return (t) => e.reduce((r, n) => n(r), t); } -var Nv = (e) => function(...r) { +var Mv = (e) => function(...r) { let n = [...r], o = r[r.length - 1]; - return Kk(o) && // this ensures backward compatibility + return Hk(o) && // this ensures backward compatibility // previously only `extendTheme(override, activeTheme?)` was allowed - n.length > 1 ? n = n.slice(0, n.length - 1) : o = e, pR( + n.length > 1 ? n = n.slice(0, n.length - 1) : o = e, c$( ...n.map( - (a) => (i) => sa(a) ? a(i) : jv(i, a) + (a) => (i) => la(a) ? a(i) : Iv(i, a) ) )(o); -}, BV = Nv(Fv), zV = Nv(fR); -function jv(...e) { - return sr({}, ...e, Bv); +}, $V = Mv(s$), DV = Mv(l$); +function Iv(...e) { + return sr({}, ...e, Fv); } -function Bv(e, t, r, n) { - if ((sa(e) || sa(t)) && Object.prototype.hasOwnProperty.call(n, r)) +function Fv(e, t, r, n) { + if ((la(e) || la(t)) && Object.prototype.hasOwnProperty.call(n, r)) return (...o) => { - const a = sa(e) ? e(...o) : e, i = sa(t) ? t(...o) : t; - return sr({}, a, i, Bv); + const a = la(e) ? e(...o) : e, i = la(t) ? t(...o) : t; + return sr({}, a, i, Fv); }; } -function hR(e, t) { +function u$(e, t) { const r = {}; return Object.keys(e).forEach((n) => { t.includes(n) || (r[n] = e[n]); }), r; } -function mR(e, t, r, n) { +function d$(e, t, r, n) { const o = typeof t == "string" ? t.split(".") : [t]; for (n = 0; n < o.length && e; n += 1) e = e[o[n]]; return e === void 0 ? r : e; } -var vR = (e) => { +var f$ = (e) => { const t = /* @__PURE__ */ new WeakMap(); return (n, o, a, i) => { if (typeof n > "u") @@ -11181,56 +11420,56 @@ var vR = (e) => { const l = e(n, o, a, i); return s.set(o, l), l; }; -}, gR = vR(mR); -function zv(e, t) { +}, p$ = f$(d$); +function Nv(e, t) { const r = {}; return Object.keys(e).forEach((n) => { const o = e[n]; t(o, n, e) && (r[n] = o); }), r; } -var Vv = (e) => zv(e, (t) => t != null); -function Ep(e) { +var jv = (e) => Nv(e, (t) => t != null); +function kp(e) { return typeof e == "number"; } -function bR(e) { +function h$(e) { return typeof e == "function"; } -var yR = process.env.NODE_ENV !== "production"; +var m$ = process.env.NODE_ENV !== "production"; process.env.NODE_ENV; -function VV(e) { +function MV(e) { return "current" in e; } -function xR(e, ...t) { - return bR(e) ? e(...t) : e; +function v$(e, ...t) { + return h$(e) ? e(...t) : e; } -function LV(...e) { +function IV(...e) { return function(r) { e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented)); }; } -function SR(e) { +function g$(e) { let t; return function(...n) { return e && (t = e.apply(this, n), e = null), t; }; } -var WV = () => { -}, UV = /* @__PURE__ */ SR((e) => () => { +var FV = () => { +}, NV = /* @__PURE__ */ g$((e) => () => { const { condition: t, message: r } = e; - t && yR && console.warn(r); -}), HV = (...e) => (t) => e.reduce((r, n) => n(r), t), Gl = (e, t) => Math.abs(e - t), Pp = (e) => "x" in e && "y" in e; -function YV(e, t) { - if (Ep(e) && Ep(t)) - return Gl(e, t); - if (Pp(e) && Pp(t)) { - const r = Gl(e.x, t.x), n = Gl(e.y, t.y); + t && m$ && console.warn(r); +}), jV = (...e) => (t) => e.reduce((r, n) => n(r), t), Yl = (e, t) => Math.abs(e - t), Ep = (e) => "x" in e && "y" in e; +function BV(e, t) { + if (kp(e) && kp(t)) + return Yl(e, t); + if (Ep(e) && Ep(t)) { + const r = Yl(e.x, t.x), n = Yl(e.y, t.y); return Math.sqrt(r ** 2 + n ** 2); } return 0; } -const Lv = 1 / 60 * 1e3, wR = typeof performance < "u" ? () => performance.now() : () => Date.now(), Wv = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(wR()), Lv); -function CR(e) { +const Bv = 1 / 60 * 1e3, b$ = typeof performance < "u" ? () => performance.now() : () => Date.now(), zv = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(b$()), Bv); +function y$(e) { let t = [], r = [], n = 0, o = !1, a = !1; const i = /* @__PURE__ */ new WeakSet(), s = { schedule: (l, c = !1, u = !1) => { @@ -11256,9 +11495,9 @@ function CR(e) { }; return s; } -const _R = 40; -let Yc = !0, za = !1, qc = !1; -const yo = { +const x$ = 40; +let Hc = !0, Va = !1, Yc = !1; +const xo = { delta: 0, timestamp: 0 }, ti = [ @@ -11267,17 +11506,17 @@ const yo = { "preRender", "render", "postRender" -], Gs = ti.reduce((e, t) => (e[t] = CR(() => za = !0), e), {}), kR = ti.reduce((e, t) => { - const r = Gs[t]; - return e[t] = (n, o = !1, a = !1) => (za || TR(), r.schedule(n, o, a)), e; -}, {}), ER = ti.reduce((e, t) => (e[t] = Gs[t].cancel, e), {}); -ti.reduce((e, t) => (e[t] = () => Gs[t].process(yo), e), {}); -const PR = (e) => Gs[e].process(yo), Uv = (e) => { - za = !1, yo.delta = Yc ? Lv : Math.max(Math.min(e - yo.timestamp, _R), 1), yo.timestamp = e, qc = !0, ti.forEach(PR), qc = !1, za && (Yc = !1, Wv(Uv)); -}, TR = () => { - za = !0, Yc = !0, qc || Wv(Uv); -}, Tp = () => yo; -var AR = typeof Element < "u", OR = typeof Map == "function", $R = typeof Set == "function", RR = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView; +], qs = ti.reduce((e, t) => (e[t] = y$(() => Va = !0), e), {}), S$ = ti.reduce((e, t) => { + const r = qs[t]; + return e[t] = (n, o = !1, a = !1) => (Va || _$(), r.schedule(n, o, a)), e; +}, {}), w$ = ti.reduce((e, t) => (e[t] = qs[t].cancel, e), {}); +ti.reduce((e, t) => (e[t] = () => qs[t].process(xo), e), {}); +const C$ = (e) => qs[e].process(xo), Vv = (e) => { + Va = !1, xo.delta = Hc ? Bv : Math.max(Math.min(e - xo.timestamp, x$), 1), xo.timestamp = e, Yc = !0, ti.forEach(C$), Yc = !1, Va && (Hc = !1, zv(Vv)); +}, _$ = () => { + Va = !0, Hc = !0, Yc || zv(Vv); +}, Pp = () => xo; +var k$ = typeof Element < "u", E$ = typeof Map == "function", P$ = typeof Set == "function", T$ = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView; function Ji(e, t) { if (e === t) return !0; @@ -11294,7 +11533,7 @@ function Ji(e, t) { return !0; } var a; - if (OR && e instanceof Map && t instanceof Map) { + if (E$ && e instanceof Map && t instanceof Map) { if (e.size !== t.size) return !1; for (a = e.entries(); !(n = a.next()).done; ) @@ -11305,7 +11544,7 @@ function Ji(e, t) { return !1; return !0; } - if ($R && e instanceof Set && t instanceof Set) { + if (P$ && e instanceof Set && t instanceof Set) { if (e.size !== t.size) return !1; for (a = e.entries(); !(n = a.next()).done; ) @@ -11313,7 +11552,7 @@ function Ji(e, t) { return !1; return !0; } - if (RR && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) { + if (T$ && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) { if (r = e.length, r != t.length) return !1; for (n = r; n-- !== 0; ) @@ -11332,7 +11571,7 @@ function Ji(e, t) { for (n = r; n-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(t, o[n])) return !1; - if (AR && e instanceof Element) + if (k$ && e instanceof Element) return !1; for (n = r; n-- !== 0; ) if (!((o[n] === "_owner" || o[n] === "__v" || o[n] === "__o") && e.$$typeof) && !Ji(e[o[n]], t[o[n]])) @@ -11341,7 +11580,7 @@ function Ji(e, t) { } return e !== e && t !== t; } -var DR = function(t, r) { +var A$ = function(t, r) { try { return Ji(t, r); } catch (n) { @@ -11350,36 +11589,36 @@ var DR = function(t, r) { throw n; } }; -const MR = /* @__PURE__ */ Is(DR); -function Zu(e, t = {}) { +const O$ = /* @__PURE__ */ Ms(A$); +function Xu(e, t = {}) { var r; - const { styleConfig: n, ...o } = t, { theme: a, colorMode: i } = dv(), s = e ? gR(a, `components.${e}`) : void 0, l = n || s, c = sr( + const { styleConfig: n, ...o } = t, { theme: a, colorMode: i } = cv(), s = e ? p$(a, `components.${e}`) : void 0, l = n || s, c = sr( { theme: a, colorMode: i }, (r = l == null ? void 0 : l.defaultProps) != null ? r : {}, - Vv(hR(o, ["children"])) + jv(u$(o, ["children"])) ), u = be({}); if (l) { - const f = qk(l)(c); - MR(u.current, f) || (u.current = f); + const f = Lk(l)(c); + O$(u.current, f) || (u.current = f); } return u.current; } -function No(e, t = {}) { - return Zu(e, t); -} function jo(e, t = {}) { - return Zu(e, t); + return Xu(e, t); } -function qV(e, t) { +function Bo(e, t = {}) { + return Xu(e, t); +} +function zV(e, t) { var r; - const { baseConfig: n, ...o } = t, { theme: a } = dv(), i = (r = a.components) == null ? void 0 : r[e], s = i ? jv(i, n) : n; - return Zu(null, { + const { baseConfig: n, ...o } = t, { theme: a } = cv(), i = (r = a.components) == null ? void 0 : r[e], s = i ? Iv(i, n) : n; + return Xu(null, { ...o, styleConfig: s }); } -var IR = /* @__PURE__ */ new Set([ - ...Mk, +var R$ = /* @__PURE__ */ new Set([ + ...Ak, "textStyle", "layerStyle", "apply", @@ -11390,16 +11629,16 @@ var IR = /* @__PURE__ */ new Set([ "__css", "css", "sx" -]), FR = /* @__PURE__ */ new Set([ +]), $$ = /* @__PURE__ */ new Set([ "htmlWidth", "htmlHeight", "htmlSize", "htmlTranslate" ]); -function NR(e) { - return FR.has(e) || !IR.has(e); +function D$(e) { + return $$.has(e) || !R$.has(e); } -function jR(e, ...t) { +function M$(e, ...t) { if (e == null) throw new TypeError("Cannot convert undefined or null to object"); const r = { ...e }; @@ -11409,19 +11648,19 @@ function jR(e, ...t) { Object.prototype.hasOwnProperty.call(n, o) && (o in r && delete r[o], r[o] = n[o]); return r; } -var BR = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, zR = /* @__PURE__ */ tv( +var I$ = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, F$ = /* @__PURE__ */ Qm( function(e) { - return BR.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; + return I$.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ -), VR = zR, LR = function(t) { +), N$ = F$, j$ = function(t) { return t !== "theme"; -}, Ap = function(t) { +}, Tp = function(t) { return typeof t == "string" && // 96 is one less than the char code // for "a" so this is checking that // it's a lowercase character - t.charCodeAt(0) > 96 ? VR : LR; -}, Op = function(t, r, n) { + t.charCodeAt(0) > 96 ? N$ : j$; +}, Ap = function(t, r, n) { var o; if (r) { var a = r.shouldForwardProp; @@ -11430,46 +11669,46 @@ var BR = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def } : a; } return typeof o != "function" && n && (o = t.__emotion_forwardProp), o; -}, $p = `You have illegal escape sequence in your template literal, most likely inside content's property value. +}, Op = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, WR = function(t) { +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, B$ = function(t) { var r = t.cache, n = t.serialized, o = t.isStringTag; - return Vs(r, n, o), ju(function() { - return Ls(r, n, o); + return zs(r, n, o), Fu(function() { + return Vs(r, n, o); }), null; -}, UR = function e(t, r) { +}, z$ = function e(t, r) { if (process.env.NODE_ENV !== "production" && t === void 0) throw new Error(`You are trying to create a styled element with an undefined component. You may have forgotten to import it.`); var n = t.__emotion_real === t, o = n && t.__emotion_base || t, a, i; r !== void 0 && (a = r.label, i = r.target); - var s = Op(t, r, n), l = s || Ap(o), c = !l("as"); + var s = Ap(t, r, n), l = s || Tp(o), c = !l("as"); return function() { var u = arguments, d = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : []; if (a !== void 0 && d.push("label:" + a + ";"), u[0] == null || u[0].raw === void 0) d.push.apply(d, u); else { - process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error($p), d.push(u[0][0]); + process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(Op), d.push(u[0][0]); for (var f = u.length, p = 1; p < f; p++) - process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error($p), d.push(u[p], u[0][p]); + process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(Op), d.push(u[p], u[0][p]); } - var m = Ws(function(h, v, b) { - var y = c && h.as || o, S = "", k = [], w = h; + var m = Ls(function(h, v, b) { + var y = c && h.as || o, S = "", _ = [], w = h; if (h.theme == null) { w = {}; for (var M in h) w[M] = h[M]; - w.theme = U.useContext(bn); + w.theme = U.useContext(yn); } - typeof h.className == "string" ? S = Fu(v.registered, k, h.className) : h.className != null && (S = h.className + " "); - var P = Po(d.concat(k), v.registered, w); + typeof h.className == "string" ? S = Mu(v.registered, _, h.className) : h.className != null && (S = h.className + " "); + var P = To(d.concat(_), v.registered, w); S += v.key + "-" + P.name, i !== void 0 && (S += " " + i); - var I = c && s === void 0 ? Ap(y) : l, z = {}; + var I = c && s === void 0 ? Tp(y) : l, z = {}; for (var j in h) c && j === "as" || // $FlowFixMe I(j) && (z[j] = h[j]); - return z.className = S, z.ref = b, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(WR, { + return z.className = S, z.ref = b, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(B$, { cache: v, serialized: P, isStringTag: typeof y == "string" @@ -11480,12 +11719,12 @@ You may have forgotten to import it.`); return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i; } }), m.withComponent = function(h, v) { - return e(h, cs({}, r, v, { - shouldForwardProp: Op(m, v, !0) + return e(h, Wn({}, r, v, { + shouldForwardProp: Ap(m, v, !0) })).apply(void 0, d); }, m; }; -}, HR = [ +}, V$ = [ "a", "abbr", "address", @@ -11621,29 +11860,29 @@ You may have forgotten to import it.`); "svg", "text", "tspan" -], gs = UR.bind(); -HR.forEach(function(e) { - gs[e] = gs(e); +], vs = z$.bind(); +V$.forEach(function(e) { + vs[e] = vs(e); }); -var Rp, YR = (Rp = gs.default) != null ? Rp : gs, qR = ({ baseStyle: e }) => (t) => { - const { theme: r, css: n, __css: o, sx: a, ...i } = t, s = zv(i, (d, f) => Fk(f)), l = xR(e, t), c = jR( +var Rp, L$ = (Rp = vs.default) != null ? Rp : vs, W$ = ({ baseStyle: e }) => (t) => { + const { theme: r, css: n, __css: o, sx: a, ...i } = t, s = Nv(i, (d, f) => Rk(f)), l = v$(e, t), c = M$( {}, o, l, - Vv(s), + jv(s), a - ), u = Wk(c)(t.theme); + ), u = jk(c)(t.theme); return n ? [u, n] : u; }; -function Xl(e, t) { +function ql(e, t) { const { baseStyle: r, ...n } = t ?? {}; - n.shouldForwardProp || (n.shouldForwardProp = NR); - const o = qR({ baseStyle: r }), a = YR( + n.shouldForwardProp || (n.shouldForwardProp = D$); + const o = W$({ baseStyle: r }), a = L$( e, n )(o); return It.forwardRef(function(l, c) { - const { colorMode: u, forced: d } = Lu(); + const { colorMode: u, forced: d } = zu(); return It.createElement(a, { ref: c, "data-theme": d ? u : void 0, @@ -11651,31 +11890,31 @@ function Xl(e, t) { }); }); } -function GR() { +function U$() { const e = /* @__PURE__ */ new Map(); - return new Proxy(Xl, { + return new Proxy(ql, { /** * @example * const Div = chakra("div") * const WithChakra = chakra(AnotherComponent) */ apply(t, r, n) { - return Xl(...n); + return ql(...n); }, /** * @example * */ get(t, r) { - return e.has(r) || e.set(r, Xl(r)), e.get(r); + return e.has(r) || e.set(r, ql(r)), e.get(r); } }); } -var ge = GR(); +var ge = U$(); function _e(e) { return At(e); } -var Ju = Cr({ +var Ku = Cr({ getDocument() { return document; }, @@ -11683,14 +11922,14 @@ var Ju = Cr({ return window; } }); -Ju.displayName = "EnvironmentContext"; -function XR({ defer: e } = {}) { - const [, t] = _0((r) => r + 1, 0); - return Ia(() => { +Ku.displayName = "EnvironmentContext"; +function H$({ defer: e } = {}) { + const [, t] = S0((r) => r + 1, 0); + return Fa(() => { e && t(); - }, [e]), ft(Ju); + }, [e]), ft(Ku); } -function KR(e) { +function Y$(e) { const { children: t, environment: r, disabled: n } = e, o = be(null), a = gt(() => r || { getDocument: () => { var s, l; @@ -11701,12 +11940,12 @@ function KR(e) { return (l = (s = o.current) == null ? void 0 : s.ownerDocument.defaultView) != null ? l : window; } }, [r]), i = !n || !r; - return /* @__PURE__ */ L.jsxs(Ju.Provider, { value: a, children: [ + return /* @__PURE__ */ L.jsxs(Ku.Provider, { value: a, children: [ t, i && /* @__PURE__ */ L.jsx("span", { id: "__chakra_env", hidden: !0, ref: o }) ] }); } -KR.displayName = "EnvironmentProvider"; +Y$.displayName = "EnvironmentProvider"; function Jt(e, t = []) { const r = be(e); return Fe(() => { @@ -11716,7 +11955,7 @@ function Jt(e, t = []) { return (o = r.current) == null ? void 0 : o.call(r, ...n); }, t); } -function Bo(e, t) { +function zo(e, t) { const r = be(!1), n = be(!1); Fe(() => { if (r.current && n.current) @@ -11726,13 +11965,13 @@ function Bo(e, t) { r.current = !1; }), []); } -const Hv = Cr({ +const Lv = Cr({ transformPagePoint: (e) => e, isStatic: !1, reducedMotion: "never" -}), Xs = Cr({}), ri = Cr(null), Ks = typeof document < "u", bs = Ks ? Ds : Fe, Yv = Cr({ strict: !1 }); -function ZR(e, t, r, n) { - const { visualElement: o } = ft(Xs), a = ft(Yv), i = ft(ri), s = ft(Hv).reducedMotion, l = be(); +}), Gs = Cr({}), ri = Cr(null), Xs = typeof document < "u", gs = Xs ? $s : Fe, Wv = Cr({ strict: !1 }); +function q$(e, t, r, n) { + const { visualElement: o } = ft(Gs), a = ft(Wv), i = ft(ri), s = ft(Lv).reducedMotion, l = be(); n = n || a.renderer, !l.current && n && (l.current = n(e, { visualState: t, parent: o, @@ -11742,23 +11981,23 @@ function ZR(e, t, r, n) { reducedMotionConfig: s })); const c = l.current; - return ym(() => { + return bm(() => { c && c.update(r, i); - }), bs(() => { + }), gs(() => { c && c.render(); }), Fe(() => { c && c.updateFeatures(); - }), (window.HandoffAppearAnimations ? bs : Fe)(() => { + }), (window.HandoffAppearAnimations ? gs : Fe)(() => { c && c.animationState && c.animationState.animateChanges(); }), c; } -function lo(e) { +function co(e) { return typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current"); } -function JR(e, t, r) { +function G$(e, t, r) { return q( (n) => { - n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : lo(r) && (r.current = n)); + n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : co(r) && (r.current = n)); }, /** * Only pass a new ref callback to React if we've received a visual element @@ -11768,13 +12007,13 @@ function JR(e, t, r) { [t] ); } -function Va(e) { +function La(e) { return typeof e == "string" || Array.isArray(e); } -function Zs(e) { +function Ks(e) { return typeof e == "object" && typeof e.start == "function"; } -const Qu = [ +const Zu = [ "animate", "whileInView", "whileFocus", @@ -11782,31 +12021,31 @@ const Qu = [ "whileTap", "whileDrag", "exit" -], ed = ["initial", ...Qu]; -function Js(e) { - return Zs(e.animate) || ed.some((t) => Va(e[t])); +], Ju = ["initial", ...Zu]; +function Zs(e) { + return Ks(e.animate) || Ju.some((t) => La(e[t])); } -function qv(e) { - return !!(Js(e) || e.variants); +function Uv(e) { + return !!(Zs(e) || e.variants); } -function QR(e, t) { - if (Js(e)) { +function X$(e, t) { + if (Zs(e)) { const { initial: r, animate: n } = e; return { - initial: r === !1 || Va(r) ? r : void 0, - animate: Va(n) ? n : void 0 + initial: r === !1 || La(r) ? r : void 0, + animate: La(n) ? n : void 0 }; } return e.inherit !== !1 ? t : {}; } -function e2(e) { - const { initial: t, animate: r } = QR(e, ft(Xs)); - return gt(() => ({ initial: t, animate: r }), [Dp(t), Dp(r)]); +function K$(e) { + const { initial: t, animate: r } = X$(e, ft(Gs)); + return gt(() => ({ initial: t, animate: r }), [$p(t), $p(r)]); } -function Dp(e) { +function $p(e) { return Array.isArray(e) ? e.join(" ") : e; } -const Mp = { +const Dp = { animation: [ "animate", "variants", @@ -11825,31 +12064,31 @@ const Mp = { pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"], inView: ["whileInView", "onViewportEnter", "onViewportLeave"], layout: ["layout", "layoutId"] -}, La = {}; -for (const e in Mp) - La[e] = { - isEnabled: (t) => Mp[e].some((r) => !!t[r]) +}, Wa = {}; +for (const e in Dp) + Wa[e] = { + isEnabled: (t) => Dp[e].some((r) => !!t[r]) }; -function t2(e) { +function Z$(e) { for (const t in e) - La[t] = { - ...La[t], + Wa[t] = { + ...Wa[t], ...e[t] }; } -const td = Cr({}), Gv = Cr({}), r2 = Symbol.for("motionComponentSymbol"); -function n2({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: o }) { - e && t2(e); +const Qu = Cr({}), Hv = Cr({}), J$ = Symbol.for("motionComponentSymbol"); +function Q$({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: o }) { + e && Z$(e); function a(s, l) { let c; const u = { - ...ft(Hv), + ...ft(Lv), ...s, - layoutId: o2(s) - }, { isStatic: d } = u, f = e2(s), p = n(s, d); - if (!d && Ks) { - f.visualElement = ZR(o, p, u, t); - const m = ft(Gv), h = ft(Yv).strict; + layoutId: e2(s) + }, { isStatic: d } = u, f = K$(s), p = n(s, d); + if (!d && Xs) { + f.visualElement = q$(o, p, u, t); + const m = ft(Hv), h = ft(Wv).strict; f.visualElement && (c = f.visualElement.loadFeatures( // Note: Pass the full new combined props to correctly re-render dynamic feature components. u, @@ -11859,22 +12098,22 @@ function n2({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVis )); } return U.createElement( - Xs.Provider, + Gs.Provider, { value: f }, c && f.visualElement ? U.createElement(c, { visualElement: f.visualElement, ...u }) : null, - r(o, s, JR(p, f.visualElement, l), p, d, f.visualElement) + r(o, s, G$(p, f.visualElement, l), p, d, f.visualElement) ); } const i = At(a); - return i[r2] = o, i; + return i[J$] = o, i; } -function o2({ layoutId: e }) { - const t = ft(td).id; +function e2({ layoutId: e }) { + const t = ft(Qu).id; return t && e !== void 0 ? t + "-" + e : e; } -function a2(e) { +function t2(e) { function t(n, o = {}) { - return n2(e(n, o)); + return Q$(e(n, o)); } if (typeof Proxy > "u") return t; @@ -11888,7 +12127,7 @@ function a2(e) { get: (n, o) => (r.has(o) || r.set(o, t(o)), r.get(o)) }); } -const i2 = [ +const r2 = [ "animate", "circle", "defs", @@ -11915,7 +12154,7 @@ const i2 = [ "use", "view" ]; -function rd(e) { +function ed(e) { return ( /** * If it's not a string, it's a custom React component. Currently we only support @@ -11928,16 +12167,16 @@ function rd(e) { /** * If it's in our list of lowercase SVG tags, it's an SVG component */ - !!(i2.indexOf(e) > -1 || /** + !!(r2.indexOf(e) > -1 || /** * If it contains a capital letter, it's an SVG component */ /[A-Z]/.test(e)) ) ); } -const ys = {}; -function s2(e) { - Object.assign(ys, e); +const bs = {}; +function n2(e) { + Object.assign(bs, e); } const ni = [ "transformPerspective", @@ -11957,38 +12196,38 @@ const ni = [ "skew", "skewX", "skewY" -], Hn = new Set(ni); -function Xv(e, { layout: t, layoutId: r }) { - return Hn.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!ys[e] || e === "opacity"); +], qn = new Set(ni); +function Yv(e, { layout: t, layoutId: r }) { + return qn.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!bs[e] || e === "opacity"); } -const Yt = (e) => !!(e && e.getVelocity), l2 = { +const Yt = (e) => !!(e && e.getVelocity), o2 = { x: "translateX", y: "translateY", z: "translateZ", transformPerspective: "perspective" -}, c2 = ni.length; -function u2(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, o) { +}, a2 = ni.length; +function i2(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, o) { let a = ""; - for (let i = 0; i < c2; i++) { + for (let i = 0; i < a2; i++) { const s = ni[i]; if (e[s] !== void 0) { - const l = l2[s] || s; + const l = o2[s] || s; a += `${l}(${e[s]}) `; } } return t && !e.z && (a += "translateZ(0)"), a = a.trim(), o ? a = o(e, n ? "" : a) : r && n && (a = "none"), a; } -const Kv = (e) => (t) => typeof t == "string" && t.startsWith(e), Zv = Kv("--"), Gc = Kv("var(--"), d2 = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, f2 = (e, t) => t && typeof e == "number" ? t.transform(e) : e, yn = (e, t, r) => Math.min(Math.max(r, e), t), Yn = { +const qv = (e) => (t) => typeof t == "string" && t.startsWith(e), Gv = qv("--"), qc = qv("var(--"), s2 = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, l2 = (e, t) => t && typeof e == "number" ? t.transform(e) : e, xn = (e, t, r) => Math.min(Math.max(r, e), t), Gn = { test: (e) => typeof e == "number", parse: parseFloat, transform: (e) => e -}, ga = { - ...Yn, - transform: (e) => yn(0, 1, e) +}, ya = { + ...Gn, + transform: (e) => xn(0, 1, e) }, Ai = { - ...Yn, + ...Gn, default: 1 -}, ba = (e) => Math.round(e * 1e5) / 1e5, Qs = /(-)?([\d]*\.?[\d])+/g, Jv = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, p2 = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i; +}, xa = (e) => Math.round(e * 1e5) / 1e5, Js = /(-)?([\d]*\.?[\d])+/g, Xv = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, c2 = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i; function oi(e) { return typeof e == "string"; } @@ -11996,14 +12235,14 @@ const ai = (e) => ({ test: (t) => oi(t) && t.endsWith(e) && t.split(" ").length === 1, parse: parseFloat, transform: (t) => `${t}${e}` -}), dn = ai("deg"), Ir = ai("%"), pe = ai("px"), h2 = ai("vh"), m2 = ai("vw"), Ip = { - ...Ir, - parse: (e) => Ir.parse(e) / 100, - transform: (e) => Ir.transform(e * 100) -}, Fp = { - ...Yn, +}), fn = ai("deg"), Fr = ai("%"), pe = ai("px"), u2 = ai("vh"), d2 = ai("vw"), Mp = { + ...Fr, + parse: (e) => Fr.parse(e) / 100, + transform: (e) => Fr.transform(e * 100) +}, Ip = { + ...Gn, transform: Math.round -}, Qv = { +}, Kv = { // Border props borderWidth: pe, borderTopWidth: pe, @@ -12038,17 +12277,17 @@ const ai = (e) => ({ marginBottom: pe, marginLeft: pe, // Transform props - rotate: dn, - rotateX: dn, - rotateY: dn, - rotateZ: dn, + rotate: fn, + rotateX: fn, + rotateY: fn, + rotateZ: fn, scale: Ai, scaleX: Ai, scaleY: Ai, scaleZ: Ai, - skew: dn, - skewX: dn, - skewY: dn, + skew: fn, + skewX: fn, + skewY: fn, distance: pe, translateX: pe, translateY: pe, @@ -12058,64 +12297,64 @@ const ai = (e) => ({ z: pe, perspective: pe, transformPerspective: pe, - opacity: ga, - originX: Ip, - originY: Ip, + opacity: ya, + originX: Mp, + originY: Mp, originZ: pe, // Misc - zIndex: Fp, + zIndex: Ip, // SVG - fillOpacity: ga, - strokeOpacity: ga, - numOctaves: Fp + fillOpacity: ya, + strokeOpacity: ya, + numOctaves: Ip }; -function nd(e, t, r, n) { +function td(e, t, r, n) { const { style: o, vars: a, transform: i, transformOrigin: s } = e; let l = !1, c = !1, u = !0; for (const d in t) { const f = t[d]; - if (Zv(d)) { + if (Gv(d)) { a[d] = f; continue; } - const p = Qv[d], m = f2(f, p); - if (Hn.has(d)) { + const p = Kv[d], m = l2(f, p); + if (qn.has(d)) { if (l = !0, i[d] = m, !u) continue; f !== (p.default || 0) && (u = !1); } else d.startsWith("origin") ? (c = !0, s[d] = m) : o[d] = m; } - if (t.transform || (l || n ? o.transform = u2(e.transform, r, u, n) : o.transform && (o.transform = "none")), c) { + if (t.transform || (l || n ? o.transform = i2(e.transform, r, u, n) : o.transform && (o.transform = "none")), c) { const { originX: d = "50%", originY: f = "50%", originZ: p = 0 } = s; o.transformOrigin = `${d} ${f} ${p}`; } } -const od = () => ({ +const rd = () => ({ style: {}, transform: {}, transformOrigin: {}, vars: {} }); -function eg(e, t, r) { +function Zv(e, t, r) { for (const n in t) - !Yt(t[n]) && !Xv(n, r) && (e[n] = t[n]); + !Yt(t[n]) && !Yv(n, r) && (e[n] = t[n]); } -function v2({ transformTemplate: e }, t, r) { +function f2({ transformTemplate: e }, t, r) { return gt(() => { - const n = od(); - return nd(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style); + const n = rd(); + return td(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style); }, [t]); } -function g2(e, t, r) { +function p2(e, t, r) { const n = e.style || {}, o = {}; - return eg(o, n, e), Object.assign(o, v2(e, t, r)), e.transformValues ? e.transformValues(o) : o; + return Zv(o, n, e), Object.assign(o, f2(e, t, r)), e.transformValues ? e.transformValues(o) : o; } -function b2(e, t, r) { - const n = {}, o = g2(e, t, r); +function h2(e, t, r) { + const n = {}, o = p2(e, t, r); return e.drag && e.dragListener !== !1 && (n.draggable = !1, o.userSelect = o.WebkitUserSelect = o.WebkitTouchCallout = "none", o.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = o, n; } -const y2 = /* @__PURE__ */ new Set([ +const m2 = /* @__PURE__ */ new Set([ "animate", "exit", "variants", @@ -12150,46 +12389,46 @@ const y2 = /* @__PURE__ */ new Set([ "ignoreStrict", "viewport" ]); -function xs(e) { - return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || y2.has(e); +function ys(e) { + return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || m2.has(e); } -let tg = (e) => !xs(e); -function x2(e) { - e && (tg = (t) => t.startsWith("on") ? !xs(t) : e(t)); +let Jv = (e) => !ys(e); +function v2(e) { + e && (Jv = (t) => t.startsWith("on") ? !ys(t) : e(t)); } try { - x2(require("@emotion/is-prop-valid").default); + v2(require("@emotion/is-prop-valid").default); } catch { } -function S2(e, t, r) { +function g2(e, t, r) { const n = {}; for (const o in e) - o === "values" && typeof e.values == "object" || (tg(o) || r === !0 && xs(o) || !t && !xs(o) || // If trying to use native HTML drag events, forward drag listeners + o === "values" && typeof e.values == "object" || (Jv(o) || r === !0 && ys(o) || !t && !ys(o) || // If trying to use native HTML drag events, forward drag listeners e.draggable && o.startsWith("onDrag")) && (n[o] = e[o]); return n; } -function Np(e, t, r) { +function Fp(e, t, r) { return typeof e == "string" ? e : pe.transform(t + r * e); } -function w2(e, t, r) { - const n = Np(t, e.x, e.width), o = Np(r, e.y, e.height); +function b2(e, t, r) { + const n = Fp(t, e.x, e.width), o = Fp(r, e.y, e.height); return `${n} ${o}`; } -const C2 = { +const y2 = { offset: "stroke-dashoffset", array: "stroke-dasharray" -}, _2 = { +}, x2 = { offset: "strokeDashoffset", array: "strokeDasharray" }; -function k2(e, t, r = 1, n = 0, o = !0) { +function S2(e, t, r = 1, n = 0, o = !0) { e.pathLength = 1; - const a = o ? C2 : _2; + const a = o ? y2 : x2; e[a.offset] = pe.transform(-n); const i = pe.transform(t), s = pe.transform(r); e[a.array] = `${i} ${s}`; } -function ad(e, { +function nd(e, { attrX: t, attrY: r, attrScale: n, @@ -12201,36 +12440,36 @@ function ad(e, { // This is object creation, which we try to avoid per-frame. ...c }, u, d, f) { - if (nd(e, c, u, f), d) { + if (td(e, c, u, f), d) { e.style.viewBox && (e.attrs.viewBox = e.style.viewBox); return; } e.attrs = e.style, e.style = {}; const { attrs: p, style: m, dimensions: h } = e; - p.transform && (h && (m.transform = p.transform), delete p.transform), h && (o !== void 0 || a !== void 0 || m.transform) && (m.transformOrigin = w2(h, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (p.x = t), r !== void 0 && (p.y = r), n !== void 0 && (p.scale = n), i !== void 0 && k2(p, i, s, l, !1); + p.transform && (h && (m.transform = p.transform), delete p.transform), h && (o !== void 0 || a !== void 0 || m.transform) && (m.transformOrigin = b2(h, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (p.x = t), r !== void 0 && (p.y = r), n !== void 0 && (p.scale = n), i !== void 0 && S2(p, i, s, l, !1); } -const rg = () => ({ - ...od(), +const Qv = () => ({ + ...rd(), attrs: {} -}), id = (e) => typeof e == "string" && e.toLowerCase() === "svg"; -function E2(e, t, r, n) { +}), od = (e) => typeof e == "string" && e.toLowerCase() === "svg"; +function w2(e, t, r, n) { const o = gt(() => { - const a = rg(); - return ad(a, t, { enableHardwareAcceleration: !1 }, id(n), e.transformTemplate), { + const a = Qv(); + return nd(a, t, { enableHardwareAcceleration: !1 }, od(n), e.transformTemplate), { ...a.attrs, style: { ...a.style } }; }, [t]); if (e.style) { const a = {}; - eg(a, e.style, e), o.style = { ...a, ...o.style }; + Zv(a, e.style, e), o.style = { ...a, ...o.style }; } return o; } -function P2(e = !1) { +function C2(e = !1) { return (r, n, o, { latestValues: a }, i) => { - const l = (rd(r) ? E2 : b2)(n, a, i, r), u = { - ...S2(n, typeof r == "string", e), + const l = (ed(r) ? w2 : h2)(n, a, i, r), u = { + ...g2(n, typeof r == "string", e), ...l, ref: o }, { children: d } = n, f = gt(() => Yt(d) ? d.get() : d, [d]); @@ -12240,13 +12479,13 @@ function P2(e = !1) { }); }; } -const sd = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); -function ng(e, { style: t, vars: r }, n, o) { +const ad = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); +function eg(e, { style: t, vars: r }, n, o) { Object.assign(e.style, t, o && o.getProjectionStyles(n)); for (const a in r) e.style.setProperty(a, r[a]); } -const og = /* @__PURE__ */ new Set([ +const tg = /* @__PURE__ */ new Set([ "baseFrequency", "diffuseConstant", "kernelMatrix", @@ -12271,19 +12510,19 @@ const og = /* @__PURE__ */ new Set([ "textLength", "lengthAdjust" ]); -function ag(e, t, r, n) { - ng(e, t, void 0, n); +function rg(e, t, r, n) { + eg(e, t, void 0, n); for (const o in t.attrs) - e.setAttribute(og.has(o) ? o : sd(o), t.attrs[o]); + e.setAttribute(tg.has(o) ? o : ad(o), t.attrs[o]); } -function ld(e, t) { +function id(e, t) { const { style: r } = e, n = {}; for (const o in r) - (Yt(r[o]) || t.style && Yt(t.style[o]) || Xv(o, e)) && (n[o] = r[o]); + (Yt(r[o]) || t.style && Yt(t.style[o]) || Yv(o, e)) && (n[o] = r[o]); return n; } -function ig(e, t) { - const r = ld(e, t); +function ng(e, t) { + const r = id(e, t); for (const n in e) if (Yt(e[n]) || Yt(t[n])) { const o = ni.indexOf(n) !== -1 ? "attr" + n.charAt(0).toUpperCase() + n.substring(1) : n; @@ -12291,49 +12530,49 @@ function ig(e, t) { } return r; } -function cd(e, t, r, n = {}, o = {}) { +function sd(e, t, r, n = {}, o = {}) { return typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, o)), typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, o)), t; } -function sg(e) { +function og(e) { const t = be(null); return t.current === null && (t.current = e()), t.current; } -const Ss = (e) => Array.isArray(e), T2 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), A2 = (e) => Ss(e) ? e[e.length - 1] || 0 : e; +const xs = (e) => Array.isArray(e), _2 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), k2 = (e) => xs(e) ? e[e.length - 1] || 0 : e; function Qi(e) { const t = Yt(e) ? e.get() : e; - return T2(t) ? t.toValue() : t; + return _2(t) ? t.toValue() : t; } -function O2({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, o, a) { +function E2({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, o, a) { const i = { - latestValues: $2(n, o, a, e), + latestValues: P2(n, o, a, e), renderState: t() }; return r && (i.mount = (s) => r(n, s, i)), i; } -const lg = (e) => (t, r) => { - const n = ft(Xs), o = ft(ri), a = () => O2(e, t, n, o); - return r ? a() : sg(a); +const ag = (e) => (t, r) => { + const n = ft(Gs), o = ft(ri), a = () => E2(e, t, n, o); + return r ? a() : og(a); }; -function $2(e, t, r, n) { +function P2(e, t, r, n) { const o = {}, a = n(e, {}); for (const f in a) o[f] = Qi(a[f]); let { initial: i, animate: s } = e; - const l = Js(e), c = qv(e); + const l = Zs(e), c = Uv(e); t && c && !l && e.inherit !== !1 && (i === void 0 && (i = t.initial), s === void 0 && (s = t.animate)); let u = r ? r.initial === !1 : !1; u = u || i === !1; const d = u ? s : i; - return d && typeof d != "boolean" && !Zs(d) && (Array.isArray(d) ? d : [d]).forEach((p) => { - const m = cd(e, p); + return d && typeof d != "boolean" && !Ks(d) && (Array.isArray(d) ? d : [d]).forEach((p) => { + const m = sd(e, p); if (!m) return; const { transitionEnd: h, transition: v, ...b } = m; for (const y in b) { let S = b[y]; if (Array.isArray(S)) { - const k = u ? S.length - 1 : 0; - S = S[k]; + const _ = u ? S.length - 1 : 0; + S = S[_]; } S !== null && (o[y] = S); } @@ -12341,10 +12580,10 @@ function $2(e, t, r, n) { o[y] = h[y]; }), o; } -const R2 = { - useVisualState: lg({ - scrapeMotionValuesFromProps: ig, - createRenderState: rg, +const T2 = { + useVisualState: ag({ + scrapeMotionValuesFromProps: ng, + createRenderState: Qv, onMount: (e, t, { renderState: r, latestValues: n }) => { try { r.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect(); @@ -12356,29 +12595,29 @@ const R2 = { height: 0 }; } - ad(r, n, { enableHardwareAcceleration: !1 }, id(t.tagName), e.transformTemplate), ag(t, r); + nd(r, n, { enableHardwareAcceleration: !1 }, od(t.tagName), e.transformTemplate), rg(t, r); } }) -}, D2 = { - useVisualState: lg({ - scrapeMotionValuesFromProps: ld, - createRenderState: od +}, A2 = { + useVisualState: ag({ + scrapeMotionValuesFromProps: id, + createRenderState: rd }) }; -function M2(e, { forwardMotionProps: t = !1 }, r, n) { +function O2(e, { forwardMotionProps: t = !1 }, r, n) { return { - ...rd(e) ? R2 : D2, + ...ed(e) ? T2 : A2, preloadedFeatures: r, - useRender: P2(t), + useRender: C2(t), createVisualElement: n, Component: e }; } -function Gr(e, t, r, n = { passive: !0 }) { +function Xr(e, t, r, n = { passive: !0 }) { return e.addEventListener(t, r, n), () => e.removeEventListener(t, r); } -const cg = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1; -function el(e, t = "page") { +const ig = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1; +function Qs(e, t = "page") { return { point: { x: e[t + "X"], @@ -12386,12 +12625,12 @@ function el(e, t = "page") { } }; } -const I2 = (e) => (t) => cg(t) && e(t, el(t)); -function Kr(e, t, r, n) { - return Gr(e, t, I2(r), n); +const R2 = (e) => (t) => ig(t) && e(t, Qs(t)); +function Zr(e, t, r, n) { + return Xr(e, t, R2(r), n); } -const F2 = (e, t) => (r) => t(e(r)), mn = (...e) => e.reduce(F2); -function ug(e) { +const $2 = (e, t) => (r) => t(e(r)), vn = (...e) => e.reduce($2); +function sg(e) { let t = null; return () => { const r = () => { @@ -12400,33 +12639,33 @@ function ug(e) { return t === null ? (t = e, r) : !1; }; } -const jp = ug("dragHorizontal"), Bp = ug("dragVertical"); -function dg(e) { +const Np = sg("dragHorizontal"), jp = sg("dragVertical"); +function lg(e) { let t = !1; if (e === "y") - t = Bp(); - else if (e === "x") t = jp(); + else if (e === "x") + t = Np(); else { - const r = jp(), n = Bp(); + const r = Np(), n = jp(); r && n ? t = () => { r(), n(); } : (r && r(), n && n()); } return t; } -function fg() { - const e = dg(!0); +function cg() { + const e = lg(!0); return e ? (e(), !1) : !0; } -class wn { +class Cn { constructor(t) { this.isMounted = !1, this.node = t; } update() { } } -function N2(e) { +function D2(e) { let t = [], r = [], n = 0, o = !1, a = !1; const i = /* @__PURE__ */ new WeakSet(), s = { /** @@ -12465,44 +12704,44 @@ const it = { delta: 0, timestamp: 0, isProcessing: !1 -}, j2 = 40; -let Xc = !0, Wa = !1; -const tl = [ +}, M2 = 40; +let Gc = !0, Ua = !1; +const el = [ "read", "update", "preRender", "render", "postRender" -], xo = tl.reduce((e, t) => (e[t] = N2(() => Wa = !0), e), {}), B2 = (e) => xo[e].process(it), pg = (e) => { - Wa = !1, it.delta = Xc ? 1e3 / 60 : Math.max(Math.min(e - it.timestamp, j2), 1), it.timestamp = e, it.isProcessing = !0, tl.forEach(B2), it.isProcessing = !1, Wa && (Xc = !1, requestAnimationFrame(pg)); -}, z2 = () => { - Wa = !0, Xc = !0, it.isProcessing || requestAnimationFrame(pg); -}, tt = tl.reduce((e, t) => { - const r = xo[t]; - return e[t] = (n, o = !1, a = !1) => (Wa || z2(), r.schedule(n, o, a)), e; +], So = el.reduce((e, t) => (e[t] = D2(() => Ua = !0), e), {}), I2 = (e) => So[e].process(it), ug = (e) => { + Ua = !1, it.delta = Gc ? 1e3 / 60 : Math.max(Math.min(e - it.timestamp, M2), 1), it.timestamp = e, it.isProcessing = !0, el.forEach(I2), it.isProcessing = !1, Ua && (Gc = !1, requestAnimationFrame(ug)); +}, F2 = () => { + Ua = !0, Gc = !0, it.isProcessing || requestAnimationFrame(ug); +}, tt = el.reduce((e, t) => { + const r = So[t]; + return e[t] = (n, o = !1, a = !1) => (Ua || F2(), r.schedule(n, o, a)), e; }, {}); -function rn(e) { - tl.forEach((t) => xo[t].cancel(e)); +function nn(e) { + el.forEach((t) => So[t].cancel(e)); } -function zp(e, t) { +function Bp(e, t) { const r = "pointer" + (t ? "enter" : "leave"), n = "onHover" + (t ? "Start" : "End"), o = (a, i) => { - if (a.type === "touch" || fg()) + if (a.type === "touch" || cg()) return; const s = e.getProps(); e.animationState && s.whileHover && e.animationState.setActive("whileHover", t), s[n] && tt.update(() => s[n](a, i)); }; - return Kr(e.current, r, o, { + return Zr(e.current, r, o, { passive: !e.getProps()[n] }); } -class V2 extends wn { +class N2 extends Cn { mount() { - this.unmount = mn(zp(this.node, !0), zp(this.node, !1)); + this.unmount = vn(Bp(this.node, !0), Bp(this.node, !1)); } unmount() { } } -class L2 extends wn { +class j2 extends Cn { constructor() { super(...arguments), this.isActive = !1; } @@ -12519,49 +12758,49 @@ class L2 extends wn { !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1); } mount() { - this.unmount = mn(Gr(this.node.current, "focus", () => this.onFocus()), Gr(this.node.current, "blur", () => this.onBlur())); + this.unmount = vn(Xr(this.node.current, "focus", () => this.onFocus()), Xr(this.node.current, "blur", () => this.onBlur())); } unmount() { } } -const hg = (e, t) => t ? e === t ? !0 : hg(e, t.parentElement) : !1, bt = (e) => e; -function Kl(e, t) { +const dg = (e, t) => t ? e === t ? !0 : dg(e, t.parentElement) : !1, bt = (e) => e; +function Gl(e, t) { if (!t) return; const r = new PointerEvent("pointer" + e); - t(r, el(r)); + t(r, Qs(r)); } -class W2 extends wn { +class B2 extends Cn { constructor() { super(...arguments), this.removeStartListeners = bt, this.removeEndListeners = bt, this.removeAccessibleListeners = bt, this.startPointerPress = (t, r) => { if (this.removeEndListeners(), this.isPressing) return; - const n = this.node.getProps(), a = Kr(window, "pointerup", (s, l) => { + const n = this.node.getProps(), a = Zr(window, "pointerup", (s, l) => { if (!this.checkPressEnd()) return; const { onTap: c, onTapCancel: u } = this.node.getProps(); tt.update(() => { - hg(this.node.current, s.target) ? c && c(s, l) : u && u(s, l); + dg(this.node.current, s.target) ? c && c(s, l) : u && u(s, l); }); - }, { passive: !(n.onTap || n.onPointerUp) }), i = Kr(window, "pointercancel", (s, l) => this.cancelPress(s, l), { passive: !(n.onTapCancel || n.onPointerCancel) }); - this.removeEndListeners = mn(a, i), this.startPress(t, r); + }, { passive: !(n.onTap || n.onPointerUp) }), i = Zr(window, "pointercancel", (s, l) => this.cancelPress(s, l), { passive: !(n.onTapCancel || n.onPointerCancel) }); + this.removeEndListeners = vn(a, i), this.startPress(t, r); }, this.startAccessiblePress = () => { const t = (a) => { if (a.key !== "Enter" || this.isPressing) return; const i = (s) => { - s.key !== "Enter" || !this.checkPressEnd() || Kl("up", (l, c) => { + s.key !== "Enter" || !this.checkPressEnd() || Gl("up", (l, c) => { const { onTap: u } = this.node.getProps(); u && tt.update(() => u(l, c)); }); }; - this.removeEndListeners(), this.removeEndListeners = Gr(this.node.current, "keyup", i), Kl("down", (s, l) => { + this.removeEndListeners(), this.removeEndListeners = Xr(this.node.current, "keyup", i), Gl("down", (s, l) => { this.startPress(s, l); }); - }, r = Gr(this.node.current, "keydown", t), n = () => { - this.isPressing && Kl("cancel", (a, i) => this.cancelPress(a, i)); - }, o = Gr(this.node.current, "blur", n); - this.removeAccessibleListeners = mn(r, o); + }, r = Xr(this.node.current, "keydown", t), n = () => { + this.isPressing && Gl("cancel", (a, i) => this.cancelPress(a, i)); + }, o = Xr(this.node.current, "blur", n); + this.removeAccessibleListeners = vn(r, o); }; } startPress(t, r) { @@ -12570,7 +12809,7 @@ class W2 extends wn { o && this.node.animationState && this.node.animationState.setActive("whileTap", !0), n && tt.update(() => n(t, r)); } checkPressEnd() { - return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !fg(); + return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !cg(); } cancelPress(t, r) { if (!this.checkPressEnd()) @@ -12579,36 +12818,36 @@ class W2 extends wn { n && tt.update(() => n(t, r)); } mount() { - const t = this.node.getProps(), r = Kr(this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), n = Gr(this.node.current, "focus", this.startAccessiblePress); - this.removeStartListeners = mn(r, n); + const t = this.node.getProps(), r = Zr(this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), n = Xr(this.node.current, "focus", this.startAccessiblePress); + this.removeStartListeners = vn(r, n); } unmount() { this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners(); } } -const Kc = /* @__PURE__ */ new WeakMap(), Zl = /* @__PURE__ */ new WeakMap(), U2 = (e) => { - const t = Kc.get(e.target); +const Xc = /* @__PURE__ */ new WeakMap(), Xl = /* @__PURE__ */ new WeakMap(), z2 = (e) => { + const t = Xc.get(e.target); t && t(e); -}, H2 = (e) => { - e.forEach(U2); +}, V2 = (e) => { + e.forEach(z2); }; -function Y2({ root: e, ...t }) { +function L2({ root: e, ...t }) { const r = e || document; - Zl.has(r) || Zl.set(r, {}); - const n = Zl.get(r), o = JSON.stringify(t); - return n[o] || (n[o] = new IntersectionObserver(H2, { root: e, ...t })), n[o]; -} -function q2(e, t, r) { - const n = Y2(t); - return Kc.set(e, r), n.observe(e), () => { - Kc.delete(e), n.unobserve(e); + Xl.has(r) || Xl.set(r, {}); + const n = Xl.get(r), o = JSON.stringify(t); + return n[o] || (n[o] = new IntersectionObserver(V2, { root: e, ...t })), n[o]; +} +function W2(e, t, r) { + const n = L2(t); + return Xc.set(e, r), n.observe(e), () => { + Xc.delete(e), n.unobserve(e); }; } -const G2 = { +const U2 = { some: 0, all: 1 }; -class X2 extends wn { +class H2 extends Cn { constructor() { super(...arguments), this.hasEnteredView = !1, this.isInView = !1; } @@ -12617,7 +12856,7 @@ class X2 extends wn { const { viewport: t = {} } = this.node.getProps(), { root: r, margin: n, amount: o = "some", once: a } = t, i = { root: r ? r.current : void 0, rootMargin: n, - threshold: typeof o == "number" ? o : G2[o] + threshold: typeof o == "number" ? o : U2[o] }, s = (l) => { const { isIntersecting: c } = l; if (this.isInView === c || (this.isInView = c, a && !c && this.hasEnteredView)) @@ -12626,7 +12865,7 @@ class X2 extends wn { const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), f = c ? u : d; f && f(l); }; - return q2(this.node.current, i, s); + return W2(this.node.current, i, s); } mount() { this.startObserver(); @@ -12635,29 +12874,29 @@ class X2 extends wn { if (typeof IntersectionObserver > "u") return; const { props: t, prevProps: r } = this.node; - ["amount", "margin", "root"].some(K2(t, r)) && this.startObserver(); + ["amount", "margin", "root"].some(Y2(t, r)) && this.startObserver(); } unmount() { } } -function K2({ viewport: e = {} }, { viewport: t = {} } = {}) { +function Y2({ viewport: e = {} }, { viewport: t = {} } = {}) { return (r) => e[r] !== t[r]; } -const Z2 = { +const q2 = { inView: { - Feature: X2 + Feature: H2 }, tap: { - Feature: W2 + Feature: B2 }, focus: { - Feature: L2 + Feature: j2 }, hover: { - Feature: V2 + Feature: N2 } }; -function mg(e, t) { +function fg(e, t) { if (!Array.isArray(t)) return !1; const r = t.length; @@ -12668,19 +12907,19 @@ function mg(e, t) { return !1; return !0; } -function J2(e) { +function G2(e) { const t = {}; return e.values.forEach((r, n) => t[n] = r.get()), t; } -function Q2(e) { +function X2(e) { const t = {}; return e.values.forEach((r, n) => t[n] = r.getVelocity()), t; } -function rl(e, t, r) { +function tl(e, t, r) { const n = e.getProps(); - return cd(n, t, r !== void 0 ? r : n.custom, J2(e), Q2(e)); + return sd(n, t, r !== void 0 ? r : n.custom, G2(e), X2(e)); } -const eD = "framerAppearId", tD = "data-" + sd(eD); +const K2 = "framerAppearId", Z2 = "data-" + ad(K2); let ii = bt, wr = bt; process.env.NODE_ENV !== "production" && (ii = (e, t) => { !e && typeof console < "u" && console.warn(t); @@ -12688,31 +12927,31 @@ process.env.NODE_ENV !== "production" && (ii = (e, t) => { if (!e) throw new Error(t); }); -const vn = (e) => e * 1e3, Zr = (e) => e / 1e3, rD = { +const gn = (e) => e * 1e3, Jr = (e) => e / 1e3, J2 = { current: !1 -}, vg = (e) => Array.isArray(e) && typeof e[0] == "number"; -function gg(e) { - return !!(!e || typeof e == "string" && bg[e] || vg(e) || Array.isArray(e) && e.every(gg)); +}, pg = (e) => Array.isArray(e) && typeof e[0] == "number"; +function hg(e) { + return !!(!e || typeof e == "string" && mg[e] || pg(e) || Array.isArray(e) && e.every(hg)); } -const la = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, bg = { +const ca = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, mg = { linear: "linear", ease: "ease", easeIn: "ease-in", easeOut: "ease-out", easeInOut: "ease-in-out", - circIn: la([0, 0.65, 0.55, 1]), - circOut: la([0.55, 0, 1, 0.45]), - backIn: la([0.31, 0.01, 0.66, -0.59]), - backOut: la([0.33, 1.53, 0.69, 0.99]) + circIn: ca([0, 0.65, 0.55, 1]), + circOut: ca([0.55, 0, 1, 0.45]), + backIn: ca([0.31, 0.01, 0.66, -0.59]), + backOut: ca([0.33, 1.53, 0.69, 0.99]) }; -function yg(e) { +function vg(e) { if (e) - return vg(e) ? la(e) : Array.isArray(e) ? e.map(yg) : bg[e]; + return pg(e) ? ca(e) : Array.isArray(e) ? e.map(vg) : mg[e]; } -function nD(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i = "loop", ease: s, times: l } = {}) { +function Q2(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i = "loop", ease: s, times: l } = {}) { const c = { [t]: r }; l && (c.offset = l); - const u = yg(s); + const u = vg(s); return Array.isArray(u) && (c.easing = u), e.animate(c, { delay: n, duration: o, @@ -12722,68 +12961,68 @@ function nD(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i = direction: i === "reverse" ? "alternate" : "normal" }); } -const Vp = { +const zp = { waapi: () => Object.hasOwnProperty.call(Element.prototype, "animate") -}, Jl = {}, xg = {}; -for (const e in Vp) - xg[e] = () => (Jl[e] === void 0 && (Jl[e] = Vp[e]()), Jl[e]); -function oD(e, { repeat: t, repeatType: r = "loop" }) { +}, Kl = {}, gg = {}; +for (const e in zp) + gg[e] = () => (Kl[e] === void 0 && (Kl[e] = zp[e]()), Kl[e]); +function eD(e, { repeat: t, repeatType: r = "loop" }) { const n = t && r !== "loop" && t % 2 === 1 ? 0 : e.length - 1; return e[n]; } -const Sg = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, aD = 1e-7, iD = 12; -function sD(e, t, r, n, o) { +const bg = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, tD = 1e-7, rD = 12; +function nD(e, t, r, n, o) { let a, i, s = 0; do - i = t + (r - t) / 2, a = Sg(i, n, o) - e, a > 0 ? r = i : t = i; - while (Math.abs(a) > aD && ++s < iD); + i = t + (r - t) / 2, a = bg(i, n, o) - e, a > 0 ? r = i : t = i; + while (Math.abs(a) > tD && ++s < rD); return i; } function si(e, t, r, n) { if (e === t && r === n) return bt; - const o = (a) => sD(a, 0, 1, e, r); - return (a) => a === 0 || a === 1 ? a : Sg(o(a), t, n); + const o = (a) => nD(a, 0, 1, e, r); + return (a) => a === 0 || a === 1 ? a : bg(o(a), t, n); } -const lD = si(0.42, 0, 1, 1), cD = si(0, 0, 0.58, 1), wg = si(0.42, 0, 0.58, 1), uD = (e) => Array.isArray(e) && typeof e[0] != "number", Cg = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, _g = (e) => (t) => 1 - e(1 - t), kg = (e) => 1 - Math.sin(Math.acos(e)), ud = _g(kg), dD = Cg(ud), Eg = si(0.33, 1.53, 0.69, 0.99), dd = _g(Eg), fD = Cg(dd), pD = (e) => (e *= 2) < 1 ? 0.5 * dd(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Lp = { +const oD = si(0.42, 0, 1, 1), aD = si(0, 0, 0.58, 1), yg = si(0.42, 0, 0.58, 1), iD = (e) => Array.isArray(e) && typeof e[0] != "number", xg = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Sg = (e) => (t) => 1 - e(1 - t), wg = (e) => 1 - Math.sin(Math.acos(e)), ld = Sg(wg), sD = xg(ld), Cg = si(0.33, 1.53, 0.69, 0.99), cd = Sg(Cg), lD = xg(cd), cD = (e) => (e *= 2) < 1 ? 0.5 * cd(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Vp = { linear: bt, - easeIn: lD, - easeInOut: wg, - easeOut: cD, - circIn: kg, - circInOut: dD, - circOut: ud, - backIn: dd, - backInOut: fD, - backOut: Eg, - anticipate: pD -}, Wp = (e) => { + easeIn: oD, + easeInOut: yg, + easeOut: aD, + circIn: wg, + circInOut: sD, + circOut: ld, + backIn: cd, + backInOut: lD, + backOut: Cg, + anticipate: cD +}, Lp = (e) => { if (Array.isArray(e)) { wr(e.length === 4, "Cubic bezier arrays must contain four numerical values."); const [t, r, n, o] = e; return si(t, r, n, o); } else if (typeof e == "string") - return wr(Lp[e] !== void 0, `Invalid easing type '${e}'`), Lp[e]; + return wr(Vp[e] !== void 0, `Invalid easing type '${e}'`), Vp[e]; return e; -}, fd = (e, t) => (r) => !!(oi(r) && p2.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), Pg = (e, t, r) => (n) => { +}, ud = (e, t) => (r) => !!(oi(r) && c2.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), _g = (e, t, r) => (n) => { if (!oi(n)) return n; - const [o, a, i, s] = n.match(Qs); + const [o, a, i, s] = n.match(Js); return { [e]: parseFloat(o), [t]: parseFloat(a), [r]: parseFloat(i), alpha: s !== void 0 ? parseFloat(s) : 1 }; -}, hD = (e) => yn(0, 255, e), Ql = { - ...Yn, - transform: (e) => Math.round(hD(e)) -}, Fn = { - test: fd("rgb", "red"), - parse: Pg("red", "green", "blue"), - transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Ql.transform(e) + ", " + Ql.transform(t) + ", " + Ql.transform(r) + ", " + ba(ga.transform(n)) + ")" +}, uD = (e) => xn(0, 255, e), Zl = { + ...Gn, + transform: (e) => Math.round(uD(e)) +}, Nn = { + test: ud("rgb", "red"), + parse: _g("red", "green", "blue"), + transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Zl.transform(e) + ", " + Zl.transform(t) + ", " + Zl.transform(r) + ", " + xa(ya.transform(n)) + ")" }; -function mD(e) { +function dD(e) { let t = "", r = "", n = "", o = ""; return e.length > 5 ? (t = e.substring(1, 3), r = e.substring(3, 5), n = e.substring(5, 7), o = e.substring(7, 9)) : (t = e.substring(1, 2), r = e.substring(2, 3), n = e.substring(3, 4), o = e.substring(4, 5), t += t, r += r, n += n, o += o), { red: parseInt(t, 16), @@ -12792,30 +13031,30 @@ function mD(e) { alpha: o ? parseInt(o, 16) / 255 : 1 }; } -const Zc = { - test: fd("#"), - parse: mD, - transform: Fn.transform -}, co = { - test: fd("hsl", "hue"), - parse: Pg("hue", "saturation", "lightness"), - transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Ir.transform(ba(t)) + ", " + Ir.transform(ba(r)) + ", " + ba(ga.transform(n)) + ")" -}, $t = { - test: (e) => Fn.test(e) || Zc.test(e) || co.test(e), - parse: (e) => Fn.test(e) ? Fn.parse(e) : co.test(e) ? co.parse(e) : Zc.parse(e), - transform: (e) => oi(e) ? e : e.hasOwnProperty("red") ? Fn.transform(e) : co.transform(e) +const Kc = { + test: ud("#"), + parse: dD, + transform: Nn.transform +}, uo = { + test: ud("hsl", "hue"), + parse: _g("hue", "saturation", "lightness"), + transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Fr.transform(xa(t)) + ", " + Fr.transform(xa(r)) + ", " + xa(ya.transform(n)) + ")" +}, Rt = { + test: (e) => Nn.test(e) || Kc.test(e) || uo.test(e), + parse: (e) => Nn.test(e) ? Nn.parse(e) : uo.test(e) ? uo.parse(e) : Kc.parse(e), + transform: (e) => oi(e) ? e : e.hasOwnProperty("red") ? Nn.transform(e) : uo.transform(e) }, st = (e, t, r) => -r * e + r * t + e; -function ec(e, t, r) { +function Jl(e, t, r) { return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e; } -function vD({ hue: e, saturation: t, lightness: r, alpha: n }) { +function fD({ hue: e, saturation: t, lightness: r, alpha: n }) { e /= 360, t /= 100, r /= 100; let o = 0, a = 0, i = 0; if (!t) o = a = i = r; else { const s = r < 0.5 ? r * (1 + t) : r + t - r * t, l = 2 * r - s; - o = ec(l, s, e + 1 / 3), a = ec(l, s, e), i = ec(l, s, e - 1 / 3); + o = Jl(l, s, e + 1 / 3), a = Jl(l, s, e), i = Jl(l, s, e - 1 / 3); } return { red: Math.round(o * 255), @@ -12824,45 +13063,45 @@ function vD({ hue: e, saturation: t, lightness: r, alpha: n }) { alpha: n }; } -const tc = (e, t, r) => { +const Ql = (e, t, r) => { const n = e * e; return Math.sqrt(Math.max(0, r * (t * t - n) + n)); -}, gD = [Zc, Fn, co], bD = (e) => gD.find((t) => t.test(e)); -function Up(e) { - const t = bD(e); +}, pD = [Kc, Nn, uo], hD = (e) => pD.find((t) => t.test(e)); +function Wp(e) { + const t = hD(e); wr(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`); let r = t.parse(e); - return t === co && (r = vD(r)), r; + return t === uo && (r = fD(r)), r; } -const Tg = (e, t) => { - const r = Up(e), n = Up(t), o = { ...r }; - return (a) => (o.red = tc(r.red, n.red, a), o.green = tc(r.green, n.green, a), o.blue = tc(r.blue, n.blue, a), o.alpha = st(r.alpha, n.alpha, a), Fn.transform(o)); +const kg = (e, t) => { + const r = Wp(e), n = Wp(t), o = { ...r }; + return (a) => (o.red = Ql(r.red, n.red, a), o.green = Ql(r.green, n.green, a), o.blue = Ql(r.blue, n.blue, a), o.alpha = st(r.alpha, n.alpha, a), Nn.transform(o)); }; -function yD(e) { +function mD(e) { var t, r; - return isNaN(e) && oi(e) && (((t = e.match(Qs)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Jv)) === null || r === void 0 ? void 0 : r.length) || 0) > 0; + return isNaN(e) && oi(e) && (((t = e.match(Js)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Xv)) === null || r === void 0 ? void 0 : r.length) || 0) > 0; } -const Ag = { - regex: d2, +const Eg = { + regex: s2, countKey: "Vars", token: "${v}", parse: bt -}, Og = { - regex: Jv, +}, Pg = { + regex: Xv, countKey: "Colors", token: "${c}", - parse: $t.parse -}, $g = { - regex: Qs, + parse: Rt.parse +}, Tg = { + regex: Js, countKey: "Numbers", token: "${n}", - parse: Yn.parse + parse: Gn.parse }; -function rc(e, { regex: t, countKey: r, token: n, parse: o }) { +function ec(e, { regex: t, countKey: r, token: n, parse: o }) { const a = e.tokenised.match(t); a && (e["num" + r] = a.length, e.tokenised = e.tokenised.replace(t, n), e.values.push(...a.map(o))); } -function ws(e) { +function Ss(e) { const t = e.toString(), r = { value: t, tokenised: t, @@ -12871,149 +13110,149 @@ function ws(e) { numColors: 0, numNumbers: 0 }; - return r.value.includes("var(--") && rc(r, Ag), rc(r, Og), rc(r, $g), r; + return r.value.includes("var(--") && ec(r, Eg), ec(r, Pg), ec(r, Tg), r; } -function Rg(e) { - return ws(e).values; +function Ag(e) { + return Ss(e).values; } -function Dg(e) { - const { values: t, numColors: r, numVars: n, tokenised: o } = ws(e), a = t.length; +function Og(e) { + const { values: t, numColors: r, numVars: n, tokenised: o } = Ss(e), a = t.length; return (i) => { let s = o; for (let l = 0; l < a; l++) - l < n ? s = s.replace(Ag.token, i[l]) : l < n + r ? s = s.replace(Og.token, $t.transform(i[l])) : s = s.replace($g.token, ba(i[l])); + l < n ? s = s.replace(Eg.token, i[l]) : l < n + r ? s = s.replace(Pg.token, Rt.transform(i[l])) : s = s.replace(Tg.token, xa(i[l])); return s; }; } -const xD = (e) => typeof e == "number" ? 0 : e; -function SD(e) { - const t = Rg(e); - return Dg(e)(t.map(xD)); -} -const xn = { - test: yD, - parse: Rg, - createTransformer: Dg, - getAnimatableNone: SD -}, Mg = (e, t) => (r) => `${r > 0 ? t : e}`; -function Ig(e, t) { - return typeof e == "number" ? (r) => st(e, t, r) : $t.test(e) ? Tg(e, t) : e.startsWith("var(") ? Mg(e, t) : Ng(e, t); -} -const Fg = (e, t) => { - const r = [...e], n = r.length, o = e.map((a, i) => Ig(a, t[i])); +const vD = (e) => typeof e == "number" ? 0 : e; +function gD(e) { + const t = Ag(e); + return Og(e)(t.map(vD)); +} +const Sn = { + test: mD, + parse: Ag, + createTransformer: Og, + getAnimatableNone: gD +}, Rg = (e, t) => (r) => `${r > 0 ? t : e}`; +function $g(e, t) { + return typeof e == "number" ? (r) => st(e, t, r) : Rt.test(e) ? kg(e, t) : e.startsWith("var(") ? Rg(e, t) : Mg(e, t); +} +const Dg = (e, t) => { + const r = [...e], n = r.length, o = e.map((a, i) => $g(a, t[i])); return (a) => { for (let i = 0; i < n; i++) r[i] = o[i](a); return r; }; -}, wD = (e, t) => { +}, bD = (e, t) => { const r = { ...e, ...t }, n = {}; for (const o in r) - e[o] !== void 0 && t[o] !== void 0 && (n[o] = Ig(e[o], t[o])); + e[o] !== void 0 && t[o] !== void 0 && (n[o] = $g(e[o], t[o])); return (o) => { for (const a in n) r[a] = n[a](o); return r; }; -}, Ng = (e, t) => { - const r = xn.createTransformer(t), n = ws(e), o = ws(t); - return n.numVars === o.numVars && n.numColors === o.numColors && n.numNumbers >= o.numNumbers ? mn(Fg(n.values, o.values), r) : (ii(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Mg(e, t)); -}, Ua = (e, t, r) => { +}, Mg = (e, t) => { + const r = Sn.createTransformer(t), n = Ss(e), o = Ss(t); + return n.numVars === o.numVars && n.numColors === o.numColors && n.numNumbers >= o.numNumbers ? vn(Dg(n.values, o.values), r) : (ii(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Rg(e, t)); +}, Ha = (e, t, r) => { const n = t - e; return n === 0 ? 1 : (r - e) / n; -}, Hp = (e, t) => (r) => st(e, t, r); -function CD(e) { - return typeof e == "number" ? Hp : typeof e == "string" ? $t.test(e) ? Tg : Ng : Array.isArray(e) ? Fg : typeof e == "object" ? wD : Hp; +}, Up = (e, t) => (r) => st(e, t, r); +function yD(e) { + return typeof e == "number" ? Up : typeof e == "string" ? Rt.test(e) ? kg : Mg : Array.isArray(e) ? Dg : typeof e == "object" ? bD : Up; } -function _D(e, t, r) { - const n = [], o = r || CD(e[0]), a = e.length - 1; +function xD(e, t, r) { + const n = [], o = r || yD(e[0]), a = e.length - 1; for (let i = 0; i < a; i++) { let s = o(e[i], e[i + 1]); if (t) { const l = Array.isArray(t) ? t[i] || bt : t; - s = mn(l, s); + s = vn(l, s); } n.push(s); } return n; } -function jg(e, t, { clamp: r = !0, ease: n, mixer: o } = {}) { +function Ig(e, t, { clamp: r = !0, ease: n, mixer: o } = {}) { const a = e.length; if (wr(a === t.length, "Both input and output ranges must be the same length"), a === 1) return () => t[0]; e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse()); - const i = _D(t, n, o), s = i.length, l = (c) => { + const i = xD(t, n, o), s = i.length, l = (c) => { let u = 0; if (s > 1) for (; u < e.length - 2 && !(c < e[u + 1]); u++) ; - const d = Ua(e[u], e[u + 1], c); + const d = Ha(e[u], e[u + 1], c); return i[u](d); }; - return r ? (c) => l(yn(e[0], e[a - 1], c)) : l; + return r ? (c) => l(xn(e[0], e[a - 1], c)) : l; } -function kD(e, t) { +function SD(e, t) { const r = e[e.length - 1]; for (let n = 1; n <= t; n++) { - const o = Ua(0, t, n); + const o = Ha(0, t, n); e.push(st(r, 1, o)); } } -function ED(e) { +function wD(e) { const t = [0]; - return kD(t, e.length - 1), t; + return SD(t, e.length - 1), t; } -function PD(e, t) { +function CD(e, t) { return e.map((r) => r * t); } -function TD(e, t) { - return e.map(() => t || wg).splice(0, e.length - 1); +function _D(e, t) { + return e.map(() => t || yg).splice(0, e.length - 1); } -function Cs({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) { - const o = uD(n) ? n.map(Wp) : Wp(n), a = { +function ws({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) { + const o = iD(n) ? n.map(Lp) : Lp(n), a = { done: !1, value: t[0] - }, i = PD( + }, i = CD( // Only use the provided offsets if they're the correct length // TODO Maybe we should warn here if there's a length mismatch - r && r.length === t.length ? r : ED(t), + r && r.length === t.length ? r : wD(t), e - ), s = jg(i, t, { - ease: Array.isArray(o) ? o : TD(t, o) + ), s = Ig(i, t, { + ease: Array.isArray(o) ? o : _D(t, o) }); return { calculatedDuration: e, next: (l) => (a.value = s(l), a.done = l >= e, a) }; } -function Bg(e, t) { +function Fg(e, t) { return t ? e * (1e3 / t) : 0; } -const AD = 5; -function zg(e, t, r) { - const n = Math.max(t - AD, 0); - return Bg(r - e(n), t - n); +const kD = 5; +function Ng(e, t, r) { + const n = Math.max(t - kD, 0); + return Fg(r - e(n), t - n); } -const nc = 1e-3, OD = 0.01, Yp = 10, $D = 0.05, RD = 1; -function DD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }) { +const tc = 1e-3, ED = 0.01, Hp = 10, PD = 0.05, TD = 1; +function AD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }) { let o, a; - ii(e <= vn(Yp), "Spring duration must be 10 seconds or less"); + ii(e <= gn(Hp), "Spring duration must be 10 seconds or less"); let i = 1 - t; - i = yn($D, RD, i), e = yn(OD, Yp, Zr(e)), i < 1 ? (o = (c) => { - const u = c * i, d = u * e, f = u - r, p = Jc(c, i), m = Math.exp(-d); - return nc - f / p * m; + i = xn(PD, TD, i), e = xn(ED, Hp, Jr(e)), i < 1 ? (o = (c) => { + const u = c * i, d = u * e, f = u - r, p = Zc(c, i), m = Math.exp(-d); + return tc - f / p * m; }, a = (c) => { - const d = c * i * e, f = d * r + r, p = Math.pow(i, 2) * Math.pow(c, 2) * e, m = Math.exp(-d), h = Jc(Math.pow(c, 2), i); - return (-o(c) + nc > 0 ? -1 : 1) * ((f - p) * m) / h; + const d = c * i * e, f = d * r + r, p = Math.pow(i, 2) * Math.pow(c, 2) * e, m = Math.exp(-d), h = Zc(Math.pow(c, 2), i); + return (-o(c) + tc > 0 ? -1 : 1) * ((f - p) * m) / h; }) : (o = (c) => { const u = Math.exp(-c * e), d = (c - r) * e + 1; - return -nc + u * d; + return -tc + u * d; }, a = (c) => { const u = Math.exp(-c * e), d = (r - c) * (e * e); return u * d; }); - const s = 5 / e, l = ID(o, a, s); - if (e = vn(e), isNaN(l)) + const s = 5 / e, l = RD(o, a, s); + if (e = gn(e), isNaN(l)) return { stiffness: 100, damping: 10, @@ -13028,21 +13267,21 @@ function DD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }; } } -const MD = 12; -function ID(e, t, r) { +const OD = 12; +function RD(e, t, r) { let n = r; - for (let o = 1; o < MD; o++) + for (let o = 1; o < OD; o++) n = n - e(n) / t(n); return n; } -function Jc(e, t) { +function Zc(e, t) { return e * Math.sqrt(1 - t * t); } -const FD = ["duration", "bounce"], ND = ["stiffness", "damping", "mass"]; -function qp(e, t) { +const $D = ["duration", "bounce"], DD = ["stiffness", "damping", "mass"]; +function Yp(e, t) { return t.some((r) => e[r] !== void 0); } -function jD(e) { +function MD(e) { let t = { velocity: 0, stiffness: 100, @@ -13051,8 +13290,8 @@ function jD(e) { isResolvedFromDuration: !1, ...e }; - if (!qp(e, ND) && qp(e, FD)) { - const r = DD(e); + if (!Yp(e, DD) && Yp(e, $D)) { + const r = AD(e); t = { ...t, ...r, @@ -13062,42 +13301,42 @@ function jD(e) { } return t; } -function Vg({ keyframes: e, restDelta: t, restSpeed: r, ...n }) { - const o = e[0], a = e[e.length - 1], i = { done: !1, value: o }, { stiffness: s, damping: l, mass: c, velocity: u, duration: d, isResolvedFromDuration: f } = jD(n), p = u ? -Zr(u) : 0, m = l / (2 * Math.sqrt(s * c)), h = a - o, v = Zr(Math.sqrt(s / c)), b = Math.abs(h) < 5; +function jg({ keyframes: e, restDelta: t, restSpeed: r, ...n }) { + const o = e[0], a = e[e.length - 1], i = { done: !1, value: o }, { stiffness: s, damping: l, mass: c, velocity: u, duration: d, isResolvedFromDuration: f } = MD(n), p = u ? -Jr(u) : 0, m = l / (2 * Math.sqrt(s * c)), h = a - o, v = Jr(Math.sqrt(s / c)), b = Math.abs(h) < 5; r || (r = b ? 0.01 : 2), t || (t = b ? 5e-3 : 0.5); let y; if (m < 1) { - const S = Jc(v, m); - y = (k) => { - const w = Math.exp(-m * v * k); - return a - w * ((p + m * v * h) / S * Math.sin(S * k) + h * Math.cos(S * k)); + const S = Zc(v, m); + y = (_) => { + const w = Math.exp(-m * v * _); + return a - w * ((p + m * v * h) / S * Math.sin(S * _) + h * Math.cos(S * _)); }; } else if (m === 1) y = (S) => a - Math.exp(-v * S) * (h + (p + v * h) * S); else { const S = v * Math.sqrt(m * m - 1); - y = (k) => { - const w = Math.exp(-m * v * k), M = Math.min(S * k, 300); + y = (_) => { + const w = Math.exp(-m * v * _), M = Math.min(S * _, 300); return a - w * ((p + m * v * h) * Math.sinh(M) + S * h * Math.cosh(M)) / S; }; } return { calculatedDuration: f && d || null, next: (S) => { - const k = y(S); + const _ = y(S); if (f) i.done = S >= d; else { let w = p; - S !== 0 && (m < 1 ? w = zg(y, S, k) : w = 0); - const M = Math.abs(w) <= r, P = Math.abs(a - k) <= t; + S !== 0 && (m < 1 ? w = Ng(y, S, _) : w = 0); + const M = Math.abs(w) <= r, P = Math.abs(a - _) <= t; i.done = M && P; } - return i.value = i.done ? a : k, i; + return i.value = i.done ? a : _, i; } }; } -function Gp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 325, bounceDamping: o = 10, bounceStiffness: a = 500, modifyTarget: i, min: s, max: l, restDelta: c = 0.5, restSpeed: u }) { +function qp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 325, bounceDamping: o = 10, bounceStiffness: a = 500, modifyTarget: i, min: s, max: l, restDelta: c = 0.5, restSpeed: u }) { const d = e[0], f = { done: !1, value: d @@ -13105,15 +13344,15 @@ function Gp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3 let h = r * t; const v = d + h, b = i === void 0 ? v : i(v); b !== v && (h = b - d); - const y = (I) => -h * Math.exp(-I / n), S = (I) => b + y(I), k = (I) => { + const y = (I) => -h * Math.exp(-I / n), S = (I) => b + y(I), _ = (I) => { const z = y(I), j = S(I); f.done = Math.abs(z) <= c, f.value = f.done ? b : j; }; let w, M; const P = (I) => { - p(f.value) && (w = I, M = Vg({ + p(f.value) && (w = I, M = jg({ keyframes: [f.value, m(f.value)], - velocity: zg(S, I, f.value), + velocity: Ng(S, I, f.value), damping: o, stiffness: a, restDelta: c, @@ -13124,38 +13363,38 @@ function Gp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3 calculatedDuration: null, next: (I) => { let z = !1; - return !M && w === void 0 && (z = !0, k(I), P(I)), w !== void 0 && I > w ? M.next(I - w) : (!z && k(I), f); + return !M && w === void 0 && (z = !0, _(I), P(I)), w !== void 0 && I > w ? M.next(I - w) : (!z && _(I), f); } }; } -const BD = (e) => { +const ID = (e) => { const t = ({ timestamp: r }) => e(r); return { start: () => tt.update(t, !0), - stop: () => rn(t), + stop: () => nn(t), /** * If we're processing this frame we can use the * framelocked timestamp to keep things in sync. */ now: () => it.isProcessing ? it.timestamp : performance.now() }; -}, Xp = 2e4; -function Kp(e) { +}, Gp = 2e4; +function Xp(e) { let t = 0; const r = 50; let n = e.next(t); - for (; !n.done && t < Xp; ) + for (; !n.done && t < Gp; ) t += r, n = e.next(t); - return t >= Xp ? 1 / 0 : t; -} -const zD = { - decay: Gp, - inertia: Gp, - tween: Cs, - keyframes: Cs, - spring: Vg + return t >= Gp ? 1 / 0 : t; +} +const FD = { + decay: qp, + inertia: qp, + tween: ws, + keyframes: ws, + spring: jg }; -function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type: o = "keyframes", repeat: a = 0, repeatDelay: i = 0, repeatType: s = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: d, ...f }) { +function Cs({ autoplay: e = !0, delay: t = 0, driver: r = ID, keyframes: n, type: o = "keyframes", repeat: a = 0, repeatDelay: i = 0, repeatType: s = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: d, ...f }) { let p = 1, m = !1, h, v; const b = () => { h && h(), v = new Promise((N) => { @@ -13164,9 +13403,9 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type }; b(); let y; - const S = zD[o] || Cs; - let k; - S !== Cs && typeof n[0] != "number" && (k = jg([0, 100], n, { + const S = FD[o] || ws; + let _; + S !== ws && typeof n[0] != "number" && (_ = Ig([0, 100], n, { clamp: !1 }), n = [0, 100]); const w = S({ ...f, keyframes: n }); @@ -13177,7 +13416,7 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type velocity: -(f.velocity || 0) })); let P = "idle", I = null, z = null, j = null; - w.calculatedDuration === null && a && (w.calculatedDuration = Kp(w)); + w.calculatedDuration === null && a && (w.calculatedDuration = Xp(w)); const { calculatedDuration: X } = w; let ne = 1 / 0, J = 1 / 0; X !== null && (ne = X + i, J = ne * (a + 1) - i); @@ -13188,22 +13427,22 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type p > 0 && (z = Math.min(z, N)), p < 0 && (z = Math.min(N - J / p, z)), I !== null ? Q = I : Q = Math.round(N - z) * p; const V = Q - t * (p >= 0 ? 1 : -1), T = p >= 0 ? V < 0 : V > J; Q = Math.max(V, 0), P === "finished" && I === null && (Q = J); - let O = Q, B = w; + let A = Q, B = w; if (a) { const Z = Q / ne; let Y = Math.floor(Z), ae = Z % 1; !ae && Z >= 1 && (ae = 1), ae === 1 && Y--, Y = Math.min(Y, a + 1); - const $ = !!(Y % 2); - $ && (s === "reverse" ? (ae = 1 - ae, i && (ae -= i / ne)) : s === "mirror" && (B = M)); - let Se = yn(0, 1, ae); - Q > J && (Se = s === "reverse" && $ ? 1 : 0), O = Se * ne; + const R = !!(Y % 2); + R && (s === "reverse" ? (ae = 1 - ae, i && (ae -= i / ne)) : s === "mirror" && (B = M)); + let Se = xn(0, 1, ae); + Q > J && (Se = s === "reverse" && R ? 1 : 0), A = Se * ne; } - const C = T ? { done: !1, value: n[0] } : B.next(O); - k && (C.value = k(C.value)); + const C = T ? { done: !1, value: n[0] } : B.next(A); + _ && (C.value = _(C.value)); let { done: H } = C; !T && X !== null && (H = p >= 0 ? Q >= J : Q <= 0); - const A = I === null && (P === "finished" || P === "running" && H); - return d && d(C.value), A && ce(), C; + const O = I === null && (P === "finished" || P === "running" && H); + return d && d(C.value), O && ce(), C; }, oe = () => { y && y.stop(), y = void 0; }, D = () => { @@ -13223,20 +13462,20 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type return v.then(N, V); }, get time() { - return Zr(Q); + return Jr(Q); }, set time(N) { - N = vn(N), Q = N, I !== null || !y || p === 0 ? I = N : z = y.now() - N / p; + N = gn(N), Q = N, I !== null || !y || p === 0 ? I = N : z = y.now() - N / p; }, get duration() { - const N = w.calculatedDuration === null ? Kp(w) : w.calculatedDuration; - return Zr(N); + const N = w.calculatedDuration === null ? Xp(w) : w.calculatedDuration; + return Jr(N); }, get speed() { return p; }, set speed(N) { - N === p || !y || (p = N, F.time = Zr(Q)); + N === p || !y || (p = N, F.time = Jr(Q)); }, get state() { return P; @@ -13258,15 +13497,15 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type }; return F; } -const VD = /* @__PURE__ */ new Set([ +const ND = /* @__PURE__ */ new Set([ "opacity", "clipPath", "filter", "transform", "backgroundColor" -]), Oi = 10, LD = 2e4, WD = (e, t) => t.type === "spring" || e === "backgroundColor" || !gg(t.ease); -function UD(e, t, { onUpdate: r, onComplete: n, ...o }) { - if (!(xg.waapi() && VD.has(t) && !o.repeatDelay && o.repeatType !== "mirror" && o.damping !== 0 && o.type !== "inertia")) +]), Oi = 10, jD = 2e4, BD = (e, t) => t.type === "spring" || e === "backgroundColor" || !hg(t.ease); +function zD(e, t, { onUpdate: r, onComplete: n, ...o }) { + if (!(gg.waapi() && ND.has(t) && !o.repeatDelay && o.repeatType !== "mirror" && o.damping !== 0 && o.type !== "inertia")) return !1; let i = !1, s, l; const c = () => { @@ -13276,20 +13515,20 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) { }; c(); let { keyframes: u, duration: d = 300, ease: f, times: p } = o; - if (WD(t, o)) { - const b = _s({ + if (BD(t, o)) { + const b = Cs({ ...o, repeat: 0, delay: 0 }); let y = { done: !1, value: u[0] }; const S = []; - let k = 0; - for (; !y.done && k < LD; ) - y = b.sample(k), S.push(y.value), k += Oi; - p = void 0, u = S, d = k - Oi, f = "linear"; + let _ = 0; + for (; !y.done && _ < jD; ) + y = b.sample(_), S.push(y.value), _ += Oi; + p = void 0, u = S, d = _ - Oi, f = "linear"; } - const m = nD(e.owner.current, t, u, { + const m = Q2(e.owner.current, t, u, { ...o, duration: d, /** @@ -13306,16 +13545,16 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) { tt.update(h), s(), c(); }; return m.onfinish = () => { - e.set(oD(u, o)), n && n(), v(); + e.set(eD(u, o)), n && n(), v(); }, { then(b, y) { return l.then(b, y); }, get time() { - return Zr(m.currentTime || 0); + return Jr(m.currentTime || 0); }, set time(b) { - m.currentTime = vn(b); + m.currentTime = gn(b); }, get speed() { return m.playbackRate; @@ -13324,10 +13563,10 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) { m.playbackRate = b; }, get duration() { - return Zr(d); + return Jr(d); }, play: () => { - i || (m.play(), rn(h)); + i || (m.play(), nn(h)); }, pause: () => m.pause(), stop: () => { @@ -13335,7 +13574,7 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) { return; const { currentTime: b } = m; if (b) { - const y = _s({ + const y = Cs({ ...o, autoplay: !1 }); @@ -13347,7 +13586,7 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) { cancel: v }; } -function HD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) { +function VD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) { const o = () => (r && r(e[e.length - 1]), n && n(), { time: 0, speed: 1, @@ -13359,105 +13598,105 @@ function HD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) { cancel: bt, complete: bt }); - return t ? _s({ + return t ? Cs({ keyframes: [0, 1], duration: 0, delay: t, onComplete: o }) : o(); } -const YD = { +const LD = { type: "spring", stiffness: 500, damping: 25, restSpeed: 10 -}, qD = (e) => ({ +}, WD = (e) => ({ type: "spring", stiffness: 550, damping: e === 0 ? 2 * Math.sqrt(550) : 30, restSpeed: 10 -}), GD = { +}), UD = { type: "keyframes", duration: 0.8 -}, XD = { +}, HD = { type: "keyframes", ease: [0.25, 0.1, 0.35, 1], duration: 0.3 -}, KD = (e, { keyframes: t }) => t.length > 2 ? GD : Hn.has(e) ? e.startsWith("scale") ? qD(t[1]) : YD : XD, Qc = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string -(xn.test(t) || t === "0") && // And it contains numbers and/or colors -!t.startsWith("url(")), ZD = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]); -function JD(e) { +}, YD = (e, { keyframes: t }) => t.length > 2 ? UD : qn.has(e) ? e.startsWith("scale") ? WD(t[1]) : LD : HD, Jc = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string +(Sn.test(t) || t === "0") && // And it contains numbers and/or colors +!t.startsWith("url(")), qD = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]); +function GD(e) { const [t, r] = e.slice(0, -1).split("("); if (t === "drop-shadow") return e; - const [n] = r.match(Qs) || []; + const [n] = r.match(Js) || []; if (!n) return e; const o = r.replace(n, ""); - let a = ZD.has(t) ? 1 : 0; + let a = qD.has(t) ? 1 : 0; return n !== r && (a *= 100), t + "(" + a + o + ")"; } -const QD = /([a-z-]*)\(.*?\)/g, eu = { - ...xn, +const XD = /([a-z-]*)\(.*?\)/g, Qc = { + ...Sn, getAnimatableNone: (e) => { - const t = e.match(QD); - return t ? t.map(JD).join(" ") : e; + const t = e.match(XD); + return t ? t.map(GD).join(" ") : e; } -}, eM = { - ...Qv, +}, KD = { + ...Kv, // Color props - color: $t, - backgroundColor: $t, - outlineColor: $t, - fill: $t, - stroke: $t, + color: Rt, + backgroundColor: Rt, + outlineColor: Rt, + fill: Rt, + stroke: Rt, // Border props - borderColor: $t, - borderTopColor: $t, - borderRightColor: $t, - borderBottomColor: $t, - borderLeftColor: $t, - filter: eu, - WebkitFilter: eu -}, pd = (e) => eM[e]; -function Lg(e, t) { - let r = pd(e); - return r !== eu && (r = xn), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0; -} -const Wg = (e) => /^0[^.\s]+$/.test(e); -function tM(e) { + borderColor: Rt, + borderTopColor: Rt, + borderRightColor: Rt, + borderBottomColor: Rt, + borderLeftColor: Rt, + filter: Qc, + WebkitFilter: Qc +}, dd = (e) => KD[e]; +function Bg(e, t) { + let r = dd(e); + return r !== Qc && (r = Sn), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0; +} +const zg = (e) => /^0[^.\s]+$/.test(e); +function ZD(e) { if (typeof e == "number") return e === 0; if (e !== null) - return e === "none" || e === "0" || Wg(e); + return e === "none" || e === "0" || zg(e); } -function rM(e, t, r, n) { - const o = Qc(t, r); +function JD(e, t, r, n) { + const o = Jc(t, r); let a; Array.isArray(r) ? a = [...r] : a = [null, r]; const i = n.from !== void 0 ? n.from : e.get(); let s; const l = []; for (let c = 0; c < a.length; c++) - a[c] === null && (a[c] = c === 0 ? i : a[c - 1]), tM(a[c]) && l.push(c), typeof a[c] == "string" && a[c] !== "none" && a[c] !== "0" && (s = a[c]); + a[c] === null && (a[c] = c === 0 ? i : a[c - 1]), ZD(a[c]) && l.push(c), typeof a[c] == "string" && a[c] !== "none" && a[c] !== "0" && (s = a[c]); if (o && l.length && s) for (let c = 0; c < l.length; c++) { const u = l[c]; - a[u] = Lg(t, s); + a[u] = Bg(t, s); } return a; } -function nM({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: o, repeat: a, repeatType: i, repeatDelay: s, from: l, elapsed: c, ...u }) { +function QD({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: o, repeat: a, repeatType: i, repeatDelay: s, from: l, elapsed: c, ...u }) { return !!Object.keys(u).length; } -function Ug(e, t) { +function Vg(e, t) { return e[t] || e.default || e; } -const hd = (e, t, r, n = {}) => (o) => { - const a = Ug(n, e) || {}, i = a.delay || n.delay || 0; +const fd = (e, t, r, n = {}) => (o) => { + const a = Vg(n, e) || {}, i = a.delay || n.delay || 0; let { elapsed: s = 0 } = n; - s = s - vn(i); - const l = rM(t, e, r, a), c = l[0], u = l[l.length - 1], d = Qc(e, c), f = Qc(e, u); + s = s - gn(i); + const l = JD(t, e, r, a), c = l[0], u = l[l.length - 1], d = Jc(e, c), f = Jc(e, u); ii(d === f, `You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`); let p = { keyframes: l, @@ -13472,35 +13711,35 @@ const hd = (e, t, r, n = {}) => (o) => { o(), a.onComplete && a.onComplete(); } }; - if (nM(a) || (p = { + if (QD(a) || (p = { ...p, - ...KD(e, p) - }), p.duration && (p.duration = vn(p.duration)), p.repeatDelay && (p.repeatDelay = vn(p.repeatDelay)), !d || !f || rD.current || a.type === !1) - return HD(p); + ...YD(e, p) + }), p.duration && (p.duration = gn(p.duration)), p.repeatDelay && (p.repeatDelay = gn(p.repeatDelay)), !d || !f || J2.current || a.type === !1) + return VD(p); if (t.owner && t.owner.current instanceof HTMLElement && !t.owner.getProps().onUpdate) { - const m = UD(t, e, p); + const m = zD(t, e, p); if (m) return m; } - return _s(p); + return Cs(p); }; -function ks(e) { +function _s(e) { return !!(Yt(e) && e.add); } -const oM = (e) => /^\-?\d*\.?\d+$/.test(e); -function md(e, t) { +const eM = (e) => /^\-?\d*\.?\d+$/.test(e); +function pd(e, t) { e.indexOf(t) === -1 && e.push(t); } -function vd(e, t) { +function hd(e, t) { const r = e.indexOf(t); r > -1 && e.splice(r, 1); } -class gd { +class md { constructor() { this.subscriptions = []; } add(t) { - return md(this.subscriptions, t), () => vd(this.subscriptions, t); + return pd(this.subscriptions, t), () => hd(this.subscriptions, t); } notify(t, r, n) { const o = this.subscriptions.length; @@ -13520,12 +13759,12 @@ class gd { this.subscriptions.length = 0; } } -const Zp = /* @__PURE__ */ new Set(); -function bd(e, t, r) { - e || Zp.has(t) || (console.warn(t), r && console.warn(r), Zp.add(t)); +const Kp = /* @__PURE__ */ new Set(); +function vd(e, t, r) { + e || Kp.has(t) || (console.warn(t), r && console.warn(r), Kp.add(t)); } -const aM = (e) => !isNaN(parseFloat(e)); -class iM { +const tM = (e) => !isNaN(parseFloat(e)); +class rM { /** * @param init - The initiating value * @param config - Optional configuration options @@ -13541,7 +13780,7 @@ class iM { this.lastUpdated !== i && (this.timeDelta = a, this.lastUpdated = i, tt.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), o && this.events.renderRequest && this.events.renderRequest.notify(this.current); }, this.scheduleVelocityCheck = () => tt.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: n }) => { n !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity())); - }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = aM(this.current), this.owner = r.owner; + }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = tM(this.current), this.owner = r.owner; } /** * Adds a function that will be notified when the `MotionValue` is updated. @@ -13584,10 +13823,10 @@ class iM { * @deprecated */ onChange(t) { - return process.env.NODE_ENV !== "production" && bd(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t); + return process.env.NODE_ENV !== "production" && vd(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t); } on(t, r) { - this.events[t] || (this.events[t] = new gd()); + this.events[t] || (this.events[t] = new md()); const n = this.events[t].add(r); return t === "change" ? () => { n(), tt.read(() => { @@ -13661,7 +13900,7 @@ class iM { getVelocity() { return this.canTrackVelocity ? ( // These casts could be avoided if parseFloat would be typed better - Bg(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta) + Fg(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta) ) : 0; } /** @@ -13715,42 +13954,42 @@ class iM { this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect(); } } -function Oo(e, t) { - return new iM(e, t); +function Ro(e, t) { + return new rM(e, t); } -const Hg = (e) => (t) => t.test(e), sM = { +const Lg = (e) => (t) => t.test(e), nM = { test: (e) => e === "auto", parse: (e) => e -}, Yg = [Yn, pe, Ir, dn, m2, h2, sM], Jo = (e) => Yg.find(Hg(e)), lM = [...Yg, $t, xn], cM = (e) => lM.find(Hg(e)); -function uM(e, t, r) { - e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, Oo(r)); +}, Wg = [Gn, pe, Fr, fn, d2, u2, nM], Qo = (e) => Wg.find(Lg(e)), oM = [...Wg, Rt, Sn], aM = (e) => oM.find(Lg(e)); +function iM(e, t, r) { + e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, Ro(r)); } -function dM(e, t) { - const r = rl(e, t); +function sM(e, t) { + const r = tl(e, t); let { transitionEnd: n = {}, transition: o = {}, ...a } = r ? e.makeTargetAnimatable(r, !1) : {}; a = { ...a, ...n }; for (const i in a) { - const s = A2(a[i]); - uM(e, i, s); + const s = k2(a[i]); + iM(e, i, s); } } -function fM(e, t, r) { +function lM(e, t, r) { var n, o; const a = Object.keys(t).filter((s) => !e.hasValue(s)), i = a.length; if (i) for (let s = 0; s < i; s++) { const l = a[s], c = t[l]; let u = null; - Array.isArray(c) && (u = c[0]), u === null && (u = (o = (n = r[l]) !== null && n !== void 0 ? n : e.readValue(l)) !== null && o !== void 0 ? o : t[l]), u != null && (typeof u == "string" && (oM(u) || Wg(u)) ? u = parseFloat(u) : !cM(u) && xn.test(c) && (u = Lg(l, c)), e.addValue(l, Oo(u, { owner: e })), r[l] === void 0 && (r[l] = u), u !== null && e.setBaseTarget(l, u)); + Array.isArray(c) && (u = c[0]), u === null && (u = (o = (n = r[l]) !== null && n !== void 0 ? n : e.readValue(l)) !== null && o !== void 0 ? o : t[l]), u != null && (typeof u == "string" && (eM(u) || zg(u)) ? u = parseFloat(u) : !aM(u) && Sn.test(c) && (u = Bg(l, c)), e.addValue(l, Ro(u, { owner: e })), r[l] === void 0 && (r[l] = u), u !== null && e.setBaseTarget(l, u)); } } -function pM(e, t) { +function cM(e, t) { return t ? (t[e] || t.default || t).from : void 0; } -function hM(e, t, r) { +function uM(e, t, r) { const n = {}; for (const o in e) { - const a = pM(o, t); + const a = cM(o, t); if (a !== void 0) n[o] = a; else { @@ -13760,39 +13999,39 @@ function hM(e, t, r) { } return n; } -function mM({ protectedKeys: e, needsAnimating: t }, r) { +function dM({ protectedKeys: e, needsAnimating: t }, r) { const n = e.hasOwnProperty(r) && t[r] !== !0; return t[r] = !1, n; } -function qg(e, t, { delay: r = 0, transitionOverride: n, type: o } = {}) { +function Ug(e, t, { delay: r = 0, transitionOverride: n, type: o } = {}) { let { transition: a = e.getDefaultTransition(), transitionEnd: i, ...s } = e.makeTargetAnimatable(t); const l = e.getValue("willChange"); n && (a = n); const c = [], u = o && e.animationState && e.animationState.getState()[o]; for (const d in s) { const f = e.getValue(d), p = s[d]; - if (!f || p === void 0 || u && mM(u, d)) + if (!f || p === void 0 || u && dM(u, d)) continue; const m = { delay: r, elapsed: 0, ...a }; if (window.HandoffAppearAnimations && !f.hasAnimated) { - const v = e.getProps()[tD]; + const v = e.getProps()[Z2]; v && (m.elapsed = window.HandoffAppearAnimations(v, d, f, tt)); } - f.start(hd(d, f, p, e.shouldReduceMotion && Hn.has(d) ? { type: !1 } : m)); + f.start(fd(d, f, p, e.shouldReduceMotion && qn.has(d) ? { type: !1 } : m)); const h = f.animation; - ks(l) && (l.add(d), h.then(() => l.remove(d))), c.push(h); + _s(l) && (l.add(d), h.then(() => l.remove(d))), c.push(h); } return i && Promise.all(c).then(() => { - i && dM(e, i); + i && sM(e, i); }), c; } -function tu(e, t, r = {}) { - const n = rl(e, t, r.custom); +function eu(e, t, r = {}) { + const n = tl(e, t, r.custom); let { transition: o = e.getDefaultTransition() || {} } = n || {}; r.transitionOverride && (o = r.transitionOverride); - const a = n ? () => Promise.all(qg(e, n, r)) : () => Promise.resolve(), i = e.variantChildren && e.variantChildren.size ? (l = 0) => { + const a = n ? () => Promise.all(Ug(e, n, r)) : () => Promise.resolve(), i = e.variantChildren && e.variantChildren.size ? (l = 0) => { const { delayChildren: c = 0, staggerChildren: u, staggerDirection: d } = o; - return vM(e, t, c + l, u, d, r); + return fM(e, t, c + l, u, d, r); } : () => Promise.resolve(), { when: s } = o; if (s) { const [l, c] = s === "beforeChildren" ? [a, i] : [i, a]; @@ -13800,42 +14039,42 @@ function tu(e, t, r = {}) { } else return Promise.all([a(), i(r.delay)]); } -function vM(e, t, r = 0, n = 0, o = 1, a) { +function fM(e, t, r = 0, n = 0, o = 1, a) { const i = [], s = (e.variantChildren.size - 1) * n, l = o === 1 ? (c = 0) => c * n : (c = 0) => s - c * n; - return Array.from(e.variantChildren).sort(gM).forEach((c, u) => { - c.notify("AnimationStart", t), i.push(tu(c, t, { + return Array.from(e.variantChildren).sort(pM).forEach((c, u) => { + c.notify("AnimationStart", t), i.push(eu(c, t, { ...a, delay: r + l(u) }).then(() => c.notify("AnimationComplete", t))); }), Promise.all(i); } -function gM(e, t) { +function pM(e, t) { return e.sortNodePosition(t); } -function bM(e, t, r = {}) { +function hM(e, t, r = {}) { e.notify("AnimationStart", t); let n; if (Array.isArray(t)) { - const o = t.map((a) => tu(e, a, r)); + const o = t.map((a) => eu(e, a, r)); n = Promise.all(o); } else if (typeof t == "string") - n = tu(e, t, r); + n = eu(e, t, r); else { - const o = typeof t == "function" ? rl(e, t, r.custom) : t; - n = Promise.all(qg(e, o, r)); + const o = typeof t == "function" ? tl(e, t, r.custom) : t; + n = Promise.all(Ug(e, o, r)); } return n.then(() => e.notify("AnimationComplete", t)); } -const yM = [...Qu].reverse(), xM = Qu.length; -function SM(e) { - return (t) => Promise.all(t.map(({ animation: r, options: n }) => bM(e, r, n))); +const mM = [...Zu].reverse(), vM = Zu.length; +function gM(e) { + return (t) => Promise.all(t.map(({ animation: r, options: n }) => hM(e, r, n))); } -function wM(e) { - let t = SM(e); - const r = _M(); +function bM(e) { + let t = gM(e); + const r = xM(); let n = !0; const o = (l, c) => { - const u = rl(e, c); + const u = tl(e, c); if (u) { const { transition: d, transitionEnd: f, ...p } = u; l = { ...l, ...p, ...f }; @@ -13848,20 +14087,20 @@ function wM(e) { function i(l, c) { const u = e.getProps(), d = e.getVariantContext(!0) || {}, f = [], p = /* @__PURE__ */ new Set(); let m = {}, h = 1 / 0; - for (let b = 0; b < xM; b++) { - const y = yM[b], S = r[y], k = u[y] !== void 0 ? u[y] : d[y], w = Va(k), M = y === c ? S.isActive : null; + for (let b = 0; b < vM; b++) { + const y = mM[b], S = r[y], _ = u[y] !== void 0 ? u[y] : d[y], w = La(_), M = y === c ? S.isActive : null; M === !1 && (h = b); - let P = k === d[y] && k !== u[y] && w; + let P = _ === d[y] && _ !== u[y] && w; if (P && n && e.manuallyAnimateOnMount && (P = !1), S.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive !S.isActive && M === null || // If we didn't and don't have any defined prop for this animation type - !k && !S.prevProp || // Or if the prop doesn't define an animation - Zs(k) || typeof k == "boolean") + !_ && !S.prevProp || // Or if the prop doesn't define an animation + Ks(_) || typeof _ == "boolean") continue; - const I = CM(S.prevProp, k); + const I = yM(S.prevProp, _); let z = I || // If we're making this variant active, we want to always make it active y === c && S.isActive && !P && w || // If we removed a higher-priority variant (i is in reverse order) b > h && w; - const j = Array.isArray(k) ? k : [k]; + const j = Array.isArray(_) ? _ : [_]; let X = j.reduce(o, {}); M === !1 && (X = {}); const { prevResolvedValues: ne = {} } = S, J = { @@ -13872,9 +14111,9 @@ function wM(e) { }; for (const ee in J) { const oe = X[ee], D = ne[ee]; - m.hasOwnProperty(ee) || (oe !== D ? Ss(oe) && Ss(D) ? !mg(oe, D) || I ? Q(ee) : S.protectedKeys[ee] = !0 : oe !== void 0 ? Q(ee) : p.add(ee) : oe !== void 0 && p.has(ee) ? Q(ee) : S.protectedKeys[ee] = !0); + m.hasOwnProperty(ee) || (oe !== D ? xs(oe) && xs(D) ? !fg(oe, D) || I ? Q(ee) : S.protectedKeys[ee] = !0 : oe !== void 0 ? Q(ee) : p.add(ee) : oe !== void 0 && p.has(ee) ? Q(ee) : S.protectedKeys[ee] = !0); } - S.prevProp = k, S.prevResolvedValues = X, S.isActive && (m = { ...m, ...X }), n && e.blockInitialAnimation && (z = !1), z && !P && f.push(...j.map((ee) => ({ + S.prevProp = _, S.prevResolvedValues = X, S.isActive && (m = { ...m, ...X }), n && e.blockInitialAnimation && (z = !1), z && !P && f.push(...j.map((ee) => ({ animation: ee, options: { type: y, ...l } }))); @@ -13909,10 +14148,10 @@ function wM(e) { getState: () => r }; } -function CM(e, t) { - return typeof t == "string" ? t !== e : Array.isArray(t) ? !mg(t, e) : !1; +function yM(e, t) { + return typeof t == "string" ? t !== e : Array.isArray(t) ? !fg(t, e) : !1; } -function Tn(e = !1) { +function An(e = !1) { return { isActive: e, protectedKeys: {}, @@ -13920,29 +14159,29 @@ function Tn(e = !1) { prevResolvedValues: {} }; } -function _M() { +function xM() { return { - animate: Tn(!0), - whileInView: Tn(), - whileHover: Tn(), - whileTap: Tn(), - whileDrag: Tn(), - whileFocus: Tn(), - exit: Tn() + animate: An(!0), + whileInView: An(), + whileHover: An(), + whileTap: An(), + whileDrag: An(), + whileFocus: An(), + exit: An() }; } -class kM extends wn { +class SM extends Cn { /** * We dynamically generate the AnimationState manager as it contains a reference * to the underlying animation library. We only want to load that if we load this, * so people can optionally code split it out using the `m` component. */ constructor(t) { - super(t), t.animationState || (t.animationState = wM(t)); + super(t), t.animationState || (t.animationState = bM(t)); } updateAnimationControlsSubscription() { const { animate: t } = this.node.getProps(); - this.unmount(), Zs(t) && (this.unmount = t.subscribe(this.node)); + this.unmount(), Ks(t) && (this.unmount = t.subscribe(this.node)); } /** * Subscribe any provided AnimationControls to the component's VisualElement @@ -13957,10 +14196,10 @@ class kM extends wn { unmount() { } } -let EM = 0; -class PM extends wn { +let wM = 0; +class CM extends Cn { constructor() { - super(...arguments), this.id = EM++; + super(...arguments), this.id = wM++; } update() { if (!this.node.presenceContext) @@ -13978,24 +14217,24 @@ class PM extends wn { unmount() { } } -const TM = { +const _M = { animation: { - Feature: kM + Feature: SM }, exit: { - Feature: PM + Feature: CM } -}, Jp = (e, t) => Math.abs(e - t); -function AM(e, t) { - const r = Jp(e.x, t.x), n = Jp(e.y, t.y); +}, Zp = (e, t) => Math.abs(e - t); +function kM(e, t) { + const r = Zp(e.x, t.x), n = Zp(e.y, t.y); return Math.sqrt(r ** 2 + n ** 2); } -class Gg { +class Hg { constructor(t, r, { transformPagePoint: n } = {}) { if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => { if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return; - const c = ac(this.lastMoveEventInfo, this.history), u = this.startEvent !== null, d = AM(c.offset, { x: 0, y: 0 }) >= 3; + const c = nc(this.lastMoveEventInfo, this.history), u = this.startEvent !== null, d = kM(c.offset, { x: 0, y: 0 }) >= 3; if (!u && !d) return; const { point: f } = c, { timestamp: p } = it; @@ -14003,57 +14242,57 @@ class Gg { const { onStart: m, onMove: h } = this.handlers; u || (m && m(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), h && h(this.lastMoveEvent, c); }, this.handlePointerMove = (c, u) => { - this.lastMoveEvent = c, this.lastMoveEventInfo = oc(u, this.transformPagePoint), tt.update(this.updatePoint, !0); + this.lastMoveEvent = c, this.lastMoveEventInfo = rc(u, this.transformPagePoint), tt.update(this.updatePoint, !0); }, this.handlePointerUp = (c, u) => { if (this.end(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return; - const { onEnd: d, onSessionEnd: f } = this.handlers, p = ac(c.type === "pointercancel" ? this.lastMoveEventInfo : oc(u, this.transformPagePoint), this.history); + const { onEnd: d, onSessionEnd: f } = this.handlers, p = nc(c.type === "pointercancel" ? this.lastMoveEventInfo : rc(u, this.transformPagePoint), this.history); this.startEvent && d && d(c, p), f && f(c, p); - }, !cg(t)) + }, !ig(t)) return; this.handlers = r, this.transformPagePoint = n; - const o = el(t), a = oc(o, this.transformPagePoint), { point: i } = a, { timestamp: s } = it; + const o = Qs(t), a = rc(o, this.transformPagePoint), { point: i } = a, { timestamp: s } = it; this.history = [{ ...i, timestamp: s }]; const { onSessionStart: l } = r; - l && l(t, ac(a, this.history)), this.removeListeners = mn(Kr(window, "pointermove", this.handlePointerMove), Kr(window, "pointerup", this.handlePointerUp), Kr(window, "pointercancel", this.handlePointerUp)); + l && l(t, nc(a, this.history)), this.removeListeners = vn(Zr(window, "pointermove", this.handlePointerMove), Zr(window, "pointerup", this.handlePointerUp), Zr(window, "pointercancel", this.handlePointerUp)); } updateHandlers(t) { this.handlers = t; } end() { - this.removeListeners && this.removeListeners(), rn(this.updatePoint); + this.removeListeners && this.removeListeners(), nn(this.updatePoint); } } -function oc(e, t) { +function rc(e, t) { return t ? { point: t(e.point) } : e; } -function Qp(e, t) { +function Jp(e, t) { return { x: e.x - t.x, y: e.y - t.y }; } -function ac({ point: e }, t) { +function nc({ point: e }, t) { return { point: e, - delta: Qp(e, Xg(t)), - offset: Qp(e, OM(t)), - velocity: $M(t, 0.1) + delta: Jp(e, Yg(t)), + offset: Jp(e, EM(t)), + velocity: PM(t, 0.1) }; } -function OM(e) { +function EM(e) { return e[0]; } -function Xg(e) { +function Yg(e) { return e[e.length - 1]; } -function $M(e, t) { +function PM(e, t) { if (e.length < 2) return { x: 0, y: 0 }; let r = e.length - 1, n = null; - const o = Xg(e); - for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > vn(t))); ) + const o = Yg(e); + for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > gn(t))); ) r--; if (!n) return { x: 0, y: 0 }; - const a = Zr(o.timestamp - n.timestamp); + const a = Jr(o.timestamp - n.timestamp); if (a === 0) return { x: 0, y: 0 }; const i = { @@ -14065,102 +14304,102 @@ function $M(e, t) { function Qt(e) { return e.max - e.min; } -function ru(e, t = 0, r = 0.01) { +function tu(e, t = 0, r = 0.01) { return Math.abs(e - t) <= r; } -function eh(e, t, r, n = 0.5) { - e.origin = n, e.originPoint = st(t.min, t.max, e.origin), e.scale = Qt(r) / Qt(t), (ru(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = st(r.min, r.max, e.origin) - e.originPoint, (ru(e.translate) || isNaN(e.translate)) && (e.translate = 0); +function Qp(e, t, r, n = 0.5) { + e.origin = n, e.originPoint = st(t.min, t.max, e.origin), e.scale = Qt(r) / Qt(t), (tu(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = st(r.min, r.max, e.origin) - e.originPoint, (tu(e.translate) || isNaN(e.translate)) && (e.translate = 0); } -function ya(e, t, r, n) { - eh(e.x, t.x, r.x, n ? n.originX : void 0), eh(e.y, t.y, r.y, n ? n.originY : void 0); +function Sa(e, t, r, n) { + Qp(e.x, t.x, r.x, n ? n.originX : void 0), Qp(e.y, t.y, r.y, n ? n.originY : void 0); } -function th(e, t, r) { +function eh(e, t, r) { e.min = r.min + t.min, e.max = e.min + Qt(t); } -function RM(e, t, r) { - th(e.x, t.x, r.x), th(e.y, t.y, r.y); +function TM(e, t, r) { + eh(e.x, t.x, r.x), eh(e.y, t.y, r.y); } -function rh(e, t, r) { +function th(e, t, r) { e.min = t.min - r.min, e.max = e.min + Qt(t); } -function xa(e, t, r) { - rh(e.x, t.x, r.x), rh(e.y, t.y, r.y); +function wa(e, t, r) { + th(e.x, t.x, r.x), th(e.y, t.y, r.y); } -function DM(e, { min: t, max: r }, n) { +function AM(e, { min: t, max: r }, n) { return t !== void 0 && e < t ? e = n ? st(t, e, n.min) : Math.max(e, t) : r !== void 0 && e > r && (e = n ? st(r, e, n.max) : Math.min(e, r)), e; } -function nh(e, t, r) { +function rh(e, t, r) { return { min: t !== void 0 ? e.min + t : void 0, max: r !== void 0 ? e.max + r - (e.max - e.min) : void 0 }; } -function MM(e, { top: t, left: r, bottom: n, right: o }) { +function OM(e, { top: t, left: r, bottom: n, right: o }) { return { - x: nh(e.x, r, o), - y: nh(e.y, t, n) + x: rh(e.x, r, o), + y: rh(e.y, t, n) }; } -function oh(e, t) { +function nh(e, t) { let r = t.min - e.min, n = t.max - e.max; return t.max - t.min < e.max - e.min && ([r, n] = [n, r]), { min: r, max: n }; } -function IM(e, t) { +function RM(e, t) { return { - x: oh(e.x, t.x), - y: oh(e.y, t.y) + x: nh(e.x, t.x), + y: nh(e.y, t.y) }; } -function FM(e, t) { +function $M(e, t) { let r = 0.5; const n = Qt(e), o = Qt(t); - return o > n ? r = Ua(t.min, t.max - n, e.min) : n > o && (r = Ua(e.min, e.max - o, t.min)), yn(0, 1, r); + return o > n ? r = Ha(t.min, t.max - n, e.min) : n > o && (r = Ha(e.min, e.max - o, t.min)), xn(0, 1, r); } -function NM(e, t) { +function DM(e, t) { const r = {}; return t.min !== void 0 && (r.min = t.min - e.min), t.max !== void 0 && (r.max = t.max - e.min), r; } -const nu = 0.35; -function jM(e = nu) { - return e === !1 ? e = 0 : e === !0 && (e = nu), { - x: ah(e, "left", "right"), - y: ah(e, "top", "bottom") +const ru = 0.35; +function MM(e = ru) { + return e === !1 ? e = 0 : e === !0 && (e = ru), { + x: oh(e, "left", "right"), + y: oh(e, "top", "bottom") }; } -function ah(e, t, r) { +function oh(e, t, r) { return { - min: ih(e, t), - max: ih(e, r) + min: ah(e, t), + max: ah(e, r) }; } -function ih(e, t) { +function ah(e, t) { return typeof e == "number" ? e : e[t] || 0; } -const sh = () => ({ +const ih = () => ({ translate: 0, scale: 1, origin: 0, originPoint: 0 -}), uo = () => ({ +}), fo = () => ({ + x: ih(), + y: ih() +}), sh = () => ({ min: 0, max: 0 }), mt = () => ({ x: sh(), y: sh() -}), lh = () => ({ min: 0, max: 0 }), mt = () => ({ - x: lh(), - y: lh() }); -function Ar(e) { +function Or(e) { return [e("x"), e("y")]; } -function Kg({ top: e, left: t, right: r, bottom: n }) { +function qg({ top: e, left: t, right: r, bottom: n }) { return { x: { min: t, max: r }, y: { min: e, max: n } }; } -function BM({ x: e, y: t }) { +function IM({ x: e, y: t }) { return { top: t.min, right: e.max, bottom: t.max, left: e.min }; } -function zM(e, t) { +function FM(e, t) { if (!t) return e; const r = t({ x: e.left, y: e.top }), n = t({ x: e.right, y: e.bottom }); @@ -14171,35 +14410,35 @@ function zM(e, t) { right: n.x }; } -function ic(e) { +function oc(e) { return e === void 0 || e === 1; } -function ou({ scale: e, scaleX: t, scaleY: r }) { - return !ic(e) || !ic(t) || !ic(r); +function nu({ scale: e, scaleX: t, scaleY: r }) { + return !oc(e) || !oc(t) || !oc(r); } -function On(e) { - return ou(e) || Zg(e) || e.z || e.rotate || e.rotateX || e.rotateY; +function Rn(e) { + return nu(e) || Gg(e) || e.z || e.rotate || e.rotateX || e.rotateY; } -function Zg(e) { - return ch(e.x) || ch(e.y); +function Gg(e) { + return lh(e.x) || lh(e.y); } -function ch(e) { +function lh(e) { return e && e !== "0%"; } -function Es(e, t, r) { +function ks(e, t, r) { const n = e - r, o = t * n; return r + o; } -function uh(e, t, r, n, o) { - return o !== void 0 && (e = Es(e, o, n)), Es(e, r, n) + t; +function ch(e, t, r, n, o) { + return o !== void 0 && (e = ks(e, o, n)), ks(e, r, n) + t; } -function au(e, t = 0, r = 1, n, o) { - e.min = uh(e.min, t, r, n, o), e.max = uh(e.max, t, r, n, o); +function ou(e, t = 0, r = 1, n, o) { + e.min = ch(e.min, t, r, n, o), e.max = ch(e.max, t, r, n, o); } -function Jg(e, { x: t, y: r }) { - au(e.x, t.translate, t.scale, t.originPoint), au(e.y, r.translate, r.scale, r.originPoint); +function Xg(e, { x: t, y: r }) { + ou(e.x, t.translate, t.scale, t.originPoint), ou(e.y, r.translate, r.scale, r.originPoint); } -function VM(e, t, r, n = !1) { +function NM(e, t, r, n = !1) { const o = r.length; if (!o) return; @@ -14208,36 +14447,36 @@ function VM(e, t, r, n = !1) { for (let s = 0; s < o; s++) { a = r[s], i = a.projectionDelta; const l = a.instance; - l && l.style && l.style.display === "contents" || (n && a.options.layoutScroll && a.scroll && a !== a.root && fo(e, { + l && l.style && l.style.display === "contents" || (n && a.options.layoutScroll && a.scroll && a !== a.root && po(e, { x: -a.scroll.offset.x, y: -a.scroll.offset.y - }), i && (t.x *= i.x.scale, t.y *= i.y.scale, Jg(e, i)), n && On(a.latestValues) && fo(e, a.latestValues)); + }), i && (t.x *= i.x.scale, t.y *= i.y.scale, Xg(e, i)), n && Rn(a.latestValues) && po(e, a.latestValues)); } - t.x = dh(t.x), t.y = dh(t.y); + t.x = uh(t.x), t.y = uh(t.y); } -function dh(e) { +function uh(e) { return Number.isInteger(e) || e > 1.0000000000001 || e < 0.999999999999 ? e : 1; } -function fn(e, t) { +function pn(e, t) { e.min = e.min + t, e.max = e.max + t; } -function fh(e, t, [r, n, o]) { +function dh(e, t, [r, n, o]) { const a = t[o] !== void 0 ? t[o] : 0.5, i = st(e.min, e.max, a); - au(e, t[r], t[n], i, t.scale); + ou(e, t[r], t[n], i, t.scale); } -const LM = ["x", "scaleX", "originX"], WM = ["y", "scaleY", "originY"]; -function fo(e, t) { - fh(e.x, t, LM), fh(e.y, t, WM); +const jM = ["x", "scaleX", "originX"], BM = ["y", "scaleY", "originY"]; +function po(e, t) { + dh(e.x, t, jM), dh(e.y, t, BM); } -function Qg(e, t) { - return Kg(zM(e.getBoundingClientRect(), t)); +function Kg(e, t) { + return qg(FM(e.getBoundingClientRect(), t)); } -function UM(e, t, r) { - const n = Qg(e, r), { scroll: o } = t; - return o && (fn(n.x, o.offset.x), fn(n.y, o.offset.y)), n; +function zM(e, t, r) { + const n = Kg(e, r), { scroll: o } = t; + return o && (pn(n.x, o.offset.x), pn(n.y, o.offset.y)), n; } -const HM = /* @__PURE__ */ new WeakMap(); -class YM { +const VM = /* @__PURE__ */ new WeakMap(); +class LM { constructor(t) { this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = mt(), this.visualElement = t; } @@ -14246,14 +14485,14 @@ class YM { if (n && n.isPresent === !1) return; const o = (l) => { - this.stopAnimation(), r && this.snapToCursor(el(l, "page").point); + this.stopAnimation(), r && this.snapToCursor(Qs(l, "page").point); }, a = (l, c) => { const { drag: u, dragPropagation: d, onDragStart: f } = this.getProps(); - if (u && !d && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = dg(u), !this.openGlobalLock)) + if (u && !d && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = lg(u), !this.openGlobalLock)) return; - this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ar((m) => { + this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Or((m) => { let h = this.getAxisMotionValue(m).get() || 0; - if (Ir.test(h)) { + if (Fr.test(h)) { const { projection: v } = this.visualElement; if (v && v.layout) { const b = v.layout.layoutBox[m]; @@ -14270,12 +14509,12 @@ class YM { return; const { offset: m } = c; if (d && this.currentDirection === null) { - this.currentDirection = qM(m), this.currentDirection !== null && f && f(this.currentDirection); + this.currentDirection = WM(m), this.currentDirection !== null && f && f(this.currentDirection); return; } this.updateAxis("x", c.point, m), this.updateAxis("y", c.point, m), this.visualElement.render(), p && p(l, c); }, s = (l, c) => this.stop(l, c); - this.panSession = new Gg(t, { + this.panSession = new Hg(t, { onSessionStart: o, onStart: a, onMove: i, @@ -14300,38 +14539,38 @@ class YM { } updateAxis(t, r, n) { const { drag: o } = this.getProps(); - if (!n || !$i(t, o, this.currentDirection)) + if (!n || !Ri(t, o, this.currentDirection)) return; const a = this.getAxisMotionValue(t); let i = this.originPoint[t] + n[t]; - this.constraints && this.constraints[t] && (i = DM(i, this.constraints[t], this.elastic[t])), a.set(i); + this.constraints && this.constraints[t] && (i = AM(i, this.constraints[t], this.elastic[t])), a.set(i); } resolveConstraints() { const { dragConstraints: t, dragElastic: r } = this.getProps(), { layout: n } = this.visualElement.projection || {}, o = this.constraints; - t && lo(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = MM(n.layoutBox, t) : this.constraints = !1, this.elastic = jM(r), o !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && Ar((a) => { - this.getAxisMotionValue(a) && (this.constraints[a] = NM(n.layoutBox[a], this.constraints[a])); + t && co(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = OM(n.layoutBox, t) : this.constraints = !1, this.elastic = MM(r), o !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && Or((a) => { + this.getAxisMotionValue(a) && (this.constraints[a] = DM(n.layoutBox[a], this.constraints[a])); }); } resolveRefConstraints() { const { dragConstraints: t, onMeasureDragConstraints: r } = this.getProps(); - if (!t || !lo(t)) + if (!t || !co(t)) return !1; const n = t.current; wr(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."); const { projection: o } = this.visualElement; if (!o || !o.layout) return !1; - const a = UM(n, o.root, this.visualElement.getTransformPagePoint()); - let i = IM(o.layout.layoutBox, a); + const a = zM(n, o.root, this.visualElement.getTransformPagePoint()); + let i = RM(o.layout.layoutBox, a); if (r) { - const s = r(BM(i)); - this.hasMutatedConstraints = !!s, s && (i = Kg(s)); + const s = r(IM(i)); + this.hasMutatedConstraints = !!s, s && (i = qg(s)); } return i; } startAnimation(t) { - const { drag: r, dragMomentum: n, dragElastic: o, dragTransition: a, dragSnapToOrigin: i, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = Ar((u) => { - if (!$i(u, r, this.currentDirection)) + const { drag: r, dragMomentum: n, dragElastic: o, dragTransition: a, dragSnapToOrigin: i, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = Or((u) => { + if (!Ri(u, r, this.currentDirection)) return; let d = l && l[u] || {}; i && (d = { min: 0, max: 0 }); @@ -14352,10 +14591,10 @@ class YM { } startAxisValueAnimation(t, r) { const n = this.getAxisMotionValue(t); - return n.start(hd(t, n, 0, r)); + return n.start(fd(t, n, 0, r)); } stopAnimation() { - Ar((t) => this.getAxisMotionValue(t).stop()); + Or((t) => this.getAxisMotionValue(t).stop()); } /** * Drag works differently depending on which props are provided. @@ -14368,9 +14607,9 @@ class YM { return o || this.visualElement.getValue(t, (n.initial ? n.initial[t] : void 0) || 0); } snapToCursor(t) { - Ar((r) => { + Or((r) => { const { drag: n } = this.getProps(); - if (!$i(r, n, this.currentDirection)) + if (!Ri(r, n, this.currentDirection)) return; const { projection: o } = this.visualElement, a = this.getAxisMotionValue(r); if (o && o.layout) { @@ -14388,20 +14627,20 @@ class YM { if (!this.visualElement.current) return; const { drag: t, dragConstraints: r } = this.getProps(), { projection: n } = this.visualElement; - if (!lo(r) || !n || !this.constraints) + if (!co(r) || !n || !this.constraints) return; this.stopAnimation(); const o = { x: 0, y: 0 }; - Ar((i) => { + Or((i) => { const s = this.getAxisMotionValue(i); if (s) { const l = s.get(); - o[i] = FM({ min: l, max: l }, this.constraints[i]); + o[i] = $M({ min: l, max: l }, this.constraints[i]); } }); const { transformTemplate: a } = this.visualElement.getProps(); - this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.resolveConstraints(), Ar((i) => { - if (!$i(i, t, null)) + this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.resolveConstraints(), Or((i) => { + if (!Ri(i, t, null)) return; const s = this.getAxisMotionValue(i), { min: l, max: c } = this.constraints[i]; s.set(st(l, c, o[i])); @@ -14410,17 +14649,17 @@ class YM { addListeners() { if (!this.visualElement.current) return; - HM.set(this.visualElement, this); - const t = this.visualElement.current, r = Kr(t, "pointerdown", (l) => { + VM.set(this.visualElement, this); + const t = this.visualElement.current, r = Zr(t, "pointerdown", (l) => { const { drag: c, dragListener: u = !0 } = this.getProps(); c && u && this.start(l); }), n = () => { const { dragConstraints: l } = this.getProps(); - lo(l) && (this.constraints = this.resolveRefConstraints()); + co(l) && (this.constraints = this.resolveRefConstraints()); }, { projection: o } = this.visualElement, a = o.addEventListener("measure", n); o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), n(); - const i = Gr(window, "resize", () => this.scalePositionWithinConstraints()), s = o.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => { - this.isDragging && c && (Ar((u) => { + const i = Xr(window, "resize", () => this.scalePositionWithinConstraints()), s = o.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => { + this.isDragging && c && (Or((u) => { const d = this.getAxisMotionValue(u); d && (this.originPoint[u] += l[u].translate, d.set(d.get() + l[u].translate)); }), this.visualElement.render()); @@ -14430,7 +14669,7 @@ class YM { }; } getProps() { - const t = this.visualElement.getProps(), { drag: r = !1, dragDirectionLock: n = !1, dragPropagation: o = !1, dragConstraints: a = !1, dragElastic: i = nu, dragMomentum: s = !0 } = t; + const t = this.visualElement.getProps(), { drag: r = !1, dragDirectionLock: n = !1, dragPropagation: o = !1, dragConstraints: a = !1, dragElastic: i = ru, dragMomentum: s = !0 } = t; return { ...t, drag: r, @@ -14442,16 +14681,16 @@ class YM { }; } } -function $i(e, t, r) { +function Ri(e, t, r) { return (t === !0 || t === e) && (r === null || r === e); } -function qM(e, t = 10) { +function WM(e, t = 10) { let r = null; return Math.abs(e.y) > t ? r = "y" : Math.abs(e.x) > t && (r = "x"), r; } -class GM extends wn { +class UM extends Cn { constructor(t) { - super(t), this.removeGroupControls = bt, this.removeListeners = bt, this.controls = new YM(t); + super(t), this.removeGroupControls = bt, this.removeListeners = bt, this.controls = new LM(t); } mount() { const { dragControls: t } = this.node.getProps(); @@ -14461,21 +14700,21 @@ class GM extends wn { this.removeGroupControls(), this.removeListeners(); } } -const ph = (e) => (t, r) => { +const fh = (e) => (t, r) => { e && tt.update(() => e(t, r)); }; -class XM extends wn { +class HM extends Cn { constructor() { super(...arguments), this.removePointerDownListener = bt; } onPointerDown(t) { - this.session = new Gg(t, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() }); + this.session = new Hg(t, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() }); } createPanHandlers() { const { onPanSessionStart: t, onPanStart: r, onPan: n, onPanEnd: o } = this.node.getProps(); return { - onSessionStart: ph(t), - onStart: ph(r), + onSessionStart: fh(t), + onStart: fh(r), onMove: n, onEnd: (a, i) => { delete this.session, o && tt.update(() => o(a, i)); @@ -14483,7 +14722,7 @@ class XM extends wn { }; } mount() { - this.removePointerDownListener = Kr(this.node.current, "pointerdown", (t) => this.onPointerDown(t)); + this.removePointerDownListener = Zr(this.node.current, "pointerdown", (t) => this.onPointerDown(t)); } update() { this.session && this.session.updateHandlers(this.createPanHandlers()); @@ -14492,17 +14731,17 @@ class XM extends wn { this.removePointerDownListener(), this.session && this.session.end(); } } -function eb() { +function Zg() { const e = ft(ri); if (e === null) return [!0, null]; const { isPresent: t, onExitComplete: r, register: n } = e, o = _r(); return Fe(() => n(o), []), !t && r ? [!1, () => r && r(o)] : [!0]; } -function GV() { - return KM(ft(ri)); +function VV() { + return YM(ft(ri)); } -function KM(e) { +function YM(e) { return e === null ? !0 : e.isPresent; } const es = { @@ -14517,10 +14756,10 @@ const es = { */ hasEverUpdated: !1 }; -function hh(e, t) { +function ph(e, t) { return t.max === t.min ? 0 : e / (t.max - t.min) * 100; } -const Qo = { +const ea = { correct: (e, t) => { if (!t.target) return e; @@ -14529,21 +14768,21 @@ const Qo = { e = parseFloat(e); else return e; - const r = hh(e, t.target.x), n = hh(e, t.target.y); + const r = ph(e, t.target.x), n = ph(e, t.target.y); return `${r}% ${n}%`; } -}, ZM = { +}, qM = { correct: (e, { treeScale: t, projectionDelta: r }) => { - const n = e, o = xn.parse(e); + const n = e, o = Sn.parse(e); if (o.length > 5) return n; - const a = xn.createTransformer(e), i = typeof o[0] != "number" ? 1 : 0, s = r.x.scale * t.x, l = r.y.scale * t.y; + const a = Sn.createTransformer(e), i = typeof o[0] != "number" ? 1 : 0, s = r.x.scale * t.x, l = r.y.scale * t.y; o[0 + i] /= s, o[1 + i] /= l; const c = st(s, l, 0.5); return typeof o[2 + i] == "number" && (o[2 + i] /= c), typeof o[3 + i] == "number" && (o[3 + i] /= c), a(o); } }; -class JM extends It.Component { +class GM extends It.Component { /** * This only mounts projection nodes for components that * need measuring, we might want to do it for all components @@ -14551,7 +14790,7 @@ class JM extends It.Component { */ componentDidMount() { const { visualElement: t, layoutGroup: r, switchLayoutGroup: n, layoutId: o } = this.props, { projection: a } = t; - s2(QM), a && (r.group && r.group.add(a), n && n.register && o && n.register(a), a.root.didUpdate(), a.addEventListener("animationComplete", () => { + n2(XM), a && (r.group && r.group.add(a), n && n.register && o && n.register(a), a.root.didUpdate(), a.addEventListener("animationComplete", () => { this.safeToRemove(); }), a.setOptions({ ...a.options, @@ -14583,13 +14822,13 @@ class JM extends It.Component { return null; } } -function tb(e) { - const [t, r] = eb(), n = ft(td); - return It.createElement(JM, { ...e, layoutGroup: n, switchLayoutGroup: ft(Gv), isPresent: t, safeToRemove: r }); +function Jg(e) { + const [t, r] = Zg(), n = ft(Qu); + return It.createElement(GM, { ...e, layoutGroup: n, switchLayoutGroup: ft(Hv), isPresent: t, safeToRemove: r }); } -const QM = { +const XM = { borderRadius: { - ...Qo, + ...ea, applyTo: [ "borderTopLeftRadius", "borderTopRightRadius", @@ -14597,78 +14836,78 @@ const QM = { "borderBottomRightRadius" ] }, - borderTopLeftRadius: Qo, - borderTopRightRadius: Qo, - borderBottomLeftRadius: Qo, - borderBottomRightRadius: Qo, - boxShadow: ZM -}, rb = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], eI = rb.length, mh = (e) => typeof e == "string" ? parseFloat(e) : e, vh = (e) => typeof e == "number" || pe.test(e); -function tI(e, t, r, n, o, a) { + borderTopLeftRadius: ea, + borderTopRightRadius: ea, + borderBottomLeftRadius: ea, + borderBottomRightRadius: ea, + boxShadow: qM +}, Qg = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], KM = Qg.length, hh = (e) => typeof e == "string" ? parseFloat(e) : e, mh = (e) => typeof e == "number" || pe.test(e); +function ZM(e, t, r, n, o, a) { o ? (e.opacity = st( 0, // TODO Reinstate this if only child r.opacity !== void 0 ? r.opacity : 1, - rI(n) - ), e.opacityExit = st(t.opacity !== void 0 ? t.opacity : 1, 0, nI(n))) : a && (e.opacity = st(t.opacity !== void 0 ? t.opacity : 1, r.opacity !== void 0 ? r.opacity : 1, n)); - for (let i = 0; i < eI; i++) { - const s = `border${rb[i]}Radius`; - let l = gh(t, s), c = gh(r, s); + JM(n) + ), e.opacityExit = st(t.opacity !== void 0 ? t.opacity : 1, 0, QM(n))) : a && (e.opacity = st(t.opacity !== void 0 ? t.opacity : 1, r.opacity !== void 0 ? r.opacity : 1, n)); + for (let i = 0; i < KM; i++) { + const s = `border${Qg[i]}Radius`; + let l = vh(t, s), c = vh(r, s); if (l === void 0 && c === void 0) continue; - l || (l = 0), c || (c = 0), l === 0 || c === 0 || vh(l) === vh(c) ? (e[s] = Math.max(st(mh(l), mh(c), n), 0), (Ir.test(c) || Ir.test(l)) && (e[s] += "%")) : e[s] = c; + l || (l = 0), c || (c = 0), l === 0 || c === 0 || mh(l) === mh(c) ? (e[s] = Math.max(st(hh(l), hh(c), n), 0), (Fr.test(c) || Fr.test(l)) && (e[s] += "%")) : e[s] = c; } (t.rotate || r.rotate) && (e.rotate = st(t.rotate || 0, r.rotate || 0, n)); } -function gh(e, t) { +function vh(e, t) { return e[t] !== void 0 ? e[t] : e.borderRadius; } -const rI = nb(0, 0.5, ud), nI = nb(0.5, 0.95, bt); -function nb(e, t, r) { - return (n) => n < e ? 0 : n > t ? 1 : r(Ua(e, t, n)); +const JM = eb(0, 0.5, ld), QM = eb(0.5, 0.95, bt); +function eb(e, t, r) { + return (n) => n < e ? 0 : n > t ? 1 : r(Ha(e, t, n)); } -function bh(e, t) { +function gh(e, t) { e.min = t.min, e.max = t.max; } function nr(e, t) { - bh(e.x, t.x), bh(e.y, t.y); + gh(e.x, t.x), gh(e.y, t.y); } -function yh(e, t, r, n, o) { - return e -= t, e = Es(e, 1 / r, n), o !== void 0 && (e = Es(e, 1 / o, n)), e; +function bh(e, t, r, n, o) { + return e -= t, e = ks(e, 1 / r, n), o !== void 0 && (e = ks(e, 1 / o, n)), e; } -function oI(e, t = 0, r = 1, n = 0.5, o, a = e, i = e) { - if (Ir.test(t) && (t = parseFloat(t), t = st(i.min, i.max, t / 100) - i.min), typeof t != "number") +function eI(e, t = 0, r = 1, n = 0.5, o, a = e, i = e) { + if (Fr.test(t) && (t = parseFloat(t), t = st(i.min, i.max, t / 100) - i.min), typeof t != "number") return; let s = st(a.min, a.max, n); - e === a && (s -= t), e.min = yh(e.min, t, r, s, o), e.max = yh(e.max, t, r, s, o); + e === a && (s -= t), e.min = bh(e.min, t, r, s, o), e.max = bh(e.max, t, r, s, o); } -function xh(e, t, [r, n, o], a, i) { - oI(e, t[r], t[n], t[o], t.scale, a, i); +function yh(e, t, [r, n, o], a, i) { + eI(e, t[r], t[n], t[o], t.scale, a, i); } -const aI = ["x", "scaleX", "originX"], iI = ["y", "scaleY", "originY"]; -function Sh(e, t, r, n) { - xh(e.x, t, aI, r ? r.x : void 0, n ? n.x : void 0), xh(e.y, t, iI, r ? r.y : void 0, n ? n.y : void 0); +const tI = ["x", "scaleX", "originX"], rI = ["y", "scaleY", "originY"]; +function xh(e, t, r, n) { + yh(e.x, t, tI, r ? r.x : void 0, n ? n.x : void 0), yh(e.y, t, rI, r ? r.y : void 0, n ? n.y : void 0); } -function wh(e) { +function Sh(e) { return e.translate === 0 && e.scale === 1; } -function ob(e) { - return wh(e.x) && wh(e.y); +function tb(e) { + return Sh(e.x) && Sh(e.y); } -function iu(e, t) { +function au(e, t) { return e.x.min === t.x.min && e.x.max === t.x.max && e.y.min === t.y.min && e.y.max === t.y.max; } -function Ch(e) { +function wh(e) { return Qt(e.x) / Qt(e.y); } -class sI { +class nI { constructor() { this.members = []; } add(t) { - md(this.members, t), t.scheduleRender(); + pd(this.members, t), t.scheduleRender(); } remove(t) { - if (vd(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) { + if (hd(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) { const r = this.members[this.members.length - 1]; r && this.promote(r); } @@ -14714,7 +14953,7 @@ class sI { this.lead && this.lead.snapshot && (this.lead.snapshot = void 0); } } -function _h(e, t, r) { +function Ch(e, t, r) { let n = ""; const o = e.x.translate / t.x, a = e.y.translate / t.y; if ((o || a) && (n = `translate3d(${o}px, ${a}px, 0) `), (t.x !== 1 || t.y !== 1) && (n += `scale(${1 / t.x}, ${1 / t.y}) `), r) { @@ -14724,60 +14963,60 @@ function _h(e, t, r) { const i = e.x.scale * t.x, s = e.y.scale * t.y; return (i !== 1 || s !== 1) && (n += `scale(${i}, ${s})`), n || "none"; } -const lI = (e, t) => e.depth - t.depth; -class cI { +const oI = (e, t) => e.depth - t.depth; +class aI { constructor() { this.children = [], this.isDirty = !1; } add(t) { - md(this.children, t), this.isDirty = !0; + pd(this.children, t), this.isDirty = !0; } remove(t) { - vd(this.children, t), this.isDirty = !0; + hd(this.children, t), this.isDirty = !0; } forEach(t) { - this.isDirty && this.children.sort(lI), this.isDirty = !1, this.children.forEach(t); + this.isDirty && this.children.sort(oI), this.isDirty = !1, this.children.forEach(t); } } -function uI(e, t) { +function iI(e, t) { const r = performance.now(), n = ({ timestamp: o }) => { const a = o - r; - a >= t && (rn(n), e(a - t)); + a >= t && (nn(n), e(a - t)); }; - return tt.read(n, !0), () => rn(n); + return tt.read(n, !0), () => nn(n); } -function dI(e) { +function sI(e) { window.MotionDebug && window.MotionDebug.record(e); } -function fI(e) { +function lI(e) { return e instanceof SVGElement && e.tagName !== "svg"; } -function pI(e, t, r) { - const n = Yt(e) ? e : Oo(e); - return n.start(hd("", n, t, r)), n.animation; +function cI(e, t, r) { + const n = Yt(e) ? e : Ro(e); + return n.start(fd("", n, t, r)), n.animation; } -const kh = ["", "X", "Y", "Z"], Eh = 1e3; -let hI = 0; +const _h = ["", "X", "Y", "Z"], kh = 1e3; +let uI = 0; const $n = { type: "projectionFrame", totalNodes: 0, resolvedTargetDeltas: 0, recalculatedProjection: 0 }; -function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: n, resetTransform: o }) { +function rb({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: n, resetTransform: o }) { return class { constructor(i = {}, s = t == null ? void 0 : t()) { - this.id = hI++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.checkUpdateFailed = () => { + this.id = uI++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.checkUpdateFailed = () => { this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots()); }, this.updateProjection = () => { - $n.totalNodes = $n.resolvedTargetDeltas = $n.recalculatedProjection = 0, this.nodes.forEach(gI), this.nodes.forEach(wI), this.nodes.forEach(CI), this.nodes.forEach(bI), dI($n); + $n.totalNodes = $n.resolvedTargetDeltas = $n.recalculatedProjection = 0, this.nodes.forEach(pI), this.nodes.forEach(bI), this.nodes.forEach(yI), this.nodes.forEach(hI), sI($n); }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = i, this.root = s ? s.root || s : this, this.path = s ? [...s.path, s] : [], this.parent = s, this.depth = s ? s.depth + 1 : 0; for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0; - this.root === this && (this.nodes = new cI()); + this.root === this && (this.nodes = new aI()); } addEventListener(i, s) { - return this.eventHandlers.has(i) || this.eventHandlers.set(i, new gd()), this.eventHandlers.get(i).add(s); + return this.eventHandlers.has(i) || this.eventHandlers.set(i, new md()), this.eventHandlers.get(i).add(s); } notifyListeners(i, ...s) { const l = this.eventHandlers.get(i); @@ -14792,13 +15031,13 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check mount(i, s = this.root.hasTreeAnimated) { if (this.instance) return; - this.isSVG = fI(i), this.instance = i; + this.isSVG = lI(i), this.instance = i; const { layoutId: l, layout: c, visualElement: u } = this.options; if (u && !u.current && u.mount(i), this.root.nodes.add(this), this.parent && this.parent.children.add(this), s && (c || l) && (this.isLayoutDirty = !0), e) { let d; const f = () => this.root.updateBlockedByResize = !1; e(i, () => { - this.root.updateBlockedByResize = !0, d && d(), d = uI(f, 250), es.hasAnimatedSinceResize && (es.hasAnimatedSinceResize = !1, this.nodes.forEach(Th)); + this.root.updateBlockedByResize = !0, d && d(), d = iI(f, 250), es.hasAnimatedSinceResize && (es.hasAnimatedSinceResize = !1, this.nodes.forEach(Ph)); }); } l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: f, hasRelativeTargetChanged: p, layout: m }) => { @@ -14806,24 +15045,24 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check this.target = void 0, this.relativeTarget = void 0; return; } - const h = this.options.transition || u.getDefaultTransition() || TI, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !iu(this.targetLayout, m) || p, S = !f && p; + const h = this.options.transition || u.getDefaultTransition() || _I, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !au(this.targetLayout, m) || p, S = !f && p; if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || S || f && (y || !this.currentAnimation)) { this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, S); - const k = { - ...Ug(h, "layout"), + const _ = { + ...Vg(h, "layout"), onPlay: v, onComplete: b }; - (u.shouldReduceMotion || this.options.layoutRoot) && (k.delay = 0, k.type = !1), this.startAnimation(k); + (u.shouldReduceMotion || this.options.layoutRoot) && (_.delay = 0, _.type = !1), this.startAnimation(_); } else - f || Th(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete(); + f || Ph(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete(); this.targetLayout = m; }); } unmount() { this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this); const i = this.getStack(); - i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, rn(this.updateProjection); + i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, nn(this.updateProjection); } // only on the root blockUpdate() { @@ -14840,7 +15079,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check } // Note: currently only running on root node startUpdate() { - this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(_I), this.animationId++); + this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(xI), this.animationId++); } getTransformTemplate() { const { visualElement: i } = this.options; @@ -14866,18 +15105,18 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check } update() { if (this.updateScheduled = !1, this.isUpdateBlocked()) { - this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ph); + this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Eh); return; } - this.isUpdating || this.nodes.forEach(xI), this.isUpdating = !1, this.nodes.forEach(SI), this.nodes.forEach(mI), this.nodes.forEach(vI), this.clearAllSnapshots(); + this.isUpdating || this.nodes.forEach(vI), this.isUpdating = !1, this.nodes.forEach(gI), this.nodes.forEach(dI), this.nodes.forEach(fI), this.clearAllSnapshots(); const s = performance.now(); - it.delta = yn(0, 1e3 / 60, s - it.timestamp), it.timestamp = s, it.isProcessing = !0, xo.update.process(it), xo.preRender.process(it), xo.render.process(it), it.isProcessing = !1; + it.delta = xn(0, 1e3 / 60, s - it.timestamp), it.timestamp = s, it.isProcessing = !0, So.update.process(it), So.preRender.process(it), So.render.process(it), it.isProcessing = !1; } didUpdate() { this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update())); } clearAllSnapshots() { - this.nodes.forEach(yI), this.sharedNodes.forEach(kI); + this.nodes.forEach(mI), this.sharedNodes.forEach(SI); } scheduleUpdateProjection() { tt.preRender(this.updateProjection, !1, !0); @@ -14916,13 +15155,13 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check resetTransform() { if (!o) return; - const i = this.isLayoutDirty || this.shouldResetTransform, s = this.projectionDelta && !ob(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue; - i && (s || On(this.latestValues) || u) && (o(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender()); + const i = this.isLayoutDirty || this.shouldResetTransform, s = this.projectionDelta && !tb(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue; + i && (s || Rn(this.latestValues) || u) && (o(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender()); } measure(i = !0) { const s = this.measurePageBox(); let l = this.removeElementScroll(s); - return i && (l = this.removeTransform(l)), AI(l), { + return i && (l = this.removeTransform(l)), kI(l), { animationId: this.root.animationId, measuredBox: s, layoutBox: l, @@ -14935,7 +15174,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check if (!i) return mt(); const s = i.measureViewportBox(), { scroll: l } = this.root; - return l && (fn(s.x, l.offset.x), fn(s.y, l.offset.y)), s; + return l && (pn(s.x, l.offset.x), pn(s.y, l.offset.y)), s; } removeElementScroll(i) { const s = mt(); @@ -14946,9 +15185,9 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check if (u.isRoot) { nr(s, i); const { scroll: f } = this.root; - f && (fn(s.x, -f.offset.x), fn(s.y, -f.offset.y)); + f && (pn(s.x, -f.offset.x), pn(s.y, -f.offset.y)); } - fn(s.x, u.offset.x), fn(s.y, u.offset.y); + pn(s.x, u.offset.x), pn(s.y, u.offset.y); } } return s; @@ -14958,25 +15197,25 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check nr(l, i); for (let c = 0; c < this.path.length; c++) { const u = this.path[c]; - !s && u.options.layoutScroll && u.scroll && u !== u.root && fo(l, { + !s && u.options.layoutScroll && u.scroll && u !== u.root && po(l, { x: -u.scroll.offset.x, y: -u.scroll.offset.y - }), On(u.latestValues) && fo(l, u.latestValues); + }), Rn(u.latestValues) && po(l, u.latestValues); } - return On(this.latestValues) && fo(l, this.latestValues), l; + return Rn(this.latestValues) && po(l, this.latestValues), l; } removeTransform(i) { const s = mt(); nr(s, i); for (let l = 0; l < this.path.length; l++) { const c = this.path[l]; - if (!c.instance || !On(c.latestValues)) + if (!c.instance || !Rn(c.latestValues)) continue; - ou(c.latestValues) && c.updateSnapshot(); + nu(c.latestValues) && c.updateSnapshot(); const u = mt(), d = c.measurePageBox(); - nr(u, d), Sh(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u); + nr(u, d), xh(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u); } - return On(this.latestValues) && Sh(s, this.latestValues), s; + return Rn(this.latestValues) && xh(s, this.latestValues), s; } setTargetDelta(i) { this.targetDelta = i, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0; @@ -15005,20 +15244,20 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check if (!(!this.layout || !(d || f))) { if (this.resolvedRelativeTargetAt = it.timestamp, !this.targetDelta && !this.relativeTarget) { const p = this.getClosestProjectingParent(); - p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), xa(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; + p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), wa(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; } if (!(!this.relativeTarget && !this.targetDelta)) { - if (this.target || (this.target = mt(), this.targetWithTransforms = mt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), RM(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nr(this.target, this.layout.layoutBox), Jg(this.target, this.targetDelta)) : nr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) { + if (this.target || (this.target = mt(), this.targetWithTransforms = mt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), TM(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nr(this.target, this.layout.layoutBox), Xg(this.target, this.targetDelta)) : nr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) { this.attemptToResolveRelativeTarget = !1; const p = this.getClosestProjectingParent(); - p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), xa(this.relativeTargetOrigin, this.target, p.target), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; + p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), wa(this.relativeTargetOrigin, this.target, p.target), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; } $n.resolvedTargetDeltas++; } } } getClosestProjectingParent() { - if (!(!this.parent || ou(this.parent.latestValues) || Zg(this.parent.latestValues))) + if (!(!this.parent || nu(this.parent.latestValues) || Gg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent(); } isProjecting() { @@ -15035,15 +15274,15 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check return; nr(this.layoutCorrected, this.layout.layoutBox); const f = this.treeScale.x, p = this.treeScale.y; - VM(this.layoutCorrected, this.treeScale, this.path, l), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox); + NM(this.layoutCorrected, this.treeScale, this.path, l), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox); const { target: m } = s; if (!m) { - this.projectionTransform && (this.projectionDelta = uo(), this.projectionTransform = "none", this.scheduleRender()); + this.projectionTransform && (this.projectionDelta = fo(), this.projectionTransform = "none", this.scheduleRender()); return; } - this.projectionDelta || (this.projectionDelta = uo(), this.projectionDeltaWithTransform = uo()); + this.projectionDelta || (this.projectionDelta = fo(), this.projectionDeltaWithTransform = fo()); const h = this.projectionTransform; - ya(this.projectionDelta, this.layoutCorrected, m, this.latestValues), this.projectionTransform = _h(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== f || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), $n.recalculatedProjection++; + Sa(this.projectionDelta, this.layoutCorrected, m, this.latestValues), this.projectionTransform = Ch(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== f || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), $n.recalculatedProjection++; } hide() { this.isVisible = !1; @@ -15059,19 +15298,19 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0); } setAnimationOrigin(i, s = !1) { - const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = uo(); + const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = fo(); (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !s; - const f = mt(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(h && !b && this.options.crossfade === !0 && !this.path.some(PI)); + const f = mt(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(h && !b && this.options.crossfade === !0 && !this.path.some(CI)); this.animationProgress = 0; let S; - this.mixTargetDelta = (k) => { - const w = k / 1e3; - Ah(d.x, i.x, w), Ah(d.y, i.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (xa(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), EI(this.relativeTarget, this.relativeTargetOrigin, f, w), S && iu(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = mt()), nr(S, this.relativeTarget)), h && (this.animationValues = u, tI(u, c, this.latestValues, w, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w; + this.mixTargetDelta = (_) => { + const w = _ / 1e3; + Th(d.x, i.x, w), Th(d.y, i.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (wa(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), wI(this.relativeTarget, this.relativeTargetOrigin, f, w), S && au(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = mt()), nr(S, this.relativeTarget)), h && (this.animationValues = u, ZM(u, c, this.latestValues, w, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w; }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0); } startAnimation(i) { - this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (rn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = tt.update(() => { - es.hasAnimatedSinceResize = !0, this.currentAnimation = pI(0, Eh, { + this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (nn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = tt.update(() => { + es.hasAnimatedSinceResize = !0, this.currentAnimation = cI(0, kh, { ...i, onUpdate: (s) => { this.mixTargetDelta(s), i.onUpdate && i.onUpdate(s); @@ -15088,24 +15327,24 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check i && i.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete"); } finishAnimation() { - this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Eh), this.currentAnimation.stop()), this.completeAnimation(); + this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(kh), this.currentAnimation.stop()), this.completeAnimation(); } applyTransformsToTarget() { const i = this.getLead(); let { targetWithTransforms: s, target: l, layout: c, latestValues: u } = i; if (!(!s || !l || !c)) { - if (this !== i && this.layout && c && ib(this.options.animationType, this.layout.layoutBox, c.layoutBox)) { + if (this !== i && this.layout && c && nb(this.options.animationType, this.layout.layoutBox, c.layoutBox)) { l = this.target || mt(); const d = Qt(this.layout.layoutBox.x); l.x.min = i.target.x.min, l.x.max = l.x.min + d; const f = Qt(this.layout.layoutBox.y); l.y.min = i.target.y.min, l.y.max = l.y.min + f; } - nr(s, l), fo(s, u), ya(this.projectionDeltaWithTransform, this.layoutCorrected, s, u); + nr(s, l), po(s, u), Sa(this.projectionDeltaWithTransform, this.layoutCorrected, s, u); } } registerSharedNode(i, s) { - this.sharedNodes.has(i) || this.sharedNodes.set(i, new sI()), this.sharedNodes.get(i).add(s); + this.sharedNodes.has(i) || this.sharedNodes.set(i, new nI()), this.sharedNodes.get(i).add(s); const c = s.options.initialPromotionConfig; s.promote({ transition: c ? c.transition : void 0, @@ -15148,8 +15387,8 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check if ((l.rotate || l.rotateX || l.rotateY || l.rotateZ) && (s = !0), !s) return; const c = {}; - for (let u = 0; u < kh.length; u++) { - const d = "rotate" + kh[u]; + for (let u = 0; u < _h.length; u++) { + const d = "rotate" + _h[u]; l[d] && (c[d] = l[d], i.setStaticValue(d, 0)); } i.render(); @@ -15172,20 +15411,20 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check const d = this.getLead(); if (!this.projectionDelta || !this.layout || !d.target) { const h = {}; - return this.options.layoutId && (h.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, h.pointerEvents = Qi(i.pointerEvents) || ""), this.hasProjected && !On(this.latestValues) && (h.transform = u ? u({}, "") : "none", this.hasProjected = !1), h; + return this.options.layoutId && (h.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, h.pointerEvents = Qi(i.pointerEvents) || ""), this.hasProjected && !Rn(this.latestValues) && (h.transform = u ? u({}, "") : "none", this.hasProjected = !1), h; } const f = d.animationValues || d.latestValues; - this.applyTransformsToTarget(), c.transform = _h(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform)); + this.applyTransformsToTarget(), c.transform = Ch(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform)); const { x: p, y: m } = this.projectionDelta; c.transformOrigin = `${p.origin * 100}% ${m.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (l = (s = f.opacity) !== null && s !== void 0 ? s : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : f.opacityExit : c.opacity = d === this ? f.opacity !== void 0 ? f.opacity : "" : f.opacityExit !== void 0 ? f.opacityExit : 0; - for (const h in ys) { + for (const h in bs) { if (f[h] === void 0) continue; - const { correct: v, applyTo: b } = ys[h], y = c.transform === "none" ? f[h] : v(f[h], d); + const { correct: v, applyTo: b } = bs[h], y = c.transform === "none" ? f[h] : v(f[h], d); if (b) { const S = b.length; - for (let k = 0; k < S; k++) - c[b[k]] = y; + for (let _ = 0; _ < S; _++) + c[b[_]] = y; } else c[h] = y; } @@ -15199,30 +15438,30 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check this.root.nodes.forEach((i) => { var s; return (s = i.currentAnimation) === null || s === void 0 ? void 0 : s.stop(); - }), this.root.nodes.forEach(Ph), this.root.sharedNodes.clear(); + }), this.root.nodes.forEach(Eh), this.root.sharedNodes.clear(); } }; } -function mI(e) { +function dI(e) { e.updateLayout(); } -function vI(e) { +function fI(e) { var t; const r = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot; if (e.isLead() && e.layout && r && e.hasListeners("didUpdate")) { const { layoutBox: n, measuredBox: o } = e.layout, { animationType: a } = e.options, i = r.source !== e.layout.source; - a === "size" ? Ar((d) => { + a === "size" ? Or((d) => { const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Qt(f); f.min = n[d].min, f.max = f.min + p; - }) : ib(a, r.layoutBox, n) && Ar((d) => { + }) : nb(a, r.layoutBox, n) && Or((d) => { const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Qt(n[d]); f.max = f.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + p); }); - const s = uo(); - ya(s, n, r.layoutBox); - const l = uo(); - i ? ya(l, e.applyTransform(o, !0), r.measuredBox) : ya(l, n, r.layoutBox); - const c = !ob(s); + const s = fo(); + Sa(s, n, r.layoutBox); + const l = fo(); + i ? Sa(l, e.applyTransform(o, !0), r.measuredBox) : Sa(l, n, r.layoutBox); + const c = !tb(s); let u = !1; if (!e.resumeFrom) { const d = e.getClosestProjectingParent(); @@ -15230,9 +15469,9 @@ function vI(e) { const { snapshot: f, layout: p } = d; if (f && p) { const m = mt(); - xa(m, r.layoutBox, f.layoutBox); + wa(m, r.layoutBox, f.layoutBox); const h = mt(); - xa(h, n, p.layoutBox), iu(m, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = m, e.relativeParent = d); + wa(h, n, p.layoutBox), au(m, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = m, e.relativeParent = d); } } } @@ -15250,137 +15489,137 @@ function vI(e) { } e.options.transition = void 0; } -function gI(e) { +function pI(e) { $n.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty)); } -function bI(e) { +function hI(e) { e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1; } -function yI(e) { +function mI(e) { e.clearSnapshot(); } -function Ph(e) { +function Eh(e) { e.clearMeasurements(); } -function xI(e) { +function vI(e) { e.isLayoutDirty = !1; } -function SI(e) { +function gI(e) { const { visualElement: t } = e.options; t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform(); } -function Th(e) { +function Ph(e) { e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0; } -function wI(e) { +function bI(e) { e.resolveTargetDelta(); } -function CI(e) { +function yI(e) { e.calcProjection(); } -function _I(e) { +function xI(e) { e.resetRotation(); } -function kI(e) { +function SI(e) { e.removeLeadSnapshot(); } -function Ah(e, t, r) { +function Th(e, t, r) { e.translate = st(t.translate, 0, r), e.scale = st(t.scale, 1, r), e.origin = t.origin, e.originPoint = t.originPoint; } -function Oh(e, t, r, n) { +function Ah(e, t, r, n) { e.min = st(t.min, r.min, n), e.max = st(t.max, r.max, n); } -function EI(e, t, r, n) { - Oh(e.x, t.x, r.x, n), Oh(e.y, t.y, r.y, n); +function wI(e, t, r, n) { + Ah(e.x, t.x, r.x, n), Ah(e.y, t.y, r.y, n); } -function PI(e) { +function CI(e) { return e.animationValues && e.animationValues.opacityExit !== void 0; } -const TI = { +const _I = { duration: 0.45, ease: [0.4, 0, 0.1, 1] }; -function $h(e) { +function Oh(e) { e.min = Math.round(e.min), e.max = Math.round(e.max); } -function AI(e) { - $h(e.x), $h(e.y); +function kI(e) { + Oh(e.x), Oh(e.y); } -function ib(e, t, r) { - return e === "position" || e === "preserve-aspect" && !ru(Ch(t), Ch(r), 0.2); +function nb(e, t, r) { + return e === "position" || e === "preserve-aspect" && !tu(wh(t), wh(r), 0.2); } -const OI = ab({ - attachResizeListener: (e, t) => Gr(e, "resize", t), +const EI = rb({ + attachResizeListener: (e, t) => Xr(e, "resize", t), measureScroll: () => ({ x: document.documentElement.scrollLeft || document.body.scrollLeft, y: document.documentElement.scrollTop || document.body.scrollTop }), checkIsScrollRoot: () => !0 -}), sc = { +}), ac = { current: void 0 -}, sb = ab({ +}, ob = rb({ measureScroll: (e) => ({ x: e.scrollLeft, y: e.scrollTop }), defaultParent: () => { - if (!sc.current) { - const e = new OI({}); - e.mount(window), e.setOptions({ layoutScroll: !0 }), sc.current = e; + if (!ac.current) { + const e = new EI({}); + e.mount(window), e.setOptions({ layoutScroll: !0 }), ac.current = e; } - return sc.current; + return ac.current; }, resetTransform: (e, t) => { e.style.transform = t !== void 0 ? t : "none"; }, checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed" -}), $I = { +}), PI = { pan: { - Feature: XM + Feature: HM }, drag: { - Feature: GM, - ProjectionNode: sb, - MeasureLayout: tb + Feature: UM, + ProjectionNode: ob, + MeasureLayout: Jg } -}, RI = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/; -function DI(e) { - const t = RI.exec(e); +}, TI = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/; +function AI(e) { + const t = TI.exec(e); if (!t) return [,]; const [, r, n] = t; return [r, n]; } -const MI = 4; -function su(e, t, r = 1) { - wr(r <= MI, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`); - const [n, o] = DI(e); +const OI = 4; +function iu(e, t, r = 1) { + wr(r <= OI, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`); + const [n, o] = AI(e); if (!n) return; const a = window.getComputedStyle(t).getPropertyValue(n); - return a ? a.trim() : Gc(o) ? su(o, t, r + 1) : o; + return a ? a.trim() : qc(o) ? iu(o, t, r + 1) : o; } -function II(e, { ...t }, r) { +function RI(e, { ...t }, r) { const n = e.current; if (!(n instanceof Element)) return { target: t, transitionEnd: r }; r && (r = { ...r }), e.values.forEach((o) => { const a = o.get(); - if (!Gc(a)) + if (!qc(a)) return; - const i = su(a, n); + const i = iu(a, n); i && o.set(i); }); for (const o in t) { const a = t[o]; - if (!Gc(a)) + if (!qc(a)) continue; - const i = su(a, n); + const i = iu(a, n); i && (t[o] = i, r || (r = {}), r[o] === void 0 && (r[o] = a)); } return { target: t, transitionEnd: r }; } -const FI = /* @__PURE__ */ new Set([ +const $I = /* @__PURE__ */ new Set([ "width", "height", "top", @@ -15391,7 +15630,7 @@ const FI = /* @__PURE__ */ new Set([ "y", "translateX", "translateY" -]), lb = (e) => FI.has(e), NI = (e) => Object.keys(e).some(lb), Ri = (e) => e === Yn || e === pe, Rh = (e, t) => parseFloat(e.split(", ")[t]), Dh = (e, t) => (r, { transform: n }) => { +]), ab = (e) => $I.has(e), DI = (e) => Object.keys(e).some(ab), $i = (e) => e === Gn || e === pe, Rh = (e, t) => parseFloat(e.split(", ")[t]), $h = (e, t) => (r, { transform: n }) => { if (n === "none" || !n) return 0; const o = n.match(/^matrix3d\((.+)\)$/); @@ -15401,15 +15640,15 @@ const FI = /* @__PURE__ */ new Set([ const a = n.match(/^matrix\((.+)\)$/); return a ? Rh(a[1], e) : 0; } -}, jI = /* @__PURE__ */ new Set(["x", "y", "z"]), BI = ni.filter((e) => !jI.has(e)); -function zI(e) { +}, MI = /* @__PURE__ */ new Set(["x", "y", "z"]), II = ni.filter((e) => !MI.has(e)); +function FI(e) { const t = []; - return BI.forEach((r) => { + return II.forEach((r) => { const n = e.getValue(r); n !== void 0 && (t.push([r, n.get()]), n.set(r.startsWith("scale") ? 1 : 0)); }), t.length && e.render(), t; } -const Mh = { +const Dh = { // Dimensions width: ({ x: e }, { paddingLeft: t = "0", paddingRight: r = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(r), height: ({ y: e }, { paddingTop: t = "0", paddingBottom: r = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(r), @@ -15418,88 +15657,88 @@ const Mh = { bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min), right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min), // Transform - x: Dh(4, 13), - y: Dh(5, 14) -}, VI = (e, t, r) => { + x: $h(4, 13), + y: $h(5, 14) +}, NI = (e, t, r) => { const n = t.measureViewportBox(), o = t.current, a = getComputedStyle(o), { display: i } = a, s = {}; i === "none" && t.setStaticValue("display", e.display || "block"), r.forEach((c) => { - s[c] = Mh[c](n, a); + s[c] = Dh[c](n, a); }), t.render(); const l = t.measureViewportBox(); return r.forEach((c) => { const u = t.getValue(c); - u && u.jump(s[c]), e[c] = Mh[c](l, a); + u && u.jump(s[c]), e[c] = Dh[c](l, a); }), e; -}, LI = (e, t, r = {}, n = {}) => { +}, jI = (e, t, r = {}, n = {}) => { t = { ...t }, n = { ...n }; - const o = Object.keys(t).filter(lb); + const o = Object.keys(t).filter(ab); let a = [], i = !1; const s = []; if (o.forEach((l) => { const c = e.getValue(l); if (!e.hasValue(l)) return; - let u = r[l], d = Jo(u); + let u = r[l], d = Qo(u); const f = t[l]; let p; - if (Ss(f)) { + if (xs(f)) { const m = f.length, h = f[0] === null ? 1 : 0; - u = f[h], d = Jo(u); + u = f[h], d = Qo(u); for (let v = h; v < m && f[v] !== null; v++) - p ? wr(Jo(f[v]) === p, "All keyframes must be of the same type") : (p = Jo(f[v]), wr(p === d || Ri(d) && Ri(p), "Keyframes must be of the same dimension as the current value")); + p ? wr(Qo(f[v]) === p, "All keyframes must be of the same type") : (p = Qo(f[v]), wr(p === d || $i(d) && $i(p), "Keyframes must be of the same dimension as the current value")); } else - p = Jo(f); + p = Qo(f); if (d !== p) - if (Ri(d) && Ri(p)) { + if ($i(d) && $i(p)) { const m = c.get(); typeof m == "string" && c.set(parseFloat(m)), typeof f == "string" ? t[l] = parseFloat(f) : Array.isArray(f) && p === pe && (t[l] = f.map(parseFloat)); } else - d != null && d.transform && (p != null && p.transform) && (u === 0 || f === 0) ? u === 0 ? c.set(p.transform(u)) : t[l] = d.transform(f) : (i || (a = zI(e), i = !0), s.push(l), n[l] = n[l] !== void 0 ? n[l] : t[l], c.jump(f)); + d != null && d.transform && (p != null && p.transform) && (u === 0 || f === 0) ? u === 0 ? c.set(p.transform(u)) : t[l] = d.transform(f) : (i || (a = FI(e), i = !0), s.push(l), n[l] = n[l] !== void 0 ? n[l] : t[l], c.jump(f)); }), s.length) { - const l = s.indexOf("height") >= 0 ? window.pageYOffset : null, c = VI(t, e, s); + const l = s.indexOf("height") >= 0 ? window.pageYOffset : null, c = NI(t, e, s); return a.length && a.forEach(([u, d]) => { e.getValue(u).set(d); - }), e.render(), Ks && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: n }; + }), e.render(), Xs && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: n }; } else return { target: t, transitionEnd: n }; }; -function WI(e, t, r, n) { - return NI(t) ? LI(e, t, r, n) : { target: t, transitionEnd: n }; -} -const UI = (e, t, r, n) => { - const o = II(e, t, n); - return t = o.target, n = o.transitionEnd, WI(e, t, r, n); -}, lu = { current: null }, cb = { current: !1 }; -function HI() { - if (cb.current = !0, !!Ks) +function BI(e, t, r, n) { + return DI(t) ? jI(e, t, r, n) : { target: t, transitionEnd: n }; +} +const zI = (e, t, r, n) => { + const o = RI(e, t, n); + return t = o.target, n = o.transitionEnd, BI(e, t, r, n); +}, su = { current: null }, ib = { current: !1 }; +function VI() { + if (ib.current = !0, !!Xs) if (window.matchMedia) { - const e = window.matchMedia("(prefers-reduced-motion)"), t = () => lu.current = e.matches; + const e = window.matchMedia("(prefers-reduced-motion)"), t = () => su.current = e.matches; e.addListener(t), t(); } else - lu.current = !1; + su.current = !1; } -function YI(e, t, r) { +function LI(e, t, r) { const { willChange: n } = t; for (const o in t) { const a = t[o], i = r[o]; if (Yt(a)) - e.addValue(o, a), ks(n) && n.add(o), process.env.NODE_ENV === "development" && bd(a.version === "10.12.18", `Attempting to mix Framer Motion versions ${a.version} with 10.12.18 may not work as expected.`); + e.addValue(o, a), _s(n) && n.add(o), process.env.NODE_ENV === "development" && vd(a.version === "10.12.18", `Attempting to mix Framer Motion versions ${a.version} with 10.12.18 may not work as expected.`); else if (Yt(i)) - e.addValue(o, Oo(a, { owner: e })), ks(n) && n.remove(o); + e.addValue(o, Ro(a, { owner: e })), _s(n) && n.remove(o); else if (i !== a) if (e.hasValue(o)) { const s = e.getValue(o); !s.hasAnimated && s.set(a); } else { const s = e.getStaticValue(o); - e.addValue(o, Oo(s !== void 0 ? s : a, { owner: e })); + e.addValue(o, Ro(s !== void 0 ? s : a, { owner: e })); } } for (const o in r) t[o] === void 0 && e.removeValue(o); return t; } -const Ih = /* @__PURE__ */ new WeakMap(), ub = Object.keys(La), qI = ub.length, Fh = [ +const Mh = /* @__PURE__ */ new WeakMap(), sb = Object.keys(Wa), WI = sb.length, Ih = [ "AnimationStart", "AnimationComplete", "Update", @@ -15507,18 +15746,18 @@ const Ih = /* @__PURE__ */ new WeakMap(), ub = Object.keys(La), qI = ub.length, "LayoutMeasure", "LayoutAnimationStart", "LayoutAnimationComplete" -], GI = ed.length; -class XI { +], UI = Ju.length; +class HI { constructor({ parent: t, props: r, presenceContext: n, reducedMotionConfig: o, visualState: a }, i = {}) { this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => { this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection)); }, this.scheduleRender = () => tt.render(this.render, !1, !0); const { latestValues: s, renderState: l } = a; - this.latestValues = s, this.baseTarget = { ...s }, this.initialValues = r.initial ? { ...s } : {}, this.renderState = l, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = o, this.options = i, this.isControllingVariants = Js(r), this.isVariantNode = qv(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current); + this.latestValues = s, this.baseTarget = { ...s }, this.initialValues = r.initial ? { ...s } : {}, this.renderState = l, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = o, this.options = i, this.isControllingVariants = Zs(r), this.isVariantNode = Uv(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current); const { willChange: c, ...u } = this.scrapeMotionValuesFromProps(r, {}); for (const d in u) { const f = u[d]; - s[d] !== void 0 && Yt(f) && (f.set(s[d], !1), ks(c) && c.add(d)); + s[d] !== void 0 && Yt(f) && (f.set(s[d], !1), _s(c) && c.add(d)); } } /** @@ -15532,10 +15771,10 @@ class XI { return {}; } mount(t) { - this.current = t, Ih.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), cb.current || HI(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : lu.current, process.env.NODE_ENV !== "production" && bd(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext); + this.current = t, Mh.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), ib.current || VI(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : su.current, process.env.NODE_ENV !== "production" && vd(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext); } unmount() { - Ih.delete(this.current), this.projection && this.projection.unmount(), rn(this.notifyUpdate), rn(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this); + Mh.delete(this.current), this.projection && this.projection.unmount(), nn(this.notifyUpdate), nn(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this); for (const t in this.events) this.events[t].clear(); for (const t in this.features) @@ -15543,7 +15782,7 @@ class XI { this.current = null; } bindToMotionValue(t, r) { - const n = Hn.has(t), o = r.on("change", (i) => { + const n = qn.has(t), o = r.on("change", (i) => { this.latestValues[t] = i, this.props.onUpdate && tt.update(this.notifyUpdate, !1, !0), n && this.projection && (this.projection.isTransformDirty = !0); }), a = r.on("renderRequest", this.scheduleRender); this.valueSubscriptions.set(t, () => { @@ -15559,8 +15798,8 @@ class XI { const l = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead."; r.ignoreStrict ? ii(!1, l) : wr(!1, l); } - for (let l = 0; l < qI; l++) { - const c = ub[l], { isEnabled: u, Feature: d, ProjectionNode: f, MeasureLayout: p } = La[c]; + for (let l = 0; l < WI; l++) { + const c = sb[l], { isEnabled: u, Feature: d, ProjectionNode: f, MeasureLayout: p } = Wa[c]; f && (i = f), u(r) && (!this.features[c] && d && (this.features[c] = new d(this)), p && (s = p)); } if (!this.projection && i) { @@ -15569,7 +15808,7 @@ class XI { this.projection.setOptions({ layoutId: l, layout: c, - alwaysMeasureLayout: !!u || d && lo(d), + alwaysMeasureLayout: !!u || d && co(d), visualElement: this, scheduleRender: () => this.scheduleRender(), /** @@ -15626,13 +15865,13 @@ class XI { */ update(t, r) { (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = r; - for (let n = 0; n < Fh.length; n++) { - const o = Fh[n]; + for (let n = 0; n < Ih.length; n++) { + const o = Ih[n]; this.propEventSubscriptions[o] && (this.propEventSubscriptions[o](), delete this.propEventSubscriptions[o]); const a = t["on" + o]; a && (this.propEventSubscriptions[o] = this.on(o, a)); } - this.prevMotionValues = YI(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(); + this.prevMotionValues = LI(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(); } getProps() { return this.props; @@ -15663,9 +15902,9 @@ class XI { return this.props.initial !== void 0 && (n.initial = this.props.initial), n; } const r = {}; - for (let n = 0; n < GI; n++) { - const o = ed[n], a = this.props[o]; - (Va(a) || a === !1) && (r[o] = a); + for (let n = 0; n < UI; n++) { + const o = Ju[n], a = this.props[o]; + (La(a) || a === !1) && (r[o] = a); } return r; } @@ -15701,7 +15940,7 @@ class XI { if (this.props.values && this.props.values[t]) return this.props.values[t]; let n = this.values.get(t); - return n === void 0 && r !== void 0 && (n = Oo(r, { owner: this }), this.addValue(t, n)), n; + return n === void 0 && r !== void 0 && (n = Ro(r, { owner: this }), this.addValue(t, n)), n; } /** * If we're trying to animate to a previously unencountered value, @@ -15724,20 +15963,20 @@ class XI { */ getBaseTarget(t) { var r; - const { initial: n } = this.props, o = typeof n == "string" || typeof n == "object" ? (r = cd(this.props, n)) === null || r === void 0 ? void 0 : r[t] : void 0; + const { initial: n } = this.props, o = typeof n == "string" || typeof n == "object" ? (r = sd(this.props, n)) === null || r === void 0 ? void 0 : r[t] : void 0; if (n && o !== void 0) return o; const a = this.getBaseTargetFromProps(this.props, t); return a !== void 0 && !Yt(a) ? a : this.initialValues[t] !== void 0 && o === void 0 ? void 0 : this.baseTarget[t]; } on(t, r) { - return this.events[t] || (this.events[t] = new gd()), this.events[t].add(r); + return this.events[t] || (this.events[t] = new md()), this.events[t].add(r); } notify(t, ...r) { this.events[t] && this.events[t].notify(...r); } } -class db extends XI { +class lb extends HI { sortInstanceNodePosition(t, r) { return t.compareDocumentPosition(r) & 2 ? 1 : -1; } @@ -15748,10 +15987,10 @@ class db extends XI { delete r[t], delete n[t]; } makeTargetAnimatableFromInstance({ transition: t, transitionEnd: r, ...n }, { transformValues: o }, a) { - let i = hM(n, t || {}, this); + let i = uM(n, t || {}, this); if (o && (r && (r = o(r)), n && (n = o(n)), i && (i = o(i))), a) { - fM(this, n, i); - const s = UI(this, n, i, r); + lM(this, n, i); + const s = zI(this, n, i, r); r = s.transitionEnd, n = s.target; } return { @@ -15761,27 +16000,27 @@ class db extends XI { }; } } -function KI(e) { +function YI(e) { return window.getComputedStyle(e); } -class ZI extends db { +class qI extends lb { readValueFromInstance(t, r) { - if (Hn.has(r)) { - const n = pd(r); + if (qn.has(r)) { + const n = dd(r); return n && n.default || 0; } else { - const n = KI(t), o = (Zv(r) ? n.getPropertyValue(r) : n[r]) || 0; + const n = YI(t), o = (Gv(r) ? n.getPropertyValue(r) : n[r]) || 0; return typeof o == "string" ? o.trim() : o; } } measureInstanceViewportBox(t, { transformPagePoint: r }) { - return Qg(t, r); + return Kg(t, r); } build(t, r, n, o) { - nd(t, r, n, o.transformTemplate); + td(t, r, n, o.transformTemplate); } scrapeMotionValuesFromProps(t, r) { - return ld(t, r); + return id(t, r); } handleChildMotionValue() { this.childSubscription && (this.childSubscription(), delete this.childSubscription); @@ -15791,10 +16030,10 @@ class ZI extends db { })); } renderInstance(t, r, n, o) { - ng(t, r, n, o); + eg(t, r, n, o); } } -class JI extends db { +class GI extends lb { constructor() { super(...arguments), this.isSVGTag = !1; } @@ -15802,52 +16041,52 @@ class JI extends db { return t[r]; } readValueFromInstance(t, r) { - if (Hn.has(r)) { - const n = pd(r); + if (qn.has(r)) { + const n = dd(r); return n && n.default || 0; } - return r = og.has(r) ? r : sd(r), t.getAttribute(r); + return r = tg.has(r) ? r : ad(r), t.getAttribute(r); } measureInstanceViewportBox() { return mt(); } scrapeMotionValuesFromProps(t, r) { - return ig(t, r); + return ng(t, r); } build(t, r, n, o) { - ad(t, r, n, this.isSVGTag, o.transformTemplate); + nd(t, r, n, this.isSVGTag, o.transformTemplate); } renderInstance(t, r, n, o) { - ag(t, r, n, o); + rg(t, r, n, o); } mount(t) { - this.isSVGTag = id(t.tagName), super.mount(t); + this.isSVGTag = od(t.tagName), super.mount(t); } } -const QI = (e, t) => rd(e) ? new JI(t, { enableHardwareAcceleration: !1 }) : new ZI(t, { enableHardwareAcceleration: !0 }), eF = { +const XI = (e, t) => ed(e) ? new GI(t, { enableHardwareAcceleration: !1 }) : new qI(t, { enableHardwareAcceleration: !0 }), KI = { layout: { - ProjectionNode: sb, - MeasureLayout: tb - } -}, tF = { - ...TM, - ...Z2, - ...$I, - ...eF -}, Cn = /* @__PURE__ */ a2((e, t) => M2(e, t, tF, QI)); -function fb() { + ProjectionNode: ob, + MeasureLayout: Jg + } +}, ZI = { + ..._M, + ...q2, + ...PI, + ...KI +}, _n = /* @__PURE__ */ t2((e, t) => O2(e, t, ZI, XI)); +function cb() { const e = be(!1); - return bs(() => (e.current = !0, () => { + return gs(() => (e.current = !0, () => { e.current = !1; }), []), e; } -function rF() { - const e = fb(), [t, r] = Ye(0), n = q(() => { +function JI() { + const e = cb(), [t, r] = Ye(0), n = q(() => { e.current && r(t + 1); }, [t]); return [q(() => tt.postRender(n), [n]), t]; } -class nF extends U.Component { +class QI extends U.Component { getSnapshotBeforeUpdate(t) { const r = this.props.childRef.current; if (r && t.isPresent && !this.props.isPresent) { @@ -15865,14 +16104,14 @@ class nF extends U.Component { return this.props.children; } } -function oF({ children: e, isPresent: t }) { +function eF({ children: e, isPresent: t }) { const r = _r(), n = be(null), o = be({ width: 0, height: 0, top: 0, left: 0 }); - return ym(() => { + return bm(() => { const { width: a, height: i, top: s, left: l } = o.current; if (t || !n.current || !a || !i) return; @@ -15889,10 +16128,10 @@ function oF({ children: e, isPresent: t }) { `), () => { document.head.removeChild(c); }; - }, [t]), U.createElement(nF, { isPresent: t, childRef: n, sizeRef: o }, U.cloneElement(e, { ref: n })); + }, [t]), U.createElement(QI, { isPresent: t, childRef: n, sizeRef: o }, U.cloneElement(e, { ref: n })); } -const lc = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: o, presenceAffectsLayout: a, mode: i }) => { - const s = sg(aF), l = _r(), c = gt( +const ic = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: o, presenceAffectsLayout: a, mode: i }) => { + const s = og(tF), l = _r(), c = gt( () => ({ id: l, initial: t, @@ -15918,40 +16157,40 @@ const lc = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: s.forEach((u, d) => s.set(d, !1)); }, [r]), U.useEffect(() => { !r && !s.size && n && n(); - }, [r]), i === "popLayout" && (e = U.createElement(oF, { isPresent: r }, e)), U.createElement(ri.Provider, { value: c }, e); + }, [r]), i === "popLayout" && (e = U.createElement(eF, { isPresent: r }, e)), U.createElement(ri.Provider, { value: c }, e); }; -function aF() { +function tF() { return /* @__PURE__ */ new Map(); } -function iF(e) { +function rF(e) { return Fe(() => () => e(), []); } -const eo = (e) => e.key || ""; -function sF(e, t) { +const ro = (e) => e.key || ""; +function nF(e, t) { e.forEach((r) => { - const n = eo(r); + const n = ro(r); t.set(n, r); }); } -function lF(e) { +function oF(e) { const t = []; - return Ms.forEach(e, (r) => { - Eu(r) && t.push(r); + return Ds.forEach(e, (r) => { + Cu(r) && t.push(r); }), t; } -const zo = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBeforeEnter: o, presenceAffectsLayout: a = !0, mode: i = "sync" }) => { +const Vo = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBeforeEnter: o, presenceAffectsLayout: a = !0, mode: i = "sync" }) => { wr(!o, "Replace exitBeforeEnter with mode='wait'"); - const s = ft(td).forceRender || rF()[0], l = fb(), c = lF(e); + const s = ft(Qu).forceRender || JI()[0], l = cb(), c = oF(e); let u = c; const d = be(/* @__PURE__ */ new Map()).current, f = be(u), p = be(/* @__PURE__ */ new Map()).current, m = be(!0); - if (bs(() => { - m.current = !1, sF(c, p), f.current = u; - }), iF(() => { + if (gs(() => { + m.current = !1, nF(c, p), f.current = u; + }), rF(() => { m.current = !0, p.clear(), d.clear(); }), m.current) - return U.createElement(U.Fragment, null, u.map((y) => U.createElement(lc, { key: eo(y), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: a, mode: i }, y))); + return U.createElement(U.Fragment, null, u.map((y) => U.createElement(ic, { key: ro(y), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: a, mode: i }, y))); u = [...u]; - const h = f.current.map(eo), v = c.map(eo), b = h.length; + const h = f.current.map(ro), v = c.map(ro), b = h.length; for (let y = 0; y < b; y++) { const S = h[y]; v.indexOf(S) === -1 && !d.has(S) && d.set(S, void 0); @@ -15959,8 +16198,8 @@ const zo = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBe return i === "wait" && d.size && (u = []), d.forEach((y, S) => { if (v.indexOf(S) !== -1) return; - const k = p.get(S); - if (!k) + const _ = p.get(S); + if (!_) return; const w = h.indexOf(S); let M = y; @@ -15974,15 +16213,15 @@ const zo = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBe s(), n && n(); } }; - M = U.createElement(lc, { key: eo(k), isPresent: !1, onExitComplete: P, custom: t, presenceAffectsLayout: a, mode: i }, k), d.set(S, M); + M = U.createElement(ic, { key: ro(_), isPresent: !1, onExitComplete: P, custom: t, presenceAffectsLayout: a, mode: i }, _), d.set(S, M); } u.splice(w, 0, M); }), u = u.map((y) => { const S = y.key; - return d.has(S) ? y : U.createElement(lc, { key: eo(y), isPresent: !0, presenceAffectsLayout: a, mode: i }, y); + return d.has(S) ? y : U.createElement(ic, { key: ro(y), isPresent: !0, presenceAffectsLayout: a, mode: i }, y); }), process.env.NODE_ENV !== "production" && i === "wait" && u.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), U.createElement(U.Fragment, null, d.size ? u : u.map((y) => Ka(y))); }; -var Nh = { +var Fh = { path: /* @__PURE__ */ L.jsxs("g", { stroke: "currentColor", strokeWidth: "1.5", children: [ /* @__PURE__ */ L.jsx( "path", @@ -16003,7 +16242,7 @@ var Nh = { /* @__PURE__ */ L.jsx("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" }) ] }), viewBox: "0 0 24 24" -}, nl = _e((e, t) => { +}, gd = _e((e, t) => { const { as: r, viewBox: n, @@ -16013,7 +16252,7 @@ var Nh = { className: s, __css: l, ...c - } = e, u = Xe("chakra-icon", s), d = No("Icon", e), f = { + } = e, u = Xe("chakra-icon", s), d = jo("Icon", e), f = { w: "1em", h: "1em", display: "inline-block", @@ -16027,29 +16266,29 @@ var Nh = { focusable: a, className: u, __css: f - }, m = n ?? Nh.viewBox; + }, m = n ?? Fh.viewBox; if (r && typeof r != "string") return /* @__PURE__ */ L.jsx(ge.svg, { as: r, ...p, ...c }); - const h = i ?? Nh.path; + const h = i ?? Fh.path; return /* @__PURE__ */ L.jsx(ge.svg, { verticalAlign: "middle", viewBox: m, ...p, ...c, children: h }); }); -nl.displayName = "Icon"; -var KV = nl, cF = d_({ +gd.displayName = "Icon"; +var aF = i_({ "0%": { transform: "rotate(0deg)" }, "100%": { transform: "rotate(360deg)" } -}), uF = _e((e, t) => { - const r = No("Spinner", e), { +}), iF = _e((e, t) => { + const r = jo("Spinner", e), { label: n = "Loading...", thickness: o = "2px", speed: a = "0.45s", emptyColor: i = "transparent", className: s, ...l - } = jr(e), c = Xe("chakra-spinner", s), u = { + } = Br(e), c = Xe("chakra-spinner", s), u = { display: "inline-block", borderColor: "currentColor", borderStyle: "solid", @@ -16057,7 +16296,7 @@ var KV = nl, cF = d_({ borderWidth: o, borderBottomColor: i, borderLeftColor: i, - animation: `${cF} ${a} linear infinite`, + animation: `${aF} ${a} linear infinite`, ...r }; return /* @__PURE__ */ L.jsx( @@ -16071,9 +16310,9 @@ var KV = nl, cF = d_({ } ); }); -uF.displayName = "Spinner"; -function dF(e) { - return /* @__PURE__ */ L.jsx(nl, { focusable: "false", "aria-hidden": !0, ...e, children: /* @__PURE__ */ L.jsx( +iF.displayName = "Spinner"; +function sF(e) { + return /* @__PURE__ */ L.jsx(gd, { focusable: "false", "aria-hidden": !0, ...e, children: /* @__PURE__ */ L.jsx( "path", { fill: "currentColor", @@ -16081,9 +16320,9 @@ function dF(e) { } ) }); } -var pb = _e( +var ub = _e( function(t, r) { - const n = No("CloseButton", t), { children: o, isDisabled: a, __css: i, ...s } = jr(t), l = { + const n = jo("CloseButton", t), { children: o, isDisabled: a, __css: i, ...s } = Br(t), l = { outline: 0, display: "flex", alignItems: "center", @@ -16103,14 +16342,14 @@ var pb = _e( ...i }, ...s, - children: o || /* @__PURE__ */ L.jsx(dF, { width: "1em", height: "1em" }) + children: o || /* @__PURE__ */ L.jsx(sF, { width: "1em", height: "1em" }) } ); } ); -pb.displayName = "CloseButton"; -var fF = Object.defineProperty, pF = (e, t, r) => t in e ? fF(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t, r) => (pF(e, typeof t != "symbol" ? t + "" : t, r), r); -function jh(e) { +ub.displayName = "CloseButton"; +var lF = Object.defineProperty, cF = (e, t, r) => t in e ? lF(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t, r) => (cF(e, typeof t != "symbol" ? t + "" : t, r), r); +function Nh(e) { return e.sort((t, r) => { const n = t.compareDocumentPosition(r); if (n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY) @@ -16122,25 +16361,25 @@ function jh(e) { return 0; }); } -var hF = (e) => typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; -function Bh(e, t, r) { +var uF = (e) => typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; +function jh(e, t, r) { let n = e + 1; return r && n >= t && (n = 0), n; } -function zh(e, t, r) { +function Bh(e, t, r) { let n = e - 1; return r && n < 0 && (n = t), n; } -var cu = typeof window < "u" ? Ds : Fe, Ps = (e) => e, mF = class { +var lu = typeof window < "u" ? $s : Fe, Es = (e) => e, dF = class { constructor() { ut(this, "descendants", /* @__PURE__ */ new Map()), ut(this, "register", (e) => { if (e != null) - return hF(e) ? this.registerNode(e) : (t) => { + return uF(e) ? this.registerNode(e) : (t) => { this.registerNode(t, e); }; }), ut(this, "unregister", (e) => { this.descendants.delete(e); - const t = jh(Array.from(this.descendants.keys())); + const t = Nh(Array.from(this.descendants.keys())); this.assignIndex(t); }), ut(this, "destroy", () => { this.descendants.clear(); @@ -16162,26 +16401,26 @@ var cu = typeof window < "u" ? Ds : Fe, Ps = (e) => e, mF = class { var t, r; return e && (r = (t = this.descendants.get(e)) == null ? void 0 : t.index) != null ? r : -1; }), ut(this, "enabledIndexOf", (e) => e == null ? -1 : this.enabledValues().findIndex((t) => t.node.isSameNode(e))), ut(this, "next", (e, t = !0) => { - const r = Bh(e, this.count(), t); + const r = jh(e, this.count(), t); return this.item(r); }), ut(this, "nextEnabled", (e, t = !0) => { const r = this.item(e); if (!r) return; - const n = this.enabledIndexOf(r.node), o = Bh( + const n = this.enabledIndexOf(r.node), o = jh( n, this.enabledCount(), t ); return this.enabledItem(o); }), ut(this, "prev", (e, t = !0) => { - const r = zh(e, this.count() - 1, t); + const r = Bh(e, this.count() - 1, t); return this.item(r); }), ut(this, "prevEnabled", (e, t = !0) => { const r = this.item(e); if (!r) return; - const n = this.enabledIndexOf(r.node), o = zh( + const n = this.enabledIndexOf(r.node), o = Bh( n, this.enabledCount() - 1, t @@ -16190,14 +16429,14 @@ var cu = typeof window < "u" ? Ds : Fe, Ps = (e) => e, mF = class { }), ut(this, "registerNode", (e, t) => { if (!e || this.descendants.has(e)) return; - const r = Array.from(this.descendants.keys()).concat(e), n = jh(r); + const r = Array.from(this.descendants.keys()).concat(e), n = Nh(r); t != null && t.disabled && (t.disabled = !!t.disabled); const o = { node: e, index: -1, ...t }; this.descendants.set(e, o), this.assignIndex(n); }); } }; -function vF(e, t) { +function fF(e, t) { if (e != null) { if (typeof e == "function") { e(t); @@ -16213,32 +16452,32 @@ function vF(e, t) { function St(...e) { return (t) => { e.forEach((r) => { - vF(r, t); + fF(r, t); }); }; } -function ZV(...e) { +function WV(...e) { return gt(() => St(...e), e); } -function gF() { - const e = be(new mF()); - return cu(() => () => e.current.destroy()), e.current; +function pF() { + const e = be(new dF()); + return lu(() => () => e.current.destroy()), e.current; } -var [bF, hb] = Nt({ +var [hF, db] = Nt({ name: "DescendantsProvider", errorMessage: "useDescendantsContext must be used within DescendantsProvider" }); -function yF(e) { - const t = hb(), [r, n] = Ye(-1), o = be(null); - cu(() => () => { +function mF(e) { + const t = db(), [r, n] = Ye(-1), o = be(null); + lu(() => () => { o.current && t.unregister(o.current); - }, []), cu(() => { + }, []), lu(() => { if (!o.current) return; const i = Number(o.current.dataset.index); r != i && !Number.isNaN(i) && n(i); }); - const a = Ps(e ? t.register(e) : t.register); + const a = Es(e ? t.register(e) : t.register); return { descendants: t, index: r, @@ -16246,15 +16485,15 @@ function yF(e) { register: St(a, o) }; } -function xF() { +function vF() { return [ - Ps(bF), - () => Ps(hb()), - () => gF(), - (o) => yF(o) + Es(hF), + () => Es(db()), + () => pF(), + (o) => mF(o) ]; } -function yd(e) { +function bd(e) { const { value: t, defaultValue: r, @@ -16269,12 +16508,12 @@ function yd(e) { ); return [u, d]; } -var uu = { +var cu = { ease: [0.25, 0.1, 0.25, 1], easeIn: [0.4, 0, 1, 1], easeOut: [0, 0, 0.2, 1], easeInOut: [0.4, 0, 0.2, 1] -}, ea = { +}, ta = { scale: { enter: { scale: 1 }, exit: { scale: 0.95 } @@ -16320,31 +16559,31 @@ var uu = { exit: { x: 0, y: "100%" } } }; -function du(e) { +function uu(e) { var t; switch ((t = e == null ? void 0 : e.direction) != null ? t : "right") { case "right": - return ea.slideRight; + return ta.slideRight; case "left": - return ea.slideLeft; + return ta.slideLeft; case "bottom": - return ea.slideDown; + return ta.slideDown; case "top": - return ea.slideUp; + return ta.slideUp; default: - return ea.slideRight; + return ta.slideRight; } } -var zn = { +var Vn = { enter: { duration: 0.2, - ease: uu.easeOut + ease: cu.easeOut }, exit: { duration: 0.1, - ease: uu.easeIn + ease: cu.easeIn } -}, Jr = { +}, Qr = { enter: (e, t) => ({ ...e, delay: typeof t == "number" ? t : t == null ? void 0 : t.enter @@ -16353,12 +16592,12 @@ var zn = { ...e, delay: typeof t == "number" ? t : t == null ? void 0 : t.exit }) -}, SF = { +}, gF = { enter: ({ transition: e, transitionEnd: t, delay: r } = {}) => { var n; return { opacity: 1, - transition: (n = e == null ? void 0 : e.enter) != null ? n : Jr.enter(zn.enter, r), + transition: (n = e == null ? void 0 : e.enter) != null ? n : Qr.enter(Vn.enter, r), transitionEnd: t == null ? void 0 : t.enter }; }, @@ -16366,16 +16605,16 @@ var zn = { var n; return { opacity: 0, - transition: (n = e == null ? void 0 : e.exit) != null ? n : Jr.exit(zn.exit, r), + transition: (n = e == null ? void 0 : e.exit) != null ? n : Qr.exit(Vn.exit, r), transitionEnd: t == null ? void 0 : t.exit }; } -}, mb = { +}, fb = { initial: "exit", animate: "enter", exit: "exit", - variants: SF -}, wF = At(function(t, r) { + variants: gF +}, bF = At(function(t, r) { const { unmountOnExit: n, in: o, @@ -16385,26 +16624,26 @@ var zn = { delay: l, ...c } = t, u = o || n ? "enter" : "exit", d = n ? o && n : !0, f = { transition: i, transitionEnd: s, delay: l }; - return /* @__PURE__ */ L.jsx(zo, { custom: f, children: d && /* @__PURE__ */ L.jsx( - Cn.div, + return /* @__PURE__ */ L.jsx(Vo, { custom: f, children: d && /* @__PURE__ */ L.jsx( + _n.div, { ref: r, className: Xe("chakra-fade", a), custom: f, - ...mb, + ...fb, animate: u, ...c } ) }); }); -wF.displayName = "Fade"; -var CF = { +bF.displayName = "Fade"; +var yF = { exit: ({ reverse: e, initialScale: t, transition: r, transitionEnd: n, delay: o }) => { var a; return { opacity: 0, ...e ? { scale: t, transitionEnd: n == null ? void 0 : n.exit } : { transitionEnd: { scale: t, ...n == null ? void 0 : n.exit } }, - transition: (a = r == null ? void 0 : r.exit) != null ? a : Jr.exit(zn.exit, o) + transition: (a = r == null ? void 0 : r.exit) != null ? a : Qr.exit(Vn.exit, o) }; }, enter: ({ transitionEnd: e, transition: t, delay: r }) => { @@ -16412,16 +16651,16 @@ var CF = { return { opacity: 1, scale: 1, - transition: (n = t == null ? void 0 : t.enter) != null ? n : Jr.enter(zn.enter, r), + transition: (n = t == null ? void 0 : t.enter) != null ? n : Qr.enter(Vn.enter, r), transitionEnd: e == null ? void 0 : e.enter }; } -}, vb = { +}, pb = { initial: "exit", animate: "enter", exit: "exit", - variants: CF -}, _F = At( + variants: yF +}, xF = At( function(t, r) { const { unmountOnExit: n, @@ -16434,12 +16673,12 @@ var CF = { delay: u, ...d } = t, f = n ? o && n : !0, p = o || n ? "enter" : "exit", m = { initialScale: i, reverse: a, transition: l, transitionEnd: c, delay: u }; - return /* @__PURE__ */ L.jsx(zo, { custom: m, children: f && /* @__PURE__ */ L.jsx( - Cn.div, + return /* @__PURE__ */ L.jsx(Vo, { custom: m, children: f && /* @__PURE__ */ L.jsx( + _n.div, { ref: r, className: Xe("chakra-offset-slide", s), - ...vb, + ...pb, animate: p, custom: m, ...d @@ -16447,15 +16686,15 @@ var CF = { ) }); } ); -_F.displayName = "ScaleFade"; -var kF = { +xF.displayName = "ScaleFade"; +var SF = { initial: ({ offsetX: e, offsetY: t, transition: r, transitionEnd: n, delay: o }) => { var a; return { opacity: 0, x: e, y: t, - transition: (a = r == null ? void 0 : r.exit) != null ? a : Jr.exit(zn.exit, o), + transition: (a = r == null ? void 0 : r.exit) != null ? a : Qr.exit(Vn.exit, o), transitionEnd: n == null ? void 0 : n.exit }; }, @@ -16465,7 +16704,7 @@ var kF = { opacity: 1, x: 0, y: 0, - transition: (n = e == null ? void 0 : e.enter) != null ? n : Jr.enter(zn.enter, r), + transition: (n = e == null ? void 0 : e.enter) != null ? n : Qr.enter(Vn.enter, r), transitionEnd: t == null ? void 0 : t.enter }; }, @@ -16474,16 +16713,16 @@ var kF = { const s = { x: t, y: e }; return { opacity: 0, - transition: (i = r == null ? void 0 : r.exit) != null ? i : Jr.exit(zn.exit, a), + transition: (i = r == null ? void 0 : r.exit) != null ? i : Qr.exit(Vn.exit, a), ...o ? { ...s, transitionEnd: n == null ? void 0 : n.exit } : { transitionEnd: { ...s, ...n == null ? void 0 : n.exit } } }; } -}, fu = { +}, ua = { initial: "initial", animate: "enter", exit: "exit", - variants: kF -}, EF = At( + variants: SF +}, wF = At( function(t, r) { const { unmountOnExit: n, @@ -16504,50 +16743,50 @@ var kF = { transitionEnd: u, delay: d }; - return /* @__PURE__ */ L.jsx(zo, { custom: h, children: p && /* @__PURE__ */ L.jsx( - Cn.div, + return /* @__PURE__ */ L.jsx(Vo, { custom: h, children: p && /* @__PURE__ */ L.jsx( + _n.div, { ref: r, className: Xe("chakra-offset-slide", i), custom: h, - ...fu, + ...ua, animate: m, ...f } ) }); } ); -EF.displayName = "SlideFade"; -var Vh = { +wF.displayName = "SlideFade"; +var zh = { exit: { duration: 0.15, - ease: uu.easeInOut + ease: cu.easeInOut }, enter: { type: "spring", damping: 25, stiffness: 180 } -}, PF = { +}, CF = { exit: ({ direction: e, transition: t, transitionEnd: r, delay: n }) => { var o; - const { exit: a } = du({ direction: e }); + const { exit: a } = uu({ direction: e }); return { ...a, - transition: (o = t == null ? void 0 : t.exit) != null ? o : Jr.exit(Vh.exit, n), + transition: (o = t == null ? void 0 : t.exit) != null ? o : Qr.exit(zh.exit, n), transitionEnd: r == null ? void 0 : r.exit }; }, enter: ({ direction: e, transitionEnd: t, transition: r, delay: n }) => { var o; - const { enter: a } = du({ direction: e }); + const { enter: a } = uu({ direction: e }); return { ...a, - transition: (o = r == null ? void 0 : r.enter) != null ? o : Jr.enter(Vh.enter, n), + transition: (o = r == null ? void 0 : r.enter) != null ? o : Qr.enter(zh.enter, n), transitionEnd: t == null ? void 0 : t.enter }; } -}, gb = At(function(t, r) { +}, hb = At(function(t, r) { const { direction: n = "right", style: o, @@ -16559,13 +16798,13 @@ var Vh = { delay: u, motionProps: d, ...f - } = t, p = du({ direction: n }), m = Object.assign( + } = t, p = uu({ direction: n }), m = Object.assign( { position: "fixed" }, p.position, o ), h = a ? i && a : !0, v = i || a ? "enter" : "exit", b = { transitionEnd: c, transition: l, direction: n, delay: u }; - return /* @__PURE__ */ L.jsx(zo, { custom: b, children: h && /* @__PURE__ */ L.jsx( - Cn.div, + return /* @__PURE__ */ L.jsx(Vo, { custom: b, children: h && /* @__PURE__ */ L.jsx( + _n.div, { ...f, ref: r, @@ -16574,26 +16813,26 @@ var Vh = { animate: v, exit: "exit", custom: b, - variants: PF, + variants: CF, style: m, ...d } ) }); }); -gb.displayName = "Slide"; -function bb(e) { - return Ms.toArray(e).filter( - (t) => Eu(t) +hb.displayName = "Slide"; +function mb(e) { + return Ds.toArray(e).filter( + (t) => Cu(t) ); } -var [TF, yb] = Nt({ +var [_F, vb] = Nt({ name: "FormControlStylesContext", errorMessage: `useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [AF, Vo] = Nt({ +}), [kF, Lo] = Nt({ strict: !1, name: "FormControlContext" }); -function OF(e) { +function EF(e) { const { id: t, isRequired: r, @@ -16618,15 +16857,15 @@ function OF(e) { (P = {}, I = null) => ({ ...P, ref: I, - "data-focus": to(v), - "data-disabled": to(o), - "data-invalid": to(n), - "data-readonly": to(a), + "data-focus": Ar(v), + "data-disabled": Ar(o), + "data-invalid": Ar(n), + "data-readonly": Ar(a), id: P.id !== void 0 ? P.id : c, htmlFor: P.htmlFor !== void 0 ? P.htmlFor : l }), [l, o, v, n, a, c] - ), k = q( + ), _ = q( (P = {}, I = null) => ({ id: u, ...P, @@ -16645,9 +16884,13 @@ function OF(e) { ...P, ...i, ref: I, - role: "group" + role: "group", + "data-focus": Ar(v), + "data-disabled": Ar(o), + "data-invalid": Ar(n), + "data-readonly": Ar(a) }), - [i] + [i, o, v, n, a] ), M = q( (P = {}, I = null) => ({ ...P, @@ -16676,20 +16919,20 @@ function OF(e) { helpTextId: d, htmlProps: i, getHelpTextProps: y, - getErrorMessageProps: k, + getErrorMessageProps: _, getRootProps: w, getLabelProps: S, getRequiredIndicatorProps: M }; } -var $F = _e( +var PF = _e( function(t, r) { - const n = jo("Form", t), o = jr(t), { + const n = Bo("Form", t), o = Br(t), { getRootProps: a, htmlProps: i, ...s - } = OF(o), l = Xe("chakra-form-control", t.className); - return /* @__PURE__ */ L.jsx(AF, { value: s, children: /* @__PURE__ */ L.jsx(TF, { value: n, children: /* @__PURE__ */ L.jsx( + } = EF(o), l = Xe("chakra-form-control", t.className); + return /* @__PURE__ */ L.jsx(kF, { value: s, children: /* @__PURE__ */ L.jsx(_F, { value: n, children: /* @__PURE__ */ L.jsx( ge.div, { ...a({}, r), @@ -16699,10 +16942,10 @@ var $F = _e( ) }) }); } ); -$F.displayName = "FormControl"; -var RF = _e( +PF.displayName = "FormControl"; +var TF = _e( function(t, r) { - const n = Vo(), o = yb(), a = Xe("chakra-form__helper-text", t.className); + const n = Lo(), o = vb(), a = Xe("chakra-form__helper-text", t.className); return /* @__PURE__ */ L.jsx( ge.div, { @@ -16713,14 +16956,14 @@ var RF = _e( ); } ); -RF.displayName = "FormHelperText"; -var [DF, MF] = Nt({ +TF.displayName = "FormHelperText"; +var [AF, OF] = Nt({ name: "FormErrorStylesContext", errorMessage: `useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), IF = _e( +}), RF = _e( (e, t) => { - const r = jo("FormError", e), n = jr(e), o = Vo(); - return o != null && o.isInvalid ? /* @__PURE__ */ L.jsx(DF, { value: r, children: /* @__PURE__ */ L.jsx( + const r = Bo("FormError", e), n = Br(e), o = Lo(); + return o != null && o.isInvalid ? /* @__PURE__ */ L.jsx(AF, { value: r, children: /* @__PURE__ */ L.jsx( ge.div, { ...o == null ? void 0 : o.getErrorMessageProps(n, t), @@ -16734,14 +16977,14 @@ var [DF, MF] = Nt({ ) }) : null; } ); -IF.displayName = "FormErrorMessage"; -var FF = _e((e, t) => { - const r = MF(), n = Vo(); +RF.displayName = "FormErrorMessage"; +var $F = _e((e, t) => { + const r = OF(), n = Lo(); if (!(n != null && n.isInvalid)) return null; const o = Xe("chakra-form__error-icon", e.className); return /* @__PURE__ */ L.jsx( - nl, + gd, { ref: t, "aria-hidden": !0, @@ -16758,16 +17001,16 @@ var FF = _e((e, t) => { } ); }); -FF.displayName = "FormErrorIcon"; -var NF = _e(function(t, r) { +$F.displayName = "FormErrorIcon"; +var DF = _e(function(t, r) { var n; - const o = No("FormLabel", t), a = jr(t), { + const o = jo("FormLabel", t), a = Br(t), { className: i, children: s, - requiredIndicator: l = /* @__PURE__ */ L.jsx(xb, {}), + requiredIndicator: l = /* @__PURE__ */ L.jsx(gb, {}), optionalIndicator: c = null, ...u - } = a, d = Vo(), f = (n = d == null ? void 0 : d.getLabelProps(u, r)) != null ? n : { ref: r, ...u }; + } = a, d = Lo(), f = (n = d == null ? void 0 : d.getLabelProps(u, r)) != null ? n : { ref: r, ...u }; return /* @__PURE__ */ L.jsxs( ge.label, { @@ -16785,10 +17028,10 @@ var NF = _e(function(t, r) { } ); }); -NF.displayName = "FormLabel"; -var xb = _e( +DF.displayName = "FormLabel"; +var gb = _e( function(t, r) { - const n = Vo(), o = yb(); + const n = Lo(), o = vb(); if (!(n != null && n.isRequired)) return null; const a = Xe("chakra-form__required-indicator", t.className); @@ -16802,22 +17045,22 @@ var xb = _e( ); } ); -xb.displayName = "RequiredIndicator"; -function JV(e) { - const { isDisabled: t, isInvalid: r, isReadOnly: n, isRequired: o, ...a } = jF(e); +gb.displayName = "RequiredIndicator"; +function UV(e) { + const { isDisabled: t, isInvalid: r, isReadOnly: n, isRequired: o, ...a } = MF(e); return { ...a, disabled: t, readOnly: n, required: o, - "aria-invalid": Ol(r), - "aria-required": Ol(o), - "aria-readonly": Ol(n) + "aria-invalid": Tl(r), + "aria-required": Tl(o), + "aria-readonly": Tl(n) }; } -function jF(e) { +function MF(e) { var t, r, n; - const o = Vo(), { + const o = Lo(), { id: a, disabled: i, readOnly: s, @@ -16838,20 +17081,20 @@ function jF(e) { isReadOnly: (r = s ?? d) != null ? r : o == null ? void 0 : o.isReadOnly, isRequired: (n = l ?? c) != null ? n : o == null ? void 0 : o.isRequired, isInvalid: u ?? (o == null ? void 0 : o.isInvalid), - onFocus: Rt(o == null ? void 0 : o.onFocus, p), - onBlur: Rt(o == null ? void 0 : o.onBlur, m) + onFocus: $t(o == null ? void 0 : o.onFocus, p), + onBlur: $t(o == null ? void 0 : o.onBlur, m) }; } -function BF(e) { +function IF(e) { const t = parseFloat(e); return typeof t != "number" || Number.isNaN(t) ? 0 : t; } -function zF(e, t) { - let r = BF(e); +function FF(e, t) { + let r = IF(e); const n = 10 ** (t ?? 10); return r = Math.round(r * n) / n, t ? r.toFixed(t) : r.toString(); } -function VF(e) { +function NF(e) { if (!Number.isFinite(e)) return 0; let t = 1, r = 0; @@ -16859,20 +17102,20 @@ function VF(e) { t *= 10, r += 1; return r; } -function Ts(e, t, r) { +function Ps(e, t, r) { return (e - t) * 100 / (r - t); } -function Sb(e, t, r) { +function bb(e, t, r) { return (r - t) * e + t; } -function pu(e, t, r) { - const n = Math.round((e - t) / r) * r + t, o = VF(r); - return zF(n, o); +function du(e, t, r) { + const n = Math.round((e - t) / r) * r + t, o = NF(r); + return FF(n, o); } -function Sa(e, t, r) { +function Ca(e, t, r) { return e == null ? e : (r < t && console.warn("clamp: max cannot be less than min"), Math.min(Math.max(e, t), r)); } -function wa(e, t, r, n) { +function _a(e, t, r, n) { const o = Jt(r); return Fe(() => { const a = typeof e == "function" ? e() : e ?? document; @@ -16885,7 +17128,7 @@ function wa(e, t, r, n) { a == null || a.removeEventListener(t, o, n); }; } -function LF(e, t) { +function jF(e, t) { if (e == null) return {}; var r = {}, n = Object.keys(e), o, a; @@ -16893,37 +17136,27 @@ function LF(e, t) { o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]); return r; } -function Ha() { - return Ha = Object.assign ? Object.assign.bind() : function(e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t]; - for (var n in r) - Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); - } - return e; - }, Ha.apply(this, arguments); -} -var hu = { exports: {} }, cc, Lh; -function xd() { - if (Lh) - return cc; - Lh = 1; +var fu = { exports: {} }, sc, Vh; +function yd() { + if (Vh) + return sc; + Vh = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; - return cc = e, cc; + return sc = e, sc; } -var uc, Wh; -function wb() { - return Wh || (Wh = 1, uc = Function.call.bind(Object.prototype.hasOwnProperty)), uc; +var lc, Lh; +function yb() { + return Lh || (Lh = 1, lc = Function.call.bind(Object.prototype.hasOwnProperty)), lc; } -var dc, Uh; -function WF() { - if (Uh) - return dc; - Uh = 1; +var cc, Wh; +function BF() { + if (Wh) + return cc; + Wh = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { - var t = xd(), r = {}, n = wb(); + var t = yd(), r = {}, n = yb(); e = function(a) { var i = "Warning: " + a; typeof console < "u" && console.error(i); @@ -16963,14 +17196,14 @@ function WF() { } return o.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (r = {}); - }, dc = o, dc; + }, cc = o, cc; } -var fc, Hh; -function UF() { - if (Hh) - return fc; - Hh = 1; - var e = $u, t = Om(), r = xd(), n = wb(), o = WF(), a = function() { +var uc, Uh; +function zF() { + if (Uh) + return uc; + Uh = 1; + var e = Au, t = Tm(), r = yd(), n = yb(), o = BF(), a = function() { }; process.env.NODE_ENV !== "production" && (a = function(s) { var l = "Warning: " + s; @@ -16983,7 +17216,7 @@ function UF() { function i() { return null; } - return fc = function(s, l) { + return uc = function(s, l) { var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator"; function d(F) { var N = F && (c && F[c] || F[u]); @@ -17001,7 +17234,7 @@ function UF() { symbol: b("symbol"), any: y(), arrayOf: S, - element: k(), + element: _(), elementType: w(), instanceOf: M, node: j(), @@ -17021,33 +17254,33 @@ function UF() { function v(F) { if (process.env.NODE_ENV !== "production") var N = {}, V = 0; - function T(B, C, H, A, Z, Y, ae) { - if (A = A || f, Y = Y || H, ae !== r) { + function T(B, C, H, O, Z, Y, ae) { + if (O = O || f, Y = Y || H, ae !== r) { if (l) { - var $ = new Error( + var R = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); - throw $.name = "Invariant Violation", $; + throw R.name = "Invariant Violation", R; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { - var Se = A + ":" + H; + var Se = O + ":" + H; !N[Se] && // Avoid spamming the console because they are often not actionable except for lib authors V < 3 && (a( - "You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + A + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." + "You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + O + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." ), N[Se] = !0, V++); } } - return C[H] == null ? B ? C[H] === null ? new h("The " + Z + " `" + Y + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new h("The " + Z + " `" + Y + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : F(C, H, A, Z, Y); + return C[H] == null ? B ? C[H] === null ? new h("The " + Z + " `" + Y + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new h("The " + Z + " `" + Y + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : F(C, H, O, Z, Y); } - var O = T.bind(null, !1); - return O.isRequired = T.bind(null, !0), O; + var A = T.bind(null, !1); + return A.isRequired = T.bind(null, !0), A; } function b(F) { - function N(V, T, O, B, C, H) { - var A = V[T], Z = oe(A); + function N(V, T, A, B, C, H) { + var O = V[T], Z = oe(O); if (Z !== F) { - var Y = D(A); + var Y = D(O); return new h( - "Invalid " + B + " `" + C + "` of type " + ("`" + Y + "` supplied to `" + O + "`, expected ") + ("`" + F + "`."), + "Invalid " + B + " `" + C + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected ") + ("`" + F + "`."), { expectedType: F } ); } @@ -17059,16 +17292,16 @@ function UF() { return v(i); } function S(F) { - function N(V, T, O, B, C) { + function N(V, T, A, B, C) { if (typeof F != "function") - return new h("Property `" + C + "` of component `" + O + "` has invalid PropType notation inside arrayOf."); + return new h("Property `" + C + "` of component `" + A + "` has invalid PropType notation inside arrayOf."); var H = V[T]; if (!Array.isArray(H)) { - var A = oe(H); - return new h("Invalid " + B + " `" + C + "` of type " + ("`" + A + "` supplied to `" + O + "`, expected an array.")); + var O = oe(H); + return new h("Invalid " + B + " `" + C + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected an array.")); } for (var Z = 0; Z < H.length; Z++) { - var Y = F(H, Z, O, B, C + "[" + Z + "]", r); + var Y = F(H, Z, A, B, C + "[" + Z + "]", r); if (Y instanceof Error) return Y; } @@ -17076,33 +17309,33 @@ function UF() { } return v(N); } - function k() { - function F(N, V, T, O, B) { + function _() { + function F(N, V, T, A, B) { var C = N[V]; if (!s(C)) { var H = oe(C); - return new h("Invalid " + O + " `" + B + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected a single ReactElement.")); + return new h("Invalid " + A + " `" + B + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected a single ReactElement.")); } return null; } return v(F); } function w() { - function F(N, V, T, O, B) { + function F(N, V, T, A, B) { var C = N[V]; if (!e.isValidElementType(C)) { var H = oe(C); - return new h("Invalid " + O + " `" + B + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected a single ReactElement type.")); + return new h("Invalid " + A + " `" + B + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected a single ReactElement type.")); } return null; } return v(F); } function M(F) { - function N(V, T, O, B, C) { + function N(V, T, A, B, C) { if (!(V[T] instanceof F)) { - var H = F.name || f, A = fe(V[T]); - return new h("Invalid " + B + " `" + C + "` of type " + ("`" + A + "` supplied to `" + O + "`, expected ") + ("instance of `" + H + "`.")); + var H = F.name || f, O = fe(V[T]); + return new h("Invalid " + B + " `" + C + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected ") + ("instance of `" + H + "`.")); } return null; } @@ -17113,28 +17346,28 @@ function UF() { return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a( "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." ) : a("Invalid argument supplied to oneOf, expected an array.")), i; - function N(V, T, O, B, C) { - for (var H = V[T], A = 0; A < F.length; A++) - if (m(H, F[A])) + function N(V, T, A, B, C) { + for (var H = V[T], O = 0; O < F.length; O++) + if (m(H, F[O])) return null; - var Z = JSON.stringify(F, function(ae, $) { - var Se = D($); - return Se === "symbol" ? String($) : $; + var Z = JSON.stringify(F, function(ae, R) { + var Se = D(R); + return Se === "symbol" ? String(R) : R; }); - return new h("Invalid " + B + " `" + C + "` of value `" + String(H) + "` " + ("supplied to `" + O + "`, expected one of " + Z + ".")); + return new h("Invalid " + B + " `" + C + "` of value `" + String(H) + "` " + ("supplied to `" + A + "`, expected one of " + Z + ".")); } return v(N); } function I(F) { - function N(V, T, O, B, C) { + function N(V, T, A, B, C) { if (typeof F != "function") - return new h("Property `" + C + "` of component `" + O + "` has invalid PropType notation inside objectOf."); - var H = V[T], A = oe(H); - if (A !== "object") - return new h("Invalid " + B + " `" + C + "` of type " + ("`" + A + "` supplied to `" + O + "`, expected an object.")); + return new h("Property `" + C + "` of component `" + A + "` has invalid PropType notation inside objectOf."); + var H = V[T], O = oe(H); + if (O !== "object") + return new h("Invalid " + B + " `" + C + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected an object.")); for (var Z in H) if (n(H, Z)) { - var Y = F(H, Z, O, B, C + "." + Z, r); + var Y = F(H, Z, A, B, C + "." + Z, r); if (Y instanceof Error) return Y; } @@ -17152,39 +17385,39 @@ function UF() { "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(V) + " at index " + N + "." ), i; } - function T(O, B, C, H, A) { + function T(A, B, C, H, O) { for (var Z = [], Y = 0; Y < F.length; Y++) { - var ae = F[Y], $ = ae(O, B, C, H, A, r); - if ($ == null) + var ae = F[Y], R = ae(A, B, C, H, O, r); + if (R == null) return null; - $.data && n($.data, "expectedType") && Z.push($.data.expectedType); + R.data && n(R.data, "expectedType") && Z.push(R.data.expectedType); } var Se = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : ""; - return new h("Invalid " + H + " `" + A + "` supplied to " + ("`" + C + "`" + Se + ".")); + return new h("Invalid " + H + " `" + O + "` supplied to " + ("`" + C + "`" + Se + ".")); } return v(T); } function j() { - function F(N, V, T, O, B) { - return Q(N[V]) ? null : new h("Invalid " + O + " `" + B + "` supplied to " + ("`" + T + "`, expected a ReactNode.")); + function F(N, V, T, A, B) { + return Q(N[V]) ? null : new h("Invalid " + A + " `" + B + "` supplied to " + ("`" + T + "`, expected a ReactNode.")); } return v(F); } - function X(F, N, V, T, O) { + function X(F, N, V, T, A) { return new h( - (F || "React class") + ": " + N + " type `" + V + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`." + (F || "React class") + ": " + N + " type `" + V + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`." ); } function ne(F) { - function N(V, T, O, B, C) { - var H = V[T], A = oe(H); - if (A !== "object") - return new h("Invalid " + B + " `" + C + "` of type `" + A + "` " + ("supplied to `" + O + "`, expected `object`.")); + function N(V, T, A, B, C) { + var H = V[T], O = oe(H); + if (O !== "object") + return new h("Invalid " + B + " `" + C + "` of type `" + O + "` " + ("supplied to `" + A + "`, expected `object`.")); for (var Z in F) { var Y = F[Z]; if (typeof Y != "function") - return X(O, B, C, Z, D(Y)); - var ae = Y(H, Z, O, B, C + "." + Z, r); + return X(A, B, C, Z, D(Y)); + var ae = Y(H, Z, A, B, C + "." + Z, r); if (ae) return ae; } @@ -17193,23 +17426,23 @@ function UF() { return v(N); } function J(F) { - function N(V, T, O, B, C) { - var H = V[T], A = oe(H); - if (A !== "object") - return new h("Invalid " + B + " `" + C + "` of type `" + A + "` " + ("supplied to `" + O + "`, expected `object`.")); + function N(V, T, A, B, C) { + var H = V[T], O = oe(H); + if (O !== "object") + return new h("Invalid " + B + " `" + C + "` of type `" + O + "` " + ("supplied to `" + A + "`, expected `object`.")); var Z = t({}, V[T], F); for (var Y in Z) { var ae = F[Y]; if (n(F, Y) && typeof ae != "function") - return X(O, B, C, Y, D(ae)); + return X(A, B, C, Y, D(ae)); if (!ae) return new h( - "Invalid " + B + " `" + C + "` key `" + Y + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(V[T], null, " ") + ` + "Invalid " + B + " `" + C + "` key `" + Y + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(V[T], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(F), null, " ") ); - var $ = ae(H, Y, O, B, C + "." + Y, r); - if ($) - return $; + var R = ae(H, Y, A, B, C + "." + Y, r); + if (R) + return R; } return null; } @@ -17237,8 +17470,8 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ") return !1; } else for (; !(T = V.next()).done; ) { - var O = T.value; - if (O && !Q(O[1])) + var A = T.value; + if (A && !Q(A[1])) return !1; } } else @@ -17285,19 +17518,19 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ") return !F.constructor || !F.constructor.name ? f : F.constructor.name; } return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p; - }, fc; -} -var pc, Yh; -function HF() { - if (Yh) - return pc; - Yh = 1; - var e = xd(); + }, uc; +} +var dc, Hh; +function VF() { + if (Hh) + return dc; + Hh = 1; + var e = yd(); function t() { } function r() { } - return r.resetWarningCache = t, pc = function() { + return r.resetWarningCache = t, dc = function() { function n(i, s, l, c, u, d) { if (d !== e) { var f = new Error( @@ -17334,20 +17567,20 @@ function HF() { resetWarningCache: t }; return a.PropTypes = a, a; - }, pc; + }, dc; } if (process.env.NODE_ENV !== "production") { - var YF = $u, qF = !0; - hu.exports = UF()(YF.isElement, qF); + var LF = Au, WF = !0; + fu.exports = zF()(LF.isElement, WF); } else - hu.exports = HF()(); -var Ge = hu.exports; -const Cb = /* @__PURE__ */ Is(Ge); -var mu = "data-focus-lock", _b = "data-focus-lock-disabled", GF = "data-no-focus-lock", XF = "data-autofocus-inside", KF = "data-no-autofocus"; -function ZF(e, t) { + fu.exports = VF()(); +var Ge = fu.exports; +const xb = /* @__PURE__ */ Ms(Ge); +var pu = "data-focus-lock", Sb = "data-focus-lock-disabled", UF = "data-no-focus-lock", HF = "data-autofocus-inside", YF = "data-no-autofocus"; +function qF(e, t) { return typeof e == "function" ? e(t) : e && (e.current = t), e; } -function JF(e, t) { +function GF(e, t) { var r = Ye(function() { return { // value @@ -17368,14 +17601,14 @@ function JF(e, t) { })[0]; return r.callback = t, r.facade; } -function kb(e, t) { - return JF(t || null, function(r) { +function wb(e, t) { + return GF(t || null, function(r) { return e.forEach(function(n) { - return ZF(n, r); + return qF(n, r); }); }); } -var hc = { +var fc = { width: "1px", height: "0px", padding: 0, @@ -17384,18 +17617,18 @@ var hc = { top: "1px", left: "1px" }; -process.env.NODE_ENV !== "production" && Cb.node; -var Rr = function() { - return Rr = Object.assign || function(t) { +process.env.NODE_ENV !== "production" && xb.node; +var Dr = function() { + return Dr = Object.assign || function(t) { for (var r, n = 1, o = arguments.length; n < o; n++) { r = arguments[n]; for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]); } return t; - }, Rr.apply(this, arguments); + }, Dr.apply(this, arguments); }; -function Eb(e, t) { +function Cb(e, t) { var r = {}; for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); @@ -17404,17 +17637,17 @@ function Eb(e, t) { t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]); return r; } -function QF(e, t, r) { +function XF(e, t, r) { if (r || arguments.length === 2) for (var n = 0, o = t.length, a; n < o; n++) (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]); return e.concat(a || Array.prototype.slice.call(t)); } -function Pb(e) { +function _b(e) { return e; } -function Tb(e, t) { - t === void 0 && (t = Pb); +function kb(e, t) { + t === void 0 && (t = _b); var r = [], n = !1, o = { read: function() { if (n) @@ -17468,40 +17701,40 @@ function Tb(e, t) { }; return o; } -function Sd(e, t) { - return t === void 0 && (t = Pb), Tb(e, t); +function xd(e, t) { + return t === void 0 && (t = _b), kb(e, t); } -function Ab(e) { +function Eb(e) { e === void 0 && (e = {}); - var t = Tb(null); - return t.options = Rr({ async: !0, ssr: !1 }, e), t; + var t = kb(null); + return t.options = Dr({ async: !0, ssr: !1 }, e), t; } -var Ob = function(e) { - var t = e.sideCar, r = Eb(e, ["sideCar"]); +var Pb = function(e) { + var t = e.sideCar, r = Cb(e, ["sideCar"]); if (!t) throw new Error("Sidecar: please provide `sideCar` property to import the right car"); var n = t.read(); if (!n) throw new Error("Sidecar medium not found"); - return U.createElement(n, Rr({}, r)); + return U.createElement(n, Dr({}, r)); }; -Ob.isSideCarExport = !0; -function e5(e, t) { - return e.useMedium(t), Ob; +Pb.isSideCarExport = !0; +function KF(e, t) { + return e.useMedium(t), Pb; } -var $b = Sd({}, function(e) { +var Tb = xd({}, function(e) { var t = e.target, r = e.currentTarget; return { target: t, currentTarget: r }; -}), Rb = Sd(), t5 = Sd(), r5 = Ab({ +}), Ab = xd(), ZF = xd(), JF = Eb({ async: !0 // focus-lock sidecar is not required on the server // however, it might be required for JSDOM tests // ssr: true, -}), n5 = [], wd = /* @__PURE__ */ U.forwardRef(function(t, r) { - var n, o = U.useState(), a = o[0], i = o[1], s = U.useRef(), l = U.useRef(!1), c = U.useRef(null), u = t.children, d = t.disabled, f = t.noFocusGuards, p = t.persistentFocus, m = t.crossFrame, h = t.autoFocus, v = t.allowTextSelection, b = t.group, y = t.className, S = t.whiteList, k = t.hasPositiveIndices, w = t.shards, M = w === void 0 ? n5 : w, P = t.as, I = P === void 0 ? "div" : P, z = t.lockProps, j = z === void 0 ? {} : z, X = t.sideCar, ne = t.returnFocus, J = t.focusOptions, Q = t.onActivation, ee = t.onDeactivation, oe = U.useState({}), D = oe[0], ce = U.useCallback(function() { +}), QF = [], Sd = /* @__PURE__ */ U.forwardRef(function(t, r) { + var n, o = U.useState(), a = o[0], i = o[1], s = U.useRef(), l = U.useRef(!1), c = U.useRef(null), u = t.children, d = t.disabled, f = t.noFocusGuards, p = t.persistentFocus, m = t.crossFrame, h = t.autoFocus, v = t.allowTextSelection, b = t.group, y = t.className, S = t.whiteList, _ = t.hasPositiveIndices, w = t.shards, M = w === void 0 ? QF : w, P = t.as, I = P === void 0 ? "div" : P, z = t.lockProps, j = z === void 0 ? {} : z, X = t.sideCar, ne = t.returnFocus, J = t.focusOptions, Q = t.onActivation, ee = t.onDeactivation, oe = U.useState({}), D = oe[0], ce = U.useCallback(function() { c.current = c.current || document && document.activeElement, s.current && Q && Q(s.current), l.current = !0; }, [Q]), fe = U.useCallback(function() { l.current = !1, ee && ee(s.current); @@ -17509,44 +17742,44 @@ var $b = Sd({}, function(e) { Fe(function() { d || (c.current = null); }, []); - var F = U.useCallback(function(A) { + var F = U.useCallback(function(O) { var Z = c.current; if (Z && Z.focus) { var Y = typeof ne == "function" ? ne(Z) : ne; if (Y) { var ae = typeof Y == "object" ? Y : void 0; - c.current = null, A ? Promise.resolve().then(function() { + c.current = null, O ? Promise.resolve().then(function() { return Z.focus(ae); }) : Z.focus(ae); } } - }, [ne]), N = U.useCallback(function(A) { - l.current && $b.useMedium(A); - }, []), V = Rb.useMedium, T = U.useCallback(function(A) { - s.current !== A && (s.current = A, i(A)); + }, [ne]), N = U.useCallback(function(O) { + l.current && Tb.useMedium(O); + }, []), V = Ab.useMedium, T = U.useCallback(function(O) { + s.current !== O && (s.current = O, i(O)); }, []); process.env.NODE_ENV !== "production" && (typeof v < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), U.useEffect(function() { !s.current && typeof I != "string" && console.error("FocusLock: could not obtain ref to internal node"); }, [])); - var O = Ha((n = {}, n[_b] = d && "disabled", n[mu] = b, n), j), B = f !== !0, C = B && f !== "tail", H = kb([r, T]); + var A = Wn((n = {}, n[Sb] = d && "disabled", n[pu] = b, n), j), B = f !== !0, C = B && f !== "tail", H = wb([r, T]); return /* @__PURE__ */ U.createElement(U.Fragment, null, B && [ // nearest focus guard /* @__PURE__ */ U.createElement("div", { key: "guard-first", "data-focus-guard": !0, tabIndex: d ? -1 : 0, - style: hc + style: fc }), // first tabbed element guard - k ? /* @__PURE__ */ U.createElement("div", { + _ ? /* @__PURE__ */ U.createElement("div", { key: "guard-nearest", "data-focus-guard": !0, tabIndex: d ? -1 : 1, - style: hc + style: fc }) : null ], !d && /* @__PURE__ */ U.createElement(X, { id: D, - sideCar: r5, + sideCar: JF, observed: a, disabled: d, persistentFocus: p, @@ -17558,19 +17791,19 @@ var $b = Sd({}, function(e) { onDeactivation: fe, returnFocus: F, focusOptions: J - }), /* @__PURE__ */ U.createElement(I, Ha({ + }), /* @__PURE__ */ U.createElement(I, Wn({ ref: H - }, O, { + }, A, { className: y, onBlur: V, onFocus: N }), u), C && /* @__PURE__ */ U.createElement("div", { "data-focus-guard": !0, tabIndex: d ? -1 : 0, - style: hc + style: fc })); }); -wd.propTypes = process.env.NODE_ENV !== "production" ? { +Sd.propTypes = process.env.NODE_ENV !== "production" ? { children: Ge.node, disabled: Ge.bool, returnFocus: Ge.oneOfType([Ge.bool, Ge.object, Ge.func]), @@ -17591,7 +17824,7 @@ wd.propTypes = process.env.NODE_ENV !== "production" ? { onDeactivation: Ge.func, sideCar: Ge.any.isRequired } : {}; -wd.defaultProps = { +Sd.defaultProps = { children: void 0, disabled: !1, returnFocus: !1, @@ -17611,16 +17844,8 @@ wd.defaultProps = { onActivation: void 0, onDeactivation: void 0 }; -const Db = wd; -function vu(e, t) { - return vu = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) { - return n.__proto__ = o, n; - }, vu(e, t); -} -function o5(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, vu(e, t); -} -function a5(e, t) { +const Ob = Sd; +function e5(e, t) { if (process.env.NODE_ENV !== "production") { if (typeof e != "function") throw new Error("Expected reducePropsToState to be a function."); @@ -17640,7 +17865,7 @@ function a5(e, t) { })), t(i); } var l = /* @__PURE__ */ function(c) { - o5(u, c); + T0(u, c); function u() { return c.apply(this, arguments) || this; } @@ -17658,67 +17883,67 @@ function a5(e, t) { }, d.render = function() { return /* @__PURE__ */ It.createElement(o, this.props); }, u; - }(k0); - return Sm(l, "displayName", "SideEffect(" + r(o) + ")"), l; + }(w0); + return _u(l, "displayName", "SideEffect(" + r(o) + ")"), l; }; } -var Br = function(e) { +var zr = function(e) { for (var t = Array(e.length), r = 0; r < e.length; ++r) t[r] = e[r]; return t; -}, As = function(e) { +}, Ts = function(e) { return Array.isArray(e) ? e : [e]; -}, Mb = function(e) { +}, Rb = function(e) { return Array.isArray(e) ? e[0] : e; -}, i5 = function(e) { +}, t5 = function(e) { if (e.nodeType !== Node.ELEMENT_NODE) return !1; var t = window.getComputedStyle(e, null); return !t || !t.getPropertyValue ? !1 : t.getPropertyValue("display") === "none" || t.getPropertyValue("visibility") === "hidden"; -}, Ib = function(e) { +}, $b = function(e) { return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? ( // eslint-disable-next-line @typescript-eslint/no-explicit-any e.parentNode.host ) : e.parentNode; -}, Fb = function(e) { +}, Db = function(e) { return e === document || e && e.nodeType === Node.DOCUMENT_NODE; -}, s5 = function(e, t) { - return !e || Fb(e) || !i5(e) && t(Ib(e)); -}, Nb = function(e, t) { +}, r5 = function(e, t) { + return !e || Db(e) || !t5(e) && t($b(e)); +}, Mb = function(e, t) { var r = e.get(t); if (r !== void 0) return r; - var n = s5(t, Nb.bind(void 0, e)); + var n = r5(t, Mb.bind(void 0, e)); return e.set(t, n), n; -}, l5 = function(e, t) { - return e && !Fb(e) ? d5(e) ? t(Ib(e)) : !1 : !0; -}, jb = function(e, t) { +}, n5 = function(e, t) { + return e && !Db(e) ? i5(e) ? t($b(e)) : !1 : !0; +}, Ib = function(e, t) { var r = e.get(t); if (r !== void 0) return r; - var n = l5(t, jb.bind(void 0, e)); + var n = n5(t, Ib.bind(void 0, e)); return e.set(t, n), n; -}, Bb = function(e) { +}, Fb = function(e) { return e.dataset; -}, c5 = function(e) { +}, o5 = function(e) { return e.tagName === "BUTTON"; -}, zb = function(e) { +}, Nb = function(e) { return e.tagName === "INPUT"; -}, Vb = function(e) { - return zb(e) && e.type === "radio"; -}, u5 = function(e) { - return !((zb(e) || c5(e)) && (e.type === "hidden" || e.disabled)); -}, d5 = function(e) { - var t = e.getAttribute(KF); +}, jb = function(e) { + return Nb(e) && e.type === "radio"; +}, a5 = function(e) { + return !((Nb(e) || o5(e)) && (e.type === "hidden" || e.disabled)); +}, i5 = function(e) { + var t = e.getAttribute(YF); return ![!0, "true", ""].includes(t); -}, Cd = function(e) { +}, wd = function(e) { var t; - return !!(e && (!((t = Bb(e)) === null || t === void 0) && t.focusGuard)); -}, Os = function(e) { - return !Cd(e); -}, f5 = function(e) { + return !!(e && (!((t = Fb(e)) === null || t === void 0) && t.focusGuard)); +}, As = function(e) { + return !wd(e); +}, s5 = function(e) { return !!e; -}, p5 = function(e, t) { +}, l5 = function(e, t) { var r = e.tabIndex - t.tabIndex, n = e.index - t.index; if (r) { if (!e.tabIndex) @@ -17727,8 +17952,8 @@ var Br = function(e) { return -1; } return r || n; -}, Lb = function(e, t, r) { - return Br(e).map(function(n, o) { +}, Bb = function(e, t, r) { + return zr(e).map(function(n, o) { return { node: n, index: o, @@ -17736,8 +17961,8 @@ var Br = function(e) { }; }).filter(function(n) { return !t || n.tabIndex >= 0; - }).sort(p5); -}, h5 = [ + }).sort(l5); +}, c5 = [ "button:enabled", "select:enabled", "textarea:enabled", @@ -17755,60 +17980,60 @@ var Br = function(e) { "[tabindex]", "[contenteditable]", "[autofocus]" -], _d = h5.join(","), m5 = "".concat(_d, ", [data-focus-guard]"), Wb = function(e, t) { - return Br((e.shadowRoot || e).children).reduce(function(r, n) { - return r.concat(n.matches(t ? m5 : _d) ? [n] : [], Wb(n)); +], Cd = c5.join(","), u5 = "".concat(Cd, ", [data-focus-guard]"), zb = function(e, t) { + return zr((e.shadowRoot || e).children).reduce(function(r, n) { + return r.concat(n.matches(t ? u5 : Cd) ? [n] : [], zb(n)); }, []); -}, v5 = function(e, t) { +}, d5 = function(e, t) { var r; - return e instanceof HTMLIFrameElement && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? ol([e.contentDocument.body], t) : [e]; -}, ol = function(e, t) { + return e instanceof HTMLIFrameElement && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? rl([e.contentDocument.body], t) : [e]; +}, rl = function(e, t) { return e.reduce(function(r, n) { - var o, a = Wb(n, t), i = (o = []).concat.apply(o, a.map(function(s) { - return v5(s, t); + var o, a = zb(n, t), i = (o = []).concat.apply(o, a.map(function(s) { + return d5(s, t); })); return r.concat( // add all tabbables inside and within shadow DOMs in DOM order i, // add if node is tabbable itself - n.parentNode ? Br(n.parentNode.querySelectorAll(_d)).filter(function(s) { + n.parentNode ? zr(n.parentNode.querySelectorAll(Cd)).filter(function(s) { return s === n; }) : [] ); }, []); -}, g5 = function(e) { - var t = e.querySelectorAll("[".concat(XF, "]")); - return Br(t).map(function(r) { - return ol([r]); +}, f5 = function(e) { + var t = e.querySelectorAll("[".concat(HF, "]")); + return zr(t).map(function(r) { + return rl([r]); }).reduce(function(r, n) { return r.concat(n); }, []); -}, kd = function(e, t) { - return Br(e).filter(function(r) { - return Nb(t, r); +}, _d = function(e, t) { + return zr(e).filter(function(r) { + return Mb(t, r); }).filter(function(r) { - return u5(r); + return a5(r); }); -}, qh = function(e, t) { - return t === void 0 && (t = /* @__PURE__ */ new Map()), Br(e).filter(function(r) { - return jb(t, r); +}, Yh = function(e, t) { + return t === void 0 && (t = /* @__PURE__ */ new Map()), zr(e).filter(function(r) { + return Ib(t, r); }); -}, gu = function(e, t, r) { - return Lb(kd(ol(e, r), t), !0, r); -}, Gh = function(e, t) { - return Lb(kd(ol(e), t), !1); -}, b5 = function(e, t) { - return kd(g5(e), t); -}, So = function(e, t) { - return e.shadowRoot ? So(e.shadowRoot, t) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, t) ? !0 : Br(e.children).some(function(r) { +}, hu = function(e, t, r) { + return Bb(_d(rl(e, r), t), !0, r); +}, qh = function(e, t) { + return Bb(_d(rl(e), t), !1); +}, p5 = function(e, t) { + return _d(f5(e), t); +}, wo = function(e, t) { + return e.shadowRoot ? wo(e.shadowRoot, t) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, t) ? !0 : zr(e.children).some(function(r) { var n; if (r instanceof HTMLIFrameElement) { var o = (n = r.contentDocument) === null || n === void 0 ? void 0 : n.body; - return o ? So(o, t) : !1; + return o ? wo(o, t) : !1; } - return So(r, t); + return wo(r, t); }); -}, y5 = function(e) { +}, h5 = function(e) { for (var t = /* @__PURE__ */ new Set(), r = e.length, n = 0; n < r; n += 1) for (var o = n + 1; o < r; o += 1) { var a = e[n].compareDocumentPosition(e[o]); @@ -17817,15 +18042,15 @@ var Br = function(e) { return e.filter(function(i, s) { return !t.has(s); }); -}, Ub = function(e) { - return e.parentNode ? Ub(e.parentNode) : e; -}, Ed = function(e) { - var t = As(e); +}, Vb = function(e) { + return e.parentNode ? Vb(e.parentNode) : e; +}, kd = function(e) { + var t = Ts(e); return t.filter(Boolean).reduce(function(r, n) { - var o = n.getAttribute(mu); - return r.push.apply(r, o ? y5(Br(Ub(n).querySelectorAll("[".concat(mu, '="').concat(o, '"]:not([').concat(_b, '="disabled"])')))) : [n]), r; + var o = n.getAttribute(pu); + return r.push.apply(r, o ? h5(zr(Vb(n).querySelectorAll("[".concat(pu, '="').concat(o, '"]:not([').concat(Sb, '="disabled"])')))) : [n]), r; }, []); -}, x5 = function(e) { +}, m5 = function(e) { try { return e(); } catch { @@ -17834,51 +18059,51 @@ var Br = function(e) { }, Ya = function(e) { if (e === void 0 && (e = document), !(!e || !e.activeElement)) { var t = e.activeElement; - return t.shadowRoot ? Ya(t.shadowRoot) : t instanceof HTMLIFrameElement && x5(function() { + return t.shadowRoot ? Ya(t.shadowRoot) : t instanceof HTMLIFrameElement && m5(function() { return t.contentWindow.document; }) ? Ya(t.contentWindow.document) : t; } -}, S5 = function(e, t) { +}, v5 = function(e, t) { return e === t; -}, w5 = function(e, t) { - return !!Br(e.querySelectorAll("iframe")).some(function(r) { - return S5(r, t); +}, g5 = function(e, t) { + return !!zr(e.querySelectorAll("iframe")).some(function(r) { + return v5(r, t); }); -}, Hb = function(e, t) { - return t === void 0 && (t = Ya(Mb(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : Ed(e).some(function(r) { - return So(r, t) || w5(r, t); +}, Lb = function(e, t) { + return t === void 0 && (t = Ya(Rb(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : kd(e).some(function(r) { + return wo(r, t) || g5(r, t); }); -}, C5 = function(e) { +}, b5 = function(e) { e === void 0 && (e = document); var t = Ya(e); - return t ? Br(e.querySelectorAll("[".concat(GF, "]"))).some(function(r) { - return So(r, t); + return t ? zr(e.querySelectorAll("[".concat(UF, "]"))).some(function(r) { + return wo(r, t); }) : !1; -}, _5 = function(e, t) { - return t.filter(Vb).filter(function(r) { +}, y5 = function(e, t) { + return t.filter(jb).filter(function(r) { return r.name === e.name; }).filter(function(r) { return r.checked; })[0] || e; -}, Pd = function(e, t) { - return Vb(e) && e.name ? _5(e, t) : e; -}, k5 = function(e) { +}, Ed = function(e, t) { + return jb(e) && e.name ? y5(e, t) : e; +}, x5 = function(e) { var t = /* @__PURE__ */ new Set(); return e.forEach(function(r) { - return t.add(Pd(r, e)); + return t.add(Ed(r, e)); }), e.filter(function(r) { return t.has(r); }); -}, Xh = function(e) { - return e[0] && e.length > 1 ? Pd(e[0], e) : e[0]; -}, Kh = function(e, t) { - return e.length > 1 ? e.indexOf(Pd(e[t], e)) : t; -}, Yb = "NEW_FOCUS", E5 = function(e, t, r, n) { - var o = e.length, a = e[0], i = e[o - 1], s = Cd(r); +}, Gh = function(e) { + return e[0] && e.length > 1 ? Ed(e[0], e) : e[0]; +}, Xh = function(e, t) { + return e.length > 1 ? e.indexOf(Ed(e[t], e)) : t; +}, Wb = "NEW_FOCUS", S5 = function(e, t, r, n) { + var o = e.length, a = e[0], i = e[o - 1], s = wd(r); if (!(r && e.indexOf(r) >= 0)) { - var l = r !== void 0 ? t.indexOf(r) : -1, c = n ? t.indexOf(n) : l, u = n ? e.indexOf(n) : -1, d = l - c, f = t.indexOf(a), p = t.indexOf(i), m = k5(t), h = r !== void 0 ? m.indexOf(r) : -1, v = h - (n ? m.indexOf(n) : l), b = Kh(e, 0), y = Kh(e, o - 1); + var l = r !== void 0 ? t.indexOf(r) : -1, c = n ? t.indexOf(n) : l, u = n ? e.indexOf(n) : -1, d = l - c, f = t.indexOf(a), p = t.indexOf(i), m = x5(t), h = r !== void 0 ? m.indexOf(r) : -1, v = h - (n ? m.indexOf(n) : l), b = Xh(e, 0), y = Xh(e, o - 1); if (l === -1 || u === -1) - return Yb; + return Wb; if (!d && u >= 0) return u; if (l <= f && s && Math.abs(d) > 1) @@ -17894,9 +18119,9 @@ var Br = function(e) { if (d) return Math.abs(d) > 1 ? u : (o + u + d) % o; } -}, P5 = function(e) { +}, w5 = function(e) { return function(t) { - var r, n = (r = Bb(t)) === null || r === void 0 ? void 0 : r.autofocus; + var r, n = (r = Fb(t)) === null || r === void 0 ? void 0 : r.autofocus; return ( // @ts-expect-error t.autofocus || // @@ -17904,55 +18129,55 @@ var Br = function(e) { e.indexOf(t) >= 0 ); }; -}, T5 = function(e, t, r) { +}, C5 = function(e, t, r) { var n = e.map(function(a) { var i = a.node; return i; - }), o = qh(n.filter(P5(r))); - return o && o.length ? Xh(o) : Xh(qh(t)); -}, bu = function(e, t) { - return t === void 0 && (t = []), t.push(e), e.parentNode && bu(e.parentNode.host || e.parentNode, t), t; -}, mc = function(e, t) { - for (var r = bu(e), n = bu(t), o = 0; o < r.length; o += 1) { + }), o = Yh(n.filter(w5(r))); + return o && o.length ? Gh(o) : Gh(Yh(t)); +}, mu = function(e, t) { + return t === void 0 && (t = []), t.push(e), e.parentNode && mu(e.parentNode.host || e.parentNode, t), t; +}, pc = function(e, t) { + for (var r = mu(e), n = mu(t), o = 0; o < r.length; o += 1) { var a = r[o]; if (n.indexOf(a) >= 0) return a; } return !1; -}, qb = function(e, t, r) { - var n = As(e), o = As(t), a = n[0], i = !1; +}, Ub = function(e, t, r) { + var n = Ts(e), o = Ts(t), a = n[0], i = !1; return o.filter(Boolean).forEach(function(s) { - i = mc(i || s, s) || i, r.filter(Boolean).forEach(function(l) { - var c = mc(a, l); - c && (!i || So(c, i) ? i = c : i = mc(c, i)); + i = pc(i || s, s) || i, r.filter(Boolean).forEach(function(l) { + var c = pc(a, l); + c && (!i || wo(c, i) ? i = c : i = pc(c, i)); }); }), i; -}, A5 = function(e, t) { +}, _5 = function(e, t) { return e.reduce(function(r, n) { - return r.concat(b5(n, t)); + return r.concat(p5(n, t)); }, []); -}, O5 = function(e, t) { +}, k5 = function(e, t) { var r = /* @__PURE__ */ new Map(); return t.forEach(function(n) { return r.set(n.node, n); }), e.map(function(n) { return r.get(n); - }).filter(f5); -}, $5 = function(e, t) { - var r = Ya(As(e).length > 0 ? document : Mb(e).ownerDocument), n = Ed(e).filter(Os), o = qb(r || e, e, n), a = /* @__PURE__ */ new Map(), i = Gh(n, a), s = gu(n, a).filter(function(p) { + }).filter(s5); +}, E5 = function(e, t) { + var r = Ya(Ts(e).length > 0 ? document : Rb(e).ownerDocument), n = kd(e).filter(As), o = Ub(r || e, e, n), a = /* @__PURE__ */ new Map(), i = qh(n, a), s = hu(n, a).filter(function(p) { var m = p.node; - return Os(m); + return As(m); }); if (!(!s[0] && (s = i, !s[0]))) { - var l = Gh([o], a).map(function(p) { + var l = qh([o], a).map(function(p) { var m = p.node; return m; - }), c = O5(l, s), u = c.map(function(p) { + }), c = k5(l, s), u = c.map(function(p) { var m = p.node; return m; - }), d = E5(u, l, r, t); - if (d === Yb) { - var f = T5(i, u, A5(n, a)); + }), d = S5(u, l, r, t); + if (d === Wb) { + var f = C5(i, u, _5(n, a)); if (f) return { node: f }; console.warn("focus-lock: cannot find any node to move focus into"); @@ -17960,10 +18185,10 @@ var Br = function(e) { } return d === void 0 ? d : c[d]; } -}, R5 = function(e) { - var t = Ed(e).filter(Os), r = qb(e, e, t), n = /* @__PURE__ */ new Map(), o = gu([r], n, !0), a = gu(t, n).filter(function(i) { +}, P5 = function(e) { + var t = kd(e).filter(As), r = Ub(e, e, t), n = /* @__PURE__ */ new Map(), o = hu([r], n, !0), a = hu(t, n).filter(function(i) { var s = i.node; - return Os(s); + return As(s); }).map(function(i) { var s = i.node; return s; @@ -17974,45 +18199,45 @@ var Br = function(e) { node: s, index: l, lockItem: a.indexOf(s) >= 0, - guard: Cd(s) + guard: wd(s) }; }); -}, D5 = function(e, t) { +}, T5 = function(e, t) { "focus" in e && e.focus(t), "contentWindow" in e && e.contentWindow && e.contentWindow.focus(); -}, vc = 0, gc = !1, Gb = function(e, t, r) { +}, hc = 0, mc = !1, Hb = function(e, t, r) { r === void 0 && (r = {}); - var n = $5(e, t); - if (!gc && n) { - if (vc > 2) { - console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), gc = !0, setTimeout(function() { - gc = !1; + var n = E5(e, t); + if (!mc && n) { + if (hc > 2) { + console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), mc = !0, setTimeout(function() { + mc = !1; }, 1); return; } - vc++, D5(n.node, r.focusOptions), vc--; + hc++, T5(n.node, r.focusOptions), hc--; } }; -function Xb(e) { +function Yb(e) { var t = window, r = t.setImmediate; typeof r < "u" ? r(e) : setTimeout(e, 1); } -var M5 = function() { +var A5 = function() { return document && document.activeElement === document.body; -}, I5 = function() { - return M5() || C5(); -}, wo = null, po = null, Co = null, qa = !1, F5 = function() { +}, O5 = function() { + return A5() || b5(); +}, Co = null, ho = null, _o = null, qa = !1, R5 = function() { return !0; -}, N5 = function(t) { - return (wo.whiteList || F5)(t); -}, j5 = function(t, r) { - Co = { +}, $5 = function(t) { + return (Co.whiteList || R5)(t); +}, D5 = function(t, r) { + _o = { observerNode: t, portaledElement: r }; -}, B5 = function(t) { - return Co && Co.portaledElement === t; +}, M5 = function(t) { + return _o && _o.portaledElement === t; }; -function Zh(e, t, r, n) { +function Kh(e, t, r, n) { var o = null, a = e; do { var i = n[a]; @@ -18027,29 +18252,29 @@ function Zh(e, t, r, n) { } while ((a += r) !== t); o && (o.node.tabIndex = 0); } -var z5 = function(t) { +var I5 = function(t) { return t && "current" in t ? t.current : t; -}, V5 = function(t) { +}, F5 = function(t) { return t ? !!qa : qa === "meanwhile"; -}, L5 = function e(t, r, n) { +}, N5 = function e(t, r, n) { return r && // find host equal to active element and check nested active element (r.host === t && (!r.activeElement || n.contains(r.activeElement)) || r.parentNode && e(t, r.parentNode, n)); -}, W5 = function(t, r) { +}, j5 = function(t, r) { return r.some(function(n) { - return L5(t, n, n); + return N5(t, n, n); }); -}, $s = function() { +}, Os = function() { var t = !1; - if (wo) { - var r = wo, n = r.observed, o = r.persistentFocus, a = r.autoFocus, i = r.shards, s = r.crossFrame, l = r.focusOptions, c = n || Co && Co.portaledElement, u = document && document.activeElement; + if (Co) { + var r = Co, n = r.observed, o = r.persistentFocus, a = r.autoFocus, i = r.shards, s = r.crossFrame, l = r.focusOptions, c = n || _o && _o.portaledElement, u = document && document.activeElement; if (c) { - var d = [c].concat(i.map(z5).filter(Boolean)); - if ((!u || N5(u)) && (o || V5(s) || !I5() || !po && a) && (c && !// active element is "inside" working area - (Hb(d) || // check for shadow-dom contained elements - u && W5(u, d) || B5(u)) && (document && !po && u && !a ? (u.blur && u.blur(), document.body.focus()) : (t = Gb(d, po, { + var d = [c].concat(i.map(I5).filter(Boolean)); + if ((!u || $5(u)) && (o || F5(s) || !O5() || !ho && a) && (c && !// active element is "inside" working area + (Lb(d) || // check for shadow-dom contained elements + u && j5(u, d) || M5(u)) && (document && !ho && u && !a ? (u.blur && u.blur(), document.body.focus()) : (t = Hb(d, ho, { focusOptions: l - }), Co = {})), qa = !1, po = document && document.activeElement), document) { - var f = document && document.activeElement, p = R5(d), m = p.map(function(h) { + }), _o = {})), qa = !1, ho = document && document.activeElement), document) { + var f = document && document.activeElement, p = P5(d), m = p.map(function(h) { var v = h.node; return v; }).indexOf(f); @@ -18059,108 +18284,108 @@ var z5 = function(t) { }).forEach(function(h) { var v = h.node; return v.removeAttribute("tabIndex"); - }), Zh(m, p.length, 1, p), Zh(m, -1, -1, p)); + }), Kh(m, p.length, 1, p), Kh(m, -1, -1, p)); } } } return t; -}, Kb = function(t) { - $s() && t && (t.stopPropagation(), t.preventDefault()); -}, Td = function() { - return Xb($s); -}, U5 = function(t) { +}, qb = function(t) { + Os() && t && (t.stopPropagation(), t.preventDefault()); +}, Pd = function() { + return Yb(Os); +}, B5 = function(t) { var r = t.target, n = t.currentTarget; - n.contains(r) || j5(n, r); -}, H5 = function() { + n.contains(r) || D5(n, r); +}, z5 = function() { return null; }; -process.env.NODE_ENV !== "production" && Cb.node.isRequired; -var Zb = function() { +process.env.NODE_ENV !== "production" && xb.node.isRequired; +var Gb = function() { qa = "just", setTimeout(function() { qa = "meanwhile"; }, 0); -}, Y5 = function() { - document.addEventListener("focusin", Kb), document.addEventListener("focusout", Td), window.addEventListener("blur", Zb); -}, q5 = function() { - document.removeEventListener("focusin", Kb), document.removeEventListener("focusout", Td), window.removeEventListener("blur", Zb); +}, V5 = function() { + document.addEventListener("focusin", qb), document.addEventListener("focusout", Pd), window.addEventListener("blur", Gb); +}, L5 = function() { + document.removeEventListener("focusin", qb), document.removeEventListener("focusout", Pd), window.removeEventListener("blur", Gb); }; -function G5(e) { +function W5(e) { return e.filter(function(t) { var r = t.disabled; return !r; }); } -function X5(e) { +function U5(e) { var t = e.slice(-1)[0]; - t && !wo && Y5(); - var r = wo, n = r && t && t.id === r.id; - wo = t, r && !n && (r.onDeactivation(), e.filter(function(o) { + t && !Co && V5(); + var r = Co, n = r && t && t.id === r.id; + Co = t, r && !n && (r.onDeactivation(), e.filter(function(o) { var a = o.id; return a === r.id; - }).length || r.returnFocus(!t)), t ? (po = null, (!n || r.observed !== t.observed) && t.onActivation(), $s(), Xb($s)) : (q5(), po = null); + }).length || r.returnFocus(!t)), t ? (ho = null, (!n || r.observed !== t.observed) && t.onActivation(), Os(), Yb(Os)) : (L5(), ho = null); } -$b.assignSyncMedium(U5); -Rb.assignMedium(Td); -t5.assignMedium(function(e) { +Tb.assignSyncMedium(B5); +Ab.assignMedium(Pd); +ZF.assignMedium(function(e) { return e({ - moveFocusInside: Gb, - focusInside: Hb + moveFocusInside: Hb, + focusInside: Lb }); }); -const K5 = a5(G5, X5)(H5); -var Jb = /* @__PURE__ */ U.forwardRef(function(t, r) { - return /* @__PURE__ */ U.createElement(Db, Ha({ - sideCar: K5, +const H5 = e5(W5, U5)(z5); +var Xb = /* @__PURE__ */ U.forwardRef(function(t, r) { + return /* @__PURE__ */ U.createElement(Ob, Wn({ + sideCar: H5, ref: r }, t)); -}), Qb = Db.propTypes || {}; -Qb.sideCar; -var Z5 = LF(Qb, ["sideCar"]); -Jb.propTypes = process.env.NODE_ENV !== "production" ? Z5 : {}; -const Jh = Jb; -function ey(e) { +}), Kb = Ob.propTypes || {}; +Kb.sideCar; +var Y5 = jF(Kb, ["sideCar"]); +Xb.propTypes = process.env.NODE_ENV !== "production" ? Y5 : {}; +const Zh = Xb; +function Zb(e) { return e != null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; } -function Ad(e) { +function Td(e) { var t; - if (!ey(e)) + if (!Zb(e)) return !1; const r = (t = e.ownerDocument.defaultView) != null ? t : window; return e instanceof r.HTMLElement; } -function J5(e) { +function q5(e) { var t, r; - return (r = (t = ty(e)) == null ? void 0 : t.defaultView) != null ? r : window; + return (r = (t = Jb(e)) == null ? void 0 : t.defaultView) != null ? r : window; } -function ty(e) { - return ey(e) ? e.ownerDocument : document; +function Jb(e) { + return Zb(e) ? e.ownerDocument : document; } -function Q5(e) { - return ty(e).activeElement; +function G5(e) { + return Jb(e).activeElement; } -function eN(e) { +function X5(e) { const t = e.ownerDocument.defaultView || window, { overflow: r, overflowX: n, overflowY: o } = t.getComputedStyle(e); return /auto|scroll|overlay|hidden/.test(r + o + n); } -function tN(e) { +function K5(e) { return e.localName === "html" ? e : e.assignedSlot || e.parentElement || e.ownerDocument.documentElement; } -function ry(e) { - return ["html", "body", "#document"].includes(e.localName) ? e.ownerDocument.body : Ad(e) && eN(e) ? e : ry(tN(e)); +function Qb(e) { + return ["html", "body", "#document"].includes(e.localName) ? e.ownerDocument.body : Td(e) && X5(e) ? e : Qb(K5(e)); } -var ny = (e) => e.hasAttribute("tabindex"), rN = (e) => ny(e) && e.tabIndex === -1; -function nN(e) { +var ey = (e) => e.hasAttribute("tabindex"), Z5 = (e) => ey(e) && e.tabIndex === -1; +function J5(e) { return !!e.getAttribute("disabled") || !!e.getAttribute("aria-disabled"); } -function oy(e) { - return e.parentElement && oy(e.parentElement) ? !0 : e.hidden; +function ty(e) { + return e.parentElement && ty(e.parentElement) ? !0 : e.hidden; } -function oN(e) { +function Q5(e) { const t = e.getAttribute("contenteditable"); return t !== "false" && t != null; } -function ay(e) { - if (!Ad(e) || oy(e) || nN(e)) +function ry(e) { + if (!Td(e) || ty(e) || J5(e)) return !1; const { localName: t } = e; if (["input", "select", "textarea", "button"].indexOf(t) >= 0) @@ -18170,12 +18395,12 @@ function ay(e) { audio: () => e.hasAttribute("controls"), video: () => e.hasAttribute("controls") }; - return t in n ? n[t]() : oN(e) ? !0 : ny(e); + return t in n ? n[t]() : Q5(e) ? !0 : ey(e); } -function aN(e) { - return e ? Ad(e) && ay(e) && !rN(e) : !1; +function eN(e) { + return e ? Td(e) && ry(e) && !Z5(e) : !1; } -var iN = [ +var tN = [ "input:not(:disabled):not([disabled])", "select:not(:disabled):not([disabled])", "textarea:not(:disabled):not([disabled])", @@ -18190,14 +18415,14 @@ var iN = [ "video[controls]", "*[tabindex]:not([aria-disabled])", "*[contenteditable]" -], sN = iN.join(), lN = (e) => e.offsetWidth > 0 && e.offsetHeight > 0; -function iy(e) { +], rN = tN.join(), nN = (e) => e.offsetWidth > 0 && e.offsetHeight > 0; +function ny(e) { const t = Array.from( - e.querySelectorAll(sN) + e.querySelectorAll(rN) ); - return t.unshift(e), t.filter((r) => ay(r) && lN(r)); + return t.unshift(e), t.filter((r) => ry(r) && nN(r)); } -var Qh, cN = (Qh = Jh.default) != null ? Qh : Jh, sy = (e) => { +var Jh, oN = (Jh = Zh.default) != null ? Jh : Zh, oy = (e) => { const { initialFocusRef: t, finalFocusRef: r, @@ -18209,7 +18434,7 @@ var Qh, cN = (Qh = Jh.default) != null ? Qh : Jh, sy = (e) => { persistentFocus: l, lockFocusAcrossFrames: c } = e, u = q(() => { - t != null && t.current ? t.current.focus() : n != null && n.current && iy(n.current).length === 0 && requestAnimationFrame(() => { + t != null && t.current ? t.current.focus() : n != null && n.current && ny(n.current).length === 0 && requestAnimationFrame(() => { var m; (m = n.current) == null || m.focus(); }); @@ -18218,7 +18443,7 @@ var Qh, cN = (Qh = Jh.default) != null ? Qh : Jh, sy = (e) => { (p = r == null ? void 0 : r.current) == null || p.focus(); }, [r]), f = o && !r; return /* @__PURE__ */ L.jsx( - cN, + oN, { crossFrame: c, persistentFocus: l, @@ -18231,8 +18456,8 @@ var Qh, cN = (Qh = Jh.default) != null ? Qh : Jh, sy = (e) => { } ); }; -sy.displayName = "FocusLock"; -var ly = Object.freeze([ +oy.displayName = "FocusLock"; +var ay = Object.freeze([ "base", "sm", "md", @@ -18240,17 +18465,17 @@ var ly = Object.freeze([ "xl", "2xl" ]); -function uN(e, t) { +function aN(e, t) { return Array.isArray(e) ? e.map((r) => r === null ? null : t(r)) : Lt(e) ? Object.keys(e).reduce((r, n) => (r[n] = t(e[n]), r), {}) : e != null ? t(e) : null; } -function dN(e, t = ly) { +function iN(e, t = ay) { const r = {}; return e.forEach((n, o) => { const a = t[o]; n != null && (r[a] = n); }), r; } -var cy = (e) => /* @__PURE__ */ L.jsx( +var iy = (e) => /* @__PURE__ */ L.jsx( ge.div, { className: "chakra-stack__item", @@ -18263,8 +18488,8 @@ var cy = (e) => /* @__PURE__ */ L.jsx( } } ); -cy.displayName = "StackItem"; -function fN(e) { +iy.displayName = "StackItem"; +function sN(e) { const { spacing: t, direction: r } = e, n = { column: { my: t, @@ -18292,13 +18517,13 @@ function fN(e) { } }; return { - "&": uN( + "&": aN( r, (o) => n[o] ) }; } -var uy = _e((e, t) => { +var sy = _e((e, t) => { const { isInline: r, direction: n, @@ -18312,12 +18537,12 @@ var uy = _e((e, t) => { shouldWrapChildren: d, ...f } = e, p = r ? "row" : n ?? "column", m = gt( - () => fN({ spacing: i, direction: p }), + () => sN({ spacing: i, direction: p }), [i, p] ), h = !!c, v = !d && !h, b = gt(() => { - const S = bb(l); - return v ? S : S.map((k, w) => { - const M = typeof k.key < "u" ? k.key : w, P = w + 1 === S.length, z = d ? /* @__PURE__ */ L.jsx(cy, { children: k }, M) : k; + const S = mb(l); + return v ? S : S.map((_, w) => { + const M = typeof _.key < "u" ? _.key : w, P = w + 1 === S.length, z = d ? /* @__PURE__ */ L.jsx(iy, { children: _ }, M) : _; if (!h) return z; const j = Ka( @@ -18326,7 +18551,7 @@ var uy = _e((e, t) => { __css: m } ), X = P ? null : j; - return /* @__PURE__ */ L.jsxs(ku, { children: [ + return /* @__PURE__ */ L.jsxs(wu, { children: [ z, X ] }, M); @@ -18355,15 +18580,15 @@ var uy = _e((e, t) => { } ); }); -uy.displayName = "Stack"; -var pN = _e((e, t) => /* @__PURE__ */ L.jsx(uy, { align: "center", ...e, direction: "row", ref: t })); -pN.displayName = "HStack"; -var dy = ge("div"); -dy.displayName = "Box"; -var fy = _e(function(t, r) { +sy.displayName = "Stack"; +var lN = _e((e, t) => /* @__PURE__ */ L.jsx(sy, { align: "center", ...e, direction: "row", ref: t })); +lN.displayName = "HStack"; +var ly = ge("div"); +ly.displayName = "Box"; +var cy = _e(function(t, r) { const { size: n, centerContent: o = !0, ...a } = t, i = o ? { display: "flex", alignItems: "center", justifyContent: "center" } : {}; return /* @__PURE__ */ L.jsx( - dy, + ly, { ref: r, boxSize: n, @@ -18376,13 +18601,13 @@ var fy = _e(function(t, r) { } ); }); -fy.displayName = "Square"; -var hN = _e(function(t, r) { +cy.displayName = "Square"; +var cN = _e(function(t, r) { const { size: n, ...o } = t; - return /* @__PURE__ */ L.jsx(fy, { size: n, ref: r, borderRadius: "9999px", ...o }); + return /* @__PURE__ */ L.jsx(cy, { size: n, ref: r, borderRadius: "9999px", ...o }); }); -hN.displayName = "Circle"; -var mN = _e(function(t, r) { +cN.displayName = "Circle"; +var uN = _e(function(t, r) { const { borderLeftWidth: n, borderBottomWidth: o, @@ -18392,12 +18617,12 @@ var mN = _e(function(t, r) { borderStyle: l, borderColor: c, ...u - } = No("Divider", t), { + } = jo("Divider", t), { className: d, orientation: f = "horizontal", __css: p, ...m - } = jr(t), h = { + } = Br(t), h = { vertical: { borderLeftWidth: n || i || s || "1px", height: "100%" @@ -18425,8 +18650,8 @@ var mN = _e(function(t, r) { } ); }); -mN.displayName = "Divider"; -var vN = _e(function(t, r) { +uN.displayName = "Divider"; +var dN = _e(function(t, r) { const { direction: n, align: o, justify: a, wrap: i, basis: s, grow: l, shrink: c, ...u } = t, d = { display: "flex", flexDirection: n, @@ -18439,9 +18664,9 @@ var vN = _e(function(t, r) { }; return /* @__PURE__ */ L.jsx(ge.div, { ref: r, __css: d, ...u }); }); -vN.displayName = "Flex"; -function gN(e, t = {}) { - const { ssr: r = !0, fallback: n } = t, { getWindow: o } = XR(), a = Array.isArray(e) ? e : [e]; +dN.displayName = "Flex"; +function fN(e, t = {}) { + const { ssr: r = !0, fallback: n } = t, { getWindow: o } = H$(), a = Array.isArray(e) ? e : [e]; let i = Array.isArray(n) ? n : [n]; i = i.filter((c) => c != null); const [s, l] = Ye(() => a.map((c, u) => ({ @@ -18468,7 +18693,7 @@ function gN(e, t = {}) { }; }, [o]), s.map((c) => c.matches); } -function bN(e, t, r = ly) { +function pN(e, t, r = ay) { let n = Object.keys(e).indexOf(t); if (n !== -1) return e[t]; @@ -18486,36 +18711,36 @@ function bN(e, t, r = ly) { return e[a]; } } -function yN(e) { +function hN(e) { var t, r; - const n = Lt(e) ? e : { fallback: e ?? "base" }, a = an().__breakpoints.details.map( + const n = Lt(e) ? e : { fallback: e ?? "base" }, a = sn().__breakpoints.details.map( ({ minMaxQuery: c, breakpoint: u }) => ({ breakpoint: u, query: c.replace("@media screen and ", "") }) - ), i = a.map((c) => c.breakpoint === n.fallback), l = gN( + ), i = a.map((c) => c.breakpoint === n.fallback), l = fN( a.map((c) => c.query), { fallback: i, ssr: n.ssr } ).findIndex((c) => c == !0); return (r = (t = a[l]) == null ? void 0 : t.breakpoint) != null ? r : n.fallback; } -function QV(e, t) { +function HV(e, t) { var r; - const n = Lt(t) ? t : { fallback: t ?? "base" }, o = yN(n), a = an(); + const n = Lt(t) ? t : { fallback: t ?? "base" }, o = hN(n), a = sn(); if (!o) return; const i = Array.from(((r = a.__breakpoints) == null ? void 0 : r.keys) || []), s = Array.isArray(e) ? Object.fromEntries( - Object.entries(dN(e, i)).map( + Object.entries(iN(e, i)).map( ([l, c]) => [l, c] ) ) : e; - return bN(s, o, i); + return pN(s, o, i); } -function xN(e) { +function mN(e) { const { key: t } = e; return t.length === 1 || t.length > 1 && /[^a-zA-Z0-9]/.test(t); } -function SN(e = {}) { +function vN(e = {}) { const { timeout: t = 300, preventDefault: r = () => !0 } = e, [n, o] = Ye([]), a = be(), i = () => { a.current && (clearTimeout(a.current), a.current = null); }, s = () => { @@ -18531,7 +18756,7 @@ function SN(e = {}) { d.pop(), o(d); return; } - if (xN(u)) { + if (mN(u)) { const d = n.concat(u.key); r(u) && (u.preventDefault(), u.stopPropagation()), o(d), c(d.join("")), s(); } @@ -18539,7 +18764,7 @@ function SN(e = {}) { } return l; } -function wN(e, t, r, n) { +function gN(e, t, r, n) { if (t == null) return n; if (!n) @@ -18555,7 +18780,7 @@ function wN(e, t, r, n) { } return n; } -function CN() { +function bN() { const e = be(/* @__PURE__ */ new Map()), t = e.current, r = q((o, a, i, s) => { e.current.set(i, { type: a, el: o, options: s }), o.addEventListener(a, i, s); }, []), n = q( @@ -18573,11 +18798,11 @@ function CN() { [n, t] ), { add: r, remove: n }; } -function bc(e) { +function vc(e) { const t = e.target, { tagName: r, isContentEditable: n } = t; return r !== "INPUT" && r !== "TEXTAREA" && n !== !0; } -function _N(e = {}) { +function yN(e = {}) { const { ref: t, isDisabled: r, @@ -18593,7 +18818,7 @@ function _N(e = {}) { onMouseOver: f, onMouseLeave: p, ...m - } = e, [h, v] = Ye(!0), [b, y] = Ye(!1), S = CN(), k = (D) => { + } = e, [h, v] = Ye(!0), [b, y] = Ye(!1), S = bN(), _ = (D) => { D && D.tagName !== "BUTTON" && v(!1); }, w = h ? d : d || 0, M = r && !n, P = q( (D) => { @@ -18606,12 +18831,12 @@ function _N(e = {}) { [r, l] ), I = q( (D) => { - b && bc(D) && (D.preventDefault(), D.stopPropagation(), y(!1), S.remove(document, "keyup", I, !1)); + b && vc(D) && (D.preventDefault(), D.stopPropagation(), y(!1), S.remove(document, "keyup", I, !1)); }, [b, S] ), z = q( (D) => { - if (c == null || c(D), r || D.defaultPrevented || D.metaKey || !bc(D.nativeEvent) || h) + if (c == null || c(D), r || D.defaultPrevented || D.metaKey || !vc(D.nativeEvent) || h) return; const ce = o && D.key === "Enter"; a && D.key === " " && (D.preventDefault(), y(!0)), ce && (D.preventDefault(), D.currentTarget.click()), S.add(document, "keyup", I, !1); @@ -18627,7 +18852,7 @@ function _N(e = {}) { ] ), j = q( (D) => { - if (u == null || u(D), r || D.defaultPrevented || D.metaKey || !bc(D.nativeEvent) || h) + if (u == null || u(D), r || D.defaultPrevented || D.metaKey || !vc(D.nativeEvent) || h) return; a && D.key === " " && (D.preventDefault(), y(!1), D.currentTarget.click()); }, @@ -18667,7 +18892,7 @@ function _N(e = {}) { b && (D.preventDefault(), y(!1)), p == null || p(D); }, [b, p] - ), oe = St(t, k); + ), oe = St(t, _); return h ? { ...m, ref: oe, @@ -18685,7 +18910,7 @@ function _N(e = {}) { ...m, ref: oe, role: "button", - "data-active": to(b), + "data-active": Ar(b), "aria-disabled": r ? "true" : void 0, tabIndex: M ? void 0 : w, onClick: P, @@ -18697,17 +18922,17 @@ function _N(e = {}) { onMouseLeave: ee }; } -function kN(e) { +function xN(e) { const t = e.current; if (!t) return !1; - const r = Q5(t); - return !r || t.contains(r) ? !1 : !!aN(r); + const r = G5(t); + return !r || t.contains(r) ? !1 : !!eN(r); } -function EN(e, t) { +function SN(e, t) { const { shouldFocus: r, visible: n, focusRef: o } = t, a = r && !n; - Bo(() => { - if (!a || kN(e)) + zo(() => { + if (!a || xN(e)) return; const i = (o == null ? void 0 : o.current) || e.current; let s; @@ -18719,13 +18944,13 @@ function EN(e, t) { }; }, [a, e, o]); } -var PN = { +var wN = { preventScroll: !0, shouldFocus: !1 }; -function eL(e, t = PN) { - const { focusRef: r, preventScroll: n, shouldFocus: o, visible: a } = t, i = TN(e) ? e.current : e, s = o && a, l = be(s), c = be(a); - Ia(() => { +function YV(e, t = wN) { + const { focusRef: r, preventScroll: n, shouldFocus: o, visible: a } = t, i = CN(e) ? e.current : e, s = o && a, l = be(s), c = be(a); + Fa(() => { !c.current && a && (l.current = s), c.current = a; }, [a, s]); const u = q(() => { @@ -18736,31 +18961,31 @@ function eL(e, t = PN) { (d = r.current) == null || d.focus({ preventScroll: n }); }); else { - const d = iy(i); + const d = ny(i); d.length > 0 && requestAnimationFrame(() => { d[0].focus({ preventScroll: n }); }); } }, [a, n, i, r]); - Bo(() => { + zo(() => { u(); - }, [u]), wa(i, "transitionend", u); + }, [u]), _a(i, "transitionend", u); } -function TN(e) { +function CN(e) { return "current" in e; } -var Kn = (e, t) => ({ +var Jn = (e, t) => ({ var: e, varRef: t ? `var(${e}, ${t})` : `var(${e})` }), Et = { - arrowShadowColor: Kn("--popper-arrow-shadow-color"), - arrowSize: Kn("--popper-arrow-size", "8px"), - arrowSizeHalf: Kn("--popper-arrow-size-half"), - arrowBg: Kn("--popper-arrow-bg"), - transformOrigin: Kn("--popper-transform-origin"), - arrowOffset: Kn("--popper-arrow-offset") + arrowShadowColor: Jn("--popper-arrow-shadow-color"), + arrowSize: Jn("--popper-arrow-size", "8px"), + arrowSizeHalf: Jn("--popper-arrow-size-half"), + arrowBg: Jn("--popper-arrow-bg"), + transformOrigin: Jn("--popper-transform-origin"), + arrowOffset: Jn("--popper-arrow-offset") }; -function AN(e) { +function _N(e) { if (e.includes("top")) return "1px 1px 0px 0 var(--popper-arrow-shadow-color)"; if (e.includes("bottom")) @@ -18770,7 +18995,7 @@ function AN(e) { if (e.includes("left")) return "1px -1px 0px 0 var(--popper-arrow-shadow-color)"; } -var ON = { +var kN = { top: "bottom center", "top-start": "bottom left", "top-end": "bottom right", @@ -18783,21 +19008,21 @@ var ON = { right: "left center", "right-start": "left top", "right-end": "left bottom" -}, $N = (e) => ON[e], em = { +}, EN = (e) => kN[e], Qh = { scroll: !0, resize: !0 }; -function RN(e) { +function PN(e) { let t; return typeof e == "object" ? t = { enabled: !0, - options: { ...em, ...e } + options: { ...Qh, ...e } } : t = { enabled: e, - options: em + options: Qh }, t; } -var DN = { +var TN = { name: "matchWidth", enabled: !0, phase: "beforeWrite", @@ -18809,33 +19034,33 @@ var DN = { const t = e.elements.reference; e.elements.popper.style.width = `${t.offsetWidth}px`; } -}, MN = { +}, AN = { name: "transformOrigin", enabled: !0, phase: "write", fn: ({ state: e }) => { - tm(e); + em(e); }, effect: ({ state: e }) => () => { - tm(e); + em(e); } -}, tm = (e) => { +}, em = (e) => { e.elements.popper.style.setProperty( Et.transformOrigin.var, - $N(e.placement) + EN(e.placement) ); -}, IN = { +}, ON = { name: "positionArrow", enabled: !0, phase: "afterWrite", fn: ({ state: e }) => { - FN(e); + RN(e); } -}, FN = (e) => { +}, RN = (e) => { var t; if (!e.placement) return; - const r = NN(e.placement); + const r = $N(e.placement); if ((t = e.elements) != null && t.arrow && r) { Object.assign(e.elements.arrow.style, { [r.property]: r.value, @@ -18850,7 +19075,7 @@ var DN = { for (const o in n) e.elements.arrow.style.setProperty(o, n[o]); } -}, NN = (e) => { +}, $N = (e) => { if (e.startsWith("top")) return { property: "bottom", value: Et.arrowOffset.varRef }; if (e.startsWith("bottom")) @@ -18859,18 +19084,18 @@ var DN = { return { property: "right", value: Et.arrowOffset.varRef }; if (e.startsWith("right")) return { property: "left", value: Et.arrowOffset.varRef }; -}, jN = { +}, DN = { name: "innerArrow", enabled: !0, phase: "main", requires: ["arrow"], fn: ({ state: e }) => { - rm(e); + tm(e); }, effect: ({ state: e }) => () => { - rm(e); + tm(e); } -}, rm = (e) => { +}, tm = (e) => { if (!e.elements.arrow) return; const t = e.elements.arrow.querySelector( @@ -18878,7 +19103,7 @@ var DN = { ); if (!t) return; - const r = AN(e.placement); + const r = _N(e.placement); r && t.style.setProperty("--popper-arrow-default-shadow", r), Object.assign(t.style, { transform: "rotate(45deg)", background: Et.arrowBg.varRef, @@ -18890,14 +19115,14 @@ var DN = { zIndex: "inherit", boxShadow: "var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))" }); -}, BN = { +}, MN = { "start-start": { ltr: "left-start", rtl: "right-start" }, "start-end": { ltr: "left-end", rtl: "right-end" }, "end-start": { ltr: "right-start", rtl: "left-start" }, "end-end": { ltr: "right-end", rtl: "left-end" }, start: { ltr: "left", rtl: "right" }, end: { ltr: "right", rtl: "left" } -}, zN = { +}, IN = { "auto-start": "auto-end", "auto-end": "auto-start", "top-start": "top-end", @@ -18905,17 +19130,17 @@ var DN = { "bottom-start": "bottom-end", "bottom-end": "bottom-start" }; -function VN(e, t = "ltr") { +function FN(e, t = "ltr") { var r, n; - const o = ((r = BN[e]) == null ? void 0 : r[t]) || e; - return t === "ltr" ? o : (n = zN[e]) != null ? n : o; + const o = ((r = MN[e]) == null ? void 0 : r[t]) || e; + return t === "ltr" ? o : (n = IN[e]) != null ? n : o; } -var Wt = "top", cr = "bottom", ur = "right", Ut = "left", Od = "auto", li = [Wt, cr, ur, Ut], $o = "start", Ga = "end", LN = "clippingParents", py = "viewport", ta = "popper", WN = "reference", nm = /* @__PURE__ */ li.reduce(function(e, t) { +var Wt = "top", cr = "bottom", ur = "right", Ut = "left", Ad = "auto", li = [Wt, cr, ur, Ut], $o = "start", Ga = "end", NN = "clippingParents", uy = "viewport", ra = "popper", jN = "reference", rm = /* @__PURE__ */ li.reduce(function(e, t) { return e.concat([t + "-" + $o, t + "-" + Ga]); -}, []), hy = /* @__PURE__ */ [].concat(li, [Od]).reduce(function(e, t) { +}, []), dy = /* @__PURE__ */ [].concat(li, [Ad]).reduce(function(e, t) { return e.concat([t, t + "-" + $o, t + "-" + Ga]); -}, []), UN = "beforeRead", HN = "read", YN = "afterRead", qN = "beforeMain", GN = "main", XN = "afterMain", KN = "beforeWrite", ZN = "write", JN = "afterWrite", QN = [UN, HN, YN, qN, GN, XN, KN, ZN, JN]; -function Nr(e) { +}, []), BN = "beforeRead", zN = "read", VN = "afterRead", LN = "beforeMain", WN = "main", UN = "afterMain", HN = "beforeWrite", YN = "write", qN = "afterWrite", GN = [BN, zN, VN, LN, WN, UN, HN, YN, qN]; +function jr(e) { return e ? (e.nodeName || "").toLowerCase() : null; } function er(e) { @@ -18927,7 +19152,7 @@ function er(e) { } return e; } -function Ln(e) { +function Un(e) { var t = er(e).Element; return e instanceof t || e instanceof Element; } @@ -18935,23 +19160,23 @@ function lr(e) { var t = er(e).HTMLElement; return e instanceof t || e instanceof HTMLElement; } -function $d(e) { +function Od(e) { if (typeof ShadowRoot > "u") return !1; var t = er(e).ShadowRoot; return e instanceof t || e instanceof ShadowRoot; } -function ej(e) { +function XN(e) { var t = e.state; Object.keys(t.elements).forEach(function(r) { var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r]; - !lr(a) || !Nr(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(i) { + !lr(a) || !jr(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(i) { var s = o[i]; s === !1 ? a.removeAttribute(i) : a.setAttribute(i, s === !0 ? "" : s); })); }); } -function tj(e) { +function KN(e) { var t = e.state, r = { popper: { position: t.options.strategy, @@ -18969,38 +19194,38 @@ function tj(e) { var o = t.elements[n], a = t.attributes[n] || {}, i = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = i.reduce(function(l, c) { return l[c] = "", l; }, {}); - !lr(o) || !Nr(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(l) { + !lr(o) || !jr(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(l) { o.removeAttribute(l); })); }); }; } -const rj = { +const ZN = { name: "applyStyles", enabled: !0, phase: "write", - fn: ej, - effect: tj, + fn: XN, + effect: KN, requires: ["computeStyles"] }; -function Fr(e) { +function Nr(e) { return e.split("-")[0]; } -var Vn = Math.max, Rs = Math.min, Ro = Math.round; -function yu() { +var Ln = Math.max, Rs = Math.min, Do = Math.round; +function vu() { var e = navigator.userAgentData; return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) { return t.brand + "/" + t.version; }).join(" ") : navigator.userAgent; } -function my() { - return !/^((?!chrome|android).)*safari/i.test(yu()); +function fy() { + return !/^((?!chrome|android).)*safari/i.test(vu()); } -function Do(e, t, r) { +function Mo(e, t, r) { t === void 0 && (t = !1), r === void 0 && (r = !1); var n = e.getBoundingClientRect(), o = 1, a = 1; - t && lr(e) && (o = e.offsetWidth > 0 && Ro(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Ro(n.height) / e.offsetHeight || 1); - var i = Ln(e) ? er(e) : window, s = i.visualViewport, l = !my() && r, c = (n.left + (l && s ? s.offsetLeft : 0)) / o, u = (n.top + (l && s ? s.offsetTop : 0)) / a, d = n.width / o, f = n.height / a; + t && lr(e) && (o = e.offsetWidth > 0 && Do(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Do(n.height) / e.offsetHeight || 1); + var i = Un(e) ? er(e) : window, s = i.visualViewport, l = !fy() && r, c = (n.left + (l && s ? s.offsetLeft : 0)) / o, u = (n.top + (l && s ? s.offsetTop : 0)) / a, d = n.width / o, f = n.height / a; return { width: d, height: f, @@ -19013,7 +19238,7 @@ function Do(e, t, r) { }; } function Rd(e) { - var t = Do(e), r = e.offsetWidth, n = e.offsetHeight; + var t = Mo(e), r = e.offsetWidth, n = e.offsetHeight; return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), { x: e.offsetLeft, y: e.offsetTop, @@ -19021,11 +19246,11 @@ function Rd(e) { height: n }; } -function vy(e, t) { +function py(e, t) { var r = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; - if (r && $d(r)) { + if (r && Od(r)) { var n = t; do { if (n && e.isSameNode(n)) @@ -19035,44 +19260,44 @@ function vy(e, t) { } return !1; } -function nn(e) { +function on(e) { return er(e).getComputedStyle(e); } -function nj(e) { - return ["table", "td", "th"].indexOf(Nr(e)) >= 0; +function JN(e) { + return ["table", "td", "th"].indexOf(jr(e)) >= 0; } -function _n(e) { - return ((Ln(e) ? e.ownerDocument : ( +function kn(e) { + return ((Un(e) ? e.ownerDocument : ( // $FlowFixMe[prop-missing] e.document )) || window.document).documentElement; } -function al(e) { - return Nr(e) === "html" ? e : ( +function nl(e) { + return jr(e) === "html" ? e : ( // this is a quicker (but less type safe) way to save quite some bytes from the bundle // $FlowFixMe[incompatible-return] // $FlowFixMe[prop-missing] e.assignedSlot || // step into the shadow DOM of the parent of a slotted node e.parentNode || // DOM Element detected - ($d(e) ? e.host : null) || // ShadowRoot detected + (Od(e) ? e.host : null) || // ShadowRoot detected // $FlowFixMe[incompatible-call]: HTMLElement is a Node - _n(e) + kn(e) ); } -function om(e) { +function nm(e) { return !lr(e) || // https://github.com/popperjs/popper-core/issues/837 - nn(e).position === "fixed" ? null : e.offsetParent; + on(e).position === "fixed" ? null : e.offsetParent; } -function oj(e) { - var t = /firefox/i.test(yu()), r = /Trident/i.test(yu()); +function QN(e) { + var t = /firefox/i.test(vu()), r = /Trident/i.test(vu()); if (r && lr(e)) { - var n = nn(e); + var n = on(e); if (n.position === "fixed") return null; } - var o = al(e); - for ($d(o) && (o = o.host); lr(o) && ["html", "body"].indexOf(Nr(o)) < 0; ) { - var a = nn(o); + var o = nl(e); + for (Od(o) && (o = o.host); lr(o) && ["html", "body"].indexOf(jr(o)) < 0; ) { + var a = on(o); if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none") return o; o = o.parentNode; @@ -19080,21 +19305,21 @@ function oj(e) { return null; } function ci(e) { - for (var t = er(e), r = om(e); r && nj(r) && nn(r).position === "static"; ) - r = om(r); - return r && (Nr(r) === "html" || Nr(r) === "body" && nn(r).position === "static") ? t : r || oj(e) || t; + for (var t = er(e), r = nm(e); r && JN(r) && on(r).position === "static"; ) + r = nm(r); + return r && (jr(r) === "html" || jr(r) === "body" && on(r).position === "static") ? t : r || QN(e) || t; } -function Dd(e) { +function $d(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; } -function Ca(e, t, r) { - return Vn(e, Rs(t, r)); +function ka(e, t, r) { + return Ln(e, Rs(t, r)); } -function aj(e, t, r) { - var n = Ca(e, t, r); +function ej(e, t, r) { + var n = ka(e, t, r); return n > r ? r : n; } -function gy() { +function hy() { return { top: 0, right: 0, @@ -19102,56 +19327,56 @@ function gy() { left: 0 }; } -function by(e) { - return Object.assign({}, gy(), e); +function my(e) { + return Object.assign({}, hy(), e); } -function yy(e, t) { +function vy(e, t) { return t.reduce(function(r, n) { return r[n] = e, r; }, {}); } -var ij = function(t, r) { +var tj = function(t, r) { return t = typeof t == "function" ? t(Object.assign({}, r.rects, { placement: r.placement - })) : t, by(typeof t != "number" ? t : yy(t, li)); + })) : t, my(typeof t != "number" ? t : vy(t, li)); }; -function sj(e) { - var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, i = r.modifiersData.popperOffsets, s = Fr(r.placement), l = Dd(s), c = [Ut, ur].indexOf(s) >= 0, u = c ? "height" : "width"; +function rj(e) { + var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, i = r.modifiersData.popperOffsets, s = Nr(r.placement), l = $d(s), c = [Ut, ur].indexOf(s) >= 0, u = c ? "height" : "width"; if (!(!a || !i)) { - var d = ij(o.padding, r), f = Rd(a), p = l === "y" ? Wt : Ut, m = l === "y" ? cr : ur, h = r.rects.reference[u] + r.rects.reference[l] - i[l] - r.rects.popper[u], v = i[l] - r.rects.reference[l], b = ci(a), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, S = h / 2 - v / 2, k = d[p], w = y - f[u] - d[m], M = y / 2 - f[u] / 2 + S, P = Ca(k, M, w), I = l; + var d = tj(o.padding, r), f = Rd(a), p = l === "y" ? Wt : Ut, m = l === "y" ? cr : ur, h = r.rects.reference[u] + r.rects.reference[l] - i[l] - r.rects.popper[u], v = i[l] - r.rects.reference[l], b = ci(a), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, S = h / 2 - v / 2, _ = d[p], w = y - f[u] - d[m], M = y / 2 - f[u] / 2 + S, P = ka(_, M, w), I = l; r.modifiersData[n] = (t = {}, t[I] = P, t.centerOffset = P - M, t); } } -function lj(e) { +function nj(e) { var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n; - o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || vy(t.elements.popper, o) && (t.elements.arrow = o)); + o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || py(t.elements.popper, o) && (t.elements.arrow = o)); } -const cj = { +const oj = { name: "arrow", enabled: !0, phase: "main", - fn: sj, - effect: lj, + fn: rj, + effect: nj, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; -function Mo(e) { +function Io(e) { return e.split("-")[1]; } -var uj = { +var aj = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; -function dj(e, t) { +function ij(e, t) { var r = e.x, n = e.y, o = t.devicePixelRatio || 1; return { - x: Ro(r * o) / o || 0, - y: Ro(n * o) / o || 0 + x: Do(r * o) / o || 0, + y: Do(n * o) / o || 0 }; } -function am(e) { +function om(e) { var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, c = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = i.x, p = f === void 0 ? 0 : f, m = i.y, h = m === void 0 ? 0 : m, v = typeof u == "function" ? u({ x: p, y: h @@ -19160,11 +19385,11 @@ function am(e) { y: h }; p = v.x, h = v.y; - var b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), S = Ut, k = Wt, w = window; + var b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), S = Ut, _ = Wt, w = window; if (c) { var M = ci(r), P = "clientHeight", I = "clientWidth"; - if (M === er(r) && (M = _n(r), nn(M).position !== "static" && s === "absolute" && (P = "scrollHeight", I = "scrollWidth")), M = M, o === Wt || (o === Ut || o === ur) && a === Ga) { - k = cr; + if (M === er(r) && (M = kn(r), on(M).position !== "static" && s === "absolute" && (P = "scrollHeight", I = "scrollWidth")), M = M, o === Wt || (o === Ut || o === ur) && a === Ga) { + _ = cr; var z = d && M === w && w.visualViewport ? w.visualViewport.height : ( // $FlowFixMe[prop-missing] M[P] @@ -19182,7 +19407,7 @@ function am(e) { } var X = Object.assign({ position: s - }, c && uj), ne = u === !0 ? dj({ + }, c && aj), ne = u === !0 ? ij({ x: p, y: h }, er(r)) : { @@ -19191,25 +19416,25 @@ function am(e) { }; if (p = ne.x, h = ne.y, l) { var J; - return Object.assign({}, X, (J = {}, J[k] = y ? "0" : "", J[S] = b ? "0" : "", J.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", J)); + return Object.assign({}, X, (J = {}, J[_] = y ? "0" : "", J[S] = b ? "0" : "", J.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", J)); } - return Object.assign({}, X, (t = {}, t[k] = y ? h + "px" : "", t[S] = b ? p + "px" : "", t.transform = "", t)); + return Object.assign({}, X, (t = {}, t[_] = y ? h + "px" : "", t[S] = b ? p + "px" : "", t.transform = "", t)); } -function fj(e) { +function sj(e) { var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, i = a === void 0 ? !0 : a, s = r.roundOffsets, l = s === void 0 ? !0 : s, c = { - placement: Fr(t.placement), - variation: Mo(t.placement), + placement: Nr(t.placement), + variation: Io(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: o, isFixed: t.options.strategy === "fixed" }; - t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, am(Object.assign({}, c, { + t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, om(Object.assign({}, c, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: i, roundOffsets: l - })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, am(Object.assign({}, c, { + })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, om(Object.assign({}, c, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, @@ -19218,17 +19443,17 @@ function fj(e) { "data-popper-placement": t.placement }); } -const pj = { +const lj = { name: "computeStyles", enabled: !0, phase: "beforeWrite", - fn: fj, + fn: sj, data: {} }; var Di = { passive: !0 }; -function hj(e) { +function cj(e) { var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, i = n.resize, s = i === void 0 ? !0 : i, l = er(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper); return a && c.forEach(function(u) { u.addEventListener("scroll", r.update, Di); @@ -19238,16 +19463,16 @@ function hj(e) { }), s && l.removeEventListener("resize", r.update, Di); }; } -const mj = { +const uj = { name: "eventListeners", enabled: !0, phase: "write", fn: function() { }, - effect: hj, + effect: cj, data: {} }; -var vj = { +var dj = { left: "right", right: "left", bottom: "top", @@ -19255,68 +19480,68 @@ var vj = { }; function ts(e) { return e.replace(/left|right|bottom|top/g, function(t) { - return vj[t]; + return dj[t]; }); } -var gj = { +var fj = { start: "end", end: "start" }; -function im(e) { +function am(e) { return e.replace(/start|end/g, function(t) { - return gj[t]; + return fj[t]; }); } -function Md(e) { +function Dd(e) { var t = er(e), r = t.pageXOffset, n = t.pageYOffset; return { scrollLeft: r, scrollTop: n }; } -function Id(e) { - return Do(_n(e)).left + Md(e).scrollLeft; +function Md(e) { + return Mo(kn(e)).left + Dd(e).scrollLeft; } -function bj(e, t) { - var r = er(e), n = _n(e), o = r.visualViewport, a = n.clientWidth, i = n.clientHeight, s = 0, l = 0; +function pj(e, t) { + var r = er(e), n = kn(e), o = r.visualViewport, a = n.clientWidth, i = n.clientHeight, s = 0, l = 0; if (o) { a = o.width, i = o.height; - var c = my(); + var c = fy(); (c || !c && t === "fixed") && (s = o.offsetLeft, l = o.offsetTop); } return { width: a, height: i, - x: s + Id(e), + x: s + Md(e), y: l }; } -function yj(e) { - var t, r = _n(e), n = Md(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = Vn(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = Vn(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + Id(e), l = -n.scrollTop; - return nn(o || r).direction === "rtl" && (s += Vn(r.clientWidth, o ? o.clientWidth : 0) - a), { +function hj(e) { + var t, r = kn(e), n = Dd(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = Ln(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = Ln(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + Md(e), l = -n.scrollTop; + return on(o || r).direction === "rtl" && (s += Ln(r.clientWidth, o ? o.clientWidth : 0) - a), { width: a, height: i, x: s, y: l }; } -function Fd(e) { - var t = nn(e), r = t.overflow, n = t.overflowX, o = t.overflowY; +function Id(e) { + var t = on(e), r = t.overflow, n = t.overflowX, o = t.overflowY; return /auto|scroll|overlay|hidden/.test(r + o + n); } -function xy(e) { - return ["html", "body", "#document"].indexOf(Nr(e)) >= 0 ? e.ownerDocument.body : lr(e) && Fd(e) ? e : xy(al(e)); +function gy(e) { + return ["html", "body", "#document"].indexOf(jr(e)) >= 0 ? e.ownerDocument.body : lr(e) && Id(e) ? e : gy(nl(e)); } -function _a(e, t) { +function Ea(e, t) { var r; t === void 0 && (t = []); - var n = xy(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = er(n), i = o ? [a].concat(a.visualViewport || [], Fd(n) ? n : []) : n, s = t.concat(i); + var n = gy(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = er(n), i = o ? [a].concat(a.visualViewport || [], Id(n) ? n : []) : n, s = t.concat(i); return o ? s : ( // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here - s.concat(_a(al(i))) + s.concat(Ea(nl(i))) ); } -function xu(e) { +function gu(e) { return Object.assign({}, e, { left: e.x, top: e.y, @@ -19324,28 +19549,28 @@ function xu(e) { bottom: e.y + e.height }); } -function xj(e, t) { - var r = Do(e, !1, t === "fixed"); +function mj(e, t) { + var r = Mo(e, !1, t === "fixed"); return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r; } -function sm(e, t, r) { - return t === py ? xu(bj(e, r)) : Ln(t) ? xj(t, r) : xu(yj(_n(e))); +function im(e, t, r) { + return t === uy ? gu(pj(e, r)) : Un(t) ? mj(t, r) : gu(hj(kn(e))); } -function Sj(e) { - var t = _a(al(e)), r = ["absolute", "fixed"].indexOf(nn(e).position) >= 0, n = r && lr(e) ? ci(e) : e; - return Ln(n) ? t.filter(function(o) { - return Ln(o) && vy(o, n) && Nr(o) !== "body"; +function vj(e) { + var t = Ea(nl(e)), r = ["absolute", "fixed"].indexOf(on(e).position) >= 0, n = r && lr(e) ? ci(e) : e; + return Un(n) ? t.filter(function(o) { + return Un(o) && py(o, n) && jr(o) !== "body"; }) : []; } -function wj(e, t, r, n) { - var o = t === "clippingParents" ? Sj(e) : [].concat(t), a = [].concat(o, [r]), i = a[0], s = a.reduce(function(l, c) { - var u = sm(e, c, n); - return l.top = Vn(u.top, l.top), l.right = Rs(u.right, l.right), l.bottom = Rs(u.bottom, l.bottom), l.left = Vn(u.left, l.left), l; - }, sm(e, i, n)); +function gj(e, t, r, n) { + var o = t === "clippingParents" ? vj(e) : [].concat(t), a = [].concat(o, [r]), i = a[0], s = a.reduce(function(l, c) { + var u = im(e, c, n); + return l.top = Ln(u.top, l.top), l.right = Rs(u.right, l.right), l.bottom = Rs(u.bottom, l.bottom), l.left = Ln(u.left, l.left), l; + }, im(e, i, n)); return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s; } -function Sy(e) { - var t = e.reference, r = e.element, n = e.placement, o = n ? Fr(n) : null, a = n ? Mo(n) : null, i = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, l; +function by(e) { + var t = e.reference, r = e.element, n = e.placement, o = n ? Nr(n) : null, a = n ? Io(n) : null, i = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, l; switch (o) { case Wt: l = { @@ -19377,7 +19602,7 @@ function Sy(e) { y: t.y }; } - var c = o ? Dd(o) : null; + var c = o ? $d(o) : null; if (c != null) { var u = c === "y" ? "height" : "width"; switch (a) { @@ -19393,18 +19618,18 @@ function Sy(e) { } function Xa(e, t) { t === void 0 && (t = {}); - var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, i = a === void 0 ? e.strategy : a, s = r.boundary, l = s === void 0 ? LN : s, c = r.rootBoundary, u = c === void 0 ? py : c, d = r.elementContext, f = d === void 0 ? ta : d, p = r.altBoundary, m = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = by(typeof v != "number" ? v : yy(v, li)), y = f === ta ? WN : ta, S = e.rects.popper, k = e.elements[m ? y : f], w = wj(Ln(k) ? k : k.contextElement || _n(e.elements.popper), l, u, i), M = Do(e.elements.reference), P = Sy({ + var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, i = a === void 0 ? e.strategy : a, s = r.boundary, l = s === void 0 ? NN : s, c = r.rootBoundary, u = c === void 0 ? uy : c, d = r.elementContext, f = d === void 0 ? ra : d, p = r.altBoundary, m = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = my(typeof v != "number" ? v : vy(v, li)), y = f === ra ? jN : ra, S = e.rects.popper, _ = e.elements[m ? y : f], w = gj(Un(_) ? _ : _.contextElement || kn(e.elements.popper), l, u, i), M = Mo(e.elements.reference), P = by({ reference: M, element: S, strategy: "absolute", placement: o - }), I = xu(Object.assign({}, S, P)), z = f === ta ? I : M, j = { + }), I = gu(Object.assign({}, S, P)), z = f === ra ? I : M, j = { top: w.top - z.top + b.top, bottom: z.bottom - w.bottom + b.bottom, left: w.left - z.left + b.left, right: z.right - w.right + b.right }, X = e.modifiersData.offset; - if (f === ta && X) { + if (f === ra && X) { var ne = X[o]; Object.keys(j).forEach(function(J) { var Q = [ur, cr].indexOf(J) >= 0 ? 1 : -1, ee = [Wt, cr].indexOf(J) >= 0 ? "y" : "x"; @@ -19413,10 +19638,10 @@ function Xa(e, t) { } return j; } -function Cj(e, t) { +function bj(e, t) { t === void 0 && (t = {}); - var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, i = r.padding, s = r.flipVariations, l = r.allowedAutoPlacements, c = l === void 0 ? hy : l, u = Mo(n), d = u ? s ? nm : nm.filter(function(m) { - return Mo(m) === u; + var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, i = r.padding, s = r.flipVariations, l = r.allowedAutoPlacements, c = l === void 0 ? dy : l, u = Io(n), d = u ? s ? rm : rm.filter(function(m) { + return Io(m) === u; }) : li, f = d.filter(function(m) { return c.indexOf(m) >= 0; }); @@ -19427,23 +19652,23 @@ function Cj(e, t) { boundary: o, rootBoundary: a, padding: i - })[Fr(h)], m; + })[Nr(h)], m; }, {}); return Object.keys(p).sort(function(m, h) { return p[m] - p[h]; }); } -function _j(e) { - if (Fr(e) === Od) +function yj(e) { + if (Nr(e) === Ad) return []; var t = ts(e); - return [im(e), t, im(t)]; + return [am(e), t, am(t)]; } -function kj(e) { +function xj(e) { var t = e.state, r = e.options, n = e.name; if (!t.modifiersData[n]._skip) { - for (var o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !0 : i, l = r.fallbackPlacements, c = r.padding, u = r.boundary, d = r.rootBoundary, f = r.altBoundary, p = r.flipVariations, m = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = Fr(v), y = b === v, S = l || (y || !m ? [ts(v)] : _j(v)), k = [v].concat(S).reduce(function(O, B) { - return O.concat(Fr(B) === Od ? Cj(t, { + for (var o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !0 : i, l = r.fallbackPlacements, c = r.padding, u = r.boundary, d = r.rootBoundary, f = r.altBoundary, p = r.flipVariations, m = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = Nr(v), y = b === v, S = l || (y || !m ? [ts(v)] : yj(v)), _ = [v].concat(S).reduce(function(A, B) { + return A.concat(Nr(B) === Ad ? bj(t, { placement: B, boundary: u, rootBoundary: d, @@ -19451,8 +19676,8 @@ function kj(e) { flipVariations: m, allowedAutoPlacements: h }) : B); - }, []), w = t.rects.reference, M = t.rects.popper, P = /* @__PURE__ */ new Map(), I = !0, z = k[0], j = 0; j < k.length; j++) { - var X = k[j], ne = Fr(X), J = Mo(X) === $o, Q = [Wt, cr].indexOf(ne) >= 0, ee = Q ? "width" : "height", oe = Xa(t, { + }, []), w = t.rects.reference, M = t.rects.popper, P = /* @__PURE__ */ new Map(), I = !0, z = _[0], j = 0; j < _.length; j++) { + var X = _[j], ne = Nr(X), J = Io(X) === $o, Q = [Wt, cr].indexOf(ne) >= 0, ee = Q ? "width" : "height", oe = Xa(t, { placement: X, boundary: u, rootBoundary: d, @@ -19461,8 +19686,8 @@ function kj(e) { }), D = Q ? J ? ur : Ut : J ? cr : Wt; w[ee] > M[ee] && (D = ts(D)); var ce = ts(D), fe = []; - if (a && fe.push(oe[ne] <= 0), s && fe.push(oe[D] <= 0, oe[ce] <= 0), fe.every(function(O) { - return O; + if (a && fe.push(oe[ne] <= 0), s && fe.push(oe[D] <= 0, oe[ce] <= 0), fe.every(function(A) { + return A; })) { z = X, I = !1; break; @@ -19471,10 +19696,10 @@ function kj(e) { } if (I) for (var F = m ? 3 : 1, N = function(B) { - var C = k.find(function(H) { - var A = P.get(H); - if (A) - return A.slice(0, B).every(function(Z) { + var C = _.find(function(H) { + var O = P.get(H); + if (O) + return O.slice(0, B).every(function(Z) { return Z; }); }); @@ -19488,17 +19713,17 @@ function kj(e) { t.placement !== z && (t.modifiersData[n]._skip = !0, t.placement = z, t.reset = !0); } } -const Ej = { +const Sj = { name: "flip", enabled: !0, phase: "main", - fn: kj, + fn: xj, requiresIfExists: ["offset"], data: { _skip: !1 } }; -function lm(e, t, r) { +function sm(e, t, r) { return r === void 0 && (r = { x: 0, y: 0 @@ -19509,17 +19734,17 @@ function lm(e, t, r) { left: e.left - t.width - r.x }; } -function cm(e) { +function lm(e) { return [Wt, ur, cr, Ut].some(function(t) { return e[t] >= 0; }); } -function Pj(e) { +function wj(e) { var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = Xa(t, { elementContext: "reference" }), s = Xa(t, { altBoundary: !0 - }), l = lm(i, n), c = lm(s, o, a), u = cm(l), d = cm(c); + }), l = sm(i, n), c = sm(s, o, a), u = lm(l), d = lm(c); t.modifiersData[r] = { referenceClippingOffsets: l, popperEscapeOffsets: c, @@ -19530,15 +19755,15 @@ function Pj(e) { "data-popper-escaped": d }); } -const Tj = { +const Cj = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], - fn: Pj + fn: wj }; -function Aj(e, t, r) { - var n = Fr(e), o = [Ut, Wt].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, { +function _j(e, t, r) { + var n = Nr(e), o = [Ut, Wt].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, { placement: e })) : r, i = a[0], s = a[1]; return i = i || 0, s = (s || 0) * o, [Ut, ur].indexOf(n) >= 0 ? { @@ -19549,45 +19774,45 @@ function Aj(e, t, r) { y: s }; } -function Oj(e) { - var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = hy.reduce(function(u, d) { - return u[d] = Aj(d, t.rects, a), u; +function kj(e) { + var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = dy.reduce(function(u, d) { + return u[d] = _j(d, t.rects, a), u; }, {}), s = i[t.placement], l = s.x, c = s.y; t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = i; } -const $j = { +const Ej = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], - fn: Oj + fn: kj }; -function Rj(e) { +function Pj(e) { var t = e.state, r = e.name; - t.modifiersData[r] = Sy({ + t.modifiersData[r] = by({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement }); } -const Dj = { +const Tj = { name: "popperOffsets", enabled: !0, phase: "read", - fn: Rj, + fn: Pj, data: {} }; -function Mj(e) { +function Aj(e) { return e === "x" ? "y" : "x"; } -function Ij(e) { +function Oj(e) { var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !1 : i, l = r.boundary, c = r.rootBoundary, u = r.altBoundary, d = r.padding, f = r.tether, p = f === void 0 ? !0 : f, m = r.tetherOffset, h = m === void 0 ? 0 : m, v = Xa(t, { boundary: l, rootBoundary: c, padding: d, altBoundary: u - }), b = Fr(t.placement), y = Mo(t.placement), S = !y, k = Dd(b), w = Mj(k), M = t.modifiersData.popperOffsets, P = t.rects.reference, I = t.rects.popper, z = typeof h == "function" ? h(Object.assign({}, t.rects, { + }), b = Nr(t.placement), y = Io(t.placement), S = !y, _ = $d(b), w = Aj(_), M = t.modifiersData.popperOffsets, P = t.rects.reference, I = t.rects.popper, z = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, j = typeof z == "number" ? { mainAxis: z, @@ -19601,57 +19826,57 @@ function Ij(e) { }; if (M) { if (a) { - var J, Q = k === "y" ? Wt : Ut, ee = k === "y" ? cr : ur, oe = k === "y" ? "height" : "width", D = M[k], ce = D + v[Q], fe = D - v[ee], F = p ? -I[oe] / 2 : 0, N = y === $o ? P[oe] : I[oe], V = y === $o ? -I[oe] : -P[oe], T = t.elements.arrow, O = p && T ? Rd(T) : { + var J, Q = _ === "y" ? Wt : Ut, ee = _ === "y" ? cr : ur, oe = _ === "y" ? "height" : "width", D = M[_], ce = D + v[Q], fe = D - v[ee], F = p ? -I[oe] / 2 : 0, N = y === $o ? P[oe] : I[oe], V = y === $o ? -I[oe] : -P[oe], T = t.elements.arrow, A = p && T ? Rd(T) : { width: 0, height: 0 - }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : gy(), C = B[Q], H = B[ee], A = Ca(0, P[oe], O[oe]), Z = S ? P[oe] / 2 - F - A - C - j.mainAxis : N - A - C - j.mainAxis, Y = S ? -P[oe] / 2 + F + A + H + j.mainAxis : V + A + H + j.mainAxis, ae = t.elements.arrow && ci(t.elements.arrow), $ = ae ? k === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, Se = (J = X == null ? void 0 : X[k]) != null ? J : 0, he = D + Z - Se - $, le = D + Y - Se, Re = Ca(p ? Rs(ce, he) : ce, D, p ? Vn(fe, le) : fe); - M[k] = Re, ne[k] = Re - D; + }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : hy(), C = B[Q], H = B[ee], O = ka(0, P[oe], A[oe]), Z = S ? P[oe] / 2 - F - O - C - j.mainAxis : N - O - C - j.mainAxis, Y = S ? -P[oe] / 2 + F + O + H + j.mainAxis : V + O + H + j.mainAxis, ae = t.elements.arrow && ci(t.elements.arrow), R = ae ? _ === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, Se = (J = X == null ? void 0 : X[_]) != null ? J : 0, he = D + Z - Se - R, le = D + Y - Se, De = ka(p ? Rs(ce, he) : ce, D, p ? Ln(fe, le) : fe); + M[_] = De, ne[_] = De - D; } if (s) { - var ye, we = k === "x" ? Wt : Ut, ht = k === "x" ? cr : ur, ke = M[w], dt = w === "y" ? "height" : "width", rt = ke + v[we], Me = ke - v[ht], se = [Wt, Ut].indexOf(b) !== -1, Ae = (ye = X == null ? void 0 : X[w]) != null ? ye : 0, Ot = se ? rt : ke - P[dt] - I[dt] - Ae + j.altAxis, xt = se ? ke + P[dt] + I[dt] - Ae - j.altAxis : Me, lt = p && se ? aj(Ot, ke, xt) : Ca(p ? Ot : rt, ke, p ? xt : Me); + var ye, we = _ === "x" ? Wt : Ut, ht = _ === "x" ? cr : ur, ke = M[w], dt = w === "y" ? "height" : "width", rt = ke + v[we], Ie = ke - v[ht], se = [Wt, Ut].indexOf(b) !== -1, Oe = (ye = X == null ? void 0 : X[w]) != null ? ye : 0, Ot = se ? rt : ke - P[dt] - I[dt] - Oe + j.altAxis, xt = se ? ke + P[dt] + I[dt] - Oe - j.altAxis : Ie, lt = p && se ? ej(Ot, ke, xt) : ka(p ? Ot : rt, ke, p ? xt : Ie); M[w] = lt, ne[w] = lt - ke; } t.modifiersData[n] = ne; } } -const Fj = { +const Rj = { name: "preventOverflow", enabled: !0, phase: "main", - fn: Ij, + fn: Oj, requiresIfExists: ["offset"] }; -function Nj(e) { +function $j(e) { return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; } -function jj(e) { - return e === er(e) || !lr(e) ? Md(e) : Nj(e); +function Dj(e) { + return e === er(e) || !lr(e) ? Dd(e) : $j(e); } -function Bj(e) { - var t = e.getBoundingClientRect(), r = Ro(t.width) / e.offsetWidth || 1, n = Ro(t.height) / e.offsetHeight || 1; +function Mj(e) { + var t = e.getBoundingClientRect(), r = Do(t.width) / e.offsetWidth || 1, n = Do(t.height) / e.offsetHeight || 1; return r !== 1 || n !== 1; } -function zj(e, t, r) { +function Ij(e, t, r) { r === void 0 && (r = !1); - var n = lr(t), o = lr(t) && Bj(t), a = _n(t), i = Do(e, o, r), s = { + var n = lr(t), o = lr(t) && Mj(t), a = kn(t), i = Mo(e, o, r), s = { scrollLeft: 0, scrollTop: 0 }, l = { x: 0, y: 0 }; - return (n || !n && !r) && ((Nr(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 - Fd(a)) && (s = jj(t)), lr(t) ? (l = Do(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : a && (l.x = Id(a))), { + return (n || !n && !r) && ((jr(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 + Id(a)) && (s = Dj(t)), lr(t) ? (l = Mo(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : a && (l.x = Md(a))), { x: i.left + s.scrollLeft - l.x, y: i.top + s.scrollTop - l.y, width: i.width, height: i.height }; } -function Vj(e) { +function Fj(e) { var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = []; e.forEach(function(a) { t.set(a.name, a); @@ -19670,15 +19895,15 @@ function Vj(e) { r.has(a.name) || o(a); }), n; } -function Lj(e) { - var t = Vj(e); - return QN.reduce(function(r, n) { +function Nj(e) { + var t = Fj(e); + return GN.reduce(function(r, n) { return r.concat(t.filter(function(o) { return o.phase === n; })); }, []); } -function Wj(e) { +function jj(e) { var t; return function() { return t || (t = new Promise(function(r) { @@ -19688,7 +19913,7 @@ function Wj(e) { })), t; }; } -function Uj(e) { +function Bj(e) { var t = e.reduce(function(r, n) { var o = r[n.name]; return r[n.name] = o ? Object.assign({}, o, n, { @@ -19700,27 +19925,27 @@ function Uj(e) { return t[r]; }); } -var um = { +var cm = { placement: "bottom", modifiers: [], strategy: "absolute" }; -function dm() { +function um() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; return !t.some(function(n) { return !(n && typeof n.getBoundingClientRect == "function"); }); } -function Hj(e) { +function zj(e) { e === void 0 && (e = {}); - var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? um : o; + var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? cm : o; return function(s, l, c) { c === void 0 && (c = a); var u = { placement: "bottom", orderedModifiers: [], - options: Object.assign({}, um, a), + options: Object.assign({}, cm, a), modifiersData: {}, elements: { reference: s, @@ -19733,12 +19958,12 @@ function Hj(e) { setOptions: function(b) { var y = typeof b == "function" ? b(u.options) : b; h(), u.options = Object.assign({}, a, u.options, y), u.scrollParents = { - reference: Ln(s) ? _a(s) : s.contextElement ? _a(s.contextElement) : [], - popper: _a(l) + reference: Un(s) ? Ea(s) : s.contextElement ? Ea(s.contextElement) : [], + popper: Ea(l) }; - var S = Lj(Uj([].concat(n, u.options.modifiers))); - return u.orderedModifiers = S.filter(function(k) { - return k.enabled; + var S = Nj(Bj([].concat(n, u.options.modifiers))); + return u.orderedModifiers = S.filter(function(_) { + return _.enabled; }), m(), p.update(); }, // Sync update – it will always be executed, even if not necessary. This @@ -19749,19 +19974,19 @@ function Hj(e) { forceUpdate: function() { if (!f) { var b = u.elements, y = b.reference, S = b.popper; - if (dm(y, S)) { + if (um(y, S)) { u.rects = { - reference: zj(y, ci(S), u.options.strategy === "fixed"), + reference: Ij(y, ci(S), u.options.strategy === "fixed"), popper: Rd(S) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(j) { return u.modifiersData[j.name] = Object.assign({}, j.data); }); - for (var k = 0; k < u.orderedModifiers.length; k++) { + for (var _ = 0; _ < u.orderedModifiers.length; _++) { if (u.reset === !0) { - u.reset = !1, k = -1; + u.reset = !1, _ = -1; continue; } - var w = u.orderedModifiers[k], M = w.fn, P = w.options, I = P === void 0 ? {} : P, z = w.name; + var w = u.orderedModifiers[_], M = w.fn, P = w.options, I = P === void 0 ? {} : P, z = w.name; typeof M == "function" && (u = M({ state: u, options: I, @@ -19774,7 +19999,7 @@ function Hj(e) { }, // Async and optimistically optimized update – it will not be executed if // not necessary (debounced to run at most once-per-tick) - update: Wj(function() { + update: jj(function() { return new Promise(function(v) { p.forceUpdate(), v(u); }); @@ -19783,16 +20008,16 @@ function Hj(e) { h(), f = !0; } }; - if (!dm(s, l)) + if (!um(s, l)) return p; p.setOptions(c).then(function(v) { !f && c.onFirstUpdate && c.onFirstUpdate(v); }); function m() { u.orderedModifiers.forEach(function(v) { - var b = v.name, y = v.options, S = y === void 0 ? {} : y, k = v.effect; - if (typeof k == "function") { - var w = k({ + var b = v.name, y = v.options, S = y === void 0 ? {} : y, _ = v.effect; + if (typeof _ == "function") { + var w = _({ state: u, name: b, instance: p, @@ -19811,10 +20036,10 @@ function Hj(e) { return p; }; } -var Yj = [mj, Dj, pj, rj, $j, Ej, Fj, cj, Tj], qj = /* @__PURE__ */ Hj({ - defaultModifiers: Yj +var Vj = [uj, Tj, lj, ZN, Ej, Sj, Rj, oj, Cj], Lj = /* @__PURE__ */ zj({ + defaultModifiers: Vj }); -function wy(e = {}) { +function yy(e = {}) { const { enabled: t = !0, modifiers: r, @@ -19829,22 +20054,22 @@ function wy(e = {}) { preventOverflow: d = !0, matchWidth: f, direction: p = "ltr" - } = e, m = be(null), h = be(null), v = be(null), b = VN(n, p), y = be(() => { + } = e, m = be(null), h = be(null), v = be(null), b = FN(n, p), y = be(() => { }), S = q(() => { var j; - !t || !m.current || !h.current || ((j = y.current) == null || j.call(y), v.current = qj(m.current, h.current, { + !t || !m.current || !h.current || ((j = y.current) == null || j.call(y), v.current = Lj(m.current, h.current, { placement: b, modifiers: [ - jN, - IN, - MN, + DN, + ON, + AN, { - ...DN, + ...TN, enabled: !!f }, { name: "eventListeners", - ...RN(i) + ...PN(i) }, { name: "arrow", @@ -19889,7 +20114,7 @@ function wy(e = {}) { var j; !m.current && !h.current && ((j = v.current) == null || j.destroy(), v.current = null); }, []); - const k = q( + const _ = q( (j) => { m.current = j, S(); }, @@ -19897,9 +20122,9 @@ function wy(e = {}) { ), w = q( (j = {}, X = null) => ({ ...j, - ref: St(k, X) + ref: St(_, X) }), - [k] + [_] ), M = q( (j) => { h.current = j, S(); @@ -19923,7 +20148,7 @@ function wy(e = {}) { ...oe, ref: X, "data-popper-arrow": "", - style: Gj(j) + style: Wj(j) }; }, []), z = q( (j = {}, X = null) => ({ @@ -19943,7 +20168,7 @@ function wy(e = {}) { (j = v.current) == null || j.forceUpdate(); }, transformOrigin: Et.transformOrigin.varRef, - referenceRef: k, + referenceRef: _, popperRef: M, getPopperProps: P, getArrowProps: I, @@ -19951,11 +20176,11 @@ function wy(e = {}) { getReferenceProps: w }; } -function Gj(e) { +function Wj(e) { const { size: t, shadowColor: r, bg: n, style: o } = e, a = { ...o, position: "absolute" }; return t && (a["--popper-arrow-size"] = t), r && (a["--popper-arrow-shadow-color"] = r), n && (a["--popper-arrow-bg"] = n), a; } -function Cy(e = {}) { +function xy(e = {}) { const { onClose: t, onOpen: r, @@ -19974,8 +20199,8 @@ function Cy(e = {}) { "aria-expanded": c, "aria-controls": f, onClick(S) { - var k; - (k = y.onClick) == null || k.call(y, S), h(); + var _; + (_ = y.onClick) == null || _.call(y, S), h(); } }; } @@ -19996,7 +20221,7 @@ function Cy(e = {}) { getDisclosureProps: b }; } -function Xj(e) { +function Uj(e) { const { ref: t, handler: r, enabled: n = !0 } = e, o = Jt(r), i = be({ isPointerDown: !1, ignoreEmulatedMouseEvents: !1 @@ -20005,35 +20230,35 @@ function Xj(e) { if (!n) return; const s = (d) => { - yc(d, t) && (i.isPointerDown = !0); + gc(d, t) && (i.isPointerDown = !0); }, l = (d) => { if (i.ignoreEmulatedMouseEvents) { i.ignoreEmulatedMouseEvents = !1; return; } - i.isPointerDown && r && yc(d, t) && (i.isPointerDown = !1, o(d)); + i.isPointerDown && r && gc(d, t) && (i.isPointerDown = !1, o(d)); }, c = (d) => { - i.ignoreEmulatedMouseEvents = !0, r && i.isPointerDown && yc(d, t) && (i.isPointerDown = !1, o(d)); - }, u = _y(t.current); + i.ignoreEmulatedMouseEvents = !0, r && i.isPointerDown && gc(d, t) && (i.isPointerDown = !1, o(d)); + }, u = Sy(t.current); return u.addEventListener("mousedown", s, !0), u.addEventListener("mouseup", l, !0), u.addEventListener("touchstart", s, !0), u.addEventListener("touchend", c, !0), () => { u.removeEventListener("mousedown", s, !0), u.removeEventListener("mouseup", l, !0), u.removeEventListener("touchstart", s, !0), u.removeEventListener("touchend", c, !0); }; }, [r, t, o, i, n]); } -function yc(e, t) { +function gc(e, t) { var r; const n = e.target; - return n && !_y(n).contains(n) ? !1 : !((r = t.current) != null && r.contains(n)); + return n && !Sy(n).contains(n) ? !1 : !((r = t.current) != null && r.contains(n)); } -function _y(e) { +function Sy(e) { var t; return (t = e == null ? void 0 : e.ownerDocument) != null ? t : document; } -function Kj(e) { +function Hj(e) { const { isOpen: t, ref: r } = e, [n, o] = Ye(t), [a, i] = Ye(!1); return Fe(() => { a || (o(t), i(!0)); - }, [t, a, n]), wa( + }, [t, a, n]), _a( () => r.current, "animationend", () => { @@ -20043,36 +20268,36 @@ function Kj(e) { present: !(t ? !1 : !n), onComplete() { var l; - const c = J5(r.current), u = new c.CustomEvent("animationend", { bubbles: !0 }); + const c = q5(r.current), u = new c.CustomEvent("animationend", { bubbles: !0 }); (l = r.current) == null || l.dispatchEvent(u); } }; } -function Zj(e) { +function Yj(e) { const { wasSelected: t, enabled: r, isSelected: n, mode: o = "unmount" } = e; return !!(!r || n || o === "keepMounted" && t); } var [ - Jj, - Qj, - eB, - tB -] = xF(), [rB, Lo] = Nt({ + qj, + Gj, + Xj, + Kj +] = vF(), [Zj, Wo] = Nt({ strict: !1, name: "MenuContext" }); -function nB(e, ...t) { +function Jj(e, ...t) { const r = _r(), n = e || r; return gt(() => t.map((o) => `${o}-${n}`), [n, t]); } -function ky(e) { +function wy(e) { var t; return (t = e == null ? void 0 : e.ownerDocument) != null ? t : document; } -function fm(e) { - return ky(e).activeElement === e; +function dm(e) { + return wy(e).activeElement === e; } -function oB(e = {}) { +function Qj(e = {}) { const { id: t, closeOnSelect: r = !0, @@ -20089,16 +20314,16 @@ function oB(e = {}) { direction: p, computePositionOnMount: m = !1, ...h - } = e, v = be(null), b = be(null), y = eB(), S = q(() => { + } = e, v = be(null), b = be(null), y = Xj(), S = q(() => { requestAnimationFrame(() => { var T; (T = v.current) == null || T.focus({ preventScroll: !1 }); }); - }, []), k = q(() => { + }, []), _ = q(() => { const T = setTimeout(() => { - var O; + var A; if (o) - (O = o.current) == null || O.focus(); + (A = o.current) == null || A.focus(); else { const B = y.firstEnabled(); B && J(B.index); @@ -20107,56 +20332,59 @@ function oB(e = {}) { ce.current.add(T); }, [y, o]), w = q(() => { const T = setTimeout(() => { - const O = y.lastEnabled(); - O && J(O.index); + const A = y.lastEnabled(); + A && J(A.index); }); ce.current.add(T); }, [y]), M = q(() => { - u == null || u(), a ? k() : S(); - }, [a, k, S, u]), { isOpen: P, onOpen: I, onClose: z, onToggle: j } = Cy({ + u == null || u(), a ? _() : S(); + }, [a, _, S, u]), { isOpen: P, onOpen: I, onClose: z, onToggle: j } = xy({ isOpen: s, defaultIsOpen: l, onClose: c, onOpen: M }); - Xj({ + Uj({ enabled: P && n, ref: v, handler: (T) => { - var O; - (O = b.current) != null && O.contains(T.target) || z(); + var A; + (A = b.current) != null && A.contains(T.target) || z(); } }); - const X = wy({ + const X = yy({ ...h, enabled: P || m, placement: d, direction: p }), [ne, J] = Ye(-1); - Bo(() => { + zo(() => { P || J(-1); - }, [P]), EN(v, { + }, [P]), SN(v, { focusRef: b, visible: P, shouldFocus: !0 }); - const Q = Kj({ isOpen: P, ref: v }), [ee, oe] = nB(t, "menu-button", "menu-list"), D = q(() => { + const Q = Hj({ isOpen: P, ref: v }), [ee, oe] = Jj(t, "menu-button", "menu-list"), D = q(() => { I(), S(); }, [I, S]), ce = be(/* @__PURE__ */ new Set([])); - uB(() => { - ce.current.forEach((T) => clearTimeout(T)), ce.current.clear(); - }); + Fe(() => { + const T = ce.current; + return () => { + T.forEach((A) => clearTimeout(A)), T.clear(); + }; + }, []); const fe = q(() => { - I(), k(); - }, [k, I]), F = q(() => { + I(), _(); + }, [_, I]), F = q(() => { I(), w(); }, [I, w]), N = q(() => { - var T, O; - const B = ky(v.current), C = (T = v.current) == null ? void 0 : T.contains(B.activeElement); + var T, A; + const B = wy(v.current), C = (T = v.current) == null ? void 0 : T.contains(B.activeElement); if (!(P && !C)) return; - const A = (O = y.item(ne)) == null ? void 0 : O.node; - A == null || A.focus(); + const O = (A = y.item(ne)) == null ? void 0 : A.node; + O == null || O.focus({ preventScroll: !0 }); }, [P, ne, y]), V = be(null); return { openAndFocusMenu: D, @@ -20187,8 +20415,8 @@ function oB(e = {}) { rafId: V }; } -function aB(e = {}, t = null) { - const r = Lo(), { onToggle: n, popper: o, openAndFocusFirstItem: a, openAndFocusLastItem: i } = r, s = q( +function eB(e = {}, t = null) { + const r = Wo(), { onToggle: n, popper: o, openAndFocusFirstItem: a, openAndFocusLastItem: i } = r, s = q( (l) => { const c = l.key, d = { Enter: a, @@ -20203,20 +20431,20 @@ function aB(e = {}, t = null) { ...e, ref: St(r.buttonRef, t, o.referenceRef), id: r.buttonId, - "data-active": to(r.isOpen), + "data-active": Ar(r.isOpen), "aria-expanded": r.isOpen, "aria-haspopup": "menu", "aria-controls": r.menuId, - onClick: Rt(e.onClick, n), - onKeyDown: Rt(e.onKeyDown, s) + onClick: $t(e.onClick, n), + onKeyDown: $t(e.onKeyDown, s) }; } -function Su(e) { +function bu(e) { var t; - return lB(e) && !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem")); + return nB(e) && !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem")); } -function iB(e = {}, t = null) { - const r = Lo(); +function tB(e = {}, t = null) { + const r = Wo(); if (!r) throw new Error( "useMenuContext: context is undefined. Seems you forgot to wrap component within " @@ -20231,13 +20459,13 @@ function iB(e = {}, t = null) { isLazy: c, lazyBehavior: u, unstable__animationState: d - } = r, f = Qj(), p = SN({ - preventDefault: (b) => b.key !== " " && Su(b.target) + } = r, f = Gj(), p = vN({ + preventDefault: (b) => b.key !== " " && bu(b.target) }), m = q( (b) => { if (!b.currentTarget.contains(b.target)) return; - const y = b.key, k = { + const y = b.key, _ = { Tab: (M) => M.preventDefault(), Escape: s, ArrowDown: () => { @@ -20249,12 +20477,12 @@ function iB(e = {}, t = null) { M && o(M.index); } }[y]; - if (k) { - b.preventDefault(), k(b); + if (_) { + b.preventDefault(), _(b); return; } const w = p((M) => { - const P = wN( + const P = gN( f.values(), M, (I) => { @@ -20268,7 +20496,7 @@ function iB(e = {}, t = null) { o(I); } }); - Su(b.target) && w(b); + bu(b.target) && w(b); }, [ f, @@ -20279,7 +20507,7 @@ function iB(e = {}, t = null) { ] ), h = be(!1); i && (h.current = !0); - const v = Zj({ + const v = Yj({ wasSelected: h.current, enabled: c, mode: u, @@ -20297,11 +20525,11 @@ function iB(e = {}, t = null) { transformOrigin: "var(--popper-transform-origin)" }, "aria-orientation": "vertical", - onKeyDown: Rt(e.onKeyDown, m) + onKeyDown: $t(e.onKeyDown, m) }; } -function sB(e = {}) { - const { popper: t, isOpen: r } = Lo(); +function rB(e = {}) { + const { popper: t, isOpen: r } = Wo(); return t.getPopperProps({ ...e, style: { @@ -20310,7 +20538,7 @@ function sB(e = {}) { } }); } -function Ey(e = {}, t = null) { +function Cy(e = {}, t = null) { const { onMouseEnter: r, onMouseMove: n, @@ -20322,7 +20550,7 @@ function Ey(e = {}, t = null) { closeOnSelect: c, type: u, ...d - } = e, f = Lo(), { + } = e, f = Wo(), { setFocusedIndex: p, focusedIndex: m, closeOnSelect: h, @@ -20330,8 +20558,8 @@ function Ey(e = {}, t = null) { menuRef: b, isOpen: y, menuId: S, - rafId: k - } = f, w = be(null), M = `${S}-menuitem-${_r()}`, { index: P, register: I } = tB({ + rafId: _ + } = f, w = be(null), M = `${S}-menuitem-${_r()}`, { index: P, register: I } = Kj({ disabled: s && !l }), z = q( (D) => { @@ -20340,7 +20568,7 @@ function Ey(e = {}, t = null) { [p, P, s, r] ), j = q( (D) => { - n == null || n(D), w.current && !fm(w.current) && z(D); + n == null || n(D), w.current && !dm(w.current) && z(D); }, [z, n] ), X = q( @@ -20350,7 +20578,7 @@ function Ey(e = {}, t = null) { [p, s, o] ), ne = q( (D) => { - a == null || a(D), Su(D.currentTarget) && (c ?? h) && v(); + a == null || a(D), bu(D.currentTarget) && (c ?? h) && v(); }, [v, a, h, c] ), J = q( @@ -20359,13 +20587,16 @@ function Ey(e = {}, t = null) { }, [p, i, P] ), Q = P === m, ee = s && !l; - Bo(() => { - y && (Q && !ee && w.current ? (k.current && cancelAnimationFrame(k.current), k.current = requestAnimationFrame(() => { - var D; - (D = w.current) == null || D.focus(), k.current = null; - })) : b.current && !fm(b.current) && b.current.focus({ preventScroll: !0 })); + zo(() => { + if (y) + return Q && !ee && w.current ? (_.current && cancelAnimationFrame(_.current), _.current = requestAnimationFrame(() => { + var D; + (D = w.current) == null || D.focus({ preventScroll: !0 }), _.current = null; + })) : b.current && !dm(b.current) && b.current.focus({ preventScroll: !0 }), () => { + _.current && cancelAnimationFrame(_.current); + }; }, [Q, ee, b, y]); - const oe = _N({ + const oe = yN({ onClick: ne, onFocus: J, onMouseEnter: z, @@ -20384,15 +20615,15 @@ function Ey(e = {}, t = null) { tabIndex: Q ? 0 : -1 }; } -function tL(e = {}, t = null) { +function qV(e = {}, t = null) { const { type: r = "radio", isChecked: n, ...o } = e; return { - ...Ey(o, t), + ...Cy(o, t), role: `menuitem${r}`, "aria-checked": n }; } -function rL(e = {}) { +function GV(e = {}) { const { children: t, type: r = "radio", @@ -20400,7 +20631,7 @@ function rL(e = {}) { defaultValue: o, onChange: a, ...i - } = e, l = r === "radio" ? "" : [], [c, u] = yd({ + } = e, l = r === "radio" ? "" : [], [c, u] = bd({ defaultValue: o ?? l, value: n, onChange: a @@ -20412,7 +20643,7 @@ function rL(e = {}) { } }, [c, u, r] - ), p = bb(t).map((m) => { + ), p = mb(t).map((m) => { if (m.type.id !== "MenuItemOption") return m; const h = (b) => { @@ -20430,38 +20661,31 @@ function rL(e = {}) { children: p }; } -function nL() { - const { isOpen: e, onClose: t } = Lo(); +function XV() { + const { isOpen: e, onClose: t } = Wo(); return { isOpen: e, onClose: t }; } -function lB(e) { +function nB(e) { var t; - if (!cB(e)) + if (!oB(e)) return !1; const r = (t = e.ownerDocument.defaultView) != null ? t : window; return e instanceof r.HTMLElement; } -function cB(e) { +function oB(e) { return e != null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; } -function uB(e, t = []) { - return Fe( - () => () => e(), - // eslint-disable-next-line react-hooks/exhaustive-deps - t - ); -} -var [dB, Wo] = Nt({ +var [aB, Uo] = Nt({ name: "MenuStylesContext", errorMessage: `useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), fB = (e) => { - const { children: t } = e, r = jo("Menu", e), n = jr(e), { direction: o } = an(), { descendants: a, ...i } = oB({ ...n, direction: o }), s = gt(() => i, [i]), { isOpen: l, onClose: c, forceUpdate: u } = s; - return /* @__PURE__ */ L.jsx(Jj, { value: a, children: /* @__PURE__ */ L.jsx(rB, { value: s, children: /* @__PURE__ */ L.jsx(dB, { value: r, children: hn(t, { isOpen: l, onClose: c, forceUpdate: u }) }) }) }); +}), iB = (e) => { + const { children: t } = e, r = Bo("Menu", e), n = Br(e), { direction: o } = sn(), { descendants: a, ...i } = Qj({ ...n, direction: o }), s = gt(() => i, [i]), { isOpen: l, onClose: c, forceUpdate: u } = s; + return /* @__PURE__ */ L.jsx(qj, { value: a, children: /* @__PURE__ */ L.jsx(Zj, { value: s, children: /* @__PURE__ */ L.jsx(aB, { value: r, children: mn(t, { isOpen: l, onClose: c, forceUpdate: u }) }) }) }); }; -fB.displayName = "Menu"; -var Py = _e( +iB.displayName = "Menu"; +var _y = _e( (e, t) => { - const r = Wo(); + const r = Uo(); return /* @__PURE__ */ L.jsx( ge.span, { @@ -20473,10 +20697,10 @@ var Py = _e( ); } ); -Py.displayName = "MenuCommand"; -var pB = _e( +_y.displayName = "MenuCommand"; +var sB = _e( (e, t) => { - const { type: r, ...n } = e, o = Wo(), a = n.as || r ? r ?? void 0 : "button", i = gt( + const { type: r, ...n } = e, o = Uo(), a = n.as || r ? r ?? void 0 : "button", i = gt( () => ({ textDecoration: "none", color: "inherit", @@ -20493,16 +20717,16 @@ var pB = _e( ); return /* @__PURE__ */ L.jsx(ge.button, { ref: t, type: a, ...n, __css: i }); } -), Ty = (e) => { - const { className: t, children: r, ...n } = e, o = Wo(), a = Ms.only(r), i = Eu(a) ? Ka(a, { +), ky = (e) => { + const { className: t, children: r, ...n } = e, o = Uo(), a = Ds.only(r), i = Cu(a) ? Ka(a, { focusable: "false", "aria-hidden": !0, className: Xe("chakra-menu__icon", a.props.className) }) : null, s = Xe("chakra-menu__icon-wrapper", t); return /* @__PURE__ */ L.jsx(ge.span, { className: s, ...n, __css: o.icon, children: i }); }; -Ty.displayName = "MenuIcon"; -var hB = _e((e, t) => { +ky.displayName = "MenuIcon"; +var lB = _e((e, t) => { const { icon: r, iconSpacing: n = "0.75rem", @@ -20510,22 +20734,22 @@ var hB = _e((e, t) => { commandSpacing: a = "0.75rem", children: i, ...s - } = e, l = Ey(s, t), u = r || o ? /* @__PURE__ */ L.jsx("span", { style: { pointerEvents: "none", flex: 1 }, children: i }) : i; + } = e, l = Cy(s, t), u = r || o ? /* @__PURE__ */ L.jsx("span", { style: { pointerEvents: "none", flex: 1 }, children: i }) : i; return /* @__PURE__ */ L.jsxs( - pB, + sB, { ...l, className: Xe("chakra-menu__menuitem", l.className), children: [ - r && /* @__PURE__ */ L.jsx(Ty, { fontSize: "0.8em", marginEnd: n, children: r }), + r && /* @__PURE__ */ L.jsx(ky, { fontSize: "0.8em", marginEnd: n, children: r }), u, - o && /* @__PURE__ */ L.jsx(Py, { marginStart: a, children: o }) + o && /* @__PURE__ */ L.jsx(_y, { marginStart: a, children: o }) ] } ); }); -hB.displayName = "MenuItem"; -var mB = { +lB.displayName = "MenuItem"; +var cB = { enter: { visibility: "visible", opacity: 1, @@ -20546,22 +20770,22 @@ var mB = { easings: "easeOut" } } -}, vB = ge(Cn.div), gB = _e(function(t, r) { +}, uB = ge(_n.div), dB = _e(function(t, r) { var n, o; const { rootProps: a, motionProps: i, ...s } = t, { isOpen: l, onTransitionEnd: c, unstable__animationState: u - } = Lo(), d = iB(s, r), f = sB(a), p = Wo(); + } = Wo(), d = tB(s, r), f = rB(a), p = Uo(); return /* @__PURE__ */ L.jsx( ge.div, { ...f, __css: { zIndex: (o = t.zIndex) != null ? o : (n = p.list) == null ? void 0 : n.zIndex }, children: /* @__PURE__ */ L.jsx( - vB, + uB, { - variants: mB, + variants: cB, initial: !1, animate: l ? "enter" : "exit", __css: { outline: 0, ...p.list }, @@ -20569,7 +20793,7 @@ var mB = { className: Xe("chakra-menu__menu-list", d.className), ...d, onUpdate: c, - onAnimationComplete: $_( + onAnimationComplete: E_( u.onComplete, d.onAnimationComplete ) @@ -20578,9 +20802,9 @@ var mB = { } ); }); -gB.displayName = "MenuList"; -var bB = _e((e, t) => { - const r = Wo(); +dB.displayName = "MenuList"; +var fB = _e((e, t) => { + const r = Uo(); return /* @__PURE__ */ L.jsx( ge.button, { @@ -20595,9 +20819,9 @@ var bB = _e((e, t) => { } } ); -}), yB = _e( +}), pB = _e( (e, t) => { - const { children: r, as: n, ...o } = e, a = aB(o, t), i = n || bB; + const { children: r, as: n, ...o } = e, a = eB(o, t), i = n || fB; return /* @__PURE__ */ L.jsx( i, { @@ -20614,9 +20838,9 @@ var bB = _e((e, t) => { ); } ); -yB.displayName = "MenuButton"; -var xB = (e) => { - const { className: t, ...r } = e, n = Wo(); +pB.displayName = "MenuButton"; +var hB = (e) => { + const { className: t, ...r } = e, n = Uo(); return /* @__PURE__ */ L.jsx( ge.hr, { @@ -20627,31 +20851,39 @@ var xB = (e) => { } ); }; -xB.displayName = "MenuDivider"; -var SB = { +hB.displayName = "MenuDivider"; +var mB = { slideInBottom: { - ...fu, + ...ua, custom: { offsetY: 16, reverse: !0 } }, slideInRight: { - ...fu, + ...ua, custom: { offsetX: 16, reverse: !0 } }, + slideInTop: { + ...ua, + custom: { offsetY: -16, reverse: !0 } + }, + slideInLeft: { + ...ua, + custom: { offsetX: -16, reverse: !0 } + }, scale: { - ...vb, + ...pb, custom: { initialScale: 0.95, reverse: !0 } }, none: {} -}, wB = ge(Cn.section), CB = (e) => SB[e || "none"], Ay = At( +}, vB = ge(_n.section), gB = (e) => mB[e || "none"], Ey = At( (e, t) => { - const { preset: r, motionProps: n = CB(r), ...o } = e; - return /* @__PURE__ */ L.jsx(wB, { ref: t, ...n, ...o }); + const { preset: r, motionProps: n = gB(r), ...o } = e; + return /* @__PURE__ */ L.jsx(vB, { ref: t, ...n, ...o }); } ); -Ay.displayName = "ModalTransition"; -var _B = Object.defineProperty, kB = (e, t, r) => t in e ? _B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, EB = (e, t, r) => (kB(e, typeof t != "symbol" ? t + "" : t, r), r), PB = class { +Ey.displayName = "ModalTransition"; +var bB = Object.defineProperty, yB = (e, t, r) => t in e ? bB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xB = (e, t, r) => (yB(e, typeof t != "symbol" ? t + "" : t, r), r), SB = class { constructor() { - EB(this, "modals"), this.modals = /* @__PURE__ */ new Map(); + xB(this, "modals"), this.modals = /* @__PURE__ */ new Map(); } add(e) { return this.modals.set(e, this.modals.size + 1), this.modals.size; @@ -20662,40 +20894,40 @@ var _B = Object.defineProperty, kB = (e, t, r) => t in e ? _B(e, t, { enumerable isTopModal(e) { return e ? this.modals.get(e) === this.modals.size : !1; } -}, wu = new PB(); -function Oy(e, t) { +}, yu = new SB(); +function Py(e, t) { const [r, n] = Ye(0); return Fe(() => { const o = e.current; if (o) { if (t) { - const a = wu.add(o); + const a = yu.add(o); n(a); } return () => { - wu.remove(o), n(0); + yu.remove(o), n(0); }; } }, [t, e]), r; } -var TB = function(e) { +var wB = function(e) { if (typeof document > "u") return null; var t = Array.isArray(e) ? e[0] : e; return t.ownerDocument.body; -}, Zn = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Ii = {}, xc = 0, $y = function(e) { - return e && (e.host || $y(e.parentNode)); -}, AB = function(e, t) { +}, Qn = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Ii = {}, bc = 0, Ty = function(e) { + return e && (e.host || Ty(e.parentNode)); +}, CB = function(e, t) { return t.map(function(r) { if (e.contains(r)) return r; - var n = $y(r); + var n = Ty(r); return n && e.contains(n) ? n : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null); }).filter(function(r) { return !!r; }); -}, OB = function(e, t, r, n) { - var o = AB(t, Array.isArray(e) ? e : [e]); +}, _B = function(e, t, r, n) { + var o = CB(t, Array.isArray(e) ? e : [e]); Ii[r] || (Ii[r] = /* @__PURE__ */ new WeakMap()); var a = Ii[r], i = [], s = /* @__PURE__ */ new Set(), l = new Set(o), c = function(d) { !d || s.has(d) || (s.add(d), c(d.parentNode)); @@ -20706,25 +20938,25 @@ var TB = function(e) { if (s.has(f)) u(f); else { - var p = f.getAttribute(n), m = p !== null && p !== "false", h = (Zn.get(f) || 0) + 1, v = (a.get(f) || 0) + 1; - Zn.set(f, h), a.set(f, v), i.push(f), h === 1 && m && Mi.set(f, !0), v === 1 && f.setAttribute(r, "true"), m || f.setAttribute(n, "true"); + var p = f.getAttribute(n), m = p !== null && p !== "false", h = (Qn.get(f) || 0) + 1, v = (a.get(f) || 0) + 1; + Qn.set(f, h), a.set(f, v), i.push(f), h === 1 && m && Mi.set(f, !0), v === 1 && f.setAttribute(r, "true"), m || f.setAttribute(n, "true"); } }); }; - return u(t), s.clear(), xc++, function() { + return u(t), s.clear(), bc++, function() { i.forEach(function(d) { - var f = Zn.get(d) - 1, p = a.get(d) - 1; - Zn.set(d, f), a.set(d, p), f || (Mi.has(d) || d.removeAttribute(n), Mi.delete(d)), p || d.removeAttribute(r); - }), xc--, xc || (Zn = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Ii = {}); + var f = Qn.get(d) - 1, p = a.get(d) - 1; + Qn.set(d, f), a.set(d, p), f || (Mi.has(d) || d.removeAttribute(n), Mi.delete(d)), p || d.removeAttribute(r); + }), bc--, bc || (Qn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Ii = {}); }; -}, $B = function(e, t, r) { +}, kB = function(e, t, r) { r === void 0 && (r = "data-aria-hidden"); - var n = Array.from(Array.isArray(e) ? e : [e]), o = t || TB(e); - return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), OB(n, o, r, "aria-hidden")) : function() { + var n = Array.from(Array.isArray(e) ? e : [e]), o = t || wB(e); + return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), _B(n, o, r, "aria-hidden")) : function() { return null; }; }; -function RB(e) { +function EB(e) { const { isOpen: t, onClose: r, @@ -20734,21 +20966,21 @@ function RB(e) { useInert: i = !0, onOverlayClick: s, onEsc: l - } = e, c = be(null), u = be(null), [d, f, p] = MB( + } = e, c = be(null), u = be(null), [d, f, p] = TB( n, "chakra-modal", "chakra-modal--header", "chakra-modal--body" ); - DB(c, t && i); - const m = Oy(c, t), h = be(null), v = q((z) => { + PB(c, t && i); + const m = Py(c, t), h = be(null), v = q((z) => { h.current = z.target; }, []), b = q( (z) => { z.key === "Escape" && (z.stopPropagation(), a && (r == null || r()), l == null || l()); }, [a, r, l] - ), [y, S] = Ye(!1), [k, w] = Ye(!1), M = q( + ), [y, S] = Ye(!1), [_, w] = Ye(!1), M = q( (z = {}, j = null) => ({ role: "dialog", ...z, @@ -20757,25 +20989,25 @@ function RB(e) { tabIndex: -1, "aria-modal": !0, "aria-labelledby": y ? f : void 0, - "aria-describedby": k ? p : void 0, - onClick: Rt( + "aria-describedby": _ ? p : void 0, + onClick: $t( z.onClick, (X) => X.stopPropagation() ) }), - [p, k, d, f, y] + [p, _, d, f, y] ), P = q( (z) => { - z.stopPropagation(), h.current === z.target && wu.isTopModal(c.current) && (o && (r == null || r()), s == null || s()); + z.stopPropagation(), h.current === z.target && yu.isTopModal(c.current) && (o && (r == null || r()), s == null || s()); }, [r, o, s] ), I = q( (z = {}, j = null) => ({ ...z, ref: St(j, u), - onClick: Rt(z.onClick, P), - onKeyDown: Rt(z.onKeyDown, b), - onMouseDown: Rt(z.onMouseDown, v) + onClick: $t(z.onClick, P), + onKeyDown: $t(z.onKeyDown, b), + onMouseDown: $t(z.onMouseDown, v) }), [b, v, P] ); @@ -20793,25 +21025,25 @@ function RB(e) { index: m }; } -function DB(e, t) { +function PB(e, t) { const r = e.current; Fe(() => { if (!(!e.current || !t)) - return $B(e.current); + return kB(e.current); }, [t, e, r]); } -function MB(e, ...t) { +function TB(e, ...t) { const r = _r(), n = e || r; return gt(() => t.map((o) => `${o}-${n}`), [n, t]); } -var [IB, qn] = Nt({ +var [AB, Xn] = Nt({ name: "ModalStylesContext", errorMessage: `useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [FB, Sn] = Nt({ +}), [OB, wn] = Nt({ strict: !0, name: "ModalContext", errorMessage: "useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``" -}), Ry = (e) => { +}), Ay = (e) => { const t = { scrollBehavior: "outside", autoFocus: !0, @@ -20836,8 +21068,8 @@ var [IB, qn] = Nt({ motionPreset: f, lockFocusAcrossFrames: p, onCloseComplete: m - } = t, h = jo("Modal", t), b = { - ...RB(t), + } = t, h = Bo("Modal", t), b = { + ...EB(t), autoFocus: o, trapFocus: a, initialFocusRef: i, @@ -20849,65 +21081,65 @@ var [IB, qn] = Nt({ motionPreset: f, lockFocusAcrossFrames: p }; - return /* @__PURE__ */ L.jsx(FB, { value: b, children: /* @__PURE__ */ L.jsx(IB, { value: h, children: /* @__PURE__ */ L.jsx(zo, { onExitComplete: m, children: b.isOpen && /* @__PURE__ */ L.jsx(Qa, { ...r, children: n }) }) }) }); + return /* @__PURE__ */ L.jsx(OB, { value: b, children: /* @__PURE__ */ L.jsx(AB, { value: h, children: /* @__PURE__ */ L.jsx(Vo, { onExitComplete: m, children: b.isOpen && /* @__PURE__ */ L.jsx(Qa, { ...r, children: n }) }) }) }); }; -Ry.displayName = "Modal"; -var rs = "right-scroll-bar-position", ns = "width-before-scroll-bar", NB = "with-scroll-bars-hidden", jB = "--removed-body-scroll-bar-size", Dy = Ab(), Sc = function() { -}, il = U.forwardRef(function(e, t) { +Ay.displayName = "Modal"; +var rs = "right-scroll-bar-position", ns = "width-before-scroll-bar", RB = "with-scroll-bars-hidden", $B = "--removed-body-scroll-bar-size", Oy = Eb(), yc = function() { +}, ol = U.forwardRef(function(e, t) { var r = U.useRef(null), n = U.useState({ - onScrollCapture: Sc, - onWheelCapture: Sc, - onTouchMoveCapture: Sc - }), o = n[0], a = n[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, m = e.inert, h = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, y = e.gapMode, S = Eb(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = f, w = kb([r, t]), M = Rr(Rr({}, S), o); + onScrollCapture: yc, + onWheelCapture: yc, + onTouchMoveCapture: yc + }), o = n[0], a = n[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, m = e.inert, h = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, y = e.gapMode, S = Cb(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = f, w = wb([r, t]), M = Dr(Dr({}, S), o); return U.createElement( U.Fragment, null, - u && U.createElement(k, { sideCar: Dy, removeScrollBar: c, shards: d, noIsolation: p, inert: m, setCallbacks: a, allowPinchZoom: !!h, lockRef: r, gapMode: y }), - i ? U.cloneElement(U.Children.only(s), Rr(Rr({}, M), { ref: w })) : U.createElement(b, Rr({}, M, { className: l, ref: w }), s) + u && U.createElement(_, { sideCar: Oy, removeScrollBar: c, shards: d, noIsolation: p, inert: m, setCallbacks: a, allowPinchZoom: !!h, lockRef: r, gapMode: y }), + i ? U.cloneElement(U.Children.only(s), Dr(Dr({}, M), { ref: w })) : U.createElement(b, Dr({}, M, { className: l, ref: w }), s) ); }); -il.defaultProps = { +ol.defaultProps = { enabled: !0, removeScrollBar: !0, inert: !1 }; -il.classNames = { +ol.classNames = { fullWidth: ns, zeroRight: rs }; -var pm, BB = function() { - if (pm) - return pm; +var fm, DB = function() { + if (fm) + return fm; if (typeof __webpack_nonce__ < "u") return __webpack_nonce__; }; -function zB() { +function MB() { if (!document) return null; var e = document.createElement("style"); e.type = "text/css"; - var t = BB(); + var t = DB(); return t && e.setAttribute("nonce", t), e; } -function VB(e, t) { +function IB(e, t) { e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t)); } -function LB(e) { +function FB(e) { var t = document.head || document.getElementsByTagName("head")[0]; t.appendChild(e); } -var WB = function() { +var NB = function() { var e = 0, t = null; return { add: function(r) { - e == 0 && (t = zB()) && (VB(t, r), LB(t)), e++; + e == 0 && (t = MB()) && (IB(t, r), FB(t)), e++; }, remove: function() { e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null); } }; -}, UB = function() { - var e = WB(); +}, jB = function() { + var e = NB(); return function(t, r) { U.useEffect(function() { return e.add(t), function() { @@ -20915,36 +21147,36 @@ var WB = function() { }; }, [t && r]); }; -}, My = function() { - var e = UB(), t = function(r) { +}, Ry = function() { + var e = jB(), t = function(r) { var n = r.styles, o = r.dynamic; return e(n, o), null; }; return t; -}, HB = { +}, BB = { left: 0, top: 0, right: 0, gap: 0 -}, wc = function(e) { +}, xc = function(e) { return parseInt(e || "", 10) || 0; -}, YB = function(e) { +}, zB = function(e) { var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"]; - return [wc(r), wc(n), wc(o)]; -}, qB = function(e) { + return [xc(r), xc(n), xc(o)]; +}, VB = function(e) { if (e === void 0 && (e = "margin"), typeof window > "u") - return HB; - var t = YB(e), r = document.documentElement.clientWidth, n = window.innerWidth; + return BB; + var t = zB(e), r = document.documentElement.clientWidth, n = window.innerWidth; return { left: t[0], top: t[1], right: t[2], gap: Math.max(0, n - r + t[2] - t[0]) }; -}, GB = My(), XB = function(e, t, r, n) { +}, LB = Ry(), WB = function(e, t, r, n) { var o = e.left, a = e.top, i = e.right, s = e.gap; return r === void 0 && (r = "margin"), ` - .`.concat(NB, ` { + .`.concat(RB, ` { overflow: hidden `).concat(n, `; padding-right: `).concat(s, "px ").concat(n, `; } @@ -20982,77 +21214,77 @@ var WB = function() { } body { - `).concat(jB, ": ").concat(s, `px; + `).concat($B, ": ").concat(s, `px; } `); -}, KB = function(e) { +}, UB = function(e) { var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n, a = U.useMemo(function() { - return qB(o); + return VB(o); }, [o]); - return U.createElement(GB, { styles: XB(a, !t, o, r ? "" : "!important") }); -}, Cu = !1; + return U.createElement(LB, { styles: WB(a, !t, o, r ? "" : "!important") }); +}, xu = !1; if (typeof window < "u") try { var Fi = Object.defineProperty({}, "passive", { get: function() { - return Cu = !0, !0; + return xu = !0, !0; } }); window.addEventListener("test", Fi, Fi), window.removeEventListener("test", Fi, Fi); } catch { - Cu = !1; + xu = !1; } -var Jn = Cu ? { passive: !1 } : !1, ZB = function(e) { +var eo = xu ? { passive: !1 } : !1, HB = function(e) { return e.tagName === "TEXTAREA"; -}, Iy = function(e, t) { +}, $y = function(e, t) { var r = window.getComputedStyle(e); return ( // not-not-scrollable r[t] !== "hidden" && // contains scroll inside self - !(r.overflowY === r.overflowX && !ZB(e) && r[t] === "visible") + !(r.overflowY === r.overflowX && !HB(e) && r[t] === "visible") ); -}, JB = function(e) { - return Iy(e, "overflowY"); -}, QB = function(e) { - return Iy(e, "overflowX"); -}, hm = function(e, t) { +}, YB = function(e) { + return $y(e, "overflowY"); +}, qB = function(e) { + return $y(e, "overflowX"); +}, pm = function(e, t) { var r = t.ownerDocument, n = t; do { typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host); - var o = Fy(e, n); + var o = Dy(e, n); if (o) { - var a = Ny(e, n), i = a[1], s = a[2]; + var a = My(e, n), i = a[1], s = a[2]; if (i > s) return !0; } n = n.parentNode; } while (n && n !== r.body); return !1; -}, ez = function(e) { +}, GB = function(e) { var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight; return [ t, r, n ]; -}, tz = function(e) { +}, XB = function(e) { var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth; return [ t, r, n ]; -}, Fy = function(e, t) { - return e === "v" ? JB(t) : QB(t); -}, Ny = function(e, t) { - return e === "v" ? ez(t) : tz(t); -}, rz = function(e, t) { +}, Dy = function(e, t) { + return e === "v" ? YB(t) : qB(t); +}, My = function(e, t) { + return e === "v" ? GB(t) : XB(t); +}, KB = function(e, t) { return e === "h" && t === "rtl" ? -1 : 1; -}, nz = function(e, t, r, n, o) { - var a = rz(e, window.getComputedStyle(t).direction), i = a * n, s = r.target, l = t.contains(s), c = !1, u = i > 0, d = 0, f = 0; +}, ZB = function(e, t, r, n, o) { + var a = KB(e, window.getComputedStyle(t).direction), i = a * n, s = r.target, l = t.contains(s), c = !1, u = i > 0, d = 0, f = 0; do { - var p = Ny(e, s), m = p[0], h = p[1], v = p[2], b = h - v - a * m; - (m || b) && Fy(e, s) && (d += b, f += m), s = s.parentNode; + var p = My(e, s), m = p[0], h = p[1], v = p[2], b = h - v - a * m; + (m || b) && Dy(e, s) && (d += b, f += m), s = s.parentNode; } while ( // portaled content !l && s !== document.body || // self content @@ -21061,26 +21293,26 @@ var Jn = Cu ? { passive: !1 } : !1, ZB = function(e) { return (u && (o && d === 0 || !o && i > d) || !u && (o && f === 0 || !o && -i > f)) && (c = !0), c; }, Ni = function(e) { return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0]; -}, mm = function(e) { +}, hm = function(e) { return [e.deltaX, e.deltaY]; -}, vm = function(e) { +}, mm = function(e) { return e && "current" in e ? e.current : e; -}, oz = function(e, t) { +}, JB = function(e, t) { return e[0] === t[0] && e[1] === t[1]; -}, az = function(e) { +}, QB = function(e) { return ` .block-interactivity-`.concat(e, ` {pointer-events: none;} .allow-interactivity-`).concat(e, ` {pointer-events: all;} `); -}, iz = 0, Qn = []; -function sz(e) { - var t = U.useRef([]), r = U.useRef([0, 0]), n = U.useRef(), o = U.useState(iz++)[0], a = U.useState(My)[0], i = U.useRef(e); +}, ez = 0, to = []; +function tz(e) { + var t = U.useRef([]), r = U.useRef([0, 0]), n = U.useRef(), o = U.useState(ez++)[0], a = U.useState(Ry)[0], i = U.useRef(e); U.useEffect(function() { i.current = e; }, [e]), U.useEffect(function() { if (e.inert) { document.body.classList.add("block-interactivity-".concat(o)); - var h = QF([e.lockRef.current], (e.shards || []).map(vm), !0).filter(Boolean); + var h = XF([e.lockRef.current], (e.shards || []).map(mm), !0).filter(Boolean); return h.forEach(function(v) { return v.classList.add("allow-interactivity-".concat(o)); }), function() { @@ -21093,75 +21325,75 @@ function sz(e) { var s = U.useCallback(function(h, v) { if ("touches" in h && h.touches.length === 2) return !i.current.allowPinchZoom; - var b = Ni(h), y = r.current, S = "deltaX" in h ? h.deltaX : y[0] - b[0], k = "deltaY" in h ? h.deltaY : y[1] - b[1], w, M = h.target, P = Math.abs(S) > Math.abs(k) ? "h" : "v"; + var b = Ni(h), y = r.current, S = "deltaX" in h ? h.deltaX : y[0] - b[0], _ = "deltaY" in h ? h.deltaY : y[1] - b[1], w, M = h.target, P = Math.abs(S) > Math.abs(_) ? "h" : "v"; if ("touches" in h && P === "h" && M.type === "range") return !1; - var I = hm(P, M); + var I = pm(P, M); if (!I) return !0; - if (I ? w = P : (w = P === "v" ? "h" : "v", I = hm(P, M)), !I) + if (I ? w = P : (w = P === "v" ? "h" : "v", I = pm(P, M)), !I) return !1; - if (!n.current && "changedTouches" in h && (S || k) && (n.current = w), !w) + if (!n.current && "changedTouches" in h && (S || _) && (n.current = w), !w) return !0; var z = n.current || w; - return nz(z, v, h, z === "h" ? S : k, !0); + return ZB(z, v, h, z === "h" ? S : _, !0); }, []), l = U.useCallback(function(h) { var v = h; - if (!(!Qn.length || Qn[Qn.length - 1] !== a)) { - var b = "deltaY" in v ? mm(v) : Ni(v), y = t.current.filter(function(w) { - return w.name === v.type && w.target === v.target && oz(w.delta, b); + if (!(!to.length || to[to.length - 1] !== a)) { + var b = "deltaY" in v ? hm(v) : Ni(v), y = t.current.filter(function(w) { + return w.name === v.type && w.target === v.target && JB(w.delta, b); })[0]; if (y && y.should) { v.cancelable && v.preventDefault(); return; } if (!y) { - var S = (i.current.shards || []).map(vm).filter(Boolean).filter(function(w) { + var S = (i.current.shards || []).map(mm).filter(Boolean).filter(function(w) { return w.contains(v.target); - }), k = S.length > 0 ? s(v, S[0]) : !i.current.noIsolation; - k && v.cancelable && v.preventDefault(); + }), _ = S.length > 0 ? s(v, S[0]) : !i.current.noIsolation; + _ && v.cancelable && v.preventDefault(); } } }, []), c = U.useCallback(function(h, v, b, y) { var S = { name: h, delta: v, target: b, should: y }; t.current.push(S), setTimeout(function() { - t.current = t.current.filter(function(k) { - return k !== S; + t.current = t.current.filter(function(_) { + return _ !== S; }); }, 1); }, []), u = U.useCallback(function(h) { r.current = Ni(h), n.current = void 0; }, []), d = U.useCallback(function(h) { - c(h.type, mm(h), h.target, s(h, e.lockRef.current)); + c(h.type, hm(h), h.target, s(h, e.lockRef.current)); }, []), f = U.useCallback(function(h) { c(h.type, Ni(h), h.target, s(h, e.lockRef.current)); }, []); U.useEffect(function() { - return Qn.push(a), e.setCallbacks({ + return to.push(a), e.setCallbacks({ onScrollCapture: d, onWheelCapture: d, onTouchMoveCapture: f - }), document.addEventListener("wheel", l, Jn), document.addEventListener("touchmove", l, Jn), document.addEventListener("touchstart", u, Jn), function() { - Qn = Qn.filter(function(h) { + }), document.addEventListener("wheel", l, eo), document.addEventListener("touchmove", l, eo), document.addEventListener("touchstart", u, eo), function() { + to = to.filter(function(h) { return h !== a; - }), document.removeEventListener("wheel", l, Jn), document.removeEventListener("touchmove", l, Jn), document.removeEventListener("touchstart", u, Jn); + }), document.removeEventListener("wheel", l, eo), document.removeEventListener("touchmove", l, eo), document.removeEventListener("touchstart", u, eo); }; }, []); var p = e.removeScrollBar, m = e.inert; return U.createElement( U.Fragment, null, - m ? U.createElement(a, { styles: az(o) }) : null, - p ? U.createElement(KB, { gapMode: e.gapMode }) : null + m ? U.createElement(a, { styles: QB(o) }) : null, + p ? U.createElement(UB, { gapMode: e.gapMode }) : null ); } -const lz = e5(Dy, sz); -var jy = U.forwardRef(function(e, t) { - return U.createElement(il, Rr({}, e, { ref: t, sideCar: lz })); +const rz = KF(Oy, tz); +var Iy = U.forwardRef(function(e, t) { + return U.createElement(ol, Dr({}, e, { ref: t, sideCar: rz })); }); -jy.classNames = il.classNames; -const cz = jy; -function By(e) { +Iy.classNames = ol.classNames; +const nz = Iy; +function Fy(e) { const { autoFocus: t, trapFocus: r, @@ -21174,13 +21406,13 @@ function By(e) { preserveScrollBarGap: c, lockFocusAcrossFrames: u, isOpen: d - } = Sn(), [f, p] = eb(); + } = wn(), [f, p] = Zg(); Fe(() => { !f && p && setTimeout(p); }, [f, p]); - const m = Oy(n, d); + const m = Py(n, d); return /* @__PURE__ */ L.jsx( - sy, + oy, { autoFocus: t, isDisabled: !r, @@ -21190,7 +21422,7 @@ function By(e) { contentRef: n, lockFocusAcrossFrames: u, children: /* @__PURE__ */ L.jsx( - cz, + nz, { removeScrollBar: !c, allowPinchZoom: i, @@ -21202,7 +21434,7 @@ function By(e) { } ); } -var uz = _e( +var oz = _e( (e, t) => { const { className: r, @@ -21210,7 +21442,7 @@ var uz = _e( containerProps: o, motionProps: a, ...i - } = e, { getDialogProps: s, getDialogContainerProps: l } = Sn(), c = s(i, t), u = l(o), d = Xe("chakra-modal__content", r), f = qn(), p = { + } = e, { getDialogProps: s, getDialogContainerProps: l } = wn(), c = s(i, t), u = l(o), d = Xe("chakra-modal__content", r), f = Xn(), p = { display: "flex", flexDirection: "column", position: "relative", @@ -21225,8 +21457,8 @@ var uz = _e( left: 0, top: 0, ...f.dialogContainer - }, { motionPreset: h } = Sn(); - return /* @__PURE__ */ L.jsx(By, { children: /* @__PURE__ */ L.jsx( + }, { motionPreset: h } = wn(); + return /* @__PURE__ */ L.jsx(Fy, { children: /* @__PURE__ */ L.jsx( ge.div, { ...u, @@ -21234,7 +21466,7 @@ var uz = _e( tabIndex: -1, __css: m, children: /* @__PURE__ */ L.jsx( - Ay, + Ey, { preset: h, motionProps: a, @@ -21248,17 +21480,17 @@ var uz = _e( ) }); } ); -uz.displayName = "ModalContent"; -var [dz, fz] = Nt(), pz = { +oz.displayName = "ModalContent"; +var [az, iz] = Nt(), sz = { start: { ltr: "left", rtl: "right" }, end: { ltr: "right", rtl: "left" } }; -function hz(e, t) { +function lz(e, t) { var r, n; if (e) - return (n = (r = pz[e]) == null ? void 0 : r[t]) != null ? n : e; + return (n = (r = sz[e]) == null ? void 0 : r[t]) != null ? n : e; } -function oL(e) { +function KV(e) { var t; const { isOpen: r, @@ -21266,9 +21498,9 @@ function oL(e) { placement: o = "right", children: a, ...i - } = e, s = an(), l = (t = s.components) == null ? void 0 : t.Drawer, c = hz(o, s.direction); - return /* @__PURE__ */ L.jsx(dz, { value: { placement: c }, children: /* @__PURE__ */ L.jsx( - Ry, + } = e, s = sn(), l = (t = s.components) == null ? void 0 : t.Drawer, c = lz(o, s.direction); + return /* @__PURE__ */ L.jsx(az, { value: { placement: c }, children: /* @__PURE__ */ L.jsx( + Ay, { isOpen: r, onClose: n, @@ -21278,7 +21510,7 @@ function oL(e) { } ) }); } -var mz = ge(gb), vz = _e( +var cz = ge(hb), uz = _e( (e, t) => { const { className: r, @@ -21286,7 +21518,7 @@ var mz = ge(gb), vz = _e( motionProps: o, containerProps: a, ...i - } = e, { getDialogProps: s, getDialogContainerProps: l, isOpen: c } = Sn(), u = s(i, t), d = l(a), f = Xe("chakra-modal__content", r), p = qn(), m = { + } = e, { getDialogProps: s, getDialogContainerProps: l, isOpen: c } = wn(), u = s(i, t), d = l(a), f = Xe("chakra-modal__content", r), p = Xn(), m = { display: "flex", flexDirection: "column", position: "relative", @@ -21301,15 +21533,15 @@ var mz = ge(gb), vz = _e( left: 0, top: 0, ...p.dialogContainer - }, { placement: v } = fz(); - return /* @__PURE__ */ L.jsx(By, { children: /* @__PURE__ */ L.jsx( + }, { placement: v } = iz(); + return /* @__PURE__ */ L.jsx(Fy, { children: /* @__PURE__ */ L.jsx( ge.div, { ...d, className: "chakra-modal__content-container", __css: h, children: /* @__PURE__ */ L.jsx( - mz, + cz, { motionProps: o, direction: v, @@ -21324,14 +21556,14 @@ var mz = ge(gb), vz = _e( ) }); } ); -vz.displayName = "DrawerContent"; -var gz = _e( +uz.displayName = "DrawerContent"; +var dz = _e( (e, t) => { const { className: r, ...n } = e, o = Xe("chakra-modal__footer", r), i = { display: "flex", alignItems: "center", justifyContent: "flex-end", - ...qn().footer + ...Xn().footer }; return /* @__PURE__ */ L.jsx( ge.footer, @@ -21344,14 +21576,14 @@ var gz = _e( ); } ); -gz.displayName = "ModalFooter"; -var bz = _e( +dz.displayName = "ModalFooter"; +var fz = _e( (e, t) => { - const { className: r, ...n } = e, { headerId: o, setHeaderMounted: a } = Sn(); + const { className: r, ...n } = e, { headerId: o, setHeaderMounted: a } = wn(); Fe(() => (a(!0), () => a(!1)), [a]); const i = Xe("chakra-modal__header", r), l = { flex: 0, - ...qn().header + ...Xn().header }; return /* @__PURE__ */ L.jsx( ge.header, @@ -21365,8 +21597,8 @@ var bz = _e( ); } ); -bz.displayName = "ModalHeader"; -var yz = ge(Cn.div), xz = _e( +fz.displayName = "ModalHeader"; +var pz = ge(_n.div), hz = _e( (e, t) => { const { className: r, transition: n, motionProps: o, ...a } = e, i = Xe("chakra-modal__overlay", r), l = { pos: "fixed", @@ -21374,10 +21606,10 @@ var yz = ge(Cn.div), xz = _e( top: "0", w: "100vw", h: "100vh", - ...qn().overlay - }, { motionPreset: c } = Sn(), d = o || (c === "none" ? {} : mb); + ...Xn().overlay + }, { motionPreset: c } = wn(), d = o || (c === "none" ? {} : fb); return /* @__PURE__ */ L.jsx( - yz, + pz, { ...d, __css: l, @@ -21388,11 +21620,11 @@ var yz = ge(Cn.div), xz = _e( ); } ); -xz.displayName = "ModalOverlay"; -var Sz = _e((e, t) => { - const { className: r, ...n } = e, { bodyId: o, setBodyMounted: a } = Sn(); +hz.displayName = "ModalOverlay"; +var mz = _e((e, t) => { + const { className: r, ...n } = e, { bodyId: o, setBodyMounted: a } = wn(); Fe(() => (a(!0), () => a(!1)), [a]); - const i = Xe("chakra-modal__body", r), s = qn(); + const i = Xe("chakra-modal__body", r), s = Xn(); return /* @__PURE__ */ L.jsx( ge.div, { @@ -21404,17 +21636,17 @@ var Sz = _e((e, t) => { } ); }); -Sz.displayName = "ModalBody"; -var wz = _e( +mz.displayName = "ModalBody"; +var vz = _e( (e, t) => { - const { onClick: r, className: n, ...o } = e, { onClose: a } = Sn(), i = Xe("chakra-modal__close-btn", n), s = qn(); + const { onClick: r, className: n, ...o } = e, { onClose: a } = wn(), i = Xe("chakra-modal__close-btn", n), s = Xn(); return /* @__PURE__ */ L.jsx( - pb, + ub, { ref: t, __css: s.closeButton, className: i, - onClick: Rt(r, (l) => { + onClick: $t(r, (l) => { l.stopPropagation(), a(); }), ...o @@ -21422,14 +21654,14 @@ var wz = _e( ); } ); -wz.displayName = "ModalCloseButton"; -var ar = (e) => e ? "" : void 0, _o = (e) => e ? !0 : void 0, kn = (...e) => e.filter(Boolean).join(" "); -function ko(...e) { +vz.displayName = "ModalCloseButton"; +var ar = (e) => e ? "" : void 0, ko = (e) => e ? !0 : void 0, En = (...e) => e.filter(Boolean).join(" "); +function Eo(...e) { return function(r) { e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented)); }; } -function Cz(e) { +function gz(e) { return { root: `slider-root-${e}`, getThumb: (t) => `slider-thumb-${e}-${t}`, @@ -21440,12 +21672,12 @@ function Cz(e) { output: `slider-output-${e}` }; } -function ca(e) { +function da(e) { const { orientation: t, vertical: r, horizontal: n } = e; return t === "vertical" ? r : n; } var os = { width: 0, height: 0 }, ji = (e) => e || os; -function zy(e) { +function Ny(e) { const { orientation: t, thumbPercents: r, thumbRects: n, isReversed: o } = e, a = (h) => { var v; const b = (v = n[h]) != null ? v : os; @@ -21456,7 +21688,7 @@ function zy(e) { MozUserSelect: "none", msUserSelect: "none", touchAction: "none", - ...ca({ + ...da({ orientation: t, vertical: { bottom: `calc(${r[h]}% - ${b.height / 2}px)` @@ -21478,7 +21710,7 @@ function zy(e) { WebkitTapHighlightColor: "rgba(0,0,0,0)", userSelect: "none", outline: 0, - ...ca({ + ...da({ orientation: t, vertical: i ? { paddingLeft: i.width / 2, @@ -21491,7 +21723,7 @@ function zy(e) { }) }, l = { position: "absolute", - ...ca({ + ...da({ orientation: t, vertical: { left: "50%", @@ -21509,7 +21741,7 @@ function zy(e) { !c && o && (f = 100 - f); const p = Math.abs(d[d.length - 1] - d[0]), m = { ...l, - ...ca({ + ...da({ orientation: t, vertical: o ? { height: `${p}%`, top: `${f}%` } : { height: `${p}%`, bottom: `${f}%` }, horizontal: o ? { width: `${p}%`, right: `${f}%` } : { width: `${p}%`, left: `${f}%` } @@ -21517,84 +21749,84 @@ function zy(e) { }; return { trackStyle: l, innerTrackStyle: m, rootStyle: s, getThumbStyle: a }; } -function Vy(e) { +function jy(e) { const { isReversed: t, direction: r, orientation: n } = e; return r === "ltr" || n === "vertical" ? t : !t; } -function _z(e, t, r, n) { +function bz(e, t, r, n) { return e.addEventListener(t, r, n), () => { e.removeEventListener(t, r, n); }; } -function kz(e) { - const t = Pz(e); +function yz(e) { + const t = Sz(e); return typeof t.PointerEvent < "u" && e instanceof t.PointerEvent ? e.pointerType === "mouse" : e instanceof t.MouseEvent; } -function Ly(e) { +function By(e) { return !!e.touches; } -function Ez(e) { - return Ly(e) && e.touches.length > 1; +function xz(e) { + return By(e) && e.touches.length > 1; } -function Pz(e) { +function Sz(e) { var t; return (t = e.view) != null ? t : window; } -function Tz(e, t = "page") { +function wz(e, t = "page") { const r = e.touches[0] || e.changedTouches[0]; return { x: r[`${t}X`], y: r[`${t}Y`] }; } -function Az(e, t = "page") { +function Cz(e, t = "page") { return { x: e[`${t}X`], y: e[`${t}Y`] }; } -function Wy(e, t = "page") { - return Ly(e) ? Tz(e, t) : Az(e, t); +function zy(e, t = "page") { + return By(e) ? wz(e, t) : Cz(e, t); } -function Oz(e) { +function _z(e) { return (t) => { - const r = kz(t); + const r = yz(t); (!r || r && t.button === 0) && e(t); }; } -function $z(e, t = !1) { +function kz(e, t = !1) { function r(o) { - e(o, { point: Wy(o) }); + e(o, { point: zy(o) }); } - return t ? Oz(r) : r; + return t ? _z(r) : r; } function as(e, t, r, n) { - return _z(e, t, $z(r, t === "pointerdown"), n); + return bz(e, t, kz(r, t === "pointerdown"), n); } -var Rz = Object.defineProperty, Dz = (e, t, r) => t in e ? Rz(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hr = (e, t, r) => (Dz(e, typeof t != "symbol" ? t + "" : t, r), r), Mz = class { +var Ez = Object.defineProperty, Pz = (e, t, r) => t in e ? Ez(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hr = (e, t, r) => (Pz(e, typeof t != "symbol" ? t + "" : t, r), r), Tz = class { constructor(e, t, r) { hr(this, "history", []), hr(this, "startEvent", null), hr(this, "lastEvent", null), hr(this, "lastEventInfo", null), hr(this, "handlers", {}), hr(this, "removeListeners", () => { }), hr(this, "threshold", 3), hr(this, "win"), hr(this, "updatePoint", () => { if (!(this.lastEvent && this.lastEventInfo)) return; - const s = Cc(this.lastEventInfo, this.history), l = this.startEvent !== null, c = jz(s.offset, { x: 0, y: 0 }) >= this.threshold; + const s = Sc(this.lastEventInfo, this.history), l = this.startEvent !== null, c = $z(s.offset, { x: 0, y: 0 }) >= this.threshold; if (!l && !c) return; - const { timestamp: u } = Tp(); + const { timestamp: u } = Pp(); this.history.push({ ...s.point, timestamp: u }); const { onStart: d, onMove: f } = this.handlers; l || (d == null || d(this.lastEvent, s), this.startEvent = this.lastEvent), f == null || f(this.lastEvent, s); }), hr(this, "onPointerMove", (s, l) => { - this.lastEvent = s, this.lastEventInfo = l, kR.update(this.updatePoint, !0); + this.lastEvent = s, this.lastEventInfo = l, S$.update(this.updatePoint, !0); }), hr(this, "onPointerUp", (s, l) => { - const c = Cc(l, this.history), { onEnd: u, onSessionEnd: d } = this.handlers; + const c = Sc(l, this.history), { onEnd: u, onSessionEnd: d } = this.handlers; d == null || d(s, c), this.end(), !(!u || !this.startEvent) && (u == null || u(s, c)); }); var n; - if (this.win = (n = e.view) != null ? n : window, Ez(e)) + if (this.win = (n = e.view) != null ? n : window, xz(e)) return; this.handlers = t, r && (this.threshold = r), e.stopPropagation(), e.preventDefault(); - const o = { point: Wy(e) }, { timestamp: a } = Tp(); + const o = { point: zy(e) }, { timestamp: a } = Pp(); this.history = [{ ...o.point, timestamp: a }]; const { onSessionStart: i } = t; - i == null || i(e, Cc(o, this.history)), this.removeListeners = Nz( + i == null || i(e, Sc(o, this.history)), this.removeListeners = Rz( as(this.win, "pointermove", this.onPointerMove), as(this.win, "pointerup", this.onPointerUp), as(this.win, "pointercancel", this.onPointerUp) @@ -21605,27 +21837,27 @@ var Rz = Object.defineProperty, Dz = (e, t, r) => t in e ? Rz(e, t, { enumerable } end() { var e; - (e = this.removeListeners) == null || e.call(this), ER.update(this.updatePoint); + (e = this.removeListeners) == null || e.call(this), w$.update(this.updatePoint); } }; -function gm(e, t) { +function vm(e, t) { return { x: e.x - t.x, y: e.y - t.y }; } -function Cc(e, t) { +function Sc(e, t) { return { point: e.point, - delta: gm(e.point, t[t.length - 1]), - offset: gm(e.point, t[0]), - velocity: Fz(t, 0.1) + delta: vm(e.point, t[t.length - 1]), + offset: vm(e.point, t[0]), + velocity: Oz(t, 0.1) }; } -var Iz = (e) => e * 1e3; -function Fz(e, t) { +var Az = (e) => e * 1e3; +function Oz(e, t) { if (e.length < 2) return { x: 0, y: 0 }; let r = e.length - 1, n = null; const o = e[e.length - 1]; - for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > Iz(t))); ) + for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > Az(t))); ) r--; if (!n) return { x: 0, y: 0 }; @@ -21638,29 +21870,29 @@ function Fz(e, t) { }; return i.x === 1 / 0 && (i.x = 0), i.y === 1 / 0 && (i.y = 0), i; } -function Nz(...e) { +function Rz(...e) { return (t) => e.reduce((r, n) => n(r), t); } -function _c(e, t) { +function wc(e, t) { return Math.abs(e - t); } -function bm(e) { +function gm(e) { return "x" in e && "y" in e; } -function jz(e, t) { +function $z(e, t) { if (typeof e == "number" && typeof t == "number") - return _c(e, t); - if (bm(e) && bm(t)) { - const r = _c(e.x, t.x), n = _c(e.y, t.y); + return wc(e, t); + if (gm(e) && gm(t)) { + const r = wc(e.x, t.x), n = wc(e.y, t.y); return Math.sqrt(r ** 2 + n ** 2); } return 0; } -function Uy(e) { +function Vy(e) { const t = be(null); return t.current = e, t; } -function Hy(e, t) { +function Ly(e, t) { const { onPan: r, onPanStart: n, @@ -21668,7 +21900,7 @@ function Hy(e, t) { onPanSessionStart: a, onPanSessionEnd: i, threshold: s - } = t, l = !!(r || n || o || a || i), c = be(null), u = Uy({ + } = t, l = !!(r || n || o || a || i), c = be(null), u = Vy({ onSessionStart: a, onSessionEnd: i, onStart: n, @@ -21685,7 +21917,7 @@ function Hy(e, t) { if (!d || !l) return; function f(p) { - c.current = new Mz(p, u.current, s); + c.current = new Tz(p, u.current, s); } return as(d, "pointerdown", f); }, [e, l, u, s]), Fe(() => () => { @@ -21693,7 +21925,7 @@ function Hy(e, t) { (d = c.current) == null || d.end(), c.current = null; }, []); } -function Bz(e, t) { +function Dz(e, t) { if (!e) { t(void 0); return; @@ -21713,8 +21945,8 @@ function Bz(e, t) { }); return n.observe(e, { box: "border-box" }), () => n.unobserve(e); } -var zz = globalThis != null && globalThis.document ? Ds : Fe; -function Vz(e, t) { +var Mz = globalThis != null && globalThis.document ? $s : Fe; +function Iz(e, t) { var r, n; if (!e || !e.parentElement) return; @@ -21725,14 +21957,14 @@ function Vz(e, t) { a.disconnect(); }; } -function Yy({ +function Wy({ getNodes: e, observeMutation: t = !0 }) { const [r, n] = Ye([]), [o, a] = Ye(0); - return zz(() => { + return Mz(() => { const i = e(), s = i.map( - (l, c) => Bz(l, (u) => { + (l, c) => Dz(l, (u) => { n((d) => [ ...d.slice(0, c), u, @@ -21743,7 +21975,7 @@ function Yy({ if (t) { const l = i[0]; s.push( - Vz(l, () => { + Iz(l, () => { a((c) => c + 1); }) ); @@ -21755,19 +21987,19 @@ function Yy({ }; }, [o]), r; } -function Lz(e) { +function Fz(e) { return typeof e == "object" && e !== null && "current" in e; } -function Wz(e) { - const [t] = Yy({ +function Nz(e) { + const [t] = Wy({ observeMutation: !1, getNodes() { - return [Lz(e) ? e.current : e]; + return [Fz(e) ? e.current : e]; } }); return t; } -function Uz(e) { +function jz(e) { const { min: t = 0, max: r = 100, @@ -21788,14 +22020,14 @@ function Uz(e) { "aria-label": b, "aria-labelledby": y, name: S, - focusThumbOnChange: k = !0, + focusThumbOnChange: _ = !0, minStepsBetweenThumbs: w = 0, ...M - } = e, P = Jt(f), I = Jt(p), z = Jt(h), j = Vy({ + } = e, P = Jt(f), I = Jt(p), z = Jt(h), j = jy({ isReversed: i, direction: s, orientation: l - }), [X, ne] = yd({ + }), [X, ne] = bd({ value: o, defaultValue: a ?? [25, 75], onChange: n @@ -21804,45 +22036,45 @@ function Uz(e) { throw new TypeError( `[range-slider] You passed an invalid value for \`value\` or \`defaultValue\`, expected \`Array\` but got \`${typeof X}\`` ); - const [J, Q] = Ye(!1), [ee, oe] = Ye(!1), [D, ce] = Ye(-1), fe = !(u || d), F = be(X), N = X.map((G) => Sa(G, t, r)), V = w * m, T = Hz(N, t, r, V), O = be({ + const [J, Q] = Ye(!1), [ee, oe] = Ye(!1), [D, ce] = Ye(-1), fe = !(u || d), F = be(X), N = X.map((G) => Ca(G, t, r)), V = w * m, T = Bz(N, t, r, V), A = be({ eventSource: null, value: [], valueBounds: [] }); - O.current.value = N, O.current.valueBounds = T; - const B = N.map((G) => r - G + t), H = (j ? B : N).map((G) => Ts(G, t, r)), A = l === "vertical", Z = be(null), Y = be(null), ae = Yy({ + A.current.value = N, A.current.valueBounds = T; + const B = N.map((G) => r - G + t), H = (j ? B : N).map((G) => Ps(G, t, r)), O = l === "vertical", Z = be(null), Y = be(null), ae = Wy({ getNodes() { const G = Y.current, ie = G == null ? void 0 : G.querySelectorAll("[role=slider]"); return ie ? Array.from(ie) : []; } - }), $ = _r(), he = Cz(c ?? $), le = q( + }), R = _r(), he = gz(c ?? R), le = q( (G) => { var ie, xe; if (!Z.current) return; - O.current.eventSource = "pointer"; - const Ce = Z.current.getBoundingClientRect(), { clientX: He, clientY: wt } = (xe = (ie = G.touches) == null ? void 0 : ie[0]) != null ? xe : G, Ze = A ? Ce.bottom - wt : He - Ce.left, nt = A ? Ce.height : Ce.width; - let Wr = Ze / nt; - return j && (Wr = 1 - Wr), Sb(Wr, t, r); + A.current.eventSource = "pointer"; + const Ce = Z.current.getBoundingClientRect(), { clientX: He, clientY: wt } = (xe = (ie = G.touches) == null ? void 0 : ie[0]) != null ? xe : G, Ze = O ? Ce.bottom - wt : He - Ce.left, nt = O ? Ce.height : Ce.width; + let Ur = Ze / nt; + return j && (Ur = 1 - Ur), bb(Ur, t, r); }, - [A, j, r, t] - ), Re = (r - t) / 10, ye = m || (r - t) / 100, we = gt( + [O, j, r, t] + ), De = (r - t) / 10, ye = m || (r - t) / 100, we = gt( () => ({ setValueAtIndex(G, ie) { if (!fe) return; - const xe = O.current.valueBounds[G]; - ie = parseFloat(pu(ie, xe.min, ye)), ie = Sa(ie, xe.min, xe.max); - const Ce = [...O.current.value]; + const xe = A.current.valueBounds[G]; + ie = parseFloat(du(ie, xe.min, ye)), ie = Ca(ie, xe.min, xe.max); + const Ce = [...A.current.value]; Ce[G] = ie, ne(Ce); }, setActiveIndex: ce, stepUp(G, ie = ye) { - const xe = O.current.value[G], Ce = j ? xe - ie : xe + ie; + const xe = A.current.value[G], Ce = j ? xe - ie : xe + ie; we.setValueAtIndex(G, Ce); }, stepDown(G, ie = ye) { - const xe = O.current.value[G], Ce = j ? xe + ie : xe - ie; + const xe = A.current.value[G], Ce = j ? xe + ie : xe - ie; we.setValueAtIndex(G, Ce); }, reset() { @@ -21857,8 +22089,8 @@ function Uz(e) { ArrowUp: () => we.stepUp(D), ArrowLeft: () => we.stepDown(D), ArrowDown: () => we.stepDown(D), - PageUp: () => we.stepUp(D, Re), - PageDown: () => we.stepDown(D, Re), + PageUp: () => we.stepUp(D, De), + PageDown: () => we.stepDown(D, De), Home: () => { const { min: He } = T[D]; we.setValueAtIndex(D, He); @@ -21868,11 +22100,11 @@ function Uz(e) { we.setValueAtIndex(D, He); } }[ie]; - Ce && (G.preventDefault(), G.stopPropagation(), Ce(G), O.current.eventSource = "keyboard"); + Ce && (G.preventDefault(), G.stopPropagation(), Ce(G), A.current.eventSource = "keyboard"); }, - [we, D, Re, T] - ), { getThumbStyle: ke, rootStyle: dt, trackStyle: rt, innerTrackStyle: Me } = gt( - () => zy({ + [we, D, De, T] + ), { getThumbStyle: ke, rootStyle: dt, trackStyle: rt, innerTrackStyle: Ie } = gt( + () => Ny({ isReversed: j, orientation: l, thumbRects: ae, @@ -21883,37 +22115,37 @@ function Uz(e) { (G) => { var ie; const xe = G ?? D; - if (xe !== -1 && k) { + if (xe !== -1 && _) { const Ce = he.getThumb(xe), He = (ie = Y.current) == null ? void 0 : ie.ownerDocument.getElementById(Ce); He && setTimeout(() => He.focus()); } }, - [k, D, he] + [_, D, he] ); - Bo(() => { - O.current.eventSource === "keyboard" && (I == null || I(O.current.value)); + zo(() => { + A.current.eventSource === "keyboard" && (I == null || I(A.current.value)); }, [N, I]); - const Ae = (G) => { - const ie = le(G) || 0, xe = O.current.value.map( + const Oe = (G) => { + const ie = le(G) || 0, xe = A.current.value.map( (nt) => Math.abs(nt - ie) ), Ce = Math.min(...xe); let He = xe.indexOf(Ce); const wt = xe.filter( (nt) => nt === Ce ); - wt.length > 1 && ie > O.current.value[He] && (He = He + wt.length - 1), ce(He), we.setValueAtIndex(He, ie), se(He); + wt.length > 1 && ie > A.current.value[He] && (He = He + wt.length - 1), ce(He), we.setValueAtIndex(He, ie), se(He); }, Ot = (G) => { if (D == -1) return; const ie = le(G) || 0; ce(D), we.setValueAtIndex(D, ie), se(D); }; - Hy(Y, { + Ly(Y, { onPanSessionStart(G) { - fe && (Q(!0), Ae(G), P == null || P(O.current.value)); + fe && (Q(!0), Oe(G), P == null || P(A.current.value)); }, onPanSessionEnd() { - fe && (Q(!1), I == null || I(O.current.value)); + fe && (Q(!1), I == null || I(A.current.value)); }, onPan(G) { fe && Ot(G); @@ -21926,7 +22158,7 @@ function Uz(e) { id: he.root, ref: St(ie, Y), tabIndex: -1, - "aria-disabled": _o(u), + "aria-disabled": ko(u), "data-focused": ar(ee), style: { ...G.style, ...dt } }), @@ -21940,18 +22172,18 @@ function Uz(e) { style: { ...G.style, ...rt } }), [u, rt, he] - ), zr = q( + ), Vr = q( (G = {}, ie = null) => ({ ...G, ref: ie, id: he.innerTrack, style: { ...G.style, - ...Me + ...Ie } }), - [Me, he] - ), Vr = q( + [Ie, he] + ), Lr = q( (G, ie = null) => { var xe; const { index: Ce, ...He } = G, wt = N[Ce]; @@ -21972,16 +22204,16 @@ function Uz(e) { "aria-valuemax": Ze.max, "aria-valuenow": wt, "aria-orientation": l, - "aria-disabled": _o(u), - "aria-readonly": _o(d), + "aria-disabled": ko(u), + "aria-readonly": ko(d), "aria-label": b == null ? void 0 : b[Ce], "aria-labelledby": b != null && b[Ce] || y == null ? void 0 : y[Ce], style: { ...G.style, ...ke(Ce) }, - onKeyDown: ko(G.onKeyDown, ht), - onFocus: ko(G.onFocus, () => { + onKeyDown: Eo(G.onKeyDown, ht), + onFocus: Eo(G.onFocus, () => { oe(!0), ce(Ce); }), - onBlur: ko(G.onBlur, () => { + onBlur: Eo(G.onBlur, () => { oe(!1), ce(-1); }) }; @@ -22004,7 +22236,7 @@ function Uz(e) { ht, oe ] - ), Lr = q( + ), Wr = q( (G = {}, ie = null) => ({ ...G, ref: ie, @@ -22016,12 +22248,12 @@ function Uz(e) { ), te = q( (G, ie = null) => { const { value: xe, ...Ce } = G, He = !(xe < t || xe > r), wt = xe >= N[0] && xe <= N[N.length - 1]; - let Ze = Ts(xe, t, r); + let Ze = Ps(xe, t, r); Ze = j ? 100 - Ze : Ze; const nt = { position: "absolute", pointerEvents: "none", - ...ca({ + ...da({ orientation: l, vertical: { bottom: `${Ze}%` }, horizontal: { left: `${Ze}%` } @@ -22069,37 +22301,37 @@ function Uz(e) { actions: we, getRootProps: xt, getTrackProps: lt, - getInnerTrackProps: zr, - getThumbProps: Vr, + getInnerTrackProps: Vr, + getThumbProps: Lr, getMarkerProps: te, getInputProps: ve, - getOutputProps: Lr + getOutputProps: Wr }; } -function Hz(e, t, r, n) { +function Bz(e, t, r, n) { return e.map((o, a) => { const i = a === 0 ? t : e[a - 1] + n, s = a === e.length - 1 ? r : e[a + 1] - n; return { min: i, max: s }; }); } -var [Yz, sl] = Nt({ +var [zz, al] = Nt({ name: "SliderContext", errorMessage: "useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within " -}), [qz, ll] = Nt({ +}), [Vz, il] = Nt({ name: "RangeSliderStylesContext", errorMessage: `useRangeSliderStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Gz = _e( +}), Lz = _e( function(t, r) { const n = { orientation: "horizontal", ...t - }, o = jo("Slider", n), a = jr(n), { direction: i } = an(); + }, o = Bo("Slider", n), a = Br(n), { direction: i } = sn(); a.direction = i; - const { getRootProps: s, ...l } = Uz(a), c = gt( + const { getRootProps: s, ...l } = jz(a), c = gt( () => ({ ...l, name: n.name }), [l, n.name] ); - return /* @__PURE__ */ L.jsx(Yz, { value: c, children: /* @__PURE__ */ L.jsx(qz, { value: o, children: /* @__PURE__ */ L.jsx( + return /* @__PURE__ */ L.jsx(zz, { value: c, children: /* @__PURE__ */ L.jsx(Vz, { value: o, children: /* @__PURE__ */ L.jsx( ge.div, { ...s({}, r), @@ -22110,15 +22342,15 @@ var [Yz, sl] = Nt({ ) }) }); } ); -Gz.displayName = "RangeSlider"; -var Xz = _e( +Lz.displayName = "RangeSlider"; +var Wz = _e( function(t, r) { - const { getThumbProps: n, getInputProps: o, name: a } = sl(), i = ll(), s = n(t, r); + const { getThumbProps: n, getInputProps: o, name: a } = al(), i = il(), s = n(t, r); return /* @__PURE__ */ L.jsxs( ge.div, { ...s, - className: kn("chakra-slider__thumb", t.className), + className: En("chakra-slider__thumb", t.className), __css: i.thumb, children: [ s.children, @@ -22128,24 +22360,24 @@ var Xz = _e( ); } ); -Xz.displayName = "RangeSliderThumb"; -var Kz = _e( +Wz.displayName = "RangeSliderThumb"; +var Uz = _e( function(t, r) { - const { getTrackProps: n } = sl(), o = ll(), a = n(t, r); + const { getTrackProps: n } = al(), o = il(), a = n(t, r); return /* @__PURE__ */ L.jsx( ge.div, { ...a, - className: kn("chakra-slider__track", t.className), + className: En("chakra-slider__track", t.className), __css: o.track, "data-testid": "chakra-range-slider-track" } ); } ); -Kz.displayName = "RangeSliderTrack"; -var Zz = _e(function(t, r) { - const { getInnerTrackProps: n } = sl(), o = ll(), a = n(t, r); +Uz.displayName = "RangeSliderTrack"; +var Hz = _e(function(t, r) { + const { getInnerTrackProps: n } = al(), o = il(), a = n(t, r); return /* @__PURE__ */ L.jsx( ge.div, { @@ -22155,22 +22387,22 @@ var Zz = _e(function(t, r) { } ); }); -Zz.displayName = "RangeSliderFilledTrack"; -var Jz = _e( +Hz.displayName = "RangeSliderFilledTrack"; +var Yz = _e( function(t, r) { - const { getMarkerProps: n } = sl(), o = ll(), a = n(t, r); + const { getMarkerProps: n } = al(), o = il(), a = n(t, r); return /* @__PURE__ */ L.jsx( ge.div, { ...a, - className: kn("chakra-slider__marker", t.className), + className: En("chakra-slider__marker", t.className), __css: o.mark } ); } ); -Jz.displayName = "RangeSliderMark"; -function Qz(e) { +Yz.displayName = "RangeSliderMark"; +function qz(e) { var t; const { min: r = 0, @@ -22191,18 +22423,18 @@ function Qz(e) { "aria-valuetext": b, "aria-label": y, "aria-labelledby": S, - name: k, + name: _, focusThumbOnChange: w = !0, ...M - } = e, P = Jt(p), I = Jt(m), z = Jt(v), j = Vy({ + } = e, P = Jt(p), I = Jt(m), z = Jt(v), j = jy({ isReversed: s, direction: l, orientation: c - }), [X, ne] = yd({ + }), [X, ne] = bd({ value: a, - defaultValue: i ?? tV(r, n), + defaultValue: i ?? Xz(r, n), onChange: o - }), [J, Q] = Ye(!1), [ee, oe] = Ye(!1), D = !(d || f), ce = (n - r) / 10, fe = h || (n - r) / 100, F = Sa(X, r, n), N = n - F + r, T = Ts(j ? N : F, r, n), O = c === "vertical", B = Uy({ + }), [J, Q] = Ye(!1), [ee, oe] = Ye(!1), D = !(d || f), ce = (n - r) / 10, fe = h || (n - r) / 100, F = Ca(X, r, n), N = n - F + r, T = Ps(j ? N : F, r, n), A = c === "vertical", B = Vy({ min: r, max: n, step: h, @@ -22210,30 +22442,30 @@ function Qz(e) { value: F, isInteractive: D, isReversed: j, - isVertical: O, + isVertical: A, eventSource: null, focusThumbOnChange: w, orientation: c - }), C = be(null), H = be(null), A = be(null), Z = _r(), Y = u ?? Z, [ae, $] = [`slider-thumb-${Y}`, `slider-track-${Y}`], Se = q( + }), C = be(null), H = be(null), O = be(null), Z = _r(), Y = u ?? Z, [ae, R] = [`slider-thumb-${Y}`, `slider-track-${Y}`], Se = q( (te) => { var ve, kr; if (!C.current) return; const G = B.current; G.eventSource = "pointer"; - const ie = C.current.getBoundingClientRect(), { clientX: xe, clientY: Ce } = (kr = (ve = te.touches) == null ? void 0 : ve[0]) != null ? kr : te, He = O ? ie.bottom - Ce : xe - ie.left, wt = O ? ie.height : ie.width; + const ie = C.current.getBoundingClientRect(), { clientX: xe, clientY: Ce } = (kr = (ve = te.touches) == null ? void 0 : ve[0]) != null ? kr : te, He = A ? ie.bottom - Ce : xe - ie.left, wt = A ? ie.height : ie.width; let Ze = He / wt; j && (Ze = 1 - Ze); - let nt = Sb(Ze, G.min, G.max); + let nt = bb(Ze, G.min, G.max); return G.step && (nt = parseFloat( - pu(nt, G.min, G.step) - )), nt = Sa(nt, G.min, G.max), nt; + du(nt, G.min, G.step) + )), nt = Ca(nt, G.min, G.max), nt; }, - [O, j, B] + [A, j, B] ), he = q( (te) => { const ve = B.current; - ve.isInteractive && (te = parseFloat(pu(te, ve.min, fe)), te = Sa(te, ve.min, ve.max), ne(te)); + ve.isInteractive && (te = parseFloat(du(te, ve.min, fe)), te = Ca(te, ve.min, ve.max), ne(te)); }, [fe, ne, B] ), le = gt( @@ -22254,7 +22486,7 @@ function Qz(e) { } }), [he, j, F, fe, i] - ), Re = q( + ), De = q( (te) => { const ve = B.current, G = { ArrowRight: () => le.stepUp(), @@ -22269,32 +22501,32 @@ function Qz(e) { G && (te.preventDefault(), te.stopPropagation(), G(te), ve.eventSource = "keyboard"); }, [le, he, ce, B] - ), ye = (t = z == null ? void 0 : z(F)) != null ? t : b, we = Wz(H), { getThumbStyle: ht, rootStyle: ke, trackStyle: dt, innerTrackStyle: rt } = gt(() => { + ), ye = (t = z == null ? void 0 : z(F)) != null ? t : b, we = Nz(H), { getThumbStyle: ht, rootStyle: ke, trackStyle: dt, innerTrackStyle: rt } = gt(() => { const te = B.current, ve = we ?? { width: 0, height: 0 }; - return zy({ + return Ny({ isReversed: j, orientation: te.orientation, thumbRects: [ve], thumbPercents: [T] }); - }, [j, we, T, B]), Me = q(() => { + }, [j, we, T, B]), Ie = q(() => { B.current.focusThumbOnChange && setTimeout(() => { var ve; return (ve = H.current) == null ? void 0 : ve.focus(); }); }, [B]); - Bo(() => { + zo(() => { const te = B.current; - Me(), te.eventSource === "keyboard" && (I == null || I(te.value)); + Ie(), te.eventSource === "keyboard" && (I == null || I(te.value)); }, [F, I]); function se(te) { const ve = Se(te); ve != null && ve !== B.current.value && ne(ve); } - Hy(A, { + Ly(O, { onPanSessionStart(te) { const ve = B.current; - ve.isInteractive && (Q(!0), Me(), se(te), P == null || P(ve.value)); + ve.isInteractive && (Q(!0), Ie(), se(te), P == null || P(ve.value)); }, onPanSessionEnd() { const te = B.current; @@ -22304,13 +22536,13 @@ function Qz(e) { B.current.isInteractive && se(te); } }); - const Ae = q( + const Oe = q( (te = {}, ve = null) => ({ ...te, ...M, - ref: St(ve, A), + ref: St(ve, O), tabIndex: -1, - "aria-disabled": _o(d), + "aria-disabled": ko(d), "data-focused": ar(ee), style: { ...te.style, @@ -22322,14 +22554,14 @@ function Qz(e) { (te = {}, ve = null) => ({ ...te, ref: St(ve, C), - id: $, + id: R, "data-disabled": ar(d), style: { ...te.style, ...dt } }), - [d, $, dt] + [d, R, dt] ), xt = q( (te = {}, ve = null) => ({ ...te, @@ -22353,17 +22585,17 @@ function Qz(e) { "aria-valuemax": n, "aria-valuenow": F, "aria-orientation": c, - "aria-disabled": _o(d), - "aria-readonly": _o(f), + "aria-disabled": ko(d), + "aria-readonly": ko(f), "aria-label": y, "aria-labelledby": y ? void 0 : S, style: { ...te.style, ...ht(0) }, - onKeyDown: ko(te.onKeyDown, Re), - onFocus: ko(te.onFocus, () => oe(!0)), - onBlur: ko(te.onBlur, () => oe(!1)) + onKeyDown: Eo(te.onKeyDown, De), + onFocus: Eo(te.onFocus, () => oe(!0)), + onBlur: Eo(te.onBlur, () => oe(!1)) }), [ D, @@ -22379,14 +22611,14 @@ function Qz(e) { y, S, ht, - Re + De ] - ), zr = q( + ), Vr = q( (te, ve = null) => { - const kr = !(te.value < r || te.value > n), G = F >= te.value, ie = Ts(te.value, r, n), xe = { + const kr = !(te.value < r || te.value > n), G = F >= te.value, ie = Ps(te.value, r, n), xe = { position: "absolute", pointerEvents: "none", - ...eV({ + ...Gz({ orientation: c, vertical: { bottom: j ? `${100 - ie}%` : `${ie}%` @@ -22411,55 +22643,55 @@ function Qz(e) { }; }, [d, j, n, r, c, F] - ), Vr = q( + ), Lr = q( (te = {}, ve = null) => ({ ...te, ref: ve, type: "hidden", value: F, - name: k + name: _ }), - [k, F] + [_, F] ); return { state: { value: F, isFocused: ee, isDragging: J }, actions: le, - getRootProps: Ae, + getRootProps: Oe, getTrackProps: Ot, getInnerTrackProps: xt, getThumbProps: lt, - getMarkerProps: zr, - getInputProps: Vr + getMarkerProps: Vr, + getInputProps: Lr }; } -function eV(e) { +function Gz(e) { const { orientation: t, vertical: r, horizontal: n } = e; return t === "vertical" ? r : n; } -function tV(e, t) { +function Xz(e, t) { return t < e ? e : e + (t - e) / 2; } -var [rV, cl] = Nt({ +var [Kz, sl] = Nt({ name: "SliderContext", hookName: "useSliderContext", providerName: "" -}), [nV, ul] = Nt({ +}), [Zz, ll] = Nt({ name: "SliderStylesContext", hookName: "useSliderStyles", providerName: "" -}), oV = _e((e, t) => { +}), Jz = _e((e, t) => { var r; const n = { ...e, orientation: (r = e == null ? void 0 : e.orientation) != null ? r : "horizontal" - }, o = jo("Slider", n), a = jr(n), { direction: i } = an(); + }, o = Bo("Slider", n), a = Br(n), { direction: i } = sn(); a.direction = i; - const { getInputProps: s, getRootProps: l, ...c } = Qz(a), u = l(), d = s({}, t); - return /* @__PURE__ */ L.jsx(rV, { value: c, children: /* @__PURE__ */ L.jsx(nV, { value: o, children: /* @__PURE__ */ L.jsxs( + const { getInputProps: s, getRootProps: l, ...c } = qz(a), u = l(), d = s({}, t); + return /* @__PURE__ */ L.jsx(Kz, { value: c, children: /* @__PURE__ */ L.jsx(Zz, { value: o, children: /* @__PURE__ */ L.jsxs( ge.div, { ...u, - className: kn("chakra-slider", n.className), + className: En("chakra-slider", n.className), __css: o.container, children: [ n.children, @@ -22468,58 +22700,58 @@ var [rV, cl] = Nt({ } ) }) }); }); -oV.displayName = "Slider"; -var aV = _e((e, t) => { - const { getThumbProps: r } = cl(), n = ul(), o = r(e, t); +Jz.displayName = "Slider"; +var Qz = _e((e, t) => { + const { getThumbProps: r } = sl(), n = ll(), o = r(e, t); return /* @__PURE__ */ L.jsx( ge.div, { ...o, - className: kn("chakra-slider__thumb", e.className), + className: En("chakra-slider__thumb", e.className), __css: n.thumb } ); }); -aV.displayName = "SliderThumb"; -var iV = _e((e, t) => { - const { getTrackProps: r } = cl(), n = ul(), o = r(e, t); +Qz.displayName = "SliderThumb"; +var eV = _e((e, t) => { + const { getTrackProps: r } = sl(), n = ll(), o = r(e, t); return /* @__PURE__ */ L.jsx( ge.div, { ...o, - className: kn("chakra-slider__track", e.className), + className: En("chakra-slider__track", e.className), __css: n.track } ); }); -iV.displayName = "SliderTrack"; -var sV = _e( +eV.displayName = "SliderTrack"; +var tV = _e( (e, t) => { - const { getInnerTrackProps: r } = cl(), n = ul(), o = r(e, t); + const { getInnerTrackProps: r } = sl(), n = ll(), o = r(e, t); return /* @__PURE__ */ L.jsx( ge.div, { ...o, - className: kn("chakra-slider__filled-track", e.className), + className: En("chakra-slider__filled-track", e.className), __css: n.filledTrack } ); } ); -sV.displayName = "SliderFilledTrack"; -var lV = _e((e, t) => { - const { getMarkerProps: r } = cl(), n = ul(), o = r(e, t); +tV.displayName = "SliderFilledTrack"; +var rV = _e((e, t) => { + const { getMarkerProps: r } = sl(), n = ll(), o = r(e, t); return /* @__PURE__ */ L.jsx( ge.div, { ...o, - className: kn("chakra-slider__marker", e.className), + className: En("chakra-slider__marker", e.className), __css: n.mark } ); }); -lV.displayName = "SliderMark"; -var cV = { +rV.displayName = "SliderMark"; +var nV = { exit: { scale: 0.85, opacity: 0, @@ -22536,14 +22768,14 @@ var cV = { scale: { duration: 0.2, ease: [0.175, 0.885, 0.4, 1.1] } } } -}, _u = (e) => { +}, Su = (e) => { var t; return ((t = e.current) == null ? void 0 : t.ownerDocument) || document; }, is = (e) => { var t, r; return ((r = (t = e.current) == null ? void 0 : t.ownerDocument) == null ? void 0 : r.defaultView) || window; }; -function uV(e = {}) { +function oV(e = {}) { const { openDelay: t = 0, closeDelay: r = 0, @@ -22564,21 +22796,21 @@ function uV(e = {}) { modifiers: b, isDisabled: y, gutter: S, - offset: k, + offset: _, direction: w, ...M - } = e, { isOpen: P, onOpen: I, onClose: z } = Cy({ + } = e, { isOpen: P, onOpen: I, onClose: z } = xy({ isOpen: f, defaultIsOpen: p, onOpen: l, onClose: c - }), { referenceRef: j, getPopperProps: X, getArrowInnerProps: ne, getArrowProps: J } = wy({ + }), { referenceRef: j, getPopperProps: X, getArrowInnerProps: ne, getArrowProps: J } = yy({ enabled: P, placement: u, arrowPadding: v, modifiers: b, gutter: S, - offset: k, + offset: _, direction: w }), Q = _r(), oe = `tooltip-${d ?? Q}`, D = be(null), ce = be(), fe = q(() => { ce.current && (clearTimeout(ce.current), ce.current = void 0); @@ -22586,36 +22818,38 @@ function uV(e = {}) { F.current && (clearTimeout(F.current), F.current = void 0); }, []), V = q(() => { N(), z(); - }, [z, N]), T = dV(D, V), O = q(() => { + }, [z, N]), T = aV(D, V), A = q(() => { if (!y && !ce.current) { P && T(); - const $ = is(D); - ce.current = $.setTimeout(I, t); + const R = is(D); + ce.current = R.setTimeout(I, t); } }, [T, y, P, I, t]), B = q(() => { fe(); - const $ = is(D); - F.current = $.setTimeout(V, r); + const R = is(D); + F.current = R.setTimeout(V, r); }, [r, V, fe]), C = q(() => { P && n && B(); }, [n, B, P]), H = q(() => { P && i && B(); - }, [i, B, P]), A = q( - ($) => { - P && $.key === "Escape" && B(); + }, [i, B, P]), O = q( + (R) => { + P && R.key === "Escape" && B(); }, [P, B] ); - wa( - () => _u(D), + _a( + () => Su(D), "keydown", - s ? A : void 0 - ), wa( + s ? O : void 0 + ), _a( () => { - const $ = D.current; - if (!$) + if (!a) + return null; + const R = D.current; + if (!R) return null; - const Se = ry($); + const Se = Qb(R); return Se.localName === "body" ? is(D) : Se; }, "scroll", @@ -22627,22 +22861,22 @@ function uV(e = {}) { y && (fe(), P && z()); }, [y, P, z, fe]), Fe(() => () => { fe(), N(); - }, [fe, N]), wa(() => D.current, "pointerleave", B); + }, [fe, N]), _a(() => D.current, "pointerleave", B); const Z = q( - ($ = {}, Se = null) => ({ - ...$, + (R = {}, Se = null) => ({ + ...R, ref: St(D, Se, j), - onPointerEnter: Rt($.onPointerEnter, (le) => { - le.pointerType !== "touch" && O(); + onPointerEnter: $t(R.onPointerEnter, (le) => { + le.pointerType !== "touch" && A(); }), - onClick: Rt($.onClick, C), - onPointerDown: Rt($.onPointerDown, H), - onFocus: Rt($.onFocus, O), - onBlur: Rt($.onBlur, B), + onClick: $t(R.onClick, C), + onPointerDown: $t(R.onPointerDown, H), + onFocus: $t(R.onFocus, A), + onBlur: $t(R.onBlur, B), "aria-describedby": P ? oe : void 0 }), [ - O, + A, B, H, P, @@ -22651,11 +22885,11 @@ function uV(e = {}) { j ] ), Y = q( - ($ = {}, Se = null) => X( + (R = {}, Se = null) => X( { - ...$, + ...R, style: { - ...$.style, + ...R.style, [Et.arrowSize.var]: m ? `${m}px` : void 0, [Et.arrowShadowColor.var]: h } @@ -22664,16 +22898,16 @@ function uV(e = {}) { ), [X, m, h] ), ae = q( - ($ = {}, Se = null) => { + (R = {}, Se = null) => { const he = { - ...$.style, + ...R.style, position: "relative", transformOrigin: Et.transformOrigin.varRef }; return { ref: Se, ...M, - ...$, + ...R, id: oe, role: "tooltip", style: he @@ -22683,7 +22917,7 @@ function uV(e = {}) { ); return { isOpen: P, - show: O, + show: A, hide: B, getTriggerProps: Z, getTooltipProps: ae, @@ -22692,31 +22926,31 @@ function uV(e = {}) { getArrowInnerProps: ne }; } -var kc = "chakra-ui:close-tooltip"; -function dV(e, t) { +var Cc = "chakra-ui:close-tooltip"; +function aV(e, t) { return Fe(() => { - const r = _u(e); - return r.addEventListener(kc, t), () => r.removeEventListener(kc, t); + const r = Su(e); + return r.addEventListener(Cc, t), () => r.removeEventListener(Cc, t); }, [t, e]), () => { - const r = _u(e), n = is(e); - r.dispatchEvent(new n.CustomEvent(kc)); + const r = Su(e), n = is(e); + r.dispatchEvent(new n.CustomEvent(Cc)); }; } -function fV(e, t = []) { +function iV(e, t = []) { const r = Object.assign({}, e); for (const n of t) n in r && delete r[n]; return r; } -function pV(e, t) { +function sV(e, t) { const r = {}; for (const n of t) n in e && (r[n] = e[n]); return r; } -var hV = ge(Cn.div), mV = _e((e, t) => { +var lV = ge(_n.div), cV = _e((e, t) => { var r, n; - const o = No("Tooltip", e), a = jr(e), i = an(), { + const o = jo("Tooltip", e), a = Br(e), i = sn(), { children: s, label: l, shouldWrapChildren: c, @@ -22732,10 +22966,10 @@ var hV = ge(Cn.div), mV = _e((e, t) => { } = a, S = (n = (r = m ?? h) != null ? r : f) != null ? n : v; if (S) { o.bg = S; - const X = Gk(i, "colors", S); + const X = Wk(i, "colors", S); o[Et.arrowBg.var] = X; } - const k = uV({ ...y, direction: i.direction }), w = typeof s == "string" || c; + const _ = oV({ ...y, direction: i.direction }), w = typeof s == "string" || c; let M; if (w) M = /* @__PURE__ */ L.jsx( @@ -22743,32 +22977,32 @@ var hV = ge(Cn.div), mV = _e((e, t) => { { display: "inline-block", tabIndex: 0, - ...k.getTriggerProps(), + ..._.getTriggerProps(), children: s } ); else { - const X = Ms.only(s); + const X = Ds.only(s); M = Ka( X, - k.getTriggerProps(X.props, X.ref) + _.getTriggerProps(X.props, X.ref) ); } - const P = !!u, I = k.getTooltipProps({}, t), z = P ? fV(I, ["role", "id"]) : I, j = pV(I, ["role", "id"]); + const P = !!u, I = _.getTooltipProps({}, t), z = P ? iV(I, ["role", "id"]) : I, j = sV(I, ["role", "id"]); return l ? /* @__PURE__ */ L.jsxs(L.Fragment, { children: [ M, - /* @__PURE__ */ L.jsx(zo, { children: k.isOpen && /* @__PURE__ */ L.jsx(Qa, { ...p, children: /* @__PURE__ */ L.jsx( + /* @__PURE__ */ L.jsx(Vo, { children: _.isOpen && /* @__PURE__ */ L.jsx(Qa, { ...p, children: /* @__PURE__ */ L.jsx( ge.div, { - ...k.getTooltipPositionerProps(), + ..._.getTooltipPositionerProps(), __css: { zIndex: o.zIndex, pointerEvents: "none" }, children: /* @__PURE__ */ L.jsxs( - hV, + lV, { - variants: cV, + variants: nV, initial: "exit", animate: "enter", exit: "exit", @@ -22800,274 +23034,270 @@ var hV = ge(Cn.div), mV = _e((e, t) => { ) }) }) ] }) : /* @__PURE__ */ L.jsx(L.Fragment, { children: s }); }); -mV.displayName = "Tooltip"; -const aL = At(({ children: e, gap: t, sx: r, ...n }, o) => /* @__PURE__ */ L.jsx(Wm, { ref: o, sx: { gap: t, ...r }, ...n, children: e })); +cV.displayName = "Tooltip"; +const ZV = At(({ children: e, gap: t, sx: r, ...n }, o) => /* @__PURE__ */ L.jsx(Vm, { ref: o, sx: { gap: t, ...r }, ...n, children: e })); export { - vu as $, - d1 as A, - xV as B, - SV as C, - aL as D, - cs as E, - Wm as F, - LF as G, - Ha as H, - xz as I, - uz as J, - bz as K, - wz as L, - Ry as M, - Sz as N, - gz as O, - Kw as P, - fB as Q, - vN as R, - D0 as S, - Aa as T, - yB as U, - gB as V, - hB as W, - xB as X, - Sm as Y, - A0 as Z, - An as _, - at as a, - jr as a$, - Ea as a0, - d_ as a1, - OV as a2, - u_ as a3, - an as a4, - QV as a5, - jo as a6, - mN as a7, - No as a8, - uF as a9, - c_ as aA, - Ia as aB, - uv as aC, - jv as aD, - Lt as aE, - HV as aF, - ER as aG, - WV as aH, - YV as aI, - kR as aJ, - Tp as aK, - UV as aL, - MV as aM, - AV as aN, - gR as aO, - xR as aP, - Wk as aQ, - x_ as aR, - KR as aS, - Jt as aT, - GV as aU, - Bo as aV, - Cn as aW, - hn as aX, - _e as aY, - Nt as aZ, - Xe as a_, - nl as aa, - ge as ab, - $V as ac, - Ty as ad, - KV as ae, - JV as af, - $F as ag, - NF as ah, - IF as ai, - pN as aj, - Is as ak, - qj as al, - oV as am, - iV as an, - sV as ao, - aV as ap, - Gz as aq, - Kz as ar, - Zz as as, - Xz as at, - oL as au, - vz as av, - yV as aw, - Lu as ax, - EV as ay, - TV as az, - ZS as b, - fy as b$, - pb as b0, - zo as b1, - Qa as b2, - dv as b3, - jV as b4, - Fv as b5, - fR as b6, - xF as b7, - yd as b8, - St as b9, - Kj as bA, - EN as bB, - eL as bC, - Zj as bD, - Et as bE, - Vo as bF, - IV as bG, - de as bH, - RV as bI, - _N as bJ, - Ke as bK, - IE as bL, - ME as bM, - FV as bN, - VE as bO, - RE as bP, - YE as bQ, - BV as bR, - nC as bS, - aC as bT, - sy as bU, - FF as bV, - RF as bW, - xb as bX, - yb as bY, - MF as bZ, - hN as b_, - Rt as ba, - DV as bb, - uu as bc, - Jr as bd, - to as be, - bb as bf, - ZV as bg, - jF as bh, - $_ as bi, - Sa as bj, - zF as bk, - VF as bl, - wa as bm, - Ol as bn, - LV as bo, - VV as bp, - uN as bq, - T_ as br, - uy as bs, - gN as bt, - Wo as bu, - rL as bv, - tL as bw, - pB as bx, - Cy as by, - wy as bz, - yr as c, - uk as c$, - cy as c0, - yN as c1, - Py as c2, - Jj as c3, - rB as c4, - oB as c5, - aB as c6, - Lo as c7, + _V as $, + kc as A, + hV as B, + E0 as C, + _u as D, + mV as E, + Vm as F, + ZV as G, + Wn as H, + jF as I, + hz as J, + oz as K, + fz as L, + Ay as M, + vz as N, + mz as O, + dz as P, + Hw as Q, + iB as R, + R0 as S, + Ra as T, + dN as U, + pB as V, + dB as W, + lB as X, + hB as Y, + i_ as Z, + T0 as _, + On as a, + Qa as a$, + a_ as a0, + sn as a1, + HV as a2, + Bo as a3, + uN as a4, + jo as a5, + iF as a6, + gd as a7, + ge as a8, + kV as a9, + Iv as aA, + Lt as aB, + jV as aC, + w$ as aD, + FV as aE, + BV as aF, + S$ as aG, + Pp as aH, + NV as aI, + TV as aJ, + CV as aK, + p$ as aL, + v$ as aM, + jk as aN, + m_ as aO, + Y$ as aP, + Jt as aQ, + VV as aR, + zo as aS, + _n as aT, + mn as aU, + _e as aV, + Nt as aW, + Xe as aX, + Br as aY, + ub as aZ, + Vo as a_, + ky as aa, + UV as ab, + PF as ac, + DF as ad, + RF as ae, + lN as af, + Ms as ag, + O$ as ah, + Lj as ai, + Jz as aj, + eV as ak, + tV as al, + Qz as am, + Lz as an, + Uz as ao, + Hz as ap, + Wz as aq, + KV as ar, + uz as as, + pV as at, + zu as au, + xV as av, + wV as aw, + o_ as ax, + Fa as ay, + lv as az, + at as b, + qj as b$, + cv as b0, + s$ as b1, + l$ as b2, + vF as b3, + bd as b4, + St as b5, + $t as b6, + PV as b7, + cu as b8, + Qr as b9, + Et as bA, + Lo as bB, + AV as bC, + de as bD, + EV as bE, + yN as bF, + Ke as bG, + OE as bH, + AE as bI, + OV as bJ, + FE as bK, + PE as bL, + VE as bM, + $V as bN, + Jw as bO, + eC as bP, + oy as bQ, + $F as bR, + TF as bS, + gb as bT, + vb as bU, + OF as bV, + cN as bW, + cy as bX, + iy as bY, + hN as bZ, + _y as b_, + Ar as ba, + mb as bb, + WV as bc, + MF as bd, + E_ as be, + Ca as bf, + FF as bg, + NF as bh, + _a as bi, + Tl as bj, + IV as bk, + MV as bl, + aN as bm, + C_ as bn, + sy as bo, + fN as bp, + Uo as bq, + GV as br, + qV as bs, + sB as bt, + xy as bu, + yy as bv, + Hj as bw, + SN as bx, + YV as by, + Yj as bz, + XS as c, + fk as c$, + Zj as c0, + Qj as c1, + eB as c2, + Wo as c3, + Kj as c4, + Xj as c5, + Gj as c6, + Cy as c7, tB as c8, - eB as c9, - qR as cA, - qV as cB, - mk as cC, - Wi as cD, - je as cE, - Rn as cF, - X_ as cG, - bk as cH, - NV as cI, - Bc as cJ, - K_ as cK, - Rk as cL, - ps as cM, - Gk as cN, - Lk as cO, - pv as cP, - Z_ as cQ, - Fk as cR, - or as cS, - J_ as cT, - ok as cU, - da as cV, - Mk as cW, - gv as cX, - Hs as cY, - qk as cZ, - ak as c_, - Qj as ca, - Ey as cb, - iB as cc, - sB as cd, - nL as ce, - FB as cf, - By as cg, - fz as ch, - RB as ci, - Sn as cj, - Oy as ck, - qn as cl, - y_ as cm, - XR as cn, - Jz as co, - Yz as cp, - lV as cq, - rV as cr, - Uz as cs, - sl as ct, - ll as cu, - Qz as cv, - cl as cw, - ul as cx, - NR as cy, - Xl as cz, - qm as d, - Je as d0, - Hu as d1, - ik as d2, - gk as d3, - vk as d4, - M_ as d5, - sk as d6, - lk as d7, - ck as d8, - Kk as d9, - Xk as da, - zV as db, - uV as dc, - wF as dd, - _F as de, - gb as df, - EF as dg, - mb as dh, - du as di, - vb as dj, - fu as dk, - JS as e, - wV as f, - QS as g, - Mn as h, - km as i, - bf as j, - CV as k, - a1 as l, - kV as m, - L as n, - oC as o, - Un as p, - bV as q, - mV as r, - Tc as s, - _V as t, - PV as u, - k1 as v, - Am as w, - dy as x, - $a as y, - u1 as z + rB as c9, + je as cA, + Dn as cB, + U_ as cC, + pk as cD, + RV as cE, + jc as cF, + H_ as cG, + Pk as cH, + fs as cI, + Wk as cJ, + Nk as cK, + dv as cL, + Y_ as cM, + Rk as cN, + or as cO, + q_ as cP, + Q_ as cQ, + pa as cR, + Ak as cS, + mv as cT, + Us as cU, + Lk as cV, + ek as cW, + ak as cX, + Je as cY, + Wu as cZ, + tk as c_, + XV as ca, + OB as cb, + Fy as cc, + iz as cd, + EB as ce, + wn as cf, + Py as cg, + Xn as ch, + h_ as ci, + H$ as cj, + Yz as ck, + zz as cl, + rV as cm, + Kz as cn, + jz as co, + al as cp, + il as cq, + qz as cr, + sl as cs, + ll as ct, + D$ as cu, + ql as cv, + W$ as cw, + zV as cx, + uk as cy, + Wi as cz, + yr as d, + dk as d0, + A_ as d1, + rk as d2, + nk as d3, + ok as d4, + Hk as d5, + Uk as d6, + DV as d7, + oV as d8, + bF as d9, + xF as da, + hb as db, + wF as dc, + fb as dd, + uu as de, + pb as df, + ua as dg, + Hm as e, + KS as f, + vV as g, + ZS as h, + Cm as i, + In as j, + gV as k, + gf as l, + n1 as m, + yV as n, + L as o, + Qw as p, + Yn as q, + fV as r, + Pc as s, + bV as t, + SV as u, + x1 as v, + Pm as w, + cV as x, + ly as y, + Ta as z }; diff --git a/dist/chakra.mjs b/dist/chakra.mjs index eadce149d..d0de9c0bb 100644 --- a/dist/chakra.mjs +++ b/dist/chakra.mjs @@ -1,21 +1,21 @@ -(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.link-button:focus-visible{outline:none}.link-button:focus-visible>span{box-shadow:0 0 0 2px #21b18299;text-decoration:none}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid rgba(0,0,0,0);height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:#0000}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:#0000}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid rgba(0,0,0,0);border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:#0000;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); -import { _ as ro, f as $r, k as Or, m as Vr, n as l, aA as gt, aB as Ae, aC as bt, aD as yt, aE as Re, aF as zr, aG as Hr, aH as so, aI as Gr, aJ as Wr, aK as En, aL as Kr, aM as Ur, aN as qr, ax as Xr, aO as Yr, aP as ht, aQ as Zr, aR as Qr, aS as Jr, aT as Se, aU as es, aV as tt, aW as Gt, ab as h, aX as Te, aY as g, aa as be, aZ as ne, a9 as ao, a_ as k, a$ as K, a6 as ie, b0 as Wt, b1 as io, b2 as ts, b3 as ns, b4 as os, b5 as rs, b6 as ss, b7 as Kt, b8 as ot, b9 as ce, ba as A, bb as rt, bc as dt, bd as jn, be as $, bf as Oe, a8 as _e, bg as as, bh as lo, a1 as Ee, bi as Ut, bj as is, bk as co, bl as An, bm as uo, bn as Ne, bo as ls, bp as fo, ak as cs, af as qt, a4 as Xt, bq as Ie, br as us, bs as ds, x as fs, bt as Yt, bu as ms, bv as ps, bw as hs, bx as vs, ad as gs, M as bs, J as ys, by as xs, bz as Ss, bA as _s, bB as ks, bC as Cs, bD as mo, bE as Nt, bF as ws, bG as po, bH as ho, bI as Ps, a5 as Ns, bJ as Is, bK as Ye, bL as vo, bM as Es, bN as js, bO as As, bP as Ts, bQ as Ms, bR as Ds, t as Ls, bS as go, bT as Fs, D as Bs } from "./Flex-3dc5ee69.mjs"; -import { N as op, L as rp, O as sp, K as ap, I as ip, b_ as lp, a7 as cp, au as up, N as dp, L as fp, av as mp, O as pp, K as hp, I as vp, dd as gp, R as bp, bU as yp, ag as xp, bV as Sp, ai as _p, bW as kp, ah as Cp, aj as wp, Q as Pp, U as Np, c2 as Ip, c3 as Ep, X as jp, W as Ap, V as Tp, c4 as Mp, N as Dp, L as Lp, cf as Fp, cg as Bp, O as Rp, K as $p, I as Op, aq as Vp, as as zp, co as Hp, cp as Gp, at as Wp, ar as Kp, bX as Up, de as qp, df as Xp, dg as Yp, am as Zp, ao as Qp, cq as Jp, cr as eh, ap as th, an as nh, b$ as oh, c0 as rh, r as sh, cC as ah, cD as ih, cE as lh, cF as ch, cG as uh, cH as dh, cI as fh, cJ as mh, db as ph, dh as hh, cK as vh, cL as gh, cM as bh, cN as yh, cO as xh, di as Sh, cP as _h, cQ as kh, d9 as Ch, cR as wh, cS as Ph, cT as Nh, cU as Ih, cV as Eh, cW as jh, cX as Ah, cY as Th, da as Mh, cZ as Dh, c_ as Lh, dj as Fh, c$ as Bh, cy as Rh, dk as $h, d0 as Oh, cz as Vh, d1 as zh, d2 as Hh, cA as Gh, d3 as Wh, d4 as Kh, d5 as Uh, d6 as qh, d7 as Xh, d8 as Yh, c1 as Zh, ac as Qh, cB as Jh, ch as ev, cn as tv, bY as nv, bZ as ov, c5 as rv, c6 as sv, c7 as av, c8 as iv, c9 as lv, ca as cv, cb as uv, cc as dv, cd as fv, ce as mv, ci as pv, cj as hv, ck as vv, cl as gv, cm as bv, cs as yv, ct as xv, cu as Sv, cv as _v, cw as kv, cx as Cv, dc as wv } from "./Flex-3dc5ee69.mjs"; -import Tn, { useState as L, useMemo as J, useCallback as x, useEffect as U, createContext as Rs, useContext as $s, memo as Os, Children as Ze, useSyncExternalStore as Vs, useRef as V, useId as Ve, forwardRef as zs, cloneElement as ge, isValidElement as Zt, useLayoutEffect as Hs, Fragment as Gs, createElement as Ws } from "react"; +(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.link-button:focus-visible{outline:none}.link-button:focus-visible>span{box-shadow:0 0 0 2px #21b18299;text-decoration:none}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid rgba(0,0,0,0);height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:#0000}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,.react-datepicker__week-number--keyboard-selected):hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__week-number--selected{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__week-number--selected:hover{background-color:#1d5d90}.react-datepicker__week-number--keyboard-selected{border-radius:.3rem;background-color:#2a87d0;color:#fff}.react-datepicker__week-number--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day-names{white-space:nowrap;margin-bottom:-8px}.react-datepicker__week{white-space:nowrap}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--holidays,.react-datepicker__month-text--holidays,.react-datepicker__quarter-text--holidays,.react-datepicker__year-text--holidays{position:relative;border-radius:.3rem;background-color:#ff6803;color:#fff}.react-datepicker__day--holidays .holiday-overlay,.react-datepicker__month-text--holidays .holiday-overlay,.react-datepicker__quarter-text--holidays .holiday-overlay,.react-datepicker__year-text--holidays .holiday-overlay{position:absolute;bottom:100%;left:50%;transform:translate(-50%);background-color:#333;color:#fff;padding:4px;border-radius:4px;white-space:nowrap;visibility:hidden;opacity:0;transition:visibility 0s,opacity .3s ease-in-out}.react-datepicker__day--holidays:hover,.react-datepicker__month-text--holidays:hover,.react-datepicker__quarter-text--holidays:hover,.react-datepicker__year-text--holidays:hover{background-color:#cf5300}.react-datepicker__day--holidays:hover .holiday-overlay,.react-datepicker__month-text--holidays:hover .holiday-overlay,.react-datepicker__quarter-text--holidays:hover .holiday-overlay,.react-datepicker__year-text--holidays:hover .holiday-overlay{visibility:visible;opacity:1}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:#0000}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem;box-sizing:content-box}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid rgba(0,0,0,0);border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:#0000;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); +import { a as ro, g as Or, k as Vr, n as zr, o as l, ax as gt, ay as Ae, az as bt, aA as yt, aB as Re, aC as Hr, aD as Gr, aE as so, aF as Wr, aG as Kr, aH as En, aI as Ur, aJ as qr, aK as Xr, au as Yr, aL as Zr, aM as ht, aN as Jr, aO as Qr, aP as es, aQ as Se, aR as ts, aS as tt, aT as Gt, a8 as h, aU as Te, aV as g, a7 as be, aW as ne, a6 as ao, aX as k, aY as K, a3 as ie, aZ as Wt, a_ as io, a$ as ns, b0 as os, b1 as lo, b2 as rs, b3 as Kt, b4 as ot, b5 as ce, b6 as A, b7 as rt, b8 as dt, b9 as jn, ba as $, bb as Oe, a5 as _e, bc as ss, bd as co, Z as Ee, be as Ut, bf as as, bg as uo, bh as An, bi as fo, bj as Ne, bk as is, bl as mo, ag as ls, ab as qt, a1 as Xt, bm as Ie, bn as cs, bo as us, y as ds, bp as Yt, bq as fs, br as ms, bs as ps, bt as hs, aa as vs, M as gs, K as bs, bu as ys, bv as xs, bw as Ss, bx as _s, by as ks, bz as po, bA as Nt, bB as Cs, bC as ho, bD as vo, bE as ws, a2 as Ps, bF as Ns, bG as Ye, bH as go, bI as Is, bJ as Es, bK as js, bL as As, bM as Ts, bN as Ms, t as Ds, bO as bo, bP as Ls, G as Fs } from "./Flex-ad3a4da0.mjs"; +import { O as np, N as op, P as rp, L as sp, J as ap, bW as ip, a4 as lp, ar as cp, O as up, N as dp, as as fp, P as mp, L as pp, J as hp, d9 as vp, U as gp, bQ as bp, ac as yp, bR as xp, ae as Sp, bS as _p, ad as kp, af as Cp, R as wp, V as Pp, b_ as Np, b$ as Ip, Y as Ep, X as jp, W as Ap, c0 as Tp, O as Mp, N as Dp, cb as Lp, cc as Fp, P as Bp, L as Rp, J as $p, an as Op, ap as Vp, ck as zp, cl as Hp, aq as Gp, ao as Wp, bT as Kp, da as Up, db as qp, dc as Xp, aj as Yp, al as Zp, cm as Jp, cn as Qp, am as eh, ak as th, bX as nh, bY as oh, x as rh, cy as sh, cz as ah, cA as ih, cB as lh, cC as ch, cD as uh, cE as dh, cF as fh, d7 as mh, dd as ph, cG as hh, cH as vh, cI as gh, cJ as bh, cK as yh, de as xh, cL as Sh, cM as _h, d5 as kh, cN as Ch, cO as wh, cP as Ph, cQ as Nh, cR as Ih, cS as Eh, cT as jh, cU as Ah, d6 as Th, cV as Mh, cW as Dh, df as Lh, cX as Fh, cu as Bh, dg as Rh, cY as $h, cv as Oh, cZ as Vh, c_ as zh, cw as Hh, c$ as Gh, d0 as Wh, d1 as Kh, d2 as Uh, d3 as qh, d4 as Xh, bZ as Yh, a9 as Zh, cx as Jh, cd as Qh, cj as ev, bU as tv, bV as nv, c1 as ov, c2 as rv, c3 as sv, c4 as av, c5 as iv, c6 as lv, c7 as cv, c8 as uv, c9 as dv, ca as fv, ce as mv, cf as pv, cg as hv, ch as vv, ci as gv, co as bv, cp as yv, cq as xv, cr as Sv, cs as _v, ct as kv, d8 as Cv } from "./Flex-ad3a4da0.mjs"; +import Tn, { useState as L, useMemo as Q, useCallback as x, useEffect as U, createContext as Bs, useContext as Rs, memo as $s, Children as Ze, useSyncExternalStore as Os, useRef as V, useId as Ve, forwardRef as Vs, cloneElement as ge, isValidElement as Zt, useLayoutEffect as zs, Fragment as Hs, createElement as Gs } from "react"; import "react-dom"; -var Ks = /* @__PURE__ */ ro(function(e, n) { - return $r(function(o, r) { +var Ws = /* @__PURE__ */ ro(function(e, n) { + return Or(function(o, r) { return o[r] = e(n[r], r, n), o; - }, {}, Or(n)); + }, {}, Vr(n)); }); -const Us = Ks; -var qs = /* @__PURE__ */ ro(function(e, n) { - return Vr(function(o, r, s) { +const Ks = Ws; +var Us = /* @__PURE__ */ ro(function(e, n) { + return zr(function(o, r, s) { return r; }, e, n); }); -const Xs = qs; -var bo = String.raw, yo = bo` +const qs = Us; +var yo = String.raw, xo = yo` :root, :host { --chakra-vh: 100vh; @@ -41,10 +41,10 @@ var bo = String.raw, yo = bo` --chakra-vh: 100dvh; } } -`, Ys = () => /* @__PURE__ */ l.jsx(gt, { styles: yo }), Zs = ({ scope: t = "" }) => /* @__PURE__ */ l.jsx( +`, Xs = () => /* @__PURE__ */ l.jsx(gt, { styles: xo }), Ys = ({ scope: t = "" }) => /* @__PURE__ */ l.jsx( gt, { - styles: bo` + styles: yo` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -296,14 +296,14 @@ var bo = String.raw, yo = bo` display: none; } - ${yo} + ${xo} ` } ), ft = { light: "chakra-ui-light", dark: "chakra-ui-dark" }; -function Qs(t = {}) { +function Zs(t = {}) { const { preventTransition: e = !0 } = t, n = { setDataset: (o) => { const r = e ? n.preventTransition() : void 0; @@ -344,7 +344,7 @@ function Qs(t = {}) { }; return n; } -var Qt = "chakra-ui-color-mode"; +var Jt = "chakra-ui-color-mode"; function Js(t) { return { ssr: !1, @@ -367,12 +367,12 @@ function Js(t) { } }; } -var ea = Js(Qt); +var Qs = Js(Jt); function Mn(t, e) { const n = t.match(new RegExp(`(^| )${e}=([^;]+)`)); return n == null ? void 0 : n[2]; } -function xo(t, e) { +function So(t, e) { return { ssr: !!e, type: "cookie", @@ -384,12 +384,12 @@ function xo(t, e) { } }; } -var Rf = xo(Qt), $f = (t) => xo(Qt, t), Xe = () => { +var Bf = So(Jt), Rf = (t) => So(Jt, t), Xe = () => { }; function Dn(t, e) { return t.type === "cookie" && t.ssr ? t.get(e) : e; } -function So(t) { +function _o(t) { const { value: e, children: n, @@ -398,13 +398,13 @@ function So(t) { initialColorMode: r, disableTransitionOnChange: s } = {}, - colorModeManager: a = ea + colorModeManager: a = Qs } = t, i = r === "dark" ? "dark" : "light", [c, u] = L( () => Dn(a, i) ), [d, f] = L( () => Dn(a) - ), { getSystemTheme: m, setClassName: p, setDataset: b, addListener: y } = J( - () => Qs({ preventTransition: s }), + ), { getSystemTheme: m, setClassName: p, setDataset: b, addListener: y } = Q( + () => Zs({ preventTransition: s }), [s] ), v = r === "system" && !c ? d : c, _ = x( (I) => { @@ -434,7 +434,7 @@ function So(t) { if (o) return y(_); }, [o, y, _]); - const E = J( + const E = Q( () => ({ colorMode: e ?? v, toggleColorMode: e ? Xe : S, @@ -445,9 +445,9 @@ function So(t) { ); return /* @__PURE__ */ l.jsx(bt.Provider, { value: E, children: n }); } -So.displayName = "ColorModeProvider"; -function ta(t) { - const e = J( +_o.displayName = "ColorModeProvider"; +function ea(t) { + const e = Q( () => ({ colorMode: "dark", toggleColorMode: Xe, @@ -458,9 +458,9 @@ function ta(t) { ); return /* @__PURE__ */ l.jsx(bt.Provider, { value: e, ...t }); } -ta.displayName = "DarkMode"; -function na(t) { - const e = J( +ea.displayName = "DarkMode"; +function ta(t) { + const e = Q( () => ({ colorMode: "light", toggleColorMode: Xe, @@ -471,34 +471,34 @@ function na(t) { ); return /* @__PURE__ */ l.jsx(bt.Provider, { value: e, ...t }); } -na.displayName = "LightMode"; -var oa = /* @__PURE__ */ new Set(["dark", "light", "system"]); -function ra(t) { +ta.displayName = "LightMode"; +var na = /* @__PURE__ */ new Set(["dark", "light", "system"]); +function oa(t) { let e = t; - return oa.has(e) || (e = "light"), e; + return na.has(e) || (e = "light"), e; } -function sa(t = {}) { +function ra(t = {}) { const { initialColorMode: e = "light", type: n = "localStorage", storageKey: o = "chakra-ui-color-mode" - } = t, r = ra(e), s = n === "cookie", a = `(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${r}",r="${o}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + } = t, r = oa(e), s = n === "cookie", a = `(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${r}",r="${o}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); `, i = `(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${r}",e="${o}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); `; return `!${s ? a : i}`.trim(); } -function Of(t = {}) { +function $f(t = {}) { const { nonce: e } = t; return /* @__PURE__ */ l.jsx( "script", { id: "chakra-script", nonce: e, - dangerouslySetInnerHTML: { __html: sa(t) } + dangerouslySetInnerHTML: { __html: ra(t) } } ); } -function aa({ +function sa({ colorScheme: t, components: e }) { @@ -515,7 +515,7 @@ function aa({ }); }; } -function ia({ +function aa({ size: t, components: e }) { @@ -532,7 +532,7 @@ function ia({ }); }; } -function la({ +function ia({ variant: t, components: e }) { @@ -549,59 +549,59 @@ function la({ }); }; } -function ca(...t) { +function la(...t) { return (e) => t.reduce((n, o) => o(n), e); } -function Vf({ +function Of({ defaultProps: { colorScheme: t, variant: e, size: n }, components: o }) { const r = (a) => a, s = [ - t ? aa({ colorScheme: t, components: o }) : r, - n ? ia({ size: n, components: o }) : r, - e ? la({ variant: e, components: o }) : r + t ? sa({ colorScheme: t, components: o }) : r, + n ? aa({ size: n, components: o }) : r, + e ? ia({ variant: e, components: o }) : r ]; - return (a) => yt(ca(...s)(a)); + return (a) => yt(la(...s)(a)); } -function Jt(t) { +function Qt(t) { return t != null && typeof t == "object" && "nodeType" in t && t.nodeType === Node.ELEMENT_NODE; } function xt(t) { var e; - if (!Jt(t)) + if (!Qt(t)) return !1; const n = (e = t.ownerDocument.defaultView) != null ? e : window; return t instanceof n.HTMLElement; } -function ua(t) { +function ca(t) { var e, n; - return Jt(t) && (n = (e = ze(t)) == null ? void 0 : e.defaultView) != null ? n : window; + return Qt(t) && (n = (e = ze(t)) == null ? void 0 : e.defaultView) != null ? n : window; } function ze(t) { var e; - return Jt(t) && (e = t.ownerDocument) != null ? e : document; + return Qt(t) && (e = t.ownerDocument) != null ? e : document; } function en(t) { var e; return (e = t.view) != null ? e : window; } -function da() { +function ua() { return !!(typeof window < "u" && window.document && window.document.createElement); } -var st = /* @__PURE__ */ da(); -function fa(t) { +var st = /* @__PURE__ */ ua(); +function da(t) { const e = ze(t); return e == null ? void 0 : e.activeElement; } function tn(t, e) { return t ? t === e || t.contains(e) : !1; } -function ma(t, e, n, o) { +function fa(t, e, n, o) { return t.addEventListener(e, n, o), () => { t.removeEventListener(e, n, o); }; } -function pa(t) { +function ma(t) { const { userAgent: e, vendor: n } = t, o = /(android)/i.test(e); switch (!0) { case /CriOS/.test(e): @@ -626,45 +626,45 @@ function pa(t) { return null; } } -function ha(t) { - return st ? pa(window.navigator) === t : !1; +function pa(t) { + return st ? ma(window.navigator) === t : !1; } -function va(t) { +function ha(t) { const e = en(t); return typeof e.PointerEvent < "u" && t instanceof e.PointerEvent ? t.pointerType === "mouse" : t instanceof e.MouseEvent; } -function _o(t) { +function ko(t) { return !!t.touches; } -function ga(t) { +function va(t) { return (e) => { const n = en(e), o = e instanceof n.MouseEvent; (!o || o && e.button === 0) && t(e); }; } -var ba = { pageX: 0, pageY: 0 }; -function ya(t, e = "page") { - const o = t.touches[0] || t.changedTouches[0] || ba; +var ga = { pageX: 0, pageY: 0 }; +function ba(t, e = "page") { + const o = t.touches[0] || t.changedTouches[0] || ga; return { x: o[`${e}X`], y: o[`${e}Y`] }; } -function xa(t, e = "page") { +function ya(t, e = "page") { return { x: t[`${e}X`], y: t[`${e}Y`] }; } -function ko(t, e = "page") { +function Co(t, e = "page") { return { - point: _o(t) ? ya(t, e) : xa(t, e) + point: ko(t) ? ba(t, e) : ya(t, e) }; } var nn = (t, e = !1) => { - const n = (o) => t(o, ko(o)); - return e ? ga(n) : n; -}, Sa = () => st && window.onpointerdown === null, _a = () => st && window.ontouchstart === null, ka = () => st && window.onmousedown === null, Ca = { + const n = (o) => t(o, Co(o)); + return e ? va(n) : n; +}, xa = () => st && window.onpointerdown === null, Sa = () => st && window.ontouchstart === null, _a = () => st && window.onmousedown === null, ka = { pointerdown: "mousedown", pointermove: "mousemove", pointerup: "mouseup", @@ -673,32 +673,32 @@ var nn = (t, e = !1) => { pointerout: "mouseout", pointerenter: "mouseenter", pointerleave: "mouseleave" -}, wa = { +}, Ca = { pointerdown: "touchstart", pointermove: "touchmove", pointerup: "touchend", pointercancel: "touchcancel" }; function on(t) { - return Sa() ? t : _a() ? wa[t] : ka() ? Ca[t] : t; + return xa() ? t : Sa() ? Ca[t] : _a() ? ka[t] : t; } function It(t, e, n, o) { - return ma( + return fa( t, on(e), nn(n, e === "pointerdown"), o ); } -function Pa(t) { - return _o(t) && t.touches.length > 1; +function wa(t) { + return ko(t) && t.touches.length > 1; } -var Na = Object.defineProperty, Ia = (t, e, n) => e in t ? Na(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ce = (t, e, n) => (Ia(t, typeof e != "symbol" ? e + "" : e, n), n), Ea = class { +var Pa = Object.defineProperty, Na = (t, e, n) => e in t ? Pa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ce = (t, e, n) => (Na(t, typeof e != "symbol" ? e + "" : e, n), n), Ia = class { constructor(t, e, n) { if (Ce(this, "history", []), Ce(this, "startEvent", null), Ce(this, "lastEvent", null), Ce(this, "lastEventInfo", null), Ce(this, "handlers", {}), Ce(this, "removeListeners", so), Ce(this, "threshold", 3), Ce(this, "win"), Ce(this, "updatePoint", () => { if (!(this.lastEvent && this.lastEventInfo)) return; - const a = Et(this.lastEventInfo, this.history), i = this.startEvent !== null, c = Gr(a.offset, { x: 0, y: 0 }) >= this.threshold; + const a = Et(this.lastEventInfo, this.history), i = this.startEvent !== null, c = Wr(a.offset, { x: 0, y: 0 }) >= this.threshold; if (!i && !c) return; const { timestamp: u } = En(); @@ -706,21 +706,21 @@ var Na = Object.defineProperty, Ia = (t, e, n) => e in t ? Na(t, e, { enumerable const { onStart: d, onMove: f } = this.handlers; i || (d == null || d(this.lastEvent, a), this.startEvent = this.lastEvent), f == null || f(this.lastEvent, a); }), Ce(this, "onPointerMove", (a, i) => { - if (this.lastEvent = a, this.lastEventInfo = i, va(a) && a.buttons === 0) { + if (this.lastEvent = a, this.lastEventInfo = i, ha(a) && a.buttons === 0) { this.onPointerUp(a, i); return; } - Wr.update(this.updatePoint, !0); + Kr.update(this.updatePoint, !0); }), Ce(this, "onPointerUp", (a, i) => { const c = Et(i, this.history), { onEnd: u, onSessionEnd: d } = this.handlers; d == null || d(a, c), this.end(), !(!u || !this.startEvent) && (u == null || u(a, c)); - }), this.win = en(t), Pa(t)) + }), this.win = en(t), wa(t)) return; this.handlers = e, n && (this.threshold = n), t.stopPropagation(), t.preventDefault(); - const o = ko(t), { timestamp: r } = En(); + const o = Co(t), { timestamp: r } = En(); this.history = [{ ...o.point, timestamp: r }]; const { onSessionStart: s } = e; - s == null || s(t, Et(o, this.history)), this.removeListeners = zr( + s == null || s(t, Et(o, this.history)), this.removeListeners = Hr( It(this.win, "pointermove", this.onPointerMove), It(this.win, "pointerup", this.onPointerUp), It(this.win, "pointercancel", this.onPointerUp) @@ -731,36 +731,36 @@ var Na = Object.defineProperty, Ia = (t, e, n) => e in t ? Na(t, e, { enumerable } end() { var t; - (t = this.removeListeners) == null || t.call(this), Hr.update(this.updatePoint); + (t = this.removeListeners) == null || t.call(this), Gr.update(this.updatePoint); } }; function Ln(t, e) { return { x: t.x - e.x, y: t.y - e.y }; } -function ja(t) { +function Ea(t) { return t[0]; } -function Aa(t) { +function ja(t) { return t[t.length - 1]; } function Et(t, e) { return { point: t.point, - delta: Ln(t.point, Aa(e)), - offset: Ln(t.point, ja(e)), - velocity: Da(e, 0.1) + delta: Ln(t.point, ja(e)), + offset: Ln(t.point, Ea(e)), + velocity: Ma(e, 0.1) }; } -function Ta(t) { +function Aa(t) { return t[t.length - 1]; } -var Ma = (t) => t * 1e3; -function Da(t, e) { +var Ta = (t) => t * 1e3; +function Ma(t, e) { if (t.length < 2) return { x: 0, y: 0 }; let n = t.length - 1, o = null; - const r = Ta(t); - for (; n >= 0 && (o = t[n], !(r.timestamp - o.timestamp > Ma(e))); ) + const r = Aa(t); + for (; n >= 0 && (o = t[n], !(r.timestamp - o.timestamp > Ta(e))); ) n--; if (!o) return { x: 0, y: 0 }; @@ -773,28 +773,28 @@ function Da(t, e) { }; return a.x === 1 / 0 && (a.x = 0), a.y === 1 / 0 && (a.y = 0), a; } -var Co = (t) => t.hasAttribute("tabindex"), La = (t) => Co(t) && t.tabIndex === -1; -function Fa(t) { +var wo = (t) => t.hasAttribute("tabindex"), Da = (t) => wo(t) && t.tabIndex === -1; +function La(t) { return !!t.getAttribute("disabled") || !!t.getAttribute("aria-disabled"); } -function Ba(t) { +function Fa(t) { return xt(t) && t.localName === "input" && "select" in t; } -function wo(t) { +function Po(t) { return (xt(t) ? ze(t) : document).activeElement === t; } -function Ra(t) { +function Ba(t) { return document.activeElement ? t.contains(document.activeElement) : !1; } -function Po(t) { - return t.parentElement && Po(t.parentElement) ? !0 : t.hidden; +function No(t) { + return t.parentElement && No(t.parentElement) ? !0 : t.hidden; } -function $a(t) { +function Ra(t) { const e = t.getAttribute("contenteditable"); return e !== "false" && e != null; } -function No(t) { - if (!xt(t) || Po(t) || Fa(t)) +function Io(t) { + if (!xt(t) || No(t) || La(t)) return !1; const { localName: e } = t; if (["input", "select", "textarea", "button"].indexOf(e) >= 0) @@ -804,12 +804,12 @@ function No(t) { audio: () => t.hasAttribute("controls"), video: () => t.hasAttribute("controls") }; - return e in o ? o[e]() : $a(t) ? !0 : Co(t); + return e in o ? o[e]() : Ra(t) ? !0 : wo(t); } -function Oa(t) { - return t ? xt(t) && No(t) && !La(t) : !1; +function $a(t) { + return t ? xt(t) && Io(t) && !Da(t) : !1; } -var Va = [ +var Oa = [ "input:not(:disabled):not([disabled])", "select:not(:disabled):not([disabled])", "textarea:not(:disabled):not([disabled])", @@ -824,16 +824,16 @@ var Va = [ "video[controls]", "*[tabindex]:not([aria-disabled])", "*[contenteditable]" -], za = Va.join(), Ha = (t) => t.offsetWidth > 0 && t.offsetHeight > 0; -function Ga(t) { +], Va = Oa.join(), za = (t) => t.offsetWidth > 0 && t.offsetHeight > 0; +function Ha(t) { const e = Array.from( - t.querySelectorAll(za) + t.querySelectorAll(Va) ); - return e.unshift(t), e.filter((n) => No(n) && Ha(n)); + return e.unshift(t), e.filter((n) => Io(n) && za(n)); } function nt(t, e = {}) { const { - isActive: n = wo, + isActive: n = Po, nextTick: o, preventScroll: r = !0, selectTextIfInput: s = !0 @@ -842,20 +842,20 @@ function nt(t, e = {}) { return -1; function a() { if (!t) { - Kr({ + Ur({ condition: !0, message: "[chakra-ui]: can't call focus() on `null` or `undefined` element" }); return; } - if (Wa()) + if (Ga()) t.focus({ preventScroll: r }); else if (t.focus(), r) { - const i = Ka(t); - Ua(i); + const i = Wa(t); + Ka(i); } if (s) { - if (Ba(t)) + if (Fa(t)) t.select(); else if ("setSelectionRange" in t) { const i = t; @@ -866,7 +866,7 @@ function nt(t, e = {}) { return o ? requestAnimationFrame(a) : (a(), -1); } var mt = null; -function Wa() { +function Ga() { if (mt == null) { mt = !1; try { @@ -880,7 +880,7 @@ function Wa() { } return mt; } -function Ka(t) { +function Wa(t) { var e; const n = ze(t), o = (e = n.defaultView) != null ? e : window; let r = t.parentNode; @@ -897,14 +897,14 @@ function Ka(t) { scrollLeft: a.scrollLeft }), s; } -function Ua(t) { +function Ka(t) { for (const { element: e, scrollTop: n, scrollLeft: o } of t) e.scrollTop = n, e.scrollLeft = o; } -var qa = process.env.NODE_ENV === "production", jt = "Invariant failed"; +var Ua = process.env.NODE_ENV === "production", jt = "Invariant failed"; function Fn(t, e) { if (!t) { - if (qa) + if (Ua) throw new Error(jt); var n = typeof e == "function" ? e() : e, o = n ? "".concat(jt, ": ").concat(n) : jt; throw new Error(o); @@ -926,7 +926,7 @@ var pt = function(e) { } }; return c; -}, Xa = function(e, n) { +}, qa = function(e, n) { return { top: e.top - n.top, left: e.left - n.left, @@ -945,8 +945,8 @@ var pt = function(e) { right: 0, bottom: 0, left: 0 -}, Ya = function(e) { - var n = e.borderBox, o = e.margin, r = o === void 0 ? At : o, s = e.border, a = s === void 0 ? At : s, i = e.padding, c = i === void 0 ? At : i, u = pt(Xa(n, r)), d = pt(Bn(n, a)), f = pt(Bn(d, c)); +}, Xa = function(e) { + var n = e.borderBox, o = e.margin, r = o === void 0 ? At : o, s = e.border, a = s === void 0 ? At : s, i = e.padding, c = i === void 0 ? At : i, u = pt(qa(n, r)), d = pt(Bn(n, a)), f = pt(Bn(d, c)); return { marginBox: u, borderBox: pt(n), @@ -962,7 +962,7 @@ var pt = function(e) { return 0; var r = Number(n); return isNaN(r) && (process.env.NODE_ENV !== "production" ? Fn(!1, "Could not parse value [raw: " + e + ", without suffix: " + n + "]") : Fn(!1)), r; -}, Za = function(e, n) { +}, Ya = function(e, n) { var o = { top: ke(n.marginTop), right: ke(n.marginRight), @@ -979,15 +979,15 @@ var pt = function(e) { bottom: ke(n.borderBottomWidth), left: ke(n.borderLeftWidth) }; - return Ya({ + return Xa({ borderBox: e, margin: o, padding: r, border: s }); -}, Qa = function(e) { +}, Za = function(e) { var n = e.getBoundingClientRect(), o = window.getComputedStyle(e); - return Za(n, o); + return Ya(n, o); }; function rn(t) { const e = Object.assign({}, t); @@ -995,16 +995,16 @@ function rn(t) { e[n] === void 0 && delete e[n]; return e; } -function Io(t = {}) { +function Eo(t = {}) { const { strict: e = !0, errorMessage: n = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider", name: o - } = t, r = Rs(void 0); + } = t, r = Bs(void 0); r.displayName = o; function s() { var a; - const i = $s(r); + const i = Rs(r); if (!i && e) { const c = new Error(n); throw c.name = "ContextError", (a = Error.captureStackTrace) == null || a.call(Error, c, s), c; @@ -1017,9 +1017,9 @@ function Io(t = {}) { r ]; } -function Eo(t) { - const { cssVarsRoot: e, theme: n, children: o } = t, r = J(() => Ur(n), [n]); - return /* @__PURE__ */ l.jsxs(qr, { theme: r, children: [ +function jo(t) { + const { cssVarsRoot: e, theme: n, children: o } = t, r = Q(() => qr(n), [n]); + return /* @__PURE__ */ l.jsxs(Xr, { theme: r, children: [ /* @__PURE__ */ l.jsx(Ja, { root: e }), o ] }); @@ -1028,29 +1028,29 @@ function Ja({ root: t = ":host, :root" }) { const e = [t, "[data-theme]"].join(","); return /* @__PURE__ */ l.jsx(gt, { styles: (n) => ({ [e]: n.__cssVars }) }); } -var [zf, Hf] = Io({ +var [Vf, zf] = Eo({ name: "StylesContext", errorMessage: "useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` " }); -function jo(t) { - return Io({ +function Ao(t) { + return Eo({ name: `${t}StylesContext`, errorMessage: `useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${t} />" ` }); } -function ei() { - const { colorMode: t } = Xr(); +function Qa() { + const { colorMode: t } = Yr(); return /* @__PURE__ */ l.jsx( gt, { styles: (e) => { - const n = Yr(e, "styles.global"), o = ht(n, { theme: e, colorMode: t }); - return o ? Zr(o)(e) : void 0; + const n = Zr(e, "styles.global"), o = ht(n, { theme: e, colorMode: t }); + return o ? Jr(o)(e) : void 0; } } ); } -var ti = (t) => { +var ei = (t) => { const { children: e, colorModeManager: n, @@ -1063,39 +1063,39 @@ var ti = (t) => { disableEnvironment: u, disableGlobalStyle: d } = t, f = /* @__PURE__ */ l.jsx( - Jr, + es, { environment: i, disabled: u, children: e } ); - return /* @__PURE__ */ l.jsx(Eo, { theme: a, cssVarsRoot: c, children: /* @__PURE__ */ l.jsxs( - So, + return /* @__PURE__ */ l.jsx(jo, { theme: a, cssVarsRoot: c, children: /* @__PURE__ */ l.jsxs( + _o, { colorModeManager: n, options: a.config, children: [ - s ? /* @__PURE__ */ l.jsx(Zs, { scope: r }) : /* @__PURE__ */ l.jsx(Ys, {}), - !d && /* @__PURE__ */ l.jsx(ei, {}), + s ? /* @__PURE__ */ l.jsx(Ys, { scope: r }) : /* @__PURE__ */ l.jsx(Xs, {}), + !d && /* @__PURE__ */ l.jsx(Qa, {}), o ? /* @__PURE__ */ l.jsx(Qr, { zIndex: o, children: f }) : f ] } ) }); -}, ni = (t, e) => t.find((n) => n.id === e); +}, ti = (t, e) => t.find((n) => n.id === e); function Rn(t, e) { - const n = Ao(t, e), o = n ? t[n].findIndex((r) => r.id === e) : -1; + const n = To(t, e), o = n ? t[n].findIndex((r) => r.id === e) : -1; return { position: n, index: o }; } -function Ao(t, e) { +function To(t, e) { for (const [n, o] of Object.entries(t)) - if (ni(o, e)) + if (ti(o, e)) return n; } -function oi(t) { +function ni(t) { const e = t.includes("right"), n = t.includes("left"); let o = "center"; return e && (o = "flex-end"), n && (o = "flex-start"), { @@ -1104,7 +1104,7 @@ function oi(t) { alignItems: o }; } -function ri(t) { +function oi(t) { const n = t === "top" || t === "bottom" ? "0 auto" : void 0, o = t.includes("top") ? "env(safe-area-inset-top, 0px)" : void 0, r = t.includes("bottom") ? "env(safe-area-inset-bottom, 0px)" : void 0, s = t.includes("left") ? void 0 : "env(safe-area-inset-right, 0px)", a = t.includes("right") ? void 0 : "env(safe-area-inset-left, 0px)"; return { position: "fixed", @@ -1119,7 +1119,7 @@ function ri(t) { left: a }; } -function si(t, e) { +function ri(t, e) { const n = Se(t); U(() => { if (e == null) @@ -1132,7 +1132,7 @@ function si(t, e) { }; }, [e, n]); } -var ai = { +var si = { initial: (t) => { const { position: e } = t, n = ["top", "bottom"].includes(e) ? "y" : "x"; let o = ["top-right", "bottom-right"].includes(e) ? 1 : -1; @@ -1159,7 +1159,7 @@ var ai = { ease: [0.4, 0, 1, 1] } } -}, To = Os((t) => { +}, Mo = $s((t) => { const { id: e, message: n, @@ -1169,9 +1169,9 @@ var ai = { position: a = "bottom", duration: i = 5e3, containerStyle: c, - motionVariants: u = ai, + motionVariants: u = si, toastSpacing: d = "0.5rem" - } = t, [f, m] = L(i), p = es(); + } = t, [f, m] = L(i), p = ts(); tt(() => { p || o == null || o(); }, [p]), tt(() => { @@ -1182,8 +1182,8 @@ var ai = { }; U(() => { p && s && r(); - }, [p, s, r]), si(v, f); - const _ = J( + }, [p, s, r]), ri(v, f); + const _ = Q( () => ({ pointerEvents: "auto", maxWidth: 560, @@ -1192,7 +1192,7 @@ var ai = { ...c }), [c, d] - ), S = J(() => oi(a), [a]); + ), S = Q(() => ni(a), [a]); return /* @__PURE__ */ l.jsx( Gt.div, { @@ -1219,8 +1219,8 @@ var ai = { } ); }); -To.displayName = "ToastComponent"; -function ii(t, e) { +Mo.displayName = "ToastComponent"; +function ai(t, e) { var n; const o = t ?? "bottom", s = { "top-start": { ltr: "top-left", rtl: "top-right" }, @@ -1230,7 +1230,7 @@ function ii(t, e) { }[o]; return (n = s == null ? void 0 : s[e]) != null ? n : o; } -function Gf(t) { +function Hf(t) { const { viewBox: e = "0 0 24 24", d: n, @@ -1239,7 +1239,7 @@ function Gf(t) { } = t, s = Ze.toArray(t.path), a = g((i, c) => /* @__PURE__ */ l.jsx(be, { ref: c, viewBox: e, ...r, ...i, children: s.length ? s : /* @__PURE__ */ l.jsx("path", { fill: "currentColor", d: n }) })); return a.displayName = o, a; } -function li(t) { +function ii(t) { return /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { @@ -1248,7 +1248,7 @@ function li(t) { } ) }); } -function ci(t) { +function li(t) { return /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { @@ -1266,26 +1266,26 @@ function $n(t) { } ) }); } -var [ui, sn] = ne({ +var [ci, sn] = ne({ name: "AlertContext", hookName: "useAlertContext", providerName: "" -}), [di, an] = ne({ +}), [ui, an] = ne({ name: "AlertStylesContext", hookName: "useAlertStyles", providerName: "" -}), Mo = { - info: { icon: ci, colorScheme: "blue" }, +}), Do = { + info: { icon: li, colorScheme: "blue" }, warning: { icon: $n, colorScheme: "orange" }, - success: { icon: li, colorScheme: "green" }, + success: { icon: ii, colorScheme: "green" }, error: { icon: $n, colorScheme: "red" }, loading: { icon: ao, colorScheme: "blue" } }; -function fi(t) { - return Mo[t].colorScheme; +function di(t) { + return Do[t].colorScheme; } -function mi(t) { - return Mo[t].icon; +function fi(t) { + return Do[t].icon; } var ln = g( function(e, n) { @@ -1306,8 +1306,8 @@ var ln = g( } ); ln.displayName = "AlertDescription"; -function Do(t) { - const { status: e } = sn(), n = mi(e), o = an(), r = e === "loading" ? o.spinner : o.icon; +function Lo(t) { + const { status: e } = sn(), n = fi(e), o = an(), r = e === "loading" ? o.spinner : o.icon; return /* @__PURE__ */ l.jsx( h.span, { @@ -1320,7 +1320,7 @@ function Do(t) { } ); } -Do.displayName = "AlertIcon"; +Lo.displayName = "AlertIcon"; var cn = g( function(e, n) { const o = an(), { status: r } = sn(); @@ -1339,7 +1339,7 @@ var cn = g( cn.displayName = "AlertTitle"; var un = g(function(e, n) { var o; - const { status: r = "info", addRole: s = !0, ...a } = K(e), i = (o = e.colorScheme) != null ? o : fi(r), c = ie("Alert", { ...e, colorScheme: i }), u = { + const { status: r = "info", addRole: s = !0, ...a } = K(e), i = (o = e.colorScheme) != null ? o : di(r), c = ie("Alert", { ...e, colorScheme: i }), u = { width: "100%", display: "flex", alignItems: "center", @@ -1347,7 +1347,7 @@ var un = g(function(e, n) { overflow: "hidden", ...c.container }; - return /* @__PURE__ */ l.jsx(ui, { value: { status: r }, children: /* @__PURE__ */ l.jsx(di, { value: c, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(ci, { value: { status: r }, children: /* @__PURE__ */ l.jsx(ui, { value: c, children: /* @__PURE__ */ l.jsx( h.div, { "data-status": r, @@ -1360,15 +1360,15 @@ var un = g(function(e, n) { ) }) }); }); un.displayName = "Alert"; -var pi = { +var mi = { top: [], "top-left": [], "top-right": [], "bottom-left": [], bottom: [], "bottom-right": [] -}, Pe = hi(pi); -function hi(t) { +}, Pe = pi(mi); +function pi(t) { let e = t; const n = /* @__PURE__ */ new Set(), o = (r) => { e = r(e), n.forEach((s) => s()); @@ -1390,7 +1390,7 @@ function hi(t) { })); }, notify: (r, s) => { - const a = vi(r, s), { position: i, id: c } = a; + const a = hi(r, s), { position: i, id: c } = a; return o((u) => { var d, f; const p = i.includes("top") ? [a, ...(d = u[i]) != null ? d : []] : [...(f = u[i]) != null ? f : [], a]; @@ -1406,7 +1406,7 @@ function hi(t) { return c && u !== -1 && (i[c][u] = { ...i[c][u], ...s, - message: Lo(s) + message: Fo(s) }), i; }); }, @@ -1428,7 +1428,7 @@ function hi(t) { }, close: (r) => { o((s) => { - const a = Ao(s, r); + const a = To(s, r); return a ? { ...s, [a]: s[a].map((i) => i.id == r ? { @@ -1442,7 +1442,7 @@ function hi(t) { }; } var On = 0; -function vi(t, e = {}) { +function hi(t, e = {}) { var n, o; On += 1; const r = (n = e.id) != null ? n : On, s = (o = e.position) != null ? o : "bottom"; @@ -1458,7 +1458,7 @@ function vi(t, e = {}) { containerStyle: e.containerStyle }; } -var gi = (t) => { +var vi = (t) => { const { status: e, variant: n = "solid", @@ -1489,7 +1489,7 @@ var gi = (t) => { width: "auto", colorScheme: c, children: [ - /* @__PURE__ */ l.jsx(Do, { children: u }), + /* @__PURE__ */ l.jsx(Lo, { children: u }), /* @__PURE__ */ l.jsxs(h.div, { flex: "1", maxWidth: "100%", children: [ r && /* @__PURE__ */ l.jsx(cn, { id: d == null ? void 0 : d.title, children: r }), i && /* @__PURE__ */ l.jsx(ln, { id: d == null ? void 0 : d.description, display: "block", children: i }) @@ -1508,23 +1508,23 @@ var gi = (t) => { } ); }; -function Lo(t = {}) { - const { render: e, toastComponent: n = gi } = t; +function Fo(t = {}) { + const { render: e, toastComponent: n = vi } = t; return (r) => typeof e == "function" ? e({ ...r, ...t }) : /* @__PURE__ */ l.jsx(n, { ...r, ...t }); } -function Fo(t, e) { +function Bo(t, e) { const n = (r) => { var s; return { ...e, ...r, - position: ii( + position: ai( (s = r == null ? void 0 : r.position) != null ? s : e == null ? void 0 : e.position, t ) }; }, o = (r) => { - const s = n(r), a = Lo(s); + const s = n(r), a = Fo(s); return Pe.notify(a, s); }; return o.update = (r, s) => { @@ -1550,17 +1550,17 @@ function Fo(t, e) { ); }, o.closeAll = Pe.closeAll, o.close = Pe.close, o.isActive = Pe.isActive, o; } -var [bi, yi] = ne({ +var [gi, bi] = ne({ name: "ToastOptionsContext", strict: !1 -}), Bo = (t) => { - const e = Vs( +}), Ro = (t) => { + const e = Os( Pe.subscribe, Pe.getState, Pe.getState ), { motionVariants: n, - component: o = To, + component: o = Mo, portalProps: r } = t, a = Object.keys(e).map((i) => { const c = e[i]; @@ -1569,9 +1569,9 @@ var [bi, yi] = ne({ { role: "region", "aria-live": "polite", - "aria-label": "Notifications", + "aria-label": `Notifications-${i}`, id: `chakra-toast-manager-${i}`, - style: ri(i), + style: oi(i), children: /* @__PURE__ */ l.jsx(io, { initial: !1, children: c.map((u) => /* @__PURE__ */ l.jsx( o, { @@ -1584,32 +1584,32 @@ var [bi, yi] = ne({ i ); }); - return /* @__PURE__ */ l.jsx(ts, { ...r, children: a }); + return /* @__PURE__ */ l.jsx(ns, { ...r, children: a }); }; -function xi(t) { - const { theme: e } = ns(), n = yi(); - return J( - () => Fo(e.direction, { +function yi(t) { + const { theme: e } = os(), n = bi(); + return Q( + () => Bo(e.direction, { ...n, ...t }), [t, e.direction, n] ); } -var Si = { +var xi = { duration: 5e3, variant: "solid" }, Ke = { - theme: os, + theme: lo, colorMode: "light", toggleColorMode: () => { }, setColorMode: () => { }, - defaultOptions: Si, + defaultOptions: xi, forced: !1 }; -function Wf({ +function Gf({ theme: t = Ke.theme, colorMode: e = Ke.colorMode, toggleColorMode: n = Ke.toggleColorMode, @@ -1627,8 +1627,8 @@ function Wf({ forced: c }; return { - ToastContainer: () => /* @__PURE__ */ l.jsx(Eo, { theme: t, children: /* @__PURE__ */ l.jsx(bt.Provider, { value: u, children: /* @__PURE__ */ l.jsx( - Bo, + ToastContainer: () => /* @__PURE__ */ l.jsx(jo, { theme: t, children: /* @__PURE__ */ l.jsx(bt.Provider, { value: u, children: /* @__PURE__ */ l.jsx( + Ro, { defaultOptions: r, motionVariants: s, @@ -1636,33 +1636,33 @@ function Wf({ component: i } ) }) }), - toast: Fo(t.direction, r) + toast: Bo(t.direction, r) }; } -var Ro = (t) => function({ +var $o = (t) => function({ children: n, theme: o = t, toastOptions: r, ...s }) { - return /* @__PURE__ */ l.jsxs(ti, { theme: o, ...s, children: [ - /* @__PURE__ */ l.jsx(bi, { value: r == null ? void 0 : r.defaultOptions, children: n }), - /* @__PURE__ */ l.jsx(Bo, { ...r }) + return /* @__PURE__ */ l.jsxs(ei, { theme: o, ...s, children: [ + /* @__PURE__ */ l.jsx(gi, { value: r == null ? void 0 : r.defaultOptions, children: n }), + /* @__PURE__ */ l.jsx(Ro, { ...r }) ] }); -}, _i = Ro(rs), Kf = Ro(ss), [ki, St] = ne({ +}, Si = $o(lo), Wf = $o(rs), [_i, St] = ne({ name: "AccordionStylesContext", hookName: "useAccordionStyles", providerName: "" -}), [Ci, _t] = ne({ +}), [ki, _t] = ne({ name: "AccordionItemContext", hookName: "useAccordionItemContext", providerName: "" }), [ + Ci, + Kf, wi, - Uf, - Pi, - Ni -] = Kt(), Ii = g( + Pi +] = Kt(), Ni = g( function(e, n) { const { getButtonProps: o } = _t(), r = o(e, n), a = { display: "flex", @@ -1681,8 +1681,8 @@ var Ro = (t) => function({ ); } ); -Ii.displayName = "AccordionButton"; -function Ei(t) { +Ni.displayName = "AccordionButton"; +function Ii(t) { const { onChange: e, defaultIndex: n, @@ -1691,8 +1691,8 @@ function Ei(t) { allowToggle: s, ...a } = t; - Ti(t), Mi(t); - const i = Pi(), [c, u] = L(-1); + Ai(t), Ti(t); + const i = wi(), [c, u] = L(-1); U(() => () => { u(-1); }, []); @@ -1723,20 +1723,20 @@ function Ei(t) { descendants: i }; } -var [ji, dn] = ne({ +var [Ei, dn] = ne({ name: "AccordionContext", hookName: "useAccordionContext", providerName: "Accordion" }); -function Ai(t) { +function ji(t) { const { isDisabled: e, isFocusable: n, id: o, ...r } = t, { getAccordionItemProps: s, setFocusedIndex: a } = dn(), i = V(null), c = Ve(), u = o ?? c, d = `accordion-button-${u}`, f = `accordion-panel-${u}`; - Di(t); - const { register: m, index: p, descendants: b } = Ni({ + Mi(t); + const { register: m, index: p, descendants: b } = Pi({ disabled: e && !n }), { isOpen: y, onChange: v } = s( p === -1 ? null : p ); - Li({ isOpen: y, isDisabled: e }); + Di({ isOpen: y, isDisabled: e }); const _ = () => { v == null || v(!0); }, S = () => { @@ -1817,33 +1817,33 @@ function Ai(t) { htmlProps: r }; } -function Ti(t) { +function Ai(t) { const e = t.index || t.defaultIndex, n = e != null && !Array.isArray(e) && t.allowMultiple; rt({ condition: !!n, message: `If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof e},` }); } -function Mi(t) { +function Ti(t) { rt({ condition: !!(t.allowMultiple && t.allowToggle), message: "If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not" }); } -function Di(t) { +function Mi(t) { rt({ condition: !!(t.isFocusable && !t.isDisabled), message: `Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. ` }); } -function Li(t) { +function Di(t) { rt({ condition: t.isOpen && !!t.isDisabled, message: "Cannot open a disabled accordion item" }); } -function Fi(t) { +function Li(t) { const { isOpen: e, isDisabled: n } = _t(), { reduceMotion: o } = dn(), r = k("chakra-accordion__icon", t.className), s = St(), a = { opacity: n ? 0.4 : 1, transform: e ? "rotate(-180deg)" : void 0, @@ -1869,14 +1869,14 @@ function Fi(t) { } ); } -Fi.displayName = "AccordionIcon"; -var Bi = g( +Li.displayName = "AccordionIcon"; +var Fi = g( function(e, n) { - const { children: o, className: r } = e, { htmlProps: s, ...a } = Ai(e), c = { + const { children: o, className: r } = e, { htmlProps: s, ...a } = ji(e), c = { ...St().container, overflowAnchor: "none" - }, u = J(() => a, [a]); - return /* @__PURE__ */ l.jsx(Ci, { value: u, children: /* @__PURE__ */ l.jsx( + }, u = Q(() => a, [a]); + return /* @__PURE__ */ l.jsx(ki, { value: u, children: /* @__PURE__ */ l.jsx( h.div, { ref: n, @@ -1891,8 +1891,8 @@ var Bi = g( ) }); } ); -Bi.displayName = "AccordionItem"; -var Ri = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { +Fi.displayName = "AccordionItem"; +var Bi = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { exit: { height: { duration: 0.2, ease: dt.ease }, opacity: { duration: 0.3, ease: dt.ease } @@ -1901,7 +1901,7 @@ var Ri = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { height: { duration: 0.3, ease: dt.ease }, opacity: { duration: 0.4, ease: dt.ease } } -}, $i = { +}, Ri = { exit: ({ animateOpacity: t, startingHeight: e, @@ -1911,7 +1911,7 @@ var Ri = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { }) => { var s; return { - ...t && { opacity: Ri(e) ? 1 : 0 }, + ...t && { opacity: Bi(e) ? 1 : 0 }, height: e, transitionEnd: o == null ? void 0 : o.exit, transition: (s = n == null ? void 0 : n.exit) != null ? s : jn.exit(Vn.exit, r) @@ -1932,7 +1932,7 @@ var Ri = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { transition: (s = n == null ? void 0 : n.enter) != null ? s : jn.enter(Vn.enter, r) }; } -}, $o = zs( +}, Oo = Vs( (t, e) => { const { in: n, @@ -1980,7 +1980,7 @@ var Ri = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { ...i }, custom: y, - variants: $i, + variants: Ri, initial: o ? "exit" : !1, animate: _, exit: "exit" @@ -1988,22 +1988,22 @@ var Ri = (t) => t != null && parseInt(t.toString(), 10) > 0, Vn = { ) }); } ); -$o.displayName = "Collapse"; -var Oi = g( +Oo.displayName = "Collapse"; +var $i = g( function(e, n) { const { className: o, motionProps: r, ...s } = e, { reduceMotion: a } = dn(), { getPanelProps: i, isOpen: c } = _t(), u = i(s, n), d = k("chakra-accordion__panel", o), f = St(); a || delete u.hidden; const m = /* @__PURE__ */ l.jsx(h.div, { ...u, __css: f.panel, className: d }); - return a ? m : /* @__PURE__ */ l.jsx($o, { in: c, ...r, children: m }); + return a ? m : /* @__PURE__ */ l.jsx(Oo, { in: c, ...r, children: m }); } ); -Oi.displayName = "AccordionPanel"; -var Vi = g(function({ children: e, reduceMotion: n, ...o }, r) { - const s = ie("Accordion", o), a = K(o), { htmlProps: i, descendants: c, ...u } = Ei(a), d = J( +$i.displayName = "AccordionPanel"; +var Oi = g(function({ children: e, reduceMotion: n, ...o }, r) { + const s = ie("Accordion", o), a = K(o), { htmlProps: i, descendants: c, ...u } = Ii(a), d = Q( () => ({ ...u, reduceMotion: !!n }), [u, n] ); - return /* @__PURE__ */ l.jsx(wi, { value: c, children: /* @__PURE__ */ l.jsx(ji, { value: d, children: /* @__PURE__ */ l.jsx(ki, { value: s, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(Ci, { value: c, children: /* @__PURE__ */ l.jsx(Ei, { value: d, children: /* @__PURE__ */ l.jsx(_i, { value: s, children: /* @__PURE__ */ l.jsx( h.div, { ref: r, @@ -2014,16 +2014,16 @@ var Vi = g(function({ children: e, reduceMotion: n, ...o }, r) { } ) }) }) }); }); -Vi.displayName = "Accordion"; -function qf() { +Oi.displayName = "Accordion"; +function Uf() { const { isOpen: t, isDisabled: e, onClose: n, onOpen: o } = _t(); return { isOpen: t, onClose: n, isDisabled: e, onOpen: o }; } -var [zi, Oo] = ne({ +var [Vi, Vo] = ne({ name: "AvatarStylesContext", hookName: "useAvatarStyles", providerName: "" -}), Hi = { +}), zi = { "top-start": { top: "0", insetStart: "0", @@ -2044,14 +2044,14 @@ var [zi, Oo] = ne({ insetEnd: "0", transform: "translate(25%, 25%)" } -}, Gi = g( +}, Hi = g( function(e, n) { - const { placement: o = "bottom-end", className: r, ...s } = e, a = Oo(), c = { + const { placement: o = "bottom-end", className: r, ...s } = e, a = Vo(), c = { position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", - ...Hi[o], + ...zi[o], ...a.badge }; return /* @__PURE__ */ l.jsx( @@ -2065,18 +2065,18 @@ var [zi, Oo] = ne({ ); } ); -Gi.displayName = "AvatarBadge"; -function Wi(t) { +Hi.displayName = "AvatarBadge"; +function Gi(t) { var e; const n = t.split(" "), o = (e = n[0]) != null ? e : "", r = n.length > 1 ? n[n.length - 1] : ""; return o && r ? `${o.charAt(0)}${r.charAt(0)}` : o.charAt(0); } -function Vo(t) { - const { name: e, getInitials: n, ...o } = t, r = Oo(); +function zo(t) { + const { name: e, getInitials: n, ...o } = t, r = Vo(); return /* @__PURE__ */ l.jsx(h.div, { role: "img", "aria-label": e, ...o, __css: r.label, children: e ? n == null ? void 0 : n(e) : null }); } -Vo.displayName = "AvatarName"; -var zo = (t) => /* @__PURE__ */ l.jsxs( +zo.displayName = "AvatarName"; +var Ho = (t) => /* @__PURE__ */ l.jsxs( h.svg, { viewBox: "0 0 128 128", @@ -2107,7 +2107,7 @@ var zo = (t) => /* @__PURE__ */ l.jsxs( return /* @__PURE__ */ l.jsx("img", { width: o, height: r, ref: n, alt: s, ...a }); }); vt.displayName = "NativeImage"; -function Ho(t) { +function Go(t) { const { loading: e, src: n, @@ -2141,14 +2141,14 @@ function Ho(t) { }; }, [u, m, c]), c ? "loaded" : u; } -var Ki = (t, e) => t !== "loaded" && e === "beforeLoadOrError" || t === "failed" && e === "onError"; -function Ui(t, e = []) { +var Wi = (t, e) => t !== "loaded" && e === "beforeLoadOrError" || t === "failed" && e === "onError"; +function Ki(t, e = []) { const n = Object.assign({}, t); for (const o of e) o in n && delete n[o]; return n; } -var qi = g(function(e, n) { +var Ui = g(function(e, n) { const { fallbackSrc: o, fallback: r, @@ -2164,15 +2164,15 @@ var qi = g(function(e, n) { ...b } = e, y = o !== void 0 || r !== void 0, v = u != null || // use can opt out of fallback image d || // if the user doesn't provide any kind of fallback we should ignore it - !y, _ = Ho({ + !y, _ = Go({ ...e, crossOrigin: f, ignoreFallback: v - }), S = Ki(_, m), E = { + }), S = Wi(_, m), E = { ref: n, objectFit: c, objectPosition: i, - ...v ? b : Ui(b, ["onError", "onLoad"]) + ...v ? b : Ki(b, ["onError", "onLoad"]) }; return S ? r || /* @__PURE__ */ l.jsx( h.img, @@ -2196,9 +2196,9 @@ var qi = g(function(e, n) { } ); }); -qi.displayName = "Image"; -var Xf = g((t, e) => /* @__PURE__ */ l.jsx(h.img, { ref: e, as: vt, className: "chakra-image", ...t })); -function Go(t) { +Ui.displayName = "Image"; +var qf = g((t, e) => /* @__PURE__ */ l.jsx(h.img, { ref: e, as: vt, className: "chakra-image", ...t })); +function Wo(t) { const { src: e, srcSet: n, @@ -2209,13 +2209,13 @@ function Go(t) { borderRadius: i, loading: c, iconLabel: u, - icon: d = /* @__PURE__ */ l.jsx(zo, {}), + icon: d = /* @__PURE__ */ l.jsx(Ho, {}), ignoreFallback: f, referrerPolicy: m, crossOrigin: p - } = t, y = Ho({ src: e, onError: o, crossOrigin: p, ignoreFallback: f }) === "loaded"; + } = t, y = Go({ src: e, onError: o, crossOrigin: p, ignoreFallback: f }) === "loaded"; return !e || !y ? a ? /* @__PURE__ */ l.jsx( - Vo, + zo, { className: "chakra-avatar__initials", getInitials: s, @@ -2244,8 +2244,8 @@ function Go(t) { } ); } -Go.displayName = "AvatarImage"; -var Wo = { +Wo.displayName = "AvatarImage"; +var Ko = { display: "inline-flex", alignItems: "center", justifyContent: "center", @@ -2254,7 +2254,7 @@ var Wo = { fontWeight: "medium", position: "relative", flexShrink: 0 -}, Xi = g((t, e) => { +}, qi = g((t, e) => { const n = ie("Avatar", t), [o, r] = L(!1), { src: s, srcSet: a, @@ -2263,8 +2263,8 @@ var Wo = { borderRadius: u = "full", onError: d, onLoad: f, - getInitials: m = Wi, - icon: p = /* @__PURE__ */ l.jsx(zo, {}), + getInitials: m = Gi, + icon: p = /* @__PURE__ */ l.jsx(Ho, {}), iconLabel: b = " avatar", loading: y, children: v, @@ -2276,7 +2276,7 @@ var Wo = { } = K(t), P = { borderRadius: u, borderWidth: c ? "2px" : void 0, - ...Wo, + ...Ko, ...n.container }; return _ && (P.borderColor = _), /* @__PURE__ */ l.jsx( @@ -2287,9 +2287,9 @@ var Wo = { className: k("chakra-avatar", t.className), "data-loaded": $(o), __css: P, - children: /* @__PURE__ */ l.jsxs(zi, { value: n, children: [ + children: /* @__PURE__ */ l.jsxs(Vi, { value: n, children: [ /* @__PURE__ */ l.jsx( - Go, + Wo, { src: s, srcSet: a, @@ -2313,14 +2313,14 @@ var Wo = { } ); }); -Xi.displayName = "Avatar"; -function Yi(t) { +qi.displayName = "Avatar"; +function Xi(t) { const e = Object.assign({}, t); for (let n in e) e[n] === void 0 && delete e[n]; return e; } -var Zi = g( +var Yi = g( function(e, n) { const o = ie("Avatar", e), { children: r, @@ -2337,7 +2337,7 @@ var Zi = g( borderColor: (E = _.props.borderColor) != null ? E : s, showBorder: !0 }; - return ge(_, Yi(w)); + return ge(_, Xi(w)); }), y = { display: "flex", alignItems: "center", @@ -2347,7 +2347,7 @@ var Zi = g( }, v = { borderRadius: c, marginStart: i, - ...Wo, + ...Ko, ...o.excessLabel }; return /* @__PURE__ */ l.jsxs( @@ -2366,11 +2366,11 @@ var Zi = g( ); } ); -Zi.displayName = "AvatarGroup"; -var [Qi, fn] = ne({ +Yi.displayName = "AvatarGroup"; +var [Zi, fn] = ne({ name: "BreadcrumbStylesContext", errorMessage: `useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Ko = g( +}), Uo = g( function(e, n) { const { isCurrentPage: o, as: r, className: s, href: a, ...i } = e, c = fn(), u = { ref: n, @@ -2381,7 +2381,7 @@ var [Qi, fn] = ne({ return o ? /* @__PURE__ */ l.jsx(h.span, { "aria-current": "page", __css: c.link, ...u }) : /* @__PURE__ */ l.jsx(h.a, { __css: c.link, href: a, ...u }); } ); -Ko.displayName = "BreadcrumbLink"; +Uo.displayName = "BreadcrumbLink"; var Ft = g( function(e, n) { const { spacing: o, ...r } = e, s = fn(), a = { @@ -2410,7 +2410,7 @@ var Ji = g( children: i, className: c, ...u - } = e, f = Oe(i).map((y) => y.type === Ko ? ge(y, { + } = e, f = Oe(i).map((y) => y.type === Uo ? ge(y, { isCurrentPage: o }) : y.type === Ft ? ge(y, { spacing: a, @@ -2427,7 +2427,7 @@ var Ji = g( } ); Ji.displayName = "BreadcrumbItem"; -var el = g( +var Qi = g( function(e, n) { const o = ie("Breadcrumb", e), r = K(e), { children: s, @@ -2451,7 +2451,7 @@ var el = g( className: b, __css: o.container, ...d, - children: /* @__PURE__ */ l.jsx(Qi, { value: o, children: /* @__PURE__ */ l.jsx( + children: /* @__PURE__ */ l.jsx(Zi, { value: o, children: /* @__PURE__ */ l.jsx( h.ol, { className: "chakra-breadcrumb__list", @@ -2468,11 +2468,11 @@ var el = g( ); } ); -el.displayName = "Breadcrumb"; -var [tl, nl] = ne({ +Qi.displayName = "Breadcrumb"; +var [el, tl] = ne({ strict: !1, name: "ButtonGroupContext" -}), ol = { +}), nl = { horizontal: { "> *:first-of-type:not(:last-of-type)": { borderEndRadius: 0 }, "> *:not(:first-of-type):not(:last-of-type)": { borderRadius: 0 }, @@ -2483,14 +2483,14 @@ var [tl, nl] = ne({ "> *:not(:first-of-type):not(:last-of-type)": { borderRadius: 0 }, "> *:not(:first-of-type):last-of-type": { borderTopRadius: 0 } } -}, rl = { +}, ol = { horizontal: (t) => ({ "& > *:not(style) ~ *:not(style)": { marginStart: t } }), vertical: (t) => ({ "& > *:not(style) ~ *:not(style)": { marginTop: t } }) -}, sl = g( +}, rl = g( function(e, n) { const { size: o, @@ -2502,16 +2502,16 @@ var [tl, nl] = ne({ isDisabled: u, orientation: d = "horizontal", ...f - } = e, m = k("chakra-button__group", a), p = J( + } = e, m = k("chakra-button__group", a), p = Q( () => ({ size: o, colorScheme: r, variant: s, isDisabled: u }), [o, r, s, u] ); let b = { display: "inline-flex", - ...c ? ol[d] : rl[d](i) + ...c ? nl[d] : ol[d](i) }; const y = d === "vertical"; - return /* @__PURE__ */ l.jsx(tl, { value: p, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(el, { value: p, children: /* @__PURE__ */ l.jsx( h.div, { ref: n, @@ -2526,8 +2526,8 @@ var [tl, nl] = ne({ ) }); } ); -sl.displayName = "ButtonGroup"; -function al(t) { +rl.displayName = "ButtonGroup"; +function sl(t) { const [e, n] = L(!t); return { ref: x((s) => { s && n(s.tagName === "BUTTON"); @@ -2560,7 +2560,7 @@ function Rt(t) { className: s, __css: a, ...i - } = t, c = k("chakra-button__spinner", s), u = n === "start" ? "marginEnd" : "marginStart", d = J( + } = t, c = k("chakra-button__spinner", s), u = n === "start" ? "marginEnd" : "marginStart", d = Q( () => ({ display: "flex", alignItems: "center", @@ -2575,8 +2575,8 @@ function Rt(t) { return /* @__PURE__ */ l.jsx(h.div, { className: c, ...i, __css: d, children: r }); } Rt.displayName = "ButtonSpinner"; -var Uo = g((t, e) => { - const n = nl(), o = _e("Button", { ...n, ...t }), { +var qo = g((t, e) => { + const n = tl(), o = _e("Button", { ...n, ...t }), { isDisabled: r = n == null ? void 0 : n.isDisabled, isLoading: s, isActive: a, @@ -2591,7 +2591,7 @@ var Uo = g((t, e) => { className: y, as: v, ..._ - } = K(t), S = J(() => { + } = K(t), S = Q(() => { const P = { ...o == null ? void 0 : o._focus, zIndex: 1 }; return { display: "inline-flex", @@ -2606,11 +2606,11 @@ var Uo = g((t, e) => { ...o, ...!!n && { _focus: P } }; - }, [o, n]), { ref: E, type: I } = al(v), w = { rightIcon: u, leftIcon: c, iconSpacing: f, children: i }; + }, [o, n]), { ref: E, type: I } = sl(v), w = { rightIcon: u, leftIcon: c, iconSpacing: f, children: i }; return /* @__PURE__ */ l.jsxs( h.button, { - ref: as(e, E), + ref: ss(e, E), as: v, type: m ?? I, "data-active": $(a), @@ -2645,7 +2645,7 @@ var Uo = g((t, e) => { } ); }); -Uo.displayName = "Button"; +qo.displayName = "Button"; function zn(t) { const { leftIcon: e, rightIcon: n, children: o, iconSpacing: r } = t; return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [ @@ -2654,14 +2654,14 @@ function zn(t) { n && /* @__PURE__ */ l.jsx(Bt, { marginStart: r, children: n }) ] }); } -var il = g( +var al = g( (t, e) => { const { icon: n, children: o, isRound: r, "aria-label": s, ...a } = t, i = n || o, c = Zt(i) ? ge(i, { "aria-hidden": !0, focusable: !1 }) : null; return /* @__PURE__ */ l.jsx( - Uo, + qo, { padding: "0", borderRadius: r ? "full" : void 0, @@ -2673,8 +2673,8 @@ var il = g( ); } ); -il.displayName = "IconButton"; -var [ll, mn] = jo("Card"), Yf = g(function(e, n) { +al.displayName = "IconButton"; +var [il, mn] = Ao("Card"), Xf = g(function(e, n) { const { className: o, ...r } = e, s = mn(); return /* @__PURE__ */ l.jsx( h.div, @@ -2685,7 +2685,7 @@ var [ll, mn] = jo("Card"), Yf = g(function(e, n) { ...r } ); -}), Zf = g( +}), Yf = g( function(e, n) { const { className: o, justify: r, ...s } = e, a = mn(); return /* @__PURE__ */ l.jsx( @@ -2702,7 +2702,7 @@ var [ll, mn] = jo("Card"), Yf = g(function(e, n) { } ); } -), Qf = g( +), Zf = g( function(e, n) { const { className: o, ...r } = e, s = mn(); return /* @__PURE__ */ l.jsx( @@ -2740,17 +2740,17 @@ var [ll, mn] = jo("Card"), Yf = g(function(e, n) { ...u.container }, ...c, - children: /* @__PURE__ */ l.jsx(ll, { value: u, children: r }) + children: /* @__PURE__ */ l.jsx(il, { value: u, children: r }) } ); -}), [cl, ul] = ne({ +}), [ll, cl] = ne({ name: "CheckboxGroupContext", strict: !1 }); function Hn(t) { return t && Re(t) && Re(t.target); } -function dl(t = {}) { +function ul(t = {}) { const { defaultValue: e, value: n, @@ -2785,8 +2785,8 @@ function dl(t = {}) { getCheckboxProps: d }; } -function fl(t) { - const { colorScheme: e, size: n, variant: o, children: r, isDisabled: s } = t, { value: a, onChange: i } = dl(t), c = J( +function dl(t) { + const { colorScheme: e, size: n, variant: o, children: r, isDisabled: s } = t, { value: a, onChange: i } = ul(t), c = Q( () => ({ size: n, onChange: i, @@ -2797,14 +2797,14 @@ function fl(t) { }), [n, i, e, a, o, s] ); - return /* @__PURE__ */ l.jsx(cl, { value: c, children: r }); + return /* @__PURE__ */ l.jsx(ll, { value: c, children: r }); } -fl.displayName = "CheckboxGroup"; -function ml(t) { +dl.displayName = "CheckboxGroup"; +function fl(t) { const [e, n] = L(t), [o, r] = L(!1); return t !== e && (r(!0), n(t)), o; } -function pl(t) { +function ml(t) { return /* @__PURE__ */ l.jsx( h.svg, { @@ -2821,7 +2821,7 @@ function pl(t) { } ); } -function hl(t) { +function pl(t) { return /* @__PURE__ */ l.jsx( h.svg, { @@ -2833,8 +2833,8 @@ function hl(t) { } ); } -function vl(t) { - const { isIndeterminate: e, isChecked: n, ...o } = t, r = e ? hl : pl; +function hl(t) { + const { isIndeterminate: e, isChecked: n, ...o } = t, r = e ? pl : ml; return n || e ? /* @__PURE__ */ l.jsx( h.div, { @@ -2858,26 +2858,24 @@ var pn = { overflow: "hidden", whiteSpace: "nowrap", position: "absolute" -}, gl = h("span", { +}, vl = h("span", { baseStyle: pn }); -gl.displayName = "VisuallyHidden"; -var bl = h("input", { +vl.displayName = "VisuallyHidden"; +var gl = h("input", { baseStyle: pn }); -bl.displayName = "VisuallyHiddenInput"; -const yl = () => typeof document < "u"; -let Gn = !1, at = null, $e = !1, $t = !1; -const Ot = /* @__PURE__ */ new Set(); +gl.displayName = "VisuallyHiddenInput"; +var bl = () => typeof document < "u", Gn = !1, at = null, $e = !1, $t = !1, Ot = /* @__PURE__ */ new Set(); function hn(t, e) { Ot.forEach((n) => n(t, e)); } -const xl = typeof window < "u" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : !1; -function Sl(t) { - return !(t.metaKey || !xl && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta"); +var yl = typeof window < "u" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : !1; +function xl(t) { + return !(t.metaKey || !yl && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta"); } function Wn(t) { - $e = !0, Sl(t) && (at = "keyboard", hn("keyboard", t)); + $e = !0, xl(t) && (at = "keyboard", hn("keyboard", t)); } function Ue(t) { if (at = "pointer", t.type === "mousedown" || t.type === "pointerdown") { @@ -2893,44 +2891,44 @@ function Ue(t) { hn("pointer", t); } } -function _l(t) { +function Sl(t) { return t.mozInputSource === 0 && t.isTrusted ? !0 : t.detail === 0 && !t.pointerType; } -function kl(t) { - _l(t) && ($e = !0, at = "virtual"); +function _l(t) { + Sl(t) && ($e = !0, at = "virtual"); } -function Cl(t) { +function kl(t) { t.target === window || t.target === document || (!$e && !$t && (at = "virtual", hn("virtual", t)), $e = !1, $t = !1); } -function wl() { +function Cl() { $e = !1, $t = !0; } function Kn() { return at !== "pointer"; } -function Pl() { - if (!yl() || Gn) +function wl() { + if (!bl() || Gn) return; const { focus: t } = HTMLElement.prototype; HTMLElement.prototype.focus = function(...n) { $e = !0, t.apply(this, n); - }, document.addEventListener("keydown", Wn, !0), document.addEventListener("keyup", Wn, !0), document.addEventListener("click", kl, !0), window.addEventListener("focus", Cl, !0), window.addEventListener("blur", wl, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", Ue, !0), document.addEventListener("pointermove", Ue, !0), document.addEventListener("pointerup", Ue, !0)) : (document.addEventListener("mousedown", Ue, !0), document.addEventListener("mousemove", Ue, !0), document.addEventListener("mouseup", Ue, !0)), Gn = !0; + }, document.addEventListener("keydown", Wn, !0), document.addEventListener("keyup", Wn, !0), document.addEventListener("click", _l, !0), window.addEventListener("focus", kl, !0), window.addEventListener("blur", Cl, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", Ue, !0), document.addEventListener("pointermove", Ue, !0), document.addEventListener("pointerup", Ue, !0)) : (document.addEventListener("mousedown", Ue, !0), document.addEventListener("mousemove", Ue, !0), document.addEventListener("mouseup", Ue, !0)), Gn = !0; } -function qo(t) { - Pl(), t(Kn()); +function Xo(t) { + wl(), t(Kn()); const e = () => t(Kn()); return Ot.add(e), () => { Ot.delete(e); }; } -function Nl(t, e = []) { +function Pl(t, e = []) { const n = Object.assign({}, t); for (const o of e) o in n && delete n[o]; return n; } -function Xo(t = {}) { - const e = lo(t), { +function Yo(t = {}) { + const e = co(t), { isDisabled: n, isReadOnly: o, isRequired: r, @@ -2952,7 +2950,7 @@ function Xo(t = {}) { "aria-labelledby": E, "aria-invalid": I, ...w - } = t, P = Nl(w, [ + } = t, P = Pl(w, [ "isDisabled", "isReadOnly", "isRequired", @@ -2962,7 +2960,7 @@ function Xo(t = {}) { "onFocus", "aria-describedby" ]), G = Se(p), F = Se(i), ee = Se(c), [D, M] = L(!1), [O, R] = L(!1), [z, Y] = L(!1), [W, Z] = L(!1); - U(() => qo(M), []); + U(() => Xo(M), []); const T = V(null), [ae, me] = L(!0), [ue, re] = L(!!d), de = f !== void 0, q = de ? f : ue, se = x( (N) => { if (o || n) { @@ -2992,8 +2990,8 @@ function Xo(t = {}) { re(!!d); }; return N.form.addEventListener("reset", oe), () => { - var Q; - return (Q = N.form) == null ? void 0 : Q.removeEventListener("reset", oe); + var J; + return (J = N.form) == null ? void 0 : J.removeEventListener("reset", oe); }; }, []); const ve = n && !m, ye = x( @@ -3014,7 +3012,7 @@ function Xo(t = {}) { }, [T.current]); const j = x( (N = {}, oe = null) => { - const Q = (pe) => { + const J = (pe) => { O && pe.preventDefault(), Z(!0); }; return { @@ -3030,7 +3028,7 @@ function Xo(t = {}) { "data-invalid": $(s), "data-readonly": $(o), "aria-hidden": !0, - onMouseDown: A(N.onMouseDown, Q), + onMouseDown: A(N.onMouseDown, J), onMouseUp: A(N.onMouseUp, () => Z(!1)), onMouseEnter: A( N.onMouseEnter, @@ -3082,12 +3080,12 @@ function Xo(t = {}) { (N = {}, oe = null) => ({ ...P, ...N, - ref: ce(oe, (Q) => { - Q && me(Q.tagName === "LABEL"); + ref: ce(oe, (J) => { + J && me(J.tagName === "LABEL"); }), onClick: A(N.onClick, () => { - var Q; - ae || ((Q = T.current) == null || Q.click(), requestAnimationFrame(() => { + var J; + ae || ((J = T.current) == null || J.click(), requestAnimationFrame(() => { var pe; (pe = T.current) == null || pe.focus({ preventScroll: !0 }); })); @@ -3155,7 +3153,7 @@ function Xo(t = {}) { (N = {}, oe = null) => ({ ...N, ref: oe, - onMouseDown: A(N.onMouseDown, Il), + onMouseDown: A(N.onMouseDown, Nl), "data-disabled": $(n), "data-checked": $(q), "data-invalid": $(s) @@ -3182,23 +3180,23 @@ function Xo(t = {}) { htmlProps: P }; } -function Il(t) { +function Nl(t) { t.preventDefault(), t.stopPropagation(); } -var El = { +var Il = { display: "inline-flex", alignItems: "center", justifyContent: "center", verticalAlign: "top", userSelect: "none", flexShrink: 0 -}, jl = { +}, El = { cursor: "pointer", display: "inline-flex", alignItems: "center", verticalAlign: "top", position: "relative" -}, Al = Ee({ +}, jl = Ee({ from: { opacity: 0, strokeDashoffset: 16, @@ -3209,28 +3207,28 @@ var El = { strokeDashoffset: 0, transform: "scale(1)" } -}), Tl = Ee({ +}), Al = Ee({ from: { opacity: 0 }, to: { opacity: 1 } -}), Ml = Ee({ +}), Tl = Ee({ from: { transform: "scaleX(0.65)" }, to: { transform: "scaleX(1)" } -}), Dl = g(function(e, n) { - const o = ul(), r = { ...o, ...e }, s = ie("Checkbox", r), a = K(e), { +}), Ml = g(function(e, n) { + const o = cl(), r = { ...o, ...e }, s = ie("Checkbox", r), a = K(e), { spacing: i = "0.5rem", className: c, children: u, iconColor: d, iconSize: f, - icon: m = /* @__PURE__ */ l.jsx(vl, {}), + icon: m = /* @__PURE__ */ l.jsx(hl, {}), isChecked: p, isDisabled: b = o == null ? void 0 : o.isDisabled, onChange: y, @@ -3247,14 +3245,14 @@ var El = { getCheckboxProps: P, getLabelProps: G, getRootProps: F - } = Xo({ + } = Yo({ ..._, isDisabled: b, isChecked: S, onChange: E - }), ee = ml(I.isChecked), D = J( + }), ee = fl(I.isChecked), D = Q( () => ({ - animation: ee ? I.isIndeterminate ? `${Tl} 20ms linear, ${Ml} 200ms linear` : `${Al} 200ms linear` : void 0, + animation: ee ? I.isIndeterminate ? `${Al} 20ms linear, ${Tl} 200ms linear` : `${jl} 200ms linear` : void 0, fontSize: f, color: d, ...s.icon @@ -3268,7 +3266,7 @@ var El = { return /* @__PURE__ */ l.jsxs( h.label, { - __css: { ...jl, ...s.container }, + __css: { ...El, ...s.container }, className: k("chakra-checkbox", c), ...F(), children: [ @@ -3282,7 +3280,7 @@ var El = { /* @__PURE__ */ l.jsx( h.span, { - __css: { ...El, ...s.control }, + __css: { ...Il, ...s.control }, className: "chakra-checkbox__control", ...P(), children: M @@ -3304,8 +3302,8 @@ var El = { } ); }); -Dl.displayName = "Checkbox"; -var Ll = (t) => { +Ml.displayName = "Checkbox"; +var Dl = (t) => { const { type: e = "checkbox", _hover: n, @@ -3350,8 +3348,8 @@ var Ll = (t) => { } ); }; -Ll.displayName = "ControlBox"; -function Fl(t = {}) { +Dl.displayName = "ControlBox"; +function Ll(t = {}) { const { onChange: e, precision: n, @@ -3364,7 +3362,7 @@ function Fl(t = {}) { } = t, u = Se(e), [d, f] = L(() => { var D; return o == null ? "" : (D = Tt(o, s, n)) != null ? D : ""; - }), m = typeof r < "u", p = m ? r : d, b = Yo(je(p), s), y = n ?? b, v = x( + }), m = typeof r < "u", p = m ? r : d, b = Zo(je(p), s), y = n ?? b, v = x( (D) => { D !== p && (m || f(D.toString()), u == null || u(D.toString(), je(D))); }, @@ -3372,7 +3370,7 @@ function Fl(t = {}) { ), _ = x( (D) => { let M = D; - return c && (M = is(M, a, i)), co(M, y); + return c && (M = as(M, a, i)), uo(M, y); }, [y, c, i, a] ), S = x( @@ -3418,24 +3416,24 @@ function Fl(t = {}) { function je(t) { return parseFloat(t.toString().replace(/[^\w.-]+/g, "")); } -function Yo(t, e) { +function Zo(t, e) { return Math.max(An(e), An(t)); } function Tt(t, e, n) { const o = je(t); if (Number.isNaN(o)) return; - const r = Yo(o, e); - return co(o, n ?? r); + const r = Zo(o, e); + return uo(o, n ?? r); } -var [Bl, vn] = ne({ +var [Fl, vn] = ne({ name: "EditableStylesContext", errorMessage: `useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [Rl, it] = ne({ +}), [Bl, it] = ne({ name: "EditableContext", errorMessage: "useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``" }); -function em() { +function Qf() { const { isEditing: t, onSubmit: e, onCancel: n, onEdit: o, isDisabled: r } = it(); return { isEditing: t, @@ -3450,7 +3448,7 @@ var gn = { fontWeight: "inherit", textAlign: "inherit", bg: "transparent" -}, $l = g( +}, Rl = g( function(e, n) { const { getInputProps: o } = it(), r = vn(), s = o(e, n), a = k("chakra-editable__input", e.className); return /* @__PURE__ */ l.jsx( @@ -3467,8 +3465,8 @@ var gn = { ); } ); -$l.displayName = "EditableInput"; -var Ol = g( +Rl.displayName = "EditableInput"; +var $l = g( function(e, n) { const { getPreviewProps: o } = it(), r = vn(), s = o(e, n), a = k("chakra-editable__preview", e.className); return /* @__PURE__ */ l.jsx( @@ -3486,8 +3484,8 @@ var Ol = g( ); } ); -Ol.displayName = "EditablePreview"; -var Vl = g( +$l.displayName = "EditablePreview"; +var Ol = g( function(e, n) { const { getTextareaProps: o } = it(), r = vn(), s = o(e, n), a = k("chakra-editable__textarea", e.className); return /* @__PURE__ */ l.jsx( @@ -3504,27 +3502,27 @@ var Vl = g( ); } ); -Vl.displayName = "EditableTextarea"; -function zl(t) { +Ol.displayName = "EditableTextarea"; +function Vl(t) { return "current" in t; } -var Zo = () => typeof window < "u"; -function Hl() { +var Jo = () => typeof window < "u"; +function zl() { var t; const e = navigator.userAgentData; return (t = e == null ? void 0 : e.platform) != null ? t : navigator.platform; } -var Gl = (t) => Zo() && t.test(navigator.vendor), Wl = (t) => Zo() && t.test(Hl()), Kl = () => Wl(/mac|iphone|ipad|ipod/i), Ul = () => Kl() && Gl(/apple/i); +var Hl = (t) => Jo() && t.test(navigator.vendor), Gl = (t) => Jo() && t.test(zl()), Wl = () => Gl(/mac|iphone|ipad|ipod/i), Kl = () => Wl() && Hl(/apple/i); function Qo(t) { const { ref: e, elements: n, enabled: o } = t, r = () => { var s, a; return (a = (s = e.current) == null ? void 0 : s.ownerDocument) != null ? a : document; }; - uo(r, "pointerdown", (s) => { - if (!Ul() || !o) + fo(r, "pointerdown", (s) => { + if (!Kl() || !o) return; const a = s.target, c = (n ?? [e]).some((u) => { - const d = zl(u) ? u.current : u; + const d = Vl(u) ? u.current : u; return (d == null ? void 0 : d.contains(a)) || d === a; }); r().activeElement !== a && c && (s.preventDefault(), a.focus()); @@ -3533,7 +3531,7 @@ function Qo(t) { function Un(t, e) { return t ? t === e || t.contains(e) : !1; } -function ql(t = {}) { +function Ul(t = {}) { const { onChange: e, onCancel: n, @@ -3741,14 +3739,14 @@ function ql(t = {}) { htmlProps: y }; } -var Xl = g(function(e, n) { - const o = ie("Editable", e), r = K(e), { htmlProps: s, ...a } = ql(r), { isEditing: i, onSubmit: c, onCancel: u, onEdit: d } = a, f = k("chakra-editable", e.className), m = Te(e.children, { +var ql = g(function(e, n) { + const o = ie("Editable", e), r = K(e), { htmlProps: s, ...a } = Ul(r), { isEditing: i, onSubmit: c, onCancel: u, onEdit: d } = a, f = k("chakra-editable", e.className), m = Te(e.children, { isEditing: i, onSubmit: c, onCancel: u, onEdit: d }); - return /* @__PURE__ */ l.jsx(Rl, { value: a, children: /* @__PURE__ */ l.jsx(Bl, { value: o, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(Bl, { value: a, children: /* @__PURE__ */ l.jsx(Fl, { value: o, children: /* @__PURE__ */ l.jsx( h.div, { ref: n, @@ -3758,8 +3756,8 @@ var Xl = g(function(e, n) { } ) }) }); }); -Xl.displayName = "Editable"; -function tm() { +ql.displayName = "Editable"; +function em() { const { isEditing: t, getEditButtonProps: e, @@ -3773,17 +3771,17 @@ function tm() { getSubmitButtonProps: o }; } -function nm(t) { +function tm(t) { const e = V(); return U(() => { e.current = t; }, [t]), e.current; } -function Yl(t) { +function Xl(t) { const { key: e } = t; return e.length === 1 || e.length > 1 && /[^a-zA-Z0-9]/.test(e); } -function om(t = {}) { +function nm(t = {}) { const { timeout: e = 300, preventDefault: n = () => !0 } = t, [o, r] = L([]), s = V(), a = () => { s.current && (clearTimeout(s.current), s.current = null); }, i = () => { @@ -3799,7 +3797,7 @@ function om(t = {}) { f.pop(), r(f); return; } - if (Yl(d)) { + if (Xl(d)) { const f = o.concat(d.key); n(d) && (d.preventDefault(), d.stopPropagation()), r(f), u(f.join("")), i(); } @@ -3807,7 +3805,7 @@ function om(t = {}) { } return c; } -var bn = st ? Hs : U; +var bn = st ? zs : U; function Me(t, e = []) { const n = V(t); return bn(() => { @@ -3817,7 +3815,7 @@ function Me(t, e = []) { return (r = n.current) == null ? void 0 : r.call(n, ...o); }, e); } -function rm(t, e) { +function om(t, e) { const n = Me(t); U(() => { if (e == null) @@ -3830,7 +3828,7 @@ function rm(t, e) { }; }, [e, n]); } -function sm(t, e) { +function rm(t, e) { const n = V(); U(() => { if (n.current) { @@ -3845,7 +3843,7 @@ function sm(t, e) { n.current = e; }); } -function am(t, e) { +function sm(t, e) { const n = Me(t); U(() => { let o = null; @@ -3855,11 +3853,11 @@ function am(t, e) { }; }, [e, n]); } -function im(t) { +function am(t) { const e = V(null); return e.current = t, e; } -function Zl(t, e) { +function Yl(t, e) { if (t != null) { if (typeof t == "function") { t(e); @@ -3872,10 +3870,10 @@ function Zl(t, e) { } } } -function lm(...t) { - return J(() => t.every((e) => e == null) ? null : (e) => { +function im(...t) { + return Q(() => t.every((e) => e == null) ? null : (e) => { t.forEach((n) => { - n && Zl(n, e); + n && Yl(n, e); }); }, t); } @@ -3893,13 +3891,13 @@ function kt(t, e, n, o) { ((s = ht(n)) != null ? s : document).removeEventListener(t, r, o); }; } -function cm(t = !0) { +function lm(t = !0) { const e = V(); return kt("mousedown", (n) => { t && (e.current = n.target); }), e; } -function um(t) { +function cm(t) { const { ref: e, handler: n, enabled: o = !0 } = t, r = Me(n), a = V({ isPointerDown: !1, ignoreEmulatedMouseEvents: !1 @@ -3928,7 +3926,7 @@ function Mt(t, e) { const o = t.target; return o && !ze(o).contains(o) ? !1 : !((n = e.current) != null && n.contains(o)); } -function Jo(t, e, n, o) { +function er(t, e, n, o) { return kt( on(e), nn(n, e === "pointerdown"), @@ -3936,13 +3934,14 @@ function Jo(t, e, n, o) { o ); } -function er(t, e = []) { +function tr(t, e = []) { return U( () => () => t(), + // eslint-disable-next-line react-hooks/exhaustive-deps e ); } -function dm(t, e) { +function um(t, e) { const { onPan: n, onPanStart: o, @@ -3964,29 +3963,29 @@ function dm(t, e) { (m = u.current) == null || m.updateHandlers(d); }); function f(m) { - u.current = new Ea(m, d, i); + u.current = new Ia(m, d, i); } - Jo( + er( () => t.current, "pointerdown", c ? f : so - ), er(() => { + ), tr(() => { var m; (m = u.current) == null || m.end(), u.current = null; }); } -function tr(t, e) { +function nr(t, e) { const n = Ve(); - return J( + return Q( () => t || [e, n].filter(Boolean).join("-"), [t, e, n] ); } -function fm(t, ...e) { - const n = tr(t); - return J(() => e.map((o) => `${o}-${n}`), [n, e]); +function dm(t, ...e) { + const n = nr(t); + return Q(() => e.map((o) => `${o}-${n}`), [n, e]); } -function mm(t) { +function fm(t) { const [e, n] = L(null); return { ref: x( (r) => { @@ -3995,11 +3994,11 @@ function mm(t) { [t] ), id: e, isRendered: !!e }; } -function Ql(t, e) { +function Zl(t, e) { const n = t !== void 0; return [n, n && typeof t < "u" ? t : e]; } -function pm(t) { +function mm(t) { const { value: e, defaultValue: n, @@ -4014,13 +4013,13 @@ function pm(t) { ); return [d, f]; } -function hm(t = {}) { +function pm(t = {}) { const { onClose: e, onOpen: n, isOpen: o, id: r - } = t, s = Me(n), a = Me(e), [i, c] = L(t.defaultIsOpen || !1), [u, d] = Ql(o, i), f = tr(r, "disclosure"), m = x(() => { + } = t, s = Me(n), a = Me(e), [i, c] = L(t.defaultIsOpen || !1), [u, d] = Zl(o, i), f = nr(r, "disclosure"), m = x(() => { u || c(!1), a == null || a(); }, [u, a]), p = x(() => { u || c(!0), s == null || s(); @@ -4037,7 +4036,7 @@ function hm(t = {}) { ...y, "aria-expanded": d, "aria-controls": f, - onClick: ls(y.onClick, b) + onClick: is(y.onClick, b) }), getDisclosureProps: (y = {}) => ({ ...y, @@ -4046,7 +4045,7 @@ function hm(t = {}) { }) }; } -function vm() { +function hm() { const t = V(/* @__PURE__ */ new Map()), e = t.current, n = x((r, s, a, i) => { const c = nn( a, @@ -4084,21 +4083,21 @@ var yn = (t, e) => { n.current = !1; }), []); }; -function gm(t, e) { +function vm(t, e) { const { shouldFocus: n, preventScroll: o } = e; yn(() => { const r = t.current; - !r || !n || Ra(r) || nt(r, { preventScroll: o, nextTick: !0 }); + !r || !n || Ba(r) || nt(r, { preventScroll: o, nextTick: !0 }); }, [n, t, o]); } function Jl(t) { const e = t.current; if (!e) return !1; - const n = fa(e); - return !n || tn(e, n) ? !1 : !!Oa(n); + const n = da(e); + return !n || tn(e, n) ? !1 : !!$a(n); } -function bm(t, e) { +function gm(t, e) { const { shouldFocus: n, visible: o, focusRef: r } = e, s = n && !o; yn(() => { if (!s || Jl(t)) @@ -4107,24 +4106,24 @@ function bm(t, e) { a && nt(a, { nextTick: !0 }); }, [s, t, r]); } -function ym(t) { - const { ref: e, elements: n, enabled: o } = t, r = ha("Safari"); - Jo(() => ze(e.current), "pointerdown", (a) => { +function bm(t) { + const { ref: e, elements: n, enabled: o } = t, r = pa("Safari"); + er(() => ze(e.current), "pointerdown", (a) => { if (!r || !o) return; const i = a.target, u = (n ?? [e]).some((d) => { - const f = fo(d) ? d.current : d; + const f = mo(d) ? d.current : d; return tn(f, i); }); - !wo(i) && u && (a.preventDefault(), nt(i)); + !Po(i) && u && (a.preventDefault(), nt(i)); }); } -var ec = { +var Ql = { preventScroll: !0, shouldFocus: !1 }; -function xm(t, e = ec) { - const { focusRef: n, preventScroll: o, shouldFocus: r, visible: s } = e, a = fo(t) ? t.current : t, i = r && s, c = V(i), u = V(s); +function ym(t, e = Ql) { + const { focusRef: n, preventScroll: o, shouldFocus: r, visible: s } = e, a = mo(t) ? t.current : t, i = r && s, c = V(i), u = V(s); bn(() => { !u.current && s && (c.current = i), u.current = s; }, [s, i]); @@ -4133,7 +4132,7 @@ function xm(t, e = ec) { if (n != null && n.current) nt(n.current, { preventScroll: o, nextTick: !0 }); else { - const f = Ga(a); + const f = Ha(a); f.length > 0 && nt(f[0], { preventScroll: o, nextTick: !0 }); } }, [s, o, a, n]); @@ -4141,15 +4140,15 @@ function xm(t, e = ec) { d(); }, [d]), kt("transitionend", d, a); } -function Sm() { +function xm() { const t = V(!1), [e, n] = L(0); - return er(() => { + return tr(() => { t.current = !0; }), x(() => { t.current || n(e + 1); }, [e]); } -function _m(t) { +function Sm(t) { const { isOpen: e, ref: n } = t, [o, r] = L(e), [s, a] = L(!1); return U(() => { s || (r(e), a(!0)); @@ -4163,13 +4162,13 @@ function _m(t) { present: !(e ? !1 : !o), onComplete() { var c; - const u = ua(n.current), d = new u.CustomEvent("animationend", { bubbles: !0 }); + const u = ca(n.current), d = new u.CustomEvent("animationend", { bubbles: !0 }); (c = n.current) == null || c.dispatchEvent(d); } }; } -function km(t = !1) { - const [e, n] = L(t), o = J( +function _m(t = !1) { + const [e, n] = L(t), o = Q( () => ({ on: () => n(!0), off: () => n(!1), @@ -4179,7 +4178,7 @@ function km(t = !1) { ); return [e, o]; } -var tc = function() { +var ec = function() { var t = document.getSelection(); if (!t.rangeCount) return function() { @@ -4200,20 +4199,20 @@ var tc = function() { t.addRange(r); }), e && e.focus(); }; -}, nc = tc, qn = { +}, tc = ec, qn = { "text/plain": "Text", "text/html": "Url", default: "Text" -}, oc = "Copy to clipboard: #{key}, Enter"; -function rc(t) { +}, nc = "Copy to clipboard: #{key}, Enter"; +function oc(t) { var e = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; return t.replace(/#{\s*key\s*}/g, e); } -function sc(t, e) { +function rc(t, e) { var n, o, r, s, a, i, c = !1; e || (e = {}), n = e.debug || !1; try { - r = nc(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = t, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(d) { + r = tc(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = t, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(d) { if (d.stopPropagation(), e.format) if (d.preventDefault(), typeof d.clipboardData > "u") { n && console.warn("unable to use e.clipboardData"), n && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); @@ -4232,20 +4231,20 @@ function sc(t, e) { try { window.clipboardData.setData(e.format || "text", t), e.onCopy && e.onCopy(window.clipboardData), c = !0; } catch (f) { - n && console.error("unable to copy using clipboardData: ", f), n && console.error("falling back to prompt"), o = rc("message" in e ? e.message : oc), window.prompt(o, t); + n && console.error("unable to copy using clipboardData: ", f), n && console.error("falling back to prompt"), o = oc("message" in e ? e.message : nc), window.prompt(o, t); } } finally { a && (typeof a.removeRange == "function" ? a.removeRange(s) : a.removeAllRanges()), i && document.body.removeChild(i), r(); } return c; } -var ac = sc; -const ic = /* @__PURE__ */ cs(ac); -function Cm(t, e = {}) { +var sc = rc; +const ac = /* @__PURE__ */ ls(sc); +function km(t, e = {}) { const [n, o] = L(!1), [r, s] = L(t); U(() => s(t), [t]); const { timeout: a = 1500, ...i } = typeof e == "number" ? { timeout: e } : e, c = x(() => { - const u = ic(r, i); + const u = ac(r, i); o(u); }, [r, i]); return U(() => { @@ -4262,17 +4261,17 @@ function Cm(t, e = {}) { hasCopied: n }; } -function wm(t) { +function Cm(t) { const e = V(null); return e.current === null && (e.current = typeof t == "function" ? t() : t), e.current; } -function Pm(t, e) { +function wm(t, e) { const [n, o] = L(null), r = V(); return bn(() => { function s() { const a = t.current; a && (r.current = requestAnimationFrame(() => { - const i = Qa(a); + const i = Za(a); o(i); })); } @@ -4281,10 +4280,10 @@ function Pm(t, e) { }; }, [e]), n; } -var [lc, nr] = ne({ +var [ic, or] = ne({ name: "InputGroupStylesContext", errorMessage: `useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), cc = g( +}), lc = g( function(e, n) { const o = ie("Input", e), { children: r, className: s, ...a } = K(e), i = k("chakra-input__group", s), c = {}, u = Oe(r), d = o.field; u.forEach((m) => { @@ -4315,13 +4314,13 @@ var [lc, nr] = ne({ }, "data-group": !0, ...a, - children: /* @__PURE__ */ l.jsx(lc, { value: o, children: f }) + children: /* @__PURE__ */ l.jsx(ic, { value: o, children: f }) } ); } ); -cc.displayName = "InputGroup"; -var uc = { +lc.displayName = "InputGroup"; +var cc = { left: { marginEnd: "-1px", borderEndRadius: 0, @@ -4332,7 +4331,7 @@ var uc = { borderStartRadius: 0, borderStartColor: "transparent" } -}, dc = h("div", { +}, uc = h("div", { baseStyle: { flex: "0 0 auto", width: "auto", @@ -4343,9 +4342,9 @@ var uc = { }), xn = g( function(e, n) { var o; - const { placement: r = "left", ...s } = e, a = (o = uc[r]) != null ? o : {}, i = nr(); + const { placement: r = "left", ...s } = e, a = (o = cc[r]) != null ? o : {}, i = or(); return /* @__PURE__ */ l.jsx( - dc, + uc, { ref: n, ...s, @@ -4358,7 +4357,7 @@ var uc = { } ); xn.displayName = "InputAddon"; -var or = g( +var rr = g( function(e, n) { return /* @__PURE__ */ l.jsx( xn, @@ -4371,9 +4370,9 @@ var or = g( ); } ); -or.displayName = "InputLeftAddon"; -or.id = "InputLeftAddon"; -var rr = g( +rr.displayName = "InputLeftAddon"; +rr.id = "InputLeftAddon"; +var sr = g( function(e, n) { return /* @__PURE__ */ l.jsx( xn, @@ -4386,9 +4385,9 @@ var rr = g( ); } ); -rr.displayName = "InputRightAddon"; -rr.id = "InputRightAddon"; -var fc = h("div", { +sr.displayName = "InputRightAddon"; +sr.id = "InputRightAddon"; +var dc = h("div", { baseStyle: { display: "flex", alignItems: "center", @@ -4399,18 +4398,18 @@ var fc = h("div", { } }), Ct = g(function(e, n) { var o, r; - const { placement: s = "left", ...a } = e, i = nr(), c = i.field, d = { + const { placement: s = "left", ...a } = e, i = or(), c = i.field, d = { [s === "left" ? "insetStart" : "insetEnd"]: "0", width: (o = c == null ? void 0 : c.height) != null ? o : c == null ? void 0 : c.h, height: (r = c == null ? void 0 : c.height) != null ? r : c == null ? void 0 : c.h, fontSize: c == null ? void 0 : c.fontSize, ...i.element }; - return /* @__PURE__ */ l.jsx(fc, { ref: n, __css: d, ...a }); + return /* @__PURE__ */ l.jsx(dc, { ref: n, __css: d, ...a }); }); Ct.id = "InputElement"; Ct.displayName = "InputElement"; -var sr = g( +var ar = g( function(e, n) { const { className: o, ...r } = e, s = k("chakra-input__left-element", o); return /* @__PURE__ */ l.jsx( @@ -4424,9 +4423,9 @@ var sr = g( ); } ); -sr.id = "InputLeftElement"; -sr.displayName = "InputLeftElement"; -var ar = g( +ar.id = "InputLeftElement"; +ar.displayName = "InputLeftElement"; +var ir = g( function(e, n) { const { className: o, ...r } = e, s = k("chakra-input__right-element", o); return /* @__PURE__ */ l.jsx( @@ -4440,9 +4439,9 @@ var ar = g( ); } ); -ar.id = "InputRightElement"; -ar.displayName = "InputRightElement"; -var ir = g(function(e, n) { +ir.id = "InputRightElement"; +ir.displayName = "InputRightElement"; +var lr = g(function(e, n) { const { htmlSize: o, ...r } = e, s = ie("Input", r), a = K(r), i = qt(a), c = k("chakra-input", e.className); return /* @__PURE__ */ l.jsx( h.input, @@ -4455,9 +4454,9 @@ var ir = g(function(e, n) { } ); }); -ir.displayName = "Input"; -ir.id = "Input"; -var mc = g(function(e, n) { +lr.displayName = "Input"; +lr.id = "Input"; +var fc = g(function(e, n) { const o = _e("Link", e), { className: r, isExternal: s, ...a } = K(e); return /* @__PURE__ */ l.jsx( h.a, @@ -4471,8 +4470,8 @@ var mc = g(function(e, n) { } ); }); -mc.displayName = "Link"; -var [pc, lr] = ne({ +fc.displayName = "Link"; +var [mc, cr] = ne({ name: "ListStylesContext", errorMessage: `useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` }), Sn = g(function(e, n) { @@ -4483,7 +4482,7 @@ var [pc, lr] = ne({ spacing: i, ...c } = K(e), u = Oe(r), f = i ? { ["& > *:not(style) ~ *:not(style)"]: { mt: i } } : {}; - return /* @__PURE__ */ l.jsx(pc, { value: o, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(mc, { value: o, children: /* @__PURE__ */ l.jsx( h.ul, { ref: n, @@ -4497,27 +4496,27 @@ var [pc, lr] = ne({ ) }); }); Sn.displayName = "List"; -var hc = g((t, e) => { +var pc = g((t, e) => { const { as: n, ...o } = t; return /* @__PURE__ */ l.jsx(Sn, { ref: e, as: "ol", styleType: "decimal", marginStart: "1em", ...o }); }); -hc.displayName = "OrderedList"; -var vc = g(function(e, n) { +pc.displayName = "OrderedList"; +var hc = g(function(e, n) { const { as: o, ...r } = e; return /* @__PURE__ */ l.jsx(Sn, { ref: n, as: "ul", styleType: "initial", marginStart: "1em", ...r }); }); -vc.displayName = "UnorderedList"; -var gc = g(function(e, n) { - const o = lr(); +hc.displayName = "UnorderedList"; +var vc = g(function(e, n) { + const o = cr(); return /* @__PURE__ */ l.jsx(h.li, { ref: n, ...e, __css: o.item }); }); -gc.displayName = "ListItem"; -var bc = g(function(e, n) { - const o = lr(); +vc.displayName = "ListItem"; +var gc = g(function(e, n) { + const o = cr(); return /* @__PURE__ */ l.jsx(be, { ref: n, role: "presentation", ...e, __css: o.icon }); }); -bc.displayName = "ListIcon"; -var cr = g(function(e, n) { +gc.displayName = "ListIcon"; +var ur = g(function(e, n) { const { templateAreas: o, gap: r, @@ -4547,12 +4546,12 @@ var cr = g(function(e, n) { }; return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: y, ...b }); }); -cr.displayName = "Grid"; -var yc = g( +ur.displayName = "Grid"; +var bc = g( function(e, n) { - const { columns: o, spacingX: r, spacingY: s, spacing: a, minChildWidth: i, ...c } = e, u = Xt(), d = i ? Sc(i, u) : _c(o); + const { columns: o, spacingX: r, spacingY: s, spacing: a, minChildWidth: i, ...c } = e, u = Xt(), d = i ? xc(i, u) : Sc(o); return /* @__PURE__ */ l.jsx( - cr, + ur, { ref: n, gap: a, @@ -4564,31 +4563,31 @@ var yc = g( ); } ); -yc.displayName = "SimpleGrid"; -function xc(t) { +bc.displayName = "SimpleGrid"; +function yc(t) { return typeof t == "number" ? `${t}px` : t; } -function Sc(t, e) { +function xc(t, e) { return Ie(t, (n) => { - const o = us("sizes", n, xc(n))(e); + const o = cs("sizes", n, yc(n))(e); return n === null ? null : `repeat(auto-fit, minmax(${o}, 1fr))`; }); } -function _c(t) { +function Sc(t) { return Ie( t, (e) => e === null ? null : `repeat(${e}, minmax(0, 1fr))` ); } -var kc = h("div", { +var _c = h("div", { baseStyle: { flex: 1, justifySelf: "stretch", alignSelf: "stretch" } }); -kc.displayName = "Spacer"; -var Cc = g(function(e, n) { +_c.displayName = "Spacer"; +var kc = g(function(e, n) { const o = _e("Text", e), { className: r, align: s, decoration: a, casing: i, ...c } = K(e), u = rn({ textAlign: e.align, textDecoration: e.decoration, @@ -4605,8 +4604,8 @@ var Cc = g(function(e, n) { } ); }); -Cc.displayName = "Text"; -var wc = g(function(e, n) { +kc.displayName = "Text"; +var Cc = g(function(e, n) { const { spacing: o = "0.5rem", spacingX: r, @@ -4618,8 +4617,8 @@ var wc = g(function(e, n) { className: d, shouldWrapChildren: f, ...m - } = e, p = J( - () => f ? Ze.map(a, (b, y) => /* @__PURE__ */ l.jsx(ur, { children: b }, y)) : a, + } = e, p = Q( + () => f ? Ze.map(a, (b, y) => /* @__PURE__ */ l.jsx(dr, { children: b }, y)) : a, [a, f] ); return /* @__PURE__ */ l.jsx(h.div, { ref: n, className: k("chakra-wrap", d), ...m, children: /* @__PURE__ */ l.jsx( @@ -4642,8 +4641,8 @@ var wc = g(function(e, n) { } ) }); }); -wc.displayName = "Wrap"; -var ur = g(function(e, n) { +Cc.displayName = "Wrap"; +var dr = g(function(e, n) { const { className: o, ...r } = e; return /* @__PURE__ */ l.jsx( h.li, @@ -4655,8 +4654,8 @@ var ur = g(function(e, n) { } ); }); -ur.displayName = "WrapItem"; -var Pc = (t) => /* @__PURE__ */ l.jsx( +dr.displayName = "WrapItem"; +var wc = (t) => /* @__PURE__ */ l.jsx( h.div, { className: "chakra-stack__divider", @@ -4671,16 +4670,16 @@ var Pc = (t) => /* @__PURE__ */ l.jsx( } } ); -Pc.displayName = "StackDivider"; -var Nc = g((t, e) => /* @__PURE__ */ l.jsx(ds, { align: "center", ...t, direction: "column", ref: e })); -Nc.displayName = "VStack"; +wc.displayName = "StackDivider"; +var Pc = g((t, e) => /* @__PURE__ */ l.jsx(us, { align: "center", ...t, direction: "column", ref: e })); +Pc.displayName = "VStack"; function Xn(t) { return Ie( t, (e) => e === "auto" ? "auto" : `span ${e}/span ${e}` ); } -var Ic = g(function(e, n) { +var Nc = g(function(e, n) { const { area: o, colSpan: r, @@ -4701,8 +4700,8 @@ var Ic = g(function(e, n) { }); return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: f, ...d }); }); -Ic.displayName = "GridItem"; -var Ec = g(function(e, n) { +Nc.displayName = "GridItem"; +var Ic = g(function(e, n) { const o = _e("Heading", e), { className: r, ...s } = K(e); return /* @__PURE__ */ l.jsx( h.h2, @@ -4714,24 +4713,24 @@ var Ec = g(function(e, n) { } ); }); -Ec.displayName = "Heading"; -var jc = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`); -function Ac(t) { - const e = t.filter((n) => n.length !== 0).map((n) => jc(n.trim())); +Ic.displayName = "Heading"; +var Ec = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`); +function jc(t) { + const e = t.filter((n) => n.length !== 0).map((n) => Ec(n.trim())); return e.length ? new RegExp(`(${e.join("|")})`, "ig") : null; } -function Tc({ text: t, query: e }) { - const n = Ac(Array.isArray(e) ? e : [e]); +function Ac({ text: t, query: e }) { + const n = jc(Array.isArray(e) ? e : [e]); return n ? t.split(n).filter(Boolean).map((r) => ({ text: r, match: n.test(r) })) : [{ text: t, match: !1 }]; } -function Mc(t) { +function Tc(t) { const { text: e, query: n } = t; - return J(() => Tc({ text: e, query: n }), [e, n]); + return Q(() => Ac({ text: e, query: n }), [e, n]); } -var Dc = g(function(e, n) { +var Mc = g(function(e, n) { const o = _e("Mark", e), r = K(e); return /* @__PURE__ */ l.jsx( - fs, + ds, { ref: n, ...r, @@ -4740,21 +4739,21 @@ var Dc = g(function(e, n) { } ); }); -function Nm(t) { +function Pm(t) { const { children: e, query: n, styles: o } = t; if (typeof e != "string") throw new Error("The children prop of Highlight must be a string"); - const r = Mc({ query: n, text: e }); - return /* @__PURE__ */ l.jsx(l.Fragment, { children: r.map((s, a) => s.match ? /* @__PURE__ */ l.jsx(Dc, { sx: o, children: s.text }, a) : /* @__PURE__ */ l.jsx(Gs, { children: s.text }, a)) }); + const r = Tc({ query: n, text: e }); + return /* @__PURE__ */ l.jsx(l.Fragment, { children: r.map((s, a) => s.match ? /* @__PURE__ */ l.jsx(Mc, { sx: o, children: s.text }, a) : /* @__PURE__ */ l.jsx(Hs, { children: s.text }, a)) }); } -var Im = g(function(e, n) { +var Nm = g(function(e, n) { const { offsetX: o, offsetY: r, offset: s = "0", placement: a = "top-end", ...i - } = e, c = J( + } = e, c = Q( () => ({ display: "inline-flex", justifyContent: "center", @@ -4800,7 +4799,7 @@ var Im = g(function(e, n) { [s, o, r, a] ); return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: c, ...i }); -}), Lc = g(function(e, n) { +}), Dc = g(function(e, n) { const o = _e("Kbd", e), { className: r, ...s } = K(e); return /* @__PURE__ */ l.jsx( h.kbd, @@ -4815,8 +4814,8 @@ var Im = g(function(e, n) { } ); }); -Lc.displayName = "Kbd"; -var Em = g( +Dc.displayName = "Kbd"; +var Im = g( function(e, n) { const { isExternal: o, target: r, rel: s, className: a, ...i } = e; return /* @__PURE__ */ l.jsx( @@ -4844,7 +4843,7 @@ var Em = g( } ); } -), jm = g(function(e, n) { +), Em = g(function(e, n) { const { className: o, ...r } = e; return /* @__PURE__ */ l.jsx( h.div, @@ -4862,7 +4861,7 @@ var Em = g( } } ); -}), Fc = g(function(t, e) { +}), Lc = g(function(t, e) { const { ratio: n = 4 / 3, children: o, className: r, ...s } = t, a = Ze.only(o), i = k("chakra-aspect-ratio", r); return /* @__PURE__ */ l.jsx( h.div, @@ -4899,8 +4898,8 @@ var Em = g( } ); }); -Fc.displayName = "AspectRatio"; -var Bc = g(function(e, n) { +Lc.displayName = "AspectRatio"; +var Fc = g(function(e, n) { const o = _e("Badge", e), { className: r, ...s } = K(e); return /* @__PURE__ */ l.jsx( h.span, @@ -4917,16 +4916,16 @@ var Bc = g(function(e, n) { } ); }); -Bc.displayName = "Badge"; -var Rc = h("div", { +Fc.displayName = "Badge"; +var Bc = h("div", { baseStyle: { display: "flex", alignItems: "center", justifyContent: "center" } }); -Rc.displayName = "Center"; -var $c = { +Bc.displayName = "Center"; +var Rc = { horizontal: { insetStart: "50%", transform: "translateX(-50%)" @@ -4940,20 +4939,20 @@ var $c = { top: "50%", transform: "translate(-50%, -50%)" } -}, Am = g( +}, jm = g( function(e, n) { const { axis: o = "both", ...r } = e; return /* @__PURE__ */ l.jsx( h.div, { ref: n, - __css: $c[o], + __css: Rc[o], ...r, position: "absolute" } ); } -), Oc = g(function(e, n) { +), $c = g(function(e, n) { const o = _e("Code", e), { className: r, ...s } = K(e); return /* @__PURE__ */ l.jsx( h.code, @@ -4968,8 +4967,8 @@ var $c = { } ); }); -Oc.displayName = "Code"; -var Vc = g(function(e, n) { +$c.displayName = "Code"; +var Oc = g(function(e, n) { const { className: o, centerContent: r, ...s } = K(e), a = _e("Container", e); return /* @__PURE__ */ l.jsx( h.div, @@ -4988,8 +4987,8 @@ var Vc = g(function(e, n) { } ); }); -Vc.displayName = "Container"; -function dr(t) { +Oc.displayName = "Container"; +function fr(t) { const { breakpoint: e, hide: n, children: o, ssr: r } = t, [s] = Yt(e, { ssr: r }); return (n ? !s : s) ? o : null; } @@ -4997,24 +4996,24 @@ var Yn = (t, e) => { var n, o; return (o = (n = t == null ? void 0 : t.breakpoints) == null ? void 0 : n[e]) != null ? o : e; }; -function fr(t) { +function mr(t) { const { breakpoint: e = "", below: n, above: o } = t, r = Xt(), s = Yn(r, n), a = Yn(r, o); let i = e; return s ? i = `(max-width: ${s})` : a && (i = `(min-width: ${a})`), i; } -function zc(t) { - const { children: e, ssr: n } = t, o = fr(t); - return /* @__PURE__ */ l.jsx(dr, { breakpoint: o, hide: !0, ssr: n, children: e }); +function Vc(t) { + const { children: e, ssr: n } = t, o = mr(t); + return /* @__PURE__ */ l.jsx(fr, { breakpoint: o, hide: !0, ssr: n, children: e }); } -zc.displayName = "Hide"; -function Tm(t) { +Vc.displayName = "Hide"; +function Am(t) { const [e] = Yt( "(prefers-reduced-motion: reduce)", t ); return e; } -function Mm(t) { +function Tm(t) { const [e, n] = Yt( ["(prefers-color-scheme: light)", "(prefers-color-scheme: dark)"], t @@ -5024,23 +5023,23 @@ function Mm(t) { if (n) return "dark"; } -function Hc(t) { - const { children: e, ssr: n } = t, o = fr(t); - return /* @__PURE__ */ l.jsx(dr, { breakpoint: o, ssr: n, children: e }); +function zc(t) { + const { children: e, ssr: n } = t, o = mr(t); + return /* @__PURE__ */ l.jsx(fr, { breakpoint: o, ssr: n, children: e }); } -Hc.displayName = "Show"; -var mr = g((t, e) => { - const { title: n, children: o, className: r, ...s } = t, a = k("chakra-menu__group__title", r), i = ms(); +zc.displayName = "Show"; +var pr = g((t, e) => { + const { title: n, children: o, className: r, ...s } = t, a = k("chakra-menu__group__title", r), i = fs(); return /* @__PURE__ */ l.jsxs("div", { ref: e, className: "chakra-menu__group", role: "group", children: [ n && /* @__PURE__ */ l.jsx(h.p, { className: a, ...s, __css: i.groupTitle, children: n }), o ] }); }); -mr.displayName = "MenuGroup"; -var Gc = (t) => { - const { className: e, title: n, ...o } = t, r = ps(o); +pr.displayName = "MenuGroup"; +var Hc = (t) => { + const { className: e, title: n, ...o } = t, r = ms(o); return /* @__PURE__ */ l.jsx( - mr, + pr, { title: n, className: k("chakra-menu__option-group", e), @@ -5048,29 +5047,29 @@ var Gc = (t) => { } ); }; -Gc.displayName = "MenuOptionGroup"; -var Wc = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 14 14", width: "1em", height: "1em", ...t, children: /* @__PURE__ */ l.jsx( +Hc.displayName = "MenuOptionGroup"; +var Gc = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 14 14", width: "1em", height: "1em", ...t, children: /* @__PURE__ */ l.jsx( "polygon", { fill: "currentColor", points: "5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039" } -) }), pr = g( +) }), hr = g( (t, e) => { - const { icon: n, iconSpacing: o = "0.75rem", ...r } = t, s = hs(r, e); + const { icon: n, iconSpacing: o = "0.75rem", ...r } = t, s = ps(r, e); return /* @__PURE__ */ l.jsxs( - vs, + hs, { ...s, className: k("chakra-menu__menuitem-option", r.className), children: [ n !== null && /* @__PURE__ */ l.jsx( - gs, + vs, { fontSize: "0.8em", marginEnd: o, opacity: t.isChecked ? 1 : 0, - children: n || /* @__PURE__ */ l.jsx(Wc, {}) + children: n || /* @__PURE__ */ l.jsx(Gc, {}) } ), /* @__PURE__ */ l.jsx("span", { style: { flex: 1 }, children: s.children }) @@ -5079,21 +5078,21 @@ var Wc = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 14 14", width: "1em ); } ); -pr.id = "MenuItemOption"; -pr.displayName = "MenuItemOption"; -function Dm(t) { +hr.id = "MenuItemOption"; +hr.displayName = "MenuItemOption"; +function Mm(t) { const { leastDestructiveRef: e, ...n } = t; - return /* @__PURE__ */ l.jsx(bs, { ...n, initialFocusRef: e }); + return /* @__PURE__ */ l.jsx(gs, { ...n, initialFocusRef: e }); } -var Lm = g( - (t, e) => /* @__PURE__ */ l.jsx(ys, { ref: e, role: "alertdialog", ...t }) -), Kc = (t) => /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( +var Dm = g( + (t, e) => /* @__PURE__ */ l.jsx(bs, { ref: e, role: "alertdialog", ...t }) +), Wc = (t) => /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", d: "M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z" } -) }), Uc = (t) => /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( +) }), Kc = (t) => /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", @@ -5112,7 +5111,7 @@ function Zn(t, e, n, o) { return i.observe(t.current, { attributes: !0, attributeFilter: a }), () => i.disconnect(); }); } -function qc(t, e) { +function Uc(t, e) { const n = Se(t); U(() => { let o = null; @@ -5122,31 +5121,31 @@ function qc(t, e) { }; }, [e, n]); } -var Xc = 50, Qn = 300; -function Yc(t, e) { +var qc = 50, Jn = 300; +function Xc(t, e) { const [n, o] = L(!1), [r, s] = L(null), [a, i] = L(!0), c = V(null), u = () => clearTimeout(c.current); - qc( + Uc( () => { r === "increment" && t(), r === "decrement" && e(); }, - n ? Xc : null + n ? qc : null ); const d = x(() => { a && t(), c.current = setTimeout(() => { i(!1), o(!0), s("increment"); - }, Qn); + }, Jn); }, [t, a]), f = x(() => { a && e(), c.current = setTimeout(() => { i(!1), o(!0), s("decrement"); - }, Qn); + }, Jn); }, [e, a]), m = x(() => { i(!0), o(!1), u(); }, []); return U(() => () => u(), []), { up: d, down: f, stop: m, isSpinning: n }; } -var Zc = /^[Ee0-9+\-.]$/; -function Qc(t) { - return Zc.test(t); +var Yc = /^[Ee0-9+\-.]$/; +function Zc(t) { + return Yc.test(t); } function Jc(t, e) { if (t.key == null) @@ -5154,7 +5153,7 @@ function Jc(t, e) { const n = t.ctrlKey || t.altKey || t.metaKey; return !(t.key.length === 1) || n ? !0 : e(t.key); } -function eu(t = {}) { +function Qc(t = {}) { const { focusInputOnChange: e = !0, clampValueOnBlur: n = !0, @@ -5185,8 +5184,8 @@ function eu(t = {}) { parse: M, ...O } = t, R = Se(w), z = Se(P), Y = Se(G), W = Se( - ee ?? Qc - ), Z = Se(F), T = Fl(t), { + ee ?? Zc + ), Z = Se(F), T = Ll(t), { update: ae, increment: me, decrement: ue @@ -5226,7 +5225,7 @@ function eu(t = {}) { q && ue(C); }, [ue, q, a] - ), fe = Yc(te, he); + ), fe = Xc(te, he); Zn( ye, "disabled", @@ -5255,7 +5254,7 @@ function eu(t = {}) { R == null || R(C), ve.current && (C.target.selectionStart = (le = ve.current.start) != null ? le : (X = C.currentTarget.value) == null ? void 0 : X.length, C.currentTarget.selectionEnd = (xe = ve.current.end) != null ? xe : C.currentTarget.selectionStart); }, [R] - ), Q = x( + ), J = x( (C) => { if (C.nativeEvent.isComposing) return; @@ -5272,7 +5271,7 @@ function eu(t = {}) { ), pe = (C) => { let X = 1; return (C.metaKey || C.ctrlKey) && (X = 0.1), C.shiftKey && (X = 10), X; - }, Fe = J(() => { + }, Fe = Q(() => { const C = Z == null ? void 0 : Z(T.value); if (C != null) return C; @@ -5285,23 +5284,23 @@ function eu(t = {}) { /^[eE]/.test(T.value.toString()) ? T.setValue("") : (T.valueAsNumber < r && (C = r), T.valueAsNumber > s && (C = s), T.cast(C)); }, [T, s, r]), ut = x(() => { de(!1), n && We(); - }, [n, de, We]), Je = x(() => { + }, [n, de, We]), Qe = x(() => { e && requestAnimationFrame(() => { var C; (C = se.current) == null || C.focus(); }); }, [e]), Pn = x( (C) => { - C.preventDefault(), fe.up(), Je(); + C.preventDefault(), fe.up(), Qe(); }, - [Je, fe] + [Qe, fe] ), Nn = x( (C) => { - C.preventDefault(), fe.down(), Je(); + C.preventDefault(), fe.down(), Qe(); }, - [Je, fe] + [Qe, fe] ); - uo( + fo( () => se.current, "wheel", (C) => { @@ -5315,7 +5314,7 @@ function eu(t = {}) { }, { passive: !1 } ); - const Fr = x( + const Br = x( (C = {}, X = null) => { const le = c || o && T.isAtMax; return { @@ -5333,7 +5332,7 @@ function eu(t = {}) { }; }, [T.isAtMax, o, Pn, fe.stop, c] - ), Br = x( + ), Rr = x( (C = {}, X = null) => { const le = c || o && T.isAtMin; return { @@ -5351,7 +5350,7 @@ function eu(t = {}) { }; }, [T.isAtMin, o, Nn, fe.stop, c] - ), Rr = x( + ), $r = x( (C = {}, X = null) => { var le, xe, Be, et; return { @@ -5380,7 +5379,7 @@ function eu(t = {}) { autoComplete: "off", autoCorrect: "off", onChange: A(C.onChange, N), - onKeyDown: A(C.onKeyDown, Q), + onKeyDown: A(C.onKeyDown, J), onFocus: A( C.onFocus, oe, @@ -5409,7 +5408,7 @@ function eu(t = {}) { s, Fe, N, - Q, + J, oe, z, ut @@ -5421,22 +5420,22 @@ function eu(t = {}) { isFocused: re, isDisabled: c, isReadOnly: i, - getIncrementButtonProps: Fr, - getDecrementButtonProps: Br, - getInputProps: Rr, + getIncrementButtonProps: Br, + getDecrementButtonProps: Rr, + getInputProps: $r, htmlProps: O }; } -var [tu, wt] = ne({ +var [eu, wt] = ne({ name: "NumberInputStylesContext", errorMessage: `useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [nu, _n] = ne({ +}), [tu, _n] = ne({ name: "NumberInputContext", errorMessage: "useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within " -}), ou = g( +}), nu = g( function(e, n) { - const o = ie("NumberInput", e), r = K(e), s = lo(r), { htmlProps: a, ...i } = eu(s), c = J(() => i, [i]); - return /* @__PURE__ */ l.jsx(nu, { value: c, children: /* @__PURE__ */ l.jsx(tu, { value: o, children: /* @__PURE__ */ l.jsx( + const o = ie("NumberInput", e), r = K(e), s = co(r), { htmlProps: a, ...i } = Qc(s), c = Q(() => i, [i]); + return /* @__PURE__ */ l.jsx(tu, { value: c, children: /* @__PURE__ */ l.jsx(eu, { value: o, children: /* @__PURE__ */ l.jsx( h.div, { ...a, @@ -5451,8 +5450,8 @@ var [tu, wt] = ne({ ) }) }); } ); -ou.displayName = "NumberInput"; -var ru = g( +nu.displayName = "NumberInput"; +var ou = g( function(e, n) { const o = wt(); return /* @__PURE__ */ l.jsx( @@ -5476,8 +5475,8 @@ var ru = g( ); } ); -ru.displayName = "NumberInputStepper"; -var su = g( +ou.displayName = "NumberInputStepper"; +var ru = g( function(e, n) { const { getInputProps: o } = _n(), r = o(e, n), s = wt(); return /* @__PURE__ */ l.jsx( @@ -5493,8 +5492,8 @@ var su = g( ); } ); -su.displayName = "NumberInputField"; -var hr = h("div", { +ru.displayName = "NumberInputField"; +var vr = h("div", { baseStyle: { display: "flex", justifyContent: "center", @@ -5506,31 +5505,31 @@ var hr = h("div", { cursor: "pointer", lineHeight: "normal" } -}), au = g(function(e, n) { +}), su = g(function(e, n) { var o; const r = wt(), { getDecrementButtonProps: s } = _n(), a = s(e, n); - return /* @__PURE__ */ l.jsx(hr, { ...a, __css: r.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Kc, {}) }); + return /* @__PURE__ */ l.jsx(vr, { ...a, __css: r.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Wc, {}) }); }); -au.displayName = "NumberDecrementStepper"; -var iu = g(function(e, n) { +su.displayName = "NumberDecrementStepper"; +var au = g(function(e, n) { var o; const { getIncrementButtonProps: r } = _n(), s = r(e, n), a = wt(); - return /* @__PURE__ */ l.jsx(hr, { ...s, __css: a.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Uc, {}) }); + return /* @__PURE__ */ l.jsx(vr, { ...s, __css: a.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Kc, {}) }); }); -iu.displayName = "NumberIncrementStepper"; +au.displayName = "NumberIncrementStepper"; var [ + iu, + Lm, lu, - Fm, - cu, - uu -] = Kt(), [du, fu] = ne({ + cu +] = Kt(), [uu, du] = ne({ name: "PinInputContext", errorMessage: "usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within ``" -}), Jn = (t) => t == null ? void 0 : t.split(""); +}), Qn = (t) => t == null ? void 0 : t.split(""); function eo(t, e) { return (e === "alphanumeric" ? /^[a-zA-Z0-9]+$/i : /^[0-9]+$/).test(t); } -function mu(t = {}) { +function fu(t = {}) { const { autoFocus: e, value: n, @@ -5545,9 +5544,9 @@ function mu(t = {}) { isInvalid: f, type: m = "number", mask: p - } = t, b = Ve(), y = u ?? `pin-input-${b}`, v = cu(), [_, S] = L(!0), [E, I] = L(-1), [w, P] = ot({ - defaultValue: Jn(o) || [], - value: Jn(n), + } = t, b = Ve(), y = u ?? `pin-input-${b}`, v = lu(), [_, S] = L(!0), [E, I] = L(-1), [w, P] = ot({ + defaultValue: Qn(o) || [], + value: Qn(n), onChange: (O) => r == null ? void 0 : r(O.join("")) }); U(() => { @@ -5661,24 +5660,24 @@ function mu(t = {}) { clear: ee }; } -function pu(t = {}, e = null) { - const { getInputProps: n } = fu(), { index: o, register: r } = uu(); +function mu(t = {}, e = null) { + const { getInputProps: n } = du(), { index: o, register: r } = cu(); return n({ ...t, ref: ce(r, e), index: o }); } -function hu(t) { - const e = _e("PinInput", t), { children: n, ...o } = K(t), { descendants: r, ...s } = mu(o), a = Oe(n).map( +function pu(t) { + const e = _e("PinInput", t), { children: n, ...o } = K(t), { descendants: r, ...s } = fu(o), a = Oe(n).map( (i) => ge(i, { __css: e }) ); - return /* @__PURE__ */ l.jsx(lu, { value: r, children: /* @__PURE__ */ l.jsx(du, { value: s, children: a }) }); + return /* @__PURE__ */ l.jsx(iu, { value: r, children: /* @__PURE__ */ l.jsx(uu, { value: s, children: a }) }); } -hu.displayName = "PinInput"; -var vu = g( +pu.displayName = "PinInput"; +var hu = g( function(e, n) { - const o = pu(e, n); + const o = mu(e, n); return /* @__PURE__ */ l.jsx( h.input, { @@ -5688,16 +5687,16 @@ var vu = g( ); } ); -vu.displayName = "PinInputField"; -var [gu, De] = ne({ +hu.displayName = "PinInputField"; +var [vu, De] = ne({ name: "PopoverContext", errorMessage: "usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``" -}), [bu, Qe] = ne({ +}), [gu, Je] = ne({ name: "PopoverStylesContext", errorMessage: `usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), yu = g( +}), bu = g( function(e, n) { - const { getHeaderProps: o } = De(), r = Qe(); + const { getHeaderProps: o } = De(), r = Je(); return /* @__PURE__ */ l.jsx( h.header, { @@ -5708,17 +5707,17 @@ var [gu, De] = ne({ ); } ); -yu.displayName = "PopoverHeader"; -function xu(t) { +bu.displayName = "PopoverHeader"; +function yu(t) { const e = Ze.only(t.children), { getTriggerProps: n } = De(); return ge(e, n(e.props, e.ref)); } -xu.displayName = "PopoverTrigger"; +yu.displayName = "PopoverTrigger"; var qe = { click: "click", hover: "hover" }; -function Su(t = {}) { +function xu(t = {}) { const { closeOnBlur: e = !0, closeOnEsc: n = !0, @@ -5735,7 +5734,7 @@ function Su(t = {}) { lazyBehavior: p = "unmount", computePositionOnMount: b, ...y - } = t, { isOpen: v, onClose: _, onOpen: S, onToggle: E } = xs(t), I = V(null), w = V(null), P = V(null), G = V(!1), F = V(!1); + } = t, { isOpen: v, onClose: _, onOpen: S, onToggle: E } = ys(t), I = V(null), w = V(null), P = V(null), G = V(!1), F = V(!1); v && (F.current = !0); const [ee, D] = L(!1), [M, O] = L(!1), R = Ve(), z = r ?? R, [Y, W, Z, T] = [ "popover-trigger", @@ -5748,30 +5747,30 @@ function Su(t = {}) { getPopperProps: ue, getArrowInnerProps: re, forceUpdate: de - } = Ss({ + } = xs({ ...y, enabled: v || !!b - }), q = _s({ isOpen: v, ref: P }); + }), q = Ss({ isOpen: v, ref: P }); Qo({ enabled: v, ref: w - }), ks(P, { + }), _s(P, { focusRef: w, visible: v, shouldFocus: s && u === qe.click - }), Cs(P, { + }), ks(P, { focusRef: o, visible: v, shouldFocus: a && u === qe.click }); - const se = mo({ + const se = po({ wasSelected: F.current, enabled: m, mode: p, isSelected: q.present }), ve = x( (N = {}, oe = null) => { - const Q = { + const J = { ...N, style: { ...N.style, @@ -5794,14 +5793,14 @@ function Su(t = {}) { "aria-labelledby": ee ? Z : void 0, "aria-describedby": M ? T : void 0 }; - return u === qe.hover && (Q.role = "tooltip", Q.onMouseEnter = A(N.onMouseEnter, () => { + return u === qe.hover && (J.role = "tooltip", J.onMouseEnter = A(N.onMouseEnter, () => { G.current = !0; - }), Q.onMouseLeave = A( + }), J.onMouseLeave = A( N.onMouseLeave, (pe) => { pe.nativeEvent.relatedTarget !== null && (G.current = !1, setTimeout(() => _(), f)); } - )), Q; + )), J; }, [ se, @@ -5845,7 +5844,7 @@ function Su(t = {}) { [ae] ), te = x( (N = {}, oe = null) => { - const Q = { + const J = { ...N, ref: ce(w, oe, B), id: Y, @@ -5853,20 +5852,20 @@ function Su(t = {}) { "aria-expanded": v, "aria-controls": W }; - return u === qe.click && (Q.onClick = A(N.onClick, E)), u === qe.hover && (Q.onFocus = A(N.onFocus, () => { + return u === qe.click && (J.onClick = A(N.onClick, E)), u === qe.hover && (J.onFocus = A(N.onFocus, () => { j.current === void 0 && S(); - }), Q.onBlur = A(N.onBlur, (pe) => { + }), J.onBlur = A(N.onBlur, (pe) => { const Fe = to(pe), We = !Dt(P.current, Fe); v && e && We && _(); - }), Q.onKeyDown = A(N.onKeyDown, (pe) => { + }), J.onKeyDown = A(N.onKeyDown, (pe) => { pe.key === "Escape" && _(); - }), Q.onMouseEnter = A(N.onMouseEnter, () => { + }), J.onMouseEnter = A(N.onMouseEnter, () => { G.current = !0, j.current = window.setTimeout(() => S(), d); - }), Q.onMouseLeave = A(N.onMouseLeave, () => { + }), J.onMouseLeave = A(N.onMouseLeave, () => { G.current = !1, j.current && (clearTimeout(j.current), j.current = void 0), H.current = window.setTimeout(() => { G.current === !1 && _(); }, f); - })), Q; + })), J; }, [ Y, @@ -5889,8 +5888,8 @@ function Su(t = {}) { (N = {}, oe = null) => ({ ...N, id: Z, - ref: ce(oe, (Q) => { - D(!!Q); + ref: ce(oe, (J) => { + D(!!J); }) }), [Z] @@ -5898,8 +5897,8 @@ function Su(t = {}) { (N = {}, oe = null) => ({ ...N, id: T, - ref: ce(oe, (Q) => { - O(!!Q); + ref: ce(oe, (J) => { + O(!!J); }) }), [T] @@ -5927,24 +5926,24 @@ function to(t) { const n = t.currentTarget.ownerDocument.activeElement; return (e = t.relatedTarget) != null ? e : n; } -function _u(t) { - const e = ie("Popover", t), { children: n, ...o } = K(t), r = Xt(), s = Su({ ...o, direction: r.direction }); - return /* @__PURE__ */ l.jsx(gu, { value: s, children: /* @__PURE__ */ l.jsx(bu, { value: e, children: Te(n, { +function Su(t) { + const e = ie("Popover", t), { children: n, ...o } = K(t), r = Xt(), s = xu({ ...o, direction: r.direction }); + return /* @__PURE__ */ l.jsx(vu, { value: s, children: /* @__PURE__ */ l.jsx(gu, { value: e, children: Te(n, { isOpen: s.isOpen, onClose: s.onClose, forceUpdate: s.forceUpdate }) }) }); } -_u.displayName = "Popover"; -function ku(t) { +Su.displayName = "Popover"; +function _u(t) { const e = Ze.only(t.children), { getAnchorProps: n } = De(); return ge(e, n(e.props, e.ref)); } -ku.displayName = "PopoverAnchor"; +_u.displayName = "PopoverAnchor"; var Lt = (t, e) => e ? `${t}.${e}, ${e}` : void 0; -function Cu(t) { +function ku(t) { var e; - const { bg: n, bgColor: o, backgroundColor: r, shadow: s, boxShadow: a, shadowColor: i } = t, { getArrowProps: c, getArrowInnerProps: u } = De(), d = Qe(), f = (e = n ?? o) != null ? e : r, m = s ?? a; + const { bg: n, bgColor: o, backgroundColor: r, shadow: s, boxShadow: a, shadowColor: i } = t, { getArrowProps: c, getArrowInnerProps: u } = De(), d = Je(), f = (e = n ?? o) != null ? e : r, m = s ?? a; return /* @__PURE__ */ l.jsx( h.div, { @@ -5966,10 +5965,10 @@ function Cu(t) { } ); } -Cu.displayName = "PopoverArrow"; -var wu = g( +ku.displayName = "PopoverArrow"; +var Cu = g( function(e, n) { - const { getBodyProps: o } = De(), r = Qe(); + const { getBodyProps: o } = De(), r = Je(); return /* @__PURE__ */ l.jsx( h.div, { @@ -5980,10 +5979,10 @@ var wu = g( ); } ); -wu.displayName = "PopoverBody"; -var Pu = g( +Cu.displayName = "PopoverBody"; +var wu = g( function(e, n) { - const { onClose: o } = De(), r = Qe(); + const { onClose: o } = De(), r = Je(); return /* @__PURE__ */ l.jsx( Wt, { @@ -5997,8 +5996,8 @@ var Pu = g( ); } ); -Pu.displayName = "PopoverCloseButton"; -function Nu(t) { +wu.displayName = "PopoverCloseButton"; +function Pu(t) { if (t) return { enter: { @@ -6013,7 +6012,7 @@ function Nu(t) { } }; } -var Iu = { +var Nu = { exit: { opacity: 0, scale: 0.95, @@ -6030,23 +6029,23 @@ var Iu = { ease: [0, 0, 0.2, 1] } } -}, Eu = h(Gt.section), vr = g(function(e, n) { - const { variants: o = Iu, ...r } = e, { isOpen: s } = De(); +}, Iu = h(Gt.section), gr = g(function(e, n) { + const { variants: o = Nu, ...r } = e, { isOpen: s } = De(); return /* @__PURE__ */ l.jsx( - Eu, + Iu, { ref: n, - variants: Nu(o), + variants: Pu(o), initial: !1, animate: s ? "enter" : "exit", ...r } ); }); -vr.displayName = "PopoverTransition"; -var ju = g( +gr.displayName = "PopoverTransition"; +var Eu = g( function(e, n) { - const { rootProps: o, motionProps: r, ...s } = e, { getPopoverProps: a, getPopoverPositionerProps: i, onAnimationComplete: c } = De(), u = Qe(), d = { + const { rootProps: o, motionProps: r, ...s } = e, { getPopoverProps: a, getPopoverPositionerProps: i, onAnimationComplete: c } = De(), u = Je(), d = { position: "relative", display: "flex", flexDirection: "column", @@ -6059,7 +6058,7 @@ var ju = g( __css: u.popper, className: "chakra-popover__popper", children: /* @__PURE__ */ l.jsx( - vr, + gr, { ...r, ...a(s, n), @@ -6075,9 +6074,9 @@ var ju = g( ); } ); -ju.displayName = "PopoverContent"; -function Au(t) { - const e = Qe(); +Eu.displayName = "PopoverContent"; +function ju(t) { + const e = Je(); return /* @__PURE__ */ l.jsx( h.footer, { @@ -6087,8 +6086,8 @@ function Au(t) { } ); } -Au.displayName = "PopoverFooter"; -var Tu = h("div", { +ju.displayName = "PopoverFooter"; +var Au = h("div", { baseStyle: { fontSize: "0.24em", top: "50%", @@ -6099,13 +6098,13 @@ var Tu = h("div", { transform: "translate(-50%, -50%)" } }); -Tu.displayName = "CircularProgressLabel"; +Au.displayName = "CircularProgressLabel"; var Vt = (t) => /* @__PURE__ */ l.jsx(h.circle, { cx: 50, cy: 50, r: 42, fill: "transparent", ...t }); Vt.displayName = "Circle"; -function Mu(t, e, n) { +function Tu(t, e, n) { return (t - e) * 100 / (n - e); } -var Du = Ee({ +var Mu = Ee({ "0%": { strokeDasharray: "1, 400", strokeDashoffset: "0" @@ -6118,21 +6117,21 @@ var Du = Ee({ strokeDasharray: "400, 400", strokeDashoffset: "-260" } -}), Lu = Ee({ +}), Du = Ee({ "0%": { transform: "rotate(0deg)" }, "100%": { transform: "rotate(360deg)" } -}), Fu = Ee({ +}), Lu = Ee({ "0%": { left: "-40%" }, "100%": { left: "100%" } -}), Bu = Ee({ +}), Fu = Ee({ from: { backgroundPosition: "1rem 0" }, to: { backgroundPosition: "0 0" } }); -function gr(t) { +function br(t) { const { value: e = 0, min: n, @@ -6141,7 +6140,7 @@ function gr(t) { getValueText: s, isIndeterminate: a, role: i = "progressbar" - } = t, c = Mu(e, n, o); + } = t, c = Tu(e, n, o); return { bind: { "data-indeterminate": a ? "" : void 0, @@ -6158,7 +6157,7 @@ function gr(t) { value: e }; } -var br = (t) => { +var yr = (t) => { const { size: e, isIndeterminate: n, ...o } = t; return /* @__PURE__ */ l.jsx( h.svg, @@ -6167,14 +6166,14 @@ var br = (t) => { __css: { width: e, height: e, - animation: n ? `${Lu} 2s linear infinite` : void 0 + animation: n ? `${Du} 2s linear infinite` : void 0 }, ...o } ); }; -br.displayName = "Shape"; -var Ru = g( +yr.displayName = "Shape"; +var Bu = g( (t, e) => { var n; const { @@ -6191,7 +6190,7 @@ var Ru = g( trackColor: p = "#edebe9", isIndeterminate: b, ...y - } = t, v = gr({ + } = t, v = br({ min: s, max: r, value: c, @@ -6199,7 +6198,7 @@ var Ru = g( getValueText: i, isIndeterminate: b }), _ = b ? void 0 : ((n = v.percent) != null ? n : 0) * 2.64, S = _ == null ? void 0 : `${_} ${264 - _}`, E = b ? { - css: { animation: `${Du} 1.5s linear infinite` } + css: { animation: `${Mu} 1.5s linear infinite` } } : { strokeDashoffset: 66, strokeDasharray: S, @@ -6221,7 +6220,7 @@ var Ru = g( ...y, __css: I, children: [ - /* @__PURE__ */ l.jsxs(br, { size: o, isIndeterminate: b, children: [ + /* @__PURE__ */ l.jsxs(yr, { size: o, isIndeterminate: b, children: [ /* @__PURE__ */ l.jsx( Vt, { @@ -6248,13 +6247,13 @@ var Ru = g( ); } ); -Ru.displayName = "CircularProgress"; -var [$u, yr] = ne({ +Bu.displayName = "CircularProgress"; +var [Ru, xr] = ne({ name: "ProgressStylesContext", errorMessage: `useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Ou = g( +}), $u = g( (t, e) => { - const { min: n, max: o, value: r, isIndeterminate: s, role: a, ...i } = t, c = gr({ + const { min: n, max: o, value: r, isIndeterminate: s, role: a, ...i } = t, c = br({ value: r, min: n, max: o, @@ -6262,7 +6261,7 @@ var [$u, yr] = ne({ role: a }), d = { height: "100%", - ...yr().filledTrack + ...xr().filledTrack }; return /* @__PURE__ */ l.jsx( h.div, @@ -6275,7 +6274,7 @@ var [$u, yr] = ne({ } ); } -), Vu = g((t, e) => { +), Ou = g((t, e) => { var n; const { value: o, @@ -6292,13 +6291,13 @@ var [$u, yr] = ne({ title: b, role: y, ...v - } = K(t), _ = ie("Progress", t), S = u ?? ((n = _.track) == null ? void 0 : n.borderRadius), E = { animation: `${Bu} 1s linear infinite` }, P = { + } = K(t), _ = ie("Progress", t), S = u ?? ((n = _.track) == null ? void 0 : n.borderRadius), E = { animation: `${Fu} 1s linear infinite` }, P = { ...!d && a && i && E, ...d && { position: "absolute", willChange: "left", minWidth: "50%", - animation: `${Fu} 1s ease infinite normal none running` + animation: `${Lu} 1s ease infinite normal none running` } }, G = { overflow: "hidden", @@ -6312,9 +6311,9 @@ var [$u, yr] = ne({ borderRadius: S, __css: G, ...v, - children: /* @__PURE__ */ l.jsxs($u, { value: _, children: [ + children: /* @__PURE__ */ l.jsxs(Ru, { value: _, children: [ /* @__PURE__ */ l.jsx( - Ou, + $u, { "aria-label": f, "aria-labelledby": m, @@ -6334,8 +6333,8 @@ var [$u, yr] = ne({ } ); }); -Vu.displayName = "Progress"; -var zu = (t) => { +Ou.displayName = "Progress"; +var Vu = (t) => { const n = { top: "50%", left: "50%", @@ -6343,15 +6342,15 @@ var zu = (t) => { textAlign: "center", position: "absolute", transform: "translate(-50%, -50%)", - ...yr().label + ...xr().label }; return /* @__PURE__ */ l.jsx(h.div, { ...t, __css: n }); }; -zu.displayName = "ProgressLabel"; -function Hu(t) { +Vu.displayName = "ProgressLabel"; +function zu(t) { return t && Re(t) && Re(t.target); } -function Gu(t = {}) { +function Hu(t = {}) { const { onChange: e, value: n, @@ -6378,7 +6377,7 @@ function Gu(t = {}) { F == null || F.focus(); }, []), v = `radio-${Ve()}`, _ = r || v, S = x( (w) => { - const P = Hu(w) ? w.target.value : w; + const P = zu(w) ? w.target.value : w; f || d(P), e == null || e(String(P)); }, [e, f] @@ -6416,10 +6415,10 @@ function Gu(t = {}) { htmlProps: c }; } -var [Wu, xr] = ne({ +var [Gu, Sr] = ne({ name: "RadioGroupContext", strict: !1 -}), Ku = g((t, e) => { +}), Wu = g((t, e) => { const { colorScheme: n, size: o, @@ -6429,7 +6428,7 @@ var [Wu, xr] = ne({ isDisabled: i, isFocusable: c, ...u - } = t, { value: d, onChange: f, getRootProps: m, name: p, htmlProps: b } = Gu(u), y = J( + } = t, { value: d, onChange: f, getRootProps: m, name: p, htmlProps: b } = Hu(u), y = Q( () => ({ name: p, size: o, @@ -6451,7 +6450,7 @@ var [Wu, xr] = ne({ c ] ); - return /* @__PURE__ */ l.jsx(Wu, { value: y, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(Gu, { value: y, children: /* @__PURE__ */ l.jsx( h.div, { ...m(b, e), @@ -6460,8 +6459,8 @@ var [Wu, xr] = ne({ } ) }); }); -Ku.displayName = "RadioGroup"; -var Uu = { +Wu.displayName = "RadioGroup"; +var Ku = { border: "0", clip: "rect(0, 0, 0, 0)", height: "1px", @@ -6472,7 +6471,7 @@ var Uu = { whiteSpace: "nowrap", position: "absolute" }; -function qu(t = {}) { +function Uu(t = {}) { const { defaultChecked: e, isChecked: n, @@ -6488,11 +6487,11 @@ function qu(t = {}) { "data-radiogroup": m, "aria-describedby": p, ...b - } = t, y = `radio-${Ve()}`, v = ws(), S = !!xr() || !!m; + } = t, y = `radio-${Ve()}`, v = Cs(), S = !!Sr() || !!m; let I = !!v && !S ? v.id : y; I = f ?? I; const w = r ?? (v == null ? void 0 : v.isDisabled), P = s ?? (v == null ? void 0 : v.isReadOnly), G = a ?? (v == null ? void 0 : v.isRequired), F = c ?? (v == null ? void 0 : v.isInvalid), [ee, D] = L(!1), [M, O] = L(!1), [R, z] = L(!1), [Y, W] = L(!1), [Z, T] = L(!!e), ae = typeof n < "u", me = ae ? n : Z; - U(() => qo(D), []); + U(() => Xo(D), []); const ue = x( (B) => { if (P || w) { @@ -6578,7 +6577,7 @@ function qu(t = {}) { "aria-required": Ne(G), "data-readonly": $(P), "aria-describedby": p, - style: Uu + style: Ku }; }, [ @@ -6619,7 +6618,7 @@ function qu(t = {}) { getLabelProps: (B = {}, te = null) => ({ ...B, ref: te, - onMouseDown: A(B.onMouseDown, Xu), + onMouseDown: A(B.onMouseDown, qu), "data-disabled": $(w), "data-checked": $(me), "data-invalid": $(F) @@ -6634,18 +6633,18 @@ function qu(t = {}) { htmlProps: b }; } -function Xu(t) { +function qu(t) { t.preventDefault(), t.stopPropagation(); } -function Yu(t, e) { +function Xu(t, e) { const n = {}, o = {}; for (const [r, s] of Object.entries(t)) e.includes(r) ? n[r] = s : o[r] = s; return [n, o]; } -var Zu = g((t, e) => { +var Yu = g((t, e) => { var n; - const o = xr(), { onChange: r, value: s } = t, a = ie("Radio", { ...o, ...t }), i = K(t), { + const o = Sr(), { onChange: r, value: s } = t, a = ie("Radio", { ...o, ...t }), i = K(t), { spacing: c = "0.5rem", children: u, isDisabled: d = o == null ? void 0 : o.isDisabled, @@ -6663,14 +6662,14 @@ var Zu = g((t, e) => { getLabelProps: E, getRootProps: I, htmlProps: w - } = qu({ + } = Uu({ ...p, isChecked: b, isFocusable: f, isDisabled: d, onChange: y, name: v - }), [P, G] = Yu(w, po), F = S(G), ee = _(m, e), D = E(), M = Object.assign({}, P, I()), O = { + }), [P, G] = Xu(w, ho), F = S(G), ee = _(m, e), D = E(), M = Object.assign({}, P, I()), O = { display: "inline-flex", alignItems: "center", verticalAlign: "top", @@ -6709,8 +6708,8 @@ var Zu = g((t, e) => { ) ] }); }); -Zu.displayName = "Radio"; -var Sr = g( +Yu.displayName = "Radio"; +var _r = g( function(e, n) { const { children: o, placeholder: r, className: s, ...a } = e; return /* @__PURE__ */ l.jsxs( @@ -6727,8 +6726,8 @@ var Sr = g( ); } ); -Sr.displayName = "SelectField"; -function Qu(t, e) { +_r.displayName = "SelectField"; +function Zu(t, e) { const n = {}, o = {}; for (const [r, s] of Object.entries(t)) e.includes(r) ? n[r] = s : o[r] = s; @@ -6748,7 +6747,7 @@ var Ju = g((t, e) => { iconColor: m, iconSize: p, ...b - } = K(t), [y, v] = Qu(b, po), _ = qt(v), S = { + } = K(t), [y, v] = Zu(b, ho), _ = qt(v), S = { width: "100%", height: "fit-content", position: "relative", @@ -6770,7 +6769,7 @@ var Ju = g((t, e) => { ...r, children: [ /* @__PURE__ */ l.jsx( - Sr, + _r, { ref: e, height: u ?? c, @@ -6782,7 +6781,7 @@ var Ju = g((t, e) => { } ), /* @__PURE__ */ l.jsx( - _r, + kr, { "data-disabled": $(_.disabled), ...(m || i) && { color: m || i }, @@ -6796,13 +6795,13 @@ var Ju = g((t, e) => { ); }); Ju.displayName = "Select"; -var ed = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( +var Qu = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" } -) }), td = h("div", { +) }), ed = h("div", { baseStyle: { position: "absolute", display: "inline-flex", @@ -6812,8 +6811,8 @@ var ed = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 24 24", ...t, child top: "50%", transform: "translateY(-50%)" } -}), _r = (t) => { - const { children: e = /* @__PURE__ */ l.jsx(ed, {}), ...n } = t, o = ge(e, { +}), kr = (t) => { + const { children: e = /* @__PURE__ */ l.jsx(Qu, {}), ...n } = t, o = ge(e, { role: "presentation", className: "chakra-select__icon", focusable: !1, @@ -6825,22 +6824,22 @@ var ed = (t) => /* @__PURE__ */ l.jsx("svg", { viewBox: "0 0 24 24", ...t, child color: "currentColor" } }); - return /* @__PURE__ */ l.jsx(td, { ...n, className: "chakra-select__icon-wrapper", children: Zt(e) ? o : null }); + return /* @__PURE__ */ l.jsx(ed, { ...n, className: "chakra-select__icon-wrapper", children: Zt(e) ? o : null }); }; -_r.displayName = "SelectIcon"; -function nd() { +kr.displayName = "SelectIcon"; +function td() { const t = V(!0); return U(() => { t.current = !1; }, []), t.current; } -function od(t) { +function nd(t) { const e = V(); return U(() => { e.current = t; }, [t]), e.current; } -var rd = h("div", { +var od = h("div", { baseStyle: { boxShadow: "none", backgroundClip: "padding-box", @@ -6852,10 +6851,10 @@ var rd = h("div", { visibility: "hidden" } } -}), zt = ho("skeleton-start-color"), Ht = ho("skeleton-end-color"), sd = Ee({ +}), zt = vo("skeleton-start-color"), Ht = vo("skeleton-end-color"), rd = Ee({ from: { opacity: 0 }, to: { opacity: 1 } -}), ad = Ee({ +}), sd = Ee({ from: { borderColor: zt.reference, background: zt.reference @@ -6869,7 +6868,7 @@ var rd = h("div", { ...t, fadeDuration: typeof t.fadeDuration == "number" ? t.fadeDuration : 0.4, speed: typeof t.speed == "number" ? t.speed : 0.8 - }, o = _e("Skeleton", n), r = nd(), { + }, o = _e("Skeleton", n), r = td(), { startColor: s = "", endColor: a = "", isLoaded: i, @@ -6878,15 +6877,15 @@ var rd = h("div", { className: d, fitContent: f, ...m - } = K(n), [p, b] = Ps("colors", [ + } = K(n), [p, b] = ws("colors", [ s, a - ]), y = od(i), v = k("chakra-skeleton", d), _ = { + ]), y = nd(i), v = k("chakra-skeleton", d), _ = { ...p && { [zt.variable]: p }, ...b && { [Ht.variable]: b } }; if (i) { - const S = r || y ? "none" : `${sd} ${c}s`; + const S = r || y ? "none" : `${rd} ${c}s`; return /* @__PURE__ */ l.jsx( h.div, { @@ -6898,7 +6897,7 @@ var rd = h("div", { ); } return /* @__PURE__ */ l.jsx( - rd, + od, { ref: e, className: v, @@ -6908,21 +6907,21 @@ var rd = h("div", { ...o, ..._, _dark: { ...o._dark, ..._ }, - animation: `${u}s linear infinite alternate ${ad}` + animation: `${u}s linear infinite alternate ${sd}` } } ); }); kn.displayName = "Skeleton"; -var id = ({ +var ad = ({ size: t = "2rem", ...e }) => /* @__PURE__ */ l.jsx(kn, { borderRadius: "full", boxSize: t, ...e }); -id.displayName = "SkeletonCircle"; -function ld(t) { +ad.displayName = "SkeletonCircle"; +function id(t) { return Array(t).fill(1).map((e, n) => n + 1); } -var no = 3, cd = (t) => { +var no = 3, ld = (t) => { const { noOfLines: e = no, spacing: n = "0.5rem", @@ -6938,9 +6937,9 @@ var no = 3, cd = (t) => { colorScheme: m, children: p, ...b - } = t, y = Ns( + } = t, y = Ps( typeof e == "number" ? [e] : e - ) || no, v = ld(y), _ = (E) => y > 1 && E === v.length ? "80%" : "100%", S = k("chakra-skeleton__group", r); + ) || no, v = id(y), _ = (E) => y > 1 && E === v.length ? "80%" : "100%", S = k("chakra-skeleton__group", r); return /* @__PURE__ */ l.jsx(h.div, { className: S, ...b, children: v.map((E, I) => { if (i && I > 0) return null; @@ -6968,9 +6967,9 @@ var no = 3, cd = (t) => { ); }) }); }; -cd.displayName = "SkeletonText"; -var kr = "chakra-skip-nav"; -function ud(t) { +ld.displayName = "SkeletonText"; +var Cr = "chakra-skip-nav"; +function cd(t) { return { userSelect: "none", border: "0", @@ -6991,16 +6990,16 @@ function ud(t) { } }; } -var dd = g( +var ud = g( function(e, n) { - const o = _e("SkipLink", e), { id: r = kr, ...s } = K(e); - return /* @__PURE__ */ l.jsx(h.a, { ...s, ref: n, href: `#${r}`, __css: ud(o) }); + const o = _e("SkipLink", e), { id: r = Cr, ...s } = K(e); + return /* @__PURE__ */ l.jsx(h.a, { ...s, ref: n, href: `#${r}`, __css: cd(o) }); } ); -dd.displayName = "SkipNavLink"; -var fd = g( +ud.displayName = "SkipNavLink"; +var dd = g( function(e, n) { - const { id: o = kr, ...r } = e; + const { id: o = Cr, ...r } = e; return /* @__PURE__ */ l.jsx( h.div, { @@ -7013,17 +7012,17 @@ var fd = g( ); } ); -fd.displayName = "SkipNavContent"; -var [md, Pt] = ne({ +dd.displayName = "SkipNavContent"; +var [fd, Pt] = ne({ name: "StatStylesContext", errorMessage: `useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), pd = g(function(e, n) { +}), md = g(function(e, n) { const o = ie("Stat", e), r = { position: "relative", flex: "1 1 0%", ...o.container }, { className: s, children: a, ...i } = K(e); - return /* @__PURE__ */ l.jsx(md, { value: o, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(fd, { value: o, children: /* @__PURE__ */ l.jsx( h.div, { ref: n, @@ -7034,16 +7033,16 @@ var [md, Pt] = ne({ } ) }); }); -pd.displayName = "Stat"; -var Cr = (t) => /* @__PURE__ */ l.jsx(be, { color: "red.400", ...t, children: /* @__PURE__ */ l.jsx( +md.displayName = "Stat"; +var wr = (t) => /* @__PURE__ */ l.jsx(be, { color: "red.400", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", d: "M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z" } ) }); -Cr.displayName = "StatDownArrow"; -function wr(t) { +wr.displayName = "StatDownArrow"; +function Pr(t) { return /* @__PURE__ */ l.jsx(be, { color: "green.400", ...t, children: /* @__PURE__ */ l.jsx( "path", { @@ -7052,16 +7051,16 @@ function wr(t) { } ) }); } -wr.displayName = "StatUpArrow"; -function hd(t) { - const { type: e, "aria-label": n, ...o } = t, r = Pt(), s = e === "increase" ? wr : Cr, i = n || (e === "increase" ? "increased by" : "decreased by"); +Pr.displayName = "StatUpArrow"; +function pd(t) { + const { type: e, "aria-label": n, ...o } = t, r = Pt(), s = e === "increase" ? Pr : wr, i = n || (e === "increase" ? "increased by" : "decreased by"); return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [ /* @__PURE__ */ l.jsx(h.span, { srOnly: !0, children: i }), /* @__PURE__ */ l.jsx(s, { "aria-hidden": !0, ...o, __css: r.icon }) ] }); } -hd.displayName = "StatArrow"; -var vd = g(function(e, n) { +pd.displayName = "StatArrow"; +var hd = g(function(e, n) { return /* @__PURE__ */ l.jsx( h.div, { @@ -7078,8 +7077,8 @@ var vd = g(function(e, n) { } ); }); -vd.displayName = "StatGroup"; -var gd = g( +hd.displayName = "StatGroup"; +var vd = g( function(e, n) { const o = Pt(); return /* @__PURE__ */ l.jsx( @@ -7093,8 +7092,8 @@ var gd = g( ); } ); -gd.displayName = "StatHelpText"; -var bd = g(function(e, n) { +vd.displayName = "StatHelpText"; +var gd = g(function(e, n) { const o = Pt(); return /* @__PURE__ */ l.jsx( h.dt, @@ -7106,8 +7105,8 @@ var bd = g(function(e, n) { } ); }); -bd.displayName = "StatLabel"; -var yd = g(function(e, n) { +gd.displayName = "StatLabel"; +var bd = g(function(e, n) { const o = Pt(); return /* @__PURE__ */ l.jsx( h.dd, @@ -7123,10 +7122,10 @@ var yd = g(function(e, n) { } ); }); -yd.displayName = "StatNumber"; -var [xd, Le] = ne( +bd.displayName = "StatNumber"; +var [yd, Le] = ne( { name: "StepContext" } -), [Sd, He] = jo("Stepper"), Bm = g(function(e, n) { +), [xd, He] = Ao("Stepper"), Fm = g(function(e, n) { const { status: o } = Le(), r = He(); return /* @__PURE__ */ l.jsx( h.h3, @@ -7138,7 +7137,7 @@ var [xd, Le] = ne( className: k("chakra-step__title", e.className) } ); -}), Rm = g(function(e, n) { +}), Bm = g(function(e, n) { const { orientation: o, status: r, showLastSeparator: s } = Le(), a = He(); return /* @__PURE__ */ l.jsx( h.div, @@ -7152,7 +7151,7 @@ var [xd, Le] = ne( className: k("chakra-step", e.className) } ); -}), $m = g(function(e, n) { +}), Rm = g(function(e, n) { const o = ie("Stepper", e), { children: r, index: s, @@ -7172,8 +7171,8 @@ var [xd, Le] = ne( ...c, __css: o.stepper, className: k("chakra-stepper", e.className), - children: /* @__PURE__ */ l.jsx(Sd, { value: o, children: u.map((m, p) => /* @__PURE__ */ l.jsx( - xd, + children: /* @__PURE__ */ l.jsx(xd, { value: o, children: u.map((m, p) => /* @__PURE__ */ l.jsx( + yd, { value: { index: p, @@ -7191,7 +7190,7 @@ var [xd, Le] = ne( } ); }); -function Om(t = {}) { +function $m(t = {}) { const { index: e = 0, count: n } = t, [o, r] = L(e), s = typeof n == "number" ? n - 1 : 0, a = o / s; return { activeStep: o, @@ -7217,7 +7216,7 @@ function Om(t = {}) { } }; } -var Vm = g(function(e, n) { +var Om = g(function(e, n) { const { status: o } = Le(), r = He(); return /* @__PURE__ */ l.jsx( h.p, @@ -7230,7 +7229,7 @@ var Vm = g(function(e, n) { } ); }); -function _d(t) { +function Sd(t) { const { complete: e, incomplete: n, active: o } = t, r = Le(); let s = null; switch (r.status) { @@ -7246,7 +7245,7 @@ function _d(t) { } return s ? /* @__PURE__ */ l.jsx(l.Fragment, { children: s }) : null; } -function kd(t) { +function _d(t) { return /* @__PURE__ */ l.jsx( "svg", { @@ -7269,8 +7268,8 @@ function kd(t) { } ); } -function Cd(t) { - const { status: e } = Le(), n = He(), o = e === "complete" ? kd : void 0; +function kd(t) { + const { status: e } = Le(), n = He(), o = e === "complete" ? _d : void 0; return /* @__PURE__ */ l.jsx( be, { @@ -7295,7 +7294,7 @@ var oo = g(function(e, n) { } ); }); -function zm(t) { +function Vm(t) { const { status: e } = Le(), n = He(); return /* @__PURE__ */ l.jsx( h.div, @@ -7307,17 +7306,17 @@ function zm(t) { } ); } -function Hm() { +function zm() { return /* @__PURE__ */ l.jsx( - _d, + Sd, { - complete: /* @__PURE__ */ l.jsx(Cd, {}), + complete: /* @__PURE__ */ l.jsx(kd, {}), incomplete: /* @__PURE__ */ l.jsx(oo, {}), active: /* @__PURE__ */ l.jsx(oo, {}) } ); } -var Gm = g(function(e, n) { +var Hm = g(function(e, n) { const { orientation: o, status: r, isLast: s, showLastSeparator: a } = Le(), i = He(); return s && !a ? null : /* @__PURE__ */ l.jsx( h.div, @@ -7331,14 +7330,14 @@ var Gm = g(function(e, n) { className: k("chakra-step__separator", e.className) } ); -}), wd = g(function(e, n) { +}), Cd = g(function(e, n) { const o = ie("Switch", e), { spacing: r = "0.5rem", children: s, ...a } = K(e), { getIndicatorProps: i, getInputProps: c, getCheckboxProps: u, getRootProps: d, getLabelProps: f - } = Xo(a), m = J( + } = Yo(a), m = Q( () => ({ display: "inline-block", position: "relative", @@ -7347,7 +7346,7 @@ var Gm = g(function(e, n) { ...o.container }), [o.container] - ), p = J( + ), p = Q( () => ({ display: "inline-flex", flexShrink: 0, @@ -7357,7 +7356,7 @@ var Gm = g(function(e, n) { ...o.track }), [o.track] - ), b = J( + ), b = Q( () => ({ userSelect: "none", marginStart: r, @@ -7402,13 +7401,13 @@ var Gm = g(function(e, n) { } ); }); -wd.displayName = "Switch"; -var [Pd, Ge] = ne({ +Cd.displayName = "Switch"; +var [wd, Ge] = ne({ name: "TableStylesContext", errorMessage: `useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Nd = g((t, e) => { +}), Pd = g((t, e) => { const n = ie("Table", t), { className: o, layout: r, ...s } = K(t); - return /* @__PURE__ */ l.jsx(Pd, { value: n, children: /* @__PURE__ */ l.jsx( + return /* @__PURE__ */ l.jsx(wd, { value: n, children: /* @__PURE__ */ l.jsx( h.table, { ref: e, @@ -7418,14 +7417,14 @@ var [Pd, Ge] = ne({ } ) }); }); -Nd.displayName = "Table"; -var Wm = g((t, e) => { +Pd.displayName = "Table"; +var Gm = g((t, e) => { const n = Ge(); return /* @__PURE__ */ l.jsx(h.thead, { ...t, ref: e, __css: n.thead }); -}), Km = g((t, e) => { +}), Wm = g((t, e) => { const n = Ge(); return /* @__PURE__ */ l.jsx(h.tr, { ...t, ref: e, __css: n.tr }); -}), Id = g( +}), Nd = g( (t, e) => { const { placement: n = "bottom", ...o } = t, r = Ge(); return /* @__PURE__ */ l.jsx( @@ -7441,8 +7440,8 @@ var Wm = g((t, e) => { ); } ); -Id.displayName = "TableCaption"; -var Um = g( +Nd.displayName = "TableCaption"; +var Km = g( (t, e) => { var n; const { overflow: o, overflowX: r, className: s, ...a } = t; @@ -7463,10 +7462,10 @@ var Um = g( } ); } -), qm = g((t, e) => { +), Um = g((t, e) => { const n = Ge(); return /* @__PURE__ */ l.jsx(h.tbody, { ...t, ref: e, __css: n.tbody }); -}), Xm = g( +}), qm = g( ({ isNumeric: t, ...e }, n) => { const o = Ge(); return /* @__PURE__ */ l.jsx( @@ -7479,10 +7478,10 @@ var Um = g( } ); } -), Ym = g((t, e) => { +), Xm = g((t, e) => { const n = Ge(); return /* @__PURE__ */ l.jsx(h.tfoot, { ...t, ref: e, __css: n.tfoot }); -}), Zm = g( +}), Ym = g( ({ isNumeric: t, ...e }, n) => { const o = Ge(); return /* @__PURE__ */ l.jsx( @@ -7496,12 +7495,12 @@ var Um = g( ); } ), [ + Id, + Nr, Ed, - Pr, - jd, - Ad + jd ] = Kt(); -function Td(t) { +function Ad(t) { var e; const { defaultIndex: n, @@ -7521,7 +7520,7 @@ function Td(t) { U(() => { r != null && m(r); }, [r]); - const y = jd(), v = Ve(); + const y = Ed(), v = Ve(); return { id: `tabs-${(e = t.id) != null ? e : v}`, selectedIndex: p, @@ -7537,12 +7536,12 @@ function Td(t) { htmlProps: d }; } -var [Md, lt] = ne({ +var [Td, lt] = ne({ name: "TabsContext", errorMessage: "useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within " }); -function Dd(t) { - const { focusedIndex: e, orientation: n, direction: o } = lt(), r = Pr(), s = x( +function Md(t) { + const { focusedIndex: e, orientation: n, direction: o } = lt(), r = Nr(), s = x( (a) => { const i = () => { var S; @@ -7579,14 +7578,14 @@ function Dd(t) { onKeyDown: A(t.onKeyDown, s) }; } -function Ld(t) { - const { isDisabled: e = !1, isFocusable: n = !1, ...o } = t, { setSelectedIndex: r, isManual: s, id: a, setFocusedIndex: i, selectedIndex: c } = lt(), { index: u, register: d } = Ad({ +function Dd(t) { + const { isDisabled: e = !1, isFocusable: n = !1, ...o } = t, { setSelectedIndex: r, isManual: s, id: a, setFocusedIndex: i, selectedIndex: c } = lt(), { index: u, register: d } = jd({ disabled: e && !n }), f = u === c, m = () => { r(u); }, p = () => { i(u), !s && !(e && n) && r(u); - }, b = Is({ + }, b = Ns({ ...o, ref: ce(d, t.ref), isDisabled: e, @@ -7595,26 +7594,26 @@ function Ld(t) { }), y = "button"; return { ...b, - id: Nr(a, u), + id: Ir(a, u), role: "tab", tabIndex: f ? 0 : -1, type: y, "aria-selected": f, - "aria-controls": Ir(a, u), + "aria-controls": Er(a, u), onFocus: e ? void 0 : A(t.onFocus, p) }; } -var [Fd, Bd] = ne({}); -function Rd(t) { +var [Ld, Fd] = ne({}); +function Bd(t) { const e = lt(), { id: n, selectedIndex: o } = e, s = Oe(t.children).map( - (a, i) => Ws( - Fd, + (a, i) => Gs( + Ld, { key: i, value: { isSelected: i === o, - id: Ir(n, i), - tabId: Nr(n, i), + id: Er(n, i), + tabId: Ir(n, i), selectedIndex: o } }, @@ -7623,10 +7622,10 @@ function Rd(t) { ); return { ...t, children: s }; } -function $d(t) { - const { children: e, ...n } = t, { isLazy: o, lazyBehavior: r } = lt(), { isSelected: s, id: a, tabId: i } = Bd(), c = V(!1); +function Rd(t) { + const { children: e, ...n } = t, { isLazy: o, lazyBehavior: r } = lt(), { isSelected: s, id: a, tabId: i } = Fd(), c = V(!1); s && (c.current = !0); - const u = mo({ + const u = po({ wasSelected: c.current, isSelected: s, enabled: o, @@ -7643,8 +7642,8 @@ function $d(t) { id: a }; } -function Od() { - const t = lt(), e = Pr(), { selectedIndex: n, orientation: o } = t, r = o === "horizontal", s = o === "vertical", [a, i] = L(() => { +function $d() { + const t = lt(), e = Nr(), { selectedIndex: n, orientation: o } = t, r = o === "horizontal", s = o === "vertical", [a, i] = L(() => { if (r) return { left: 0, width: 0 }; if (s) @@ -7671,32 +7670,35 @@ function Od() { ...a }; } -function Nr(t, e) { +function Ir(t, e) { return `${t}--tab-${e}`; } -function Ir(t, e) { +function Er(t, e) { return `${t}--tabpanel-${e}`; } -var [Vd, ct] = ne({ +var [Od, ct] = ne({ name: "TabsStylesContext", errorMessage: `useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), zd = g(function(e, n) { - const o = ie("Tabs", e), { children: r, className: s, ...a } = K(e), { htmlProps: i, descendants: c, ...u } = Td(a), d = J(() => u, [u]), { isFitted: f, ...m } = i; - return /* @__PURE__ */ l.jsx(Ed, { value: c, children: /* @__PURE__ */ l.jsx(Md, { value: d, children: /* @__PURE__ */ l.jsx(Vd, { value: o, children: /* @__PURE__ */ l.jsx( +}), Vd = g(function(e, n) { + const o = ie("Tabs", e), { children: r, className: s, ...a } = K(e), { htmlProps: i, descendants: c, ...u } = Ad(a), d = Q(() => u, [u]), { isFitted: f, ...m } = i, p = { + position: "relative", + ...o.root + }; + return /* @__PURE__ */ l.jsx(Id, { value: c, children: /* @__PURE__ */ l.jsx(Td, { value: d, children: /* @__PURE__ */ l.jsx(Od, { value: o, children: /* @__PURE__ */ l.jsx( h.div, { className: k("chakra-tabs", s), ref: n, ...m, - __css: o.root, + __css: p, children: r } ) }) }) }); }); -zd.displayName = "Tabs"; -var Hd = g( +Vd.displayName = "Tabs"; +var zd = g( function(e, n) { - const o = Od(), r = { + const o = $d(), r = { ...e.style, ...o }, s = ct(); @@ -7712,9 +7714,9 @@ var Hd = g( ); } ); -Hd.displayName = "TabIndicator"; -var Gd = g(function(e, n) { - const o = Dd({ ...e, ref: n }), s = { +zd.displayName = "TabIndicator"; +var Hd = g(function(e, n) { + const o = Md({ ...e, ref: n }), s = { display: "flex", ...ct().tablist }; @@ -7727,9 +7729,9 @@ var Gd = g(function(e, n) { } ); }); -Gd.displayName = "TabList"; -var Wd = g(function(e, n) { - const o = $d({ ...e, ref: n }), r = ct(); +Hd.displayName = "TabList"; +var Gd = g(function(e, n) { + const o = Rd({ ...e, ref: n }), r = ct(); return /* @__PURE__ */ l.jsx( h.div, { @@ -7740,9 +7742,9 @@ var Wd = g(function(e, n) { } ); }); -Wd.displayName = "TabPanel"; -var Kd = g(function(e, n) { - const o = Rd(e), r = ct(); +Gd.displayName = "TabPanel"; +var Wd = g(function(e, n) { + const o = Bd(e), r = ct(); return /* @__PURE__ */ l.jsx( h.div, { @@ -7754,9 +7756,9 @@ var Kd = g(function(e, n) { } ); }); -Kd.displayName = "TabPanels"; -var Ud = g(function(e, n) { - const o = ct(), r = Ld({ ...e, ref: n }), s = { +Wd.displayName = "TabPanels"; +var Kd = g(function(e, n) { + const o = ct(), r = Dd({ ...e, ref: n }), s = { outline: "0", display: "flex", alignItems: "center", @@ -7772,11 +7774,11 @@ var Ud = g(function(e, n) { } ); }); -Ud.displayName = "Tab"; -var [qd, Er] = ne({ +Kd.displayName = "Tab"; +var [Ud, jr] = ne({ name: "TagStylesContext", errorMessage: `useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Xd = g((t, e) => { +}), qd = g((t, e) => { const n = ie("Tag", t), o = K(t), r = { display: "inline-flex", verticalAlign: "top", @@ -7784,26 +7786,26 @@ var [qd, Er] = ne({ maxWidth: "100%", ...n.container }; - return /* @__PURE__ */ l.jsx(qd, { value: n, children: /* @__PURE__ */ l.jsx(h.span, { ref: e, ...o, __css: r }) }); + return /* @__PURE__ */ l.jsx(Ud, { value: n, children: /* @__PURE__ */ l.jsx(h.span, { ref: e, ...o, __css: r }) }); }); -Xd.displayName = "Tag"; -var Yd = g((t, e) => { - const n = Er(); +qd.displayName = "Tag"; +var Xd = g((t, e) => { + const n = jr(); return /* @__PURE__ */ l.jsx(h.span, { ref: e, noOfLines: 1, ...t, __css: n.label }); }); -Yd.displayName = "TagLabel"; -var Zd = g((t, e) => /* @__PURE__ */ l.jsx(be, { ref: e, verticalAlign: "top", marginEnd: "0.5rem", ...t })); -Zd.displayName = "TagLeftIcon"; -var Qd = g((t, e) => /* @__PURE__ */ l.jsx(be, { ref: e, verticalAlign: "top", marginStart: "0.5rem", ...t })); -Qd.displayName = "TagRightIcon"; -var jr = (t) => /* @__PURE__ */ l.jsx(be, { verticalAlign: "inherit", viewBox: "0 0 512 512", ...t, children: /* @__PURE__ */ l.jsx( +Xd.displayName = "TagLabel"; +var Yd = g((t, e) => /* @__PURE__ */ l.jsx(be, { ref: e, verticalAlign: "top", marginEnd: "0.5rem", ...t })); +Yd.displayName = "TagLeftIcon"; +var Zd = g((t, e) => /* @__PURE__ */ l.jsx(be, { ref: e, verticalAlign: "top", marginStart: "0.5rem", ...t })); +Zd.displayName = "TagRightIcon"; +var Ar = (t) => /* @__PURE__ */ l.jsx(be, { verticalAlign: "inherit", viewBox: "0 0 512 512", ...t, children: /* @__PURE__ */ l.jsx( "path", { fill: "currentColor", d: "M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z" } ) }); -jr.displayName = "TagCloseIcon"; +Ar.displayName = "TagCloseIcon"; var Jd = g( (t, e) => { const { isDisabled: n, children: o, ...r } = t, a = { @@ -7811,7 +7813,7 @@ var Jd = g( alignItems: "center", justifyContent: "center", outline: "0", - ...Er().closeButton + ...jr().closeButton }; return /* @__PURE__ */ l.jsx( h.button, @@ -7822,20 +7824,20 @@ var Jd = g( type: "button", disabled: n, __css: a, - children: o || /* @__PURE__ */ l.jsx(jr, {}) + children: o || /* @__PURE__ */ l.jsx(Ar, {}) } ); } ); Jd.displayName = "TagCloseButton"; -function ef(t, e = []) { +function Qd(t, e = []) { const n = Object.assign({}, t); for (const o of e) o in n && delete n[o]; return n; } -var tf = ["h", "minH", "height", "minHeight"], nf = g((t, e) => { - const n = _e("Textarea", t), { className: o, rows: r, ...s } = K(t), a = qt(s), i = r ? ef(n, tf) : n; +var ef = ["h", "minH", "height", "minHeight"], tf = g((t, e) => { + const n = _e("Textarea", t), { className: o, rows: r, ...s } = K(t), a = qt(s), i = r ? Qd(n, ef) : n; return /* @__PURE__ */ l.jsx( h.textarea, { @@ -7847,8 +7849,8 @@ var tf = ["h", "minH", "height", "minHeight"], nf = g((t, e) => { } ); }); -nf.displayName = "Textarea"; -const Ar = { +tf.displayName = "Textarea"; +const Tr = { borderRadius: "0.7px", ":focus-visible": { boxShadow: "0 0 0 2px rgba(33, 177, 130, 0.6)", @@ -7856,13 +7858,13 @@ const Ar = { boxShadow: "0 0 0 2px rgba(33, 177, 130, 0.6)" } } -}, Tr = { +}, Mr = { bg: "rgba(39, 39, 39, 0.2)", _dark: { bg: "rgba(39, 39, 39, 0.6)" } -}, { definePartsStyle: of, defineMultiStyleConfig: rf } = Ye(vo.keys), sf = of({ - overlay: Tr, +}, { definePartsStyle: nf, defineMultiStyleConfig: of } = Ye(go.keys), rf = nf({ + overlay: Mr, dialog: { top: "77px !important", right: "20px !important", @@ -7887,10 +7889,10 @@ const Ar = { footer: { p: 0 }, - closeButton: Ar -}), af = rf({ - baseStyle: sf -}), { definePartsStyle: lf, defineMultiStyleConfig: cf } = Ye(Es.keys), uf = lf({ + closeButton: Tr +}), sf = of({ + baseStyle: rf +}), { definePartsStyle: af, defineMultiStyleConfig: lf } = Ye(Is.keys), cf = af({ list: { // this will style the MenuList component py: "2", @@ -7918,12 +7920,12 @@ const Ar = { } } } -}), df = cf({ baseStyle: uf }), { definePartsStyle: Cn, defineMultiStyleConfig: ff } = Ye(vo.keys), mf = js({ +}), uf = lf({ baseStyle: cf }), { definePartsStyle: Cn, defineMultiStyleConfig: df } = Ye(go.keys), ff = Es({ width: "calc(100vw - 80px)", height: "calc(100vh - 80px)", maxWidth: "calc(100vw - 80px)", maxHeight: "calc(100vh - 80px)" -}), pf = Cn({ +}), mf = Cn({ dialogContainer: { width: "0px !important" }, @@ -7936,10 +7938,10 @@ const Ar = { body: { p: 0 } -}), hf = { - "7xl": Cn({ dialog: mf }) -}, vf = Cn({ - overlay: Tr, +}), pf = { + "7xl": Cn({ dialog: ff }) +}, hf = Cn({ + overlay: Mr, header: { fontWeight: "bold", pb: "0px" @@ -7964,12 +7966,12 @@ const Ar = { bgColor: "grayShade3._light", _dark: { bgColor: "grayShade3._dark" } }, - closeButton: Ar -}), gf = ff({ - baseStyle: vf, - sizes: hf, - variants: { drawer: pf } -}), { definePartsStyle: bf, defineMultiStyleConfig: yf } = Ye(As.keys), xf = bf({ + closeButton: Tr +}), vf = df({ + baseStyle: hf, + sizes: pf, + variants: { drawer: mf } +}), { definePartsStyle: gf, defineMultiStyleConfig: bf } = Ye(js.keys), yf = gf({ thumb: { bg: "white", opacity: 0.8, @@ -7992,7 +7994,7 @@ const Ar = { bg: "grayShade2._dark" } } -}), Sf = yf({ baseStyle: xf }), { definePartsStyle: wn, defineMultiStyleConfig: _f } = Ye(Ts.keys), kf = wn({ +}), xf = bf({ baseStyle: yf }), { definePartsStyle: wn, defineMultiStyleConfig: Sf } = Ye(As.keys), _f = wn({ field: { color: "text", outline: "none", @@ -8017,7 +8019,7 @@ const Ar = { borderColor: "grayShade2" } } -}), Cf = wn({ +}), kf = wn({ field: { background: "grayShade3", _hover: { @@ -8027,7 +8029,7 @@ const Ar = { bg: "grayShade3" } } -}), wf = wn({ +}), Cf = wn({ field: { background: "background", _hover: { @@ -8040,16 +8042,16 @@ const Ar = { borderColor: "grayShade2" } } -}), Pf = _f({ - baseStyle: kf, +}), wf = Sf({ + baseStyle: _f, variants: { - primary: Cf, - white: wf + primary: kf, + white: Cf }, defaultProps: { variant: "primary" } -}), Nf = { +}), Pf = { colors: { text: { default: "#272727", @@ -8134,7 +8136,7 @@ const Ar = { } } } -}, { definePartsStyle: If, defineMultiStyleConfig: Ef } = Ye(Ms.keys), jf = If({ +}, { definePartsStyle: Nf, defineMultiStyleConfig: If } = Ye(Ts.keys), Ef = Nf({ container: { bg: "background", borderRadius: "1px", @@ -8149,12 +8151,12 @@ const Ar = { height: "14px" } } -}), Af = Ef({ - baseStyle: jf, +}), jf = If({ + baseStyle: Ef, defaultProps: { size: "sm" } -}), Mr = (t, e) => Us((n, o) => Ls(n) === "String" ? { _light: n, _dark: e[o] } : Mr(go.labels, e.labels), t), Tf = Mr(go, Fs), Mf = Ds({ +}), Dr = (t, e) => Ks((n, o) => Ds(n) === "String" ? { _light: n, _dark: e[o] } : Dr(bo.labels, e.labels), t), Af = Dr(bo, Ls), Tf = Ms({ config: { cssVarPrefix: "quartz", initialColorMode: "system", @@ -8178,31 +8180,31 @@ const Ar = { } } }, - colors: Tf, + colors: Af, components: { - Drawer: af, - Menu: df, - Modal: gf, - Slider: Sf, - Input: Pf, - Tag: Af + Drawer: sf, + Menu: uf, + Modal: vf, + Slider: xf, + Input: wf, + Tag: jf }, - semanticTokens: Nf -}), Qm = ({ + semanticTokens: Pf +}), Zm = ({ children: t, toastOptions: e = {}, ...n }) => /* @__PURE__ */ l.jsx( - _i, + Si, { - toastOptions: Xs(e, { + toastOptions: qs(e, { defaultOptions: { position: "top-right" } }), - theme: Mf, + theme: Tf, ...n, children: t } -), Df = ({ +), Mf = ({ onClose: t, content: e, title: n, @@ -8226,14 +8228,14 @@ const Ar = { pl: 6, ...r, children: [ - /* @__PURE__ */ l.jsxs(Bs, { width: "100%", justifyContent: "space-between", alignItems: "flex-start", children: [ + /* @__PURE__ */ l.jsxs(Fs, { width: "100%", justifyContent: "space-between", alignItems: "flex-start", children: [ Tn.isValidElement(n) ? n : /* @__PURE__ */ l.jsx(cn, { fontSize: "md", children: n }), /* @__PURE__ */ l.jsx(Wt, { onClick: t }) ] }), Tn.isValidElement(e) ? e : /* @__PURE__ */ l.jsx(ln, { fontSize: "xs", children: e }) ] } -), Dr = (t, e) => (n) => { +), Lr = (t, e) => (n) => { const o = n.duration ?? 5e3, r = ({ onClose: s, id: a }) => { const i = n.duration ?? 5e3, c = () => t.update(a, { duration: 1e6, @@ -8243,7 +8245,7 @@ const Ar = { render: r }); return /* @__PURE__ */ l.jsx( - Df, + Mf, { title: n.title, content: n.content, @@ -8262,7 +8264,7 @@ const Ar = { render: r, id: n.uniqueId }); -}, Lr = (t, e) => ({ +}, Fr = (t, e) => ({ success: e("success"), error: e("error"), info: e("info"), @@ -8270,469 +8272,469 @@ const Ar = { closeAll: t.closeAll, close: t.close }), Jm = () => { - const t = xi(), e = x( - (n) => Dr(t, n), + const t = yi(), e = x( + (n) => Lr(t, n), [t] ); - return J( - () => Lr(t, e), + return Q( + () => Fr(t, e), [e, t] ); -}, ep = (t) => Lr(t, (n) => Dr(t, n)); +}, Qm = (t) => Fr(t, (n) => Lr(t, n)); export { - Am as AbsoluteCenter, - Vi as Accordion, - Ii as AccordionButton, - Fi as AccordionIcon, - Bi as AccordionItem, - Oi as AccordionPanel, - ji as AccordionProvider, + jm as AbsoluteCenter, + Oi as Accordion, + Ni as AccordionButton, + Li as AccordionIcon, + Fi as AccordionItem, + $i as AccordionPanel, + Ei as AccordionProvider, un as Alert, ln as AlertDescription, - Dm as AlertDialog, - op as AlertDialogBody, - rp as AlertDialogCloseButton, - Lm as AlertDialogContent, - sp as AlertDialogFooter, - ap as AlertDialogHeader, - ip as AlertDialogOverlay, - Do as AlertIcon, + Mm as AlertDialog, + np as AlertDialogBody, + op as AlertDialogCloseButton, + Dm as AlertDialogContent, + rp as AlertDialogFooter, + sp as AlertDialogHeader, + ap as AlertDialogOverlay, + Lo as AlertIcon, cn as AlertTitle, - Fc as AspectRatio, - Xi as Avatar, - Gi as AvatarBadge, - Zi as AvatarGroup, - Bc as Badge, - fs as Box, - el as Breadcrumb, + Lc as AspectRatio, + qi as Avatar, + Hi as AvatarBadge, + Yi as AvatarGroup, + Fc as Badge, + ds as Box, + Qi as Breadcrumb, Ji as BreadcrumbItem, - Ko as BreadcrumbLink, + Uo as BreadcrumbLink, Ft as BreadcrumbSeparator, - Uo as Button, - sl as ButtonGroup, + qo as Button, + rl as ButtonGroup, Rt as ButtonSpinner, - Ys as CSSPolyfill, - Zs as CSSReset, + Xs as CSSPolyfill, + Ys as CSSReset, Ja as CSSVars, Jf as Card, - Yf as CardBody, - Zf as CardFooter, - Qf as CardHeader, - Rc as Center, - Kf as ChakraBaseProvider, - _i as ChakraProvider, - Qm as ChakraThemeProvider, - Dl as Checkbox, - fl as CheckboxGroup, - vl as CheckboxIcon, - lp as Circle, - Ru as CircularProgress, - Tu as CircularProgressLabel, + Xf as CardBody, + Yf as CardFooter, + Zf as CardHeader, + Bc as Center, + Wf as ChakraBaseProvider, + Si as ChakraProvider, + Zm as ChakraThemeProvider, + Ml as Checkbox, + dl as CheckboxGroup, + hl as CheckboxIcon, + ip as Circle, + Bu as CircularProgress, + Au as CircularProgressLabel, Wt as CloseButton, - Oc as Code, - $o as Collapse, + $c as Code, + Oo as Collapse, bt as ColorModeContext, - So as ColorModeProvider, - Of as ColorModeScript, - Vc as Container, - Ll as ControlBox, - ta as DarkMode, - cp as Divider, - up as Drawer, - dp as DrawerBody, - fp as DrawerCloseButton, - mp as DrawerContent, - pp as DrawerFooter, - hp as DrawerHeader, - vp as DrawerOverlay, + _o as ColorModeProvider, + $f as ColorModeScript, + Oc as Container, + Dl as ControlBox, + ea as DarkMode, + lp as Divider, + cp as Drawer, + up as DrawerBody, + dp as DrawerCloseButton, + fp as DrawerContent, + mp as DrawerFooter, + pp as DrawerHeader, + hp as DrawerOverlay, dt as EASINGS, - Xl as Editable, - $l as EditableInput, - Ol as EditablePreview, - Vl as EditableTextarea, - Jr as EnvironmentProvider, - gp as Fade, - bp as Flex, - yp as FocusLock, - xp as FormControl, - Sp as FormErrorIcon, - _p as FormErrorMessage, - kp as FormHelperText, - Cp as FormLabel, - zo as GenericAvatarIcon, - ei as GlobalStyle, - cr as Grid, - Ic as GridItem, - wp as HStack, - Ec as Heading, - zc as Hide, - Nm as Highlight, + ql as Editable, + Rl as EditableInput, + $l as EditablePreview, + Ol as EditableTextarea, + es as EnvironmentProvider, + vp as Fade, + gp as Flex, + bp as FocusLock, + yp as FormControl, + xp as FormErrorIcon, + Sp as FormErrorMessage, + _p as FormHelperText, + kp as FormLabel, + Ho as GenericAvatarIcon, + Qa as GlobalStyle, + ur as Grid, + Nc as GridItem, + Cp as HStack, + Ic as Heading, + Vc as Hide, + Pm as Highlight, be as Icon, - il as IconButton, - qi as Image, - Xf as Img, - Im as Indicator, - ir as Input, + al as IconButton, + Ui as Image, + qf as Img, + Nm as Indicator, + lr as Input, xn as InputAddon, - cc as InputGroup, - or as InputLeftAddon, - sr as InputLeftElement, - rr as InputRightAddon, - ar as InputRightElement, - Lc as Kbd, - na as LightMode, - mc as Link, - jm as LinkBox, - Em as LinkOverlay, + lc as InputGroup, + rr as InputLeftAddon, + ar as InputLeftElement, + sr as InputRightAddon, + ir as InputRightElement, + Dc as Kbd, + ta as LightMode, + fc as Link, + Em as LinkBox, + Im as LinkOverlay, Sn as List, - bc as ListIcon, - gc as ListItem, - Dc as Mark, - Pp as Menu, - Np as MenuButton, - Ip as MenuCommand, - Ep as MenuDescendantsProvider, - jp as MenuDivider, - mr as MenuGroup, - gs as MenuIcon, - Ap as MenuItem, - pr as MenuItemOption, - Tp as MenuList, - Gc as MenuOptionGroup, - Mp as MenuProvider, - bs as Modal, - Dp as ModalBody, - Lp as ModalCloseButton, - ys as ModalContent, - Fp as ModalContextProvider, - Bp as ModalFocusScope, - Rp as ModalFooter, - $p as ModalHeader, - Op as ModalOverlay, - au as NumberDecrementStepper, - iu as NumberIncrementStepper, - ou as NumberInput, - su as NumberInputField, - ru as NumberInputStepper, - hc as OrderedList, - hu as PinInput, - lu as PinInputDescendantsProvider, - vu as PinInputField, - du as PinInputProvider, - _u as Popover, - ku as PopoverAnchor, - Cu as PopoverArrow, - wu as PopoverBody, - Pu as PopoverCloseButton, - ju as PopoverContent, - Au as PopoverFooter, - yu as PopoverHeader, - xu as PopoverTrigger, - ts as Portal, + gc as ListIcon, + vc as ListItem, + Mc as Mark, + wp as Menu, + Pp as MenuButton, + Np as MenuCommand, + Ip as MenuDescendantsProvider, + Ep as MenuDivider, + pr as MenuGroup, + vs as MenuIcon, + jp as MenuItem, + hr as MenuItemOption, + Ap as MenuList, + Hc as MenuOptionGroup, + Tp as MenuProvider, + gs as Modal, + Mp as ModalBody, + Dp as ModalCloseButton, + bs as ModalContent, + Lp as ModalContextProvider, + Fp as ModalFocusScope, + Bp as ModalFooter, + Rp as ModalHeader, + $p as ModalOverlay, + su as NumberDecrementStepper, + au as NumberIncrementStepper, + nu as NumberInput, + ru as NumberInputField, + ou as NumberInputStepper, + pc as OrderedList, + pu as PinInput, + iu as PinInputDescendantsProvider, + hu as PinInputField, + uu as PinInputProvider, + Su as Popover, + _u as PopoverAnchor, + ku as PopoverArrow, + Cu as PopoverBody, + wu as PopoverCloseButton, + Eu as PopoverContent, + ju as PopoverFooter, + bu as PopoverHeader, + yu as PopoverTrigger, + ns as Portal, Qr as PortalManager, - Vu as Progress, - zu as ProgressLabel, - Zu as Radio, - Ku as RadioGroup, - Vp as RangeSlider, - zp as RangeSliderFilledTrack, - Hp as RangeSliderMark, - Gp as RangeSliderProvider, - Wp as RangeSliderThumb, - Kp as RangeSliderTrack, - Up as RequiredIndicator, - qp as ScaleFade, + Ou as Progress, + Vu as ProgressLabel, + Yu as Radio, + Wu as RadioGroup, + Op as RangeSlider, + Vp as RangeSliderFilledTrack, + zp as RangeSliderMark, + Hp as RangeSliderProvider, + Gp as RangeSliderThumb, + Wp as RangeSliderTrack, + Kp as RequiredIndicator, + Up as ScaleFade, Ju as Select, - Sr as SelectField, - Hc as Show, - yc as SimpleGrid, + _r as SelectField, + zc as Show, + bc as SimpleGrid, kn as Skeleton, - id as SkeletonCircle, - cd as SkeletonText, - fd as SkipNavContent, - dd as SkipNavLink, - Xp as Slide, - Yp as SlideFade, - Zp as Slider, - Qp as SliderFilledTrack, + ad as SkeletonCircle, + ld as SkeletonText, + dd as SkipNavContent, + ud as SkipNavLink, + qp as Slide, + Xp as SlideFade, + Yp as Slider, + Zp as SliderFilledTrack, Jp as SliderMark, - eh as SliderProvider, - th as SliderThumb, - nh as SliderTrack, - kc as Spacer, + Qp as SliderProvider, + eh as SliderThumb, + th as SliderTrack, + _c as Spacer, ao as Spinner, - oh as Square, - ds as Stack, - Pc as StackDivider, - rh as StackItem, - pd as Stat, - hd as StatArrow, - Cr as StatDownArrow, - vd as StatGroup, - gd as StatHelpText, - bd as StatLabel, - yd as StatNumber, - wr as StatUpArrow, - Rm as Step, - Vm as StepDescription, - Cd as StepIcon, - zm as StepIndicator, - Hm as StepIndicatorContent, + nh as Square, + us as Stack, + wc as StackDivider, + oh as StackItem, + md as Stat, + pd as StatArrow, + wr as StatDownArrow, + hd as StatGroup, + vd as StatHelpText, + gd as StatLabel, + bd as StatNumber, + Pr as StatUpArrow, + Bm as Step, + Om as StepDescription, + kd as StepIcon, + Vm as StepIndicator, + zm as StepIndicatorContent, oo as StepNumber, - Gm as StepSeparator, - _d as StepStatus, - Bm as StepTitle, - $m as Stepper, - zf as StylesProvider, - wd as Switch, - Ud as Tab, - Hd as TabIndicator, - Gd as TabList, - Wd as TabPanel, - Kd as TabPanels, - Nd as Table, - Id as TableCaption, - Um as TableContainer, - zd as Tabs, - Ed as TabsDescendantsProvider, - Md as TabsProvider, - Xd as Tag, + Hm as StepSeparator, + Sd as StepStatus, + Fm as StepTitle, + Rm as Stepper, + Vf as StylesProvider, + Cd as Switch, + Kd as Tab, + zd as TabIndicator, + Hd as TabList, + Gd as TabPanel, + Wd as TabPanels, + Pd as Table, + Nd as TableCaption, + Km as TableContainer, + Vd as Tabs, + Id as TabsDescendantsProvider, + Td as TabsProvider, + qd as Tag, Jd as TagCloseButton, - Yd as TagLabel, - Zd as TagLeftIcon, - Qd as TagRightIcon, - qm as Tbody, - Xm as Td, - Cc as Text, - nf as Textarea, - Ym as Tfoot, - Zm as Th, - Wm as Thead, - Eo as ThemeProvider, - gi as Toast, - bi as ToastOptionProvider, - Bo as ToastProvider, - sh as Tooltip, - Km as Tr, - vc as UnorderedList, - Nc as VStack, - gl as VisuallyHidden, - bl as VisuallyHiddenInput, - wc as Wrap, - ur as WrapItem, - ah as addPrefix, - Zl as assignRef, - ih as background, - ss as baseTheme, - lh as border, - ch as calc, + Xd as TagLabel, + Yd as TagLeftIcon, + Zd as TagRightIcon, + Um as Tbody, + qm as Td, + kc as Text, + tf as Textarea, + Xm as Tfoot, + Ym as Th, + Gm as Thead, + jo as ThemeProvider, + vi as Toast, + gi as ToastOptionProvider, + Ro as ToastProvider, + rh as Tooltip, + Wm as Tr, + hc as UnorderedList, + Pc as VStack, + vl as VisuallyHidden, + gl as VisuallyHiddenInput, + Cc as Wrap, + dr as WrapItem, + sh as addPrefix, + Yl as assignRef, + ah as background, + rs as baseTheme, + ih as border, + lh as calc, h as chakra, - uh as color, - Rf as cookieStorageManager, - $f as cookieStorageManagerSSR, - xo as createCookieStorageManager, - Gf as createIcon, + ch as color, + Bf as cookieStorageManager, + Rf as cookieStorageManagerSSR, + So as createCookieStorageManager, + Hf as createIcon, Js as createLocalStorageManager, Ye as createMultiStyleConfigHelpers, - ep as createNotifier, - Lo as createRenderToast, - Wf as createStandaloneToast, - jo as createStylesContext, - Fo as createToastFn, - Zr as css, - ho as cssVar, - dh as defineCssVars, - js as defineStyle, - fh as defineStyleConfig, - mh as effect, - ph as extendBaseTheme, - Ds as extendTheme, - hh as fadeConfig, - vh as filter, - gh as flattenTokens, - bh as flexbox, + Qm as createNotifier, + Fo as createRenderToast, + Gf as createStandaloneToast, + Ao as createStylesContext, + Bo as createToastFn, + Jr as css, + vo as cssVar, + uh as defineCssVars, + Es as defineStyle, + dh as defineStyleConfig, + fh as effect, + mh as extendBaseTheme, + Ms as extendTheme, + ph as fadeConfig, + hh as filter, + vh as flattenTokens, + gh as flexbox, g as forwardRef, - yh as getCSSVar, - xh as getCss, - sa as getScriptSrc, - Sh as getSlideTransition, - ii as getToastPlacement, - us as getToken, - _h as grid, - kh as interactivity, - Ch as isChakraTheme, - wh as isStyleProp, + bh as getCSSVar, + yh as getCss, + ra as getScriptSrc, + xh as getSlideTransition, + ai as getToastPlacement, + cs as getToken, + Sh as grid, + _h as interactivity, + kh as isChakraTheme, + Ch as isStyleProp, Ee as keyframes, - Ph as layout, - po as layoutPropNames, - Nh as list, - ea as localStorageManager, + wh as layout, + ho as layoutPropNames, + Ph as list, + Qs as localStorageManager, yt as mergeThemeOverride, K as omitThemingProps, - Ih as others, + Nh as others, Nt as popperCSSVars, - Eh as position, - jh as propNames, - Ah as pseudoPropNames, - Th as pseudoSelectors, - Mh as requiredChakraThemeKeys, - Dh as resolveStyleConfig, - Lh as ring, - Fh as scaleFadeConfig, - Bh as scroll, - Rh as shouldForwardProp, - $h as slideFadeConfig, - Oh as space, - Vh as styled, - zh as systemProps, - Hh as textDecoration, - rs as theme, - Gh as toCSSObject, - Ur as toCSSVar, - Wh as toVarDefinition, - Kh as toVarReference, - Uh as tokenToCSSVar, - qh as transform, - Xh as transition, - Yh as typography, - Ei as useAccordion, + Ih as position, + Eh as propNames, + jh as pseudoPropNames, + Ah as pseudoSelectors, + Th as requiredChakraThemeKeys, + Mh as resolveStyleConfig, + Dh as ring, + Lh as scaleFadeConfig, + Fh as scroll, + Bh as shouldForwardProp, + Rh as slideFadeConfig, + $h as space, + Oh as styled, + Vh as systemProps, + zh as textDecoration, + lo as theme, + Hh as toCSSObject, + qr as toCSSVar, + Gh as toVarDefinition, + Wh as toVarReference, + Kh as tokenToCSSVar, + Uh as transform, + qh as transition, + Xh as typography, + Ii as useAccordion, dn as useAccordionContext, - Ai as useAccordionItem, - qf as useAccordionItemState, + ji as useAccordionItem, + Uf as useAccordionItemState, St as useAccordionStyles, an as useAlertStyles, - _m as useAnimationState, - Oo as useAvatarStyles, - km as useBoolean, + Sm as useAnimationState, + Vo as useAvatarStyles, + _m as useBoolean, fn as useBreadcrumbStyles, - Zh as useBreakpoint, - Ns as useBreakpointValue, - nl as useButtonGroup, + Yh as useBreakpoint, + Ps as useBreakpointValue, + tl as useButtonGroup, Me as useCallbackRef, mn as useCardStyles, - ns as useChakra, - Xo as useCheckbox, - dl as useCheckboxGroup, - Cm as useClipboard, - Xr as useColorMode, - Mm as useColorModePreference, - Qh as useColorModeValue, + os as useChakra, + Yo as useCheckbox, + ul as useCheckboxGroup, + km as useClipboard, + Yr as useColorMode, + Tm as useColorModePreference, + Zh as useColorModeValue, Jh as useComponentStyles__unstable, - wm as useConst, - Ql as useControllableProp, - pm as useControllableState, - Fl as useCounter, - Pm as useDimensions, - hm as useDisclosure, - ev as useDrawerContext, - ql as useEditable, + Cm as useConst, + Zl as useControllableProp, + mm as useControllableState, + Ll as useCounter, + wm as useDimensions, + pm as useDisclosure, + Qh as useDrawerContext, + Ul as useEditable, it as useEditableContext, - tm as useEditableControls, - em as useEditableState, + em as useEditableControls, + Qf as useEditableState, vn as useEditableStyles, - tv as useEnvironment, + ev as useEnvironment, kt as useEventListener, - vm as useEventListenerMap, - gm as useFocusEffect, - bm as useFocusOnHide, - ym as useFocusOnPointerDown, - xm as useFocusOnShow, - Sm as useForceUpdate, + hm as useEventListenerMap, + vm as useFocusEffect, + gm as useFocusOnHide, + bm as useFocusOnPointerDown, + ym as useFocusOnShow, + xm as useForceUpdate, qt as useFormControl, - ws as useFormControlContext, - lo as useFormControlProps, - nv as useFormControlStyles, - ov as useFormErrorStyles, - Mc as useHighlight, - tr as useId, - fm as useIds, - Ho as useImage, - nr as useInputGroupStyles, - am as useInterval, - im as useLatestRef, - lr as useListStyles, + Cs as useFormControlContext, + co as useFormControlProps, + tv as useFormControlStyles, + nv as useFormErrorStyles, + Tc as useHighlight, + nr as useId, + dm as useIds, + Go as useImage, + or as useInputGroupStyles, + sm as useInterval, + am as useLatestRef, + cr as useListStyles, Yt as useMediaQuery, - rv as useMenu, - sv as useMenuButton, - av as useMenuContext, - iv as useMenuDescendant, - lv as useMenuDescendants, - cv as useMenuDescendantsContext, - uv as useMenuItem, - dv as useMenuList, - hs as useMenuOption, - ps as useMenuOptionGroup, - fv as useMenuPositioner, - mv as useMenuState, - ms as useMenuStyles, - lm as useMergeRefs, - pv as useModal, - hv as useModalContext, - vv as useModalManager, - gv as useModalStyles, - cm as useMouseDownRef, + ov as useMenu, + rv as useMenuButton, + sv as useMenuContext, + av as useMenuDescendant, + iv as useMenuDescendants, + lv as useMenuDescendantsContext, + cv as useMenuItem, + uv as useMenuList, + ps as useMenuOption, + ms as useMenuOptionGroup, + dv as useMenuPositioner, + fv as useMenuState, + fs as useMenuStyles, + im as useMergeRefs, + mv as useModal, + pv as useModalContext, + hv as useModalManager, + vv as useModalStyles, + lm as useMouseDownRef, ie as useMultiStyleConfig, Jm as useNotifier, - eu as useNumberInput, + Qc as useNumberInput, wt as useNumberInputStyles, - mm as useOptionalPart, - um as useOutsideClick, - dm as usePanGesture, - mu as usePinInput, - fu as usePinInputContext, - pu as usePinInputField, - Jo as usePointerEvent, - Su as usePopover, + fm as useOptionalPart, + cm as useOutsideClick, + um as usePanGesture, + fu as usePinInput, + du as usePinInputContext, + mu as usePinInputField, + er as usePointerEvent, + xu as usePopover, De as usePopoverContext, - Qe as usePopoverStyles, - Ss as usePopper, - bv as usePortalManager, - Tm as usePrefersReducedMotion, - nm as usePrevious, - yr as useProgressStyles, - fr as useQuery, - qu as useRadio, - Gu as useRadioGroup, - xr as useRadioGroupContext, - yv as useRangeSlider, - xv as useRangeSliderContext, - Sv as useRangeSliderStyles, + Je as usePopoverStyles, + xs as usePopper, + gv as usePortalManager, + Am as usePrefersReducedMotion, + tm as usePrevious, + xr as useProgressStyles, + mr as useQuery, + Uu as useRadio, + Hu as useRadioGroup, + Sr as useRadioGroupContext, + bv as useRangeSlider, + yv as useRangeSliderContext, + xv as useRangeSliderStyles, bn as useSafeLayoutEffect, - om as useShortcut, - _v as useSlider, - kv as useSliderContext, - Cv as useSliderStyles, + nm as useShortcut, + Sv as useSlider, + _v as useSliderContext, + kv as useSliderStyles, Pt as useStatStyles, Le as useStepContext, He as useStepperStyles, - Om as useSteps, + $m as useSteps, _e as useStyleConfig, - Hf as useStyles, - Ld as useTab, - Od as useTabIndicator, - Dd as useTabList, - $d as useTabPanel, - Rd as useTabPanels, + zf as useStyles, + Dd as useTab, + $d as useTabIndicator, + Md as useTabList, + Rd as useTabPanel, + Bd as useTabPanels, Ge as useTableStyles, - Td as useTabs, + Ad as useTabs, lt as useTabsContext, - Ad as useTabsDescendant, - jd as useTabsDescendants, - Pr as useTabsDescendantsContext, + jd as useTabsDescendant, + Ed as useTabsDescendants, + Nr as useTabsDescendantsContext, ct as useTabsStyles, - Er as useTagStyles, + jr as useTagStyles, Xt as useTheme, - rm as useTimeout, - xi as useToast, - Ps as useToken, - wv as useTooltip, - er as useUnmountEffect, + om as useTimeout, + yi as useToast, + ws as useToken, + Cv as useTooltip, + tr as useUnmountEffect, yn as useUpdateEffect, - sm as useWhyDidYouUpdate, + rm as useWhyDidYouUpdate, pn as visuallyHiddenStyle, - aa as withDefaultColorScheme, - Vf as withDefaultProps, - ia as withDefaultSize, - la as withDefaultVariant, + sa as withDefaultColorScheme, + Of as withDefaultProps, + aa as withDefaultSize, + ia as withDefaultVariant, jn as withDelay }; diff --git a/dist/index.mjs b/dist/index.mjs index c72e44abf..963146b0a 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -1,51 +1,43 @@ -import { s as lp, w as Q_, T as S_, S as y_, i as b_, _ as nt, a as KQ, b as Ld, c as sr, d as $O, e as lo, f as ul, k as Ea, g as Yx, h as Zg, t as mu, j as zx, l as w_, m as x_, n as f, o as cp, u as dl, F as G, B as co, p as Y, q as wn, v as P_, r as v_, x as bt, y as ia, z as X_, A as J, C as Fd, D as Qu, E as T_, G as Gx, H as pe, M as k_, I as Ex, J as C_, K as jx, L as Ix, N as Ax, O as Dx, P as e0, Q as Lx, R as Su, U as __, V as R_, W as q_, X as W_, Y as Ko, Z as V_, $ as Z_, a0 as Fx, a1 as U_, a2 as Qe, a3 as Mx, a4 as Nx, a5 as Y_, a6 as oO, a7 as z_, a8 as G_, a9 as E_, aa as Ug, ab as Yg, ac as t0, ad as j_, ae as I_, af as A_, ag as D_, ah as L_, ai as F_, aj as M_, ak as zg, al as N_, am as B_, an as H_, ao as J_, ap as K_, aq as eR, ar as tR, as as nR, at as n0, au as iR, av as rR, aw as OR, ax as Bx, ay as aR, az as oR } from "./Flex-3dc5ee69.mjs"; -import { aA as d2e } from "./Flex-3dc5ee69.mjs"; -import * as le from "react"; -import X, { createElement as nO, Component as Gg, memo as Vn, useState as Se, forwardRef as Zn, useRef as et, useEffect as Ne, useCallback as re, useImperativeHandle as sR, useMemo as Ee, useLayoutEffect as lR, useContext as uo, createContext as Eg, Fragment as up, createRef as cR } from "react"; -import { Link as Md } from "react-router-dom"; -import * as uR from "react-dom"; -import dR, { createPortal as Hx, findDOMNode as fR } from "react-dom"; -function yu(t, e) { - return yu = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) { - return i.__proto__ = r, i; - }, yu(t, e); -} -function hR(t, e) { - t.prototype = Object.create(e.prototype), t.prototype.constructor = t, yu(t, e); -} -function Jx() { +import { s as vp, w as YR, T as ZR, _ as GR, S as zR, i as UR, a as ot, b as fQ, c as of, d as dr, e as vO, f as Qa, g as vl, k as Ko, h as Lx, j as Jg, t as qu, l as Nx, m as VR, n as jR, o as f, p as Xp, u as Xl, F as j, B as Sa, q as z, r as xn, v as ER, x as DR, y as bt, z as XO, A as IR, C as AR, D as H, E as af, G as Yu, H as pe, I as Mx, M as FR, J as Hx, K as LR, L as Bx, N as Jx, O as Kx, P as eP, Q as hQ, R as tP, U as Zu, V as NR, W as MR, X as HR, Y as BR, Z as JR, $ as Se, a0 as nP, a1 as iP, a2 as KR, a3 as $O, a4 as e_, a5 as t_, a6 as n_, a7 as Kg, a8 as e5, a9 as pQ, aa as i_, ab as r_, ac as O_, ad as o_, ae as a_, af as s_, ag as rP, ah as l_, ai as c_, aj as u_, ak as d_, al as f_, am as h_, an as p_, ao as $_, ap as g_, aq as $Q, ar as m_, as as Q_, at as S_, au as OP, av as w_, aw as y_ } from "./Flex-ad3a4da0.mjs"; +import { ax as NSe } from "./Flex-ad3a4da0.mjs"; +import * as de from "react"; +import X, { createElement as cO, Component as t5, memo as Zn, useState as we, forwardRef as Gn, useRef as Ot, useEffect as tt, useCallback as oe, useImperativeHandle as b_, useMemo as De, useLayoutEffect as x_, useContext as wa, createContext as n5, Fragment as kp, createRef as P_ } from "react"; +import { Link as sf } from "react-router-dom"; +import * as v_ from "react-dom"; +import X_, { createPortal as oP, findDOMNode as k_ } from "react-dom"; +function aP() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; - return lp(e); + return vp(e); } -var i0 = !1, pR = /* @__PURE__ */ Q_(function(t, e) { - process.env.NODE_ENV !== "production" && !i0 && // check for className as well since the user is +var gQ = !1, T_ = /* @__PURE__ */ YR(function(t, e) { + process.env.NODE_ENV !== "production" && !gQ && // check for className as well since the user is // probably using the custom createElement which // means it will be turned into a className prop // $FlowFixMe I don't really want to add it to the type since it shouldn't be used - (t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), i0 = !0); + (t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), gQ = !0); var n = t.styles; if (typeof n == "function") - return /* @__PURE__ */ nO(S_.Consumer, null, function(r) { - var O = lp([n(r)]); - return /* @__PURE__ */ nO(r0, { + return /* @__PURE__ */ cO(ZR.Consumer, null, function(r) { + var O = vp([n(r)]); + return /* @__PURE__ */ cO(mQ, { serialized: O, cache: e }); }); - var i = lp([n]); - return /* @__PURE__ */ nO(r0, { + var i = vp([n]); + return /* @__PURE__ */ cO(mQ, { serialized: i, cache: e }); -}), r0 = /* @__PURE__ */ function(t) { - hR(e, t); +}), mQ = /* @__PURE__ */ function(t) { + GR(e, t); function e(i, r, O) { return t.call(this, i, r, O) || this; } var n = e.prototype; return n.componentDidMount = function() { - this.sheet = new y_({ + this.sheet = new zR({ key: this.props.cache.key + "-global", nonce: this.props.cache.sheet.nonce, container: this.props.cache.sheet.container @@ -55,7 +47,7 @@ var i0 = !1, pR = /* @__PURE__ */ Q_(function(t, e) { }, n.componentDidUpdate = function(r) { r.serialized.name !== this.props.serialized.name && this.insertStyles(); }, n.insertStyles = function() { - if (this.props.serialized.next !== void 0 && b_(this.props.cache, this.props.serialized.next, !0), this.sheet.tags.length) { + if (this.props.serialized.next !== void 0 && UR(this.props.cache, this.props.serialized.next, !0), this.sheet.tags.length) { var r = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling; this.sheet.before = r, this.sheet.flush(); } @@ -65,8 +57,8 @@ var i0 = !1, pR = /* @__PURE__ */ Q_(function(t, e) { }, n.render = function() { return null; }, e; -}(Gg), Kx = function() { - var e = Jx.apply(void 0, arguments), n = "animation-" + e.name; +}(t5), sP = function() { + var e = aP.apply(void 0, arguments), n = "animation-" + e.name; return { name: n, styles: "@keyframes " + n + "{" + e.styles + "}", @@ -75,15 +67,15 @@ var i0 = !1, pR = /* @__PURE__ */ Q_(function(t, e) { return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; } }; -}, $R = function() { +}, C_ = function() { return !0; }; -const bu = $R; -var gR = /* @__PURE__ */ nt(function(e, n) { +const Gu = C_; +var R_ = /* @__PURE__ */ ot(function(e, n) { return Number(e) + Number(n); }); -const eP = gR; -function jg(t, e) { +const lP = R_; +function i5(t, e) { t = t || [], e = e || []; var n, i = t.length, r = e.length, O = []; for (n = 0; n < i; ) @@ -92,40 +84,40 @@ function jg(t, e) { O[O.length] = e[n], n += 1; return O; } -function tP(t, e, n) { +function cP(t, e, n) { return function() { - for (var i = [], r = 0, O = t, a = 0; a < e.length || r < arguments.length; ) { - var o; - a < e.length && (!KQ(e[a]) || r >= arguments.length) ? o = e[a] : (o = arguments[r], r += 1), i[a] = o, KQ(o) || (O -= 1), a += 1; + for (var i = [], r = 0, O = t, o = 0; o < e.length || r < arguments.length; ) { + var a; + o < e.length && (!fQ(e[o]) || r >= arguments.length) ? a = e[o] : (a = arguments[r], r += 1), i[o] = a, fQ(a) || (O -= 1), o += 1; } - return O <= 0 ? n.apply(this, i) : Ld(O, tP(t, i, n)); + return O <= 0 ? n.apply(this, i) : of(O, cP(t, i, n)); }; } -var wu = /* @__PURE__ */ nt(function(e, n) { - return e === 1 ? sr(n) : Ld(e, tP(e, [], n)); -}), mR = /* @__PURE__ */ $O(function(e, n, i) { +var zu = /* @__PURE__ */ ot(function(e, n) { + return e === 1 ? dr(n) : of(e, cP(e, [], n)); +}), __ = /* @__PURE__ */ vO(function(e, n, i) { var r = i.length; if (e >= r || e < -r) return i; - var O = (r + e) % r, a = jg(i); - return a[O] = n(i[O]), a; + var O = (r + e) % r, o = i5(i); + return o[O] = n(i[O]), o; }); -const es = mR; -function QR(t) { +const ls = __; +function W_(t) { return t != null && typeof t["@@transducer/step"] == "function"; } -function nP(t, e, n) { +function uP(t, e, n) { return function() { if (arguments.length === 0) return n(); var i = arguments[arguments.length - 1]; - if (!lo(i)) { + if (!Qa(i)) { for (var r = 0; r < t.length; ) { if (typeof i[t[r]] == "function") return i[t[r]].apply(i, Array.prototype.slice.call(arguments, 0, -1)); r += 1; } - if (QR(i)) { + if (W_(i)) { var O = e.apply(null, Array.prototype.slice.call(arguments, 0, -1)); return O(i); } @@ -133,7 +125,7 @@ function nP(t, e, n) { return n.apply(this, arguments); }; } -const xu = { +const Uu = { init: function() { return this.xf["@@transducer/init"](); }, @@ -141,74 +133,74 @@ const xu = { return this.xf["@@transducer/result"](t); } }; -var SR = /* @__PURE__ */ nt(function(e, n) { +var q_ = /* @__PURE__ */ ot(function(e, n) { return n > e ? n : e; }); -function Fc(t, e) { +function su(t, e) { for (var n = 0, i = e.length, r = Array(i); n < i; ) r[n] = t(e[n]), n += 1; return r; } -var yR = /* @__PURE__ */ function() { +var Y_ = /* @__PURE__ */ function() { function t(e, n) { this.xf = n, this.f = e; } - return t.prototype["@@transducer/init"] = xu.init, t.prototype["@@transducer/result"] = xu.result, t.prototype["@@transducer/step"] = function(e, n) { + return t.prototype["@@transducer/init"] = Uu.init, t.prototype["@@transducer/result"] = Uu.result, t.prototype["@@transducer/step"] = function(e, n) { return this.xf["@@transducer/step"](e, this.f(n)); }, t; -}(), bR = /* @__PURE__ */ nt(function(e, n) { - return new yR(e, n); -}), Nd = /* @__PURE__ */ nt( - /* @__PURE__ */ nP(["fantasy-land/map", "map"], bR, function(e, n) { +}(), Z_ = /* @__PURE__ */ ot(function(e, n) { + return new Y_(e, n); +}), lf = /* @__PURE__ */ ot( + /* @__PURE__ */ uP(["fantasy-land/map", "map"], Z_, function(e, n) { switch (Object.prototype.toString.call(n)) { case "[object Function]": - return wu(n.length, function() { + return zu(n.length, function() { return e.call(this, n.apply(this, arguments)); }); case "[object Object]": - return ul(function(i, r) { + return vl(function(i, r) { return i[r] = e(n[r]), i; - }, {}, Ea(n)); + }, {}, Ko(n)); default: - return Fc(e, n); + return su(e, n); } }) ); -const fo = Number.isInteger || function(e) { +const ya = Number.isInteger || function(e) { return e << 0 === e; }; -var wR = /* @__PURE__ */ nt(function(e, n) { +var G_ = /* @__PURE__ */ ot(function(e, n) { var i = e < 0 ? n.length + e : e; - return Yx(n) ? n.charAt(i) : n[i]; + return Lx(n) ? n.charAt(i) : n[i]; }); -const Ig = wR; -var xR = /* @__PURE__ */ nt(function(e, n) { +const r5 = G_; +var z_ = /* @__PURE__ */ ot(function(e, n) { if (n != null) - return fo(e) ? Ig(e, n) : n[e]; + return ya(e) ? r5(e, n) : n[e]; }); -const iP = xR; -var PR = /* @__PURE__ */ $O(ul); -const rP = PR; -var vR = /* @__PURE__ */ sr(function(e) { +const dP = z_; +var U_ = /* @__PURE__ */ vO(vl); +const fP = U_; +var V_ = /* @__PURE__ */ dr(function(e) { return function() { return e; }; }); -const ds = vR; -var XR = /* @__PURE__ */ nt(function(e, n) { +const ys = V_; +var j_ = /* @__PURE__ */ ot(function(e, n) { return e && n; -}), TR = /* @__PURE__ */ nt(function(e, n) { +}), E_ = /* @__PURE__ */ ot(function(e, n) { return typeof n["fantasy-land/ap"] == "function" ? n["fantasy-land/ap"](e) : typeof e.ap == "function" ? e.ap(n) : typeof e == "function" ? function(i) { return e(i)(n(i)); - } : ul(function(i, r) { - return jg(i, Nd(r, n)); + } : vl(function(i, r) { + return i5(i, lf(r, n)); }, [], e); -}), kR = /* @__PURE__ */ nt(function(e, n) { - return jg(n, [e]); +}), D_ = /* @__PURE__ */ ot(function(e, n) { + return i5(n, [e]); }); -const O0 = kR; -function CR(t, e, n) { - if (fo(t) && lo(n)) { +const QQ = D_; +function I_(t, e, n) { + if (ya(t) && Qa(n)) { var i = [].concat(n); return i[t] = e, i; } @@ -217,89 +209,89 @@ function CR(t, e, n) { r[O] = n[O]; return r[t] = e, r; } -var _R = /* @__PURE__ */ sr(function(e) { +var A_ = /* @__PURE__ */ dr(function(e) { return e == null; }); -const Pu = _R; -var RR = /* @__PURE__ */ $O(function t(e, n, i) { +const Vu = A_; +var F_ = /* @__PURE__ */ vO(function t(e, n, i) { if (e.length === 0) return n; var r = e[0]; if (e.length > 1) { - var O = !Pu(i) && Zg(r, i) ? i[r] : fo(e[1]) ? [] : {}; + var O = !Vu(i) && Jg(r, i) ? i[r] : ya(e[1]) ? [] : {}; n = t(Array.prototype.slice.call(e, 1), n, O); } - return CR(r, n, i); -}), ts = /* @__PURE__ */ $O(function(e, n, i) { - return RR([e], n, i); + return I_(r, n, i); +}), cs = /* @__PURE__ */ vO(function(e, n, i) { + return F_([e], n, i); }); -function Ag(t) { +function O5(t) { var e = Object.prototype.toString.call(t); return e === "[object Function]" || e === "[object AsyncFunction]" || e === "[object GeneratorFunction]" || e === "[object AsyncGeneratorFunction]"; } -var qR = /* @__PURE__ */ nt(function(e, n) { - var i = wu(e, n); - return wu(e, function() { - return ul(TR, Nd(i, arguments[0]), Array.prototype.slice.call(arguments, 1)); +var L_ = /* @__PURE__ */ ot(function(e, n) { + var i = zu(e, n); + return zu(e, function() { + return vl(E_, lf(i, arguments[0]), Array.prototype.slice.call(arguments, 1)); }); -}), WR = /* @__PURE__ */ sr(function(e) { - return qR(e.length, e); +}), N_ = /* @__PURE__ */ dr(function(e) { + return L_(e.length, e); }); -const Dg = WR; -var VR = /* @__PURE__ */ nt(function(e, n) { - return Ag(e) ? function() { +const o5 = N_; +var M_ = /* @__PURE__ */ ot(function(e, n) { + return O5(e) ? function() { return e.apply(this, arguments) && n.apply(this, arguments); - } : Dg(XR)(e, n); + } : o5(j_)(e, n); }); -const ZR = VR; -var UR = /* @__PURE__ */ $O(function(e, n, i) { +const H_ = M_; +var B_ = /* @__PURE__ */ vO(function(e, n, i) { if (e > n) throw new Error("min must not be greater than max in clamp(min, max, value)"); return i < e ? e : i > n ? n : i; }); -const OP = UR; -var YR = /* @__PURE__ */ sr(function(e) { +const hP = B_; +var J_ = /* @__PURE__ */ dr(function(e) { return !e; -}), zR = /* @__PURE__ */ Dg(YR); -const a0 = zR; -function GR(t, e) { +}), K_ = /* @__PURE__ */ o5(J_); +const SQ = K_; +function eW(t, e) { return function() { return e.call(this, t.apply(this, arguments)); }; } -function aP(t, e) { +function pP(t, e) { return function() { var n = arguments.length; if (n === 0) return e(); var i = arguments[n - 1]; - return lo(i) || typeof i[t] != "function" ? e.apply(this, arguments) : i[t].apply(i, Array.prototype.slice.call(arguments, 0, n - 1)); + return Qa(i) || typeof i[t] != "function" ? e.apply(this, arguments) : i[t].apply(i, Array.prototype.slice.call(arguments, 0, n - 1)); }; } -var ER = /* @__PURE__ */ $O( - /* @__PURE__ */ aP("slice", function(e, n, i) { +var tW = /* @__PURE__ */ vO( + /* @__PURE__ */ pP("slice", function(e, n, i) { return Array.prototype.slice.call(i, e, n); }) -), jR = /* @__PURE__ */ sr( - /* @__PURE__ */ aP( +), nW = /* @__PURE__ */ dr( + /* @__PURE__ */ pP( "tail", - /* @__PURE__ */ ER(1, 1 / 0) + /* @__PURE__ */ tW(1, 1 / 0) ) ); -const IR = jR; -function AR() { +const iW = nW; +function rW() { if (arguments.length === 0) throw new Error("pipe requires at least one argument"); - return Ld(arguments[0].length, rP(GR, arguments[0], IR(arguments))); + return of(arguments[0].length, fP(eW, arguments[0], iW(arguments))); } -var DR = /* @__PURE__ */ Ig(0); -const dp = DR; -function o0(t) { +var OW = /* @__PURE__ */ r5(0); +const Tp = OW; +function wQ(t) { for (var e = [], n; !(n = t.next()).done; ) e.push(n.value); return e; } -function s0(t, e, n) { +function yQ(t, e, n) { for (var i = 0, r = n.length; i < r; ) { if (t(e, n[i])) return !0; @@ -307,28 +299,28 @@ function s0(t, e, n) { } return !1; } -function LR(t) { +function oW(t) { var e = String(t).match(/^function (\w*)/); return e == null ? "" : e[1]; } -function FR(t, e) { +function aW(t, e) { return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e; } -const e1 = typeof Object.is == "function" ? Object.is : FR; -function l0(t, e, n, i) { - var r = o0(t), O = o0(e); - function a(o, s) { - return Lg(o, s, n.slice(), i.slice()); +const h1 = typeof Object.is == "function" ? Object.is : aW; +function bQ(t, e, n, i) { + var r = wQ(t), O = wQ(e); + function o(a, s) { + return a5(a, s, n.slice(), i.slice()); } - return !s0(function(o, s) { - return !s0(a, s, o); + return !yQ(function(a, s) { + return !yQ(o, s, a); }, O, r); } -function Lg(t, e, n, i) { - if (e1(t, e)) +function a5(t, e, n, i) { + if (h1(t, e)) return !0; - var r = mu(t); - if (r !== mu(e)) + var r = qu(t); + if (r !== qu(e)) return !1; if (typeof t["fantasy-land/equals"] == "function" || typeof e["fantasy-land/equals"] == "function") return typeof t["fantasy-land/equals"] == "function" && t["fantasy-land/equals"](e) && typeof e["fantasy-land/equals"] == "function" && e["fantasy-land/equals"](t); @@ -338,17 +330,17 @@ function Lg(t, e, n, i) { case "Arguments": case "Array": case "Object": - if (typeof t.constructor == "function" && LR(t.constructor) === "Promise") + if (typeof t.constructor == "function" && oW(t.constructor) === "Promise") return t === e; break; case "Boolean": case "Number": case "String": - if (!(typeof t == typeof e && e1(t.valueOf(), e.valueOf()))) + if (!(typeof t == typeof e && h1(t.valueOf(), e.valueOf()))) return !1; break; case "Date": - if (!e1(t.valueOf(), e.valueOf())) + if (!h1(t.valueOf(), e.valueOf())) return !1; break; case "Error": @@ -365,9 +357,9 @@ function Lg(t, e, n, i) { } switch (r) { case "Map": - return t.size !== e.size ? !1 : l0(t.entries(), e.entries(), n.concat([t]), i.concat([e])); + return t.size !== e.size ? !1 : bQ(t.entries(), e.entries(), n.concat([t]), i.concat([e])); case "Set": - return t.size !== e.size ? !1 : l0(t.values(), e.values(), n.concat([t]), i.concat([e])); + return t.size !== e.size ? !1 : bQ(t.values(), e.values(), n.concat([t]), i.concat([e])); case "Arguments": case "Array": case "Object": @@ -391,22 +383,22 @@ function Lg(t, e, n, i) { default: return !1; } - var a = Ea(t); - if (a.length !== Ea(e).length) + var o = Ko(t); + if (o.length !== Ko(e).length) return !1; - var o = n.concat([t]), s = i.concat([e]); - for (O = a.length - 1; O >= 0; ) { - var l = a[O]; - if (!(Zg(l, e) && Lg(e[l], t[l], o, s))) + var a = n.concat([t]), s = i.concat([e]); + for (O = o.length - 1; O >= 0; ) { + var l = o[O]; + if (!(Jg(l, e) && a5(e[l], t[l], a, s))) return !1; O -= 1; } return !0; } -var GO = /* @__PURE__ */ nt(function(e, n) { - return Lg(e, n, [], []); +var JO = /* @__PURE__ */ ot(function(e, n) { + return a5(e, n, [], []); }); -function MR(t, e, n) { +function sW(t, e, n) { var i, r; if (typeof t.indexOf == "function") switch (typeof e) { @@ -437,83 +429,83 @@ function MR(t, e, n) { return t.indexOf(e, n); } for (; n < t.length; ) { - if (GO(t[n], e)) + if (JO(t[n], e)) return n; n += 1; } return -1; } -function NR(t, e) { - return MR(e, t, 0) >= 0; +function lW(t, e) { + return sW(e, t, 0) >= 0; } -function t1(t) { +function p1(t) { var e = t.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0"); return '"' + e.replace(/"/g, '\\"') + '"'; } -var vo = function(e) { +var Ya = function(e) { return (e < 10 ? "0" : "") + e; -}, BR = typeof Date.prototype.toISOString == "function" ? function(e) { +}, cW = typeof Date.prototype.toISOString == "function" ? function(e) { return e.toISOString(); } : function(e) { - return e.getUTCFullYear() + "-" + vo(e.getUTCMonth() + 1) + "-" + vo(e.getUTCDate()) + "T" + vo(e.getUTCHours()) + ":" + vo(e.getUTCMinutes()) + ":" + vo(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z"; + return e.getUTCFullYear() + "-" + Ya(e.getUTCMonth() + 1) + "-" + Ya(e.getUTCDate()) + "T" + Ya(e.getUTCHours()) + ":" + Ya(e.getUTCMinutes()) + ":" + Ya(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z"; }; -function HR(t) { +function uW(t) { return function() { return !t.apply(this, arguments); }; } -function JR(t, e) { +function dW(t, e) { for (var n = 0, i = e.length, r = []; n < i; ) t(e[n]) && (r[r.length] = e[n]), n += 1; return r; } -var KR = /* @__PURE__ */ function() { +var fW = /* @__PURE__ */ function() { function t(e, n) { this.xf = n, this.f = e; } - return t.prototype["@@transducer/init"] = xu.init, t.prototype["@@transducer/result"] = xu.result, t.prototype["@@transducer/step"] = function(e, n) { + return t.prototype["@@transducer/init"] = Uu.init, t.prototype["@@transducer/result"] = Uu.result, t.prototype["@@transducer/step"] = function(e, n) { return this.f(n) ? this.xf["@@transducer/step"](e, n) : e; }, t; -}(), eq = /* @__PURE__ */ nt(function(e, n) { - return new KR(e, n); -}), tq = /* @__PURE__ */ nt( - /* @__PURE__ */ nP(["fantasy-land/filter", "filter"], eq, function(t, e) { - return zx(e) ? ul(function(n, i) { +}(), hW = /* @__PURE__ */ ot(function(e, n) { + return new fW(e, n); +}), pW = /* @__PURE__ */ ot( + /* @__PURE__ */ uP(["fantasy-land/filter", "filter"], hW, function(t, e) { + return Nx(e) ? vl(function(n, i) { return t(e[i]) && (n[i] = e[i]), n; - }, {}, Ea(e)) : ( + }, {}, Ko(e)) : ( // else - JR(t, e) + dW(t, e) ); }) -), nq = /* @__PURE__ */ nt(function(e, n) { - return tq(HR(e), n); +), $W = /* @__PURE__ */ ot(function(e, n) { + return pW(uW(e), n); }); -function oP(t, e) { - var n = function(a) { - var o = e.concat([t]); - return NR(a, o) ? "" : oP(a, o); - }, i = function(O, a) { - return Fc(function(o) { - return t1(o) + ": " + n(O[o]); - }, a.slice().sort()); +function $P(t, e) { + var n = function(o) { + var a = e.concat([t]); + return lW(o, a) ? "" : $P(o, a); + }, i = function(O, o) { + return su(function(a) { + return p1(a) + ": " + n(O[a]); + }, o.slice().sort()); }; switch (Object.prototype.toString.call(t)) { case "[object Arguments]": - return "(function() { return arguments; }(" + Fc(n, t).join(", ") + "))"; + return "(function() { return arguments; }(" + su(n, t).join(", ") + "))"; case "[object Array]": - return "[" + Fc(n, t).concat(i(t, nq(function(O) { + return "[" + su(n, t).concat(i(t, $W(function(O) { return /^\d+$/.test(O); - }, Ea(t)))).join(", ") + "]"; + }, Ko(t)))).join(", ") + "]"; case "[object Boolean]": return typeof t == "object" ? "new Boolean(" + n(t.valueOf()) + ")" : t.toString(); case "[object Date]": - return "new Date(" + (isNaN(t.valueOf()) ? n(NaN) : t1(BR(t))) + ")"; + return "new Date(" + (isNaN(t.valueOf()) ? n(NaN) : p1(cW(t))) + ")"; case "[object Null]": return "null"; case "[object Number]": return typeof t == "object" ? "new Number(" + n(t.valueOf()) + ")" : 1 / t === -1 / 0 ? "-0" : t.toString(10); case "[object String]": - return typeof t == "object" ? "new String(" + n(t.valueOf()) + ")" : t1(t); + return typeof t == "object" ? "new String(" + n(t.valueOf()) + ")" : p1(t); case "[object Undefined]": return "undefined"; default: @@ -522,16 +514,16 @@ function oP(t, e) { if (r !== "[object Object]") return r; } - return "{" + i(t, Ea(t)).join(", ") + "}"; + return "{" + i(t, Ko(t)).join(", ") + "}"; } } -var iq = /* @__PURE__ */ sr(function(e) { - return oP(e, []); -}), rq = /* @__PURE__ */ sr(function(e) { - var n = rP(SR, 0, Nd(function(i) { +var gW = /* @__PURE__ */ dr(function(e) { + return $P(e, []); +}), mW = /* @__PURE__ */ dr(function(e) { + var n = fP(q_, 0, lf(function(i) { return i[0].length; }, e)); - return Ld(n, function() { + return of(n, function() { for (var i = 0; i < e.length; ) { if (e[i][0].apply(this, arguments)) return e[i][1].apply(this, arguments); @@ -539,136 +531,136 @@ var iq = /* @__PURE__ */ sr(function(e) { } }); }); -const vu = rq; -var Oq = /* @__PURE__ */ eP(-1); -const aq = Oq; -var oq = /* @__PURE__ */ nt(function(e, n) { +const ju = mW; +var QW = /* @__PURE__ */ lP(-1); +const SW = QW; +var wW = /* @__PURE__ */ ot(function(e, n) { return n == null || n !== n ? e : n; -}), sq = /* @__PURE__ */ $O(function(e, n, i) { +}), yW = /* @__PURE__ */ vO(function(e, n, i) { var r = Array.prototype.slice.call(i, 0); return r.splice(e, n), r; }); -function lq(t, e) { +function bW(t, e) { if (e == null) return e; - if (fo(t) && lo(e)) - return sq(t, 1, e); + if (ya(t) && Qa(e)) + return yW(t, 1, e); var n = {}; for (var i in e) n[i] = e[i]; return delete n[t], n; } -function cq(t, e) { - if (fo(t) && lo(e)) +function xW(t, e) { + if (ya(t) && Qa(e)) return [].concat(e); var n = {}; for (var i in e) n[i] = e[i]; return n; } -var uq = /* @__PURE__ */ nt(function t(e, n) { +var PW = /* @__PURE__ */ ot(function t(e, n) { if (n == null) return n; switch (e.length) { case 0: return n; case 1: - return lq(e[0], n); + return bW(e[0], n); default: var i = e[0], r = Array.prototype.slice.call(e, 1); - return n[i] == null ? cq(i, n) : ts(i, t(r, n[i]), n); + return n[i] == null ? xW(i, n) : cs(i, t(r, n[i]), n); } -}), dq = /* @__PURE__ */ nt(function(e, n) { - return uq([e], n); +}), vW = /* @__PURE__ */ ot(function(e, n) { + return PW([e], n); }); -const fq = dq; -var hq = /* @__PURE__ */ nt(function(e, n) { +const XW = vW; +var kW = /* @__PURE__ */ ot(function(e, n) { return e || n; -}), pq = /* @__PURE__ */ nt(function(e, n) { - return Ag(e) ? function() { +}), TW = /* @__PURE__ */ ot(function(e, n) { + return O5(e) ? function() { return e.apply(this, arguments) || n.apply(this, arguments); - } : Dg(hq)(e, n); + } : o5(kW)(e, n); }); -const fp = pq; -function $q(t) { +const Cp = TW; +function CW(t) { var e = Object.prototype.toString.call(t); return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]"; } -var gq = /* @__PURE__ */ sr(function(e) { - return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : lo(e) ? [] : Yx(e) ? "" : zx(e) ? {} : w_(e) ? function() { +var RW = /* @__PURE__ */ dr(function(e) { + return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : Qa(e) ? [] : Lx(e) ? "" : Nx(e) ? {} : VR(e) ? function() { return arguments; - }() : $q(e) ? e.constructor.from("") : void 0; -}), mq = /* @__PURE__ */ eP(1); -const Qq = mq; -function Sq(t) { + }() : CW(e) ? e.constructor.from("") : void 0; +}), _W = /* @__PURE__ */ lP(1); +const WW = _W; +function qW(t) { if (t == null) throw new TypeError("Cannot convert undefined or null to object"); for (var e = Object(t), n = 1, i = arguments.length; n < i; ) { var r = arguments[n]; if (r != null) for (var O in r) - Zg(O, r) && (e[O] = r[O]); + Jg(O, r) && (e[O] = r[O]); n += 1; } return e; } -const yq = typeof Object.assign == "function" ? Object.assign : Sq; -var bq = /* @__PURE__ */ nt(function(e, n) { - return wu(e + 1, function() { +const YW = typeof Object.assign == "function" ? Object.assign : qW; +var ZW = /* @__PURE__ */ ot(function(e, n) { + return zu(e + 1, function() { var i = arguments[e]; - if (i != null && Ag(i[n])) + if (i != null && O5(i[n])) return i[n].apply(i, Array.prototype.slice.call(arguments, 0, e)); - throw new TypeError(iq(i) + ' does not have a method named "' + n + '"'); + throw new TypeError(gW(i) + ' does not have a method named "' + n + '"'); }); }); -const sP = bq; -var wq = /* @__PURE__ */ sr(function(e) { - return e != null && GO(e, gq(e)); +const gP = ZW; +var GW = /* @__PURE__ */ dr(function(e) { + return e != null && JO(e, RW(e)); }); -const lP = wq; -var xq = /* @__PURE__ */ nt(function(e, n) { +const mP = GW; +var zW = /* @__PURE__ */ ot(function(e, n) { return e.map(function(i) { - for (var r = n, O = 0, a; O < i.length; ) { + for (var r = n, O = 0, o; O < i.length; ) { if (r == null) return; - a = i[O], r = fo(a) ? Ig(a, r) : r[a], O += 1; + o = i[O], r = ya(o) ? r5(o, r) : r[o], O += 1; } return r; }); -}), Pq = /* @__PURE__ */ nt(function(e, n) { - return xq([e], n)[0]; +}), UW = /* @__PURE__ */ ot(function(e, n) { + return zW([e], n)[0]; }); -const vq = Pq; -var Xq = /* @__PURE__ */ nt(function(e, n) { +const VW = UW; +var jW = /* @__PURE__ */ ot(function(e, n) { return e < n; }); -const Tq = Xq; -var kq = /* @__PURE__ */ nt(function(e, n) { - return x_(function(i, r, O) { +const EW = jW; +var DW = /* @__PURE__ */ ot(function(e, n) { + return jR(function(i, r, O) { return O; }, e, n); }); -const DO = kq; -var Cq = /* @__PURE__ */ nt(function(e, n) { - return yq({}, n, e); +const no = DW; +var IW = /* @__PURE__ */ ot(function(e, n) { + return YW({}, n, e); }); -const Rr = Cq; -var _q = /* @__PURE__ */ nt(function(e, n) { +const Ur = IW; +var AW = /* @__PURE__ */ ot(function(e, n) { for (var i = {}, r = 0; r < e.length; ) e[r] in n && (i[e[r]] = n[e[r]]), r += 1; return i; }); -const Rq = _q; -var qq = /* @__PURE__ */ $O(function(e, n, i) { - return oq(e, iP(n, i)); +const FW = AW; +var LW = /* @__PURE__ */ vO(function(e, n, i) { + return wW(e, dP(n, i)); }); -const Wq = qq; -var Vq = /* @__PURE__ */ sP(1, "split"); -const Zq = Vq; -var Uq = /* @__PURE__ */ sP(0, "toUpperCase"); -const Yq = Uq; -var Ze = /* @__PURE__ */ ((t) => (t[t.db = 0] = "db", t[t.terminal = 1] = "terminal", t[t.plus = 2] = "plus", t[t.home = 3] = "home", t[t.fg = 4] = "fg", t[t.td = 5] = "td", t[t.sc = 6] = "sc", t[t.settings = 7] = "settings", t[t.back = 8] = "back", t[t.download = 9] = "download", t[t.folder = 10] = "folder", t[t.creation = 11] = "creation", t[t.more_zoom = 12] = "more_zoom", t[t.stats = 13] = "stats", t[t.history = 14] = "history", t[t.table = 15] = "table", t[t.list = 16] = "list", t[t.loading = 17] = "loading", t[t.refresh = 18] = "refresh", t[t.copy = 19] = "copy", t[t.bin = 20] = "bin", t[t.edit = 21] = "edit", t[t.stop = 22] = "stop", t[t.play = 23] = "play", t[t.card = 24] = "card", t[t.lines = 25] = "lines", t[t.arrow_down = 26] = "arrow_down", t[t.arrow_up = 27] = "arrow_up", t[t.arrow_left = 28] = "arrow_left", t[t.arrow_right = 29] = "arrow_right", t[t.arrows_maximize = 30] = "arrows_maximize", t[t.validate = 31] = "validate", t[t.data_validation = 32] = "data_validation", t[t.ingest = 33] = "ingest", t[t.jobs = 34] = "jobs", t[t.job = 35] = "job", t[t.birth = 36] = "birth", t[t.schema_update = 37] = "schema_update", t[t.new_stats = 38] = "new_stats", t[t.primary = 39] = "primary", t[t.partition = 40] = "partition", t[t.secondary = 41] = "secondary", t[t.lock = 42] = "lock", t[t.glass = 43] = "glass", t[t.left = 44] = "left", t[t.more = 45] = "more", t[t.cross = 46] = "cross", t[t.eye = 47] = "eye", t[t.warning = 48] = "warning", t[t.error = 49] = "error", t[t.info_block = 50] = "info_block", t[t.info = 51] = "info", t[t.interrogation = 52] = "interrogation", t[t.user_square = 53] = "user_square", t[t.ram = 54] = "ram", t[t.server = 55] = "server", t[t.cpu = 56] = "cpu", t[t.time = 57] = "time", t[t.commit = 58] = "commit", t[t.block = 59] = "block", t[t.streamed = 60] = "streamed", t[t.polygonUp = 61] = "polygonUp", t[t.polygonDown = 62] = "polygonDown", t[t.file = 63] = "file", t[t.fileData = 64] = "fileData", t[t.filecode = 65] = "filecode", t[t.fileImage = 66] = "fileImage", t[t.fileZip = 67] = "fileZip", t[t.dataset = 68] = "dataset", t[t.sharedWith = 69] = "sharedWith", t[t.sharedFrom = 70] = "sharedFrom", t[t.hopworks = 71] = "hopworks", t[t.upload = 72] = "upload", t[t.arrow_down_filled = 73] = "arrow_down_filled", t[t.arrow_up_down = 74] = "arrow_up_down", t[t.contact = 75] = "contact", t[t.expand = 76] = "expand", t[t.minimise = 77] = "minimise", t[t.pin_filled = 78] = "pin_filled", t[t.pin_empty = 79] = "pin_empty", t[t.models = 80] = "models", t[t.deployments = 81] = "deployments", t[t.jupyter = 82] = "jupyter", t[t.datasets = 83] = "datasets", t[t.favouriteEmpty = 84] = "favouriteEmpty", t[t.favouriteFilled = 85] = "favouriteFilled", t[t.correlation = 86] = "correlation", t[t.grafana = 87] = "grafana", t[t.target = 88] = "target", t[t.stdout = 89] = "stdout", t[t.stderr = 90] = "stderr", t[t.tensorflow = 91] = "tensorflow", t[t.rokect = 92] = "rokect", t[t.python = 93] = "python", t[t.airflow = 94] = "airflow", t[t.gitdiff = 95] = "gitdiff", t))(Ze || {}); -function Fg(t, e = cp.colors.black, n = cp.iconSizes.lg) { +const NW = LW; +var MW = /* @__PURE__ */ gP(1, "split"); +const HW = MW; +var BW = /* @__PURE__ */ gP(0, "toUpperCase"); +const JW = BW; +var ze = /* @__PURE__ */ ((t) => (t[t.db = 0] = "db", t[t.terminal = 1] = "terminal", t[t.plus = 2] = "plus", t[t.home = 3] = "home", t[t.fg = 4] = "fg", t[t.td = 5] = "td", t[t.sc = 6] = "sc", t[t.settings = 7] = "settings", t[t.back = 8] = "back", t[t.download = 9] = "download", t[t.folder = 10] = "folder", t[t.creation = 11] = "creation", t[t.more_zoom = 12] = "more_zoom", t[t.stats = 13] = "stats", t[t.history = 14] = "history", t[t.table = 15] = "table", t[t.list = 16] = "list", t[t.loading = 17] = "loading", t[t.refresh = 18] = "refresh", t[t.copy = 19] = "copy", t[t.bin = 20] = "bin", t[t.edit = 21] = "edit", t[t.stop = 22] = "stop", t[t.play = 23] = "play", t[t.card = 24] = "card", t[t.lines = 25] = "lines", t[t.arrow_down = 26] = "arrow_down", t[t.arrow_up = 27] = "arrow_up", t[t.arrow_left = 28] = "arrow_left", t[t.arrow_right = 29] = "arrow_right", t[t.arrows_maximize = 30] = "arrows_maximize", t[t.validate = 31] = "validate", t[t.data_validation = 32] = "data_validation", t[t.ingest = 33] = "ingest", t[t.jobs = 34] = "jobs", t[t.job = 35] = "job", t[t.birth = 36] = "birth", t[t.schema_update = 37] = "schema_update", t[t.new_stats = 38] = "new_stats", t[t.primary = 39] = "primary", t[t.partition = 40] = "partition", t[t.secondary = 41] = "secondary", t[t.lock = 42] = "lock", t[t.glass = 43] = "glass", t[t.left = 44] = "left", t[t.more = 45] = "more", t[t.cross = 46] = "cross", t[t.eye = 47] = "eye", t[t.warning = 48] = "warning", t[t.error = 49] = "error", t[t.info_block = 50] = "info_block", t[t.info = 51] = "info", t[t.interrogation = 52] = "interrogation", t[t.user_square = 53] = "user_square", t[t.ram = 54] = "ram", t[t.server = 55] = "server", t[t.cpu = 56] = "cpu", t[t.time = 57] = "time", t[t.commit = 58] = "commit", t[t.block = 59] = "block", t[t.streamed = 60] = "streamed", t[t.polygonUp = 61] = "polygonUp", t[t.polygonDown = 62] = "polygonDown", t[t.file = 63] = "file", t[t.fileData = 64] = "fileData", t[t.filecode = 65] = "filecode", t[t.fileImage = 66] = "fileImage", t[t.fileZip = 67] = "fileZip", t[t.dataset = 68] = "dataset", t[t.sharedWith = 69] = "sharedWith", t[t.sharedFrom = 70] = "sharedFrom", t[t.hopworks = 71] = "hopworks", t[t.upload = 72] = "upload", t[t.arrow_down_filled = 73] = "arrow_down_filled", t[t.arrow_up_down = 74] = "arrow_up_down", t[t.contact = 75] = "contact", t[t.expand = 76] = "expand", t[t.minimise = 77] = "minimise", t[t.pin_filled = 78] = "pin_filled", t[t.pin_empty = 79] = "pin_empty", t[t.models = 80] = "models", t[t.deployments = 81] = "deployments", t[t.jupyter = 82] = "jupyter", t[t.datasets = 83] = "datasets", t[t.favouriteEmpty = 84] = "favouriteEmpty", t[t.favouriteFilled = 85] = "favouriteFilled", t[t.correlation = 86] = "correlation", t[t.grafana = 87] = "grafana", t[t.target = 88] = "target", t[t.stdout = 89] = "stdout", t[t.stderr = 90] = "stderr", t[t.tensorflow = 91] = "tensorflow", t[t.rokect = 92] = "rokect", t[t.python = 93] = "python", t[t.airflow = 94] = "airflow", t[t.gitdiff = 95] = "gitdiff", t))(ze || {}); +function s5(t, e = Xp.colors.black, n = Xp.iconSizes.lg) { switch (t) { case 71: return /* @__PURE__ */ f.jsxs( @@ -2973,30 +2965,30 @@ function Fg(t, e = cp.colors.black, n = cp.iconSizes.lg) { return /* @__PURE__ */ f.jsx("svg", {}); } } -const je = ({ +const Ie = ({ icon: t, color: e = "black", size: n = "lg", ...i }) => { - const r = dl(), O = vq(Zq(".", e), r.colors), a = iP(n, r.iconSizes); + const r = Xl(), O = VW(HW(".", e), r.colors), o = dP(n, r.iconSizes); return /* @__PURE__ */ f.jsx( - G, + j, { ...i, sx: { - minWidth: a, + minWidth: o, height: "auto", svg: { - width: a, - height: a + width: o, + height: o }, ...i.sx }, - children: Fg(t, O, a) + children: s5(t, O, o) } ); -}, n1 = { +}, $1 = { default: { border: "1px solid", borderColor: "grayShade3", @@ -3036,46 +3028,46 @@ const je = ({ flex: { gap: "4px" } -}, zq = { +}, KW = { horizontal: "row", vertical: "column-reverse" -}, Gq = ({ href: t, newTab: e }) => t ? { +}, eq = ({ href: t, newTab: e }) => t ? { href: t, as: "a", rel: "noreferrer", target: e ? "_blank" : "_self" -} : {}, Eq = ({ +} : {}, tq = ({ icon: t, href: e, children: n, isActive: i, indicator: r, sx: O = {}, - newTab: a = !1, - mode: o = "default", + newTab: o = !1, + mode: a = "default", ...s }) => /* @__PURE__ */ f.jsx( - co, + Sa, { ...s, - ...Gq({ newTab: a, href: e }), - sx: { ...n1.default, ...n1[o], ...O }, + ...eq({ newTab: o, href: e }), + sx: { ...$1.default, ...$1[a], ...O }, children: /* @__PURE__ */ f.jsxs( - G, + j, { alignItems: "center", justifyContent: "center", - sx: n1.flex, - flexDirection: zq[r ?? "horizontal"], + sx: $1.flex, + flexDirection: KW[r ?? "horizontal"], children: [ - !!t && /* @__PURE__ */ f.jsx(je, { icon: t, size: "xs" }), + !!t && /* @__PURE__ */ f.jsx(Ie, { icon: t, size: "xs" }), r && !t && /* @__PURE__ */ f.jsx("span", { "data-active": i }), - /* @__PURE__ */ f.jsx(Y, { children: n }) + /* @__PURE__ */ f.jsx(z, { children: n }) ] } ) } -), B0e = Vn(Eq), jq = { +), q2e = Zn(tq), nq = { display: "flex", position: "relative", flexDirection: "row", @@ -3092,7 +3084,7 @@ const je = ({ ":disabled": { cursor: "default" } -}, Iq = { +}, iq = { position: "absolute", display: "none", width: "100%", @@ -3100,7 +3092,7 @@ const je = ({ left: 0, top: 0, opacity: 0 -}, Aq = { +}, rq = { height: "15px", overflow: "hidden", display: "inline-block", @@ -3110,46 +3102,46 @@ const je = ({ fill: "primary" } } -}, H0e = ({ +}, Y2e = ({ children: t, href: e, modeNFiles: n, currentRef: i, name: r, value: O, - onHandleUpload: a, - handleClick: o, + onHandleUpload: o, + handleClick: a, validExtensions: s, isDisabledUploadButton: l, ...c -}) => /* @__PURE__ */ f.jsx(G, { flexDirection: "column", children: /* @__PURE__ */ f.jsxs( - co, +}) => /* @__PURE__ */ f.jsx(j, { flexDirection: "column", children: /* @__PURE__ */ f.jsxs( + Sa, { disabled: l, - sx: { ...jq }, + sx: { ...nq }, variant: "secondary", ...c, - onClick: o, + onClick: a, children: [ - /* @__PURE__ */ f.jsx(Y, { sx: { ...Aq }, children: /* @__PURE__ */ f.jsx(je, { color: "primary", size: "sm", icon: Ze.upload }) }), + /* @__PURE__ */ f.jsx(z, { sx: { ...rq }, children: /* @__PURE__ */ f.jsx(Ie, { color: "primary", size: "sm", icon: ze.upload }) }), /* @__PURE__ */ f.jsx( "input", { type: "file", name: r, style: { - ...Iq + ...iq }, ref: i, multiple: n, ...s && { accept: s.join(",") }, - onChange: a + onChange: o } ), t ] } -) }), Dq = { +) }), Oq = { display: "flex", justifyContent: "space-between", alignItems: "center", @@ -3171,14 +3163,14 @@ const je = ({ "> div:last-child:after": { display: "none" } -}, Lq = { +}, oq = { display: "flex", justifyContent: "space-between", alignItems: "center", button: { ml: "20px" } -}, Fq = { +}, aq = { width: "100%", minWidth: "700px", borderStyle: "solid", @@ -3191,8 +3183,8 @@ const je = ({ py: "20px", zIndex: 1, backgroundColor: "grayShade3" -}, be = ({ children: t, bold: e, gray: n, sx: i, ...r }) => /* @__PURE__ */ f.jsx( - wn, +}, xe = ({ children: t, bold: e, gray: n, sx: i, ...r }) => /* @__PURE__ */ f.jsx( + xn, { variant: `labeling${n ? "Gray" : ""}`, fontWeight: e ? "label" : void 0, @@ -3201,13 +3193,13 @@ const je = ({ children: t } ); -var Mg = /* @__PURE__ */ ((t) => (t.oneFile = "oneFile", t.nFiles = "nFiles", t.oneFolder = "oneFolder", t))(Mg || {}); -const Mq = Kx`from { +var l5 = /* @__PURE__ */ ((t) => (t.oneFile = "oneFile", t.nFiles = "nFiles", t.oneFolder = "oneFolder", t))(l5 || {}); +const sq = sP`from { transform: rotate(50deg) } to { transform: rotate(410deg) - }`, Nq = (t, e) => ({ + }`, lq = (t, e) => ({ display: "inline-block", position: "relative", width: `${t}px`, @@ -3221,7 +3213,7 @@ const Mq = Kx`from { borderStyle: "solid", borderWidth: "3px", borderRadius: "50%", - animation: `${Mq} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite`, + animation: `${sq} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite`, borderLeftColor: e, borderRightColor: "transparent", borderTopColor: "transparent", @@ -3236,12 +3228,12 @@ const Mq = Kx`from { animationDelay: "-0.15s" } } -}), fl = ({ size: t = 20, color: e = "primary", ...n }) => /* @__PURE__ */ f.jsxs(Y, { sx: { ...Nq(t, e) }, ...n, children: [ +}), kl = ({ size: t = 20, color: e = "primary", ...n }) => /* @__PURE__ */ f.jsxs(z, { sx: { ...lq(t, e) }, ...n, children: [ /* @__PURE__ */ f.jsx("div", {}), /* @__PURE__ */ f.jsx("div", {}), /* @__PURE__ */ f.jsx("div", {}), /* @__PURE__ */ f.jsx("div", {}) -] }), Bq = { +] }), cq = { display: "flex", flexDirection: "row", alignItems: "center", @@ -3264,37 +3256,37 @@ const Mq = Kx`from { justifyContent: "center", alignItems: "center" } -}, Hq = (t) => P_[t][":disabled"].color; -const xn = ({ +}, uq = (t) => ER[t][":disabled"].color; +const Pn = ({ icon: t, children: e, href: n, target: i, sx: r, external: O = !1, - disabled: a = !1, - intent: o = "primary", + disabled: o = !1, + intent: a = "primary", loadingOnly: s = !1, isLoading: l = !1, type: c = "button", ...u }) => { const d = /* @__PURE__ */ f.jsxs( - co, + Sa, { - variant: o, - as: n && !a ? "span" : "button", - disabled: a || l, - sx: { ...Bq, ...r }, + variant: a, + as: n && !o ? "span" : "button", + disabled: o || l, + sx: { ...cq, ...r }, type: c, ...u, children: [ - t && (!s || !l) && /* @__PURE__ */ f.jsx(je, { icon: t, size: "md", color: Kq(o) }), + t && (!s || !l) && /* @__PURE__ */ f.jsx(Ie, { icon: t, size: "md", color: fq(a) }), (!s || !l) && e, l && /* @__PURE__ */ f.jsx( - fl, + kl, { - color: Hq(o), + color: uq(a), ml: s ? "0px" : "15px" } ) @@ -3310,20 +3302,20 @@ const xn = ({ ...i === "_blank" ? { rel: "noopener noreferrer" } : {}, children: d } - ) : /* @__PURE__ */ f.jsx(Md, { className: "link-button", to: n, target: i, children: d }) : d; -}, Jq = { + ) : /* @__PURE__ */ f.jsx(sf, { className: "link-button", to: n, target: i, children: d }) : d; +}, dq = { primary: "white", alert: "labels.red" /* [others]: 'primary' */ -}, Kq = (t) => Wq(t, "primary")(Jq), eW = ({ +}, fq = (t) => NW(t, "primary")(dq), hq = ({ value: t, activeFile: e, - mode: n = Mg.oneFile, + mode: n = l5.oneFile, onClose: i, handleSelectFile: r, fileListValue: O, - rootDir: a, - ...o + rootDir: o, + ...a }) => { const s = { oneFile: { @@ -3337,14 +3329,14 @@ const xn = ({ handleSelect: () => r(O, !1) }, oneFolder: { - exploreMode: t || a, + exploreMode: t || o, color: "primary", - handleSelect: () => r(t || a, !1) + handleSelect: () => r(t || o, !1) } }, { exploreMode: l, color: c, handleSelect: u } = s[n]; - return /* @__PURE__ */ f.jsxs(G, { sx: Fq, ...o, children: [ - /* @__PURE__ */ f.jsx(Y, { sx: Dq, children: n && /* @__PURE__ */ f.jsx( - be, + return /* @__PURE__ */ f.jsxs(j, { sx: aq, ...a, children: [ + /* @__PURE__ */ f.jsx(z, { sx: Oq, children: n && /* @__PURE__ */ f.jsx( + xe, { bold: !0, sx: { @@ -3355,10 +3347,10 @@ const xn = ({ children: l } ) }), - /* @__PURE__ */ f.jsxs(Y, { sx: Lq, children: [ - /* @__PURE__ */ f.jsx(xn, { variant: "file-secondary", onClick: () => i(!1), children: "Back" }), + /* @__PURE__ */ f.jsxs(z, { sx: oq, children: [ + /* @__PURE__ */ f.jsx(Pn, { variant: "file-secondary", onClick: () => i(!1), children: "Back" }), /* @__PURE__ */ f.jsx( - xn, + Pn, { intent: "primary", disabled: !e && n !== "oneFolder", @@ -3368,7 +3360,7 @@ const xn = ({ ) ] }) ] }); -}, tW = { +}, pq = { display: "flex", flexDirection: "column", alignItems: "start", @@ -3388,11 +3380,11 @@ const xn = ({ "> div": { marginLeft: 0 } -}, nW = ({ +}, $q = ({ title: t, shortcutActions: e -}) => /* @__PURE__ */ f.jsxs(Y, { sx: { ...tW }, children: [ - t && /* @__PURE__ */ f.jsx(G, { as: "h4", children: t }), +}) => /* @__PURE__ */ f.jsxs(z, { sx: { ...pq }, children: [ + t && /* @__PURE__ */ f.jsx(j, { as: "h4", children: t }), e && /* @__PURE__ */ f.jsx( "div", { @@ -3402,19 +3394,19 @@ const xn = ({ children: e } ) -] }), iW = 500, Dt = ({ +] }), gq = 500, At = ({ children: t, mainText: e, secondaryText: n, disabled: i, visibleDefault: r = !1, position: O = "bottom", - delayed: a = !0, - hasArrow: o = !0, + delayed: o = !0, + hasArrow: a = !0, containerProps: s, ...l }) => /* @__PURE__ */ f.jsx( - v_, + DR, { label: /* @__PURE__ */ f.jsxs(bt, { fontSize: "xs", fontWeight: "bold", children: [ e, @@ -3422,13 +3414,13 @@ const xn = ({ ] }), defaultIsOpen: r, placement: O, - openDelay: a ? iW : 0, + openDelay: o ? gq : 0, isDisabled: i || !e, - hasArrow: o, + hasArrow: a, ...l, children: /* @__PURE__ */ f.jsx(bt, { ...s, children: t }) } -), rW = (t, e) => ({ +), mq = (t, e) => ({ display: "flex", position: "relative", flexDirection: "row", @@ -3456,32 +3448,32 @@ const xn = ({ fontFamily: "text", fontWeight: "text", fontSize: "text" -}), OW = ({ +}), Qq = ({ setActiveFile: t, selectPathListValue: e, mode: n, handleLoadMore: i, isActive: r, selected: O, - setActiveFolder: a, - activeFolder: o, + setActiveFolder: o, + activeFolder: a, index: s, name: l, itemInfo: c, id: u }) => { - const [d, h] = Se(r), [$, g] = Se(O), m = () => { - i(c.attributes.path, s), n === "oneFolder" && (h(!d), g(!$), e(c.attributes.path, $)), n === "oneFile" && (a(u), e("", !$), t(null)); + const [d, h] = we(r), [$, g] = we(O), m = () => { + i(c.attributes.path, s), n === "oneFolder" && (h(!d), g(!$), e(c.attributes.path, $)), n === "oneFile" && (o(u), e("", !$), t(null)); }; return /* @__PURE__ */ f.jsxs( - G, + j, { - sx: { ...rW(o, u) }, + sx: { ...mq(a, u) }, onClick: m, tabIndex: 0, children: [ /* @__PURE__ */ f.jsx( - Y, + z, { sx: { minWidth: "16px", @@ -3493,14 +3485,14 @@ const xn = ({ } } }, - children: /* @__PURE__ */ f.jsx(je, { color: "primary", size: "sm", icon: Ze.folder }) + children: /* @__PURE__ */ f.jsx(Ie, { color: "primary", size: "sm", icon: ze.folder }) } ), - /* @__PURE__ */ f.jsx(Dt, { mainText: l, children: /* @__PURE__ */ f.jsx(Y, { children: l }) }) + /* @__PURE__ */ f.jsx(At, { mainText: l, children: /* @__PURE__ */ f.jsx(z, { children: l }) }) ] } ); -}, c0 = (t, e, n, i = !0) => ({ +}, xQ = (t, e, n, i = !0) => ({ position: "relative", // eslint-disable-next-line no-nested-ternary backgroundColor: t && e ? "grayShade2" : "white", @@ -3545,7 +3537,7 @@ const xn = ({ fontWeight: "text", fontSize: "text", ...!i && { color: "gray" } -}), aW = { +}), Sq = { span: { display: "flex", alignItems: "center", @@ -3580,7 +3572,7 @@ const xn = ({ borderStyle: "solid", cursor: "default" } -}, Bd = Zn( +}, cf = Gn( ({ label: t, name: e, @@ -3588,26 +3580,26 @@ const xn = ({ disabled: i, onChange: r, checked: O, - tooltipProps: a = { mainText: "" }, - ...o + tooltipProps: o = { mainText: "" }, + ...a }, s) => /* @__PURE__ */ f.jsx( - Dt, + At, { disabled: !i, - ...a, + ...o, children: /* @__PURE__ */ f.jsxs( - G, + j, { alignItems: "center", flexDirection: "row", as: "label", - ...o, + ...a, tx: "variants.checkbox", variant: "primary", - sx: aW, + sx: Sq, children: [ /* @__PURE__ */ f.jsx( - Y, + z, { ref: s, as: "input", @@ -3620,77 +3612,77 @@ const xn = ({ } ), /* @__PURE__ */ f.jsx("span", {}), - t && /* @__PURE__ */ f.jsx(be, { bold: !0, ml: "10px", children: t }) + t && /* @__PURE__ */ f.jsx(xe, { bold: !0, ml: "10px", children: t }) ] } ) } ) -), oW = ({ +), wq = ({ isActive: t, setActiveFolder: e, setActiveFile: n, itemInfo: i, index: r, setColumns: O, - mode: a = "oneFile", - selected: o, + mode: o = "oneFile", + selected: a, isFileSelected: s, isValidExtension: l, setIsEmptyFolder: c }) => { - const [u, d] = Se(t), [h, $] = Se(o), g = (Q) => { + const [u, d] = we(t), [h, $] = we(a), g = (Q) => { c(!1), Q === "nFiles" && (d(!u), $(!h), n(i), s(i, !h)), Q !== "oneFolder" && (d(!u), n(i)), e(0), O((S) => [...S.slice(0, r + 1)]); }, m = () => { n(i); }; - return /* @__PURE__ */ f.jsx(Dt, { mainText: i.attributes.name, children: a === "nFiles" ? /* @__PURE__ */ f.jsx( - Y, + return /* @__PURE__ */ f.jsx(At, { mainText: i.attributes.name, children: o === "nFiles" ? /* @__PURE__ */ f.jsx( + z, { sx: { - ...c0(u, h, a, l) + ...xQ(u, h, o, l) }, tabIndex: 0, onClick: () => l && m(), children: /* @__PURE__ */ f.jsx( - Bd, + cf, { m: "10px", disabled: !l, label: i.attributes.name, checked: h, - onChange: () => g(a), + onChange: () => g(o), variant: "gray" } ) } ) : /* @__PURE__ */ f.jsx( - Y, + z, { sx: { - ...c0(u, h, a, l) + ...xQ(u, h, o, l) }, - onClick: () => l && g(a), + onClick: () => l && g(o), tabIndex: 0, children: i.attributes.name } ) }); -}, sW = ({ +}, yq = ({ items: t, mode: e, index: n, setColumns: i, setActiveFile: r, isFileSelected: O, - handleLoadMore: a, - selectPathListValue: o, + handleLoadMore: o, + selectPathListValue: a, fileListValue: s, validExtensions: l, setIsEmptyFolder: c }) => { - const [u, d] = Se(0); + const [u, d] = we(0); return /* @__PURE__ */ f.jsx( - Y, + z, { sx: { width: "225px", @@ -3710,15 +3702,15 @@ const xn = ({ return l.includes(`.${m}`); }; return h ? h.attributes.dir ? /* @__PURE__ */ f.jsx( - OW, + Qq, { index: n, id: h.attributes.id, - handleLoadMore: a, + handleLoadMore: o, mode: e, name: h.attributes.name, itemInfo: h, - selectPathListValue: o, + selectPathListValue: a, setColumns: i, setActiveFile: r, activeFolder: u, @@ -3728,7 +3720,7 @@ const xn = ({ }, h.attributes.id ) : /* @__PURE__ */ f.jsx( - oW, + wq, { index: n, mode: e, @@ -3748,7 +3740,7 @@ const xn = ({ } ); }; -function ke(t) { +function Ce(t) { if (t === null || t === !0 || t === !1) return NaN; var e = Number(t); @@ -3758,297 +3750,297 @@ function B(t, e) { if (e.length < t) throw new TypeError(t + " argument" + (t > 1 ? "s" : "") + " required, but only " + e.length + " present"); } -function ee(t) { +function K(t) { B(1, arguments); var e = Object.prototype.toString.call(t); - return t instanceof Date || ia(t) === "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : ((typeof t == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN)); + return t instanceof Date || XO(t) === "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : ((typeof t == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN)); } -function ho(t, e) { +function ba(t, e) { B(2, arguments); - var n = ee(t), i = ke(e); + var n = K(t), i = Ce(e); return isNaN(i) ? /* @__PURE__ */ new Date(NaN) : (i && n.setDate(n.getDate() + i), n); } -function qi(t, e) { +function _i(t, e) { B(2, arguments); - var n = ee(t), i = ke(e); + var n = K(t), i = Ce(e); if (isNaN(i)) return /* @__PURE__ */ new Date(NaN); if (!i) return n; var r = n.getDate(), O = new Date(n.getTime()); O.setMonth(n.getMonth() + i + 1, 0); - var a = O.getDate(); - return r >= a ? O : (n.setFullYear(O.getFullYear(), O.getMonth(), r), n); + var o = O.getDate(); + return r >= o ? O : (n.setFullYear(O.getFullYear(), O.getMonth(), r), n); } -function Ng(t, e) { +function c5(t, e) { B(2, arguments); - var n = ee(t).getTime(), i = ke(e); + var n = K(t).getTime(), i = Ce(e); return new Date(n + i); } -var lW = 36e5; -function cW(t, e) { +var bq = 36e5; +function xq(t, e) { B(2, arguments); - var n = ke(e); - return Ng(t, n * lW); + var n = Ce(e); + return c5(t, n * bq); } -var uW = {}; -function ra() { - return uW; +var Pq = {}; +function po() { + return Pq; } -function cP(t, e) { - var n, i, r, O, a, o, s, l; +function QP(t, e) { + var n, i, r, O, o, a, s, l; B(1, arguments); - var c = ra(), u = ke((n = (i = (r = (O = e == null ? void 0 : e.weekStartsOn) !== null && O !== void 0 ? O : e == null || (a = e.locale) === null || a === void 0 || (o = a.options) === null || o === void 0 ? void 0 : o.weekStartsOn) !== null && r !== void 0 ? r : c.weekStartsOn) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : 0); + var c = po(), u = Ce((n = (i = (r = (O = e == null ? void 0 : e.weekStartsOn) !== null && O !== void 0 ? O : e == null || (o = e.locale) === null || o === void 0 || (a = o.options) === null || a === void 0 ? void 0 : a.weekStartsOn) !== null && r !== void 0 ? r : c.weekStartsOn) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : 0); if (!(u >= 0 && u <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - var d = ee(t), h = d.getDay(), $ = (h < u ? 7 : 0) + h - u; + var d = K(t), h = d.getDay(), $ = (h < u ? 7 : 0) + h - u; return d.setDate(d.getDate() - $), d.setHours(0, 0, 0, 0), d; } -function Xu(t) { - return B(1, arguments), cP(t, { +function Eu(t) { + return B(1, arguments), QP(t, { weekStartsOn: 1 }); } -function dW(t) { +function vq(t) { B(1, arguments); - var e = ee(t), n = e.getFullYear(), i = /* @__PURE__ */ new Date(0); + var e = K(t), n = e.getFullYear(), i = /* @__PURE__ */ new Date(0); i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0); - var r = Xu(i), O = /* @__PURE__ */ new Date(0); + var r = Eu(i), O = /* @__PURE__ */ new Date(0); O.setFullYear(n, 0, 4), O.setHours(0, 0, 0, 0); - var a = Xu(O); - return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= a.getTime() ? n : n - 1; + var o = Eu(O); + return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1; } -function fW(t) { +function Xq(t) { B(1, arguments); - var e = dW(t), n = /* @__PURE__ */ new Date(0); + var e = vq(t), n = /* @__PURE__ */ new Date(0); n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0); - var i = Xu(n); + var i = Eu(n); return i; } -function Tu(t) { +function Du(t) { var e = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds())); return e.setUTCFullYear(t.getFullYear()), t.getTime() - e.getTime(); } function ir(t) { B(1, arguments); - var e = ee(t); + var e = K(t); return e.setHours(0, 0, 0, 0), e; } -var hW = 864e5; -function ku(t, e) { +var kq = 864e5; +function Iu(t, e) { B(2, arguments); - var n = ir(t), i = ir(e), r = n.getTime() - Tu(n), O = i.getTime() - Tu(i); - return Math.round((r - O) / hW); + var n = ir(t), i = ir(e), r = n.getTime() - Du(n), O = i.getTime() - Du(i); + return Math.round((r - O) / kq); } -var pW = 6e4; -function hp(t, e) { +var Tq = 6e4; +function Rp(t, e) { B(2, arguments); - var n = ke(e); - return Ng(t, n * pW); + var n = Ce(e); + return c5(t, n * Tq); } -function uP(t, e) { +function SP(t, e) { B(2, arguments); - var n = ke(e), i = n * 3; - return qi(t, i); + var n = Ce(e), i = n * 3; + return _i(t, i); } -function Bg(t, e) { +function Au(t, e) { B(2, arguments); - var n = ke(e), i = n * 7; - return ho(t, i); + var n = Ce(e), i = n * 7; + return ba(t, i); } -function ja(t, e) { +function ea(t, e) { B(2, arguments); - var n = ke(e); - return qi(t, n * 12); + var n = Ce(e); + return _i(t, n * 12); } -function u0(t) { +function PQ(t) { B(1, arguments); var e; if (t && typeof t.forEach == "function") e = t; - else if (ia(t) === "object" && t !== null) + else if (XO(t) === "object" && t !== null) e = Array.prototype.slice.call(t); else return /* @__PURE__ */ new Date(NaN); var n; return e.forEach(function(i) { - var r = ee(i); + var r = K(i); (n === void 0 || n < r || isNaN(Number(r))) && (n = r); }), n || /* @__PURE__ */ new Date(NaN); } -function d0(t) { +function vQ(t) { B(1, arguments); var e; if (t && typeof t.forEach == "function") e = t; - else if (ia(t) === "object" && t !== null) + else if (XO(t) === "object" && t !== null) e = Array.prototype.slice.call(t); else return /* @__PURE__ */ new Date(NaN); var n; return e.forEach(function(i) { - var r = ee(i); + var r = K(i); (n === void 0 || n > r || isNaN(r.getDate())) && (n = r); }), n || /* @__PURE__ */ new Date(NaN); } -var Hg = 6e4, Jg = 36e5, $W = 1e3; -function gW(t, e) { +var u5 = 6e4, d5 = 36e5, Cq = 1e3; +function Rq(t, e) { B(2, arguments); var n = ir(t), i = ir(e); return n.getTime() === i.getTime(); } -function Kg(t) { - return B(1, arguments), t instanceof Date || ia(t) === "object" && Object.prototype.toString.call(t) === "[object Date]"; +function uf(t) { + return B(1, arguments), t instanceof Date || XO(t) === "object" && Object.prototype.toString.call(t) === "[object Date]"; } -function Cu(t) { - if (B(1, arguments), !Kg(t) && typeof t != "number") +function Es(t) { + if (B(1, arguments), !uf(t) && typeof t != "number") return !1; - var e = ee(t); + var e = K(t); return !isNaN(Number(e)); } -function _u(t, e) { +function Fu(t, e) { B(2, arguments); - var n = ee(t), i = ee(e), r = n.getFullYear() - i.getFullYear(), O = n.getMonth() - i.getMonth(); + var n = K(t), i = K(e), r = n.getFullYear() - i.getFullYear(), O = n.getMonth() - i.getMonth(); return r * 12 + O; } -function Xa(t) { +function Uo(t) { B(1, arguments); - var e = ee(t), n = Math.floor(e.getMonth() / 3) + 1; + var e = K(t), n = Math.floor(e.getMonth() / 3) + 1; return n; } -function Ru(t, e) { +function Lu(t, e) { B(2, arguments); - var n = ee(t), i = ee(e); + var n = K(t), i = K(e); return n.getFullYear() - i.getFullYear(); } -function mW(t, e) { - return B(2, arguments), ee(t).getTime() - ee(e).getTime(); +function _q(t, e) { + return B(2, arguments), K(t).getTime() - K(e).getTime(); } -function pp(t) { +function _p(t) { B(1, arguments); - var e = ee(t); + var e = K(t); return e.setHours(23, 59, 59, 999), e; } -function QW(t) { +function Wq(t) { B(1, arguments); - var e = ee(t), n = e.getMonth(); + var e = K(t), n = e.getMonth(); return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e; } -function $p(t) { +function Wp(t) { B(1, arguments); - var e = ee(t), n = e.getMonth(), i = n - n % 3; + var e = K(t), n = e.getMonth(), i = n - n % 3; return e.setMonth(i, 1), e.setHours(0, 0, 0, 0), e; } -function dP(t) { +function wP(t) { B(1, arguments); - var e = ee(t); + var e = K(t); return e.setDate(1), e.setHours(0, 0, 0, 0), e; } -function SW(t) { +function qq(t) { B(1, arguments); - var e = ee(t), n = e.getFullYear(); + var e = K(t), n = e.getFullYear(); return e.setFullYear(n + 1, 0, 0), e.setHours(23, 59, 59, 999), e; } -function fP(t) { +function yP(t) { B(1, arguments); - var e = ee(t), n = /* @__PURE__ */ new Date(0); + var e = K(t), n = /* @__PURE__ */ new Date(0); return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n; } -function hP(t, e) { +function bP(t, e) { B(2, arguments); - var n = ke(e); - return Ng(t, -n); + var n = Ce(e); + return c5(t, -n); } -var yW = 864e5; -function bW(t) { +var Yq = 864e5; +function Zq(t) { B(1, arguments); - var e = ee(t), n = e.getTime(); + var e = K(t), n = e.getTime(); e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0); var i = e.getTime(), r = n - i; - return Math.floor(r / yW) + 1; + return Math.floor(r / Yq) + 1; } -function Ia(t) { +function ta(t) { B(1, arguments); - var e = 1, n = ee(t), i = n.getUTCDay(), r = (i < e ? 7 : 0) + i - e; + var e = 1, n = K(t), i = n.getUTCDay(), r = (i < e ? 7 : 0) + i - e; return n.setUTCDate(n.getUTCDate() - r), n.setUTCHours(0, 0, 0, 0), n; } -function pP(t) { +function xP(t) { B(1, arguments); - var e = ee(t), n = e.getUTCFullYear(), i = /* @__PURE__ */ new Date(0); + var e = K(t), n = e.getUTCFullYear(), i = /* @__PURE__ */ new Date(0); i.setUTCFullYear(n + 1, 0, 4), i.setUTCHours(0, 0, 0, 0); - var r = Ia(i), O = /* @__PURE__ */ new Date(0); + var r = ta(i), O = /* @__PURE__ */ new Date(0); O.setUTCFullYear(n, 0, 4), O.setUTCHours(0, 0, 0, 0); - var a = Ia(O); - return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= a.getTime() ? n : n - 1; + var o = ta(O); + return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1; } -function wW(t) { +function Gq(t) { B(1, arguments); - var e = pP(t), n = /* @__PURE__ */ new Date(0); + var e = xP(t), n = /* @__PURE__ */ new Date(0); n.setUTCFullYear(e, 0, 4), n.setUTCHours(0, 0, 0, 0); - var i = Ia(n); + var i = ta(n); return i; } -var xW = 6048e5; -function $P(t) { +var zq = 6048e5; +function PP(t) { B(1, arguments); - var e = ee(t), n = Ia(e).getTime() - wW(e).getTime(); - return Math.round(n / xW) + 1; + var e = K(t), n = ta(e).getTime() - Gq(e).getTime(); + return Math.round(n / zq) + 1; } -function LO(t, e) { - var n, i, r, O, a, o, s, l; +function io(t, e) { + var n, i, r, O, o, a, s, l; B(1, arguments); - var c = ra(), u = ke((n = (i = (r = (O = e == null ? void 0 : e.weekStartsOn) !== null && O !== void 0 ? O : e == null || (a = e.locale) === null || a === void 0 || (o = a.options) === null || o === void 0 ? void 0 : o.weekStartsOn) !== null && r !== void 0 ? r : c.weekStartsOn) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : 0); + var c = po(), u = Ce((n = (i = (r = (O = e == null ? void 0 : e.weekStartsOn) !== null && O !== void 0 ? O : e == null || (o = e.locale) === null || o === void 0 || (a = o.options) === null || a === void 0 ? void 0 : a.weekStartsOn) !== null && r !== void 0 ? r : c.weekStartsOn) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : 0); if (!(u >= 0 && u <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - var d = ee(t), h = d.getUTCDay(), $ = (h < u ? 7 : 0) + h - u; + var d = K(t), h = d.getUTCDay(), $ = (h < u ? 7 : 0) + h - u; return d.setUTCDate(d.getUTCDate() - $), d.setUTCHours(0, 0, 0, 0), d; } -function em(t, e) { - var n, i, r, O, a, o, s, l; +function f5(t, e) { + var n, i, r, O, o, a, s, l; B(1, arguments); - var c = ee(t), u = c.getUTCFullYear(), d = ra(), h = ke((n = (i = (r = (O = e == null ? void 0 : e.firstWeekContainsDate) !== null && O !== void 0 ? O : e == null || (a = e.locale) === null || a === void 0 || (o = a.options) === null || o === void 0 ? void 0 : o.firstWeekContainsDate) !== null && r !== void 0 ? r : d.firstWeekContainsDate) !== null && i !== void 0 ? i : (s = d.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : 1); + var c = K(t), u = c.getUTCFullYear(), d = po(), h = Ce((n = (i = (r = (O = e == null ? void 0 : e.firstWeekContainsDate) !== null && O !== void 0 ? O : e == null || (o = e.locale) === null || o === void 0 || (a = o.options) === null || a === void 0 ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : d.firstWeekContainsDate) !== null && i !== void 0 ? i : (s = d.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : 1); if (!(h >= 1 && h <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); var $ = /* @__PURE__ */ new Date(0); $.setUTCFullYear(u + 1, 0, h), $.setUTCHours(0, 0, 0, 0); - var g = LO($, e), m = /* @__PURE__ */ new Date(0); + var g = io($, e), m = /* @__PURE__ */ new Date(0); m.setUTCFullYear(u, 0, h), m.setUTCHours(0, 0, 0, 0); - var Q = LO(m, e); + var Q = io(m, e); return c.getTime() >= g.getTime() ? u + 1 : c.getTime() >= Q.getTime() ? u : u - 1; } -function PW(t, e) { - var n, i, r, O, a, o, s, l; +function Uq(t, e) { + var n, i, r, O, o, a, s, l; B(1, arguments); - var c = ra(), u = ke((n = (i = (r = (O = e == null ? void 0 : e.firstWeekContainsDate) !== null && O !== void 0 ? O : e == null || (a = e.locale) === null || a === void 0 || (o = a.options) === null || o === void 0 ? void 0 : o.firstWeekContainsDate) !== null && r !== void 0 ? r : c.firstWeekContainsDate) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), d = em(t, e), h = /* @__PURE__ */ new Date(0); + var c = po(), u = Ce((n = (i = (r = (O = e == null ? void 0 : e.firstWeekContainsDate) !== null && O !== void 0 ? O : e == null || (o = e.locale) === null || o === void 0 || (a = o.options) === null || a === void 0 ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : c.firstWeekContainsDate) !== null && i !== void 0 ? i : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), d = f5(t, e), h = /* @__PURE__ */ new Date(0); h.setUTCFullYear(d, 0, u), h.setUTCHours(0, 0, 0, 0); - var $ = LO(h, e); + var $ = io(h, e); return $; } -var vW = 6048e5; -function gP(t, e) { +var Vq = 6048e5; +function vP(t, e) { B(1, arguments); - var n = ee(t), i = LO(n, e).getTime() - PW(n, e).getTime(); - return Math.round(i / vW) + 1; + var n = K(t), i = io(n, e).getTime() - Uq(n, e).getTime(); + return Math.round(i / Vq) + 1; } -function Je(t, e) { +function it(t, e) { for (var n = t < 0 ? "-" : "", i = Math.abs(t).toString(); i.length < e; ) i = "0" + i; return n + i; } -var XW = { +var jq = { // Year y: function(e, n) { var i = e.getUTCFullYear(), r = i > 0 ? i : 1 - i; - return Je(n === "yy" ? r % 100 : r, n.length); + return it(n === "yy" ? r % 100 : r, n.length); }, // Month M: function(e, n) { var i = e.getUTCMonth(); - return n === "M" ? String(i + 1) : Je(i + 1, 2); + return n === "M" ? String(i + 1) : it(i + 1, 2); }, // Day of the month d: function(e, n) { - return Je(e.getUTCDate(), n.length); + return it(e.getUTCDate(), n.length); }, // AM or PM a: function(e, n) { @@ -4068,28 +4060,28 @@ var XW = { }, // Hour [1-12] h: function(e, n) { - return Je(e.getUTCHours() % 12 || 12, n.length); + return it(e.getUTCHours() % 12 || 12, n.length); }, // Hour [0-23] H: function(e, n) { - return Je(e.getUTCHours(), n.length); + return it(e.getUTCHours(), n.length); }, // Minute m: function(e, n) { - return Je(e.getUTCMinutes(), n.length); + return it(e.getUTCMinutes(), n.length); }, // Second s: function(e, n) { - return Je(e.getUTCSeconds(), n.length); + return it(e.getUTCSeconds(), n.length); }, // Fraction of second S: function(e, n) { var i = n.length, r = e.getUTCMilliseconds(), O = Math.floor(r * Math.pow(10, i - 3)); - return Je(O, n.length); + return it(O, n.length); } }; -const qr = XW; -var fa = { +const Vr = jq; +var xo = { am: "am", pm: "pm", midnight: "midnight", @@ -4098,7 +4090,7 @@ var fa = { afternoon: "afternoon", evening: "evening", night: "night" -}, TW = { +}, Eq = { // Era G: function(e, n, i) { var r = e.getUTCFullYear() > 0 ? 1 : 0; @@ -4128,23 +4120,23 @@ var fa = { unit: "year" }); } - return qr.y(e, n); + return Vr.y(e, n); }, // Local week-numbering year Y: function(e, n, i, r) { - var O = em(e, r), a = O > 0 ? O : 1 - O; + var O = f5(e, r), o = O > 0 ? O : 1 - O; if (n === "YY") { - var o = a % 100; - return Je(o, 2); + var a = o % 100; + return it(a, 2); } - return n === "Yo" ? i.ordinalNumber(a, { + return n === "Yo" ? i.ordinalNumber(o, { unit: "year" - }) : Je(a, n.length); + }) : it(o, n.length); }, // ISO week-numbering year R: function(e, n) { - var i = pP(e); - return Je(i, n.length); + var i = xP(e); + return it(i, n.length); }, // Extended year. This is a single number designating the year of this calendar system. // The main difference between `y` and `u` localizers are B.C. years: @@ -4157,7 +4149,7 @@ var fa = { // while `uu` pads single digit years to 2 characters and returns other years unchanged. u: function(e, n) { var i = e.getUTCFullYear(); - return Je(i, n.length); + return it(i, n.length); }, // Quarter Q: function(e, n, i) { @@ -4166,7 +4158,7 @@ var fa = { case "Q": return String(r); case "QQ": - return Je(r, 2); + return it(r, 2); case "Qo": return i.ordinalNumber(r, { unit: "quarter" @@ -4196,7 +4188,7 @@ var fa = { case "q": return String(r); case "qq": - return Je(r, 2); + return it(r, 2); case "qo": return i.ordinalNumber(r, { unit: "quarter" @@ -4225,7 +4217,7 @@ var fa = { switch (n) { case "M": case "MM": - return qr.M(e, n); + return Vr.M(e, n); case "Mo": return i.ordinalNumber(r + 1, { unit: "month" @@ -4255,7 +4247,7 @@ var fa = { case "L": return String(r + 1); case "LL": - return Je(r + 1, 2); + return it(r + 1, 2); case "Lo": return i.ordinalNumber(r + 1, { unit: "month" @@ -4280,30 +4272,30 @@ var fa = { }, // Local week of year w: function(e, n, i, r) { - var O = gP(e, r); + var O = vP(e, r); return n === "wo" ? i.ordinalNumber(O, { unit: "week" - }) : Je(O, n.length); + }) : it(O, n.length); }, // ISO week of year I: function(e, n, i) { - var r = $P(e); + var r = PP(e); return n === "Io" ? i.ordinalNumber(r, { unit: "week" - }) : Je(r, n.length); + }) : it(r, n.length); }, // Day of the month d: function(e, n, i) { return n === "do" ? i.ordinalNumber(e.getUTCDate(), { unit: "date" - }) : qr.d(e, n); + }) : Vr.d(e, n); }, // Day of year D: function(e, n, i) { - var r = bW(e); + var r = Zq(e); return n === "Do" ? i.ordinalNumber(r, { unit: "dayOfYear" - }) : Je(r, n.length); + }) : it(r, n.length); }, // Day of week E: function(e, n, i) { @@ -4336,14 +4328,14 @@ var fa = { }, // Local day of week e: function(e, n, i, r) { - var O = e.getUTCDay(), a = (O - r.weekStartsOn + 8) % 7 || 7; + var O = e.getUTCDay(), o = (O - r.weekStartsOn + 8) % 7 || 7; switch (n) { case "e": - return String(a); + return String(o); case "ee": - return Je(a, 2); + return it(o, 2); case "eo": - return i.ordinalNumber(a, { + return i.ordinalNumber(o, { unit: "day" }); case "eee": @@ -4371,14 +4363,14 @@ var fa = { }, // Stand-alone local day of week c: function(e, n, i, r) { - var O = e.getUTCDay(), a = (O - r.weekStartsOn + 8) % 7 || 7; + var O = e.getUTCDay(), o = (O - r.weekStartsOn + 8) % 7 || 7; switch (n) { case "c": - return String(a); + return String(o); case "cc": - return Je(a, n.length); + return it(o, n.length); case "co": - return i.ordinalNumber(a, { + return i.ordinalNumber(o, { unit: "day" }); case "ccc": @@ -4411,7 +4403,7 @@ var fa = { case "i": return String(O); case "ii": - return Je(O, n.length); + return it(O, n.length); case "io": return i.ordinalNumber(O, { unit: "day" @@ -4470,7 +4462,7 @@ var fa = { // AM, PM, midnight, noon b: function(e, n, i) { var r = e.getUTCHours(), O; - switch (r === 12 ? O = fa.noon : r === 0 ? O = fa.midnight : O = r / 12 >= 1 ? "pm" : "am", n) { + switch (r === 12 ? O = xo.noon : r === 0 ? O = xo.midnight : O = r / 12 >= 1 ? "pm" : "am", n) { case "b": case "bb": return i.dayPeriod(O, { @@ -4498,7 +4490,7 @@ var fa = { // in the morning, in the afternoon, in the evening, at night B: function(e, n, i) { var r = e.getUTCHours(), O; - switch (r >= 17 ? O = fa.evening : r >= 12 ? O = fa.afternoon : r >= 4 ? O = fa.morning : O = fa.night, n) { + switch (r >= 17 ? O = xo.evening : r >= 12 ? O = xo.afternoon : r >= 4 ? O = xo.morning : O = xo.night, n) { case "B": case "BB": case "BBB": @@ -4527,133 +4519,133 @@ var fa = { unit: "hour" }); } - return qr.h(e, n); + return Vr.h(e, n); }, // Hour [0-23] H: function(e, n, i) { return n === "Ho" ? i.ordinalNumber(e.getUTCHours(), { unit: "hour" - }) : qr.H(e, n); + }) : Vr.H(e, n); }, // Hour [0-11] K: function(e, n, i) { var r = e.getUTCHours() % 12; return n === "Ko" ? i.ordinalNumber(r, { unit: "hour" - }) : Je(r, n.length); + }) : it(r, n.length); }, // Hour [1-24] k: function(e, n, i) { var r = e.getUTCHours(); return r === 0 && (r = 24), n === "ko" ? i.ordinalNumber(r, { unit: "hour" - }) : Je(r, n.length); + }) : it(r, n.length); }, // Minute m: function(e, n, i) { return n === "mo" ? i.ordinalNumber(e.getUTCMinutes(), { unit: "minute" - }) : qr.m(e, n); + }) : Vr.m(e, n); }, // Second s: function(e, n, i) { return n === "so" ? i.ordinalNumber(e.getUTCSeconds(), { unit: "second" - }) : qr.s(e, n); + }) : Vr.s(e, n); }, // Fraction of second S: function(e, n) { - return qr.S(e, n); + return Vr.S(e, n); }, // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) X: function(e, n, i, r) { - var O = r._originalDate || e, a = O.getTimezoneOffset(); - if (a === 0) + var O = r._originalDate || e, o = O.getTimezoneOffset(); + if (o === 0) return "Z"; switch (n) { case "X": - return h0(a); + return kQ(o); case "XXXX": case "XX": - return CO(a); + return jO(o); case "XXXXX": case "XXX": default: - return CO(a, ":"); + return jO(o, ":"); } }, // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) x: function(e, n, i, r) { - var O = r._originalDate || e, a = O.getTimezoneOffset(); + var O = r._originalDate || e, o = O.getTimezoneOffset(); switch (n) { case "x": - return h0(a); + return kQ(o); case "xxxx": case "xx": - return CO(a); + return jO(o); case "xxxxx": case "xxx": default: - return CO(a, ":"); + return jO(o, ":"); } }, // Timezone (GMT) O: function(e, n, i, r) { - var O = r._originalDate || e, a = O.getTimezoneOffset(); + var O = r._originalDate || e, o = O.getTimezoneOffset(); switch (n) { case "O": case "OO": case "OOO": - return "GMT" + f0(a, ":"); + return "GMT" + XQ(o, ":"); case "OOOO": default: - return "GMT" + CO(a, ":"); + return "GMT" + jO(o, ":"); } }, // Timezone (specific non-location) z: function(e, n, i, r) { - var O = r._originalDate || e, a = O.getTimezoneOffset(); + var O = r._originalDate || e, o = O.getTimezoneOffset(); switch (n) { case "z": case "zz": case "zzz": - return "GMT" + f0(a, ":"); + return "GMT" + XQ(o, ":"); case "zzzz": default: - return "GMT" + CO(a, ":"); + return "GMT" + jO(o, ":"); } }, // Seconds timestamp t: function(e, n, i, r) { - var O = r._originalDate || e, a = Math.floor(O.getTime() / 1e3); - return Je(a, n.length); + var O = r._originalDate || e, o = Math.floor(O.getTime() / 1e3); + return it(o, n.length); }, // Milliseconds timestamp T: function(e, n, i, r) { - var O = r._originalDate || e, a = O.getTime(); - return Je(a, n.length); + var O = r._originalDate || e, o = O.getTime(); + return it(o, n.length); } }; -function f0(t, e) { +function XQ(t, e) { var n = t > 0 ? "-" : "+", i = Math.abs(t), r = Math.floor(i / 60), O = i % 60; if (O === 0) return n + String(r); - var a = e || ""; - return n + String(r) + a + Je(O, 2); + var o = e || ""; + return n + String(r) + o + it(O, 2); } -function h0(t, e) { +function kQ(t, e) { if (t % 60 === 0) { var n = t > 0 ? "-" : "+"; - return n + Je(Math.abs(t) / 60, 2); + return n + it(Math.abs(t) / 60, 2); } - return CO(t, e); + return jO(t, e); } -function CO(t, e) { - var n = e || "", i = t > 0 ? "-" : "+", r = Math.abs(t), O = Je(Math.floor(r / 60), 2), a = Je(r % 60, 2); - return i + O + n + a; +function jO(t, e) { + var n = e || "", i = t > 0 ? "-" : "+", r = Math.abs(t), O = it(Math.floor(r / 60), 2), o = it(r % 60, 2); + return i + O + n + o; } -const kW = TW; -var p0 = function(e, n) { +const Dq = Eq; +var TQ = function(e, n) { switch (e) { case "P": return n.date({ @@ -4673,7 +4665,7 @@ var p0 = function(e, n) { width: "full" }); } -}, mP = function(e, n) { +}, XP = function(e, n) { switch (e) { case "p": return n.time({ @@ -4693,48 +4685,48 @@ var p0 = function(e, n) { width: "full" }); } -}, CW = function(e, n) { +}, Iq = function(e, n) { var i = e.match(/(P+)(p+)?/) || [], r = i[1], O = i[2]; if (!O) - return p0(e, n); - var a; + return TQ(e, n); + var o; switch (r) { case "P": - a = n.dateTime({ + o = n.dateTime({ width: "short" }); break; case "PP": - a = n.dateTime({ + o = n.dateTime({ width: "medium" }); break; case "PPP": - a = n.dateTime({ + o = n.dateTime({ width: "long" }); break; case "PPPP": default: - a = n.dateTime({ + o = n.dateTime({ width: "full" }); break; } - return a.replace("{{date}}", p0(r, n)).replace("{{time}}", mP(O, n)); -}, _W = { - p: mP, - P: CW + return o.replace("{{date}}", TQ(r, n)).replace("{{time}}", XP(O, n)); +}, Aq = { + p: XP, + P: Iq }; -const gp = _W; -var RW = ["D", "DD"], qW = ["YY", "YYYY"]; -function QP(t) { - return RW.indexOf(t) !== -1; +const qp = Aq; +var Fq = ["D", "DD"], Lq = ["YY", "YYYY"]; +function kP(t) { + return Fq.indexOf(t) !== -1; } -function SP(t) { - return qW.indexOf(t) !== -1; +function TP(t) { + return Lq.indexOf(t) !== -1; } -function qu(t, e, n) { +function Nu(t, e, n) { if (t === "YYYY") throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(n, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); if (t === "YY") @@ -4744,7 +4736,7 @@ function qu(t, e, n) { if (t === "DD") throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(n, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); } -var WW = { +var Nq = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" @@ -4806,90 +4798,90 @@ var WW = { one: "almost 1 year", other: "almost {{count}} years" } -}, VW = function(e, n, i) { - var r, O = WW[e]; +}, Mq = function(e, n, i) { + var r, O = Nq[e]; return typeof O == "string" ? r = O : n === 1 ? r = O.one : r = O.other.replace("{{count}}", n.toString()), i != null && i.addSuffix ? i.comparison && i.comparison > 0 ? "in " + r : r + " ago" : r; }; -const ZW = VW; -function i1(t) { +const Hq = Mq; +function g1(t) { return function() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.width ? String(e.width) : t.defaultWidth, i = t.formats[n] || t.formats[t.defaultWidth]; return i; }; } -var UW = { +var Bq = { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" -}, YW = { +}, Jq = { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" -}, zW = { +}, Kq = { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" -}, GW = { - date: i1({ - formats: UW, +}, eY = { + date: g1({ + formats: Bq, defaultWidth: "full" }), - time: i1({ - formats: YW, + time: g1({ + formats: Jq, defaultWidth: "full" }), - dateTime: i1({ - formats: zW, + dateTime: g1({ + formats: Kq, defaultWidth: "full" }) }; -const EW = GW; -var jW = { +const tY = eY; +var nY = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" -}, IW = function(e, n, i, r) { - return jW[e]; +}, iY = function(e, n, i, r) { + return nY[e]; }; -const AW = IW; -function Xo(t) { +const rY = iY; +function Za(t) { return function(e, n) { var i = n != null && n.context ? String(n.context) : "standalone", r; if (i === "formatting" && t.formattingValues) { - var O = t.defaultFormattingWidth || t.defaultWidth, a = n != null && n.width ? String(n.width) : O; - r = t.formattingValues[a] || t.formattingValues[O]; + var O = t.defaultFormattingWidth || t.defaultWidth, o = n != null && n.width ? String(n.width) : O; + r = t.formattingValues[o] || t.formattingValues[O]; } else { - var o = t.defaultWidth, s = n != null && n.width ? String(n.width) : t.defaultWidth; - r = t.values[s] || t.values[o]; + var a = t.defaultWidth, s = n != null && n.width ? String(n.width) : t.defaultWidth; + r = t.values[s] || t.values[a]; } var l = t.argumentCallback ? t.argumentCallback(e) : e; return r[l]; }; } -var DW = { +var OY = { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] -}, LW = { +}, oY = { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] -}, FW = { +}, aY = { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] -}, MW = { +}, sY = { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] -}, NW = { +}, lY = { narrow: { am: "a", pm: "p", @@ -4920,7 +4912,7 @@ var DW = { evening: "evening", night: "night" } -}, BW = { +}, cY = { narrow: { am: "a", pm: "p", @@ -4951,7 +4943,7 @@ var DW = { evening: "in the evening", night: "at night" } -}, HW = function(e, n) { +}, uY = function(e, n) { var i = Number(e), r = i % 100; if (r > 20 || r < 10) switch (r % 10) { @@ -4963,64 +4955,64 @@ var DW = { return i + "rd"; } return i + "th"; -}, JW = { - ordinalNumber: HW, - era: Xo({ - values: DW, +}, dY = { + ordinalNumber: uY, + era: Za({ + values: OY, defaultWidth: "wide" }), - quarter: Xo({ - values: LW, + quarter: Za({ + values: oY, defaultWidth: "wide", argumentCallback: function(e) { return e - 1; } }), - month: Xo({ - values: FW, + month: Za({ + values: aY, defaultWidth: "wide" }), - day: Xo({ - values: MW, + day: Za({ + values: sY, defaultWidth: "wide" }), - dayPeriod: Xo({ - values: NW, + dayPeriod: Za({ + values: lY, defaultWidth: "wide", - formattingValues: BW, + formattingValues: cY, defaultFormattingWidth: "wide" }) }; -const KW = JW; -function To(t) { +const fY = dY; +function Ga(t) { return function(e) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = n.width, r = i && t.matchPatterns[i] || t.matchPatterns[t.defaultMatchWidth], O = e.match(r); if (!O) return null; - var a = O[0], o = i && t.parsePatterns[i] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(o) ? tV(o, function(u) { - return u.test(a); - }) : eV(o, function(u) { - return u.test(a); + var o = O[0], a = i && t.parsePatterns[i] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(a) ? pY(a, function(u) { + return u.test(o); + }) : hY(a, function(u) { + return u.test(o); }), l; l = t.valueCallback ? t.valueCallback(s) : s, l = n.valueCallback ? n.valueCallback(l) : l; - var c = e.slice(a.length); + var c = e.slice(o.length); return { value: l, rest: c }; }; } -function eV(t, e) { +function hY(t, e) { for (var n in t) if (t.hasOwnProperty(n) && e(t[n])) return n; } -function tV(t, e) { +function pY(t, e) { for (var n = 0; n < t.length; n++) if (e(t[n])) return n; } -function nV(t) { +function $Y(t) { return function(e) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.match(t.matchPattern); if (!i) @@ -5028,46 +5020,46 @@ function nV(t) { var r = i[0], O = e.match(t.parsePattern); if (!O) return null; - var a = t.valueCallback ? t.valueCallback(O[0]) : O[0]; - a = n.valueCallback ? n.valueCallback(a) : a; - var o = e.slice(r.length); + var o = t.valueCallback ? t.valueCallback(O[0]) : O[0]; + o = n.valueCallback ? n.valueCallback(o) : o; + var a = e.slice(r.length); return { - value: a, - rest: o + value: o, + rest: a }; }; } -var iV = /^(\d+)(th|st|nd|rd)?/i, rV = /\d+/i, OV = { +var gY = /^(\d+)(th|st|nd|rd)?/i, mY = /\d+/i, QY = { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i -}, aV = { +}, SY = { any: [/^b/i, /^(a|c)/i] -}, oV = { +}, wY = { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i -}, sV = { +}, yY = { any: [/1/i, /2/i, /3/i, /4/i] -}, lV = { +}, bY = { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i -}, cV = { +}, xY = { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] -}, uV = { +}, PY = { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i -}, dV = { +}, vY = { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] -}, fV = { +}, XY = { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i -}, hV = { +}, kY = { any: { am: /^a/i, pm: /^p/i, @@ -5078,202 +5070,202 @@ var iV = /^(\d+)(th|st|nd|rd)?/i, rV = /\d+/i, OV = { evening: /evening/i, night: /night/i } -}, pV = { - ordinalNumber: nV({ - matchPattern: iV, - parsePattern: rV, +}, TY = { + ordinalNumber: $Y({ + matchPattern: gY, + parsePattern: mY, valueCallback: function(e) { return parseInt(e, 10); } }), - era: To({ - matchPatterns: OV, + era: Ga({ + matchPatterns: QY, defaultMatchWidth: "wide", - parsePatterns: aV, + parsePatterns: SY, defaultParseWidth: "any" }), - quarter: To({ - matchPatterns: oV, + quarter: Ga({ + matchPatterns: wY, defaultMatchWidth: "wide", - parsePatterns: sV, + parsePatterns: yY, defaultParseWidth: "any", valueCallback: function(e) { return e + 1; } }), - month: To({ - matchPatterns: lV, + month: Ga({ + matchPatterns: bY, defaultMatchWidth: "wide", - parsePatterns: cV, + parsePatterns: xY, defaultParseWidth: "any" }), - day: To({ - matchPatterns: uV, + day: Ga({ + matchPatterns: PY, defaultMatchWidth: "wide", - parsePatterns: dV, + parsePatterns: vY, defaultParseWidth: "any" }), - dayPeriod: To({ - matchPatterns: fV, + dayPeriod: Ga({ + matchPatterns: XY, defaultMatchWidth: "any", - parsePatterns: hV, + parsePatterns: kY, defaultParseWidth: "any" }) }; -const $V = pV; -var gV = { +const CY = TY; +var RY = { code: "en-US", - formatDistance: ZW, - formatLong: EW, - formatRelative: AW, - localize: KW, - match: $V, + formatDistance: Hq, + formatLong: tY, + formatRelative: rY, + localize: fY, + match: CY, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }; -const yP = gV; -var mV = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, QV = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, SV = /^'([^]*?)'?$/, yV = /''/g, bV = /[a-zA-Z]/; -function Wu(t, e, n) { - var i, r, O, a, o, s, l, c, u, d, h, $, g, m, Q, S, b, y; +const CP = RY; +var _Y = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, WY = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qY = /^'([^]*?)'?$/, YY = /''/g, ZY = /[a-zA-Z]/; +function Mu(t, e, n) { + var i, r, O, o, a, s, l, c, u, d, h, $, g, m, Q, S, w, y; B(2, arguments); - var v = String(e), P = ra(), T = (i = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : P.locale) !== null && i !== void 0 ? i : yP, q = ke((O = (a = (o = (s = n == null ? void 0 : n.firstWeekContainsDate) !== null && s !== void 0 ? s : n == null || (l = n.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && o !== void 0 ? o : P.firstWeekContainsDate) !== null && a !== void 0 ? a : (u = P.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && O !== void 0 ? O : 1); - if (!(q >= 1 && q <= 7)) + var P = String(e), v = po(), k = (i = (r = n == null ? void 0 : n.locale) !== null && r !== void 0 ? r : v.locale) !== null && i !== void 0 ? i : CP, Y = Ce((O = (o = (a = (s = n == null ? void 0 : n.firstWeekContainsDate) !== null && s !== void 0 ? s : n == null || (l = n.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : v.firstWeekContainsDate) !== null && o !== void 0 ? o : (u = v.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && O !== void 0 ? O : 1); + if (!(Y >= 1 && Y <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); - var W = ke((h = ($ = (g = (m = n == null ? void 0 : n.weekStartsOn) !== null && m !== void 0 ? m : n == null || (Q = n.locale) === null || Q === void 0 || (S = Q.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && g !== void 0 ? g : P.weekStartsOn) !== null && $ !== void 0 ? $ : (b = P.locale) === null || b === void 0 || (y = b.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && h !== void 0 ? h : 0); - if (!(W >= 0 && W <= 6)) + var G = Ce((h = ($ = (g = (m = n == null ? void 0 : n.weekStartsOn) !== null && m !== void 0 ? m : n == null || (Q = n.locale) === null || Q === void 0 || (S = Q.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && g !== void 0 ? g : v.weekStartsOn) !== null && $ !== void 0 ? $ : (w = v.locale) === null || w === void 0 || (y = w.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && h !== void 0 ? h : 0); + if (!(G >= 0 && G <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - if (!T.localize) + if (!k.localize) throw new RangeError("locale must contain localize property"); - if (!T.formatLong) + if (!k.formatLong) throw new RangeError("locale must contain formatLong property"); - var k = ee(t); - if (!Cu(k)) + var C = K(t); + if (!Es(C)) throw new RangeError("Invalid time value"); - var V = Tu(k), Z = hP(k, V), R = { - firstWeekContainsDate: q, - weekStartsOn: W, - locale: T, - _originalDate: k - }, D = v.match(QV).map(function(A) { - var K = A[0]; - if (K === "p" || K === "P") { - var _ = gp[K]; - return _(A, T.formatLong); - } - return A; - }).join("").match(mV).map(function(A) { - if (A === "''") + var W = Du(C), R = bP(C, W), q = { + firstWeekContainsDate: Y, + weekStartsOn: G, + locale: k, + _originalDate: C + }, U = P.match(WY).map(function(D) { + var ee = D[0]; + if (ee === "p" || ee === "P") { + var _ = qp[ee]; + return _(D, k.formatLong); + } + return D; + }).join("").match(_Y).map(function(D) { + if (D === "''") return "'"; - var K = A[0]; - if (K === "'") - return wV(A); - var _ = kW[K]; + var ee = D[0]; + if (ee === "'") + return GY(D); + var _ = Dq[ee]; if (_) - return !(n != null && n.useAdditionalWeekYearTokens) && SP(A) && qu(A, e, String(t)), !(n != null && n.useAdditionalDayOfYearTokens) && QP(A) && qu(A, e, String(t)), _(Z, A, T.localize, R); - if (K.match(bV)) - throw new RangeError("Format string contains an unescaped latin alphabet character `" + K + "`"); - return A; + return !(n != null && n.useAdditionalWeekYearTokens) && TP(D) && Nu(D, e, String(t)), !(n != null && n.useAdditionalDayOfYearTokens) && kP(D) && Nu(D, e, String(t)), _(R, D, k.localize, q); + if (ee.match(ZY)) + throw new RangeError("Format string contains an unescaped latin alphabet character `" + ee + "`"); + return D; }).join(""); - return D; + return U; } -function wV(t) { - var e = t.match(SV); - return e ? e[1].replace(yV, "'") : t; +function GY(t) { + var e = t.match(qY); + return e ? e[1].replace(YY, "'") : t; } -function xV(t, e) { +function zY(t, e) { if (t == null) throw new TypeError("assign requires that input parameter not be null or undefined"); for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return t; } -function $0(t) { +function CQ(t) { B(1, arguments); - var e = ee(t), n = e.getDate(); + var e = K(t), n = e.getDate(); return n; } -function PV(t) { +function UY(t) { B(1, arguments); - var e = ee(t), n = e.getDay(); + var e = K(t), n = e.getDay(); return n; } -function vV(t) { +function VY(t) { B(1, arguments); - var e = ee(t), n = e.getFullYear(), i = e.getMonth(), r = /* @__PURE__ */ new Date(0); + var e = K(t), n = e.getFullYear(), i = e.getMonth(), r = /* @__PURE__ */ new Date(0); return r.setFullYear(n, i + 1, 0), r.setHours(0, 0, 0, 0), r.getDate(); } -function Nn(t) { +function rr(t) { B(1, arguments); - var e = ee(t), n = e.getHours(); + var e = K(t), n = e.getHours(); return n; } -var XV = 6048e5; -function TV(t) { +var jY = 6048e5; +function EY(t) { B(1, arguments); - var e = ee(t), n = Xu(e).getTime() - fW(e).getTime(); - return Math.round(n / XV) + 1; + var e = K(t), n = Eu(e).getTime() - Xq(e).getTime(); + return Math.round(n / jY) + 1; } -function Bn(t) { +function Or(t) { B(1, arguments); - var e = ee(t), n = e.getMinutes(); + var e = K(t), n = e.getMinutes(); return n; } function un(t) { B(1, arguments); - var e = ee(t), n = e.getMonth(); + var e = K(t), n = e.getMonth(); return n; } -function r1(t) { +function RQ(t) { B(1, arguments); - var e = ee(t), n = e.getSeconds(); + var e = K(t), n = e.getSeconds(); return n; } -function mp(t) { +function Yp(t) { B(1, arguments); - var e = ee(t), n = e.getTime(); + var e = K(t), n = e.getTime(); return n; } -function Ce(t) { - return B(1, arguments), ee(t).getFullYear(); +function Re(t) { + return B(1, arguments), K(t).getFullYear(); } -function sO(t, e) { +function gO(t, e) { B(2, arguments); - var n = ee(t), i = ee(e); + var n = K(t), i = K(e); return n.getTime() > i.getTime(); } -function Sr(t, e) { +function tO(t, e) { B(2, arguments); - var n = ee(t), i = ee(e); + var n = K(t), i = K(e); return n.getTime() < i.getTime(); } -function kV(t, e) { +function DY(t, e) { B(2, arguments); - var n = ee(t), i = ee(e); + var n = K(t), i = K(e); return n.getTime() === i.getTime(); } -function g0(t, e) { +function Zp(t, e) { (e == null || e > t.length) && (e = t.length); for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n]; return i; } -function CV(t, e) { +function h5(t, e) { if (t) { if (typeof t == "string") - return g0(t, e); + return Zp(t, e); var n = Object.prototype.toString.call(t).slice(8, -1); if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return g0(t, e); + return Zp(t, e); } } -function m0(t, e) { +function _Q(t, e) { var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (!n) { - if (Array.isArray(t) || (n = CV(t)) || e && t && typeof t.length == "number") { + if (Array.isArray(t) || (n = h5(t)) || e && t && typeof t.length == "number") { n && (t = n); var i = 0, r = function() { }; @@ -5296,7 +5288,7 @@ function m0(t, e) { throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } - var O = !0, a = !1, o; + var O = !0, o = !1, a; return { s: function() { n = n.call(t); @@ -5306,14 +5298,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return O = l.done, l; }, e: function(l) { - a = !0, o = l; + o = !0, a = l; }, f: function() { try { !O && n.return != null && n.return(); } finally { - if (a) - throw o; + if (o) + throw a; } } }; @@ -5323,7 +5315,7 @@ function te(t) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return t; } -function ze(t, e) { +function Ue(t, e) { if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { @@ -5334,14 +5326,14 @@ function ze(t, e) { } }), Object.defineProperty(t, "prototype", { writable: !1 - }), e && yu(t, e); + }), e && IR(t, e); } -function Vu(t) { - return Vu = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { +function Hu(t) { + return Hu = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); - }, Vu(t); + }, Hu(t); } -function _V() { +function IY() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -5353,98 +5345,98 @@ function _V() { return !1; } } -function RV(t, e) { - if (e && (ia(e) === "object" || typeof e == "function")) +function AY(t, e) { + if (e && (XO(e) === "object" || typeof e == "function")) return e; if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return te(t); } -function Ge(t) { - var e = _V(); +function Ve(t) { + var e = IY(); return function() { - var i = Vu(t), r; + var i = Hu(t), r; if (e) { - var O = Vu(this).constructor; + var O = Hu(this).constructor; r = Reflect.construct(i, arguments, O); } else r = i.apply(this, arguments); - return RV(this, r); + return AY(this, r); }; } -function We(t, e) { +function Ze(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } -function Q0(t, e) { +function WQ(t, e) { for (var n = 0; n < e.length; n++) { var i = e[n]; - i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, X_(i.key), i); + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, AR(i.key), i); } } -function Ve(t, e, n) { - return e && Q0(t.prototype, e), n && Q0(t, n), Object.defineProperty(t, "prototype", { +function Ge(t, e, n) { + return e && WQ(t.prototype, e), n && WQ(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t; } -var qV = 10, bP = /* @__PURE__ */ function() { +var FY = 10, RP = /* @__PURE__ */ function() { function t() { - We(this, t), J(this, "priority", void 0), J(this, "subPriority", 0); + Ze(this, t), H(this, "priority", void 0), H(this, "subPriority", 0); } - return Ve(t, [{ + return Ge(t, [{ key: "validate", value: function(n, i) { return !0; } }]), t; -}(), WV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); - function n(i, r, O, a, o) { +}(), LY = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); + function n(i, r, O, o, a) { var s; - return We(this, n), s = e.call(this), s.value = i, s.validateValue = r, s.setValue = O, s.priority = a, o && (s.subPriority = o), s; + return Ze(this, n), s = e.call(this), s.value = i, s.validateValue = r, s.setValue = O, s.priority = o, a && (s.subPriority = a), s; } - return Ve(n, [{ + return Ge(n, [{ key: "validate", value: function(r, O) { return this.validateValue(r, this.value, O); } }, { key: "set", - value: function(r, O, a) { - return this.setValue(r, O, this.value, a); + value: function(r, O, o) { + return this.setValue(r, O, this.value, o); } }]), n; -}(bP), VV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(RP), NY = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", qV), J(te(i), "subPriority", -1), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", FY), H(te(i), "subPriority", -1), i; } - return Ve(n, [{ + return Ge(n, [{ key: "set", value: function(r, O) { if (O.timestampIsSet) return r; - var a = /* @__PURE__ */ new Date(0); - return a.setFullYear(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()), a.setHours(r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds(), r.getUTCMilliseconds()), a; + var o = /* @__PURE__ */ new Date(0); + return o.setFullYear(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()), o.setHours(r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds(), r.getUTCMilliseconds()), o; } }]), n; -}(bP), Fe = /* @__PURE__ */ function() { +}(RP), Be = /* @__PURE__ */ function() { function t() { - We(this, t), J(this, "incompatibleTokens", void 0), J(this, "priority", void 0), J(this, "subPriority", void 0); + Ze(this, t), H(this, "incompatibleTokens", void 0), H(this, "priority", void 0), H(this, "subPriority", void 0); } - return Ve(t, [{ + return Ge(t, [{ key: "run", value: function(n, i, r, O) { - var a = this.parse(n, i, r, O); - return a ? { - setter: new WV(a.value, this.validate, this.set, this.priority, this.subPriority), - rest: a.rest + var o = this.parse(n, i, r, O); + return o ? { + setter: new LY(o.value, this.validate, this.set, this.priority, this.subPriority), + rest: o.rest } : null; } }, { @@ -5453,50 +5445,50 @@ var qV = 10, bP = /* @__PURE__ */ function() { return !0; } }]), t; -}(), ZV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(), MY = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 140), J(te(i), "incompatibleTokens", ["R", "u", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 140), H(te(i), "incompatibleTokens", ["R", "u", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "G": case "GG": case "GGG": - return a.era(r, { + return o.era(r, { width: "abbreviated" - }) || a.era(r, { + }) || o.era(r, { width: "narrow" }); case "GGGGG": - return a.era(r, { + return o.era(r, { width: "narrow" }); case "GGGG": default: - return a.era(r, { + return o.era(r, { width: "wide" - }) || a.era(r, { + }) || o.era(r, { width: "abbreviated" - }) || a.era(r, { + }) || o.era(r, { width: "narrow" }); } } }, { key: "set", - value: function(r, O, a) { - return O.era = a, r.setUTCFullYear(a, 0, 1), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return O.era = o, r.setUTCFullYear(o, 0, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), kt = { +}(Be), Ct = { month: /^(1[0-2]|0?\d)/, // 0 to 12 date: /^(3[0-1]|[0-2]?\d)/, @@ -5534,27 +5526,27 @@ var qV = 10, bP = /* @__PURE__ */ function() { // 0 to 999, -0 to -999 fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999 -}, Ni = { +}, Mi = { basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, basic: /^([+-])(\d{2})(\d{2})|Z/, basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, extended: /^([+-])(\d{2}):(\d{2})|Z/, extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ }; -function Ct(t, e) { +function Rt(t, e) { return t && { value: e(t.value), rest: t.rest }; } -function gt(t, e) { +function Qt(t, e) { var n = e.match(t); return n ? { value: parseInt(n[0], 10), rest: e.slice(n[0].length) } : null; } -function Bi(t, e) { +function Hi(t, e) { var n = e.match(t); if (!n) return null; @@ -5563,44 +5555,44 @@ function Bi(t, e) { value: 0, rest: e.slice(1) }; - var i = n[1] === "+" ? 1 : -1, r = n[2] ? parseInt(n[2], 10) : 0, O = n[3] ? parseInt(n[3], 10) : 0, a = n[5] ? parseInt(n[5], 10) : 0; + var i = n[1] === "+" ? 1 : -1, r = n[2] ? parseInt(n[2], 10) : 0, O = n[3] ? parseInt(n[3], 10) : 0, o = n[5] ? parseInt(n[5], 10) : 0; return { - value: i * (r * Jg + O * Hg + a * $W), + value: i * (r * d5 + O * u5 + o * Cq), rest: e.slice(n[0].length) }; } -function wP(t) { - return gt(kt.anyDigitsSigned, t); +function _P(t) { + return Qt(Ct.anyDigitsSigned, t); } -function Pt(t, e) { +function vt(t, e) { switch (t) { case 1: - return gt(kt.singleDigit, e); + return Qt(Ct.singleDigit, e); case 2: - return gt(kt.twoDigits, e); + return Qt(Ct.twoDigits, e); case 3: - return gt(kt.threeDigits, e); + return Qt(Ct.threeDigits, e); case 4: - return gt(kt.fourDigits, e); + return Qt(Ct.fourDigits, e); default: - return gt(new RegExp("^\\d{1," + t + "}"), e); + return Qt(new RegExp("^\\d{1," + t + "}"), e); } } -function Zu(t, e) { +function Bu(t, e) { switch (t) { case 1: - return gt(kt.singleDigitSigned, e); + return Qt(Ct.singleDigitSigned, e); case 2: - return gt(kt.twoDigitsSigned, e); + return Qt(Ct.twoDigitsSigned, e); case 3: - return gt(kt.threeDigitsSigned, e); + return Qt(Ct.threeDigitsSigned, e); case 4: - return gt(kt.fourDigitsSigned, e); + return Qt(Ct.fourDigitsSigned, e); default: - return gt(new RegExp("^-?\\d{1," + t + "}"), e); + return Qt(new RegExp("^-?\\d{1," + t + "}"), e); } } -function tm(t) { +function p5(t) { switch (t) { case "morning": return 4; @@ -5617,33 +5609,33 @@ function tm(t) { return 0; } } -function xP(t, e) { +function WP(t, e) { var n = e > 0, i = n ? e : 1 - e, r; if (i <= 50) r = t || 100; else { - var O = i + 50, a = Math.floor(O / 100) * 100, o = t >= O % 100; - r = t + a - (o ? 100 : 0); + var O = i + 50, o = Math.floor(O / 100) * 100, a = t >= O % 100; + r = t + o - (a ? 100 : 0); } return n ? r : 1 - r; } -function PP(t) { +function qP(t) { return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0; } -var UV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +var HY = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 130), J(te(i), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 130), H(te(i), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { - var o = function(l) { + value: function(r, O, o) { + var a = function(l) { return { year: l, isTwoDigitYear: O === "yy" @@ -5651,13 +5643,13 @@ var UV = /* @__PURE__ */ function(t) { }; switch (O) { case "y": - return Ct(Pt(4, r), o); + return Rt(vt(4, r), a); case "yo": - return Ct(a.ordinalNumber(r, { + return Rt(o.ordinalNumber(r, { unit: "year" - }), o); + }), a); default: - return Ct(Pt(O.length, r), o); + return Rt(vt(O.length, r), a); } } }, { @@ -5667,30 +5659,30 @@ var UV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - var o = r.getUTCFullYear(); - if (a.isTwoDigitYear) { - var s = xP(a.year, o); + value: function(r, O, o) { + var a = r.getUTCFullYear(); + if (o.isTwoDigitYear) { + var s = WP(o.year, a); return r.setUTCFullYear(s, 0, 1), r.setUTCHours(0, 0, 0, 0), r; } - var l = !("era" in O) || O.era === 1 ? a.year : 1 - a.year; + var l = !("era" in O) || O.era === 1 ? o.year : 1 - o.year; return r.setUTCFullYear(l, 0, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), YV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), BY = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 130), J(te(i), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 130), H(te(i), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { - var o = function(l) { + value: function(r, O, o) { + var a = function(l) { return { year: l, isTwoDigitYear: O === "YY" @@ -5698,13 +5690,13 @@ var UV = /* @__PURE__ */ function(t) { }; switch (O) { case "Y": - return Ct(Pt(4, r), o); + return Rt(vt(4, r), a); case "Yo": - return Ct(a.ordinalNumber(r, { + return Rt(o.ordinalNumber(r, { unit: "year" - }), o); + }), a); default: - return Ct(Pt(O.length, r), o); + return Rt(vt(O.length, r), a); } } }, { @@ -5714,102 +5706,102 @@ var UV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a, o) { - var s = em(r, o); - if (a.isTwoDigitYear) { - var l = xP(a.year, s); - return r.setUTCFullYear(l, 0, o.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), LO(r, o); + value: function(r, O, o, a) { + var s = f5(r, a); + if (o.isTwoDigitYear) { + var l = WP(o.year, s); + return r.setUTCFullYear(l, 0, a.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), io(r, a); } - var c = !("era" in O) || O.era === 1 ? a.year : 1 - a.year; - return r.setUTCFullYear(c, 0, o.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), LO(r, o); + var c = !("era" in O) || O.era === 1 ? o.year : 1 - o.year; + return r.setUTCFullYear(c, 0, a.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), io(r, a); } }]), n; -}(Fe), zV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), JY = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 130), J(te(i), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 130), H(te(i), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", value: function(r, O) { - return Zu(O === "R" ? 4 : O.length, r); + return Bu(O === "R" ? 4 : O.length, r); } }, { key: "set", - value: function(r, O, a) { - var o = /* @__PURE__ */ new Date(0); - return o.setUTCFullYear(a, 0, 4), o.setUTCHours(0, 0, 0, 0), Ia(o); + value: function(r, O, o) { + var a = /* @__PURE__ */ new Date(0); + return a.setUTCFullYear(o, 0, 4), a.setUTCHours(0, 0, 0, 0), ta(a); } }]), n; -}(Fe), GV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), KY = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 130), J(te(i), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 130), H(te(i), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", value: function(r, O) { - return Zu(O === "u" ? 4 : O.length, r); + return Bu(O === "u" ? 4 : O.length, r); } }, { key: "set", - value: function(r, O, a) { - return r.setUTCFullYear(a, 0, 1), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCFullYear(o, 0, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), EV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), eZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 120), J(te(i), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 120), H(te(i), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "Q": case "QQ": - return Pt(O.length, r); + return vt(O.length, r); case "Qo": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "quarter" }); case "QQQ": - return a.quarter(r, { + return o.quarter(r, { width: "abbreviated", context: "formatting" - }) || a.quarter(r, { + }) || o.quarter(r, { width: "narrow", context: "formatting" }); case "QQQQQ": - return a.quarter(r, { + return o.quarter(r, { width: "narrow", context: "formatting" }); case "QQQQ": default: - return a.quarter(r, { + return o.quarter(r, { width: "wide", context: "formatting" - }) || a.quarter(r, { + }) || o.quarter(r, { width: "abbreviated", context: "formatting" - }) || a.quarter(r, { + }) || o.quarter(r, { width: "narrow", context: "formatting" }); @@ -5822,53 +5814,53 @@ var UV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCMonth((a - 1) * 3, 1), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCMonth((o - 1) * 3, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), jV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), tZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 120), J(te(i), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 120), H(te(i), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "q": case "qq": - return Pt(O.length, r); + return vt(O.length, r); case "qo": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "quarter" }); case "qqq": - return a.quarter(r, { + return o.quarter(r, { width: "abbreviated", context: "standalone" - }) || a.quarter(r, { + }) || o.quarter(r, { width: "narrow", context: "standalone" }); case "qqqqq": - return a.quarter(r, { + return o.quarter(r, { width: "narrow", context: "standalone" }); case "qqqq": default: - return a.quarter(r, { + return o.quarter(r, { width: "wide", context: "standalone" - }) || a.quarter(r, { + }) || o.quarter(r, { width: "abbreviated", context: "standalone" - }) || a.quarter(r, { + }) || o.quarter(r, { width: "narrow", context: "standalone" }); @@ -5881,57 +5873,57 @@ var UV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCMonth((a - 1) * 3, 1), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCMonth((o - 1) * 3, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), IV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), nZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), J(te(i), "priority", 110), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), H(te(i), "priority", 110), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { - var o = function(l) { + value: function(r, O, o) { + var a = function(l) { return l - 1; }; switch (O) { case "M": - return Ct(gt(kt.month, r), o); + return Rt(Qt(Ct.month, r), a); case "MM": - return Ct(Pt(2, r), o); + return Rt(vt(2, r), a); case "Mo": - return Ct(a.ordinalNumber(r, { + return Rt(o.ordinalNumber(r, { unit: "month" - }), o); + }), a); case "MMM": - return a.month(r, { + return o.month(r, { width: "abbreviated", context: "formatting" - }) || a.month(r, { + }) || o.month(r, { width: "narrow", context: "formatting" }); case "MMMMM": - return a.month(r, { + return o.month(r, { width: "narrow", context: "formatting" }); case "MMMM": default: - return a.month(r, { + return o.month(r, { width: "wide", context: "formatting" - }) || a.month(r, { + }) || o.month(r, { width: "abbreviated", context: "formatting" - }) || a.month(r, { + }) || o.month(r, { width: "narrow", context: "formatting" }); @@ -5944,57 +5936,57 @@ var UV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCMonth(a, 1), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCMonth(o, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), AV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), iZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 110), J(te(i), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 110), H(te(i), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { - var o = function(l) { + value: function(r, O, o) { + var a = function(l) { return l - 1; }; switch (O) { case "L": - return Ct(gt(kt.month, r), o); + return Rt(Qt(Ct.month, r), a); case "LL": - return Ct(Pt(2, r), o); + return Rt(vt(2, r), a); case "Lo": - return Ct(a.ordinalNumber(r, { + return Rt(o.ordinalNumber(r, { unit: "month" - }), o); + }), a); case "LLL": - return a.month(r, { + return o.month(r, { width: "abbreviated", context: "standalone" - }) || a.month(r, { + }) || o.month(r, { width: "narrow", context: "standalone" }); case "LLLLL": - return a.month(r, { + return o.month(r, { width: "narrow", context: "standalone" }); case "LLLL": default: - return a.month(r, { + return o.month(r, { width: "wide", context: "standalone" - }) || a.month(r, { + }) || o.month(r, { width: "abbreviated", context: "standalone" - }) || a.month(r, { + }) || o.month(r, { width: "narrow", context: "standalone" }); @@ -6007,38 +5999,38 @@ var UV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCMonth(a, 1), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCMonth(o, 1), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe); -function DV(t, e, n) { +}(Be); +function rZ(t, e, n) { B(2, arguments); - var i = ee(t), r = ke(e), O = gP(i, n) - r; + var i = K(t), r = Ce(e), O = vP(i, n) - r; return i.setUTCDate(i.getUTCDate() - O * 7), i; } -var LV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +var OZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 100), J(te(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 100), H(te(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "w": - return gt(kt.week, r); + return Qt(Ct.week, r); case "wo": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "week" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { @@ -6048,38 +6040,38 @@ var LV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a, o) { - return LO(DV(r, a, o), o); + value: function(r, O, o, a) { + return io(rZ(r, o, a), a); } }]), n; -}(Fe); -function FV(t, e) { +}(Be); +function oZ(t, e) { B(2, arguments); - var n = ee(t), i = ke(e), r = $P(n) - i; + var n = K(t), i = Ce(e), r = PP(n) - i; return n.setUTCDate(n.getUTCDate() - r * 7), n; } -var MV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +var aZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 100), J(te(i), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 100), H(te(i), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "I": - return gt(kt.week, r); + return Qt(Ct.week, r); case "Io": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "week" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { @@ -6089,145 +6081,145 @@ var MV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return Ia(FV(r, a)); + value: function(r, O, o) { + return ta(oZ(r, o)); } }]), n; -}(Fe), NV = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], BV = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], HV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), sZ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], lZ = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], cZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 90), J(te(i), "subPriority", 1), J(te(i), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 90), H(te(i), "subPriority", 1), H(te(i), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "d": - return gt(kt.date, r); + return Qt(Ct.date, r); case "do": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "date" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { key: "validate", value: function(r, O) { - var a = r.getUTCFullYear(), o = PP(a), s = r.getUTCMonth(); - return o ? O >= 1 && O <= BV[s] : O >= 1 && O <= NV[s]; + var o = r.getUTCFullYear(), a = qP(o), s = r.getUTCMonth(); + return a ? O >= 1 && O <= lZ[s] : O >= 1 && O <= sZ[s]; } }, { key: "set", - value: function(r, O, a) { - return r.setUTCDate(a), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCDate(o), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), JV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), uZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 90), J(te(i), "subpriority", 1), J(te(i), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 90), H(te(i), "subpriority", 1), H(te(i), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "D": case "DD": - return gt(kt.dayOfYear, r); + return Qt(Ct.dayOfYear, r); case "Do": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "date" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { key: "validate", value: function(r, O) { - var a = r.getUTCFullYear(), o = PP(a); - return o ? O >= 1 && O <= 366 : O >= 1 && O <= 365; + var o = r.getUTCFullYear(), a = qP(o); + return a ? O >= 1 && O <= 366 : O >= 1 && O <= 365; } }, { key: "set", - value: function(r, O, a) { - return r.setUTCMonth(0, a), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCMonth(0, o), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe); -function nm(t, e, n) { - var i, r, O, a, o, s, l, c; +}(Be); +function $5(t, e, n) { + var i, r, O, o, a, s, l, c; B(2, arguments); - var u = ra(), d = ke((i = (r = (O = (a = n == null ? void 0 : n.weekStartsOn) !== null && a !== void 0 ? a : n == null || (o = n.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && O !== void 0 ? O : u.weekStartsOn) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && i !== void 0 ? i : 0); + var u = po(), d = Ce((i = (r = (O = (o = n == null ? void 0 : n.weekStartsOn) !== null && o !== void 0 ? o : n == null || (a = n.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && O !== void 0 ? O : u.weekStartsOn) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && i !== void 0 ? i : 0); if (!(d >= 0 && d <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - var h = ee(t), $ = ke(e), g = h.getUTCDay(), m = $ % 7, Q = (m + 7) % 7, S = (Q < d ? 7 : 0) + $ - g; + var h = K(t), $ = Ce(e), g = h.getUTCDay(), m = $ % 7, Q = (m + 7) % 7, S = (Q < d ? 7 : 0) + $ - g; return h.setUTCDate(h.getUTCDate() + S), h; } -var KV = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +var dZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 90), J(te(i), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 90), H(te(i), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "E": case "EE": case "EEE": - return a.day(r, { + return o.day(r, { width: "abbreviated", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" }); case "EEEEE": - return a.day(r, { + return o.day(r, { width: "narrow", context: "formatting" }); case "EEEEEE": - return a.day(r, { + return o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" }); case "EEEE": default: - return a.day(r, { + return o.day(r, { width: "wide", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "abbreviated", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" }); @@ -6240,71 +6232,71 @@ var KV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a, o) { - return r = nm(r, a, o), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o, a) { + return r = $5(r, o, a), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), eZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), fZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 90), J(te(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 90), H(te(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a, o) { + value: function(r, O, o, a) { var s = function(c) { var u = Math.floor((c - 1) / 7) * 7; - return (c + o.weekStartsOn + 6) % 7 + u; + return (c + a.weekStartsOn + 6) % 7 + u; }; switch (O) { case "e": case "ee": - return Ct(Pt(O.length, r), s); + return Rt(vt(O.length, r), s); case "eo": - return Ct(a.ordinalNumber(r, { + return Rt(o.ordinalNumber(r, { unit: "day" }), s); case "eee": - return a.day(r, { + return o.day(r, { width: "abbreviated", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" }); case "eeeee": - return a.day(r, { + return o.day(r, { width: "narrow", context: "formatting" }); case "eeeeee": - return a.day(r, { + return o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" }); case "eeee": default: - return a.day(r, { + return o.day(r, { width: "wide", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "abbreviated", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" }); @@ -6317,71 +6309,71 @@ var KV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a, o) { - return r = nm(r, a, o), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o, a) { + return r = $5(r, o, a), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), tZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), hZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 90), J(te(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 90), H(te(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a, o) { + value: function(r, O, o, a) { var s = function(c) { var u = Math.floor((c - 1) / 7) * 7; - return (c + o.weekStartsOn + 6) % 7 + u; + return (c + a.weekStartsOn + 6) % 7 + u; }; switch (O) { case "c": case "cc": - return Ct(Pt(O.length, r), s); + return Rt(vt(O.length, r), s); case "co": - return Ct(a.ordinalNumber(r, { + return Rt(o.ordinalNumber(r, { unit: "day" }), s); case "ccc": - return a.day(r, { + return o.day(r, { width: "abbreviated", context: "standalone" - }) || a.day(r, { + }) || o.day(r, { width: "short", context: "standalone" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "standalone" }); case "ccccc": - return a.day(r, { + return o.day(r, { width: "narrow", context: "standalone" }); case "cccccc": - return a.day(r, { + return o.day(r, { width: "short", context: "standalone" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "standalone" }); case "cccc": default: - return a.day(r, { + return o.day(r, { width: "wide", context: "standalone" - }) || a.day(r, { + }) || o.day(r, { width: "abbreviated", context: "standalone" - }) || a.day(r, { + }) || o.day(r, { width: "short", context: "standalone" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "standalone" }); @@ -6394,81 +6386,81 @@ var KV = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a, o) { - return r = nm(r, a, o), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o, a) { + return r = $5(r, o, a), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe); -function nZ(t, e) { +}(Be); +function pZ(t, e) { B(2, arguments); - var n = ke(e); + var n = Ce(e); n % 7 === 0 && (n = n - 7); - var i = 1, r = ee(t), O = r.getUTCDay(), a = n % 7, o = (a + 7) % 7, s = (o < i ? 7 : 0) + n - O; + var i = 1, r = K(t), O = r.getUTCDay(), o = n % 7, a = (o + 7) % 7, s = (a < i ? 7 : 0) + n - O; return r.setUTCDate(r.getUTCDate() + s), r; } -var iZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +var $Z = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 90), J(te(i), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 90), H(te(i), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { - var o = function(l) { + value: function(r, O, o) { + var a = function(l) { return l === 0 ? 7 : l; }; switch (O) { case "i": case "ii": - return Pt(O.length, r); + return vt(O.length, r); case "io": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "day" }); case "iii": - return Ct(a.day(r, { + return Rt(o.day(r, { width: "abbreviated", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" - }), o); + }), a); case "iiiii": - return Ct(a.day(r, { + return Rt(o.day(r, { width: "narrow", context: "formatting" - }), o); + }), a); case "iiiiii": - return Ct(a.day(r, { + return Rt(o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" - }), o); + }), a); case "iiii": default: - return Ct(a.day(r, { + return Rt(o.day(r, { width: "wide", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "abbreviated", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "short", context: "formatting" - }) || a.day(r, { + }) || o.day(r, { width: "narrow", context: "formatting" - }), o); + }), a); } } }, { @@ -6478,48 +6470,48 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r = nZ(r, a), r.setUTCHours(0, 0, 0, 0), r; + value: function(r, O, o) { + return r = pZ(r, o), r.setUTCHours(0, 0, 0, 0), r; } }]), n; -}(Fe), rZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), gZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 80), J(te(i), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 80), H(te(i), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "a": case "aa": case "aaa": - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "abbreviated", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "narrow", context: "formatting" }); case "aaaaa": - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "narrow", context: "formatting" }); case "aaaa": default: - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "wide", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "abbreviated", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "narrow", context: "formatting" }); @@ -6527,48 +6519,48 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCHours(tm(a), 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCHours(p5(o), 0, 0, 0), r; } }]), n; -}(Fe), OZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), mZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 80), J(te(i), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 80), H(te(i), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "b": case "bb": case "bbb": - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "abbreviated", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "narrow", context: "formatting" }); case "bbbbb": - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "narrow", context: "formatting" }); case "bbbb": default: - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "wide", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "abbreviated", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "narrow", context: "formatting" }); @@ -6576,48 +6568,48 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCHours(tm(a), 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCHours(p5(o), 0, 0, 0), r; } }]), n; -}(Fe), aZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), QZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 80), J(te(i), "incompatibleTokens", ["a", "b", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 80), H(te(i), "incompatibleTokens", ["a", "b", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "B": case "BB": case "BBB": - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "abbreviated", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "narrow", context: "formatting" }); case "BBBBB": - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "narrow", context: "formatting" }); case "BBBB": default: - return a.dayPeriod(r, { + return o.dayPeriod(r, { width: "wide", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "abbreviated", context: "formatting" - }) || a.dayPeriod(r, { + }) || o.dayPeriod(r, { width: "narrow", context: "formatting" }); @@ -6625,32 +6617,32 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCHours(tm(a), 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCHours(p5(o), 0, 0, 0), r; } }]), n; -}(Fe), oZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), SZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 70), J(te(i), "incompatibleTokens", ["H", "K", "k", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 70), H(te(i), "incompatibleTokens", ["H", "K", "k", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "h": - return gt(kt.hour12h, r); + return Qt(Ct.hour12h, r); case "ho": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "hour" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { @@ -6660,33 +6652,33 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - var o = r.getUTCHours() >= 12; - return o && a < 12 ? r.setUTCHours(a + 12, 0, 0, 0) : !o && a === 12 ? r.setUTCHours(0, 0, 0, 0) : r.setUTCHours(a, 0, 0, 0), r; + value: function(r, O, o) { + var a = r.getUTCHours() >= 12; + return a && o < 12 ? r.setUTCHours(o + 12, 0, 0, 0) : !a && o === 12 ? r.setUTCHours(0, 0, 0, 0) : r.setUTCHours(o, 0, 0, 0), r; } }]), n; -}(Fe), sZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), wZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 70), J(te(i), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 70), H(te(i), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "H": - return gt(kt.hour23h, r); + return Qt(Ct.hour23h, r); case "Ho": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "hour" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { @@ -6696,32 +6688,32 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCHours(a, 0, 0, 0), r; + value: function(r, O, o) { + return r.setUTCHours(o, 0, 0, 0), r; } }]), n; -}(Fe), lZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), yZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 70), J(te(i), "incompatibleTokens", ["h", "H", "k", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 70), H(te(i), "incompatibleTokens", ["h", "H", "k", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "K": - return gt(kt.hour11h, r); + return Qt(Ct.hour11h, r); case "Ko": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "hour" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { @@ -6731,33 +6723,33 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - var o = r.getUTCHours() >= 12; - return o && a < 12 ? r.setUTCHours(a + 12, 0, 0, 0) : r.setUTCHours(a, 0, 0, 0), r; + value: function(r, O, o) { + var a = r.getUTCHours() >= 12; + return a && o < 12 ? r.setUTCHours(o + 12, 0, 0, 0) : r.setUTCHours(o, 0, 0, 0), r; } }]), n; -}(Fe), cZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), bZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 70), J(te(i), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 70), H(te(i), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "k": - return gt(kt.hour24h, r); + return Qt(Ct.hour24h, r); case "ko": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "hour" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { @@ -6767,33 +6759,33 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - var o = a <= 24 ? a % 24 : a; - return r.setUTCHours(o, 0, 0, 0), r; + value: function(r, O, o) { + var a = o <= 24 ? o % 24 : o; + return r.setUTCHours(a, 0, 0, 0), r; } }]), n; -}(Fe), uZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), xZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 60), J(te(i), "incompatibleTokens", ["t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 60), H(te(i), "incompatibleTokens", ["t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "m": - return gt(kt.minute, r); + return Qt(Ct.minute, r); case "mo": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "minute" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { @@ -6803,32 +6795,32 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCMinutes(a, 0, 0), r; + value: function(r, O, o) { + return r.setUTCMinutes(o, 0, 0), r; } }]), n; -}(Fe), dZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), PZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 50), J(te(i), "incompatibleTokens", ["t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 50), H(te(i), "incompatibleTokens", ["t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", - value: function(r, O, a) { + value: function(r, O, o) { switch (O) { case "s": - return gt(kt.second, r); + return Qt(Ct.second, r); case "so": - return a.ordinalNumber(r, { + return o.ordinalNumber(r, { unit: "second" }); default: - return Pt(O.length, r); + return vt(O.length, r); } } }, { @@ -6838,359 +6830,359 @@ var iZ = /* @__PURE__ */ function(t) { } }, { key: "set", - value: function(r, O, a) { - return r.setUTCSeconds(a, 0), r; + value: function(r, O, o) { + return r.setUTCSeconds(o, 0), r; } }]), n; -}(Fe), fZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), vZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 30), J(te(i), "incompatibleTokens", ["t", "T"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 30), H(te(i), "incompatibleTokens", ["t", "T"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", value: function(r, O) { - var a = function(s) { + var o = function(s) { return Math.floor(s * Math.pow(10, -O.length + 3)); }; - return Ct(Pt(O.length, r), a); + return Rt(vt(O.length, r), o); } }, { key: "set", - value: function(r, O, a) { - return r.setUTCMilliseconds(a), r; + value: function(r, O, o) { + return r.setUTCMilliseconds(o), r; } }]), n; -}(Fe), hZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), XZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 10), J(te(i), "incompatibleTokens", ["t", "T", "x"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 10), H(te(i), "incompatibleTokens", ["t", "T", "x"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", value: function(r, O) { switch (O) { case "X": - return Bi(Ni.basicOptionalMinutes, r); + return Hi(Mi.basicOptionalMinutes, r); case "XX": - return Bi(Ni.basic, r); + return Hi(Mi.basic, r); case "XXXX": - return Bi(Ni.basicOptionalSeconds, r); + return Hi(Mi.basicOptionalSeconds, r); case "XXXXX": - return Bi(Ni.extendedOptionalSeconds, r); + return Hi(Mi.extendedOptionalSeconds, r); case "XXX": default: - return Bi(Ni.extended, r); + return Hi(Mi.extended, r); } } }, { key: "set", - value: function(r, O, a) { - return O.timestampIsSet ? r : new Date(r.getTime() - a); + value: function(r, O, o) { + return O.timestampIsSet ? r : new Date(r.getTime() - o); } }]), n; -}(Fe), pZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), kZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 10), J(te(i), "incompatibleTokens", ["t", "T", "X"]), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 10), H(te(i), "incompatibleTokens", ["t", "T", "X"]), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", value: function(r, O) { switch (O) { case "x": - return Bi(Ni.basicOptionalMinutes, r); + return Hi(Mi.basicOptionalMinutes, r); case "xx": - return Bi(Ni.basic, r); + return Hi(Mi.basic, r); case "xxxx": - return Bi(Ni.basicOptionalSeconds, r); + return Hi(Mi.basicOptionalSeconds, r); case "xxxxx": - return Bi(Ni.extendedOptionalSeconds, r); + return Hi(Mi.extendedOptionalSeconds, r); case "xxx": default: - return Bi(Ni.extended, r); + return Hi(Mi.extended, r); } } }, { key: "set", - value: function(r, O, a) { - return O.timestampIsSet ? r : new Date(r.getTime() - a); + value: function(r, O, o) { + return O.timestampIsSet ? r : new Date(r.getTime() - o); } }]), n; -}(Fe), $Z = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), TZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 40), J(te(i), "incompatibleTokens", "*"), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 40), H(te(i), "incompatibleTokens", "*"), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", value: function(r) { - return wP(r); + return _P(r); } }, { key: "set", - value: function(r, O, a) { - return [new Date(a * 1e3), { + value: function(r, O, o) { + return [new Date(o * 1e3), { timestampIsSet: !0 }]; } }]), n; -}(Fe), gZ = /* @__PURE__ */ function(t) { - ze(n, t); - var e = Ge(n); +}(Be), CZ = /* @__PURE__ */ function(t) { + Ue(n, t); + var e = Ve(n); function n() { var i; - We(this, n); - for (var r = arguments.length, O = new Array(r), a = 0; a < r; a++) - O[a] = arguments[a]; - return i = e.call.apply(e, [this].concat(O)), J(te(i), "priority", 20), J(te(i), "incompatibleTokens", "*"), i; + Ze(this, n); + for (var r = arguments.length, O = new Array(r), o = 0; o < r; o++) + O[o] = arguments[o]; + return i = e.call.apply(e, [this].concat(O)), H(te(i), "priority", 20), H(te(i), "incompatibleTokens", "*"), i; } - return Ve(n, [{ + return Ge(n, [{ key: "parse", value: function(r) { - return wP(r); + return _P(r); } }, { key: "set", - value: function(r, O, a) { - return [new Date(a), { + value: function(r, O, o) { + return [new Date(o), { timestampIsSet: !0 }]; } }]), n; -}(Fe), mZ = { - G: new ZV(), - y: new UV(), - Y: new YV(), - R: new zV(), - u: new GV(), - Q: new EV(), - q: new jV(), - M: new IV(), - L: new AV(), - w: new LV(), - I: new MV(), - d: new HV(), - D: new JV(), - E: new KV(), - e: new eZ(), - c: new tZ(), - i: new iZ(), - a: new rZ(), - b: new OZ(), - B: new aZ(), - h: new oZ(), - H: new sZ(), - K: new lZ(), - k: new cZ(), - m: new uZ(), - s: new dZ(), - S: new fZ(), - X: new hZ(), - x: new pZ(), - t: new $Z(), - T: new gZ() -}, QZ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, SZ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, yZ = /^'([^]*?)'?$/, bZ = /''/g, wZ = /\S/, xZ = /[a-zA-Z]/; -function O1(t, e, n, i) { - var r, O, a, o, s, l, c, u, d, h, $, g, m, Q, S, b, y, v; +}(Be), RZ = { + G: new MY(), + y: new HY(), + Y: new BY(), + R: new JY(), + u: new KY(), + Q: new eZ(), + q: new tZ(), + M: new nZ(), + L: new iZ(), + w: new OZ(), + I: new aZ(), + d: new cZ(), + D: new uZ(), + E: new dZ(), + e: new fZ(), + c: new hZ(), + i: new $Z(), + a: new gZ(), + b: new mZ(), + B: new QZ(), + h: new SZ(), + H: new wZ(), + K: new yZ(), + k: new bZ(), + m: new xZ(), + s: new PZ(), + S: new vZ(), + X: new XZ(), + x: new kZ(), + t: new TZ(), + T: new CZ() +}, _Z = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, WZ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qZ = /^'([^]*?)'?$/, YZ = /''/g, ZZ = /\S/, GZ = /[a-zA-Z]/; +function m1(t, e, n, i) { + var r, O, o, a, s, l, c, u, d, h, $, g, m, Q, S, w, y, P; B(3, arguments); - var P = String(t), T = String(e), q = ra(), W = (r = (O = i == null ? void 0 : i.locale) !== null && O !== void 0 ? O : q.locale) !== null && r !== void 0 ? r : yP; - if (!W.match) + var v = String(t), k = String(e), Y = po(), G = (r = (O = i == null ? void 0 : i.locale) !== null && O !== void 0 ? O : Y.locale) !== null && r !== void 0 ? r : CP; + if (!G.match) throw new RangeError("locale must contain match property"); - var k = ke((a = (o = (s = (l = i == null ? void 0 : i.firstWeekContainsDate) !== null && l !== void 0 ? l : i == null || (c = i.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && s !== void 0 ? s : q.firstWeekContainsDate) !== null && o !== void 0 ? o : (d = q.locale) === null || d === void 0 || (h = d.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1); - if (!(k >= 1 && k <= 7)) + var C = Ce((o = (a = (s = (l = i == null ? void 0 : i.firstWeekContainsDate) !== null && l !== void 0 ? l : i == null || (c = i.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && s !== void 0 ? s : Y.firstWeekContainsDate) !== null && a !== void 0 ? a : (d = Y.locale) === null || d === void 0 || (h = d.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && o !== void 0 ? o : 1); + if (!(C >= 1 && C <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); - var V = ke(($ = (g = (m = (Q = i == null ? void 0 : i.weekStartsOn) !== null && Q !== void 0 ? Q : i == null || (S = i.locale) === null || S === void 0 || (b = S.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && m !== void 0 ? m : q.weekStartsOn) !== null && g !== void 0 ? g : (y = q.locale) === null || y === void 0 || (v = y.options) === null || v === void 0 ? void 0 : v.weekStartsOn) !== null && $ !== void 0 ? $ : 0); - if (!(V >= 0 && V <= 6)) + var W = Ce(($ = (g = (m = (Q = i == null ? void 0 : i.weekStartsOn) !== null && Q !== void 0 ? Q : i == null || (S = i.locale) === null || S === void 0 || (w = S.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && m !== void 0 ? m : Y.weekStartsOn) !== null && g !== void 0 ? g : (y = Y.locale) === null || y === void 0 || (P = y.options) === null || P === void 0 ? void 0 : P.weekStartsOn) !== null && $ !== void 0 ? $ : 0); + if (!(W >= 0 && W <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - if (T === "") - return P === "" ? ee(n) : /* @__PURE__ */ new Date(NaN); - var Z = { - firstWeekContainsDate: k, - weekStartsOn: V, - locale: W - }, R = [new VV()], D = T.match(SZ).map(function(ge) { - var xe = ge[0]; - if (xe in gp) { - var Jt = gp[xe]; - return Jt(ge, W.formatLong); - } - return ge; - }).join("").match(QZ), A = [], K = m0(D), _; + if (k === "") + return v === "" ? K(n) : /* @__PURE__ */ new Date(NaN); + var R = { + firstWeekContainsDate: C, + weekStartsOn: W, + locale: G + }, q = [new NY()], U = k.match(WZ).map(function(me) { + var Pe = me[0]; + if (Pe in qp) { + var Jt = qp[Pe]; + return Jt(me, G.formatLong); + } + return me; + }).join("").match(_Z), D = [], ee = _Q(U), _; try { - var j = function() { - var xe = _.value; - !(i != null && i.useAdditionalWeekYearTokens) && SP(xe) && qu(xe, T, t), !(i != null && i.useAdditionalDayOfYearTokens) && QP(xe) && qu(xe, T, t); - var Jt = xe[0], Gi = mZ[Jt]; - if (Gi) { - var _r = Gi.incompatibleTokens; - if (Array.isArray(_r)) { - var bO = A.find(function(ql) { - return _r.includes(ql.token) || ql.token === Jt; + var I = function() { + var Pe = _.value; + !(i != null && i.useAdditionalWeekYearTokens) && TP(Pe) && Nu(Pe, k, t), !(i != null && i.useAdditionalDayOfYearTokens) && kP(Pe) && Nu(Pe, k, t); + var Jt = Pe[0], Vi = RZ[Jt]; + if (Vi) { + var zr = Vi.incompatibleTokens; + if (Array.isArray(zr)) { + var WO = D.find(function(Nl) { + return zr.includes(Nl.token) || Nl.token === Jt; }); - if (bO) - throw new RangeError("The format string mustn't contain `".concat(bO.fullToken, "` and `").concat(xe, "` at the same time")); - } else if (Gi.incompatibleTokens === "*" && A.length > 0) - throw new RangeError("The format string mustn't contain `".concat(xe, "` and any other token at the same time")); - A.push({ + if (WO) + throw new RangeError("The format string mustn't contain `".concat(WO.fullToken, "` and `").concat(Pe, "` at the same time")); + } else if (Vi.incompatibleTokens === "*" && D.length > 0) + throw new RangeError("The format string mustn't contain `".concat(Pe, "` and any other token at the same time")); + D.push({ token: Jt, - fullToken: xe + fullToken: Pe }); - var da = Gi.run(P, xe, W.match, Z); - if (!da) + var bo = Vi.run(v, Pe, G.match, R); + if (!bo) return { v: /* @__PURE__ */ new Date(NaN) }; - R.push(da.setter), P = da.rest; + q.push(bo.setter), v = bo.rest; } else { - if (Jt.match(xZ)) + if (Jt.match(GZ)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + Jt + "`"); - if (xe === "''" ? xe = "'" : Jt === "'" && (xe = PZ(xe)), P.indexOf(xe) === 0) - P = P.slice(xe.length); + if (Pe === "''" ? Pe = "'" : Jt === "'" && (Pe = zZ(Pe)), v.indexOf(Pe) === 0) + v = v.slice(Pe.length); else return { v: /* @__PURE__ */ new Date(NaN) }; } }; - for (K.s(); !(_ = K.n()).done; ) { - var I = j(); - if (ia(I) === "object") - return I.v; + for (ee.s(); !(_ = ee.n()).done; ) { + var A = I(); + if (XO(A) === "object") + return A.v; } - } catch (ge) { - K.e(ge); + } catch (me) { + ee.e(me); } finally { - K.f(); + ee.f(); } - if (P.length > 0 && wZ.test(P)) + if (v.length > 0 && ZZ.test(v)) return /* @__PURE__ */ new Date(NaN); - var M = R.map(function(ge) { - return ge.priority; - }).sort(function(ge, xe) { - return xe - ge; - }).filter(function(ge, xe, Jt) { - return Jt.indexOf(ge) === xe; - }).map(function(ge) { - return R.filter(function(xe) { - return xe.priority === ge; - }).sort(function(xe, Jt) { - return Jt.subPriority - xe.subPriority; + var N = q.map(function(me) { + return me.priority; + }).sort(function(me, Pe) { + return Pe - me; + }).filter(function(me, Pe, Jt) { + return Jt.indexOf(me) === Pe; + }).map(function(me) { + return q.filter(function(Pe) { + return Pe.priority === me; + }).sort(function(Pe, Jt) { + return Jt.subPriority - Pe.subPriority; }); - }).map(function(ge) { - return ge[0]; - }), ue = ee(n); - if (isNaN(ue.getTime())) + }).map(function(me) { + return me[0]; + }), ae = K(n); + if (isNaN(ae.getTime())) return /* @__PURE__ */ new Date(NaN); - var we = hP(ue, Tu(ue)), Ue = {}, ot = m0(M), F; + var ye = bP(ae, Du(ae)), qe = {}, Ke = _Q(N), F; try { - for (ot.s(); !(F = ot.n()).done; ) { - var Oe = F.value; - if (!Oe.validate(we, Z)) + for (Ke.s(); !(F = Ke.n()).done; ) { + var ie = F.value; + if (!ie.validate(ye, R)) return /* @__PURE__ */ new Date(NaN); - var ce = Oe.set(we, Ue, Z); - Array.isArray(ce) ? (we = ce[0], xV(Ue, ce[1])) : we = ce; + var fe = ie.set(ye, qe, R); + Array.isArray(fe) ? (ye = fe[0], zY(qe, fe[1])) : ye = fe; } - } catch (ge) { - ot.e(ge); + } catch (me) { + Ke.e(me); } finally { - ot.f(); + Ke.f(); } - return we; + return ye; } -function PZ(t) { - return t.match(yZ)[1].replace(bZ, "'"); +function zZ(t) { + return t.match(qZ)[1].replace(YZ, "'"); } -function vZ(t, e) { +function UZ(t, e) { B(2, arguments); - var n = ee(t), i = ee(e); + var n = K(t), i = K(e); return n.getFullYear() === i.getFullYear() && n.getMonth() === i.getMonth(); } -function XZ(t, e) { +function VZ(t, e) { B(2, arguments); - var n = $p(t), i = $p(e); + var n = Wp(t), i = Wp(e); return n.getTime() === i.getTime(); } -function TZ(t, e) { +function jZ(t, e) { B(2, arguments); - var n = ee(t), i = ee(e); + var n = K(t), i = K(e); return n.getFullYear() === i.getFullYear(); } -function qs(t, e) { +function Ds(t, e) { B(2, arguments); - var n = ee(t).getTime(), i = ee(e.start).getTime(), r = ee(e.end).getTime(); + var n = K(t).getTime(), i = K(e.start).getTime(), r = K(e.end).getTime(); if (!(i <= r)) throw new RangeError("Invalid interval"); return n >= i && n <= r; } -function kZ(t, e) { +function EZ(t, e) { B(2, arguments); - var n = ke(e); - return ho(t, -n); + var n = Ce(e); + return ba(t, -n); } -function CZ(t, e) { +function DZ(t, e) { var n; B(1, arguments); - var i = ke((n = e == null ? void 0 : e.additionalDigits) !== null && n !== void 0 ? n : 2); + var i = Ce((n = e == null ? void 0 : e.additionalDigits) !== null && n !== void 0 ? n : 2); if (i !== 2 && i !== 1 && i !== 0) throw new RangeError("additionalDigits must be 0, 1 or 2"); if (!(typeof t == "string" || Object.prototype.toString.call(t) === "[object String]")) return /* @__PURE__ */ new Date(NaN); - var r = WZ(t), O; + var r = LZ(t), O; if (r.date) { - var a = VZ(r.date, i); - O = ZZ(a.restDateString, a.year); + var o = NZ(r.date, i); + O = MZ(o.restDateString, o.year); } if (!O || isNaN(O.getTime())) return /* @__PURE__ */ new Date(NaN); - var o = O.getTime(), s = 0, l; - if (r.time && (s = UZ(r.time), isNaN(s))) + var a = O.getTime(), s = 0, l; + if (r.time && (s = HZ(r.time), isNaN(s))) return /* @__PURE__ */ new Date(NaN); if (r.timezone) { - if (l = YZ(r.timezone), isNaN(l)) + if (l = BZ(r.timezone), isNaN(l)) return /* @__PURE__ */ new Date(NaN); } else { - var c = new Date(o + s), u = /* @__PURE__ */ new Date(0); + var c = new Date(a + s), u = /* @__PURE__ */ new Date(0); return u.setFullYear(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate()), u.setHours(c.getUTCHours(), c.getUTCMinutes(), c.getUTCSeconds(), c.getUTCMilliseconds()), u; } - return new Date(o + s + l); + return new Date(a + s + l); } -var Wl = { +var Ml = { dateTimeDelimiter: /[T ]/, timeZoneDelimiter: /[Z ]/i, timezone: /([Z+-].*)$/ -}, _Z = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, RZ = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, qZ = /^([+-])(\d{2})(?::?(\d{2}))?$/; -function WZ(t) { - var e = {}, n = t.split(Wl.dateTimeDelimiter), i; +}, IZ = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, AZ = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, FZ = /^([+-])(\d{2})(?::?(\d{2}))?$/; +function LZ(t) { + var e = {}, n = t.split(Ml.dateTimeDelimiter), i; if (n.length > 2) return e; - if (/:/.test(n[0]) ? i = n[0] : (e.date = n[0], i = n[1], Wl.timeZoneDelimiter.test(e.date) && (e.date = t.split(Wl.timeZoneDelimiter)[0], i = t.substr(e.date.length, t.length))), i) { - var r = Wl.timezone.exec(i); + if (/:/.test(n[0]) ? i = n[0] : (e.date = n[0], i = n[1], Ml.timeZoneDelimiter.test(e.date) && (e.date = t.split(Ml.timeZoneDelimiter)[0], i = t.substr(e.date.length, t.length))), i) { + var r = Ml.timezone.exec(i); r ? (e.time = i.replace(r[1], ""), e.timezone = r[1]) : e.time = i; } return e; } -function VZ(t, e) { +function NZ(t, e) { var n = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"), i = t.match(n); if (!i) return { @@ -7203,125 +7195,125 @@ function VZ(t, e) { restDateString: t.slice((i[1] || i[2]).length) }; } -function ZZ(t, e) { +function MZ(t, e) { if (e === null) return /* @__PURE__ */ new Date(NaN); - var n = t.match(_Z); + var n = t.match(IZ); if (!n) return /* @__PURE__ */ new Date(NaN); - var i = !!n[4], r = ko(n[1]), O = ko(n[2]) - 1, a = ko(n[3]), o = ko(n[4]), s = ko(n[5]) - 1; + var i = !!n[4], r = za(n[1]), O = za(n[2]) - 1, o = za(n[3]), a = za(n[4]), s = za(n[5]) - 1; if (i) - return IZ(e, o, s) ? zZ(e, o, s) : /* @__PURE__ */ new Date(NaN); + return nG(e, a, s) ? JZ(e, a, s) : /* @__PURE__ */ new Date(NaN); var l = /* @__PURE__ */ new Date(0); - return !EZ(e, O, a) || !jZ(e, r) ? /* @__PURE__ */ new Date(NaN) : (l.setUTCFullYear(e, O, Math.max(r, a)), l); + return !eG(e, O, o) || !tG(e, r) ? /* @__PURE__ */ new Date(NaN) : (l.setUTCFullYear(e, O, Math.max(r, o)), l); } -function ko(t) { +function za(t) { return t ? parseInt(t) : 1; } -function UZ(t) { - var e = t.match(RZ); +function HZ(t) { + var e = t.match(AZ); if (!e) return NaN; - var n = a1(e[1]), i = a1(e[2]), r = a1(e[3]); - return AZ(n, i, r) ? n * Jg + i * Hg + r * 1e3 : NaN; + var n = Q1(e[1]), i = Q1(e[2]), r = Q1(e[3]); + return iG(n, i, r) ? n * d5 + i * u5 + r * 1e3 : NaN; } -function a1(t) { +function Q1(t) { return t && parseFloat(t.replace(",", ".")) || 0; } -function YZ(t) { +function BZ(t) { if (t === "Z") return 0; - var e = t.match(qZ); + var e = t.match(FZ); if (!e) return 0; var n = e[1] === "+" ? -1 : 1, i = parseInt(e[2]), r = e[3] && parseInt(e[3]) || 0; - return DZ(i, r) ? n * (i * Jg + r * Hg) : NaN; + return rG(i, r) ? n * (i * d5 + r * u5) : NaN; } -function zZ(t, e, n) { +function JZ(t, e, n) { var i = /* @__PURE__ */ new Date(0); i.setUTCFullYear(t, 0, 4); var r = i.getUTCDay() || 7, O = (e - 1) * 7 + n + 1 - r; return i.setUTCDate(i.getUTCDate() + O), i; } -var GZ = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -function vP(t) { +var KZ = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +function YP(t) { return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0; } -function EZ(t, e, n) { - return e >= 0 && e <= 11 && n >= 1 && n <= (GZ[e] || (vP(t) ? 29 : 28)); +function eG(t, e, n) { + return e >= 0 && e <= 11 && n >= 1 && n <= (KZ[e] || (YP(t) ? 29 : 28)); } -function jZ(t, e) { - return e >= 1 && e <= (vP(t) ? 366 : 365); +function tG(t, e) { + return e >= 1 && e <= (YP(t) ? 366 : 365); } -function IZ(t, e, n) { +function nG(t, e, n) { return e >= 1 && e <= 53 && n >= 0 && n <= 6; } -function AZ(t, e, n) { +function iG(t, e, n) { return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25; } -function DZ(t, e) { +function rG(t, e) { return e >= 0 && e <= 59; } -function mn(t, e) { +function yn(t, e) { B(2, arguments); - var n = ee(t), i = ke(e), r = n.getFullYear(), O = n.getDate(), a = /* @__PURE__ */ new Date(0); - a.setFullYear(r, i, 15), a.setHours(0, 0, 0, 0); - var o = vV(a); - return n.setMonth(i, Math.min(O, o)), n; + var n = K(t), i = Ce(e), r = n.getFullYear(), O = n.getDate(), o = /* @__PURE__ */ new Date(0); + o.setFullYear(r, i, 15), o.setHours(0, 0, 0, 0); + var a = VY(o); + return n.setMonth(i, Math.min(O, a)), n; } -function LZ(t, e) { - if (B(2, arguments), ia(e) !== "object" || e === null) +function OG(t, e) { + if (B(2, arguments), XO(e) !== "object" || e === null) throw new RangeError("values parameter must be an object"); - var n = ee(t); - return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (e.year != null && n.setFullYear(e.year), e.month != null && (n = mn(n, e.month)), e.date != null && n.setDate(ke(e.date)), e.hours != null && n.setHours(ke(e.hours)), e.minutes != null && n.setMinutes(ke(e.minutes)), e.seconds != null && n.setSeconds(ke(e.seconds)), e.milliseconds != null && n.setMilliseconds(ke(e.milliseconds)), n); + var n = K(t); + return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (e.year != null && n.setFullYear(e.year), e.month != null && (n = yn(n, e.month)), e.date != null && n.setDate(Ce(e.date)), e.hours != null && n.setHours(Ce(e.hours)), e.minutes != null && n.setMinutes(Ce(e.minutes)), e.seconds != null && n.setSeconds(Ce(e.seconds)), e.milliseconds != null && n.setMilliseconds(Ce(e.milliseconds)), n); } -function fs(t, e) { +function lu(t, e) { B(2, arguments); - var n = ee(t), i = ke(e); + var n = K(t), i = Ce(e); return n.setHours(i), n; } -function hs(t, e) { +function cu(t, e) { B(2, arguments); - var n = ee(t), i = ke(e); + var n = K(t), i = Ce(e); return n.setMinutes(i), n; } -function xa(t, e) { +function Po(t, e) { B(2, arguments); - var n = ee(t), i = ke(e), r = Math.floor(n.getMonth() / 3) + 1, O = i - r; - return mn(n, n.getMonth() + O * 3); + var n = K(t), i = Ce(e), r = Math.floor(n.getMonth() / 3) + 1, O = i - r; + return yn(n, n.getMonth() + O * 3); } -function FZ(t, e) { +function oG(t, e) { B(2, arguments); - var n = ee(t), i = ke(e); + var n = K(t), i = Ce(e); return n.setSeconds(i), n; } -function mr(t, e) { +function Pr(t, e) { B(2, arguments); - var n = ee(t), i = ke(e); + var n = K(t), i = Ce(e); return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (n.setFullYear(i), n); } -function Aa(t, e) { +function na(t, e) { B(2, arguments); - var n = ke(e); - return qi(t, -n); + var n = Ce(e); + return _i(t, -n); } -function MZ(t, e) { +function aG(t, e) { B(2, arguments); - var n = ke(e); - return uP(t, -n); + var n = Ce(e); + return SP(t, -n); } -function NZ(t, e) { +function qQ(t, e) { B(2, arguments); - var n = ke(e); - return Bg(t, -n); + var n = Ce(e); + return Au(t, -n); } -function Ws(t, e) { +function Is(t, e) { B(2, arguments); - var n = ke(e); - return ja(t, -n); + var n = Ce(e); + return ea(t, -n); } -const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( - wn, +const gn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( + xn, { fontFamily: "Inter", sx: { @@ -7331,7 +7323,7 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( ...n, variant: `value${t ? "Primary" : ""}` } -), BZ = { +), sG = { display: "flex", flexDirection: "column", alignItems: "center", @@ -7342,7 +7334,7 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( minWidth: "230px", p: "20px", boxSizing: "border-box" -}, HZ = { +}, lG = { display: "flex", flexDirection: "column", "div:first-of-type": { justifyContent: "center" }, @@ -7355,7 +7347,7 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( fontWeight: "subtitle", fontSize: "subtitle" } -}, S0 = (t) => ({ +}, YQ = (t) => ({ display: "flex", flexDirection: "column", maxWidth: t ? "80px" : "180px", @@ -7383,30 +7375,30 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( "div:first-of-typed": { height: "auto" } -}), JZ = (t) => t >= 1073741824 ? `${(t / 1073741824).toFixed(2)} Gb` : t >= 1048576 ? `${(t / 1048576).toFixed(2)} mb` : t >= 1024 ? `${(t / 1024).toFixed(2)} kb` : t > 1 ? `${t} bytes` : t === 1 ? `${t} byte` : "0 byte", KZ = ({ +}), cG = (t) => t >= 1073741824 ? `${(t / 1073741824).toFixed(2)} Gb` : t >= 1048576 ? `${(t / 1048576).toFixed(2)} mb` : t >= 1024 ? `${(t / 1024).toFixed(2)} kb` : t > 1 ? `${t} bytes` : t === 1 ? `${t} byte` : "0 byte", uG = ({ children: t, activeFile: e, disableDownload: n, handleDownloadFile: i }) => { - const r = (O) => Wu(new Date(O), "yyyy-MM-dd - HH:mm:ss"); + const r = (O) => Mu(new Date(O), "yyyy-MM-dd - HH:mm:ss"); return /* @__PURE__ */ f.jsxs( - Y, + z, { sx: { - ...BZ + ...sG }, children: [ /* @__PURE__ */ f.jsxs( - Y, + z, { sx: { - ...HZ + ...lG }, children: [ - /* @__PURE__ */ f.jsx(fn, { as: "h2", marginBottom: "32px", textAlign: "center", children: e == null ? void 0 : e.attributes.name }), + /* @__PURE__ */ f.jsx(gn, { as: "h2", marginBottom: "32px", textAlign: "center", children: e == null ? void 0 : e.attributes.name }), /* @__PURE__ */ f.jsxs( - G, + j, { sx: { "> div > div": { @@ -7415,30 +7407,30 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( }, children: [ /* @__PURE__ */ f.jsxs( - Y, + z, { sx: { - ...S0(!0) + ...YQ(!0) }, children: [ - /* @__PURE__ */ f.jsx(be, { gray: !0, children: "size" }), - /* @__PURE__ */ f.jsx(be, { gray: !0, children: "creation" }), - /* @__PURE__ */ f.jsx(be, { gray: !0, children: "last update" }), - /* @__PURE__ */ f.jsx(be, { gray: !0, children: "author" }) + /* @__PURE__ */ f.jsx(xe, { gray: !0, children: "size" }), + /* @__PURE__ */ f.jsx(xe, { gray: !0, children: "creation" }), + /* @__PURE__ */ f.jsx(xe, { gray: !0, children: "last update" }), + /* @__PURE__ */ f.jsx(xe, { gray: !0, children: "author" }) ] } ), e && /* @__PURE__ */ f.jsxs( - Y, + z, { sx: { - ...S0(!1) + ...YQ(!1) }, children: [ - /* @__PURE__ */ f.jsx(be, { children: JZ(e == null ? void 0 : e.attributes.size) }), - /* @__PURE__ */ f.jsx(be, { children: r(e == null ? void 0 : e.attributes.accessTime) }), - /* @__PURE__ */ f.jsx(be, { children: r(e == null ? void 0 : e.attributes.modificationTime) }), - /* @__PURE__ */ f.jsx(be, { children: e == null ? void 0 : e.attributes.owner }) + /* @__PURE__ */ f.jsx(xe, { children: cG(e == null ? void 0 : e.attributes.size) }), + /* @__PURE__ */ f.jsx(xe, { children: r(e == null ? void 0 : e.attributes.accessTime) }), + /* @__PURE__ */ f.jsx(xe, { children: r(e == null ? void 0 : e.attributes.modificationTime) }), + /* @__PURE__ */ f.jsx(xe, { children: e == null ? void 0 : e.attributes.owner }) ] } ) @@ -7449,25 +7441,25 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( } ), !n && /* @__PURE__ */ f.jsx( - xn, + Pn, { intent: "secondary", onClick: () => { i(e); }, - children: /* @__PURE__ */ f.jsxs(G, { alignItems: "center", justifyContent: "center", children: [ + children: /* @__PURE__ */ f.jsxs(j, { alignItems: "center", justifyContent: "center", children: [ /* @__PURE__ */ f.jsx( - G, + j, { sx: { mr: "11px", height: "15px", alignItems: "center" }, - children: /* @__PURE__ */ f.jsx(je, { size: "sm", icon: Ze.folder }) + children: /* @__PURE__ */ f.jsx(Ie, { size: "sm", icon: ze.folder }) } ), - /* @__PURE__ */ f.jsx(G, { alignItems: "center", children: "Download File" }) + /* @__PURE__ */ f.jsx(j, { alignItems: "center", children: "Download File" }) ] }) } ), @@ -7475,7 +7467,7 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( ] } ); -}, eU = { +}, dG = { display: "flex", flexDirection: "column", alignItems: "center", @@ -7492,7 +7484,7 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( fontSize: "subtitle", color: "gray" } -}, tU = () => /* @__PURE__ */ f.jsx(Y, { sx: eU, children: /* @__PURE__ */ f.jsx(fn, { as: "h2", textAlign: "center", children: "Empty folder" }) }), nU = { +}, fG = () => /* @__PURE__ */ f.jsx(z, { sx: dG, children: /* @__PURE__ */ f.jsx(gn, { as: "h2", textAlign: "center", children: "Empty folder" }) }), hG = { display: "flex", flexDirection: "column", height: "100%", @@ -7501,43 +7493,43 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( borderBottomWidth: "0px", borderStyle: "solid", boxSizing: "border-box" -}, iU = ({ +}, pG = ({ title: t = "Select a file", onClose: e = () => console.log("Close"), shortcutActions: n, handleDownloadFile: i, - mode: r = Mg.oneFile, + mode: r = l5.oneFile, rootDir: O = "/", - contentProps: a, - handleLoadMore: o = () => console.log("load more in quartz"), + contentProps: o, + handleLoadMore: a = () => console.log("load more in quartz"), handleSelectFile: s = () => console.log("handleSelectFile in quartz"), disableDownload: l = !1, validExtensions: c, data: u, ...d }) => { - const h = et(), [$, g] = Se(u), [m, Q] = Se(!1); - Ne(() => { + const h = Ot(), [$, g] = we(u), [m, Q] = we(!1); + tt(() => { if (Array.isArray(u)) { - const Z = u[u.length - 1]; - Array.isArray(Z) && Z.length === 0 ? (Q(!0), g(u.slice(0, -1))) : (Q(!1), g(u)); + const R = u[u.length - 1]; + Array.isArray(R) && R.length === 0 ? (Q(!0), g(u.slice(0, -1))) : (Q(!1), g(u)); } }, [u]); - const [S, b] = Se(), [y, v] = Se([]), [P, T] = Se(""), q = et(), W = () => { - q && q.current.scrollIntoView(); - }, k = (Z, R) => { - v(R ? (D) => [...D, Z] : (D) => [ - ...D.filter((A) => A !== Z.attributes.name) + const [S, w] = we(), [y, P] = we([]), [v, k] = we(""), Y = Ot(), G = () => { + Y && Y.current.scrollIntoView(); + }, C = (R, q) => { + P(q ? (U) => [...U, R] : (U) => [ + ...U.filter((D) => D !== R.attributes.name) ]); - }, V = (Z, R) => { - R || T(Z), T(Z); + }, W = (R, q) => { + q || k(R), k(R); }; - return Ne(() => { - W(); - }, [$]), /* @__PURE__ */ f.jsxs(Fd, { ...d, sx: nU, children: [ - /* @__PURE__ */ f.jsx(nW, { shortcutActions: n, title: t }), + return tt(() => { + G(); + }, [$]), /* @__PURE__ */ f.jsxs(af, { ...d, sx: hG, children: [ + /* @__PURE__ */ f.jsx($q, { shortcutActions: n, title: t }), /* @__PURE__ */ f.jsxs( - G, + j, { sx: { flex: 1, @@ -7551,43 +7543,43 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( height: "100%", minWidth: "965px", m: "20px", - ...a, + ...o, children: [ - $.map((Z, R) => /* @__PURE__ */ f.jsx( - sW, + $.map((R, q) => /* @__PURE__ */ f.jsx( + yq, { - items: Z, + items: R, validExtensions: c, - handleLoadMore: o, - setActiveFile: b, + handleLoadMore: a, + setActiveFile: w, mode: r, setColumns: g, - index: R, - isFileSelected: k, - selectPathListValue: V, + index: q, + isFileSelected: C, + selectPathListValue: W, fileListValue: y, setIsEmptyFolder: Q } )), - m && /* @__PURE__ */ f.jsx(tU, {}), + m && /* @__PURE__ */ f.jsx(fG, {}), S && /* @__PURE__ */ f.jsx( - KZ, + uG, { activeFile: S, disableDownload: l, handleDownloadFile: i } ), - /* @__PURE__ */ f.jsx(Y, { ref: q }) + /* @__PURE__ */ f.jsx(z, { ref: Y }) ] } ), /* @__PURE__ */ f.jsx( - eW, + hq, { onClose: e, fileListValue: y, - value: P, + value: v, activeFile: S, mode: r, handleSelectFile: s, @@ -7595,7 +7587,7 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( } ) ] }); -}, J0e = Vn(iU), rU = (t) => ({ +}, Z2e = Zn(pG), $G = (t) => ({ borderWidth: "1px", borderStyle: "solid", borderColor: "transparent", @@ -7618,46 +7610,46 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( } } } -}), OU = (t) => ({ +}), gG = (t) => ({ color: t ? "primaryShade1" : "primary" -}), aU = (t) => ({ +}), mG = (t) => ({ color: t ? "gray" : "black", display: "inline", wordBreak: "break-all" -}), oU = (t) => ({ +}), QG = (t) => ({ overflow: "hidden", color: t ? "gray" : "black", fontFamily: "label", fontWeight: "label", fontSize: "label", alignItems: "center" -}), K0e = ({ +}), G2e = ({ id: t, fileName: e, isLoading: n, located: i, percentage: r, disabled: O, - children: a, - removeHandler: o, + children: o, + removeHandler: a, ...s -}) => /* @__PURE__ */ nO(G, { ...s, sx: oU(n), key: t }, n && /* @__PURE__ */ f.jsxs(G, { sx: { alignItems: "center" }, children: [ - /* @__PURE__ */ f.jsx(fl, { marginRight: "10px" }), - /* @__PURE__ */ f.jsx(wn, { color: "primary", children: `${r ? Math.floor(r) : 0}%` }), - /* @__PURE__ */ f.jsx(wn, { color: "primary", marginX: "8px", children: "•" }) -] }), /* @__PURE__ */ f.jsxs(wn, { sx: { ...OU(n) }, children: [ +}) => /* @__PURE__ */ cO(j, { ...s, sx: QG(n), key: t }, n && /* @__PURE__ */ f.jsxs(j, { sx: { alignItems: "center" }, children: [ + /* @__PURE__ */ f.jsx(kl, { marginRight: "10px" }), + /* @__PURE__ */ f.jsx(xn, { color: "primary", children: `${r ? Math.floor(r) : 0}%` }), + /* @__PURE__ */ f.jsx(xn, { color: "primary", marginX: "8px", children: "•" }) +] }), /* @__PURE__ */ f.jsxs(xn, { sx: { ...gG(n) }, children: [ `${e} `, - /* @__PURE__ */ f.jsx(Y, { sx: { ...aU(n) }, children: `${n ? "uploading to" : "located in"} ${i} ` }) + /* @__PURE__ */ f.jsx(z, { sx: { ...mG(n) }, children: `${n ? "uploading to" : "located in"} ${i} ` }) ] }), !O && /* @__PURE__ */ f.jsx( - Y, + z, { - sx: { ...rU(n) }, + sx: { ...$G(n) }, onClick: () => { - o(t); + a(t); }, - children: /* @__PURE__ */ f.jsx(G, { children: /* @__PURE__ */ f.jsx(je, { size: "sm", icon: Ze.cross }) }) + children: /* @__PURE__ */ f.jsx(j, { children: /* @__PURE__ */ f.jsx(Ie, { size: "sm", icon: ze.cross }) }) } -)), Vl = { +)), Hl = { display: "flex", flexDirection: "column", position: "relative", @@ -7665,7 +7657,7 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( borderWidth: "1px", borderStyle: "solid", boxSizing: "border-box" -}, sU = (t, e) => ({ +}, SG = (t, e) => ({ display: "flex", flexDirection: "row", alignItems: "center", @@ -7693,27 +7685,27 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( "> div": { ml: "auto" } -}), lU = ({ +}), wG = ({ title: t, actions: e, withShadow: n = !1, withBorderBottom: i = !1, ...r -}) => /* @__PURE__ */ f.jsxs(Y, { ...r, sx: { ...sU(n, i), ...r.sx }, children: [ - t && /* @__PURE__ */ f.jsx(G, { alignItems: "center", as: "h4", children: t }), +}) => /* @__PURE__ */ f.jsxs(z, { ...r, sx: { ...SG(n, i), ...r.sx }, children: [ + t && /* @__PURE__ */ f.jsx(j, { alignItems: "center", as: "h4", children: t }), e && /* @__PURE__ */ f.jsx("div", { children: e }) -] }), cU = (t = !1) => { - const [e, n] = Se(t), i = re(() => { +] }), yG = (t = !1) => { + const [e, n] = we(t), i = oe(() => { n((r) => !r); }, [n]); return [e, i, n]; -}, y0 = { +}, ZQ = { display: "flex", alignItems: "center", justifyContent: "center", height: "32px", width: "32px" -}, Vs = ({ +}, As = ({ intent: t, // TODO remove this tooltip: e, @@ -7721,80 +7713,80 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( disabled: i = !1, tooltipProps: r, href: O, - onClickIcon: a, - target: o, + onClickIcon: o, + target: a, sx: s, ...l }) => { let c; - return e ? c = /* @__PURE__ */ f.jsx(Dt, { ...r, disabled: i, mainText: e, children: /* @__PURE__ */ f.jsx( - xn, + return e ? c = /* @__PURE__ */ f.jsx(At, { ...r, disabled: i, mainText: e, children: /* @__PURE__ */ f.jsx( + Pn, { - sx: { ...y0, ...s }, + sx: { ...ZQ, ...s }, variant: "secondary", disabled: i, ...l, - children: /* @__PURE__ */ f.jsx(je, { disabled: i, icon: n, size: "sm" }) + children: /* @__PURE__ */ f.jsx(Ie, { disabled: i, icon: n, size: "sm" }) } ) }) : c = /* @__PURE__ */ f.jsx( - xn, + Pn, { - sx: { ...y0, ...s }, + sx: { ...ZQ, ...s }, variant: "secondary", disabled: i, ...l, - children: /* @__PURE__ */ f.jsx(je, { disabled: i, icon: n, size: "sm" }) + children: /* @__PURE__ */ f.jsx(Ie, { disabled: i, icon: n, size: "sm" }) } ), O ? /* @__PURE__ */ f.jsx( - Md, + sf, { style: { textDecoration: "none" }, - onClick: a, + onClick: o, to: O, - target: o, - ...o === "_blank" ? { rel: "noopener noreferrer" } : {}, + target: a, + ...a === "_blank" ? { rel: "noopener noreferrer" } : {}, children: c } ) : c; -}, uU = ({ +}, bG = ({ title: t, actions: e, children: n, maxHeight: i, readOnly: r, contentProps: O, - withoutShadow: a = !1, - expandable: o = !1, + withoutShadow: o = !1, + expandable: a = !1, ...s }) => { var g, m; - const l = t || e, [c, u] = cU(), d = c ? "1000px" : i, h = et(), $ = ((g = h.current) == null ? void 0 : g.scrollHeight) && i && ((m = h.current) == null ? void 0 : m.scrollHeight) > +i.slice(0, i.indexOf("px")) - 64; + const l = t || e, [c, u] = yG(), d = c ? "1000px" : i, h = Ot(), $ = ((g = h.current) == null ? void 0 : g.scrollHeight) && i && ((m = h.current) == null ? void 0 : m.scrollHeight) > +i.slice(0, i.indexOf("px")) - 64; return /* @__PURE__ */ f.jsxs( - Fd, + af, { ...s, tx: "variants", variant: r ? "readOnly" : "card", maxHeight: d, - sx: Vl, + sx: Hl, children: [ l && /* @__PURE__ */ f.jsx( - lU, + wG, { title: t, actions: e, - withShadow: !a, + withShadow: !o, withBorderBottom: !0 } ), !!n && /* @__PURE__ */ f.jsx( - Y, + z, { sx: { boxShadow: $ && !c ? "cardInsetShadow" : "none", - transition: Vl == null ? void 0 : Vl.transition + transition: Hl == null ? void 0 : Hl.transition }, ref: h, width: "100%", @@ -7807,8 +7799,8 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( children: n } ), - o && /* @__PURE__ */ f.jsx( - Qu, + a && /* @__PURE__ */ f.jsx( + Yu, { sx: { position: "absolute", @@ -7818,9 +7810,9 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( justifyContent: "flex-end" }, children: /* @__PURE__ */ f.jsx( - Vs, + As, { - icon: c ? Ze.arrow_up : Ze.arrow_down, + icon: c ? ze.arrow_up : ze.arrow_down, onClick: u, sx: { cursor: "pointer", mb: "-31px" } } @@ -7830,7 +7822,7 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( ] } ); -}, eSe = Vn(uU), dU = { +}, z2e = Zn(bG), xG = { display: "flex", flexDirection: "row", alignItems: "center", @@ -7849,39 +7841,39 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( "> div": { ml: "auto" } -}, fU = { +}, PG = { display: "flex", flexDirection: "column", borderWidth: "1px", borderStyle: "solid", boxSizing: "border-box" -}, hU = ({ +}, vG = ({ title: t, children: e, maxHeight: n, contentProps: i, placeholder: r, readOnly: O, - ...a + ...o }) => { - const o = !!t, [s, l] = Se(), c = et(); - Ne(() => { + const a = !!t, [s, l] = we(), c = Ot(); + tt(() => { var d; l((d = c.current) == null ? void 0 : d.scrollHeight); }, []); const u = s && n && s > +n.slice(0, n.indexOf("px")) - 64; return /* @__PURE__ */ f.jsxs( - Fd, + af, { - ...a, + ...o, maxHeight: n, tx: "variants", variant: O ? "readOnly" : "card", - sx: { ...fU, ...a.sx }, + sx: { ...PG, ...o.sx }, children: [ - o && /* @__PURE__ */ f.jsx(Y, { sx: dU, children: t && /* @__PURE__ */ f.jsx(G, { fontSize: "18px", color: "gray", alignItems: "center", as: "h4", children: t }) }), + a && /* @__PURE__ */ f.jsx(z, { sx: xG, children: t && /* @__PURE__ */ f.jsx(j, { fontSize: "18px", color: "gray", alignItems: "center", as: "h4", children: t }) }), /* @__PURE__ */ f.jsx( - Y, + z, { sx: { boxShadow: u ? "cardInsetShadow" : "none" @@ -7899,8 +7891,8 @@ const fn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( ] } ); -}, tSe = Vn(hU); -let Be = class XP { +}, U2e = Zn(vG); +let nt = class ZP { /** Get the line description around the given position. */ @@ -7940,7 +7932,7 @@ let Be = class XP { r, 1 /* Open.From */ - ), Hi.from(r, this.length - (n - e) + i.length); + ), Bi.from(r, this.length - (n - e) + i.length); } /** Append another document to this one. @@ -7953,7 +7945,7 @@ let Be = class XP { */ slice(e, n = this.length) { let i = []; - return this.decompose(e, n, i, 0), Hi.from(i, n - e); + return this.decompose(e, n, i, 0), Bi.from(i, n - e); } /** Test whether this text is equal to another instance. @@ -7963,11 +7955,11 @@ let Be = class XP { return !0; if (e.length != this.length || e.lines != this.lines) return !1; - let n = this.scanIdentical(e, 1), i = this.length - this.scanIdentical(e, -1), r = new ps(this), O = new ps(e); - for (let a = n, o = n; ; ) { - if (r.next(a), O.next(a), a = 0, r.lineBreak != O.lineBreak || r.done != O.done || r.value != O.value) + let n = this.scanIdentical(e, 1), i = this.length - this.scanIdentical(e, -1), r = new bs(this), O = new bs(e); + for (let o = n, a = n; ; ) { + if (r.next(o), O.next(o), o = 0, r.lineBreak != O.lineBreak || r.done != O.done || r.value != O.value) return !1; - if (o += r.value.length, r.done || o >= i) + if (a += r.value.length, r.done || a >= i) return !0; } } @@ -7977,14 +7969,14 @@ let Be = class XP { them as separate strings. */ iter(e = 1) { - return new ps(this, e); + return new bs(this, e); } /** Iterate over a range of the text. When `from` > `to`, the iterator will run in reverse. */ iterRange(e, n = this.length) { - return new TP(this, e, n); + return new GP(this, e, n); } /** Return a cursor that iterates over the given range of lines, @@ -8002,7 +7994,7 @@ let Be = class XP { let r = this.line(e).from; i = this.iterRange(r, Math.max(r, n == this.lines + 1 ? this.length : n <= 1 ? 0 : this.line(n - 1).to)); } - return new kP(i); + return new zP(i); } /** Return the document as a string, using newline characters to @@ -8030,11 +8022,11 @@ let Be = class XP { static of(e) { if (e.length == 0) throw new RangeError("A document must have at least one line"); - return e.length == 1 && !e[0] ? XP.empty : e.length <= 32 ? new Tt(e) : Hi.from(Tt.split(e, [])); + return e.length == 1 && !e[0] ? ZP.empty : e.length <= 32 ? new Tt(e) : Bi.from(Tt.split(e, [])); } }; -class Tt extends Be { - constructor(e, n = pU(e)) { +class Tt extends nt { + constructor(e, n = XG(e)) { super(), this.text = e, this.length = n; } get lines() { @@ -8045,21 +8037,21 @@ class Tt extends Be { } lineInner(e, n, i, r) { for (let O = 0; ; O++) { - let a = this.text[O], o = r + a.length; - if ((n ? i : o) >= e) - return new $U(r, o, i, a); - r = o + 1, i++; + let o = this.text[O], a = r + o.length; + if ((n ? i : a) >= e) + return new kG(r, a, i, o); + r = a + 1, i++; } } decompose(e, n, i, r) { - let O = e <= 0 && n >= this.length ? this : new Tt(b0(this.text, e, n), Math.min(n, this.length) - Math.max(0, e)); + let O = e <= 0 && n >= this.length ? this : new Tt(GQ(this.text, e, n), Math.min(n, this.length) - Math.max(0, e)); if (r & 1) { - let a = i.pop(), o = Mc(O.text, a.text.slice(), 0, O.length); - if (o.length <= 32) - i.push(new Tt(o, a.length + O.length)); + let o = i.pop(), a = uu(O.text, o.text.slice(), 0, O.length); + if (a.length <= 32) + i.push(new Tt(a, o.length + O.length)); else { - let s = o.length >> 1; - i.push(new Tt(o.slice(0, s)), new Tt(o.slice(s))); + let s = a.length >> 1; + i.push(new Tt(a.slice(0, s)), new Tt(a.slice(s))); } } else i.push(O); @@ -8067,15 +8059,15 @@ class Tt extends Be { replace(e, n, i) { if (!(i instanceof Tt)) return super.replace(e, n, i); - let r = Mc(this.text, Mc(i.text, b0(this.text, 0, e)), n), O = this.length + i.length - (n - e); - return r.length <= 32 ? new Tt(r, O) : Hi.from(Tt.split(r, []), O); + let r = uu(this.text, uu(i.text, GQ(this.text, 0, e)), n), O = this.length + i.length - (n - e); + return r.length <= 32 ? new Tt(r, O) : Bi.from(Tt.split(r, []), O); } sliceString(e, n = this.length, i = ` `) { let r = ""; - for (let O = 0, a = 0; O <= n && a < this.text.length; a++) { - let o = this.text[a], s = O + o.length; - O > e && a && (r += i), e < s && n > O && (r += o.slice(Math.max(0, e - O), n - O)), O = s + 1; + for (let O = 0, o = 0; O <= n && o < this.text.length; o++) { + let a = this.text[o], s = O + a.length; + O > e && o && (r += i), e < s && n > O && (r += a.slice(Math.max(0, e - O), n - O)), O = s + 1; } return r; } @@ -8093,7 +8085,7 @@ class Tt extends Be { return r > -1 && n.push(new Tt(i, r)), n; } } -class Hi extends Be { +class Bi extends nt { constructor(e, n) { super(), this.children = e, this.length = n, this.lines = 0; for (let i of e) @@ -8101,44 +8093,44 @@ class Hi extends Be { } lineInner(e, n, i, r) { for (let O = 0; ; O++) { - let a = this.children[O], o = r + a.length, s = i + a.lines - 1; - if ((n ? s : o) >= e) - return a.lineInner(e, n, i, r); - r = o + 1, i = s + 1; + let o = this.children[O], a = r + o.length, s = i + o.lines - 1; + if ((n ? s : a) >= e) + return o.lineInner(e, n, i, r); + r = a + 1, i = s + 1; } } decompose(e, n, i, r) { - for (let O = 0, a = 0; a <= n && O < this.children.length; O++) { - let o = this.children[O], s = a + o.length; - if (e <= s && n >= a) { - let l = r & ((a <= e ? 1 : 0) | (s >= n ? 2 : 0)); - a >= e && s <= n && !l ? i.push(o) : o.decompose(e - a, n - a, i, l); + for (let O = 0, o = 0; o <= n && O < this.children.length; O++) { + let a = this.children[O], s = o + a.length; + if (e <= s && n >= o) { + let l = r & ((o <= e ? 1 : 0) | (s >= n ? 2 : 0)); + o >= e && s <= n && !l ? i.push(a) : a.decompose(e - o, n - o, i, l); } - a = s + 1; + o = s + 1; } } replace(e, n, i) { if (i.lines < this.lines) for (let r = 0, O = 0; r < this.children.length; r++) { - let a = this.children[r], o = O + a.length; - if (e >= O && n <= o) { - let s = a.replace(e - O, n - O, i), l = this.lines - a.lines + s.lines; + let o = this.children[r], a = O + o.length; + if (e >= O && n <= a) { + let s = o.replace(e - O, n - O, i), l = this.lines - o.lines + s.lines; if (s.lines < l >> 5 - 1 && s.lines > l >> 5 + 1) { let c = this.children.slice(); - return c[r] = s, new Hi(c, this.length - (n - e) + i.length); + return c[r] = s, new Bi(c, this.length - (n - e) + i.length); } - return super.replace(O, o, s); + return super.replace(O, a, s); } - O = o + 1; + O = a + 1; } return super.replace(e, n, i); } sliceString(e, n = this.length, i = ` `) { let r = ""; - for (let O = 0, a = 0; O < this.children.length && a <= n; O++) { - let o = this.children[O], s = a + o.length; - a > e && O && (r += i), e < s && n > a && (r += o.sliceString(e - a, n - a, i)), a = s + 1; + for (let O = 0, o = 0; O < this.children.length && o <= n; O++) { + let a = this.children[O], s = o + a.length; + o > e && O && (r += i), e < s && n > o && (r += a.sliceString(e - o, n - o, i)), o = s + 1; } return r; } @@ -8147,11 +8139,11 @@ class Hi extends Be { n.flatten(e); } scanIdentical(e, n) { - if (!(e instanceof Hi)) + if (!(e instanceof Bi)) return 0; - let i = 0, [r, O, a, o] = n > 0 ? [0, 0, this.children.length, e.children.length] : [this.children.length - 1, e.children.length - 1, -1, -1]; + let i = 0, [r, O, o, a] = n > 0 ? [0, 0, this.children.length, e.children.length] : [this.children.length - 1, e.children.length - 1, -1, -1]; for (; ; r += n, O += n) { - if (r == a || O == o) + if (r == o || O == a) return i; let s = this.children[r], l = e.children[O]; if (s != l) @@ -8173,48 +8165,48 @@ class Hi extends Be { 32, i >> 5 /* Tree.BranchShift */ - ), O = r << 1, a = r >> 1, o = [], s = 0, l = -1, c = []; + ), O = r << 1, o = r >> 1, a = [], s = 0, l = -1, c = []; function u(h) { let $; - if (h.lines > O && h instanceof Hi) + if (h.lines > O && h instanceof Bi) for (let g of h.children) u(g); else - h.lines > a && (s > a || !s) ? (d(), o.push(h)) : h instanceof Tt && s && ($ = c[c.length - 1]) instanceof Tt && h.lines + $.lines <= 32 ? (s += h.lines, l += h.length + 1, c[c.length - 1] = new Tt($.text.concat(h.text), $.length + 1 + h.length)) : (s + h.lines > r && d(), s += h.lines, l += h.length + 1, c.push(h)); + h.lines > o && (s > o || !s) ? (d(), a.push(h)) : h instanceof Tt && s && ($ = c[c.length - 1]) instanceof Tt && h.lines + $.lines <= 32 ? (s += h.lines, l += h.length + 1, c[c.length - 1] = new Tt($.text.concat(h.text), $.length + 1 + h.length)) : (s + h.lines > r && d(), s += h.lines, l += h.length + 1, c.push(h)); } function d() { - s != 0 && (o.push(c.length == 1 ? c[0] : Hi.from(c, l)), l = -1, s = c.length = 0); + s != 0 && (a.push(c.length == 1 ? c[0] : Bi.from(c, l)), l = -1, s = c.length = 0); } for (let h of e) u(h); - return d(), o.length == 1 ? o[0] : new Hi(o, n); + return d(), a.length == 1 ? a[0] : new Bi(a, n); } } -Be.empty = /* @__PURE__ */ new Tt([""], 0); -function pU(t) { +nt.empty = /* @__PURE__ */ new Tt([""], 0); +function XG(t) { let e = -1; for (let n of t) e += n.length + 1; return e; } -function Mc(t, e, n = 0, i = 1e9) { - for (let r = 0, O = 0, a = !0; O < t.length && r <= i; O++) { - let o = t[O], s = r + o.length; - s >= n && (s > i && (o = o.slice(0, i - r)), r < n && (o = o.slice(n - r)), a ? (e[e.length - 1] += o, a = !1) : e.push(o)), r = s + 1; +function uu(t, e, n = 0, i = 1e9) { + for (let r = 0, O = 0, o = !0; O < t.length && r <= i; O++) { + let a = t[O], s = r + a.length; + s >= n && (s > i && (a = a.slice(0, i - r)), r < n && (a = a.slice(n - r)), o ? (e[e.length - 1] += a, o = !1) : e.push(a)), r = s + 1; } return e; } -function b0(t, e, n) { - return Mc(t, [""], e, n); +function GQ(t, e, n) { + return uu(t, [""], e, n); } -class ps { +class bs { constructor(e, n = 1) { this.dir = n, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [n > 0 ? 1 : (e instanceof Tt ? e.text.length : e.children.length) << 1]; } nextInner(e, n) { for (this.done = this.lineBreak = !1; ; ) { - let i = this.nodes.length - 1, r = this.nodes[i], O = this.offsets[i], a = O >> 1, o = r instanceof Tt ? r.text.length : r.children.length; - if (a == (n > 0 ? o : 0)) { + let i = this.nodes.length - 1, r = this.nodes[i], O = this.offsets[i], o = O >> 1, a = r instanceof Tt ? r.text.length : r.children.length; + if (o == (n > 0 ? a : 0)) { if (i == 0) return this.done = !0, this.value = "", this; n > 0 && this.offsets[i - 1]++, this.nodes.pop(), this.offsets.pop(); @@ -8224,12 +8216,12 @@ class ps { `, this; e--; } else if (r instanceof Tt) { - let s = r.text[a + (n < 0 ? -1 : 0)]; + let s = r.text[o + (n < 0 ? -1 : 0)]; if (this.offsets[i] += n, s.length > Math.max(0, e)) return this.value = e == 0 ? s : n > 0 ? s.slice(e) : s.slice(0, s.length - e), this; e -= s.length; } else { - let s = r.children[a + (n < 0 ? -1 : 0)]; + let s = r.children[o + (n < 0 ? -1 : 0)]; e > s.length ? (e -= s.length, this.offsets[i] += n) : (n < 0 && this.offsets[i]--, this.nodes.push(s), this.offsets.push(n > 0 ? 1 : (s instanceof Tt ? s.text.length : s.children.length) << 1)); } } @@ -8238,9 +8230,9 @@ class ps { return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir); } } -class TP { +class GP { constructor(e, n, i) { - this.value = "", this.done = !1, this.cursor = new ps(e, n > i ? -1 : 1), this.pos = n > i ? e.length : 0, this.from = Math.min(n, i), this.to = Math.max(n, i); + this.value = "", this.done = !1, this.cursor = new bs(e, n > i ? -1 : 1), this.pos = n > i ? e.length : 0, this.from = Math.min(n, i), this.to = Math.max(n, i); } nextInner(e, n) { if (n < 0 ? this.pos <= this.from : this.pos >= this.to) @@ -8258,7 +8250,7 @@ class TP { return this.cursor.lineBreak && this.value != ""; } } -class kP { +class zP { constructor(e) { this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1; } @@ -8270,12 +8262,12 @@ class kP { return !1; } } -typeof Symbol < "u" && (Be.prototype[Symbol.iterator] = function() { +typeof Symbol < "u" && (nt.prototype[Symbol.iterator] = function() { return this.iter(); -}, ps.prototype[Symbol.iterator] = TP.prototype[Symbol.iterator] = kP.prototype[Symbol.iterator] = function() { +}, bs.prototype[Symbol.iterator] = GP.prototype[Symbol.iterator] = zP.prototype[Symbol.iterator] = function() { return this; }); -let $U = class { +let kG = class { /** @internal */ @@ -8288,35 +8280,35 @@ let $U = class { get length() { return this.to - this.from; } -}, qa = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1); -for (let t = 1; t < qa.length; t++) - qa[t] += qa[t - 1]; -function gU(t) { - for (let e = 1; e < qa.length; e += 2) - if (qa[e] > t) - return qa[e - 1] <= t; +}, Io = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1); +for (let t = 1; t < Io.length; t++) + Io[t] += Io[t - 1]; +function TG(t) { + for (let e = 1; e < Io.length; e += 2) + if (Io[e] > t) + return Io[e - 1] <= t; return !1; } -function w0(t) { +function zQ(t) { return t >= 127462 && t <= 127487; } -const x0 = 8205; -function dn(t, e, n = !0, i = !0) { - return (n ? CP : mU)(t, e, i); +const UQ = 8205; +function hn(t, e, n = !0, i = !0) { + return (n ? UP : CG)(t, e, i); } -function CP(t, e, n) { +function UP(t, e, n) { if (e == t.length) return e; - e && _P(t.charCodeAt(e)) && RP(t.charCodeAt(e - 1)) && e--; + e && VP(t.charCodeAt(e)) && jP(t.charCodeAt(e - 1)) && e--; let i = en(t, e); - for (e += si(i); e < t.length; ) { + for (e += li(i); e < t.length; ) { let r = en(t, e); - if (i == x0 || r == x0 || n && gU(r)) - e += si(r), i = r; - else if (w0(r)) { - let O = 0, a = e - 2; - for (; a >= 0 && w0(en(t, a)); ) - O++, a -= 2; + if (i == UQ || r == UQ || n && TG(r)) + e += li(r), i = r; + else if (zQ(r)) { + let O = 0, o = e - 2; + for (; o >= 0 && zQ(en(t, o)); ) + O++, o -= 2; if (O % 2 == 0) break; e += 2; @@ -8325,39 +8317,39 @@ function CP(t, e, n) { } return e; } -function mU(t, e, n) { +function CG(t, e, n) { for (; e > 0; ) { - let i = CP(t, e - 2, n); + let i = UP(t, e - 2, n); if (i < e) return i; e--; } return 0; } -function _P(t) { +function VP(t) { return t >= 56320 && t < 57344; } -function RP(t) { +function jP(t) { return t >= 55296 && t < 56320; } function en(t, e) { let n = t.charCodeAt(e); - if (!RP(n) || e + 1 == t.length) + if (!jP(n) || e + 1 == t.length) return n; let i = t.charCodeAt(e + 1); - return _P(i) ? (n - 55296 << 10) + (i - 56320) + 65536 : n; + return VP(i) ? (n - 55296 << 10) + (i - 56320) + 65536 : n; } -function im(t) { +function g5(t) { return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320)); } -function si(t) { +function li(t) { return t < 65536 ? 1 : 2; } -const Qp = /\r\n?|\n/; +const Gp = /\r\n?|\n/; var nn = /* @__PURE__ */ function(t) { return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t; }(nn || (nn = {})); -class rr { +class or { // Sections are encoded as pairs of integers. The first is the // length in the current document, and the second is -1 for // unaffected sections, and the length of the replacement content @@ -8402,8 +8394,8 @@ class rr { */ iterGaps(e) { for (let n = 0, i = 0, r = 0; n < this.sections.length; ) { - let O = this.sections[n++], a = this.sections[n++]; - a < 0 ? (e(i, r, O), r += O) : r += a, i += O; + let O = this.sections[n++], o = this.sections[n++]; + o < 0 ? (e(i, r, O), r += O) : r += o, i += O; } } /** @@ -8419,7 +8411,7 @@ class rr { reported separately. */ iterChangedRanges(e, n = !1) { - Sp(this, e, n); + zp(this, e, n); } /** Get a description of the inverted form of these changes. @@ -8430,7 +8422,7 @@ class rr { let i = this.sections[n++], r = this.sections[n++]; r < 0 ? e.push(i, r) : e.push(r, i); } - return new rr(e); + return new or(e); } /** Compute the combined effect of applying another set of changes @@ -8438,7 +8430,7 @@ class rr { match the length before `other`. */ composeDesc(e) { - return this.empty ? e : e.empty ? this : qP(this, e); + return this.empty ? e : e.empty ? this : EP(this, e); } /** Map this description, which should start with the same document @@ -8447,20 +8439,20 @@ class rr { in `other` happened before the ones in `this`. */ mapDesc(e, n = !1) { - return e.empty ? this : yp(this, e, n); + return e.empty ? this : Up(this, e, n); } mapPos(e, n = -1, i = nn.Simple) { let r = 0, O = 0; - for (let a = 0; a < this.sections.length; ) { - let o = this.sections[a++], s = this.sections[a++], l = r + o; + for (let o = 0; o < this.sections.length; ) { + let a = this.sections[o++], s = this.sections[o++], l = r + a; if (s < 0) { if (l > e) return O + (e - r); - O += o; + O += a; } else { if (i != nn.Simple && l >= e && (i == nn.TrackDel && r < e && l > e || i == nn.TrackBefore && r < e || i == nn.TrackAfter && l > e)) return null; - if (l > e || l == e && n < 0 && !o) + if (l > e || l == e && n < 0 && !a) return e == r || n < 0 ? O : O + s; O += s; } @@ -8477,10 +8469,10 @@ class rr { */ touchesRange(e, n = e) { for (let i = 0, r = 0; i < this.sections.length && r <= n; ) { - let O = this.sections[i++], a = this.sections[i++], o = r + O; - if (a >= 0 && r <= n && o >= e) - return r < e && o > n ? "cover" : !0; - r = o; + let O = this.sections[i++], o = this.sections[i++], a = r + O; + if (o >= 0 && r <= n && a >= e) + return r < e && a > n ? "cover" : !0; + r = a; } return !1; } @@ -8508,16 +8500,16 @@ class rr { static fromJSON(e) { if (!Array.isArray(e) || e.length % 2 || e.some((n) => typeof n != "number")) throw new RangeError("Invalid JSON representation of ChangeDesc"); - return new rr(e); + return new or(e); } /** @internal */ static create(e) { - return new rr(e); + return new or(e); } } -class Gt extends rr { +class Vt extends or { constructor(e, n) { super(e), this.inserted = n; } @@ -8528,10 +8520,10 @@ class Gt extends rr { apply(e) { if (this.length != e.length) throw new RangeError("Applying change set to a document with the wrong length"); - return Sp(this, (n, i, r, O, a) => e = e.replace(r, r + (i - n), a), !1), e; + return zp(this, (n, i, r, O, o) => e = e.replace(r, r + (i - n), o), !1), e; } mapDesc(e, n = !1) { - return yp(this, e, n, !0); + return Up(this, e, n, !0); } /** Given the document as it existed _before_ the changes, return a @@ -8542,17 +8534,17 @@ class Gt extends rr { invert(e) { let n = this.sections.slice(), i = []; for (let r = 0, O = 0; r < n.length; r += 2) { - let a = n[r], o = n[r + 1]; - if (o >= 0) { - n[r] = o, n[r + 1] = a; + let o = n[r], a = n[r + 1]; + if (a >= 0) { + n[r] = a, n[r + 1] = o; let s = r >> 1; for (; i.length < s; ) - i.push(Be.empty); - i.push(a ? e.slice(O, O + a) : Be.empty); + i.push(nt.empty); + i.push(o ? e.slice(O, O + o) : nt.empty); } - O += a; + O += o; } - return new Gt(n, i); + return new Vt(n, i); } /** Combine two subsequent change sets into a single set. `other` @@ -8561,7 +8553,7 @@ class Gt extends rr { returned value will represent the change `docA` → `docC`. */ compose(e) { - return this.empty ? e : e.empty ? this : qP(this, e, !0); + return this.empty ? e : e.empty ? this : EP(this, e, !0); } /** Given another change set starting in the same document, maps this @@ -8577,7 +8569,7 @@ class Gt extends rr { and can be used for collaborative editing. */ map(e, n = !1) { - return e.empty ? this : yp(this, e, n, !0); + return e.empty ? this : Up(this, e, n, !0); } /** Iterate over the changed ranges in the document, calling `f` for @@ -8589,42 +8581,42 @@ class Gt extends rr { separately. */ iterChanges(e, n = !1) { - Sp(this, e, n); + zp(this, e, n); } /** Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change set. */ get desc() { - return rr.create(this.sections); + return or.create(this.sections); } /** @internal */ filter(e) { - let n = [], i = [], r = [], O = new Zs(this); + let n = [], i = [], r = [], O = new Fs(this); e: - for (let a = 0, o = 0; ; ) { - let s = a == e.length ? 1e9 : e[a++]; - for (; o < s || o == s && O.len == 0; ) { + for (let o = 0, a = 0; ; ) { + let s = o == e.length ? 1e9 : e[o++]; + for (; a < s || a == s && O.len == 0; ) { if (O.done) break e; - let c = Math.min(O.len, s - o); + let c = Math.min(O.len, s - a); ln(r, c, -1); let u = O.ins == -1 ? -1 : O.off == 0 ? O.ins : 0; - ln(n, c, u), u > 0 && Fr(i, n, O.text), O.forward(c), o += c; + ln(n, c, u), u > 0 && nO(i, n, O.text), O.forward(c), a += c; } - let l = e[a++]; - for (; o < l; ) { + let l = e[o++]; + for (; a < l; ) { if (O.done) break e; - let c = Math.min(O.len, l - o); - ln(n, c, -1), ln(r, c, O.ins == -1 ? -1 : O.off == 0 ? O.ins : 0), O.forward(c), o += c; + let c = Math.min(O.len, l - a); + ln(n, c, -1), ln(r, c, O.ins == -1 ? -1 : O.off == 0 ? O.ins : 0), O.forward(c), a += c; } } return { - changes: new Gt(n, i), - filtered: rr.create(r) + changes: new Vt(n, i), + filtered: or.create(r) }; } /** @@ -8643,39 +8635,39 @@ class Gt extends rr { given length, using `lineSep` as line separator. */ static of(e, n, i) { - let r = [], O = [], a = 0, o = null; + let r = [], O = [], o = 0, a = null; function s(c = !1) { if (!c && !r.length) return; - a < n && ln(r, n - a, -1); - let u = new Gt(r, O); - o = o ? o.compose(u.map(o)) : u, r = [], O = [], a = 0; + o < n && ln(r, n - o, -1); + let u = new Vt(r, O); + a = a ? a.compose(u.map(a)) : u, r = [], O = [], o = 0; } function l(c) { if (Array.isArray(c)) for (let u of c) l(u); - else if (c instanceof Gt) { + else if (c instanceof Vt) { if (c.length != n) throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`); - s(), o = o ? o.compose(c.map(o)) : c; + s(), a = a ? a.compose(c.map(a)) : c; } else { let { from: u, to: d = u, insert: h } = c; if (u > d || u < 0 || d > n) throw new RangeError(`Invalid change range ${u} to ${d} (in doc of length ${n})`); - let $ = h ? typeof h == "string" ? Be.of(h.split(i || Qp)) : h : Be.empty, g = $.length; + let $ = h ? typeof h == "string" ? nt.of(h.split(i || Gp)) : h : nt.empty, g = $.length; if (u == d && g == 0) return; - u < a && s(), u > a && ln(r, u - a, -1), ln(r, d - u, g), Fr(O, r, $), a = d; + u < o && s(), u > o && ln(r, u - o, -1), ln(r, d - u, g), nO(O, r, $), o = d; } } - return l(e), s(!o), o; + return l(e), s(!a), a; } /** Create an empty changeset of the given length. */ static empty(e) { - return new Gt(e ? [e, -1] : [], []); + return new Vt(e ? [e, -1] : [], []); } /** Create a changeset from its JSON representation (as produced by @@ -8690,24 +8682,24 @@ class Gt extends rr { if (typeof O == "number") n.push(O, -1); else { - if (!Array.isArray(O) || typeof O[0] != "number" || O.some((a, o) => o && typeof a != "string")) + if (!Array.isArray(O) || typeof O[0] != "number" || O.some((o, a) => a && typeof o != "string")) throw new RangeError("Invalid JSON representation of ChangeSet"); if (O.length == 1) n.push(O[0], 0); else { for (; i.length < r; ) - i.push(Be.empty); - i[r] = Be.of(O.slice(1)), n.push(O[0], i[r].length); + i.push(nt.empty); + i[r] = nt.of(O.slice(1)), n.push(O[0], i[r].length); } } } - return new Gt(n, i); + return new Vt(n, i); } /** @internal */ static createSet(e, n) { - return new Gt(e, n); + return new Vt(e, n); } } function ln(t, e, n, i = !1) { @@ -8716,7 +8708,7 @@ function ln(t, e, n, i = !1) { let r = t.length - 2; r >= 0 && n <= 0 && n == t[r + 1] ? t[r] += e : e == 0 && t[r] == 0 ? t[r + 1] += n : i ? (t[r] += e, t[r + 1] += n) : t.push(e, n); } -function Fr(t, e, n) { +function nO(t, e, n) { if (n.length == 0) return; let i = e.length - 2 >> 1; @@ -8724,79 +8716,79 @@ function Fr(t, e, n) { t[t.length - 1] = t[t.length - 1].append(n); else { for (; t.length < i; ) - t.push(Be.empty); + t.push(nt.empty); t.push(n); } } -function Sp(t, e, n) { +function zp(t, e, n) { let i = t.inserted; - for (let r = 0, O = 0, a = 0; a < t.sections.length; ) { - let o = t.sections[a++], s = t.sections[a++]; + for (let r = 0, O = 0, o = 0; o < t.sections.length; ) { + let a = t.sections[o++], s = t.sections[o++]; if (s < 0) - r += o, O += o; + r += a, O += a; else { - let l = r, c = O, u = Be.empty; - for (; l += o, c += s, s && i && (u = u.append(i[a - 2 >> 1])), !(n || a == t.sections.length || t.sections[a + 1] < 0); ) - o = t.sections[a++], s = t.sections[a++]; + let l = r, c = O, u = nt.empty; + for (; l += a, c += s, s && i && (u = u.append(i[o - 2 >> 1])), !(n || o == t.sections.length || t.sections[o + 1] < 0); ) + a = t.sections[o++], s = t.sections[o++]; e(r, l, O, c, u), r = l, O = c; } } } -function yp(t, e, n, i = !1) { - let r = [], O = i ? [] : null, a = new Zs(t), o = new Zs(e); +function Up(t, e, n, i = !1) { + let r = [], O = i ? [] : null, o = new Fs(t), a = new Fs(e); for (let s = -1; ; ) - if (a.ins == -1 && o.ins == -1) { - let l = Math.min(a.len, o.len); - ln(r, l, -1), a.forward(l), o.forward(l); - } else if (o.ins >= 0 && (a.ins < 0 || s == a.i || a.off == 0 && (o.len < a.len || o.len == a.len && !n))) { - let l = o.len; - for (ln(r, o.ins, -1); l; ) { - let c = Math.min(a.len, l); - a.ins >= 0 && s < a.i && a.len <= c && (ln(r, 0, a.ins), O && Fr(O, r, a.text), s = a.i), a.forward(c), l -= c; - } - o.next(); - } else if (a.ins >= 0) { - let l = 0, c = a.len; + if (o.ins == -1 && a.ins == -1) { + let l = Math.min(o.len, a.len); + ln(r, l, -1), o.forward(l), a.forward(l); + } else if (a.ins >= 0 && (o.ins < 0 || s == o.i || o.off == 0 && (a.len < o.len || a.len == o.len && !n))) { + let l = a.len; + for (ln(r, a.ins, -1); l; ) { + let c = Math.min(o.len, l); + o.ins >= 0 && s < o.i && o.len <= c && (ln(r, 0, o.ins), O && nO(O, r, o.text), s = o.i), o.forward(c), l -= c; + } + a.next(); + } else if (o.ins >= 0) { + let l = 0, c = o.len; for (; c; ) - if (o.ins == -1) { - let u = Math.min(c, o.len); - l += u, c -= u, o.forward(u); - } else if (o.ins == 0 && o.len < c) - c -= o.len, o.next(); + if (a.ins == -1) { + let u = Math.min(c, a.len); + l += u, c -= u, a.forward(u); + } else if (a.ins == 0 && a.len < c) + c -= a.len, a.next(); else break; - ln(r, l, s < a.i ? a.ins : 0), O && s < a.i && Fr(O, r, a.text), s = a.i, a.forward(a.len - c); + ln(r, l, s < o.i ? o.ins : 0), O && s < o.i && nO(O, r, o.text), s = o.i, o.forward(o.len - c); } else { - if (a.done && o.done) - return O ? Gt.createSet(r, O) : rr.create(r); + if (o.done && a.done) + return O ? Vt.createSet(r, O) : or.create(r); throw new Error("Mismatched change set lengths"); } } -function qP(t, e, n = !1) { - let i = [], r = n ? [] : null, O = new Zs(t), a = new Zs(e); - for (let o = !1; ; ) { - if (O.done && a.done) - return r ? Gt.createSet(i, r) : rr.create(i); +function EP(t, e, n = !1) { + let i = [], r = n ? [] : null, O = new Fs(t), o = new Fs(e); + for (let a = !1; ; ) { + if (O.done && o.done) + return r ? Vt.createSet(i, r) : or.create(i); if (O.ins == 0) - ln(i, O.len, 0, o), O.next(); - else if (a.len == 0 && !a.done) - ln(i, 0, a.ins, o), r && Fr(r, i, a.text), a.next(); + ln(i, O.len, 0, a), O.next(); + else if (o.len == 0 && !o.done) + ln(i, 0, o.ins, a), r && nO(r, i, o.text), o.next(); else { - if (O.done || a.done) + if (O.done || o.done) throw new Error("Mismatched change set lengths"); { - let s = Math.min(O.len2, a.len), l = i.length; + let s = Math.min(O.len2, o.len), l = i.length; if (O.ins == -1) { - let c = a.ins == -1 ? -1 : a.off ? 0 : a.ins; - ln(i, s, c, o), r && c && Fr(r, i, a.text); + let c = o.ins == -1 ? -1 : o.off ? 0 : o.ins; + ln(i, s, c, a), r && c && nO(r, i, o.text); } else - a.ins == -1 ? (ln(i, O.off ? 0 : O.len, s, o), r && Fr(r, i, O.textBit(s))) : (ln(i, O.off ? 0 : O.len, a.off ? 0 : a.ins, o), r && !a.off && Fr(r, i, a.text)); - o = (O.ins > s || a.ins >= 0 && a.len > s) && (o || i.length > l), O.forward2(s), a.forward(s); + o.ins == -1 ? (ln(i, O.off ? 0 : O.len, s, a), r && nO(r, i, O.textBit(s))) : (ln(i, O.off ? 0 : O.len, o.off ? 0 : o.ins, a), r && !o.off && nO(r, i, o.text)); + a = (O.ins > s || o.ins >= 0 && o.len > s) && (a || i.length > l), O.forward2(s), o.forward(s); } } } } -class Zs { +class Fs { constructor(e) { this.set = e, this.i = 0, this.next(); } @@ -8812,11 +8804,11 @@ class Zs { } get text() { let { inserted: e } = this.set, n = this.i - 2 >> 1; - return n >= e.length ? Be.empty : e[n]; + return n >= e.length ? nt.empty : e[n]; } textBit(e) { let { inserted: n } = this.set, i = this.i - 2 >> 1; - return i >= n.length && !e ? Be.empty : n[i].slice(this.off, e == null ? void 0 : this.off + e); + return i >= n.length && !e ? nt.empty : n[i].slice(this.off, e == null ? void 0 : this.off + e); } forward(e) { e == this.len ? this.next() : (this.len -= e, this.off += e); @@ -8825,7 +8817,7 @@ class Zs { this.ins == -1 ? this.forward(e) : e == this.ins ? this.next() : (this.ins -= e, this.off += e); } } -class UO { +class NO { constructor(e, n, i) { this.from = e, this.to = n, this.flags = i; } @@ -8882,16 +8874,16 @@ class UO { */ map(e, n = -1) { let i, r; - return this.empty ? i = r = e.mapPos(this.from, n) : (i = e.mapPos(this.from, 1), r = e.mapPos(this.to, -1)), i == this.from && r == this.to ? this : new UO(i, r, this.flags); + return this.empty ? i = r = e.mapPos(this.from, n) : (i = e.mapPos(this.from, 1), r = e.mapPos(this.to, -1)), i == this.from && r == this.to ? this : new NO(i, r, this.flags); } /** Extend this range to cover at least `from` to `to`. */ extend(e, n = e) { if (e <= this.anchor && n >= this.anchor) - return U.range(e, n); + return Z.range(e, n); let i = Math.abs(e - this.anchor) > Math.abs(n - this.anchor) ? e : n; - return U.range(this.anchor, i); + return Z.range(this.anchor, i); } /** Compare this range to another range. @@ -8912,16 +8904,16 @@ class UO { static fromJSON(e) { if (!e || typeof e.anchor != "number" || typeof e.head != "number") throw new RangeError("Invalid JSON representation for SelectionRange"); - return U.range(e.anchor, e.head); + return Z.range(e.anchor, e.head); } /** @internal */ static create(e, n, i) { - return new UO(e, n, i); + return new NO(e, n, i); } } -class U { +class Z { constructor(e, n) { this.ranges = e, this.mainIndex = n; } @@ -8930,7 +8922,7 @@ class U { position for changes. */ map(e, n = -1) { - return e.empty ? this : U.create(this.ranges.map((i) => i.map(e, n)), this.mainIndex); + return e.empty ? this : Z.create(this.ranges.map((i) => i.map(e, n)), this.mainIndex); } /** Compare this selection to another selection. @@ -8956,13 +8948,13 @@ class U { holding only the main range from this selection. */ asSingle() { - return this.ranges.length == 1 ? this : new U([this.main], 0); + return this.ranges.length == 1 ? this : new Z([this.main], 0); } /** Extend this selection with an extra range. */ addRange(e, n = !0) { - return U.create([e].concat(this.ranges), n ? 0 : this.mainIndex + 1); + return Z.create([e].concat(this.ranges), n ? 0 : this.mainIndex + 1); } /** Replace a given range with another range, and then normalize the @@ -8970,7 +8962,7 @@ class U { */ replaceRange(e, n = this.mainIndex) { let i = this.ranges.slice(); - return i[n] = e, U.create(i, this.mainIndex); + return i[n] = e, Z.create(i, this.mainIndex); } /** Convert this selection to an object that can be serialized to @@ -8985,13 +8977,13 @@ class U { static fromJSON(e) { if (!e || !Array.isArray(e.ranges) || typeof e.main != "number" || e.main >= e.ranges.length) throw new RangeError("Invalid JSON representation for EditorSelection"); - return new U(e.ranges.map((n) => UO.fromJSON(n)), e.main); + return new Z(e.ranges.map((n) => NO.fromJSON(n)), e.main); } /** Create a selection holding a single range. */ static single(e, n = e) { - return new U([U.range(e, n)], 0); + return new Z([Z.range(e, n)], 0); } /** Sort and merge the given set of ranges, creating a valid @@ -9003,24 +8995,24 @@ class U { for (let i = 0, r = 0; r < e.length; r++) { let O = e[r]; if (O.empty ? O.from <= i : O.from < i) - return U.normalized(e.slice(), n); + return Z.normalized(e.slice(), n); i = O.to; } - return new U(e, n); + return new Z(e, n); } /** Create a cursor selection range at the given position. You can safely ignore the optional arguments in most situations. */ static cursor(e, n = 0, i, r) { - return UO.create(e, e, (n == 0 ? 0 : n < 0 ? 4 : 8) | (i == null ? 3 : Math.min(2, i)) | (r ?? 33554431) << 5); + return NO.create(e, e, (n == 0 ? 0 : n < 0 ? 4 : 8) | (i == null ? 3 : Math.min(2, i)) | (r ?? 33554431) << 5); } /** Create a selection range. */ static range(e, n, i, r) { let O = (i ?? 33554431) << 5 | (r == null ? 3 : Math.min(2, r)); - return n < e ? UO.create(n, e, 24 | O) : UO.create(e, n, (n > e ? 4 : 0) | O); + return n < e ? NO.create(n, e, 24 | O) : NO.create(e, n, (n > e ? 4 : 0) | O); } /** @internal @@ -9029,36 +9021,36 @@ class U { let i = e[n]; e.sort((r, O) => r.from - O.from), n = e.indexOf(i); for (let r = 1; r < e.length; r++) { - let O = e[r], a = e[r - 1]; - if (O.empty ? O.from <= a.to : O.from < a.to) { - let o = a.from, s = Math.max(O.to, a.to); - r <= n && n--, e.splice(--r, 2, O.anchor > O.head ? U.range(s, o) : U.range(o, s)); + let O = e[r], o = e[r - 1]; + if (O.empty ? O.from <= o.to : O.from < o.to) { + let a = o.from, s = Math.max(O.to, o.to); + r <= n && n--, e.splice(--r, 2, O.anchor > O.head ? Z.range(s, a) : Z.range(a, s)); } } - return new U(e, n); + return new Z(e, n); } } -function WP(t, e) { +function DP(t, e) { for (let n of t.ranges) if (n.to > e) throw new RangeError("Selection points outside of document"); } -let rm = 0; -class ie { +let m5 = 0; +class re { constructor(e, n, i, r, O) { - this.combine = e, this.compareInput = n, this.compare = i, this.isStatic = r, this.id = rm++, this.default = e([]), this.extensions = typeof O == "function" ? O(this) : O; + this.combine = e, this.compareInput = n, this.compare = i, this.isStatic = r, this.id = m5++, this.default = e([]), this.extensions = typeof O == "function" ? O(this) : O; } /** Define a new facet. */ static define(e = {}) { - return new ie(e.combine || ((n) => n), e.compareInput || ((n, i) => n === i), e.compare || (e.combine ? (n, i) => n === i : Om), !!e.static, e.enables); + return new re(e.combine || ((n) => n), e.compareInput || ((n, i) => n === i), e.compare || (e.combine ? (n, i) => n === i : Q5), !!e.static, e.enables); } /** Returns an extension that adds the given value to this facet. */ of(e) { - return new Nc([], this, 0, e); + return new du([], this, 0, e); } /** Create an extension that computes a value for the facet from a @@ -9072,7 +9064,7 @@ class ie { compute(e, n) { if (this.isStatic) throw new Error("Can't compute a static facet"); - return new Nc(e, this, 1, n); + return new du(e, this, 1, n); } /** Create an extension that computes zero or more values for this @@ -9081,50 +9073,50 @@ class ie { computeN(e, n) { if (this.isStatic) throw new Error("Can't compute a static facet"); - return new Nc(e, this, 2, n); + return new du(e, this, 2, n); } from(e, n) { return n || (n = (i) => i), this.compute([e], (i) => n(i.field(e))); } } -function Om(t, e) { +function Q5(t, e) { return t == e || t.length == e.length && t.every((n, i) => n === e[i]); } -class Nc { +class du { constructor(e, n, i, r) { - this.dependencies = e, this.facet = n, this.type = i, this.value = r, this.id = rm++; + this.dependencies = e, this.facet = n, this.type = i, this.value = r, this.id = m5++; } dynamicSlot(e) { var n; - let i = this.value, r = this.facet.compareInput, O = this.id, a = e[O] >> 1, o = this.type == 2, s = !1, l = !1, c = []; + let i = this.value, r = this.facet.compareInput, O = this.id, o = e[O] >> 1, a = this.type == 2, s = !1, l = !1, c = []; for (let u of this.dependencies) u == "doc" ? s = !0 : u == "selection" ? l = !0 : ((n = e[u.id]) !== null && n !== void 0 ? n : 1) & 1 || c.push(e[u.id]); return { create(u) { - return u.values[a] = i(u), 1; + return u.values[o] = i(u), 1; }, update(u, d) { - if (s && d.docChanged || l && (d.docChanged || d.selection) || bp(u, c)) { + if (s && d.docChanged || l && (d.docChanged || d.selection) || Vp(u, c)) { let h = i(u); - if (o ? !P0(h, u.values[a], r) : !r(h, u.values[a])) - return u.values[a] = h, 1; + if (a ? !VQ(h, u.values[o], r) : !r(h, u.values[o])) + return u.values[o] = h, 1; } return 0; }, reconfigure: (u, d) => { let h, $ = d.config.address[O]; if ($ != null) { - let g = Yu(d, $); - if (this.dependencies.every((m) => m instanceof ie ? d.facet(m) === u.facet(m) : m instanceof Lt ? d.field(m, !1) == u.field(m, !1) : !0) || (o ? P0(h = i(u), g, r) : r(h = i(u), g))) - return u.values[a] = g, 0; + let g = Ku(d, $); + if (this.dependencies.every((m) => m instanceof re ? d.facet(m) === u.facet(m) : m instanceof Ft ? d.field(m, !1) == u.field(m, !1) : !0) || (a ? VQ(h = i(u), g, r) : r(h = i(u), g))) + return u.values[o] = g, 0; } else h = i(u); - return u.values[a] = h, 1; + return u.values[o] = h, 1; } }; } } -function P0(t, e, n) { +function VQ(t, e, n) { if (t.length != e.length) return !1; for (let i = 0; i < t.length; i++) @@ -9132,18 +9124,18 @@ function P0(t, e, n) { return !1; return !0; } -function bp(t, e) { +function Vp(t, e) { let n = !1; for (let i of e) - $s(t, i) & 1 && (n = !0); + xs(t, i) & 1 && (n = !0); return n; } -function QU(t, e, n) { - let i = n.map((s) => t[s.id]), r = n.map((s) => s.type), O = i.filter((s) => !(s & 1)), a = t[e.id] >> 1; - function o(s) { +function RG(t, e, n) { + let i = n.map((s) => t[s.id]), r = n.map((s) => s.type), O = i.filter((s) => !(s & 1)), o = t[e.id] >> 1; + function a(s) { let l = []; for (let c = 0; c < i.length; c++) { - let u = Yu(s, i[c]); + let u = Ku(s, i[c]); if (r[c] == 2) for (let d of u) l.push(d); @@ -9155,26 +9147,26 @@ function QU(t, e, n) { return { create(s) { for (let l of i) - $s(s, l); - return s.values[a] = o(s), 1; + xs(s, l); + return s.values[o] = a(s), 1; }, update(s, l) { - if (!bp(s, O)) + if (!Vp(s, O)) return 0; - let c = o(s); - return e.compare(c, s.values[a]) ? 0 : (s.values[a] = c, 1); + let c = a(s); + return e.compare(c, s.values[o]) ? 0 : (s.values[o] = c, 1); }, reconfigure(s, l) { - let c = bp(s, i), u = l.config.facets[e.id], d = l.facet(e); - if (u && !c && Om(n, u)) - return s.values[a] = d, 0; - let h = o(s); - return e.compare(h, d) ? (s.values[a] = d, 0) : (s.values[a] = h, 1); + let c = Vp(s, i), u = l.config.facets[e.id], d = l.facet(e); + if (u && !c && Q5(n, u)) + return s.values[o] = d, 0; + let h = a(s); + return e.compare(h, d) ? (s.values[o] = d, 0) : (s.values[o] = h, 1); } }; } -const v0 = /* @__PURE__ */ ie.define({ static: !0 }); -class Lt { +const jQ = /* @__PURE__ */ re.define({ static: !0 }); +class Ft { constructor(e, n, i, r, O) { this.id = e, this.createF = n, this.updateF = i, this.compareF = r, this.spec = O, this.provides = void 0; } @@ -9182,11 +9174,11 @@ class Lt { Define a state field. */ static define(e) { - let n = new Lt(rm++, e.create, e.update, e.compare || ((i, r) => i === r), e); + let n = new Ft(m5++, e.create, e.update, e.compare || ((i, r) => i === r), e); return e.provide && (n.provides = e.provide(n)), n; } create(e) { - let n = e.facet(v0).find((i) => i.field == this); + let n = e.facet(jQ).find((i) => i.field == this); return ((n == null ? void 0 : n.create) || this.createF)(e); } /** @@ -9197,8 +9189,8 @@ class Lt { return { create: (i) => (i.values[n] = this.create(i), 1), update: (i, r) => { - let O = i.values[n], a = this.updateF(O, r); - return this.compareF(O, a) ? 0 : (i.values[n] = a, 1); + let O = i.values[n], o = this.updateF(O, r); + return this.compareF(O, o) ? 0 : (i.values[n] = o, 1); }, reconfigure: (i, r) => r.config.address[this.id] != null ? (i.values[n] = r.field(this), 0) : (i.values[n] = this.create(i), 1) }; @@ -9209,7 +9201,7 @@ class Lt { non-default starting value for the field. */ init(e) { - return [this, v0.of({ field: this, create: e })]; + return [this, jQ.of({ field: this, create: e })]; } /** State field instances can be used as @@ -9220,55 +9212,55 @@ class Lt { return this; } } -const WO = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; -function Co(t) { - return (e) => new VP(e, t); +const AO = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; +function Ua(t) { + return (e) => new IP(e, t); } -const gO = { +const kO = { /** The highest precedence level, for extensions that should end up near the start of the precedence ordering. */ - highest: /* @__PURE__ */ Co(WO.highest), + highest: /* @__PURE__ */ Ua(AO.highest), /** A higher-than-default precedence, for extensions that should come before those with default precedence. */ - high: /* @__PURE__ */ Co(WO.high), + high: /* @__PURE__ */ Ua(AO.high), /** The default precedence, which is also used for extensions without an explicit precedence. */ - default: /* @__PURE__ */ Co(WO.default), + default: /* @__PURE__ */ Ua(AO.default), /** A lower-than-default precedence. */ - low: /* @__PURE__ */ Co(WO.low), + low: /* @__PURE__ */ Ua(AO.low), /** The lowest precedence level. Meant for things that should end up near the end of the extension order. */ - lowest: /* @__PURE__ */ Co(WO.lowest) + lowest: /* @__PURE__ */ Ua(AO.lowest) }; -class VP { +class IP { constructor(e, n) { this.inner = e, this.prec = n; } } -class Hd { +class df { /** Create an instance of this compartment to add to your [state configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions). */ of(e) { - return new wp(this, e); + return new jp(this, e); } /** Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that reconfigures this compartment. */ reconfigure(e) { - return Hd.reconfigure.of({ compartment: this, extension: e }); + return df.reconfigure.of({ compartment: this, extension: e }); } /** Get the current content of the compartment in the state, or @@ -9278,14 +9270,14 @@ class Hd { return e.config.compartments.get(this); } } -class wp { +class jp { constructor(e, n) { this.compartment = e, this.inner = n; } } -class Uu { - constructor(e, n, i, r, O, a) { - for (this.base = e, this.compartments = n, this.dynamicSlots = i, this.address = r, this.staticValues = O, this.facets = a, this.statusTemplate = []; this.statusTemplate.length < i.length; ) +class Ju { + constructor(e, n, i, r, O, o) { + for (this.base = e, this.compartments = n, this.dynamicSlots = i, this.address = r, this.staticValues = O, this.facets = o, this.statusTemplate = []; this.statusTemplate.length < i.length; ) this.statusTemplate.push( 0 /* SlotStatus.Unresolved */ @@ -9296,12 +9288,12 @@ class Uu { return n == null ? e.default : this.staticValues[n >> 1]; } static resolve(e, n, i) { - let r = [], O = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ new Map(); - for (let d of SU(e, n, a)) - d instanceof Lt ? r.push(d) : (O[d.facet.id] || (O[d.facet.id] = [])).push(d); - let o = /* @__PURE__ */ Object.create(null), s = [], l = []; + let r = [], O = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Map(); + for (let d of _G(e, n, o)) + d instanceof Ft ? r.push(d) : (O[d.facet.id] || (O[d.facet.id] = [])).push(d); + let a = /* @__PURE__ */ Object.create(null), s = [], l = []; for (let d of r) - o[d.id] = l.length << 1, l.push((h) => d.slot(h)); + a[d.id] = l.length << 1, l.push((h) => d.slot(h)); let c = i == null ? void 0 : i.config.facets; for (let d in O) { let h = O[d], $ = h[0].facet, g = c && c[d] || []; @@ -9309,7 +9301,7 @@ class Uu { (m) => m.type == 0 /* Provider.Static */ )) - if (o[$.id] = s.length << 1 | 1, Om(g, h)) + if (a[$.id] = s.length << 1 | 1, Q5(g, h)) s.push(i.facet($)); else { let m = $.combine(h.map((Q) => Q.value)); @@ -9317,48 +9309,48 @@ class Uu { } else { for (let m of h) - m.type == 0 ? (o[m.id] = s.length << 1 | 1, s.push(m.value)) : (o[m.id] = l.length << 1, l.push((Q) => m.dynamicSlot(Q))); - o[$.id] = l.length << 1, l.push((m) => QU(m, $, h)); + m.type == 0 ? (a[m.id] = s.length << 1 | 1, s.push(m.value)) : (a[m.id] = l.length << 1, l.push((Q) => m.dynamicSlot(Q))); + a[$.id] = l.length << 1, l.push((m) => RG(m, $, h)); } } - let u = l.map((d) => d(o)); - return new Uu(e, a, u, o, s, O); + let u = l.map((d) => d(a)); + return new Ju(e, o, u, a, s, O); } } -function SU(t, e, n) { +function _G(t, e, n) { let i = [[], [], [], [], []], r = /* @__PURE__ */ new Map(); - function O(a, o) { - let s = r.get(a); + function O(o, a) { + let s = r.get(o); if (s != null) { - if (s <= o) + if (s <= a) return; - let l = i[s].indexOf(a); - l > -1 && i[s].splice(l, 1), a instanceof wp && n.delete(a.compartment); + let l = i[s].indexOf(o); + l > -1 && i[s].splice(l, 1), o instanceof jp && n.delete(o.compartment); } - if (r.set(a, o), Array.isArray(a)) - for (let l of a) - O(l, o); - else if (a instanceof wp) { - if (n.has(a.compartment)) + if (r.set(o, a), Array.isArray(o)) + for (let l of o) + O(l, a); + else if (o instanceof jp) { + if (n.has(o.compartment)) throw new RangeError("Duplicate use of compartment in extensions"); - let l = e.get(a.compartment) || a.inner; - n.set(a.compartment, l), O(l, o); - } else if (a instanceof VP) - O(a.inner, a.prec); - else if (a instanceof Lt) - i[o].push(a), a.provides && O(a.provides, o); - else if (a instanceof Nc) - i[o].push(a), a.facet.extensions && O(a.facet.extensions, WO.default); + let l = e.get(o.compartment) || o.inner; + n.set(o.compartment, l), O(l, a); + } else if (o instanceof IP) + O(o.inner, o.prec); + else if (o instanceof Ft) + i[a].push(o), o.provides && O(o.provides, a); + else if (o instanceof du) + i[a].push(o), o.facet.extensions && O(o.facet.extensions, AO.default); else { - let l = a.extension; + let l = o.extension; if (!l) - throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`); - O(l, o); + throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`); + O(l, a); } } - return O(t, WO.default), i.reduce((a, o) => a.concat(o)); + return O(t, AO.default), i.reduce((o, a) => o.concat(a)); } -function $s(t, e) { +function xs(t, e) { if (e & 1) return 2; let n = e >> 1, i = t.status[n]; @@ -9370,19 +9362,19 @@ function $s(t, e) { let r = t.computeSlot(t, t.config.dynamicSlots[n]); return t.status[n] = 2 | r; } -function Yu(t, e) { +function Ku(t, e) { return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1]; } -const ZP = /* @__PURE__ */ ie.define(), UP = /* @__PURE__ */ ie.define({ +const AP = /* @__PURE__ */ re.define(), FP = /* @__PURE__ */ re.define({ combine: (t) => t.some((e) => e), static: !0 -}), YP = /* @__PURE__ */ ie.define({ +}), LP = /* @__PURE__ */ re.define({ combine: (t) => t.length ? t[0] : void 0, static: !0 -}), zP = /* @__PURE__ */ ie.define(), GP = /* @__PURE__ */ ie.define(), EP = /* @__PURE__ */ ie.define(), jP = /* @__PURE__ */ ie.define({ +}), NP = /* @__PURE__ */ re.define(), MP = /* @__PURE__ */ re.define(), HP = /* @__PURE__ */ re.define(), BP = /* @__PURE__ */ re.define({ combine: (t) => t.length ? t[0] : !1 }); -class lr { +class fr { /** @internal */ @@ -9393,18 +9385,18 @@ class lr { Define a new type of annotation. */ static define() { - return new yU(); + return new WG(); } } -class yU { +class WG { /** Create an instance of this annotation. */ of(e) { - return new lr(this, e); + return new fr(this, e); } } -class bU { +class qG { /** @internal */ @@ -9416,10 +9408,10 @@ class bU { type. */ of(e) { - return new ve(this, e); + return new ke(this, e); } } -class ve { +class ke { /** @internal */ @@ -9432,7 +9424,7 @@ class ve { */ map(e) { let n = this.type.map(this.value, e); - return n === void 0 ? void 0 : n == this.value ? this : new ve(this.type, n); + return n === void 0 ? void 0 : n == this.value ? this : new ke(this.type, n); } /** Tells you whether this effect object is of a given @@ -9449,7 +9441,7 @@ class ve { removed. */ static define(e = {}) { - return new bU(e.map || ((n) => n)); + return new qG(e.map || ((n) => n)); } /** Map an array of effects through a change set. @@ -9465,17 +9457,17 @@ class ve { return i; } } -ve.reconfigure = /* @__PURE__ */ ve.define(); -ve.appendConfig = /* @__PURE__ */ ve.define(); -class Et { - constructor(e, n, i, r, O, a) { - this.startState = e, this.changes = n, this.selection = i, this.effects = r, this.annotations = O, this.scrollIntoView = a, this._doc = null, this._state = null, i && WP(i, n.newLength), O.some((o) => o.type == Et.time) || (this.annotations = O.concat(Et.time.of(Date.now()))); +ke.reconfigure = /* @__PURE__ */ ke.define(); +ke.appendConfig = /* @__PURE__ */ ke.define(); +class jt { + constructor(e, n, i, r, O, o) { + this.startState = e, this.changes = n, this.selection = i, this.effects = r, this.annotations = O, this.scrollIntoView = o, this._doc = null, this._state = null, i && DP(i, n.newLength), O.some((a) => a.type == jt.time) || (this.annotations = O.concat(jt.time.of(Date.now()))); } /** @internal */ - static create(e, n, i, r, O, a) { - return new Et(e, n, i, r, O, a); + static create(e, n, i, r, O, o) { + return new jt(e, n, i, r, O, o); } /** The new document produced by the transaction. Contrary to @@ -9537,134 +9529,134 @@ class Et { `"select.pointer"` will match it. */ isUserEvent(e) { - let n = this.annotation(Et.userEvent); + let n = this.annotation(jt.userEvent); return !!(n && (n == e || n.length > e.length && n.slice(0, e.length) == e && n[e.length] == ".")); } } -Et.time = /* @__PURE__ */ lr.define(); -Et.userEvent = /* @__PURE__ */ lr.define(); -Et.addToHistory = /* @__PURE__ */ lr.define(); -Et.remote = /* @__PURE__ */ lr.define(); -function wU(t, e) { +jt.time = /* @__PURE__ */ fr.define(); +jt.userEvent = /* @__PURE__ */ fr.define(); +jt.addToHistory = /* @__PURE__ */ fr.define(); +jt.remote = /* @__PURE__ */ fr.define(); +function YG(t, e) { let n = []; for (let i = 0, r = 0; ; ) { - let O, a; + let O, o; if (i < t.length && (r == e.length || e[r] >= t[i])) - O = t[i++], a = t[i++]; + O = t[i++], o = t[i++]; else if (r < e.length) - O = e[r++], a = e[r++]; + O = e[r++], o = e[r++]; else return n; - !n.length || n[n.length - 1] < O ? n.push(O, a) : n[n.length - 1] < a && (n[n.length - 1] = a); + !n.length || n[n.length - 1] < O ? n.push(O, o) : n[n.length - 1] < o && (n[n.length - 1] = o); } } -function IP(t, e, n) { +function JP(t, e, n) { var i; - let r, O, a; - return n ? (r = e.changes, O = Gt.empty(e.changes.length), a = t.changes.compose(e.changes)) : (r = e.changes.map(t.changes), O = t.changes.mapDesc(e.changes, !0), a = t.changes.compose(r)), { - changes: a, + let r, O, o; + return n ? (r = e.changes, O = Vt.empty(e.changes.length), o = t.changes.compose(e.changes)) : (r = e.changes.map(t.changes), O = t.changes.mapDesc(e.changes, !0), o = t.changes.compose(r)), { + changes: o, selection: e.selection ? e.selection.map(O) : (i = t.selection) === null || i === void 0 ? void 0 : i.map(r), - effects: ve.mapEffects(t.effects, r).concat(ve.mapEffects(e.effects, O)), + effects: ke.mapEffects(t.effects, r).concat(ke.mapEffects(e.effects, O)), annotations: t.annotations.length ? t.annotations.concat(e.annotations) : e.annotations, scrollIntoView: t.scrollIntoView || e.scrollIntoView }; } -function xp(t, e, n) { - let i = e.selection, r = Wa(e.annotations); - return e.userEvent && (r = r.concat(Et.userEvent.of(e.userEvent))), { - changes: e.changes instanceof Gt ? e.changes : Gt.of(e.changes || [], n, t.facet(YP)), - selection: i && (i instanceof U ? i : U.single(i.anchor, i.head)), - effects: Wa(e.effects), +function Ep(t, e, n) { + let i = e.selection, r = Ao(e.annotations); + return e.userEvent && (r = r.concat(jt.userEvent.of(e.userEvent))), { + changes: e.changes instanceof Vt ? e.changes : Vt.of(e.changes || [], n, t.facet(LP)), + selection: i && (i instanceof Z ? i : Z.single(i.anchor, i.head)), + effects: Ao(e.effects), annotations: r, scrollIntoView: !!e.scrollIntoView }; } -function AP(t, e, n) { - let i = xp(t, e.length ? e[0] : {}, t.doc.length); +function KP(t, e, n) { + let i = Ep(t, e.length ? e[0] : {}, t.doc.length); e.length && e[0].filter === !1 && (n = !1); for (let O = 1; O < e.length; O++) { e[O].filter === !1 && (n = !1); - let a = !!e[O].sequential; - i = IP(i, xp(t, e[O], a ? i.changes.newLength : t.doc.length), a); + let o = !!e[O].sequential; + i = JP(i, Ep(t, e[O], o ? i.changes.newLength : t.doc.length), o); } - let r = Et.create(t, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView); - return PU(n ? xU(r) : r); + let r = jt.create(t, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView); + return GG(n ? ZG(r) : r); } -function xU(t) { +function ZG(t) { let e = t.startState, n = !0; - for (let r of e.facet(zP)) { + for (let r of e.facet(NP)) { let O = r(t); if (O === !1) { n = !1; break; } - Array.isArray(O) && (n = n === !0 ? O : wU(n, O)); + Array.isArray(O) && (n = n === !0 ? O : YG(n, O)); } if (n !== !0) { let r, O; if (n === !1) - O = t.changes.invertedDesc, r = Gt.empty(e.doc.length); + O = t.changes.invertedDesc, r = Vt.empty(e.doc.length); else { - let a = t.changes.filter(n); - r = a.changes, O = a.filtered.mapDesc(a.changes).invertedDesc; + let o = t.changes.filter(n); + r = o.changes, O = o.filtered.mapDesc(o.changes).invertedDesc; } - t = Et.create(e, r, t.selection && t.selection.map(O), ve.mapEffects(t.effects, O), t.annotations, t.scrollIntoView); + t = jt.create(e, r, t.selection && t.selection.map(O), ke.mapEffects(t.effects, O), t.annotations, t.scrollIntoView); } - let i = e.facet(GP); + let i = e.facet(MP); for (let r = i.length - 1; r >= 0; r--) { let O = i[r](t); - O instanceof Et ? t = O : Array.isArray(O) && O.length == 1 && O[0] instanceof Et ? t = O[0] : t = AP(e, Wa(O), !1); + O instanceof jt ? t = O : Array.isArray(O) && O.length == 1 && O[0] instanceof jt ? t = O[0] : t = KP(e, Ao(O), !1); } return t; } -function PU(t) { - let e = t.startState, n = e.facet(EP), i = t; +function GG(t) { + let e = t.startState, n = e.facet(HP), i = t; for (let r = n.length - 1; r >= 0; r--) { let O = n[r](t); - O && Object.keys(O).length && (i = IP(i, xp(e, O, t.changes.newLength), !0)); + O && Object.keys(O).length && (i = JP(i, Ep(e, O, t.changes.newLength), !0)); } - return i == t ? t : Et.create(e, t.changes, t.selection, i.effects, i.annotations, i.scrollIntoView); + return i == t ? t : jt.create(e, t.changes, t.selection, i.effects, i.annotations, i.scrollIntoView); } -const vU = []; -function Wa(t) { - return t == null ? vU : Array.isArray(t) ? t : [t]; +const zG = []; +function Ao(t) { + return t == null ? zG : Array.isArray(t) ? t : [t]; } -var pt = /* @__PURE__ */ function(t) { +var gt = /* @__PURE__ */ function(t) { return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; -}(pt || (pt = {})); -const XU = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; -let Pp; +}(gt || (gt = {})); +const UG = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; +let Dp; try { - Pp = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); + Dp = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); } catch { } -function TU(t) { - if (Pp) - return Pp.test(t); +function VG(t) { + if (Dp) + return Dp.test(t); for (let e = 0; e < t.length; e++) { let n = t[e]; - if (/\w/.test(n) || n > "€" && (n.toUpperCase() != n.toLowerCase() || XU.test(n))) + if (/\w/.test(n) || n > "€" && (n.toUpperCase() != n.toLowerCase() || UG.test(n))) return !0; } return !1; } -function kU(t) { +function jG(t) { return (e) => { if (!/\S/.test(e)) - return pt.Space; - if (TU(e)) - return pt.Word; + return gt.Space; + if (VG(e)) + return gt.Word; for (let n = 0; n < t.length; n++) if (e.indexOf(t[n]) > -1) - return pt.Word; - return pt.Other; + return gt.Word; + return gt.Other; }; } -class qe { - constructor(e, n, i, r, O, a) { - this.config = e, this.doc = n, this.selection = i, this.values = r, this.status = e.statusTemplate.slice(), this.computeSlot = O, a && (a._state = this); - for (let o = 0; o < this.config.dynamicSlots.length; o++) - $s(this, o << 1); +class Ye { + constructor(e, n, i, r, O, o) { + this.config = e, this.doc = n, this.selection = i, this.values = r, this.status = e.statusTemplate.slice(), this.computeSlot = O, o && (o._state = this); + for (let a = 0; a < this.config.dynamicSlots.length; a++) + xs(this, a << 1); this.computeSlot = null; } field(e, n = !0) { @@ -9674,7 +9666,7 @@ class qe { throw new RangeError("Field is not present in this state"); return; } - return $s(this, i), Yu(this, i); + return xs(this, i), Ku(this, i); } /** Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this @@ -9692,17 +9684,17 @@ class qe { specs take precedence over earlier ones. */ update(...e) { - return AP(this, e, !0); + return KP(this, e, !0); } /** @internal */ applyTransaction(e) { let n = this.config, { base: i, compartments: r } = n; - for (let a of e.effects) - a.is(Hd.reconfigure) ? (n && (r = /* @__PURE__ */ new Map(), n.compartments.forEach((o, s) => r.set(s, o)), n = null), r.set(a.value.compartment, a.value.extension)) : a.is(ve.reconfigure) ? (n = null, i = a.value) : a.is(ve.appendConfig) && (n = null, i = Wa(i).concat(a.value)); + for (let o of e.effects) + o.is(df.reconfigure) ? (n && (r = /* @__PURE__ */ new Map(), n.compartments.forEach((a, s) => r.set(s, a)), n = null), r.set(o.value.compartment, o.value.extension)) : o.is(ke.reconfigure) ? (n = null, i = o.value) : o.is(ke.appendConfig) && (n = null, i = Ao(i).concat(o.value)); let O; - n ? O = e.startState.values.slice() : (n = Uu.resolve(i, r, this), O = new qe(n, this.doc, this.selection, n.dynamicSlots.map(() => null), (o, s) => s.reconfigure(o, this), null).values), new qe(n, e.newDoc, e.newSelection, O, (a, o) => o.update(a, e), e); + n ? O = e.startState.values.slice() : (n = Ju.resolve(i, r, this), O = new Ye(n, this.doc, this.selection, n.dynamicSlots.map(() => null), (a, s) => s.reconfigure(a, this), null).values), new Ye(n, e.newDoc, e.newSelection, O, (o, a) => a.update(o, e), e); } /** Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that @@ -9711,7 +9703,7 @@ class qe { replaceSelection(e) { return typeof e == "string" && (e = this.toText(e)), this.changeByRange((n) => ({ changes: { from: n.from, to: n.to, insert: e }, - range: U.cursor(n.from + e.length) + range: Z.cursor(n.from + e.length) })); } /** @@ -9726,18 +9718,18 @@ class qe { [`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update). */ changeByRange(e) { - let n = this.selection, i = e(n.ranges[0]), r = this.changes(i.changes), O = [i.range], a = Wa(i.effects); - for (let o = 1; o < n.ranges.length; o++) { - let s = e(n.ranges[o]), l = this.changes(s.changes), c = l.map(r); - for (let d = 0; d < o; d++) + let n = this.selection, i = e(n.ranges[0]), r = this.changes(i.changes), O = [i.range], o = Ao(i.effects); + for (let a = 1; a < n.ranges.length; a++) { + let s = e(n.ranges[a]), l = this.changes(s.changes), c = l.map(r); + for (let d = 0; d < a; d++) O[d] = O[d].map(c); let u = r.mapDesc(l, !0); - O.push(s.range.map(u)), r = r.compose(c), a = ve.mapEffects(a, c).concat(ve.mapEffects(Wa(s.effects), u)); + O.push(s.range.map(u)), r = r.compose(c), o = ke.mapEffects(o, c).concat(ke.mapEffects(Ao(s.effects), u)); } return { changes: r, - selection: U.create(O, n.mainIndex), - effects: a + selection: Z.create(O, n.mainIndex), + effects: o }; } /** @@ -9746,7 +9738,7 @@ class qe { separator into account. */ changes(e = []) { - return e instanceof Gt ? e : Gt.of(e, this.doc.length, this.facet(qe.lineSeparator)); + return e instanceof Vt ? e : Vt.of(e, this.doc.length, this.facet(Ye.lineSeparator)); } /** Using the state's [line @@ -9754,7 +9746,7 @@ class qe { [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string. */ toText(e) { - return Be.of(e.split(this.facet(qe.lineSeparator) || Qp)); + return nt.of(e.split(this.facet(Ye.lineSeparator) || Gp)); } /** Return the given range of the document as a string. @@ -9767,7 +9759,7 @@ class qe { */ facet(e) { let n = this.config.address[e.id]; - return n == null ? e.default : ($s(this, n), Yu(this, n)); + return n == null ? e.default : (xs(this, n), Ku(this, n)); } /** Convert this state to a JSON-serializable object. When custom @@ -9783,7 +9775,7 @@ class qe { if (e) for (let i in e) { let r = e[i]; - r instanceof Lt && this.config.address[r.id] != null && (n[i] = r.spec.toJSON(this.field(e[i]), this)); + r instanceof Ft && this.config.address[r.id] != null && (n[i] = r.spec.toJSON(this.field(e[i]), this)); } return n; } @@ -9800,13 +9792,13 @@ class qe { if (i) { for (let O in i) if (Object.prototype.hasOwnProperty.call(e, O)) { - let a = i[O], o = e[O]; - r.push(a.init((s) => a.spec.fromJSON(o, s))); + let o = i[O], a = e[O]; + r.push(o.init((s) => o.spec.fromJSON(a, s))); } } - return qe.create({ + return Ye.create({ doc: e.doc, - selection: U.fromJSON(e.selection), + selection: Z.fromJSON(e.selection), extensions: n.extensions ? r.concat([n.extensions]) : r }); } @@ -9816,22 +9808,22 @@ class qe { transactions. */ static create(e = {}) { - let n = Uu.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof Be ? e.doc : Be.of((e.doc || "").split(n.staticFacet(qe.lineSeparator) || Qp)), r = e.selection ? e.selection instanceof U ? e.selection : U.single(e.selection.anchor, e.selection.head) : U.single(0); - return WP(r, i.length), n.staticFacet(UP) || (r = r.asSingle()), new qe(n, i, r, n.dynamicSlots.map(() => null), (O, a) => a.create(O), null); + let n = Ju.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof nt ? e.doc : nt.of((e.doc || "").split(n.staticFacet(Ye.lineSeparator) || Gp)), r = e.selection ? e.selection instanceof Z ? e.selection : Z.single(e.selection.anchor, e.selection.head) : Z.single(0); + return DP(r, i.length), n.staticFacet(FP) || (r = r.asSingle()), new Ye(n, i, r, n.dynamicSlots.map(() => null), (O, o) => o.create(O), null); } /** The size (in columns) of a tab in the document, determined by the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet. */ get tabSize() { - return this.facet(qe.tabSize); + return this.facet(Ye.tabSize); } /** Get the proper [line-break](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator) string for this state. */ get lineBreak() { - return this.facet(qe.lineSeparator) || ` + return this.facet(Ye.lineSeparator) || ` `; } /** @@ -9839,7 +9831,7 @@ class qe { [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only. */ get readOnly() { - return this.facet(jP); + return this.facet(BP); } /** Look up a translation for the given phrase (via the @@ -9852,7 +9844,7 @@ class qe { literal dollar sign. */ phrase(e, ...n) { - for (let i of this.facet(qe.phrases)) + for (let i of this.facet(Ye.phrases)) if (Object.prototype.hasOwnProperty.call(i, e)) { e = i[e]; break; @@ -9882,9 +9874,9 @@ class qe { */ languageDataAt(e, n, i = -1) { let r = []; - for (let O of this.facet(ZP)) - for (let a of O(this, n, i)) - Object.prototype.hasOwnProperty.call(a, e) && r.push(a[e]); + for (let O of this.facet(AP)) + for (let o of O(this, n, i)) + Object.prototype.hasOwnProperty.call(o, e) && r.push(o[e]); return r; } /** @@ -9899,7 +9891,7 @@ class qe { - Other (anything else) */ charCategorizer(e) { - return kU(this.languageDataAt("wordChars", e).join("")); + return jG(this.languageDataAt("wordChars", e).join("")); } /** Find the word at the given position, meaning the range @@ -9908,49 +9900,49 @@ class qe { this returns null. */ wordAt(e) { - let { text: n, from: i, length: r } = this.doc.lineAt(e), O = this.charCategorizer(e), a = e - i, o = e - i; - for (; a > 0; ) { - let s = dn(n, a, !1); - if (O(n.slice(s, a)) != pt.Word) + let { text: n, from: i, length: r } = this.doc.lineAt(e), O = this.charCategorizer(e), o = e - i, a = e - i; + for (; o > 0; ) { + let s = hn(n, o, !1); + if (O(n.slice(s, o)) != gt.Word) break; - a = s; + o = s; } - for (; o < r; ) { - let s = dn(n, o); - if (O(n.slice(o, s)) != pt.Word) + for (; a < r; ) { + let s = hn(n, a); + if (O(n.slice(a, s)) != gt.Word) break; - o = s; + a = s; } - return a == o ? null : U.range(a + i, o + i); + return o == a ? null : Z.range(o + i, a + i); } } -qe.allowMultipleSelections = UP; -qe.tabSize = /* @__PURE__ */ ie.define({ +Ye.allowMultipleSelections = FP; +Ye.tabSize = /* @__PURE__ */ re.define({ combine: (t) => t.length ? t[0] : 4 }); -qe.lineSeparator = YP; -qe.readOnly = jP; -qe.phrases = /* @__PURE__ */ ie.define({ +Ye.lineSeparator = LP; +Ye.readOnly = BP; +Ye.phrases = /* @__PURE__ */ re.define({ compare(t, e) { let n = Object.keys(t), i = Object.keys(e); return n.length == i.length && n.every((r) => t[r] == e[r]); } }); -qe.languageData = ZP; -qe.changeFilter = zP; -qe.transactionFilter = GP; -qe.transactionExtender = EP; -Hd.reconfigure = /* @__PURE__ */ ve.define(); -function cr(t, e, n = {}) { +Ye.languageData = AP; +Ye.changeFilter = NP; +Ye.transactionFilter = MP; +Ye.transactionExtender = HP; +df.reconfigure = /* @__PURE__ */ ke.define(); +function hr(t, e, n = {}) { let i = {}; for (let r of t) for (let O of Object.keys(r)) { - let a = r[O], o = i[O]; - if (o === void 0) - i[O] = a; - else if (!(o === a || a === void 0)) + let o = r[O], a = i[O]; + if (a === void 0) + i[O] = o; + else if (!(a === o || o === void 0)) if (Object.hasOwnProperty.call(n, O)) - i[O] = n[O](o, a); + i[O] = n[O](a, o); else throw new Error("Config merge conflict for field " + O); } @@ -9958,7 +9950,7 @@ function cr(t, e, n = {}) { i[r] === void 0 && (i[r] = e[r]); return i; } -class FO { +class ro { /** Compare this value with another value. Used when comparing rangesets. The default implementation compares by identity. @@ -9973,13 +9965,13 @@ class FO { Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value. */ range(e, n = e) { - return vp.create(e, n, this); + return Ip.create(e, n, this); } } -FO.prototype.startSide = FO.prototype.endSide = 0; -FO.prototype.point = !1; -FO.prototype.mapMode = nn.TrackDel; -let vp = class DP { +ro.prototype.startSide = ro.prototype.endSide = 0; +ro.prototype.point = !1; +ro.prototype.mapMode = nn.TrackDel; +let Ip = class e4 { constructor(e, n, i) { this.from = e, this.to = n, this.value = i; } @@ -9987,13 +9979,13 @@ let vp = class DP { @internal */ static create(e, n, i) { - return new DP(e, n, i); + return new e4(e, n, i); } }; -function Xp(t, e) { +function Ap(t, e) { return t.from - e.from || t.value.startSide - e.value.startSide; } -class am { +class S5 { constructor(e, n, i, r) { this.from = e, this.to = n, this.value = i, this.maxPoint = r; } @@ -10004,22 +9996,22 @@ class am { // `from` pos when `end == false`, `to` when `end == true`. findIndex(e, n, i, r = 0) { let O = i ? this.to : this.from; - for (let a = r, o = O.length; ; ) { - if (a == o) - return a; - let s = a + o >> 1, l = O[s] - e || (i ? this.value[s].endSide : this.value[s].startSide) - n; - if (s == a) - return l >= 0 ? a : o; - l >= 0 ? o = s : a = s + 1; + for (let o = r, a = O.length; ; ) { + if (o == a) + return o; + let s = o + a >> 1, l = O[s] - e || (i ? this.value[s].endSide : this.value[s].startSide) - n; + if (s == o) + return l >= 0 ? o : a; + l >= 0 ? a = s : o = s + 1; } } between(e, n, i, r) { - for (let O = this.findIndex(n, -1e9, !0), a = this.findIndex(i, 1e9, !1, O); O < a; O++) + for (let O = this.findIndex(n, -1e9, !0), o = this.findIndex(i, 1e9, !1, O); O < o; O++) if (r(this.from[O] + e, this.to[O] + e, this.value[O]) === !1) return !1; } map(e, n) { - let i = [], r = [], O = [], a = -1, o = -1; + let i = [], r = [], O = [], o = -1, a = -1; for (let s = 0; s < this.value.length; s++) { let l = this.value[s], c = this.from[s] + e, u = this.to[s] + e, d, h; if (c == u) { @@ -10028,12 +10020,12 @@ class am { continue; } else if (d = n.mapPos(c, l.startSide), h = n.mapPos(u, l.endSide), d > h || d == h && l.startSide > 0 && l.endSide <= 0) continue; - (h - d || l.endSide - l.startSide) < 0 || (a < 0 && (a = d), l.point && (o = Math.max(o, h - d)), i.push(l), r.push(d - a), O.push(h - a)); + (h - d || l.endSide - l.startSide) < 0 || (o < 0 && (o = d), l.point && (a = Math.max(a, h - d)), i.push(l), r.push(d - o), O.push(h - o)); } - return { mapped: i.length ? new am(r, O, i, o) : null, pos: a }; + return { mapped: i.length ? new S5(r, O, i, a) : null, pos: o }; } } -class He { +class rt { constructor(e, n, i, r) { this.chunkPos = e, this.chunk = n, this.nextLayer = i, this.maxPoint = r; } @@ -10041,7 +10033,7 @@ class He { @internal */ static create(e, n, i, r) { - return new He(e, n, i, r); + return new rt(e, n, i, r); } /** @internal @@ -10077,19 +10069,19 @@ class He { `Y`.) */ update(e) { - let { add: n = [], sort: i = !1, filterFrom: r = 0, filterTo: O = this.length } = e, a = e.filter; - if (n.length == 0 && !a) + let { add: n = [], sort: i = !1, filterFrom: r = 0, filterTo: O = this.length } = e, o = e.filter; + if (n.length == 0 && !o) return this; - if (i && (n = n.slice().sort(Xp)), this.isEmpty) - return n.length ? He.of(n) : this; - let o = new LP(this, null, -1).goto(0), s = 0, l = [], c = new lO(); - for (; o.value || s < n.length; ) - if (s < n.length && (o.from - n[s].from || o.startSide - n[s].value.startSide) >= 0) { + if (i && (n = n.slice().sort(Ap)), this.isEmpty) + return n.length ? rt.of(n) : this; + let a = new t4(this, null, -1).goto(0), s = 0, l = [], c = new mO(); + for (; a.value || s < n.length; ) + if (s < n.length && (a.from - n[s].from || a.startSide - n[s].value.startSide) >= 0) { let u = n[s++]; c.addInner(u.from, u.to, u.value) || l.push(u); } else - o.rangeIndex == 1 && o.chunkIndex < this.chunk.length && (s == n.length || this.chunkEnd(o.chunkIndex) < n[s].from) && (!a || r > this.chunkEnd(o.chunkIndex) || O < this.chunkPos[o.chunkIndex]) && c.addChunk(this.chunkPos[o.chunkIndex], this.chunk[o.chunkIndex]) ? o.nextChunk() : ((!a || r > o.to || O < o.from || a(o.from, o.to, o.value)) && (c.addInner(o.from, o.to, o.value) || l.push(vp.create(o.from, o.to, o.value))), o.next()); - return c.finishInner(this.nextLayer.isEmpty && !l.length ? He.empty : this.nextLayer.update({ add: l, filter: a, filterFrom: r, filterTo: O })); + a.rangeIndex == 1 && a.chunkIndex < this.chunk.length && (s == n.length || this.chunkEnd(a.chunkIndex) < n[s].from) && (!o || r > this.chunkEnd(a.chunkIndex) || O < this.chunkPos[a.chunkIndex]) && c.addChunk(this.chunkPos[a.chunkIndex], this.chunk[a.chunkIndex]) ? a.nextChunk() : ((!o || r > a.to || O < a.from || o(a.from, a.to, a.value)) && (c.addInner(a.from, a.to, a.value) || l.push(Ip.create(a.from, a.to, a.value))), a.next()); + return c.finishInner(this.nextLayer.isEmpty && !l.length ? rt.empty : this.nextLayer.update({ add: l, filter: o, filterFrom: r, filterTo: O })); } /** Map this range set through a set of changes, return the new set. @@ -10098,17 +10090,17 @@ class He { if (e.empty || this.isEmpty) return this; let n = [], i = [], r = -1; - for (let a = 0; a < this.chunk.length; a++) { - let o = this.chunkPos[a], s = this.chunk[a], l = e.touchesRange(o, o + s.length); + for (let o = 0; o < this.chunk.length; o++) { + let a = this.chunkPos[o], s = this.chunk[o], l = e.touchesRange(a, a + s.length); if (l === !1) - r = Math.max(r, s.maxPoint), n.push(s), i.push(e.mapPos(o)); + r = Math.max(r, s.maxPoint), n.push(s), i.push(e.mapPos(a)); else if (l === !0) { - let { mapped: c, pos: u } = s.map(o, e); + let { mapped: c, pos: u } = s.map(a, e); c && (r = Math.max(r, c.maxPoint), n.push(c), i.push(u)); } } let O = this.nextLayer.map(e); - return n.length == 0 ? O : new He(i, n, O || He.empty, r); + return n.length == 0 ? O : new rt(i, n, O || rt.empty, r); } /** Iterate over the ranges that touch the region `from` to `to`, @@ -10119,8 +10111,8 @@ class He { between(e, n, i) { if (!this.isEmpty) { for (let r = 0; r < this.chunk.length; r++) { - let O = this.chunkPos[r], a = this.chunk[r]; - if (n >= O && e <= O + a.length && a.between(O, e - O, n - O, i) === !1) + let O = this.chunkPos[r], o = this.chunk[r]; + if (n >= O && e <= O + o.length && o.between(O, e - O, n - O, i) === !1) return; } this.nextLayer.between(e, n, i); @@ -10131,7 +10123,7 @@ class He { ranges that end at or after `from`. */ iter(e = 0) { - return Us.from([this]).goto(e); + return Ls.from([this]).goto(e); } /** @internal @@ -10144,15 +10136,15 @@ class He { starting from `from`. */ static iter(e, n = 0) { - return Us.from(e).goto(n); + return Ls.from(e).goto(n); } /** Iterate over two groups of sets, calling methods on `comparator` to notify it of possible differences. */ static compare(e, n, i, r, O = -1) { - let a = e.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= O), o = n.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= O), s = X0(a, o, i), l = new _o(a, s, O), c = new _o(o, s, O); - i.iterGaps((u, d, h) => T0(l, u, c, d, h, r)), i.empty && i.length == 0 && T0(l, 0, c, 0, 0, r); + let o = e.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= O), a = n.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= O), s = EQ(o, a, i), l = new Va(o, s, O), c = new Va(a, s, O); + i.iterGaps((u, d, h) => DQ(l, u, c, d, h, r)), i.empty && i.length == 0 && DQ(l, 0, c, 0, 0, r); } /** Compare the contents of two groups of range sets, returning true @@ -10160,14 +10152,14 @@ class He { */ static eq(e, n, i = 0, r) { r == null && (r = 1e9 - 1); - let O = e.filter((c) => !c.isEmpty && n.indexOf(c) < 0), a = n.filter((c) => !c.isEmpty && e.indexOf(c) < 0); - if (O.length != a.length) + let O = e.filter((c) => !c.isEmpty && n.indexOf(c) < 0), o = n.filter((c) => !c.isEmpty && e.indexOf(c) < 0); + if (O.length != o.length) return !1; if (!O.length) return !0; - let o = X0(O, a), s = new _o(O, o, 0).goto(i), l = new _o(a, o, 0).goto(i); + let a = EQ(O, o), s = new Va(O, a, 0).goto(i), l = new Va(o, a, 0).goto(i); for (; ; ) { - if (s.to != l.to || !Tp(s.active, l.active) || s.point && (!l.point || !s.point.eq(l.point))) + if (s.to != l.to || !Fp(s.active, l.active) || s.point && (!l.point || !s.point.eq(l.point))) return !1; if (s.to > r) return !0; @@ -10182,17 +10174,17 @@ class He { of the iteration. */ static spans(e, n, i, r, O = -1) { - let a = new _o(e, null, O).goto(n), o = n, s = a.openStart; + let o = new Va(e, null, O).goto(n), a = n, s = o.openStart; for (; ; ) { - let l = Math.min(a.to, i); - if (a.point) { - let c = a.activeForPoint(a.to), u = a.pointFrom < n ? c.length + 1 : Math.min(c.length, s); - r.point(o, l, a.point, c, u, a.pointRank), s = Math.min(a.openEnd(l), c.length); + let l = Math.min(o.to, i); + if (o.point) { + let c = o.activeForPoint(o.to), u = o.pointFrom < n ? c.length + 1 : Math.min(c.length, s); + r.point(a, l, o.point, c, u, o.pointRank), s = Math.min(o.openEnd(l), c.length); } else - l > o && (r.span(o, l, a.active, s), s = a.openEnd(l)); - if (a.to > i) - return s + (a.point && a.to > i ? 1 : 0); - o = a.to, a.next(); + l > a && (r.span(a, l, o.active, s), s = o.openEnd(l)); + if (o.to > i) + return s + (o.point && o.to > i ? 1 : 0); + a = o.to, o.next(); } } /** @@ -10203,27 +10195,27 @@ class He { cause the method to sort them. */ static of(e, n = !1) { - let i = new lO(); - for (let r of e instanceof vp ? [e] : n ? CU(e) : e) + let i = new mO(); + for (let r of e instanceof Ip ? [e] : n ? EG(e) : e) i.add(r.from, r.to, r.value); return i.finish(); } } -He.empty = /* @__PURE__ */ new He([], [], null, -1); -function CU(t) { +rt.empty = /* @__PURE__ */ new rt([], [], null, -1); +function EG(t) { if (t.length > 1) for (let e = t[0], n = 1; n < t.length; n++) { let i = t[n]; - if (Xp(e, i) > 0) - return t.slice().sort(Xp); + if (Ap(e, i) > 0) + return t.slice().sort(Ap); e = i; } return t; } -He.empty.nextLayer = He.empty; -class lO { +rt.empty.nextLayer = rt.empty; +class mO { finishChunk(e) { - this.chunks.push(new am(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); + this.chunks.push(new S5(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); } /** Create an empty builder. @@ -10236,7 +10228,7 @@ class lO { `value.startSide`) order. */ add(e, n, i) { - this.addInner(e, n, i) || (this.nextLayer || (this.nextLayer = new lO())).add(e, n, i); + this.addInner(e, n, i) || (this.nextLayer || (this.nextLayer = new mO())).add(e, n, i); } /** @internal @@ -10262,7 +10254,7 @@ class lO { used anymore after this has been called. */ finish() { - return this.finishInner(He.empty); + return this.finishInner(rt.empty); } /** @internal @@ -10270,24 +10262,24 @@ class lO { finishInner(e) { if (this.from.length && this.finishChunk(!1), this.chunks.length == 0) return e; - let n = He.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint); + let n = rt.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint); return this.from = null, n; } } -function X0(t, e, n) { +function EQ(t, e, n) { let i = /* @__PURE__ */ new Map(); for (let O of t) - for (let a = 0; a < O.chunk.length; a++) - O.chunk[a].maxPoint <= 0 && i.set(O.chunk[a], O.chunkPos[a]); + for (let o = 0; o < O.chunk.length; o++) + O.chunk[o].maxPoint <= 0 && i.set(O.chunk[o], O.chunkPos[o]); let r = /* @__PURE__ */ new Set(); for (let O of e) - for (let a = 0; a < O.chunk.length; a++) { - let o = i.get(O.chunk[a]); - o != null && (n ? n.mapPos(o) : o) == O.chunkPos[a] && !(n != null && n.touchesRange(o, o + O.chunk[a].length)) && r.add(O.chunk[a]); + for (let o = 0; o < O.chunk.length; o++) { + let a = i.get(O.chunk[o]); + a != null && (n ? n.mapPos(a) : a) == O.chunkPos[o] && !(n != null && n.touchesRange(a, a + O.chunk[o].length)) && r.add(O.chunk[o]); } return r; } -class LP { +class t4 { constructor(e, n, i, r = 0) { this.layer = e, this.skip = n, this.minPoint = i, this.rank = r; } @@ -10343,16 +10335,16 @@ class LP { return this.from - e.from || this.startSide - e.startSide || this.rank - e.rank || this.to - e.to || this.endSide - e.endSide; } } -class Us { +class Ls { constructor(e) { this.heap = e; } static from(e, n = null, i = -1) { let r = []; for (let O = 0; O < e.length; O++) - for (let a = e[O]; !a.isEmpty; a = a.nextLayer) - a.maxPoint >= i && r.push(new LP(a, n, i, O)); - return r.length == 1 ? r[0] : new Us(r); + for (let o = e[O]; !o.isEmpty; o = o.nextLayer) + o.maxPoint >= i && r.push(new t4(o, n, i, O)); + return r.length == 1 ? r[0] : new Ls(r); } get startSide() { return this.value ? this.value.startSide : 0; @@ -10361,14 +10353,14 @@ class Us { for (let i of this.heap) i.goto(e, n); for (let i = this.heap.length >> 1; i >= 0; i--) - o1(this.heap, i); + S1(this.heap, i); return this.next(), this; } forward(e, n) { for (let i of this.heap) i.forward(e, n); for (let i = this.heap.length >> 1; i >= 0; i--) - o1(this.heap, i); + S1(this.heap, i); (this.to - e || this.value.endSide - n) < 0 && this.next(); } next() { @@ -10376,11 +10368,11 @@ class Us { this.from = this.to = 1e9, this.value = null, this.rank = -1; else { let e = this.heap[0]; - this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), o1(this.heap, 0); + this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), S1(this.heap, 0); } } } -function o1(t, e) { +function S1(t, e) { for (let n = t[e]; ; ) { let i = (e << 1) + 1; if (i >= t.length) @@ -10391,9 +10383,9 @@ function o1(t, e) { t[i] = n, t[e] = r, e = i; } } -class _o { +class Va { constructor(e, n, i) { - this.minPoint = i, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = Us.from(e, n, i); + this.minPoint = i, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = Ls.from(e, n, i); } goto(e, n = -1e9) { return this.cursor.goto(e, n), this.active.length = this.activeTo.length = this.activeRank.length = 0, this.minActive = -1, this.to = e, this.endSide = n, this.openStart = -1, this.next(), this; @@ -10404,13 +10396,13 @@ class _o { this.cursor.forward(e, n); } removeActive(e) { - Zl(this.active, e), Zl(this.activeTo, e), Zl(this.activeRank, e), this.minActive = k0(this.active, this.activeTo); + Bl(this.active, e), Bl(this.activeTo, e), Bl(this.activeRank, e), this.minActive = IQ(this.active, this.activeTo); } addActive(e) { let n = 0, { value: i, to: r, rank: O } = this.cursor; for (; n < this.activeRank.length && this.activeRank[n] <= O; ) n++; - Ul(this.active, n, i), Ul(this.activeTo, n, r), Ul(this.activeRank, n, O), e && Ul(e, n, this.cursor.from), this.minActive = k0(this.active, this.activeTo); + Jl(this.active, n, i), Jl(this.activeTo, n, r), Jl(this.activeRank, n, O), e && Jl(e, n, this.cursor.from), this.minActive = IQ(this.active, this.activeTo); } // After calling this, if `this.point` != null, the next range is a // point. Otherwise, it's a regular range, covered by `this.active`. @@ -10425,7 +10417,7 @@ class _o { this.to = this.activeTo[r], this.endSide = this.active[r].endSide; break; } - this.removeActive(r), i && Zl(i, r); + this.removeActive(r), i && Bl(i, r); } else if (this.cursor.value) if (this.cursor.from > e) { this.to = this.cursor.from, this.endSide = this.cursor.startSide; @@ -10467,17 +10459,17 @@ class _o { return n; } } -function T0(t, e, n, i, r, O) { +function DQ(t, e, n, i, r, O) { t.goto(e), n.goto(i); - let a = i + r, o = i, s = i - e; + let o = i + r, a = i, s = i - e; for (; ; ) { - let l = t.to + s - n.to || t.endSide - n.endSide, c = l < 0 ? t.to + s : n.to, u = Math.min(c, a); - if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && Tp(t.activeForPoint(t.to), n.activeForPoint(n.to)) || O.comparePoint(o, u, t.point, n.point) : u > o && !Tp(t.active, n.active) && O.compareRange(o, u, t.active, n.active), c > a) + let l = t.to + s - n.to || t.endSide - n.endSide, c = l < 0 ? t.to + s : n.to, u = Math.min(c, o); + if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && Fp(t.activeForPoint(t.to), n.activeForPoint(n.to)) || O.comparePoint(a, u, t.point, n.point) : u > a && !Fp(t.active, n.active) && O.compareRange(a, u, t.active, n.active), c > o) break; - o = c, l <= 0 && t.next(), l >= 0 && n.next(); + a = c, l <= 0 && t.next(), l >= 0 && n.next(); } } -function Tp(t, e) { +function Fp(t, e) { if (t.length != e.length) return !1; for (let n = 0; n < t.length; n++) @@ -10485,40 +10477,40 @@ function Tp(t, e) { return !1; return !0; } -function Zl(t, e) { +function Bl(t, e) { for (let n = e, i = t.length - 1; n < i; n++) t[n] = t[n + 1]; t.pop(); } -function Ul(t, e, n) { +function Jl(t, e, n) { for (let i = t.length - 1; i >= e; i--) t[i + 1] = t[i]; t[e] = n; } -function k0(t, e) { +function IQ(t, e) { let n = -1, i = 1e9; for (let r = 0; r < e.length; r++) (e[r] - i || t[r].endSide - t[n].endSide) < 0 && (n = r, i = e[r]); return n; } -function hl(t, e, n = t.length) { +function Tl(t, e, n = t.length) { let i = 0; for (let r = 0; r < n; ) - t.charCodeAt(r) == 9 ? (i += e - i % e, r++) : (i++, r = dn(t, r)); + t.charCodeAt(r) == 9 ? (i += e - i % e, r++) : (i++, r = hn(t, r)); return i; } -function kp(t, e, n, i) { +function Lp(t, e, n, i) { for (let r = 0, O = 0; ; ) { if (O >= e) return r; if (r == t.length) break; - O += t.charCodeAt(r) == 9 ? n - O % n : 1, r = dn(t, r); + O += t.charCodeAt(r) == 9 ? n - O % n : 1, r = hn(t, r); } return i === !0 ? -1 : t.length; } -const Cp = "ͼ", C0 = typeof Symbol > "u" ? "__" + Cp : Symbol.for(Cp), _p = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), _0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; -let Da = class { +const Np = "ͼ", AQ = typeof Symbol > "u" ? "__" + Np : Symbol.for(Np), Mp = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), FQ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; +class QO { // :: (Object