diff --git a/.gitignore b/.gitignore index 7957dcdca..4b91dd138 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ node_modules # builds build -# dist +dist .rpt2_cache storybook-static diff --git a/.releaserc.json b/.releaserc.json index 1eb2d8436..c57767ee9 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -64,6 +64,7 @@ "@semantic-release/release-notes-generator", "@semantic-release/changelog", "@semantic-release/git", + "@semantic-release/npm", [ "@semantic-release/github", { diff --git a/dist/Flex-801ab823.mjs b/dist/Flex-801ab823.mjs deleted file mode 100644 index 9cabc8664..000000000 --- a/dist/Flex-801ab823.mjs +++ /dev/null @@ -1,23290 +0,0 @@ -import * as U from "react"; -import It, { createContext as Cr, forwardRef as At, createElement as ir, Fragment as Su, useContext as ft, useLayoutEffect as $s, useEffect as Fe, useState as Ye, useRef as be, useMemo as gt, useReducer as x0, useCallback as G, useInsertionEffect as gm, useId as _r, cloneElement as Ka, Children as Ds, isValidElement as wu, PureComponent as S0 } from "react"; -import { createPortal as bm } from "react-dom"; -var yi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function Ms(e) { - return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; -} -function Is(e) { - if (e.__esModule) - return e; - var t = e.default; - if (typeof t == "function") { - var r = function n() { - return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments); - }; - r.prototype = t.prototype; - } else - r = {}; - return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) { - var o = Object.getOwnPropertyDescriptor(e, n); - Object.defineProperty(r, n, o.get ? o : { - enumerable: !0, - get: function() { - return e[n]; - } - }); - }), r; -} -var Cc = { exports: {} }, Go = {}; -/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -var Hd; -function w0() { - if (Hd) - return Go; - Hd = 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; - c !== void 0 && (f = "" + c), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (p = l.ref); - for (u in l) - n.call(l, u) && !a.hasOwnProperty(u) && (d[u] = l[u]); - if (s && s.defaultProps) - for (u in l = s.defaultProps, l) - d[u] === void 0 && (d[u] = l[u]); - return { $$typeof: t, type: s, key: f, ref: p, props: d, _owner: o.current }; - } - return Go.Fragment = r, Go.jsx = i, Go.jsxs = i, Go; -} -var qo = {}; -/** - * @license React - * react-jsx-runtime.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -var Yd; -function C0() { - return Yd || (Yd = 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") - return null; - var W = m && x[m] || x[h]; - return typeof W == "function" ? W : null; - } - var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function y(x) { - { - for (var W = arguments.length, K = new Array(W > 1 ? W - 1 : 0), me = 1; me < W; me++) - K[me - 1] = arguments[me]; - S("error", x, K); - } - } - function S(x, W, K) { - { - var me = b.ReactDebugCurrentFrame, Me = me.getStackAddendum(); - Me !== "" && (W += "%s", K = K.concat([Me])); - var Re = K.map(function(Pe) { - return String(Pe); - }); - Re.unshift("Warning: " + W), Function.prototype.apply.call(console[x], console, Re); - } - } - 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 || _ || 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. - x.$$typeof === z || x.getModuleId !== void 0)); - } - function X(x, W, K) { - var me = x.displayName; - if (me) - return me; - var Me = W.displayName || W.name || ""; - return Me !== "" ? K + "(" + Me + ")" : K; - } - function ne(x) { - return x.displayName || "Context"; - } - function J(x) { - if (x == null) - return null; - if (typeof x.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof x == "function") - return x.displayName || x.name || null; - if (typeof x == "string") - return x; - switch (x) { - case n: - return "Fragment"; - case r: - return "Portal"; - case a: - return "Profiler"; - case o: - return "StrictMode"; - case c: - return "Suspense"; - case u: - return "SuspenseList"; - } - if (typeof x == "object") - switch (x.$$typeof) { - case s: - var W = x; - return ne(W) + ".Consumer"; - case i: - var K = x; - return ne(K._context) + ".Provider"; - case l: - return X(x, x.render, "ForwardRef"); - case d: - var me = x.displayName || null; - return me !== null ? me : J(x.type) || "Memo"; - case f: { - var Me = x, Re = Me._payload, Pe = Me._init; - try { - return J(Pe(Re)); - } catch { - return null; - } - } - } - return null; - } - var Q = Object.assign, ee = 0, oe, D, ce, fe, F, N, V; - function T() { - } - T.__reactDisabledLog = !0; - 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; - var x = { - configurable: !0, - enumerable: !0, - value: T, - writable: !0 - }; - Object.defineProperties(console, { - info: x, - log: x, - warn: x, - error: x, - group: x, - groupCollapsed: x, - groupEnd: x - }); - } - ee++; - } - } - function B() { - { - if (ee--, ee === 0) { - var x = { - configurable: !0, - enumerable: !0, - writable: !0 - }; - Object.defineProperties(console, { - log: Q({}, x, { - value: oe - }), - info: Q({}, x, { - value: D - }), - warn: Q({}, x, { - value: ce - }), - error: Q({}, x, { - value: fe - }), - group: Q({}, x, { - value: F - }), - groupCollapsed: Q({}, x, { - value: N - }), - groupEnd: Q({}, x, { - value: V - }) - }); - } - ee < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue."); - } - } - var C = b.ReactCurrentDispatcher, H; - function O(x, W, K) { - { - if (H === void 0) - try { - throw Error(); - } catch (Me) { - var me = Me.stack.trim().match(/\n( *(at )?)/); - H = me && me[1] || ""; - } - return ` -` + H + x; - } - } - var Z = !1, Y; - { - var ae = typeof WeakMap == "function" ? WeakMap : Map; - Y = new ae(); - } - function R(x, W) { - if (!x || Z) - return ""; - { - var K = Y.get(x); - if (K !== void 0) - return K; - } - var me; - Z = !0; - var Me = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var Re; - Re = C.current, C.current = null, A(); - try { - if (W) { - var Pe = function() { - throw Error(); - }; - if (Object.defineProperty(Pe.prototype, "props", { - set: function() { - throw Error(); - } - }), typeof Reflect == "object" && Reflect.construct) { - try { - Reflect.construct(Pe, []); - } catch (Bt) { - me = Bt; - } - Reflect.construct(x, [], Pe); - } else { - try { - Pe.call(); - } catch (Bt) { - me = Bt; - } - x.call(Pe.prototype); - } - } else { - try { - throw Error(); - } catch (Bt) { - me = Bt; - } - x(); - } - } catch (Bt) { - if (Bt && me && typeof Bt.stack == "string") { - for (var Ee = Bt.stack.split(` -`), Ct = me.stack.split(` -`), ot = Ee.length - 1, ct = Ct.length - 1; ot >= 1 && ct >= 0 && Ee[ot] !== Ct[ct]; ) - ct--; - for (; ot >= 1 && ct >= 0; ot--, ct--) - if (Ee[ot] !== Ct[ct]) { - if (ot !== 1 || ct !== 1) - do - if (ot--, ct--, ct < 0 || Ee[ot] !== Ct[ct]) { - var jt = ` -` + Ee[ot].replace(" at new ", " at "); - return x.displayName && jt.includes("") && (jt = jt.replace("", x.displayName)), typeof x == "function" && Y.set(x, jt), jt; - } - while (ot >= 1 && ct >= 0); - break; - } - } - } finally { - Z = !1, C.current = Re, B(), Error.prepareStackTrace = Me; - } - 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 R(x, !1); - } - function he(x) { - var W = x.prototype; - return !!(W && W.isReactComponent); - } - function le(x, W, K) { - if (x == null) - return ""; - if (typeof x == "function") - return R(x, he(x)); - if (typeof x == "string") - return O(x); - switch (x) { - case c: - return O("Suspense"); - case u: - return O("SuspenseList"); - } - if (typeof x == "object") - switch (x.$$typeof) { - case l: - return Se(x.render); - case d: - return le(x.type, W, K); - case f: { - var me = x, Me = me._payload, Re = me._init; - try { - return le(Re(Me), W, K); - } catch { - } - } - } - return ""; - } - 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); - we.setExtraStackFrame(K); - } else - we.setExtraStackFrame(null); - } - function ke(x, W, K, me, Me) { - { - var Re = Function.call.bind(De); - for (var Pe in x) - if (Re(x, Pe)) { - var Ee = void 0; - try { - if (typeof x[Pe] != "function") { - var Ct = Error((me || "React class") + ": " + K + " type `" + Pe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof x[Pe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - throw Ct.name = "Invariant Violation", Ct; - } - Ee = x[Pe](W, Pe, me, K, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (ot) { - Ee = ot; - } - 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)); - } - } - } - var dt = Array.isArray; - function rt(x) { - return dt(x); - } - function Ie(x) { - { - var W = typeof Symbol == "function" && Symbol.toStringTag, K = W && x[Symbol.toStringTag] || x.constructor.name || "Object"; - return K; - } - } - function se(x) { - try { - return Oe(x), !1; - } catch { - return !0; - } - } - 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.", Ie(x)), Oe(x); - } - var xt = b.ReactCurrentOwner, lt = { - key: !0, - ref: !0, - __self: !0, - __source: !0 - }, Vr, Lr, Wr; - Wr = {}; - function te(x) { - if (De.call(x, "ref")) { - var W = Object.getOwnPropertyDescriptor(x, "ref").get; - if (W && W.isReactWarning) - return !1; - } - return x.ref !== void 0; - } - function ve(x) { - if (De.call(x, "key")) { - var W = Object.getOwnPropertyDescriptor(x, "key").get; - if (W && W.isReactWarning) - return !1; - } - return x.key !== void 0; - } - function kr(x, W) { - if (typeof x.ref == "string" && xt.current && W && xt.current.stateNode !== W) { - var K = J(xt.current.type); - 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 q(x, W) { - { - var K = function() { - 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, - configurable: !0 - }); - } - } - function ie(x, W) { - { - var K = function() { - 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, - configurable: !0 - }); - } - } - 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, - // Built-in properties that belong on the element - type: x, - key: W, - ref: K, - props: Pe, - // Record the component responsible for creating this element. - _owner: Re - }; - return Ee._store = {}, Object.defineProperty(Ee._store, "validated", { - configurable: !1, - enumerable: !1, - writable: !0, - value: !1 - }), Object.defineProperty(Ee, "_self", { - configurable: !1, - enumerable: !1, - writable: !1, - value: me - }), Object.defineProperty(Ee, "_source", { - configurable: !1, - enumerable: !1, - writable: !1, - value: Me - }), Object.freeze && (Object.freeze(Ee.props), Object.freeze(Ee)), Ee; - }; - function Ce(x, W, K, me, Me) { - { - 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 (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 && q(Pe, ct), Ct && ie(Pe, ct); - } - return xe(x, Ee, Ct, Me, me, xt.current, Pe); - } - } - var He = b.ReactCurrentOwner, wt = b.ReactDebugCurrentFrame; - function Ze(x) { - if (x) { - var W = x._owner, K = le(x.type, x._source, W ? W.type : null); - wt.setExtraStackFrame(K); - } else - wt.setExtraStackFrame(null); - } - var nt; - nt = !1; - function Ur(x) { - return typeof x == "object" && x !== null && x.$$typeof === t; - } - function Er() { - { - if (He.current) { - var x = J(He.current.type); - if (x) - return ` - -Check the render method of \`` + x + "`."; - } - return ""; - } - } - function cl(x) { - { - if (x !== void 0) { - var W = x.fileName.replace(/^.*[\\\/]/, ""), K = x.lineNumber; - return ` - -Check your code at ` + W + ":" + K + "."; - } - return ""; - } - } - var ui = {}; - function ul(x) { - { - var W = Er(); - if (!W) { - var K = typeof x == "string" ? x : x.displayName || x.name; - K && (W = ` - -Check the top-level render call using <` + K + ">."); - } - return W; - } - } - function di(x, W) { - { - if (!x._store || x._store.validated || x.key != null) - return; - x._store.validated = !0; - var K = ul(W); - if (ui[K]) - return; - ui[K] = !0; - var me = ""; - x && x._owner && x._owner !== He.current && (me = " It was passed a child from " + J(x._owner.type) + "."), Ze(x), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, me), Ze(null); - } - } - function fi(x, W) { - { - if (typeof x != "object") - return; - if (rt(x)) - for (var K = 0; K < x.length; K++) { - var me = x[K]; - Ur(me) && di(me, W); - } - else if (Ur(x)) - x._store && (x._store.validated = !0); - else if (x) { - 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); - } - } - } - function fr(x) { - { - var W = x.type; - if (W == null || typeof W == "string") - return; - var K; - if (typeof W == "function") - K = W.propTypes; - else if (typeof W == "object" && (W.$$typeof === l || // Note: Memo only checks outer props here. - // Inner props are checked in the reconciler. - W.$$typeof === d)) - K = W.propTypes; - else - return; - if (K) { - var me = J(W); - ke(K, x.props, "prop", me, x); - } else if (W.PropTypes !== void 0 && !nt) { - nt = !0; - 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 dl(x) { - { - for (var W = Object.keys(x.props), K = 0; K < W.length; K++) { - var me = W[K]; - if (me !== "children" && me !== "key") { - Ze(x), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", me), Ze(null); - break; - } - } - x.ref !== null && (Ze(x), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null)); - } - } - 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 = 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, Me, Re); - if (ct == null) - return ct; - if (Pe) { - var jt = W.children; - if (jt !== void 0) - if (me) - if (rt(jt)) { - for (var Pr = 0; Pr < jt.length; Pr++) - fi(jt[Pr], x); - Object.freeze && Object.freeze(jt); - } else - y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); - else - fi(jt, x); - } - return x === n ? dl(ct) : fr(ct), ct; - } - } - function fl(x, W, K) { - return pi(x, W, K, !0); - } - function pl(x, W, K) { - return pi(x, W, K, !1); - } - var hl = pl, ln = fl; - qo.Fragment = n, qo.jsx = hl, qo.jsxs = ln; - }()), qo; -} -process.env.NODE_ENV === "production" ? Cc.exports = w0() : Cc.exports = C0(); -var L = Cc.exports, Pa = {}; -function Ta(e) { - "@babel/helpers - typeof"; - 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; - }, Ta(e); -} -function _0(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 (Ta(n) !== "object") - return n; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (t === "string" ? String : Number)(e); -} -function k0(e) { - var t = _0(e, "string"); - return Ta(t) === "symbol" ? t : String(t); -} -function Cu(e, t, r) { - return t = k0(t), t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r, e; -} -function ym(e) { - var t = {}; - return function(r) { - return t[r] === void 0 && (t[r] = e(r)), t[r]; - }; -} -var E0 = /^((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)-.*))$/, xm = ym( - function(e) { - return E0.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; - } - /* Z+1 */ -); -function _c(e, t) { - return _c = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) { - return n.__proto__ = o, n; - }, _c(e, t); -} -function P0(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, _c(e, t); -} -function T0(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 A0(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 O0 = /* @__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 = A0(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 = T0(i); - try { - var l = n.charCodeAt(1) === 105 && n.charCodeAt(0) === 64; - s.insertRule( - n, - // we need to insert @import rules before anything else - // otherwise there will be an error - // technically this means that the @import rules will - // _usually_(not always since there could be multiple style tags) - // be the first ones in prod and generally later in dev - // this shouldn't really matter in the real world though - // @import is generally only used for font faces from google fonts and etc. - // so while this could be technically correct then it would be slower and larger - // for a tiny bit of correctness that won't matter in the real world - l ? 0 : s.cssRules.length - ); - } catch (c) { - process.env.NODE_ENV !== "production" && console.warn('There was a problem inserting the following rule: "' + n + '"', c); - } - } else - i.appendChild(document.createTextNode(n)); - this.ctr++; - }, t.flush = function() { - this.tags.forEach(function(n) { - return n.parentNode.removeChild(n); - }), this.tags = [], this.ctr = 0; - }, e; -}(); -function R0(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 (R) { - case 32: - case 9: - case 59: - case 13: - case 10: - break; - default: - se += A.charAt(ye); - } - R = 59; - } - switch (R) { - case 123: - for (se = se.trim(), ae = se.charCodeAt(0), le = 1, ke = ++ye; ye < dt; ) { - switch (R = A.charCodeAt(ye)) { - case 123: - le++; - break; - case 125: - le--; - break; - case 47: - switch (R = A.charCodeAt(ye + 1)) { - case 42: - case 47: - e: { - for (De = ye + 1; De < rt; ++De) - switch (A.charCodeAt(De)) { - case 47: - if (R === 42 && A.charCodeAt(De - 1) === 42 && ye + 2 !== De) { - ye = De + 1; - break e; - } - break; - case 10: - if (R === 47) { - ye = De + 1; - break e; - } - } - ye = De; - } - } - break; - case 91: - R++; - case 40: - R++; - case 34: - case 39: - for (; ye++ < rt && A.charCodeAt(ye) !== R; ) - ; - } - if (le === 0) - break; - ye++; - } - 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, "")), R = se.charCodeAt(1), R) { - case 100: - case 109: - case 115: - case 45: - we = T; - break; - default: - we = oe; - } - 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: - case 109: - case 45: - le = se + "{" + le + "}"; - break; - case 107: - 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 = (Oe += le, "")); - } - else - le = ""; - break; - default: - le = t(T, r(T, se, ht), le, B, C + 1); - } - 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 (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 (R === 105 || R === 99) { - xt += se + A.charAt(ye); - break; - } - default: - se.charCodeAt(ke - 1) !== 58 && (Oe += o(se, ae, R, se.charCodeAt(2))); - } - ht = we = De = ae = 0, se = "", R = A.charCodeAt(++ye); - } - } - switch (R) { - case 13: - case 10: - 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 (O + Y + Z + H === 0) { - ne++; - break; - } - default: - switch (ne++, Ie = A.charAt(ye), R) { - case 9: - case 32: - if (Y + H + O === 0) - switch (Se) { - case 44: - case 58: - case 9: - case 32: - Ie = ""; - break; - default: - R !== 32 && (Ie = " "); - } - break; - case 0: - Ie = "\\0"; - break; - case 12: - Ie = "\\f"; - break; - case 11: - Ie = "\\v"; - break; - case 38: - Y + O + H === 0 && (we = ht = 1, Ie = "\f" + Ie); - break; - case 108: - if (Y + O + H + Q === 0 && 0 < De) - switch (ye - De) { - case 2: - Se === 112 && A.charCodeAt(ye - 3) === 58 && (Q = Se); - case 8: - he === 111 && (Q = he); - } - break; - case 58: - Y + O + H === 0 && (De = ye); - break; - case 44: - O + Z + Y + H === 0 && (we = 1, Ie += "\r"); - break; - case 34: - case 39: - O === 0 && (Y = Y === R ? 0 : Y === 0 ? R : Y); - break; - case 91: - Y + O + Z === 0 && H++; - break; - case 93: - Y + O + Z === 0 && H--; - break; - case 41: - Y + O + H === 0 && Z--; - break; - case 40: - if (Y + O + H === 0) { - if (ae === 0) - switch (2 * Se + 3 * he) { - case 533: - break; - default: - ae = 1; - } - Z++; - } - break; - case 64: - O + Z + Y + H + De + le === 0 && (le = 1); - break; - case 42: - case 47: - if (!(0 < Y + H + Z)) - switch (O) { - case 0: - switch (2 * R + 3 * A.charCodeAt(ye + 1)) { - case 235: - O = 47; - break; - case 220: - ke = ye, O = 42; - } - break; - case 42: - R === 47 && Se === 42 && ke + 2 !== ye && (A.charCodeAt(ke + 2) === 33 && (Oe += A.substring(ke, ye + 1)), Ie = "", O = 0); - } - } - O === 0 && (se += Ie); - } - he = Se, Se = R, ye++; - } - 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: - Oe = Oe.replace(_, ":-moz-$1") + Oe; - break; - case 112: - Oe = Oe.replace(S, "::-webkit-input-$1") + Oe.replace(S, "::-moz-$1") + Oe.replace(S, ":-ms-input-$1") + Oe; - } - Q = 0; - } - } - return xt + Oe + Ot; - } - 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 O = 0; - for (V = H === 0 ? "" : V[0] + " "; O < C; ++O) - T[O] = n(V, T[O], A).trim(); - break; - default: - var Z = O = 0; - for (T = []; O < C; ++O) - for (var Y = 0; Y < H; ++Y) - T[Z++] = n(V[Y] + " ", B[O], A).trim(); - } - return T; - } - function n(V, T, A) { - var B = T.charCodeAt(0); - switch (33 > B && (B = (T = T.trim()).charCodeAt(0)), B) { - case 38: - return T.replace(b, "$1" + V.trim()); - case 58: - return V.trim() + T.replace(b, "$1" + V.trim()); - default: - 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, A, B) { - var C = V + ";", H = 2 * T + 3 * A + 4 * B; - if (H === 944) { - V = C.indexOf(":", 9) + 1; - 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; - switch (H) { - case 1015: - return C.charCodeAt(10) === 97 ? "-webkit-" + C + C : C; - case 951: - return C.charCodeAt(3) === 116 ? "-webkit-" + C + C : C; - case 963: - return C.charCodeAt(5) === 110 ? "-webkit-" + C + C : C; - case 1009: - if (C.charCodeAt(4) !== 100) - break; - case 969: - case 942: - return "-webkit-" + C + C; - case 978: - return "-webkit-" + C + "-moz-" + C + C; - case 1019: - case 983: - return "-webkit-" + C + "-moz-" + C + "-ms-" + C + C; - case 883: - if (C.charCodeAt(8) === 45) - return "-webkit-" + C + C; - if (0 < C.indexOf("image-set(", 11)) - return C.replace(X, "$1-webkit-$2") + C; - break; - case 932: - if (C.charCodeAt(4) === 45) - switch (C.charCodeAt(5)) { - case 103: - return "-webkit-box-" + C.replace("-grow", "") + "-webkit-" + C + "-ms-" + C.replace("grow", "positive") + C; - case 115: - return "-webkit-" + C + "-ms-" + C.replace("shrink", "negative") + C; - case 98: - return "-webkit-" + C + "-ms-" + C.replace("basis", "preferred-size") + C; - } - return "-webkit-" + C + "-ms-" + C + C; - case 964: - return "-webkit-" + C + "-ms-flex-" + C + C; - case 1023: - if (C.charCodeAt(8) !== 99) - break; - 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 (O = C.substring(13).trim(), T = O.indexOf("-") + 1, O.charCodeAt(0) + O.charCodeAt(T)) { - case 226: - O = C.replace(w, "tb"); - break; - case 232: - O = C.replace(w, "tb-rl"); - break; - case 220: - O = C.replace(w, "lr"); - break; - default: - return C; - } - return "-webkit-" + C + "-ms-" + O + C; - case 1017: - if (C.indexOf("sticky", 9) === -1) - break; - case 975: - 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 > O.charCodeAt(8)) - break; - case 115: - C = C.replace(O, "-webkit-" + O) + ";" + C; - break; - case 207: - case 102: - 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 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: - return "-webkit-" + C + "-ms-flex-line-pack" + C.replace("align-content", "").replace(I, "") + C; - } - break; - case 973: - case 989: - if (C.charCodeAt(3) !== 45 || C.charCodeAt(4) === 122) - break; - case 931: - case 953: - if (j.test(V) === !0) - 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, 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 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 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, 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: - case null: - break; - default: - Se = he; - } - if (Se !== T) - return Se; - } - function l(V) { - switch (V) { - case void 0: - case null: - ce = D.length = 0; - break; - default: - if (typeof V == "function") - D[ce++] = V; - else if (typeof V == "object") - for (var T = 0, A = V.length; T < A; ++T) - l(V[T]); - else - F = !!V | 0; - } - return l; - } - function c(V) { - 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 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, 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, _ = /:(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 Gd = function(t) { - var r = /* @__PURE__ */ new WeakMap(); - return function(n) { - if (r.has(n)) - return r.get(n); - var o = t(n); - return r.set(n, o), o; - }; -}, kc = "/*|*/", $0 = kc + "}"; -function D0(e) { - e && Aa.current.insert(e + "}"); -} -var Aa = { - current: null -}, M0 = function(t, r, n, o, a, i, s, l, c, u) { - switch (t) { - case 1: { - switch (r.charCodeAt(0)) { - case 64: - return Aa.current.insert(r + ";"), ""; - case 108: - if (r.charCodeAt(2) === 98) - return ""; - } - break; - } - case 2: { - if (l === 0) - return r + kc; - break; - } - case 3: - switch (l) { - case 102: - case 112: - return Aa.current.insert(n[0] + r), ""; - default: - return r + (u === 0 ? kc : ""); - } - case -2: - r.split($0).forEach(D0); - } -}, I0 = function(t) { - t === void 0 && (t = {}); - var r = t.key || "css", n; - t.prefix !== void 0 && (n = { - prefix: t.prefix - }); - var o = new R0(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; - { - i = t.container || document.head; - var s = document.querySelectorAll("style[data-emotion-" + r + "]"); - Array.prototype.forEach.call(s, function(f) { - var p = f.getAttribute("data-emotion-" + r); - p.split(" ").forEach(function(m) { - a[m] = !0; - }), f.parentNode !== i && i.appendChild(f); - }); - } - var l; - if (o.use(t.stylisPlugins)(M0), l = function(p, m, h, v) { - var b = m.name; - if (Aa.current = h, process.env.NODE_ENV !== "production" && m.map !== void 0) { - var y = m.map; - Aa.current = { - insert: function(_) { - h.insert(_ + y); - } - }; - } - o(p, m.styles), v && (d.inserted[b] = !0); - }, process.env.NODE_ENV !== "production") { - var c = /\/\*/g, u = /\*\//g; - o.use(function(f, p) { - switch (f) { - case -1: { - for (; c.test(p); ) { - if (u.lastIndex = c.lastIndex, u.test(p)) { - c.lastIndex = u.lastIndex; - continue; - } - throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").'); - } - c.lastIndex = 0; - break; - } - } - }), o.use(function(f, p, m) { - switch (f) { - case -1: { - var h = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", v = p.match(/(:first|:nth|:nth-last)-child/g); - v && d.compat !== !0 && v.forEach(function(b) { - var y = new RegExp(b + ".*\\/\\* " + h + " \\*\\/"), S = y.test(p); - b && !S && console.error('The pseudo class "' + b + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + b.split("-child")[0] + '-of-type".'); - }); - break; - } - } - }); - } - var d = { - key: r, - sheet: new O0({ - key: r, - container: i, - nonce: t.nonce, - speedy: t.speedy - }), - nonce: t.nonce, - inserted: a, - registered: {}, - insert: l - }; - return d; -}, F0 = !0; -function Sm(e, t, r) { - var n = ""; - return r.split(" ").forEach(function(o) { - e[o] !== void 0 ? t.push(e[o]) : n += o + " "; - }), n; -} -var wm = function(t, r, n) { - var o = t.key + "-" + r.name; - if ( - // we only need to add the styles to the registered cache if the - // class name could be used further down - // the tree but if it's a string tag, we know it won't - // so we don't have to add it to registered cache. - // this improves memory usage since we can avoid storing the whole style string - (n === !1 || // we need to always store it if we're in compat mode and - // 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 - F0 === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles), t.inserted[r.name] === void 0 - ) { - var a = r; - do - t.insert("." + o, a, t.sheet, !0), a = a.next; - while (a !== void 0); - } -}; -function N0(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: */ - r >>> 24, t = /* Math.imul(k, m): */ - (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ - (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16); - switch (o) { - case 3: - t ^= (e.charCodeAt(n + 2) & 255) << 16; - case 2: - t ^= (e.charCodeAt(n + 1) & 255) << 8; - case 1: - t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */ - (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16); - } - return t ^= t >>> 13, t = /* Math.imul(h, m): */ - (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36); -} -var j0 = { - animationIterationCount: 1, - borderImageOutset: 1, - borderImageSlice: 1, - borderImageWidth: 1, - boxFlex: 1, - boxFlexGroup: 1, - boxOrdinalGroup: 1, - columnCount: 1, - columns: 1, - flex: 1, - flexGrow: 1, - flexPositive: 1, - flexShrink: 1, - flexNegative: 1, - flexOrder: 1, - gridRow: 1, - gridRowEnd: 1, - gridRowSpan: 1, - gridRowStart: 1, - gridColumn: 1, - gridColumnEnd: 1, - gridColumnSpan: 1, - gridColumnStart: 1, - msGridRow: 1, - msGridRowSpan: 1, - msGridColumn: 1, - msGridColumnSpan: 1, - fontWeight: 1, - lineHeight: 1, - opacity: 1, - order: 1, - orphans: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - // SVG-related properties - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1 -}, qd = `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`, B0 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", z0 = /[A-Z]|^ms/g, Cm = /_EMO_([^_]+?)_([^]*?)_EMO_/g, _u = function(t) { - return t.charCodeAt(1) === 45; -}, Xd = function(t) { - return t != null && typeof t != "boolean"; -}, _l = ym(function(e) { - return _u(e) ? e : e.replace(z0, "-$&").toLowerCase(); -}), ss = function(t, r) { - switch (t) { - case "animation": - case "animationName": - if (typeof r == "string") - return r.replace(Cm, function(n, o, a) { - return vr = { - name: o, - styles: a, - next: vr - }, o; - }); - } - return j0[t] !== 1 && !_u(t) && typeof r == "number" && r !== 0 ? r + "px" : r; -}; -if (process.env.NODE_ENV !== "production") { - var V0 = /(attr|calc|counters?|url)\(/, L0 = ["normal", "none", "counter", "open-quote", "close-quote", "no-open-quote", "no-close-quote", "initial", "inherit", "unset"], W0 = ss, U0 = /^-ms-/, H0 = /-(.)/g, Kd = {}; - ss = function(t, r) { - t === "content" && (typeof r != "string" || L0.indexOf(r) === -1 && !V0.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 = W0(t, r); - return n !== "" && !_u(t) && t.indexOf("-") !== -1 && Kd[t] === void 0 && (Kd[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(U0, "ms-").replace(H0, function(o, a) { - return a.toUpperCase(); - }) + "?")), n; - }; -} -var Zd = !0; -function Oa(e, t, r, n) { - if (r == null) - return ""; - if (r.__emotion_styles !== void 0) { - if (process.env.NODE_ENV !== "production" && r.toString() === "NO_COMPONENT_SELECTOR") - throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion."); - return r; - } - switch (typeof r) { - case "boolean": - return ""; - case "object": { - if (r.anim === 1) - return vr = { - name: r.name, - styles: r.styles, - next: vr - }, r.name; - if (r.styles !== void 0) { - var o = r.next; - if (o !== void 0) - for (; o !== void 0; ) - vr = { - name: o.name, - styles: o.styles, - next: vr - }, o = o.next; - var a = r.styles + ";"; - return process.env.NODE_ENV !== "production" && r.map !== void 0 && (a += r.map), a; - } - return Y0(e, t, r); - } - case "function": { - if (e !== void 0) { - var i = vr, s = r(e); - 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(Cm, function(d, f, p) { - var m = "animation" + l.length; - return l.push("const " + m + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + m + "}"; - }); - l.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(l, ["`" + c + "`"]).join(` -`) + ` - -You should wrap it with \`css\` like this: - -` + ("css`" + c + "`")); - } - break; - } - if (t == null) - return r; - var u = t[r]; - return process.env.NODE_ENV !== "production" && n && Zd && 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"), Zd = !1), u !== void 0 && !n ? u : r; -} -function Y0(e, t, r) { - var n = ""; - if (Array.isArray(r)) - for (var o = 0; o < r.length; o++) - 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] + "}" : Xd(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++) - Xd(i[s]) && (n += _l(a) + ":" + ss(a, i[s]) + ";"); - else { - var l = Oa(e, t, i, !1); - switch (a) { - case "animation": - case "animationName": { - n += _l(a) + ":" + l + ";"; - break; - } - default: - process.env.NODE_ENV !== "production" && a === "undefined" && console.error(B0), n += a + "{" + l + "}"; - } - } - } - } - return n; -} -var Jd = /label:\s*([^\s;\n{]+)\s*;/g, _m; -process.env.NODE_ENV !== "production" && (_m = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//); -var vr, Ec = 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 += Oa(n, r, i, !1)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(qd), a += i[0]); - for (var s = 1; s < t.length; 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(qd), a += i[s]); - var l; - process.env.NODE_ENV !== "production" && (a = a.replace(_m, function(f) { - return l = f, ""; - })), Jd.lastIndex = 0; - for (var c = "", u; (u = Jd.exec(a)) !== null; ) - c += "-" + // $FlowFixMe we know it's not null - u[1]; - var d = N0(a) + c; - return process.env.NODE_ENV !== "production" ? { - name: d, - styles: a, - map: l, - next: vr, - toString: function() { - return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; - } - } : { - name: d, - styles: a, - next: vr - }; -}, G0 = Object.prototype.hasOwnProperty, km = /* @__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" ? I0() : null -), Ra = /* @__PURE__ */ Cr({}); -km.Provider; -var Em = function(t) { - var r = function(o, a) { - return /* @__PURE__ */ ir(km.Consumer, null, function(i) { - return t(o, i, a); - }); - }; - return /* @__PURE__ */ At(r); -}, Qd = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ef = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", q0 = function() { - return null; -}, tf = 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[Qd], s = [a], l = ""; - typeof r.className == "string" ? l = Sm(t.registered, s, r.className) : r.className != null && (l = r.className + " "); - var c = Ec(s); - if (process.env.NODE_ENV !== "production" && c.name.indexOf("-") === -1) { - var u = r[ef]; - u && (c = Ec([c, "label:" + u + ";"])); - } - wm(t, c, typeof i == "string"), l += t.key + "-" + c.name; - var d = {}; - for (var f in r) - G0.call(r, f) && f !== "css" && f !== Qd && (process.env.NODE_ENV === "production" || f !== ef) && (d[f] = r[f]); - d.ref = o, d.className = l; - var p = /* @__PURE__ */ ir(i, d), m = /* @__PURE__ */ ir(q0, null); - return /* @__PURE__ */ ir(Su, null, m, p); -}, X0 = /* @__PURE__ */ Em(function(e, t, r) { - return typeof e.css == "function" ? /* @__PURE__ */ ir(Ra.Consumer, null, function(n) { - return tf(t, e, n, r); - }) : tf(t, e, null, r); -}); -process.env.NODE_ENV !== "production" && (X0.displayName = "EmotionCssPropInternal"); -var K0 = xm, Z0 = function(t) { - return t !== "theme" && t !== "innerRef"; -}, rf = 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 ? K0 : Z0; -}; -function nf(e, t) { - var r = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var n = Object.getOwnPropertySymbols(e); - t && (n = n.filter(function(o) { - return Object.getOwnPropertyDescriptor(e, o).enumerable; - })), r.push.apply(r, n); - } - return r; -} -function J0(e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t] != null ? arguments[t] : {}; - t % 2 ? nf(Object(r), !0).forEach(function(n) { - Cu(e, n, r[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : nf(Object(r)).forEach(function(n) { - Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); - }); - } - return e; -} -var of = `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`, Q0 = function() { - return null; -}, ex = 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, o, a; - r !== void 0 && (n = r.label, a = r.target, o = t.__emotion_forwardProp && r.shouldForwardProp ? function(u) { - return t.__emotion_forwardProp(u) && // $FlowFixMe - r.shouldForwardProp(u); - } : 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 || rf(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(of), 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(of), d.push(u[p], u[0][p]); - } - var m = Em(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" ? _ = Sm(v.registered, w, h.className) : h.className != null && (_ = h.className + " "); - var I = Ec(d.concat(w), v.registered, M); - wm(v, I, typeof S == "string"), _ += v.key + "-" + I.name, a !== void 0 && (_ += " " + a); - var z = c && o === void 0 ? rf(S) : l, j = {}; - for (var X in h) - c && X === "as" || // $FlowFixMe - z(X) && (j[X] = h[X]); - 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(Q0, null); - return /* @__PURE__ */ ir(Su, 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", { - value: function() { - return a === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + a; - } - }), m.withComponent = function(h, v) { - return e(h, v !== void 0 ? J0({}, r || {}, {}, v) : r).apply(void 0, d); - }, m; - }; -}, tx = [ - "a", - "abbr", - "address", - "area", - "article", - "aside", - "audio", - "b", - "base", - "bdi", - "bdo", - "big", - "blockquote", - "body", - "br", - "button", - "canvas", - "caption", - "cite", - "code", - "col", - "colgroup", - "data", - "datalist", - "dd", - "del", - "details", - "dfn", - "dialog", - "div", - "dl", - "dt", - "em", - "embed", - "fieldset", - "figcaption", - "figure", - "footer", - "form", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "head", - "header", - "hgroup", - "hr", - "html", - "i", - "iframe", - "img", - "input", - "ins", - "kbd", - "keygen", - "label", - "legend", - "li", - "link", - "main", - "map", - "mark", - "marquee", - "menu", - "menuitem", - "meta", - "meter", - "nav", - "noscript", - "object", - "ol", - "optgroup", - "option", - "output", - "p", - "param", - "picture", - "pre", - "progress", - "q", - "rp", - "rt", - "ruby", - "s", - "samp", - "script", - "section", - "select", - "small", - "source", - "span", - "strong", - "style", - "sub", - "summary", - "sup", - "table", - "tbody", - "td", - "textarea", - "tfoot", - "th", - "thead", - "time", - "title", - "tr", - "track", - "u", - "ul", - "var", - "video", - "wbr", - // SVG - "circle", - "clipPath", - "defs", - "ellipse", - "foreignObject", - "g", - "image", - "line", - "linearGradient", - "mask", - "path", - "pattern", - "polygon", - "polyline", - "radialGradient", - "rect", - "stop", - "svg", - "text", - "tspan" -], Pc = ex.bind(); -tx.forEach(function(e) { - Pc[e] = Pc(e); -}); -const rx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - default: Pc -}, Symbol.toStringTag, { value: "Module" })), nx = /* @__PURE__ */ Is(rx); -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ -var af = Object.getOwnPropertySymbols, ox = Object.prototype.hasOwnProperty, ax = Object.prototype.propertyIsEnumerable; -function ix(e) { - if (e == null) - throw new TypeError("Object.assign cannot be called with null or undefined"); - return Object(e); -} -function sx() { - try { - if (!Object.assign) - return !1; - var e = new String("abc"); - if (e[5] = "de", Object.getOwnPropertyNames(e)[0] === "5") - return !1; - for (var t = {}, r = 0; r < 10; r++) - t["_" + String.fromCharCode(r)] = r; - var n = Object.getOwnPropertyNames(t).map(function(a) { - return t[a]; - }); - if (n.join("") !== "0123456789") - return !1; - var o = {}; - return "abcdefghijklmnopqrst".split("").forEach(function(a) { - o[a] = a; - }), Object.keys(Object.assign({}, o)).join("") === "abcdefghijklmnopqrst"; - } catch { - return !1; - } -} -var Pm = sx() ? Object.assign : function(e, t) { - for (var r, n = ix(e), o, a = 1; a < arguments.length; a++) { - r = Object(arguments[a]); - for (var i in r) - ox.call(r, i) && (n[i] = r[i]); - if (af) { - o = af(r); - for (var s = 0; s < o.length; s++) - ax.call(r, o[s]) && (n[o[s]] = r[o[s]]); - } - } - return n; -}; -const xr = /* @__PURE__ */ Ms(Pm); -var sf = 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) { - var r = {}; - return Object.keys(t).sort(function(n, o) { - return n.localeCompare(o, void 0, { - numeric: !0, - sensitivity: "base" - }); - }).forEach(function(n) { - r[n] = t[n]; - }), r; -}, cx = { - breakpoints: [40, 52, 64].map(function(e) { - return e + "em"; - }) -}, Tm = function(t) { - return "@media screen and (min-width: " + t + ")"; -}, ux = 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; -}, Za = function e(t) { - var r = {}, n = function(i) { - 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 = en(i.theme, d.scale, d.defaults); - if (typeof f == "object") { - if (r.breakpoints = !c && r.breakpoints || en(i.theme, "breakpoints", cx.breakpoints), Array.isArray(f)) { - r.media = !c && r.media || [null].concat(r.breakpoints.map(Tm)), s = sf(s, dx(r.media, d, p, f, i)); - continue; - } - f !== null && (s = sf(s, fx(r.breakpoints, d, p, f, i)), l = !0); - continue; - } - xr(s, d(f, p, i)); - } - return l && (s = lx(s)), s; - }; - n.config = t, n.propNames = Object.keys(t), n.cache = r; - var o = Object.keys(t).filter(function(a) { - return a !== "config"; - }); - return o.length > 1 && o.forEach(function(a) { - var i; - n[a] = e((i = {}, i[a] = t[a], i)); - }), n; -}, dx = 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); - if (!c) - xr(i, u); - else { - var d; - xr(i, (d = {}, d[c] = xr({}, i[c], u), d)); - } - }), i; -}, fx = 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 = Tm(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; - r = r || [n]; - var l = function(u, d, f) { - var p = {}, m = i(u, d, f); - if (m !== null) - return r.forEach(function(h) { - p[h] = m; - }), p; - }; - return l.scale = o, l.defaults = s, l; -}, dr = function(t) { - t === void 0 && (t = {}); - var r = {}; - Object.keys(t).forEach(function(o) { - var a = t[o]; - if (a === !0) { - r[o] = ls({ - property: o, - scale: o - }); - return; - } - if (typeof a == "function") { - r[o] = a; - return; - } - r[o] = ls(a); - }); - var n = Za(r); - return n; -}, ku = function() { - for (var t = {}, r = arguments.length, n = new Array(r), o = 0; o < r; o++) - n[o] = arguments[o]; - n.forEach(function(i) { - !i || !i.config || xr(t, i.config); - }); - var a = Za(t); - return a; -}, px = function(t) { - return typeof t == "number" && !isNaN(t); -}, hx = function(t, r) { - return en(r, t, !px(t) || t > 1 ? t : t * 100 + "%"); -}, mx = { - width: { - property: "width", - scale: "sizes", - transform: hx - }, - height: { - property: "height", - scale: "sizes" - }, - minWidth: { - property: "minWidth", - scale: "sizes" - }, - minHeight: { - property: "minHeight", - scale: "sizes" - }, - maxWidth: { - property: "maxWidth", - scale: "sizes" - }, - maxHeight: { - property: "maxHeight", - scale: "sizes" - }, - size: { - properties: ["width", "height"], - scale: "sizes" - }, - overflow: !0, - overflowX: !0, - overflowY: !0, - display: !0, - verticalAlign: !0 -}, Gt = dr(mx), Tc = { - color: { - property: "color", - scale: "colors" - }, - backgroundColor: { - property: "backgroundColor", - scale: "colors" - }, - opacity: !0 -}; -Tc.bg = Tc.backgroundColor; -var Eu = dr(Tc), vx = { - fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72] -}, gx = { - fontFamily: { - property: "fontFamily", - scale: "fonts" - }, - fontSize: { - property: "fontSize", - scale: "fontSizes", - defaultScale: vx.fontSizes - }, - fontWeight: { - property: "fontWeight", - scale: "fontWeights" - }, - lineHeight: { - property: "lineHeight", - scale: "lineHeights" - }, - letterSpacing: { - property: "letterSpacing", - scale: "letterSpacings" - }, - textAlign: !0, - fontStyle: !0 -}, an = dr(gx), bx = { - alignItems: !0, - alignContent: !0, - justifyItems: !0, - justifyContent: !0, - flexWrap: !0, - flexDirection: !0, - // item - flex: !0, - flexGrow: !0, - flexShrink: !0, - flexBasis: !0, - justifySelf: !0, - alignSelf: !0, - order: !0 -}, Ft = dr(bx), kl = { - space: [0, 4, 8, 16, 32, 64, 128, 256, 512] -}, yx = { - gridGap: { - property: "gridGap", - scale: "space", - defaultScale: kl.space - }, - gridColumnGap: { - property: "gridColumnGap", - scale: "space", - defaultScale: kl.space - }, - gridRowGap: { - property: "gridRowGap", - scale: "space", - defaultScale: kl.space - }, - gridColumn: !0, - gridRow: !0, - gridAutoFlow: !0, - gridAutoColumns: !0, - gridAutoRows: !0, - gridTemplateColumns: !0, - gridTemplateRows: !0, - gridTemplateAreas: !0, - gridArea: !0 -}, qt = dr(yx), Pt = { - border: { - property: "border", - scale: "borders" - }, - borderWidth: { - property: "borderWidth", - scale: "borderWidths" - }, - borderStyle: { - property: "borderStyle", - scale: "borderStyles" - }, - borderColor: { - property: "borderColor", - scale: "colors" - }, - borderRadius: { - property: "borderRadius", - scale: "radii" - }, - borderTop: { - property: "borderTop", - scale: "borders" - }, - borderTopLeftRadius: { - property: "borderTopLeftRadius", - scale: "radii" - }, - borderTopRightRadius: { - property: "borderTopRightRadius", - scale: "radii" - }, - borderRight: { - property: "borderRight", - scale: "borders" - }, - borderBottom: { - property: "borderBottom", - scale: "borders" - }, - borderBottomLeftRadius: { - property: "borderBottomLeftRadius", - scale: "radii" - }, - borderBottomRightRadius: { - property: "borderBottomRightRadius", - scale: "radii" - }, - borderLeft: { - property: "borderLeft", - scale: "borders" - }, - borderX: { - properties: ["borderLeft", "borderRight"], - scale: "borders" - }, - borderY: { - properties: ["borderTop", "borderBottom"], - scale: "borders" - } -}; -Pt.borderTopWidth = { - property: "borderTopWidth", - scale: "borderWidths" -}; -Pt.borderTopColor = { - property: "borderTopColor", - scale: "colors" -}; -Pt.borderTopStyle = { - property: "borderTopStyle", - scale: "borderStyles" -}; -Pt.borderTopLeftRadius = { - property: "borderTopLeftRadius", - scale: "radii" -}; -Pt.borderTopRightRadius = { - property: "borderTopRightRadius", - scale: "radii" -}; -Pt.borderBottomWidth = { - property: "borderBottomWidth", - scale: "borderWidths" -}; -Pt.borderBottomColor = { - property: "borderBottomColor", - scale: "colors" -}; -Pt.borderBottomStyle = { - property: "borderBottomStyle", - scale: "borderStyles" -}; -Pt.borderBottomLeftRadius = { - property: "borderBottomLeftRadius", - scale: "radii" -}; -Pt.borderBottomRightRadius = { - property: "borderBottomRightRadius", - scale: "radii" -}; -Pt.borderLeftWidth = { - property: "borderLeftWidth", - scale: "borderWidths" -}; -Pt.borderLeftColor = { - property: "borderLeftColor", - scale: "colors" -}; -Pt.borderLeftStyle = { - property: "borderLeftStyle", - scale: "borderStyles" -}; -Pt.borderRightWidth = { - property: "borderRightWidth", - scale: "borderWidths" -}; -Pt.borderRightColor = { - property: "borderRightColor", - scale: "colors" -}; -Pt.borderRightStyle = { - property: "borderRightStyle", - scale: "borderStyles" -}; -var Sr = dr(Pt), tn = { - background: !0, - backgroundImage: !0, - backgroundSize: !0, - backgroundPosition: !0, - backgroundRepeat: !0 -}; -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 = { - position: !0, - zIndex: { - property: "zIndex", - scale: "zIndices" - }, - top: { - property: "top", - scale: "space", - defaultScale: xi.space - }, - right: { - property: "right", - scale: "space", - defaultScale: xi.space - }, - bottom: { - property: "bottom", - scale: "space", - defaultScale: xi.space - }, - left: { - property: "left", - scale: "space", - defaultScale: xi.space - } -}, Hn = dr(xx), zt = { - space: [0, 4, 8, 16, 32, 64, 128, 256, 512] -}, lf = function(t) { - return typeof t == "number" && !isNaN(t); -}, Tn = function(t, r) { - if (!lf(t)) - return en(r, t, t); - var n = t < 0, o = Math.abs(t), a = en(r, o, o); - return lf(a) ? a * (n ? -1 : 1) : n ? "-" + a : a; -}, Ne = {}; -Ne.margin = { - margin: { - property: "margin", - scale: "space", - transform: Tn, - defaultScale: zt.space - }, - marginTop: { - property: "marginTop", - scale: "space", - transform: Tn, - defaultScale: zt.space - }, - marginRight: { - property: "marginRight", - scale: "space", - transform: Tn, - defaultScale: zt.space - }, - marginBottom: { - property: "marginBottom", - scale: "space", - transform: Tn, - defaultScale: zt.space - }, - marginLeft: { - property: "marginLeft", - scale: "space", - transform: Tn, - defaultScale: zt.space - }, - marginX: { - properties: ["marginLeft", "marginRight"], - scale: "space", - transform: Tn, - defaultScale: zt.space - }, - marginY: { - properties: ["marginTop", "marginBottom"], - scale: "space", - transform: Tn, - defaultScale: zt.space - } -}; -Ne.margin.m = Ne.margin.margin; -Ne.margin.mt = Ne.margin.marginTop; -Ne.margin.mr = Ne.margin.marginRight; -Ne.margin.mb = Ne.margin.marginBottom; -Ne.margin.ml = Ne.margin.marginLeft; -Ne.margin.mx = Ne.margin.marginX; -Ne.margin.my = Ne.margin.marginY; -Ne.padding = { - padding: { - property: "padding", - scale: "space", - defaultScale: zt.space - }, - paddingTop: { - property: "paddingTop", - scale: "space", - defaultScale: zt.space - }, - paddingRight: { - property: "paddingRight", - scale: "space", - defaultScale: zt.space - }, - paddingBottom: { - property: "paddingBottom", - scale: "space", - defaultScale: zt.space - }, - paddingLeft: { - property: "paddingLeft", - scale: "space", - defaultScale: zt.space - }, - paddingX: { - properties: ["paddingLeft", "paddingRight"], - scale: "space", - defaultScale: zt.space - }, - paddingY: { - properties: ["paddingTop", "paddingBottom"], - scale: "space", - defaultScale: zt.space - } -}; -Ne.padding.p = Ne.padding.padding; -Ne.padding.pt = Ne.padding.paddingTop; -Ne.padding.pr = Ne.padding.paddingRight; -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 Am = dr(Ne.margin), Om = dr(Ne.padding), Rm = ku(Am, Om), Bi = dr({ - boxShadow: { - property: "boxShadow", - scale: "shadows" - }, - textShadow: { - property: "textShadow", - scale: "shadows" - } -}); -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; - }, $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) { - return e + "em"; -}), wx = { - space: [0, 4, 8, 16, 32, 64, 128, 256, 512], - fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72] -}, Cx = { - bg: "backgroundColor", - m: "margin", - mt: "marginTop", - mr: "marginRight", - mb: "marginBottom", - ml: "marginLeft", - mx: "marginX", - my: "marginY", - p: "padding", - pt: "paddingTop", - pr: "paddingRight", - pb: "paddingBottom", - pl: "paddingLeft", - px: "paddingX", - py: "paddingY" -}, cf = { - marginX: ["marginLeft", "marginRight"], - marginY: ["marginTop", "marginBottom"], - paddingX: ["paddingLeft", "paddingRight"], - paddingY: ["paddingTop", "paddingBottom"], - size: ["width", "height"] -}, _x = { - color: "colors", - backgroundColor: "colors", - borderColor: "colors", - margin: "space", - marginTop: "space", - marginRight: "space", - marginBottom: "space", - marginLeft: "space", - marginX: "space", - marginY: "space", - padding: "space", - paddingTop: "space", - paddingRight: "space", - paddingBottom: "space", - paddingLeft: "space", - paddingX: "space", - paddingY: "space", - top: "space", - right: "space", - bottom: "space", - left: "space", - gridGap: "space", - gridColumnGap: "space", - gridRowGap: "space", - gap: "space", - columnGap: "space", - rowGap: "space", - fontFamily: "fonts", - fontSize: "fontSizes", - fontWeight: "fontWeights", - lineHeight: "lineHeights", - letterSpacing: "letterSpacings", - border: "borders", - borderTop: "borders", - borderRight: "borders", - borderBottom: "borders", - borderLeft: "borders", - borderWidth: "borderWidths", - borderStyle: "borderStyles", - borderRadius: "radii", - borderTopRightRadius: "radii", - borderTopLeftRadius: "radii", - borderBottomRightRadius: "radii", - borderBottomLeftRadius: "radii", - borderTopWidth: "borderWidths", - borderTopColor: "colors", - borderTopStyle: "borderStyles", - borderBottomWidth: "borderWidths", - borderBottomColor: "colors", - borderBottomStyle: "borderStyles", - borderLeftWidth: "borderWidths", - borderLeftColor: "colors", - borderLeftStyle: "borderStyles", - borderRightWidth: "borderWidths", - borderRightColor: "colors", - borderRightStyle: "borderStyles", - outlineColor: "colors", - boxShadow: "shadows", - textShadow: "shadows", - zIndex: "zIndices", - width: "sizes", - minWidth: "sizes", - maxWidth: "sizes", - height: "sizes", - minHeight: "sizes", - maxHeight: "sizes", - flexBasis: "sizes", - size: "sizes", - // svg - fill: "colors", - stroke: "colors" -}, kx = 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) { - var r; - return $a({}, e, (r = {}, r[t] = kx, r)); -}, {}), $m = function(t) { - return function(r) { - var n = {}, o = mr(r, "breakpoints", Sx), a = [null].concat(o.map(function(u) { - return "@media screen and (min-width: " + u + ")"; - })); - for (var i in t) { - var s = typeof t[i] == "function" ? t[i](r) : t[i]; - if (s != null) { - if (!Array.isArray(s)) { - n[i] = s; - continue; - } - for (var l = 0; l < s.slice(0, a.length).length; l++) { - var c = a[l]; - if (!c) { - n[i] = s[l]; - continue; - } - n[c] = n[c] || {}, s[l] != null && (n[c][i] = s[l]); - } - } - } - return n; - }; -}, Dm = function e(t) { - return function(r) { - r === void 0 && (r = {}); - var n = $a({}, wx, {}, r.theme || r), o = {}, a = typeof t == "function" ? t(n) : t, i = $m(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 = $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 (cf[d]) - for (var v = cf[d], b = 0; b < v.length; b++) - o[v[b]] = h; - else - o[d] = h; - } - return o; - }; -}; -const Mm = Dm, Px = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - css: Dm, - default: Mm, - get: mr, - responsive: $m -}, Symbol.toStringTag, { value: "Module" })); -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 Mm(en(m, p, null))(h.theme); - } : c = function(p, m) { - return en(m, p, null); - }, c.scale = n || l, c.defaults = s; - var u = (r = {}, r[a] = c, r), d = Za(u); - return d; -}, Im = Fs({ - key: "buttons" -}), Fm = Fs({ - key: "textStyles", - prop: "textStyle" -}), Nm = Fs({ - key: "colorStyles", - prop: "colors" -}), Tx = Gt.width, Ax = Gt.height, Ox = Gt.minWidth, Rx = Gt.minHeight, $x = Gt.maxWidth, Dx = Gt.maxHeight, Mx = Gt.size, Ix = Gt.verticalAlign, Fx = Gt.display, Nx = Gt.overflow, jx = Gt.overflowX, Bx = Gt.overflowY, zx = Eu.opacity, Vx = an.fontSize, Lx = an.fontFamily, Wx = an.fontWeight, Ux = an.lineHeight, Hx = an.textAlign, Yx = an.fontStyle, Gx = an.letterSpacing, qx = 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 = qt.gridGap, lS = qt.gridColumnGap, cS = qt.gridRowGap, uS = qt.gridColumn, dS = qt.gridRow, fS = qt.gridAutoFlow, pS = qt.gridAutoColumns, hS = qt.gridAutoRows, mS = qt.gridTemplateColumns, vS = qt.gridTemplateRows, gS = qt.gridTemplateAreas, bS = qt.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 = Fo.backgroundImage, TS = Fo.backgroundSize, AS = Fo.backgroundPosition, OS = Fo.backgroundRepeat, RS = Hn.zIndex, $S = Hn.top, DS = Hn.right, MS = Hn.bottom, IS = Hn.left, FS = 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, - property: n || r, - scale: a, - defaultScale: s, - transform: i - }), o && (c[o] = c[r]); - var u = Za(c); - return u; -}; -const NS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - alignContent: Xx, - alignItems: qx, - alignSelf: aS, - background: Fo, - backgroundImage: PS, - backgroundPosition: AS, - backgroundRepeat: OS, - backgroundSize: TS, - border: Sr, - borderBottom: _S, - borderColor: SS, - borderLeft: kS, - borderRadius: ES, - borderRight: CS, - borderStyle: xS, - borderTop: wS, - borderWidth: yS, - borders: Sr, - bottom: MS, - boxShadow: Bi, - buttonStyle: Im, - color: Eu, - colorStyle: Nm, - compose: ku, - createParser: Za, - createStyleFunction: ls, - display: Fx, - flex: eS, - flexBasis: nS, - flexDirection: Qx, - flexGrow: tS, - flexShrink: rS, - flexWrap: Jx, - flexbox: Ft, - fontFamily: Lx, - fontSize: Vx, - fontStyle: Yx, - fontWeight: Wx, - get: en, - grid: qt, - 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, - layout: Gt, - left: IS, - letterSpacing: Gx, - lineHeight: Ux, - margin: Am, - maxHeight: Dx, - maxWidth: $x, - minHeight: Rx, - minWidth: Ox, - opacity: zx, - order: iS, - overflow: Nx, - overflowX: jx, - overflowY: Bx, - padding: Om, - position: Hn, - right: DS, - shadow: Bi, - size: Mx, - space: Rm, - style: FS, - system: dr, - textAlign: Hx, - textShadow: Bi, - textStyle: Fm, - top: $S, - typography: an, - variant: Fs, - verticalAlign: Ix, - width: Tx, - zIndex: RS -}, Symbol.toStringTag, { value: "Module" })), jS = /* @__PURE__ */ Is(NS), BS = /* @__PURE__ */ Is(Px); -function zS(e) { - var t = /* @__PURE__ */ Object.create(null); - return function(r) { - return t[r] === void 0 && (t[r] = e(r)), t[r]; - }; -} -var VS = ku(Rm, an, Eu, Gt, Ft, Sr, Fo, Hn, qt, Bi, Im, Fm, Nm), jm = VS.propNames, Bm = function(t) { - var r = new RegExp("^(" + t.join("|") + ")$"); - return zS(function(n) { - return xm(n) && !r.test(n); - }); -}; -const LS = Bm(jm), WS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - createShouldForwardProp: Bm, - default: LS, - props: jm -}, Symbol.toStringTag, { value: "Module" })), US = /* @__PURE__ */ Is(WS); -Object.defineProperty(Pa, "__esModule", { - value: !0 -}); -var zm = Pa.Flex = Yn = Pa.Box = void 0; -Pu(It); -var Vm = Pu(nx), Kn = jS, fa = YS(BS), HS = Pu(US); -function Lm() { - if (typeof WeakMap != "function") - return null; - var e = /* @__PURE__ */ new WeakMap(); - return Lm = function() { - return e; - }, e; -} -function YS(e) { - if (e && e.__esModule) - return e; - var t = Lm(); - if (t && t.has(e)) - return t.get(e); - var r = {}; - if (e != null) { - var n = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var o in e) - if (Object.prototype.hasOwnProperty.call(e, o)) { - var a = n ? Object.getOwnPropertyDescriptor(e, o) : null; - a && (a.get || a.set) ? Object.defineProperty(r, o, a) : r[o] = e[o]; - } - } - return r.default = e, t && t.set(e, r), r; -} -function Pu(e) { - return e && e.__esModule ? e : { default: e }; -} -var GS = function(t) { - return (0, fa.default)(t.sx)(t.theme); -}, qS = function(t) { - return (0, fa.default)(t.__css)(t.theme); -}, XS = function(t) { - var r = t.theme, n = t.variant, o = t.tx, a = o === void 0 ? "variants" : o; - return (0, fa.default)((0, fa.get)(r, a + "." + n, (0, fa.get)(r, n)))(r); -}, Wm = (0, Vm.default)("div", { - shouldForwardProp: HS.default -})({ - boxSizing: "border-box", - margin: 0, - minWidth: 0 -}, qS, XS, GS, function(e) { - return e.css; -}, (0, Kn.compose)(Kn.space, Kn.layout, Kn.typography, Kn.color, Kn.flexbox)), Yn = Pa.Box = Wm, KS = (0, Vm.default)(Wm)({ - display: "flex" -}); -zm = Pa.Flex = KS; -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; - }, bn.apply(this, arguments); -} -var hV = At(function(e, t) { - return It.createElement(Yn, bn({ - ref: t, - tx: "text" - }, e)); -}); -At(function(e, t) { - return It.createElement(Yn, bn({ - ref: t, - as: "h2", - tx: "text", - variant: "heading" - }, e, { - __css: { - fontSize: 4, - fontFamily: "heading", - fontWeight: "heading", - lineHeight: "heading" - } - })); -}); -var mV = At(function(e, t) { - return It.createElement(Yn, bn({ - ref: t, - as: "a", - variant: "link" - }, e)); -}), vV = At(function(e, t) { - return It.createElement(Yn, bn({ - ref: t, - as: "button", - tx: "buttons", - variant: "primary" - }, e, { - __css: { - appearance: "none", - display: "inline-block", - textAlign: "center", - lineHeight: "inherit", - textDecoration: "none", - fontSize: "inherit", - px: 3, - py: 2, - color: "white", - bg: "primary", - border: 0, - borderRadius: 4 - } - })); -}); -At(function(e, t) { - return It.createElement(Yn, bn({ - ref: t, - as: "img" - }, e, { - __css: { - maxWidth: "100%", - height: "auto" - } - })); -}); -var gV = At(function(e, t) { - return It.createElement(Yn, bn({ - ref: t, - variant: "card" - }, e)); -}); -function at(e) { - return e != null && typeof e == "object" && e["@@functional/placeholder"] === !0; -} -function yr(e) { - return function t(r) { - return arguments.length === 0 || at(r) ? t : e.apply(this, arguments); - }; -} -function On(e) { - return function t(r, n) { - switch (arguments.length) { - case 0: - return t; - case 1: - return at(r) ? t : yr(function(o) { - return e(r, o); - }); - default: - return at(r) && at(n) ? t : at(r) ? yr(function(o) { - return e(o, n); - }) : at(n) ? yr(function(o) { - return e(r, o); - }) : e(r, n); - } - }; -} -function ZS(e, t) { - switch (e) { - case 0: - return function() { - return t.apply(this, arguments); - }; - case 1: - return function(r) { - return t.apply(this, arguments); - }; - case 2: - return function(r, n) { - return t.apply(this, arguments); - }; - case 3: - return function(r, n, o) { - return t.apply(this, arguments); - }; - case 4: - return function(r, n, o, a) { - return t.apply(this, arguments); - }; - case 5: - return function(r, n, o, a, i) { - return t.apply(this, arguments); - }; - case 6: - return function(r, n, o, a, i, s) { - return t.apply(this, arguments); - }; - case 7: - return function(r, n, o, a, i, s, l) { - return t.apply(this, arguments); - }; - case 8: - return function(r, n, o, a, i, s, l, c) { - return t.apply(this, arguments); - }; - case 9: - return function(r, n, o, a, i, s, l, c, u) { - return t.apply(this, arguments); - }; - case 10: - return function(r, n, o, a, i, s, l, c, u, d) { - return t.apply(this, arguments); - }; - default: - throw new Error("First argument to _arity must be a non-negative integer no greater than ten"); - } -} -function Um(e) { - return function t(r, n, o) { - switch (arguments.length) { - case 0: - return t; - case 1: - return at(r) ? t : On(function(a, i) { - return e(r, a, i); - }); - case 2: - return at(r) && at(n) ? t : at(r) ? On(function(a, i) { - return e(a, n, 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) ? On(function(a, i) { - return e(a, i, o); - }) : at(r) && at(o) ? On(function(a, i) { - return e(a, n, i); - }) : at(n) && at(o) ? On(function(a, i) { - return e(r, a, i); - }) : at(r) ? yr(function(a) { - return e(a, n, o); - }) : at(n) ? yr(function(a) { - return e(r, a, o); - }) : at(o) ? yr(function(a) { - return e(r, n, a); - }) : e(r, n, o); - } - }; -} -const JS = Array.isArray || function(t) { - return t != null && t.length >= 0 && Object.prototype.toString.call(t) === "[object Array]"; -}; -function QS(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() { - function e(t) { - this.f = t; - } - return e.prototype["@@transducer/init"] = function() { - throw new Error("init not implemented on XWrap"); - }, e.prototype["@@transducer/result"] = function(t) { - return t; - }, e.prototype["@@transducer/step"] = function(t, r) { - return this.f(t, r); - }, e; -}(); -function r1(e) { - return new t1(e); -} -var n1 = /* @__PURE__ */ On(function(t, r) { - return ZS(t.length, function() { - return t.apply(r, arguments); - }); -}); -function o1(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"]; - break; - } - n += 1; - } - return e["@@transducer/result"](t); -} -function uf(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"]; - break; - } - n = r.next(); - } - return e["@@transducer/result"](t); -} -function df(e, t, r, n) { - return e["@@transducer/result"](r[n](n1(e["@@transducer/step"], e), t)); -} -var ff = typeof Symbol < "u" ? Symbol.iterator : "@@iterator"; -function bV(e, t, r) { - if (typeof e == "function" && (e = r1(e)), e1(r)) - return o1(e, t, r); - if (typeof r["fantasy-land/reduce"] == "function") - return df(e, t, r, "fantasy-land/reduce"); - if (r[ff] != null) - return uf(e, t, r[ff]()); - if (typeof r.next == "function") - return uf(e, t, r); - if (typeof r.reduce == "function") - return df(e, t, r, "reduce"); - throw new TypeError("reduce: list must be array or iterable"); -} -function In(e, t) { - return Object.prototype.hasOwnProperty.call(t, e); -} -var pf = Object.prototype.toString, a1 = /* @__PURE__ */ function() { - return pf.call(arguments) === "[object Arguments]" ? function(t) { - return pf.call(t) === "[object Arguments]"; - } : function(t) { - return In("callee", t); - }; -}(), i1 = !/* @__PURE__ */ { - toString: null -}.propertyIsEnumerable("toString"), hf = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], mf = /* @__PURE__ */ function() { - return arguments.propertyIsEnumerable("length"); -}(), s1 = function(t, r) { - for (var n = 0; n < t.length; ) { - if (t[n] === r) - return !0; - n += 1; - } - return !1; -}, yV = /* @__PURE__ */ yr(typeof Object.keys == "function" && !mf ? function(t) { - return Object(t) !== t ? [] : Object.keys(t); -} : function(t) { - if (Object(t) !== t) - return []; - var r, n, o = [], a = mf && a1(t); - for (r in t) - In(r, t) && (!a || r !== "length") && (o[o.length] = r); - if (i1) - for (n = hf.length - 1; n >= 0; ) - r = hf[n], In(r, t) && !s1(o, r) && (o[o.length] = r), n -= 1; - return o; -}), xV = /* @__PURE__ */ yr(function(t) { - return t === null ? "Null" : t === void 0 ? "Undefined" : Object.prototype.toString.call(t).slice(8, -1); -}); -function vf(e) { - return Object.prototype.toString.call(e) === "[object Object]"; -} -var l1 = /* @__PURE__ */ Um(function(t, r, n) { - var o = {}, a; - for (a in r) - In(a, r) && (o[a] = In(a, n) ? t(a, r[a], n[a]) : r[a]); - for (a in n) - In(a, n) && !In(a, o) && (o[a] = n[a]); - return o; -}), SV = /* @__PURE__ */ Um(function e(t, r, n) { - return l1(function(o, a, i) { - return vf(a) && vf(i) ? e(t, a, i) : t(o, a, i); - }, r, n); -}); -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; - }, Wn.apply(this, arguments); -} -var Ac = { exports: {} }, We = {}; -/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -var gf; -function c1() { - if (gf) - return We; - gf = 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) { - var M = w.$$typeof; - switch (M) { - case t: - switch (w = w.type, w) { - case l: - case c: - case n: - case a: - case o: - case d: - return w; - default: - switch (w = w && w.$$typeof, w) { - case s: - case u: - case m: - case p: - case i: - return w; - default: - return M; - } - } - case r: - return M; - } - } - } - function _(w) { - return S(w) === c; - } - 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; - }, We.isContextProvider = function(w) { - return S(w) === i; - }, We.isElement = function(w) { - return typeof w == "object" && w !== null && w.$$typeof === t; - }, We.isForwardRef = function(w) { - return S(w) === u; - }, We.isFragment = function(w) { - return S(w) === n; - }, We.isLazy = function(w) { - return S(w) === m; - }, We.isMemo = function(w) { - return S(w) === p; - }, We.isPortal = function(w) { - return S(w) === r; - }, We.isProfiler = function(w) { - return S(w) === a; - }, We.isStrictMode = function(w) { - return S(w) === o; - }, We.isSuspense = function(w) { - return S(w) === d; - }, 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); - }, We.typeOf = S, We; -} -var Ue = {}; -/** @license React v16.13.1 - * react-is.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -var bf; -function u1() { - return bf || (bf = 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(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 _(R) { - if (typeof R == "object" && R !== null) { - var Se = R.$$typeof; - switch (Se) { - case t: - var he = R.type; - switch (he) { - case l: - case c: - case n: - case a: - case o: - case d: - return he; - default: - var le = he && he.$$typeof; - switch (le) { - case s: - case u: - case m: - case p: - case i: - return le; - default: - return Se; - } - } - case r: - return Se; - } - } - } - 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(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(R) { - return _(R) === c; - } - function N(R) { - return _(R) === s; - } - function V(R) { - return _(R) === i; - } - function T(R) { - return typeof R == "object" && R !== null && R.$$typeof === t; - } - function A(R) { - return _(R) === u; - } - function B(R) { - return _(R) === n; - } - function C(R) { - return _(R) === m; - } - function H(R) { - return _(R) === p; - } - function O(R) { - return _(R) === r; - } - function Z(R) { - return _(R) === a; - } - function Y(R) { - return _(R) === o; - } - function ae(R) { - return _(R) === d; - } - 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" ? Ac.exports = c1() : Ac.exports = u1(); -var Tu = Ac.exports, Hm = Tu, d1 = { - $$typeof: !0, - render: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0 -}, f1 = { - $$typeof: !0, - compare: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0, - type: !0 -}, Ym = {}; -Ym[Hm.ForwardRef] = d1; -Ym[Hm.Memo] = f1; -function yf(e, t) { - var r = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var n = Object.getOwnPropertySymbols(e); - t && (n = n.filter(function(o) { - return Object.getOwnPropertyDescriptor(e, o).enumerable; - })), r.push.apply(r, n); - } - return r; -} -function p1(e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t] != null ? arguments[t] : {}; - t % 2 ? yf(Object(r), !0).forEach(function(n) { - Cu(e, n, r[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : yf(Object(r)).forEach(function(n) { - Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); - }); - } - return e; -} -var h1 = 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))) - throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!"); - return n; - } - 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 p1({}, t, {}, r); -}, m1 = Gd(function(e) { - return Gd(function(t) { - return h1(e, t); - }); -}), wV = function(t) { - return /* @__PURE__ */ ir(Ra.Consumer, null, function(r) { - return t.theme !== r && (r = m1(r)(t.theme)), /* @__PURE__ */ ir(Ra.Provider, { - value: r - }, t.children); - }); -}; -function v1() { - return It.useContext(Ra); -} -const g1 = { - color: "primary", - bg: "transparent", - borderWidth: "1px", - borderStyle: "solid", - borderColor: "transparent", - ":hover": { - bg: "primaryShade2" - }, - ":focus": { - outline: "none", - boxShadow: "focused" - }, - ":active": { - outline: "none", - bg: "primaryShade2", - borderWidth: "1px", - borderStyle: "solid", - borderColor: "primary" - }, - ":disabled": { - bg: "unset", - color: "gray" - } -}, b1 = { - color: "primary", - bg: "unset", - textDecoration: "underline", - ":hover": { - cursor: "pointer" - }, - ":focus": { - outline: "none", - boxShadow: "focused" - }, - ":disabled": { - color: "gray", - textDecoration: "none" - } -}, y1 = { - color: "white", - bg: "primary", - borderWidth: "1px", - borderStyle: "solid", - borderColor: "primary", - boxShadow: "primary", - ":hover": { - bg: "primaryShade1", - borderColor: "primaryShade1" - }, - ":focus": { - outline: "none", - boxShadow: "focused" - }, - ":active": { - outline: "none", - borderColor: "primary" - }, - ":disabled": { - bg: "gray", - color: "white", - borderWidth: "1px ", - borderStyle: "solid ", - borderColor: "gray", - boxShadow: "disabled" - } -}, x1 = { - color: "primary", - bg: "white", - borderWidth: "1px", - borderStyle: "solid", - borderColor: "grayShade2", - boxShadow: "secondary", - ":hover": { - bg: "primaryShade2", - borderColor: "grayShade2" - }, - ":focus": { - outline: "none", - boxShadow: "focused" - }, - ":active": { - outline: "none", - borderColor: "primaryShade2" - }, - ":disabled": { - bg: "grayShade1", - color: "black", - borderColor: "grayShade1", - boxShadow: "disabled" - } -}, S1 = { - variant: "buttons.secondary", - color: "labels.red", - borderColor: "grayShade2", - boxShadow: "secondary", - ":hover": { - bg: "labels.redShade2" - }, - ":active": { - borderColor: "labels.redShade2" - }, - ":focus": { - outline: "none", - boxShadow: "focused" - }, - ":disabled": { - bg: "grayShade1", - color: "black", - borderColor: "grayShade1", - boxShadow: "disabled" - } -}, w1 = { - ghost: g1, - alert: S1, - inline: b1, - primary: y1, - secondary: x1 -}, C1 = { - bg: "white", - boxShadow: "secondary", - borderColor: "grayShade2", - ":hover": { - borderColor: "grayShade2", - boxShadow: "0px 0px 0px white" - }, - ":active": { - borderColor: "grayShade3" - }, - ":disabled": { - borderColor: "grayShade2" - }, - // Icon color - "& path": { - fill: "black" - } -}, _1 = { - bg: "white", - borderColor: "white", - ":hover": { - bg: "grayShade3", - borderColor: "grayShade3" - }, - ":active": { - bg: "grayShade3", - borderColor: "gray" - }, - ":disabled": { - borderColor: "grayShade3" - }, - // Icon color - "& path": { - fill: "black" - } -}, k1 = { - bg: "transparent", - borderColor: "transparent", - ":hover": { - bg: "white", - borderColor: "white" - }, - ":active": { - bg: "white", - borderColor: "gray" - }, - ":disabled": { - bg: "transparent", - borderColor: "transparent" - }, - // Icon color - "& path": { - fill: "black" - } -}, E1 = { - "icon-primary": C1, - "icon-ghost": _1, - "icon-ghost-white": k1 -}, P1 = { - color: "black", - bg: "grayShade3", - borderTopColor: "primary", - ":hover": { - bg: "primaryShade2", - color: "primary" - }, - ":active": { - bg: "primaryShade2", - color: "black" - }, - ":disabled": { - color: "black", - bg: "grayShade3" - } -}, T1 = { - "footer-primary": P1 -}, A1 = { - color: "primary", - bg: "white", - borderWidth: "1px", - borderStyle: "solid", - borderColor: "grayShade2", - boxShadow: "file", - ":hover": { - bg: "primaryShade2", - borderColor: "grayShade2" - }, - ":focus": { - outline: "none" - }, - ":active": { - outline: "none", - borderColor: "primaryShade2" - }, - ":disabled": { - bg: "grayShade1", - color: "black", - borderColor: "grayShade1", - boxShadow: "disabled" - } -}, O1 = { - "file-secondary": A1 -}, R1 = { - primary: { - div: { - bg: "grayShade3", - borderColor: "transparent" - }, - "> input:hover ~ div": { - bg: "grayShade3", - borderColor: "gray" - }, - "> input:focus,> input:checked ~ div": { - borderColor: "black" - }, - "> input:disabled ~ div": { - bg: "grayShade2", - borderColor: "transparent" - } - }, - white: { - div: { - bg: "white", - borderColor: "transparent" - }, - "> input:hover ~ div": { - bg: "grayShade3", - borderColor: "gray" - }, - "> input:focus,> input:checked ~ div": { - borderColor: "black" - }, - "> input:disabled ~ div": { - bg: "grayShade2", - borderColor: "transparent" - } - } -}, $1 = { - color: "black" -}, D1 = { - bg: "black", - color: "white", - // Arrow - ":after": { - borderColor: "black" - }, - // Secondary text - "> span": { - pl: "10px", - color: "gray" - } -}, M1 = { - bg: "white", - color: "black", - borderColor: "grayShade2" -}, I1 = { - bg: "white", - color: "black", - borderColor: "gray" -}, F1 = { - card: M1, - readOnly: I1 -}, N1 = { - color: "labels.red" -}, j1 = { - color: "darkGray" -}, B1 = { - error: N1, - default: j1 -}, z1 = { - color: "black", - bg: "grayShade3", - ":hover": { - borderColor: "grayShade1" - }, - ":focus": { - borderColor: "black" - }, - ":disabled": { - bg: "grayShade2", - borderColor: "grayShade2" - }, - "::-webkit-input-placeholder": { - color: "gray" - }, - "::-moz-placeholder": { - color: "gray" - }, - ":-ms-input-placeholder": { - color: "gray" - }, - ":-moz-placeholder": { - color: "gray" - }, - // Icon - "~ svg path": { - fill: "gray" - } -}, V1 = { - variant: "inputs.primary", - bg: "white", - ":focus": { - borderColor: "gray" - } -}, L1 = { - variant: "inputs.primary", - bg: "grayShade2", - borderColor: "grayShade2", - ":focus": { - borderColor: "grayShade2" - } -}, W1 = { - disabled: L1, - primary: z1, - white: V1 -}, U1 = { - default: "transparent", - error: "labels.red" -}, H1 = { - bg: "white", - borderLeftColor: "grayShade2", - "> div:first-of-type": { - color: "black", - svg: { - mr: "11px", - path: { - fill: "black" - } - } - }, - "~ div": { - borderTopColor: "grayShade3" - } -}, Y1 = { - bg: "white", - borderRightColor: "grayShade2", - "> div": { - color: "gray", - path: { - fill: "gray" - } - } -}, G1 = { - color: "black", - bg: "white", - cursor: "pointer", - path: { - fill: "black" - }, - ":hover": { - bg: "grayShade3", - color: "primary", - path: { - fill: "primary" - } - }, - ":active": { - bg: "grayShade3", - color: "black", - path: { - fill: "black" - } - }, - "~ div": { - borderTopColor: "grayShade3" - } -}, q1 = { - bg: "primaryShade2", - color: "primary", - path: { - fill: "primary" - }, - cursor: "default", - "~ div": { - borderTopColor: "primaryShade2" - } -}, X1 = { - variant: "navigation.item.default", - cursor: "default", - ":hover": {}, - ":active": {} -}, K1 = { - default: G1, - active: q1, - disabled: X1 -}, Z1 = { - variant: "navigation.subItem.default", - cursor: "default", - ":hover": {}, - ":active": {} -}, J1 = { - variant: "navigation.item.default", - borderLeftWidth: "2px", - borderLeftStyle: "solid", - borderLeftColor: "grayShade2" -}, Q1 = { - variant: "navigation.subItem.default", - color: "primary", - cursor: "default", - borderLeftColor: "primary", - ":hover": {} -}, ew = { - default: J1, - active: Q1, - disabled: Z1 -}, tw = { - container: Y1, - item: K1, - subItem: ew, - category: H1 -}, rw = { - bg: "white", - boxShadow: "list" -}, nw = { - color: "black", - bg: "white", - fontWeight: "label", - fontFamily: "label", - fontSize: "label", - cursor: "pointer", - borderBottomColor: "grayShade2", - ":hover": { - bg: "grayShade3" - } -}, ow = { - variant: "variants.list.item.primary", - bg: "grayShade3" -}, aw = { - primary: nw, - active: ow -}, iw = { - container: rw, - item: aw -}, sw = { - bg: "white", - borderBottomColor: "grayShade2", - zIndex: "modals", - // Right Section - "> div:last-of-type": { - // Actions container - "> div:first-of-type": { - // Single action - "> span": { - borderRightColor: "grayShade3" - } - } - } -}, lw = { - fontFamily: "title", - fontSize: "title", - fontWeight: "title", - color: "black" -}, cw = { - fontFamily: "subtitle", - fontSize: "subtitle", - fontWeight: "subtitle", - color: "black" -}, uw = { - fontFamily: "label", - fontSize: "label", - fontWeight: 500, - color: "black" -}, dw = { - fontFamily: "microlabel", - fontSize: "microlabel", - fontWeight: "microlabel", - color: "black" -}, fw = { - variant: "text.microlabeling", - color: "gray" -}, pw = { - fontFamily: "value", - fontSize: "value", - fontWeight: "value", - color: "black" -}, hw = { - variant: "text.value", - color: "primary" -}, mw = { - fontFamily: "text", - fontSize: "text", - fontWeight: "text", - color: "black" -}, vw = { - variant: "text.labeling", - color: "gray" -}, gw = { - color: "gray" -}, bw = { - color: "primary" -}, yw = { - color: "labels.orange" -}, xf = { - title: lw, - text: mw, - subtitle: cw, - labeling: uw, - value: pw, - valuePrimary: hw, - labelingGray: vw, - microlabeling: dw, - microlabelingGray: fw, - inputValidationneutral: gw, - inputValidationsuccess: bw, - inputValidationwarning: yw -}, xw = { - bg: "white", - borderTopColor: "primary", - boxShadow: "popup" -}, Sw = { - bg: "white", - ":not(:last-of-type)": { - borderBottomColor: "grayShade3", - borderBottomWidth: "2px", - borderBottomStyle: "solid" - } -}, ww = { - drawerSection: Sw, - primary: xw -}, Cw = { - black: { - bg: "black", - color: "white" - }, - green: { - bg: "labels.green", - color: "white" - } -}, _w = { - red: { - bg: "labels.red" - }, - green: { - bg: "labels.green" - }, - gray: { - bg: "gray" - } -}, kw = { - bg: "grayShade2", - borderColor: "gray", - "> span": { - "&:last-of-type": { - bg: "white" - } - } -}, Ew = { - bg: "white", - borderColor: "gray", - "> span": { - "&:last-of-type": { - bg: "grayShade2" - } - } -}, Pw = { - gray: kw, - white: Ew -}, Tw = { - default: { - "> span": { - color: "grayShade3" - }, - bg: "gray" - }, - fail: { - "> span": { - color: "white" - }, - bg: "labels.red" - }, - label: { - "> span": { - color: "white" - }, - bg: "black" - }, - light: { - "> span": { - color: "black" - }, - bg: "grayShade3" - }, - success: { - "> span": { - color: "white" - }, - bg: "labels.green" - }, - warning: { - "> span": { - color: "grayShade3" - }, - bg: "labels.orange" - }, - notice: { - "> span": { - color: "black" - }, - bg: "labels.yellow" - } -}, Aw = { - default: { - "> span": { - color: "black" - }, - bg: "grayShade2", - border: "1px solid", - borderColor: "black" - }, - fail: { - "> span": { - color: "labels.red" - }, - bg: "labels.redShade2", - border: "1px solid", - borderColor: "labels.red" - }, - label: { - "> span": { - color: "black" - }, - bg: "white", - border: "1px solid", - borderColor: "black" - }, - light: { - "> span": { - color: "black" - }, - bg: "grayShade3", - border: "1px solid", - borderColor: "grayShade1" - }, - success: { - "> span": { - color: "labels.green" - }, - bg: "primaryShade2", - border: "1px solid", - borderColor: "labels.green" - }, - warning: { - "> span": { - color: "labels.orange" - }, - bg: "labels.orangeShade2", - border: "1px solid", - borderColor: "labels.orange" - }, - notice: { - "> span": { - color: "black" - }, - bg: "labels.yellowShade2", - border: "1px solid", - borderColor: "labels.yellow" - } -}, Ow = { - keyValue: Pw, - primary: Tw, - bordered: Aw, - dot: Cw, - blink: _w -}, Rw = { - primary: { - span: { - bg: "grayShade3", - borderColor: "grayShade1", - ":after": { - bg: "black" - } - }, - "> input:hover ~ span": { - bg: "grayShade1" - }, - "> input:disabled ~ span": { - borderColor: "gray", - bg: "grayShade1" - } - } -}, $w = { - primary: { - span: { - bg: "grayShade3", - borderColor: "grayShade1", - ":after": { - bg: "black" - } - }, - "> input:hover ~ span": { - bg: "grayShade1" - }, - "> input:disabled ~ span": { - borderColor: "gray", - bg: "grayShade1" - } - } -}, Dw = { - bg: "grayShade3", - borderColor: "transparent", - cursor: "pointer", - ":hover": { - borderColor: "grayShade1" - }, - ":focus": { - borderColor: "gray" - } -}, Mw = { - variant: "variants.select.primary", - bg: "white" -}, Iw = { - bg: "grayShade2", - borderColor: "transparent", - cursor: "default", - pointerEvents: "none" -}, Fw = { - disabled: Iw, - primary: Dw, - white: Mw -}, Nw = { - color: "labels.red" -}, jw = { - color: "darkGray" -}, Bw = { - error: Nw, - default: jw -}, zw = { - progress: { - bg: "labels.green", - "> span": { - bg: "#EBEBEB" - } - }, - freshness: { - background: "linear-gradient(90deg, #56CCF2 0%, red 100%)", - "> span": { - bg: "#EBEBEB" - } - } -}, Vw = { - black: { - bg: "grayShade2", - "> div": { - bg: "black" - } - }, - gray: { - bg: "grayShade3", - "& > div": { - bg: "grayShade1" - } - }, - green: { - bg: "primaryShade2", - "& > div": { - bg: "primary" - } - }, - orange: { - bg: "labels.orangeShade2", - "& > div": { - bg: "labels.orange" - } - } -}, Lw = { - bg: "primaryShade2", - whiteSpace: "pre-wrap", - pre: { - color: "black", - fontFamily: "value", - fontSize: "value", - whiteSpace: "pre-wrap" - } -}, Ww = { - color: "labels.green", - bg: "primaryShade2", - borderLeftWidth: 0, - borderLeftStyle: "solid", - borderLeftColor: "labels.green", - "> div": { - ":first-of-type": { - fill: "labels.green" - }, - pre: { - "> div": { - color: "labels.green" - } - } - } -}, Uw = { - color: "labels.red", - bg: "labels.redShade2", - borderLeftWidth: 0, - borderLeftStyle: "solid", - borderLeftColor: "labels.red", - "> div": { - ":first-of-type": { - fill: "labels.red" - }, - pre: { - "> div": { - color: "labels.red" - } - } - } -}, Hw = { - color: "labels.orange", - bg: "labels.orangeShade2", - borderLeftWidth: 0, - borderLeftStyle: "solid", - borderLeftColor: "labels.orange", - "> div": { - ":first-of-type": { - fill: "labels.orange" - }, - pre: { - "> div": { - color: "labels.orange" - } - } - } -}, Yw = { - color: "black", - bg: "grayShade2", - borderLeftWidth: 0, - borderLeftStyle: "solid", - borderLeftColor: "black", - "> div": { - ":first-of-type": { - fill: "black" - }, - pre: { - "> div": { - color: "black" - } - } - } -}, Gw = { - valid: Ww, - error: Uw, - warning: Hw, - neutral: Yw -}, qw = { - primary: { - path: { - fill: "black" - } - } -}, Xw = { - bg: "transparent", - label: { - color: "black", - bg: "grayShade3", - cursor: "pointer", - ":hover": { - borderColor: "grayShade1" - }, - ":focus-within": { - borderColor: "black" - } - }, - "& > div > button:disabled > svg > path": { - fill: "grayShade1" - } -}, Kw = { - variant: "pagination.primary", - label: { - color: "black", - bg: "white", - cursor: "pointer", - ":hover": { - borderColor: "grayShade1" - }, - ":focus-within": { - borderColor: "gray" - } - } -}, Zw = { - variant: "pagination.primary", - label: { - color: "black", - bg: "grayShade2", - cursor: "default", - borderColor: "grayShade2" - }, - "& > div > button:disabled > svg > path": { - fill: "grayShade1" - } -}, Jw = { - primary: Xw, - white: Kw, - disabled: Zw -}, Qw = { - secondary: { - notification: { - bg: "white", - borderColor: "grayShade2" - } - } -}, eC = { - primary: "#21B182", - primaryShade1: "#65D3AF", - primaryShade2: "#E6F2EE", - gray: "#a0a0a0", - grayShade1: "#CBCBCB", - grayShade2: "#E2E2E2", - grayShade3: "#F5F5F5", - black: "#272727", - white: "#FFFFFF", - labels: { - red: "#EB5757", - orange: "#f2994a", - purple: "#9B51E0", - purpleShade2: "#F5EEFC", - yellow: "#FFE600", - yellowShade2: "#FFF8B3", - green: "#21B182", - blueShade1: "#41B7DC", - blueShade2: "#ECF8FC", - blue: "#186781", - orangeShade2: "#FDF0E4", - redShade2: "#F8DEDE" - } -}, tC = { - colors: eC, - fonts: { - text: "Inter", - title: "Inter", - subtitle: "Inter", - label: "Inter", - microlabel: "Inter", - value: "IBM Plex Mono" - }, - fontSizes: { - text: "12px", - title: "24px", - subtitle: "18px", - label: "12px", - microlabel: "10px", - value: "12px" - }, - fontWeights: { - text: 500, - title: 700, - subtitle: 700, - label: 700, - microlabel: 700, - value: 700 - }, - iconSizes: { - xxs: "8px", - xs: "12px", - sm: "16px", - md: "20px", - lg: "24px", - xl: "36px" - }, - transitions: { - button: "all .25s ease" - }, - shadows: { - primary: "0px 5px 15px rgba(33, 177, 130, 0.2)", - secondary: "0px 5px 15px rgba(144, 144, 144, 0.2)", - explorer: "0px -1px 1px #E5E5E5", - alert: "0px 5px 15px rgba(235, 87, 87, 0.25)", - disabled: "0px 4px 15px rgba(0, 0, 0, 0.25)", - cardInsetShadow: "inset 0px -20px 30px -25px rgba(0, 0, 0, 0.15)", - navigation: "1px 0px 0px #E5E5E5, 2px 0px 0px white", - list: "0px 4px 15px rgba(0, 0, 0, 0.25)", - popup: "0px 4px 4px rgba(0, 0, 0, 0.25)", - notification: "0px 0px 15px rgba(0, 0, 0, 0.25)", - focused: "0 0 0 2px rgba(33, 177, 130, 0.6)" - }, - variants: { - ...F1, - tooltip: D1, - label: $1, - list: iw, - header: sw, - checkbox: Rw, - radio: $w, - badges: Ow, - popup: ww, - bar: zw, - perf: Vw, - code: Lw, - select: Fw, - callout: Gw, - icon: qw, - ...xf - }, - text: { - inputInfo: B1, - selectInfo: Bw, - ...xf - }, - zIndices: { - default: 10, - tooltips: 1e3, - popups: 30, - modals: 40, - notifications: 50 - }, - buttons: { - ...w1, - ...E1, - ...T1, - ...O1, - toggleButton: R1 - }, - navigation: tw, - inputs: W1, - inputIntents: U1, - pagination: Jw, - notification: Qw -}, rC = { - white: "#181a1b", - gray: "#A6A6A6", - grayShade1: "#707070", - grayShade2: "#4D4D4D", - grayShade3: "#1e2021", - black: "#F0F0F0", - primary: "#229570", - primaryShade1: "#326756", - primaryShade2: "#264339", - labels: { - red: "#C44D4D", - orange: "#C0844E", - orangeShade2: "#503E2E", - purple: "#8449BB", - yellow: "#D4BF08", - yellowShade2: "#524D1F", - green: "#229570", - blue: "#2885A4", - blueShade1: "#2D5E6E", - blueShade2: "#243439", - redShade2: "#4E3131", - purpleShade2: "#8449BB" - } -}, nC = { - 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)", - alert: "0 0 1px 2px rgba(160, 160, 160, 0.1)", - disabled: "0 0 1px 2px rgba(160, 160, 160, 0.1)", - cardInsetShadow: "0 0 1px 2px rgba(160, 160, 160, 0.1)", - navigation: "0 0 1px 2px rgba(160, 160, 160, 0.1)", - list: "0 0 1px 2px rgba(160, 160, 160, 0.1)", - 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)" -}, CV = () => v1(), _V = { - ...tC, - colors: rC, - shadows: nC -}; -function oC(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 aC(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 iC = /* @__PURE__ */ function() { - function e(r) { - var n = this; - this._insertTag = function(o) { - var a; - n.tags.length === 0 ? n.insertionPoint ? a = n.insertionPoint.nextSibling : n.prepend ? a = n.container.firstChild : a = n.before : a = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(o, a), n.tags.push(o); - }, 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.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null; - } - var t = e.prototype; - return t.hydrate = function(n) { - n.forEach(this._insertTag); - }, t.insert = function(n) { - this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(aC(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; - a && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule: -` + 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 = oC(o); - try { - i.insertRule(n, i.cssRules.length); - } catch (s) { - process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n) && console.error('There was a problem inserting the following rule: "' + n + '"', s); - } - } else - o.appendChild(document.createTextNode(n)); - this.ctr++; - }, t.flush = function() { - this.tags.forEach(function(n) { - return n.parentNode && n.parentNode.removeChild(n); - }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1); - }, e; -}(), Tt = "-ms-", cs = "-moz-", Be = "-webkit-", Au = "comm", Ou = "rule", Ru = "decl", sC = "@import", Gm = "@keyframes", lC = "@layer", cC = Math.abs, Ns = String.fromCharCode, uC = Object.assign; -function dC(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 qm(e) { - return e.trim(); -} -function fC(e, t) { - return (e = t.exec(e)) ? e[0] : e; -} -function ze(e, t, r) { - return e.replace(t, r); -} -function Oc(e, t) { - return e.indexOf(t); -} -function kt(e, t) { - return e.charCodeAt(t) | 0; -} -function Da(e, t, r) { - return e.slice(t, r); -} -function $r(e) { - return e.length; -} -function $u(e) { - return e.length; -} -function Si(e, t) { - return t.push(e), e; -} -function pC(e, t) { - return e.map(t).join(""); -} -var js = 1, Po = 1, Xm = 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 Xo(e, t) { - return uC(Bs("", null, null, "", null, null, 0), e, { length: -e.length }, t); -} -function hC() { - return vt; -} -function mC() { - return vt = Ht > 0 ? kt(No, --Ht) : 0, Po--, vt === 10 && (Po = 1, js--), vt; -} -function Kt() { - return vt = Ht < Xm ? kt(No, Ht++) : 0, Po++, vt === 10 && (Po = 1, js++), vt; -} -function Mr() { - return kt(No, Ht); -} -function zi() { - return Ht; -} -function Ja(e, t) { - return Da(No, e, t); -} -function Ma(e) { - switch (e) { - case 0: - case 9: - case 10: - case 13: - case 32: - return 5; - case 33: - case 43: - case 44: - case 47: - case 62: - case 64: - case 126: - case 59: - case 123: - case 125: - return 4; - case 58: - return 3; - case 34: - case 39: - case 40: - case 91: - return 2; - case 41: - case 93: - return 1; - } - return 0; -} -function Km(e) { - return js = Po = 1, Xm = $r(No = e), Ht = 0, []; -} -function Zm(e) { - return No = "", e; -} -function Vi(e) { - return qm(Ja(Ht - 1, Rc(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); -} -function vC(e) { - for (; (vt = Mr()) && vt < 33; ) - Kt(); - return Ma(e) > 2 || Ma(vt) > 3 ? "" : " "; -} -function gC(e, t) { - for (; --t && Kt() && !(vt < 48 || vt > 102 || vt > 57 && vt < 65 || vt > 70 && vt < 97); ) - ; - return Ja(e, zi() + (t < 6 && Mr() == 32 && Kt() == 32)); -} -function Rc(e) { - for (; Kt(); ) - switch (vt) { - case e: - return Ht; - case 34: - case 39: - e !== 34 && e !== 39 && Rc(vt); - break; - case 40: - e === 41 && Rc(e); - break; - case 92: - Kt(); - break; - } - return Ht; -} -function bC(e, t) { - for (; Kt() && e + vt !== 47 + 10; ) - if (e + vt === 42 + 42 && Mr() === 47) - break; - return "/*" + Ja(t, Ht - 1) + "*" + Ns(e === 47 ? e : Kt()); -} -function yC(e) { - for (; !Ma(Mr()); ) - Kt(); - return Ja(e, Ht); -} -function xC(e) { - return Zm(Li("", null, null, null, [""], e = Km(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 = "", _ = o, w = a, M = n, P = S; v; ) - switch (m = y, y = Kt()) { - case 40: - if (m != 108 && kt(P, d - 1) == 58) { - Oc(P += ze(Vi(y), "&", "&\f"), "&\f") != -1 && (b = -1); - break; - } - case 34: - case 39: - case 91: - P += Vi(y); - break; - case 9: - case 10: - case 13: - case 32: - P += vC(m); - break; - case 92: - P += gC(zi() - 1, 7); - continue; - case 47: - switch (Mr()) { - case 42: - case 47: - Si(SC(bC(Kt(), zi()), t, r), l); - break; - default: - P += "/"; - } - break; - case 123 * h: - s[c++] = $r(P) * b; - case 125 * h: - case 59: - case 0: - switch (y) { - case 0: - case 125: - v = 0; - case 59 + u: - b == -1 && (P = ze(P, /\f/g, "")), p > 0 && $r(P) - d && Si(p > 32 ? wf(P + ";", n, r, d - 1) : wf(ze(P, " ", "") + ";", n, r, d - 2), l); - break; - case 59: - P += ";"; - default: - if (Si(M = Sf(P, t, r, c, u, o, s, S, _ = [], w = [], d), a), y === 123) - if (u === 0) - 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(Sf(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); - } - } - c = u = p = 0, h = b = 1, S = P = "", d = i; - break; - case 58: - d = 1 + $r(P), p = m; - default: - if (h < 1) { - if (y == 123) - --h; - else if (y == 125 && h++ == 0 && mC() == 125) - continue; - } - switch (P += Ns(y), y * h) { - case 38: - b = u > 0 ? 1 : (P += "\f", -1); - break; - case 44: - s[c++] = ($r(P) - 1) * b, b = 1; - break; - case 64: - Mr() === 45 && (P += Vi(Kt())), f = Mr(), u = d = $r(S = P += yC(zi())), y++; - break; - case 45: - m === 45 && $r(P) == 2 && (h = 0); - } - } - return a; -} -function Sf(e, t, r, n, o, a, i, s, l, c, u) { - for (var d = o - 1, f = o === 0 ? a : [""], p = $u(f), m = 0, h = 0, v = 0; m < n; ++m) - for (var b = 0, y = Da(e, d + 1, d = cC(h = i[m])), S = e; b < p; ++b) - (S = qm(h > 0 ? f[b] + " " + y : ze(y, /&\f/g, f[b]))) && (l[v++] = S); - return Bs(e, t, r, o === 0 ? Ou : s, l, c, u); -} -function SC(e, t, r) { - return Bs(e, t, r, Au, Ns(hC()), Da(e, 2, -2), 0); -} -function wf(e, t, r, n) { - return Bs(e, t, r, Ru, Da(e, 0, n), Da(e, n + 1, -1), n); -} -function mo(e, t) { - for (var r = "", n = $u(e), o = 0; o < n; o++) - r += t(e[o], o, e, t) || ""; - return r; -} -function wC(e, t, r, n) { - switch (e.type) { - case lC: - if (e.children.length) - break; - case sC: - case Ru: - return e.return = e.return || e.value; - case Au: - return ""; - case Gm: - return e.return = e.value + "{" + mo(e.children, n) + "}"; - case Ou: - e.value = e.props.join(","); - } - return $r(r = mo(e.children, n)) ? e.return = e.value + "{" + r + "}" : ""; -} -function CC(e) { - var t = $u(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 _C(e) { - return function(t) { - t.root || (t = t.return) && e(t); - }; -} -var Cf = function(t) { - var r = /* @__PURE__ */ new WeakMap(); - return function(n) { - if (r.has(n)) - return r.get(n); - var o = t(n); - return r.set(n, o), o; - }; -}; -function Jm(e) { - var t = /* @__PURE__ */ Object.create(null); - return function(r) { - return t[r] === void 0 && (t[r] = e(r)), t[r]; - }; -} -var kC = 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); -}, EC = function(t, r) { - var n = -1, o = 44; - do - switch (Ma(o)) { - case 0: - o === 38 && Mr() === 12 && (r[n] = 1), t[n] += kC(Ht - 1, r, n); - break; - case 2: - t[n] += Vi(o); - break; - case 4: - if (o === 44) { - t[++n] = Mr() === 58 ? "&\f" : "", r[n] = t[n].length; - break; - } - default: - t[n] += Ns(o); - } - while (o = Kt()); - return t; -}, PC = function(t, r) { - return Zm(EC(Km(t), r)); -}, _f = /* @__PURE__ */ new WeakMap(), TC = 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 && !_f.get(n)) && !o) { - _f.set(t, !0); - for (var a = [], i = PC(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]; - } - } -}, AC = 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 = ""); - } -}, OC = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", RC = function(t) { - return t.type === "comm" && t.children.indexOf(OC) > -1; -}, $C = function(t) { - return function(r, n, o) { - if (!(r.type !== "rule" || t.compat)) { - var a = r.value.match(/(:first|:nth|:nth-last)-child/g); - if (a) { - for (var i = !!r.parent, s = i ? r.parent.children : ( - // global rule at the root level - o - ), l = s.length - 1; l >= 0; l--) { - var c = s[l]; - if (c.line < r.line) - break; - if (c.column < r.column) { - if (RC(c)) - return; - break; - } - } - a.forEach(function(u) { - console.error('The pseudo class "' + u + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + u.split("-child")[0] + '-of-type".'); - }); - } - } - }; -}, Qm = function(t) { - return t.type.charCodeAt(1) === 105 && t.type.charCodeAt(0) === 64; -}, DC = function(t, r) { - for (var n = t - 1; n >= 0; n--) - if (!Qm(r[n])) - return !0; - return !1; -}, kf = function(t) { - t.type = "", t.value = "", t.return = "", t.children = "", t.props = ""; -}, MC = function(t, r, n) { - Qm(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."), kf(t)) : DC(r, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), kf(t))); -}; -function ev(e, t) { - switch (dC(e, t)) { - case 5103: - return Be + "print-" + e + e; - case 5737: - case 4201: - case 3177: - case 3433: - case 1641: - case 4457: - case 2921: - case 5572: - case 6356: - case 5844: - case 3191: - case 6645: - case 3005: - case 6391: - case 5879: - case 5623: - case 6135: - case 4599: - case 4855: - case 4215: - case 6389: - case 5109: - case 5365: - case 5621: - case 3829: - return Be + e + e; - case 5349: - case 4246: - case 4810: - case 6968: - case 2756: - return Be + e + cs + e + Tt + e + e; - case 6828: - case 4268: - return Be + e + Tt + e + e; - case 6165: - return Be + e + Tt + "flex-" + e + e; - case 5187: - return Be + e + ze(e, /(\w+).+(:[^]+)/, Be + "box-$1$2" + Tt + "flex-$1$2") + e; - case 5443: - return Be + e + Tt + "flex-item-" + ze(e, /flex-|-self/, "") + e; - case 4675: - return Be + e + Tt + "flex-line-pack" + ze(e, /align-content|flex-|-self/, "") + e; - case 5548: - return Be + e + Tt + ze(e, "shrink", "negative") + e; - case 5292: - return Be + e + Tt + ze(e, "basis", "preferred-size") + e; - case 6060: - return Be + "box-" + ze(e, "-grow", "") + Be + e + Tt + ze(e, "grow", "positive") + e; - case 4554: - return Be + ze(e, /([^-])(transform)/g, "$1" + Be + "$2") + e; - case 6187: - return ze(ze(ze(e, /(zoom-|grab)/, Be + "$1"), /(image-set)/, Be + "$1"), e, "") + e; - case 5495: - case 3959: - return ze(e, /(image-set\([^]*)/, Be + "$1$`$1"); - case 4968: - return ze(ze(e, /(.+:)(flex-)?(.*)/, Be + "box-pack:$3" + Tt + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Be + e + e; - case 4095: - case 3583: - case 4068: - case 2532: - return ze(e, /(.+)-inline(.+)/, Be + "$1$2") + e; - case 8116: - case 7059: - case 5753: - case 5535: - case 5445: - case 5701: - case 4933: - case 4677: - case 5533: - case 5789: - case 5021: - case 4765: - if ($r(e) - 1 - t > 6) - switch (kt(e, t + 1)) { - case 109: - if (kt(e, t + 4) !== 45) - break; - case 102: - return ze(e, /(.+:)(.+)-([^]+)/, "$1" + Be + "$2-$3$1" + cs + (kt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; - case 115: - return ~Oc(e, "stretch") ? ev(ze(e, "stretch", "fill-available"), t) + e : e; - } - break; - case 4949: - if (kt(e, t + 1) !== 115) - break; - case 6444: - switch (kt(e, $r(e) - 3 - (~Oc(e, "!important") && 10))) { - case 107: - return ze(e, ":", ":" + Be) + e; - case 101: - return ze(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Be + (kt(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Be + "$2$3$1" + Tt + "$2box$3") + e; - } - break; - case 5936: - switch (kt(e, t + 11)) { - case 114: - return Be + e + Tt + ze(e, /[svh]\w+-[tblr]{2}/, "tb") + e; - case 108: - return Be + e + Tt + ze(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; - case 45: - return Be + e + Tt + ze(e, /[svh]\w+-[tblr]{2}/, "lr") + e; - } - return Be + e + Tt + e + e; - } - return e; -} -var IC = function(t, r, n, o) { - if (t.length > -1 && !t.return) - switch (t.type) { - case Ru: - t.return = ev(t.value, t.length); - break; - case Gm: - return mo([Xo(t, { - value: ze(t.value, "@", "@" + Be) - })], o); - case Ou: - if (t.length) - return pC(t.props, function(a) { - switch (fC(a, /(::plac\w+|:read-\w+)/)) { - case ":read-only": - case ":read-write": - return mo([Xo(t, { - props: [ze(a, /:(read-\w+)/, ":" + cs + "$1")] - })], o); - case "::placeholder": - return mo([Xo(t, { - props: [ze(a, /:(plac\w+)/, ":" + Be + "input-$1")] - }), Xo(t, { - props: [ze(a, /:(plac\w+)/, ":" + cs + "$1")] - }), Xo(t, { - props: [ze(a, /:(plac\w+)/, Tt + "input-$1")] - })], o); - } - return ""; - }); - } -}, FC = [IC], NC = 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. -If multiple caches share the same key they might "fight" for each other's style elements.`); - if (r === "css") { - var n = document.querySelectorAll("style[data-emotion]:not([data-s])"); - Array.prototype.forEach.call(n, function(h) { - var v = h.getAttribute("data-emotion"); - v.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", "")); - }); - } - var o = t.stylisPlugins || FC; - 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 = []; - i = t.container || document.head, Array.prototype.forEach.call( - // this means we will ignore elements which don't have a space in them which - // means that the style elements we're looking at are only Emotion 11 server-rendered style elements - document.querySelectorAll('style[data-emotion^="' + r + ' "]'), - function(h) { - for (var v = h.getAttribute("data-emotion").split(" "), b = 1; b < v.length; b++) - a[v[b]] = !0; - s.push(h); - } - ); - var l, c = [TC, AC]; - process.env.NODE_ENV !== "production" && c.push($C({ - get compat() { - return m.compat; - } - }), MC); - { - var u, d = [wC, process.env.NODE_ENV !== "production" ? function(h) { - h.root || (h.return ? u.insert(h.return) : h.value && h.type !== Au && u.insert(h.value + "{}")); - } : _C(function(h) { - u.insert(h); - })], f = CC(c.concat(o, d)), p = function(v) { - return mo(xC(v), f); - }; - l = function(v, b, y, S) { - u = y, process.env.NODE_ENV !== "production" && b.map !== void 0 && (u = { - insert: function(w) { - y.insert(w + b.map); - } - }), p(v ? v + "{" + b.styles + "}" : b.styles), S && (m.inserted[b.name] = !0); - }; - } - var m = { - key: r, - sheet: new iC({ - key: r, - container: i, - nonce: t.nonce, - speedy: t.speedy, - prepend: t.prepend, - insertionPoint: t.insertionPoint - }), - nonce: t.nonce, - inserted: a, - registered: {}, - insert: l - }; - return m.sheet.hydrate(s), m; -}, jC = !0; -function Du(e, t, r) { - var n = ""; - return r.split(" ").forEach(function(o) { - e[o] !== void 0 ? t.push(e[o] + ";") : n += o + " "; - }), 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 - // the tree but if it's a string tag, we know it won't - // so we don't have to add it to registered cache. - // this improves memory usage since we can avoid storing the whole style string - (n === !1 || // we need to always store it if we're in compat mode and - // 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 - jC === !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; - do - t.insert(r === a ? "." + o : "", a, t.sheet, !0), a = a.next; - while (a !== void 0); - } -}; -function BC(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: */ - r >>> 24, t = /* Math.imul(k, m): */ - (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ - (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16); - switch (o) { - case 3: - t ^= (e.charCodeAt(n + 2) & 255) << 16; - case 2: - t ^= (e.charCodeAt(n + 1) & 255) << 8; - case 1: - t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */ - (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16); - } - return t ^= t >>> 13, t = /* Math.imul(h, m): */ - (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36); -} -var zC = { - animationIterationCount: 1, - aspectRatio: 1, - borderImageOutset: 1, - borderImageSlice: 1, - borderImageWidth: 1, - boxFlex: 1, - boxFlexGroup: 1, - boxOrdinalGroup: 1, - columnCount: 1, - columns: 1, - flex: 1, - flexGrow: 1, - flexPositive: 1, - flexShrink: 1, - flexNegative: 1, - flexOrder: 1, - gridRow: 1, - gridRowEnd: 1, - gridRowSpan: 1, - gridRowStart: 1, - gridColumn: 1, - gridColumnEnd: 1, - gridColumnSpan: 1, - gridColumnStart: 1, - msGridRow: 1, - msGridRowSpan: 1, - msGridColumn: 1, - msGridColumnSpan: 1, - fontWeight: 1, - lineHeight: 1, - opacity: 1, - order: 1, - orphans: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - // SVG-related properties - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1 -}, Ef = `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`, VC = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", LC = /[A-Z]|^ms/g, tv = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Mu = function(t) { - return t.charCodeAt(1) === 45; -}, Pf = function(t) { - return t != null && typeof t != "boolean"; -}, El = /* @__PURE__ */ Jm(function(e) { - return Mu(e) ? e : e.replace(LC, "-$&").toLowerCase(); -}), us = function(t, r) { - switch (t) { - case "animation": - case "animationName": - if (typeof r == "string") - return r.replace(tv, function(n, o, a) { - return gr = { - name: o, - styles: a, - next: gr - }, o; - }); - } - return zC[t] !== 1 && !Mu(t) && typeof r == "number" && r !== 0 ? r + "px" : r; -}; -if (process.env.NODE_ENV !== "production") { - var WC = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, UC = ["normal", "none", "initial", "inherit", "unset"], HC = us, YC = /^-ms-/, GC = /-(.)/g, Tf = {}; - us = function(t, r) { - if (t === "content" && (typeof r != "string" || UC.indexOf(r) === -1 && !WC.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 = HC(t, r); - return n !== "" && !Mu(t) && t.indexOf("-") !== -1 && Tf[t] === void 0 && (Tf[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(YC, "ms-").replace(GC, function(o, a) { - return a.toUpperCase(); - }) + "?")), n; - }; -} -var rv = "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(rv); - return r; - } - switch (typeof r) { - case "boolean": - return ""; - case "object": { - if (r.anim === 1) - return gr = { - name: r.name, - styles: r.styles, - next: gr - }, r.name; - if (r.styles !== void 0) { - var n = r.next; - if (n !== void 0) - for (; n !== void 0; ) - gr = { - name: n.name, - styles: n.styles, - next: gr - }, n = n.next; - var o = r.styles + ";"; - return process.env.NODE_ENV !== "production" && r.map !== void 0 && (o += r.map), o; - } - return qC(e, t, r); - } - case "function": { - if (e !== void 0) { - var a = gr, i = r(e); - 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(tv, function(u, d, f) { - var p = "animation" + s.length; - return s.push("const " + p + " = keyframes`" + f.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}"; - }); - s.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(s, ["`" + l + "`"]).join(` -`) + ` - -You should wrap it with \`css\` like this: - -` + ("css`" + l + "`")); - } - break; - } - if (t == null) - return r; - var c = t[r]; - return c !== void 0 ? c : r; -} -function qC(e, t, r) { - var n = ""; - if (Array.isArray(r)) - for (var o = 0; o < r.length; 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] + "}" : Pf(i) && (n += El(a) + ":" + us(a, i) + ";"); - else { - if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production") - throw new Error(rv); - if (Array.isArray(i) && typeof i[0] == "string" && (t == null || t[i[0]] === void 0)) - for (var s = 0; s < i.length; s++) - Pf(i[s]) && (n += El(a) + ":" + us(a, i[s]) + ";"); - else { - var l = Ia(e, t, i); - switch (a) { - case "animation": - case "animationName": { - n += El(a) + ":" + l + ";"; - break; - } - default: - process.env.NODE_ENV !== "production" && a === "undefined" && console.error(VC), n += a + "{" + l + "}"; - } - } - } - } - return n; -} -var Af = /label:\s*([^\s;\n{]+)\s*(;|$)/g, nv; -process.env.NODE_ENV !== "production" && (nv = /\/\*#\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 += Ia(n, r, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Ef), a += i[0]); - for (var s = 1; s < t.length; s++) - a += Ia(n, r, t[s]), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Ef), a += i[s]); - var l; - process.env.NODE_ENV !== "production" && (a = a.replace(nv, function(f) { - return l = f, ""; - })), Af.lastIndex = 0; - for (var c = "", u; (u = Af.exec(a)) !== null; ) - c += "-" + // $FlowFixMe we know it's not null - u[1]; - var d = BC(a) + c; - return process.env.NODE_ENV !== "production" ? { - name: d, - styles: a, - map: l, - next: gr, - toString: function() { - return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; - } - } : { - name: d, - styles: a, - next: gr - }; -}, XC = function(t) { - return t(); -}, ov = U["useInsertionEffect"] ? U["useInsertionEffect"] : !1, Iu = ov || XC, Of = ov || U.useLayoutEffect, Fu = {}.hasOwnProperty, Nu = /* @__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__ */ NC({ - key: "css" - }) : null -); -process.env.NODE_ENV !== "production" && (Nu.displayName = "EmotionCacheContext"); -Nu.Provider; -var Ls = function(t) { - return /* @__PURE__ */ At(function(r, n) { - var o = ft(Nu); - return t(r, o, n); - }); -}, yn = /* @__PURE__ */ U.createContext({}); -process.env.NODE_ENV !== "production" && (yn.displayName = "EmotionThemeContext"); -var KC = 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))) - throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!"); - return n; - } - 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 Wn({}, t, r); -}, ZC = /* @__PURE__ */ Cf(function(e) { - return Cf(function(t) { - return KC(e, t); - }); -}), kV = function(t) { - var r = U.useContext(yn); - return t.theme !== r && (r = ZC(r)(t.theme)), /* @__PURE__ */ U.createElement(yn.Provider, { - value: r - }, t.children); -}, Rf = function(t) { - var r = t.split("."); - return r[r.length - 1]; -}, JC = 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 Rf(r[1]); -}, QC = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), e_ = function(t) { - return t.replace(/\$/g, "-"); -}, t_ = function(t) { - if (t) - for (var r = t.split(` -`), n = 0; n < r.length; n++) { - var o = JC(r[n]); - if (o) { - if (QC.has(o)) - break; - if (/^[A-Z]/.test(o)) - return e_(o); - } - } -}, $c = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Dc = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", r_ = 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) - Fu.call(r, o) && (n[o] = r[o]); - if (n[$c] = t, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) { - var a = t_(new Error().stack); - a && (n[Dc] = a); - } - return n; -}, n_ = function(t) { - var r = t.cache, n = t.serialized, o = t.isStringTag; - return zs(r, n, o), Iu(function() { - return Vs(r, n, o); - }), null; -}, av = /* @__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[$c], a = [n], i = ""; - typeof e.className == "string" ? i = Du(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[Dc]; - l && (s = To([s, "label:" + l + ";"])); - } - i += t.key + "-" + s.name; - var c = {}; - for (var u in e) - Fu.call(e, u) && u !== "css" && u !== $c && (process.env.NODE_ENV === "production" || u !== Dc) && (c[u] = e[u]); - return c.ref = r, c.className = i, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(n_, { - cache: t, - serialized: s, - isStringTag: typeof o == "string" - }), /* @__PURE__ */ U.createElement(o, c)); -}); -process.env.NODE_ENV !== "production" && (av.displayName = "EmotionCssPropInternal"); -var o_ = av, a_ = { - name: "@emotion/react", - version: "11.11.1", - main: "dist/emotion-react.cjs.js", - module: "dist/emotion-react.esm.js", - browser: { - "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js" - }, - exports: { - ".": { - module: { - worker: "./dist/emotion-react.worker.esm.js", - browser: "./dist/emotion-react.browser.esm.js", - default: "./dist/emotion-react.esm.js" - }, - import: "./dist/emotion-react.cjs.mjs", - default: "./dist/emotion-react.cjs.js" - }, - "./jsx-runtime": { - module: { - worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js", - browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js", - default: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js" - }, - import: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs", - default: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js" - }, - "./_isolated-hnrs": { - module: { - worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js", - browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js", - default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js" - }, - import: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs", - default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js" - }, - "./jsx-dev-runtime": { - module: { - worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js", - browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js", - default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js" - }, - import: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs", - default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js" - }, - "./package.json": "./package.json", - "./types/css-prop": "./types/css-prop.d.ts", - "./macro": { - types: { - import: "./macro.d.mts", - default: "./macro.d.ts" - }, - default: "./macro.js" - } - }, - types: "types/index.d.ts", - files: [ - "src", - "dist", - "jsx-runtime", - "jsx-dev-runtime", - "_isolated-hnrs", - "types/*.d.ts", - "macro.*" - ], - sideEffects: !1, - author: "Emotion Contributors", - license: "MIT", - scripts: { - "test:typescript": "dtslint types" - }, - dependencies: { - "@babel/runtime": "^7.18.3", - "@emotion/babel-plugin": "^11.11.0", - "@emotion/cache": "^11.11.0", - "@emotion/serialize": "^1.1.2", - "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", - "@emotion/utils": "^1.2.1", - "@emotion/weak-memoize": "^0.3.1", - "hoist-non-react-statics": "^3.3.1" - }, - peerDependencies: { - react: ">=16.8.0" - }, - peerDependenciesMeta: { - "@types/react": { - optional: !0 - } - }, - devDependencies: { - "@definitelytyped/dtslint": "0.0.112", - "@emotion/css": "11.11.0", - "@emotion/css-prettifier": "1.1.3", - "@emotion/server": "11.11.0", - "@emotion/styled": "11.11.0", - "html-tag-names": "^1.1.2", - react: "16.14.0", - "svg-tag-names": "^1.1.1", - typescript: "^4.5.5" - }, - repository: "https://github.com/emotion-js/emotion/tree/main/packages/react", - publishConfig: { - access: "public" - }, - "umd:main": "dist/emotion-react.umd.min.js", - preconstruct: { - entrypoints: [ - "./index.js", - "./jsx-runtime.js", - "./jsx-dev-runtime.js", - "./_isolated-hnrs.js" - ], - umdName: "emotionReact", - exports: { - envConditions: [ - "browser", - "worker" - ], - extra: { - "./types/css-prop": "./types/css-prop.d.ts", - "./macro": { - types: { - import: "./macro.d.mts", - default: "./macro.d.ts" - }, - default: "./macro.js" - } - } - } - } -}, EV = function(t, r) { - var n = arguments; - if (r == null || !Fu.call(r, "css")) - return U.createElement.apply(void 0, n); - var o = n.length, a = new Array(o); - a[0] = o_, a[1] = r_(t, r); - for (var i = 2; i < o; i++) - a[i] = n[i]; - return U.createElement.apply(null, a); -}, $f = !1, i_ = /* @__PURE__ */ Ls(function(e, t) { - process.env.NODE_ENV !== "production" && !$f && // 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?"), $f = !0); - var r = e.styles, n = To([r], void 0, U.useContext(yn)), o = U.useRef(); - return Of(function() { - var a = t.key + "-global", i = new t.sheet.constructor({ - key: a, - nonce: t.sheet.nonce, - container: t.sheet.container, - speedy: t.sheet.isSpeedy - }), s = !1, l = document.querySelector('style[data-emotion="' + a + " " + n.name + '"]'); - return t.sheet.tags.length && (i.before = t.sheet.tags[0]), l !== null && (s = !0, l.setAttribute("data-emotion", a), i.hydrate([l])), o.current = [i, s], function() { - i.flush(); - }; - }, [t]), Of(function() { - var a = o.current, i = a[0], s = a[1]; - if (s) { - a[1] = !1; - return; - } - 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" && (i_.displayName = "EmotionGlobal"); -function s_() { - for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) - t[r] = arguments[r]; - return To(t); -} -var l_ = function() { - var t = s_.apply(void 0, arguments), r = "animation-" + t.name; - return { - name: r, - styles: "@keyframes " + r + "{" + t.styles + "}", - anim: 1, - toString: function() { - return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; - } - }; -}, c_ = function e(t) { - for (var r = t.length, n = 0, o = ""; n < r; n++) { - var a = t[n]; - if (a != null) { - var i = void 0; - switch (typeof a) { - case "boolean": - break; - case "object": { - if (Array.isArray(a)) - i = e(a); - else { - process.env.NODE_ENV !== "production" && a.styles !== void 0 && a.name !== void 0 && console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from component."), i = ""; - for (var s in a) - a[s] && s && (i && (i += " "), i += s); - } - break; - } - default: - i = a; - } - i && (o && (o += " "), o += i); - } - } - return o; -}; -function u_(e, t, r) { - var n = [], o = Du(e, n, r); - return n.length < 2 ? r : o + t(n); -} -var d_ = function(t) { - var r = t.cache, n = t.serializedArr; - return Iu(function() { - for (var o = 0; o < n.length; o++) - Vs(r, n[o], !1); - }), null; -}, f_ = /* @__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 = 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 u_(t.registered, o, c_(u)); - }, i = { - css: o, - cx: a, - theme: U.useContext(yn) - }, s = e.children(i); - return r = !0, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(d_, { - cache: t, - serializedArr: n - }), s); -}); -process.env.NODE_ENV !== "production" && (f_.displayName = "EmotionClassNames"); -if (process.env.NODE_ENV !== "production") { - var Df = !0, p_ = typeof jest < "u" || typeof vi < "u"; - if (Df && !p_) { - var Mf = ( - // $FlowIgnore - typeof globalThis < "u" ? globalThis : Df ? window : global - ), If = "__EMOTION_REACT_" + a_.version.split(".")[0] + "__"; - Mf[If] && 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."), Mf[If] = !0; - } -} -function h_(e, t) { - return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`; -} -function Nt(e = {}) { - const { - name: t, - strict: r = !0, - hookName: n = "useContext", - providerName: o = "Provider", - errorMessage: a, - defaultValue: i - } = e, s = Cr(i); - s.displayName = t; - function l() { - var c; - const u = ft(s); - if (!u && r) { - const d = new Error( - a ?? h_(n, o) - ); - throw d.name = "ContextError", (c = Error.captureStackTrace) == null || c.call(Error, d, l), d; - } - return u; - } - return [s.Provider, l, s]; -} -var [m_, v_] = Nt({ - strict: !1, - name: "PortalManagerContext" -}); -function g_(e) { - const { children: t, zIndex: r } = e; - return /* @__PURE__ */ L.jsx(m_, { value: { zIndex: r }, children: t }); -} -g_.displayName = "PortalManager"; -var Fa = globalThis != null && globalThis.document ? $s : Fe, [iv, b_] = Nt({ - strict: !1, - name: "PortalContext" -}), ju = "chakra-portal", y_ = ".chakra-portal", x_ = (e) => /* @__PURE__ */ L.jsx( - "div", - { - className: "chakra-portal-zIndex", - style: { - position: "absolute", - zIndex: e.zIndex, - top: 0, - left: 0, - right: 0 - // NB: Don't add `bottom: 0`, it makes the entire app unusable - // @see https://github.com/chakra-ui/chakra-ui/issues/3201 - }, - children: e.children - } -), S_ = (e) => { - const { appendToParentPortal: t, children: r } = e, [n, o] = Ye(null), a = be(null), [, i] = Ye({}); - Fe(() => i({}), []); - const s = b_(), l = v_(); - 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 = ju, 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(x_, { zIndex: l == null ? void 0 : l.zIndex, children: r }) : r; - return a.current ? bm( - /* @__PURE__ */ L.jsx(iv, { value: a.current, children: c }), - a.current - ) : /* @__PURE__ */ L.jsx( - "span", - { - ref: (u) => { - u && o(u); - } - } - ); -}, w_ = (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 = ju), l; - }, [o]), [, s] = Ye({}); - return Fa(() => s({}), []), Fa(() => { - if (!(!i || !a)) - return a.appendChild(i), () => { - a.removeChild(i); - }; - }, [i, a]), a && i ? bm( - /* @__PURE__ */ L.jsx(iv, { value: n ? i : null, children: t }), - i - ) : null; -}; -function Qa(e) { - const t = { - appendToParentPortal: !0, - ...e - }, { containerRef: r, ...n } = t; - return r ? /* @__PURE__ */ L.jsx(w_, { containerRef: r, ...n }) : /* @__PURE__ */ L.jsx(S_, { ...n }); -} -Qa.className = ju; -Qa.selector = y_; -Qa.displayName = "Portal"; -function sn() { - const e = ft( - yn - ); - if (!e) - throw Error( - "useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``" - ); - return e; -} -var sv = Cr({}); -sv.displayName = "ColorModeContext"; -function Bu() { - const e = ft(sv); - if (e === void 0) - throw new Error("useColorMode must be used within a ColorModeProvider"); - return e; -} -function PV(e, t) { - const { colorMode: r } = Bu(); - return r === "dark" ? t : e; -} -function lv() { - const e = Bu(), t = sn(); - return { ...e, theme: t }; -} -function C_(e, t, r) { - var n, o; - if (t == null) - return t; - const a = (i) => { - var s, l; - return (l = (s = e.__breakpoints) == null ? void 0 : s.asArray) == null ? void 0 : l[i]; - }; - return (o = (n = a(t)) != null ? n : a(r)) != null ? o : r; -} -function __(e, t, r) { - var n, o; - if (t == null) - return t; - const a = (i) => { - var s, l; - return (l = (s = e.__cssMap) == null ? void 0 : s[i]) == null ? void 0 : l.value; - }; - return (o = (n = a(t)) != null ? n : a(r)) != null ? o : r; -} -function TV(e, t, r) { - const n = sn(); - return k_(e, t, r)(n); -} -function k_(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 C_(a, l, (u = i[c]) != null ? u : l); - const f = `${e}.${l}`; - return __(a, f, (d = i[c]) != null ? d : l); - }); - return Array.isArray(t) ? s : s[0]; - }; -} -var Xe = (...e) => e.filter(Boolean).join(" "); -function E_() { - return process.env.NODE_ENV !== "production"; -} -function Lt(e) { - const t = typeof e; - return e != null && (t === "object" || t === "function") && !Array.isArray(e); -} -var AV = (e) => { - const { condition: t, message: r } = e; - t && E_() && console.warn(r); -}; -function mn(e, ...t) { - return P_(e) ? e(...t) : e; -} -var P_ = (e) => typeof e == "function", Ar = (e) => e ? "" : void 0, Pl = (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 T_(...e) { - return function(r) { - e.forEach((n) => { - n == null || n(r); - }); - }; -} -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]", _ = "[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 = O && O.require && O.require("util").types; - return g || Y && Y.binding && Y.binding("util"); - } catch { - } - }(), R = ae && ae.isTypedArray; - function Se(g, k, $) { - switch ($.length) { - case 0: - return g.call(k); - case 1: - return g.call(k, $[0]); - case 2: - return g.call(k, $[0], $[1]); - case 3: - return g.call(k, $[0], $[1], $[2]); - } - return g.apply(k, $); - } - function he(g, k) { - for (var $ = -1, re = Array(g); ++$ < g; ) - re[$] = k($); - return re; - } - function le(g) { - return function(k) { - return g(k); - }; - } - function De(g, k) { - return g == null ? void 0 : g[k]; - } - 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, Ie = ke.hasOwnProperty, se = function() { - var g = /[^.]+$/.exec(dt && dt.keys && dt.keys.IE_PROTO || ""); - return g ? "Symbol(src)_1." + g : ""; - }(), 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, q = we.splice, ie = Vr ? Vr.toStringTag : void 0, xe = function() { - try { - var g = vl(Object, "defineProperty"); - return g({}, "", {}), g; - } catch { - } - }(), 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(k) { - if (!Pn(k)) - return {}; - if (ve) - return ve(k); - g.prototype = k; - var $ = new g(); - return g.prototype = void 0, $; - }; - }(); - function Er(g) { - var k = -1, $ = g == null ? 0 : g.length; - for (this.clear(); ++k < $; ) { - var re = g[k]; - this.set(re[0], re[1]); - } - } - function cl() { - this.__data__ = nt ? nt(null) : {}, this.size = 0; - } - function ui(g) { - var k = this.has(g) && delete this.__data__[g]; - return this.size -= k ? 1 : 0, k; - } - function ul(g) { - var k = this.__data__; - if (nt) { - var $ = k[g]; - return $ === n ? void 0 : $; - } - return Ie.call(k, g) ? k[g] : void 0; - } - function di(g) { - var k = this.__data__; - return nt ? k[g] !== void 0 : Ie.call(k, g); - } - 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 = cl, Er.prototype.delete = ui, Er.prototype.get = ul, Er.prototype.has = di, Er.prototype.set = fi; - function fr(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() { - this.__data__ = [], this.size = 0; - } - function pi(g) { - var k = this.__data__, $ = Bt(k, g); - if ($ < 0) - return !1; - var re = k.length - 1; - return $ == re ? k.pop() : q.call(k, $, 1), --this.size, !0; - } - function fl(g) { - var k = this.__data__, $ = Bt(k, g); - return $ < 0 ? void 0 : k[$][1]; - } - function pl(g) { - return Bt(this.__data__, g) > -1; - } - 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 = 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]); - } - } - function x() { - this.size = 0, this.__data__ = { - hash: new Er(), - map: new (Ze || fr)(), - string: new Er() - }; - } - function W(g) { - var k = gi(this, g).delete(g); - return this.size -= k ? 1 : 0, k; - } - function K(g) { - return gi(this, g).get(g); - } - function me(g) { - return gi(this, g).has(g); - } - function Me(g, k) { - var $ = gi(this, g), re = $.size; - return $.set(g, k), this.size += $.size == re ? 0 : 1, this; - } - 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 k = this.__data__, $ = k.delete(g); - return this.size = k.size, $; - } - function Ct(g) { - return this.__data__.get(g); - } - function ot(g) { - return this.__data__.has(g); - } - function ct(g, k) { - var $ = this.__data__; - if ($ instanceof fr) { - var re = $.__data__; - if (!Ze || re.length < r - 1) - return re.push([g, k]), this.size = ++$.size, this; - $ = this.__data__ = new ln(re); - } - return $.set(g, k), this.size = $.size, this; - } - 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 && Bd(g), Ge = !$ && !re && !$e && Vd(g), Qe = $ || re || $e || Ge, Te = Qe ? he(g.length, String) : [], et = Te.length; - for (var tr in g) - (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. - Ge && (tr == "buffer" || tr == "byteLength" || tr == "byteOffset") || // Skip index properties. - Nd(tr, et))) && Te.push(tr); - return Te; - } - function Pr(g, k, $) { - ($ !== void 0 && !bi(g[k], $) || $ === void 0 && !(k in g)) && ml(g, k, $); - } - 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, k) { - for (var $ = g.length; $--; ) - if (bi(g[$][0], k)) - return $; - return -1; - } - function ml(g, k, $) { - k == "__proto__" && xe ? xe(g, k, { - configurable: !0, - enumerable: !0, - value: $, - writable: !0 - }) : g[k] = $; - } - var Wy = r0(); - function mi(g) { - return g == null ? g === void 0 ? P : b : ie && ie in Object(g) ? n0(g) : c0(g); - } - function Id(g) { - return Ho(g) && mi(g) == s; - } - function Uy(g) { - if (!Pn(g) || s0(g)) - return !1; - var k = Sl(g) ? xt : N; - return k.test(p0(g)); - } - function Hy(g) { - return Ho(g) && zd(g.length) && !!T[mi(g)]; - } - function Yy(g) { - if (!Pn(g)) - return l0(g); - var k = jd(g), $ = []; - for (var re in g) - re == "constructor" && (k || !Ie.call(g, re)) || $.push(re); - return $; - } - function Fd(g, k, $, re, $e) { - g !== k && Wy(k, function(Ge, Qe) { - if ($e || ($e = new Re()), Pn(Ge)) - Gy(g, k, Qe, $, Fd, re, $e); - else { - var Te = re ? re(gl(g, Qe), Ge, Qe + "", g, k, $e) : void 0; - Te === void 0 && (Te = Ge), Pr(g, Qe, Te); - } - }, Ld); - } - function Gy(g, k, $, re, $e, Ge, Qe) { - var Te = gl(g, $), et = gl(k, $), tr = Qe.get(et); - if (tr) { - Pr(g, $, tr); - return; - } - var Xt = Ge ? Ge(Te, et, $ + "", g, k, Qe) : void 0, Yo = Xt === void 0; - if (Yo) { - var wl = yl(et), Cl = !wl && Bd(et), Ud = !wl && !Cl && Vd(et); - Xt = et, wl || Cl || Ud ? yl(Te) ? Xt = Te : h0(Te) ? Xt = Qy(Te) : Cl ? (Yo = !1, Xt = Ky(et, !0)) : Ud ? (Yo = !1, Xt = Jy(et, !0)) : Xt = [] : m0(et) || bl(et) ? (Xt = Te, bl(Te) ? Xt = v0(Te) : (!Pn(Te) || Sl(Te)) && (Xt = o0(et))) : Yo = !1; - } - Yo && (Qe.set(et, Xt), $e(Xt, et, re, Ge, Qe), Qe.delete(et)), Pr(g, $, Xt); - } - function qy(g, k) { - return d0(u0(g, k, Wd), g + ""); - } - var Xy = xe ? function(g, k) { - return xe(g, "toString", { - configurable: !0, - enumerable: !1, - value: b0(k), - writable: !0 - }); - } : Wd; - function Ky(g, k) { - if (k) - return g.slice(); - var $ = g.length, re = Wr ? Wr($) : new g.constructor($); - return g.copy(re), re; - } - function Zy(g) { - var k = new g.constructor(g.byteLength); - return new Lr(k).set(new Lr(g)), k; - } - function Jy(g, k) { - var $ = k ? Zy(g.buffer) : g.buffer; - return new g.constructor($, g.byteOffset, g.length); - } - function Qy(g, k) { - var $ = -1, re = g.length; - for (k || (k = Array(re)); ++$ < re; ) - k[$] = g[$]; - return k; - } - function e0(g, k, $, re) { - var $e = !$; - $ || ($ = {}); - for (var Ge = -1, Qe = k.length; ++Ge < Qe; ) { - var Te = k[Ge], 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 t0(g) { - return qy(function(k, $) { - var re = -1, $e = $.length, Ge = $e > 1 ? $[$e - 1] : void 0, Qe = $e > 2 ? $[2] : void 0; - for (Ge = g.length > 3 && typeof Ge == "function" ? ($e--, Ge) : void 0, Qe && a0($[0], $[1], Qe) && (Ge = $e < 3 ? void 0 : Ge, $e = 1), k = Object(k); ++re < $e; ) { - var Te = $[re]; - Te && g(k, Te, re, Ge); - } - return k; - }); - } - function r0(g) { - return function(k, $, re) { - for (var $e = -1, Ge = Object(k), Qe = re(k), Te = Qe.length; Te--; ) { - var et = Qe[g ? Te : ++$e]; - if ($(Ge[et], et, Ge) === !1) - break; - } - return k; - }; - } - function gi(g, k) { - var $ = g.__data__; - return i0(k) ? $[typeof k == "string" ? "string" : "hash"] : $.map; - } - function vl(g, k) { - var $ = De(g, k); - return Uy($) ? $ : void 0; - } - function n0(g) { - var k = Ie.call(g, ie), $ = g[ie]; - try { - g[ie] = void 0; - var re = !0; - } catch { - } - var $e = Oe.call(g); - return re && (k ? g[ie] = $ : delete g[ie]), $e; - } - function o0(g) { - return typeof g.constructor == "function" && !jd(g) ? Ur(te(g)) : {}; - } - function Nd(g, k) { - var $ = typeof g; - return k = k ?? i, !!k && ($ == "number" || $ != "symbol" && V.test(g)) && g > -1 && g % 1 == 0 && g < k; - } - function a0(g, k, $) { - if (!Pn($)) - return !1; - var re = typeof k; - return (re == "number" ? xl($) && Nd(k, $.length) : re == "string" && k in $) ? bi($[k], g) : !1; - } - function i0(g) { - var k = typeof g; - return k == "string" || k == "number" || k == "symbol" || k == "boolean" ? g !== "__proto__" : g === null; - } - function s0(g) { - return !!se && se in g; - } - function jd(g) { - var k = g && g.constructor, $ = typeof k == "function" && k.prototype || ke; - return g === $; - } - function l0(g) { - var k = []; - if (g != null) - for (var $ in Object(g)) - k.push($); - return k; - } - function c0(g) { - return Oe.call(g); - } - function u0(g, k, $) { - return k = He(k === void 0 ? g.length - 1 : k, 0), function() { - for (var re = arguments, $e = -1, Ge = He(re.length - k, 0), Qe = Array(Ge); ++$e < Ge; ) - Qe[$e] = re[k + $e]; - $e = -1; - for (var Te = Array(k + 1); ++$e < k; ) - Te[$e] = re[$e]; - return Te[k] = $(Qe), Se(g, this, Te); - }; - } - function gl(g, k) { - if (!(k === "constructor" && typeof g[k] == "function") && k != "__proto__") - return g[k]; - } - var d0 = f0(Xy); - function f0(g) { - var k = 0, $ = 0; - return function() { - var re = wt(), $e = a - (re - $); - if ($ = re, $e > 0) { - if (++k >= o) - return arguments[0]; - } else - k = 0; - return g.apply(void 0, arguments); - }; - } - function p0(g) { - if (g != null) { - try { - return rt.call(g); - } catch { - } - try { - return g + ""; - } catch { - } - } - return ""; - } - function bi(g, k) { - return g === k || g !== g && k !== k; - } - var bl = Id(function() { - return arguments; - }()) ? Id : function(g) { - return Ho(g) && Ie.call(g, "callee") && !kr.call(g, "callee"); - }, yl = Array.isArray; - function xl(g) { - return g != null && zd(g.length) && !Sl(g); - } - function h0(g) { - return Ho(g) && xl(g); - } - var Bd = Ce || y0; - function Sl(g) { - if (!Pn(g)) - return !1; - var k = mi(g); - return k == p || k == m || k == c || k == S; - } - function zd(g) { - return typeof g == "number" && g > -1 && g % 1 == 0 && g <= i; - } - function Pn(g) { - var k = typeof g; - return g != null && (k == "object" || k == "function"); - } - function Ho(g) { - return g != null && typeof g == "object"; - } - function m0(g) { - if (!Ho(g) || mi(g) != y) - return !1; - var k = te(g); - if (k === null) - return !0; - var $ = Ie.call(k, "constructor") && k.constructor; - return typeof $ == "function" && $ instanceof $ && rt.call($) == Ot; - } - var Vd = R ? le(R) : Hy; - function v0(g) { - return e0(g, Ld(g)); - } - function Ld(g) { - return xl(g) ? jt(g, !0) : Yy(g); - } - var g0 = t0(function(g, k, $, re) { - Fd(g, k, $, re); - }); - function b0(g) { - return function() { - return g; - }; - } - function Wd(g) { - return g; - } - function y0() { - return !1; - } - e.exports = g0; -})(ds, ds.exports); -var A_ = ds.exports; -const sr = /* @__PURE__ */ Ms(A_); -var O_ = (e) => /!(important)?$/.test(e), Ff = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, R_ = (e, t) => (r) => { - const n = String(t), o = O_(n), a = Ff(n), i = e ? `${e}.${a}` : a; - let s = Lt(r.__cssMap) && i in r.__cssMap ? r.__cssMap[i].varRef : t; - return s = Ff(s), o ? `${s} !important` : s; -}; -function zu(e) { - const { scale: t, transform: r, compose: n } = e; - return (a, i) => { - var s; - const l = R_(t, a)(i); - let c = (s = r == null ? void 0 : r(l, i)) != null ? s : l; - return n && (c = n(c, i)), c; - }; -} -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 = zu({ - scale: e, - transform: t - }), n; - }; -} -var $_ = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t; -function D_(e) { - const { property: t, scale: r, transform: n } = e; - return { - scale: r, - property: $_(t), - transform: r ? zu({ - scale: r, - compose: n - }) : n - }; -} -var cv = [ - "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 M_() { - return [ - "translateX(var(--chakra-translate-x, 0))", - "translateY(var(--chakra-translate-y, 0))", - ...cv - ].join(" "); -} -function I_() { - return [ - "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)", - ...cv - ].join(" "); -} -var F_ = { - "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-grayscale": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-hue-rotate": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-invert": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-saturate": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-sepia": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-drop-shadow": "var(--chakra-empty,/*!*/ /*!*/)", - filter: [ - "var(--chakra-blur)", - "var(--chakra-brightness)", - "var(--chakra-contrast)", - "var(--chakra-grayscale)", - "var(--chakra-hue-rotate)", - "var(--chakra-invert)", - "var(--chakra-saturate)", - "var(--chakra-sepia)", - "var(--chakra-drop-shadow)" - ].join(" ") -}, N_ = { - backdropFilter: [ - "var(--chakra-backdrop-blur)", - "var(--chakra-backdrop-brightness)", - "var(--chakra-backdrop-contrast)", - "var(--chakra-backdrop-grayscale)", - "var(--chakra-backdrop-hue-rotate)", - "var(--chakra-backdrop-invert)", - "var(--chakra-backdrop-opacity)", - "var(--chakra-backdrop-saturate)", - "var(--chakra-backdrop-sepia)" - ].join(" "), - "--chakra-backdrop-blur": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-backdrop-brightness": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-backdrop-contrast": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-backdrop-grayscale": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-backdrop-hue-rotate": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-backdrop-invert": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-backdrop-opacity": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)" -}; -function j_(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)", - "--chakra-ring-width": e, - boxShadow: [ - "var(--chakra-ring-offset-shadow)", - "var(--chakra-ring-shadow)", - "var(--chakra-shadow, 0 0 #0000)" - ].join(", ") - }; -} -var B_ = { - "row-reverse": { - space: "--chakra-space-x-reverse", - divide: "--chakra-divide-x-reverse" - }, - "column-reverse": { - space: "--chakra-space-y-reverse", - divide: "--chakra-divide-y-reverse" - } -}, Mc = { - "to-t": "to top", - "to-tr": "to top right", - "to-r": "to right", - "to-br": "to bottom right", - "to-b": "to bottom", - "to-bl": "to bottom left", - "to-l": "to left", - "to-tl": "to top left" -}, z_ = new Set(Object.values(Mc)), Ic = /* @__PURE__ */ new Set([ - "none", - "-moz-initial", - "inherit", - "initial", - "revert", - "unset" -]), V_ = (e) => e.trim(); -function L_(e, t) { - if (e == null || Ic.has(e)) - return e; - if (!(Fc(e) || Ic.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(V_).filter(Boolean); - if ((c == null ? void 0 : c.length) === 0) - return e; - const u = l in Mc ? Mc[l] : l; - c.unshift(u); - const d = c.map((f) => { - if (z_.has(f)) - return f; - const p = f.indexOf(" "), [m, h] = p !== -1 ? [f.substr(0, p), f.substr(p + 1)] : [f], v = Fc(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] - ].join(" ") : y; - }); - return `${s}(${d.join(", ")})`; -} -var Fc = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), W_ = (e, t) => L_(e, t ?? {}); -function U_(e) { - return /^var\(--.+\)$/.test(e); -} -var H_ = (e) => { - const t = parseFloat(e.toString()), r = e.toString().replace(String(t), ""); - return { unitless: !r, value: t, unit: r }; -}, Tr = (e) => (t) => `${e}(${t})`, Ae = { - filter(e) { - return e !== "auto" ? e : F_; - }, - backdropFilter(e) { - return e !== "auto" ? e : N_; - }, - ring(e) { - return j_(Ae.px(e)); - }, - bgClip(e) { - return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e }; - }, - transform(e) { - return e === "auto" ? M_() : e === "auto-gpu" ? I_() : e; - }, - vh(e) { - return e === "$100vh" ? "var(--chakra-vh)" : e; - }, - px(e) { - if (e == null) - return e; - const { unitless: t } = H_(e); - return t || typeof e == "number" ? `${e}px` : e; - }, - fraction(e) { - return typeof e != "number" || e > 1 ? e : `${e * 100}%`; - }, - float(e, t) { - const r = { left: "right", right: "left" }; - return t.direction === "rtl" ? r[e] : e; - }, - degree(e) { - if (U_(e) || e == null) - return e; - const t = typeof e == "string" && !e.endsWith("deg"); - return typeof e == "number" || t ? `${e}deg` : e; - }, - gradient: W_, - blur: Tr("blur"), - opacity: Tr("opacity"), - brightness: Tr("brightness"), - contrast: Tr("contrast"), - dropShadow: Tr("drop-shadow"), - grayscale: Tr("grayscale"), - hueRotate: (e) => Tr("hue-rotate")(Ae.degree(e)), - invert: Tr("invert"), - saturate: Tr("saturate"), - sepia: Tr("sepia"), - bgImage(e) { - return e == null || Fc(e) || Ic.has(e) ? e : `url(${e})`; - }, - outline(e) { - const t = String(e) === "0" || String(e) === "none"; - return e !== null && t ? { outline: "2px solid transparent", outlineOffset: "2px" } : { outline: e }; - }, - flexDirection(e) { - var t; - const { space: r, divide: n } = (t = B_[e]) != null ? t : {}, o = { flexDirection: e }; - return r && (o[r] = 1), n && (o[n] = 1), o; - } -}, E = { - borderWidths: rr("borderWidths"), - borderStyles: rr("borderStyles"), - colors: rr("colors"), - borders: rr("borders"), - 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: Ae.degree }; - }, - prop(e, t, r) { - return { - property: e, - scale: t, - ...t && { - transform: zu({ scale: t, transform: r }) - } - }; - }, - propT(e, t) { - return { property: e, transform: t }; - }, - sizes: rr("sizes", wi(Ae.vh, Ae.px)), - sizesT: rr("sizes", wi(Ae.vh, Ae.fraction)), - shadows: rr("shadows"), - logical: D_, - blur: rr("blur", Ae.blur) -}, Wi = { - background: E.colors("background"), - backgroundColor: E.colors("backgroundColor"), - backgroundImage: E.gradients("backgroundImage"), - backgroundSize: !0, - backgroundPosition: !0, - backgroundRepeat: !0, - backgroundAttachment: !0, - backgroundClip: { transform: Ae.bgClip }, - bgSize: E.prop("backgroundSize"), - bgPosition: E.prop("backgroundPosition"), - bg: E.colors("background"), - bgColor: E.colors("backgroundColor"), - bgPos: E.prop("backgroundPosition"), - bgRepeat: E.prop("backgroundRepeat"), - bgAttachment: E.prop("backgroundAttachment"), - bgGradient: E.gradients("backgroundImage"), - bgClip: { transform: Ae.bgClip } -}; -Object.assign(Wi, { - bgImage: Wi.backgroundImage, - bgImg: Wi.backgroundImage -}); -var je = { - border: E.borders("border"), - borderWidth: E.borderWidths("borderWidth"), - borderStyle: E.borderStyles("borderStyle"), - borderColor: E.colors("borderColor"), - borderRadius: E.radii("borderRadius"), - borderTop: E.borders("borderTop"), - borderBlockStart: E.borders("borderBlockStart"), - borderTopLeftRadius: E.radii("borderTopLeftRadius"), - borderStartStartRadius: E.logical({ - scale: "radii", - property: { - ltr: "borderTopLeftRadius", - rtl: "borderTopRightRadius" - } - }), - borderEndStartRadius: E.logical({ - scale: "radii", - property: { - ltr: "borderBottomLeftRadius", - rtl: "borderBottomRightRadius" - } - }), - borderTopRightRadius: E.radii("borderTopRightRadius"), - borderStartEndRadius: E.logical({ - scale: "radii", - property: { - ltr: "borderTopRightRadius", - rtl: "borderTopLeftRadius" - } - }), - borderEndEndRadius: E.logical({ - scale: "radii", - property: { - ltr: "borderBottomRightRadius", - rtl: "borderBottomLeftRadius" - } - }), - borderRight: E.borders("borderRight"), - borderInlineEnd: E.borders("borderInlineEnd"), - borderBottom: E.borders("borderBottom"), - borderBlockEnd: E.borders("borderBlockEnd"), - borderBottomLeftRadius: E.radii("borderBottomLeftRadius"), - borderBottomRightRadius: E.radii("borderBottomRightRadius"), - borderLeft: E.borders("borderLeft"), - borderInlineStart: { - property: "borderInlineStart", - scale: "borders" - }, - borderInlineStartRadius: E.logical({ - scale: "radii", - property: { - ltr: ["borderTopLeftRadius", "borderBottomLeftRadius"], - rtl: ["borderTopRightRadius", "borderBottomRightRadius"] - } - }), - borderInlineEndRadius: E.logical({ - scale: "radii", - property: { - ltr: ["borderTopRightRadius", "borderBottomRightRadius"], - rtl: ["borderTopLeftRadius", "borderBottomLeftRadius"] - } - }), - borderX: E.borders(["borderLeft", "borderRight"]), - borderInline: E.borders("borderInline"), - borderY: E.borders(["borderTop", "borderBottom"]), - borderBlock: E.borders("borderBlock"), - borderTopWidth: E.borderWidths("borderTopWidth"), - borderBlockStartWidth: E.borderWidths("borderBlockStartWidth"), - borderTopColor: E.colors("borderTopColor"), - borderBlockStartColor: E.colors("borderBlockStartColor"), - borderTopStyle: E.borderStyles("borderTopStyle"), - borderBlockStartStyle: E.borderStyles("borderBlockStartStyle"), - borderBottomWidth: E.borderWidths("borderBottomWidth"), - borderBlockEndWidth: E.borderWidths("borderBlockEndWidth"), - borderBottomColor: E.colors("borderBottomColor"), - borderBlockEndColor: E.colors("borderBlockEndColor"), - borderBottomStyle: E.borderStyles("borderBottomStyle"), - borderBlockEndStyle: E.borderStyles("borderBlockEndStyle"), - borderLeftWidth: E.borderWidths("borderLeftWidth"), - borderInlineStartWidth: E.borderWidths("borderInlineStartWidth"), - borderLeftColor: E.colors("borderLeftColor"), - borderInlineStartColor: E.colors("borderInlineStartColor"), - borderLeftStyle: E.borderStyles("borderLeftStyle"), - borderInlineStartStyle: E.borderStyles("borderInlineStartStyle"), - borderRightWidth: E.borderWidths("borderRightWidth"), - borderInlineEndWidth: E.borderWidths("borderInlineEndWidth"), - borderRightColor: E.colors("borderRightColor"), - borderInlineEndColor: E.colors("borderInlineEndColor"), - borderRightStyle: E.borderStyles("borderRightStyle"), - borderInlineEndStyle: E.borderStyles("borderInlineEndStyle"), - borderTopRadius: E.radii(["borderTopLeftRadius", "borderTopRightRadius"]), - borderBottomRadius: E.radii([ - "borderBottomLeftRadius", - "borderBottomRightRadius" - ]), - borderLeftRadius: E.radii(["borderTopLeftRadius", "borderBottomLeftRadius"]), - borderRightRadius: E.radii([ - "borderTopRightRadius", - "borderBottomRightRadius" - ]) -}; -Object.assign(je, { - rounded: je.borderRadius, - roundedTop: je.borderTopRadius, - roundedTopLeft: je.borderTopLeftRadius, - roundedTopRight: je.borderTopRightRadius, - roundedTopStart: je.borderStartStartRadius, - roundedTopEnd: je.borderStartEndRadius, - roundedBottom: je.borderBottomRadius, - roundedBottomLeft: je.borderBottomLeftRadius, - roundedBottomRight: je.borderBottomRightRadius, - roundedBottomStart: je.borderEndStartRadius, - roundedBottomEnd: je.borderEndEndRadius, - roundedLeft: je.borderLeftRadius, - roundedRight: je.borderRightRadius, - roundedStart: je.borderInlineStartRadius, - roundedEnd: je.borderInlineEndRadius, - borderStart: je.borderInlineStart, - borderEnd: je.borderInlineEnd, - borderTopStartRadius: je.borderStartStartRadius, - borderTopEndRadius: je.borderStartEndRadius, - borderBottomStartRadius: je.borderEndStartRadius, - borderBottomEndRadius: je.borderEndEndRadius, - borderStartRadius: je.borderInlineStartRadius, - borderEndRadius: je.borderInlineEndRadius, - borderStartWidth: je.borderInlineStartWidth, - borderEndWidth: je.borderInlineEndWidth, - borderStartColor: je.borderInlineStartColor, - borderEndColor: je.borderInlineEndColor, - borderStartStyle: je.borderInlineStartStyle, - borderEndStyle: je.borderInlineEndStyle -}); -var Y_ = { - color: E.colors("color"), - textColor: E.colors("color"), - fill: E.colors("fill"), - stroke: E.colors("stroke") -}, Nc = { - boxShadow: E.shadows("boxShadow"), - mixBlendMode: !0, - blendMode: E.prop("mixBlendMode"), - backgroundBlendMode: !0, - bgBlendMode: E.prop("backgroundBlendMode"), - opacity: !0 -}; -Object.assign(Nc, { - shadow: Nc.boxShadow -}); -var G_ = { - filter: { transform: Ae.filter }, - blur: E.blur("--chakra-blur"), - 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", - Ae.brightness - ), - 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: Ae.flexDirection }, - flex: !0, - flexFlow: !0, - flexGrow: !0, - flexShrink: !0, - flexBasis: E.sizes("flexBasis"), - justifySelf: !0, - alignSelf: !0, - order: !0, - placeItems: !0, - placeContent: !0, - placeSelf: !0, - gap: E.space("gap"), - rowGap: E.space("rowGap"), - columnGap: E.space("columnGap") -}; -Object.assign(fs, { - flexDir: fs.flexDirection -}); -var uv = { - gridGap: E.space("gridGap"), - gridColumnGap: E.space("gridColumnGap"), - gridRowGap: E.space("gridRowGap"), - gridColumn: !0, - gridRow: !0, - gridAutoFlow: !0, - gridAutoColumns: !0, - gridColumnStart: !0, - gridColumnEnd: !0, - gridRowStart: !0, - gridRowEnd: !0, - gridAutoRows: !0, - gridTemplate: !0, - gridTemplateColumns: !0, - gridTemplateRows: !0, - gridTemplateAreas: !0, - gridArea: !0 -}, q_ = { - appearance: !0, - cursor: !0, - resize: !0, - userSelect: !0, - pointerEvents: !0, - outline: { transform: Ae.outline }, - outlineOffset: !0, - outlineColor: E.colors("outlineColor") -}, or = { - width: E.sizesT("width"), - inlineSize: E.sizesT("inlineSize"), - height: E.sizes("height"), - blockSize: E.sizes("blockSize"), - boxSize: E.sizes(["width", "height"]), - minWidth: E.sizes("minWidth"), - minInlineSize: E.sizes("minInlineSize"), - minHeight: E.sizes("minHeight"), - minBlockSize: E.sizes("minBlockSize"), - maxWidth: E.sizes("maxWidth"), - maxInlineSize: E.sizes("maxInlineSize"), - maxHeight: E.sizes("maxHeight"), - maxBlockSize: E.sizes("maxBlockSize"), - overflow: !0, - overflowX: !0, - overflowY: !0, - overscrollBehavior: !0, - overscrollBehaviorX: !0, - overscrollBehaviorY: !0, - display: !0, - aspectRatio: !0, - hideFrom: { - scale: "breakpoints", - transform: (e, t) => { - var r, n, o; - return { [`@media screen and (min-width: ${(o = (n = (r = t.__breakpoints) == null ? void 0 : r.get(e)) == null ? void 0 : n.minW) != null ? o : e})`]: { display: "none" } }; - } - }, - hideBelow: { - scale: "breakpoints", - transform: (e, t) => { - var r, n, o; - return { [`@media screen and (max-width: ${(o = (n = (r = t.__breakpoints) == null ? void 0 : r.get(e)) == null ? void 0 : n._minW) != null ? o : e})`]: { display: "none" } }; - } - }, - verticalAlign: !0, - boxSizing: !0, - boxDecorationBreak: !0, - float: E.propT("float", Ae.float), - objectFit: !0, - objectPosition: !0, - visibility: !0, - isolation: !0 -}; -Object.assign(or, { - w: or.width, - h: or.height, - minW: or.minWidth, - maxW: or.maxWidth, - minH: or.minHeight, - maxH: or.maxHeight, - overscroll: or.overscrollBehavior, - overscrollX: or.overscrollBehaviorX, - overscrollY: or.overscrollBehaviorY -}); -var X_ = { - listStyleType: !0, - listStylePosition: !0, - listStylePos: E.prop("listStylePosition"), - listStyleImage: !0, - listStyleImg: E.prop("listStyleImage") -}; -function K_(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 Z_ = (e) => { - const t = /* @__PURE__ */ new WeakMap(); - return (n, o, a, i) => { - if (typeof n > "u") - return e(n, o, a); - t.has(n) || t.set(n, /* @__PURE__ */ new Map()); - const s = t.get(n); - if (s.has(o)) - return s.get(o); - const l = e(n, o, a, i); - return s.set(o, l), l; - }; -}, J_ = Z_(K_), Q_ = { - border: "0px", - clip: "rect(0, 0, 0, 0)", - width: "1px", - height: "1px", - margin: "-1px", - padding: "0px", - overflow: "hidden", - whiteSpace: "nowrap", - position: "absolute" -}, ek = { - position: "static", - width: "auto", - height: "auto", - clip: "auto", - padding: "0", - margin: "0", - overflow: "visible", - whiteSpace: "normal" -}, Tl = (e, t, r) => { - const n = {}, o = J_(e, t, {}); - for (const a in o) - a in r && r[a] != null || (n[a] = o[a]); - return n; -}, tk = { - srOnly: { - transform(e) { - return e === !0 ? Q_ : e === "focusable" ? ek : {}; - } - }, - layerStyle: { - processResult: !0, - transform: (e, t, r) => Tl(t, `layerStyles.${e}`, r) - }, - textStyle: { - processResult: !0, - transform: (e, t, r) => Tl(t, `textStyles.${e}`, r) - }, - apply: { - processResult: !0, - transform: (e, t, r) => Tl(t, e, r) - } -}, pa = { - position: !0, - pos: E.prop("position"), - zIndex: E.prop("zIndex", "zIndices"), - inset: E.spaceT("inset"), - insetX: E.spaceT(["left", "right"]), - insetInline: E.spaceT("insetInline"), - insetY: E.spaceT(["top", "bottom"]), - insetBlock: E.spaceT("insetBlock"), - top: E.spaceT("top"), - insetBlockStart: E.spaceT("insetBlockStart"), - bottom: E.spaceT("bottom"), - insetBlockEnd: E.spaceT("insetBlockEnd"), - left: E.spaceT("left"), - insetInlineStart: E.logical({ - scale: "space", - property: { ltr: "left", rtl: "right" } - }), - right: E.spaceT("right"), - insetInlineEnd: E.logical({ - scale: "space", - property: { ltr: "right", rtl: "left" } - }) -}; -Object.assign(pa, { - insetStart: pa.insetInlineStart, - insetEnd: pa.insetInlineEnd -}); -var rk = { - ring: { transform: Ae.ring }, - ringColor: E.colors("--chakra-ring-color"), - ringOffset: E.prop("--chakra-ring-offset-width"), - ringOffsetColor: E.colors("--chakra-ring-offset-color"), - ringInset: E.prop("--chakra-ring-inset") -}, Je = { - margin: E.spaceT("margin"), - marginTop: E.spaceT("marginTop"), - marginBlockStart: E.spaceT("marginBlockStart"), - marginRight: E.spaceT("marginRight"), - marginInlineEnd: E.spaceT("marginInlineEnd"), - marginBottom: E.spaceT("marginBottom"), - marginBlockEnd: E.spaceT("marginBlockEnd"), - marginLeft: E.spaceT("marginLeft"), - marginInlineStart: E.spaceT("marginInlineStart"), - marginX: E.spaceT(["marginInlineStart", "marginInlineEnd"]), - marginInline: E.spaceT("marginInline"), - marginY: E.spaceT(["marginTop", "marginBottom"]), - marginBlock: E.spaceT("marginBlock"), - padding: E.space("padding"), - paddingTop: E.space("paddingTop"), - paddingBlockStart: E.space("paddingBlockStart"), - paddingRight: E.space("paddingRight"), - paddingBottom: E.space("paddingBottom"), - paddingBlockEnd: E.space("paddingBlockEnd"), - paddingLeft: E.space("paddingLeft"), - paddingInlineStart: E.space("paddingInlineStart"), - paddingInlineEnd: E.space("paddingInlineEnd"), - paddingX: E.space(["paddingInlineStart", "paddingInlineEnd"]), - paddingInline: E.space("paddingInline"), - paddingY: E.space(["paddingTop", "paddingBottom"]), - paddingBlock: E.space("paddingBlock") -}; -Object.assign(Je, { - m: Je.margin, - mt: Je.marginTop, - mr: Je.marginRight, - me: Je.marginInlineEnd, - marginEnd: Je.marginInlineEnd, - mb: Je.marginBottom, - ml: Je.marginLeft, - ms: Je.marginInlineStart, - marginStart: Je.marginInlineStart, - mx: Je.marginX, - my: Je.marginY, - p: Je.padding, - pt: Je.paddingTop, - py: Je.paddingY, - px: Je.paddingX, - pb: Je.paddingBottom, - pl: Je.paddingLeft, - ps: Je.paddingInlineStart, - paddingStart: Je.paddingInlineStart, - pr: Je.paddingRight, - pe: Je.paddingInlineEnd, - paddingEnd: Je.paddingInlineEnd -}); -var nk = { - textDecorationColor: E.colors("textDecorationColor"), - textDecoration: !0, - textDecor: { property: "textDecoration" }, - textDecorationLine: !0, - textDecorationStyle: !0, - textDecorationThickness: !0, - textUnderlineOffset: !0, - textShadow: E.shadows("textShadow") -}, ok = { - clipPath: !0, - transform: E.propT("transform", Ae.transform), - transformOrigin: !0, - translateX: E.spaceT("--chakra-translate-x"), - translateY: E.spaceT("--chakra-translate-y"), - skewX: E.degreeT("--chakra-skew-x"), - skewY: E.degreeT("--chakra-skew-y"), - scaleX: E.prop("--chakra-scale-x"), - scaleY: E.prop("--chakra-scale-y"), - scale: E.prop(["--chakra-scale-x", "--chakra-scale-y"]), - rotate: E.degreeT("--chakra-rotate") -}, ak = { - transition: !0, - transitionDelay: !0, - animation: !0, - willChange: !0, - transitionDuration: E.prop("transitionDuration", "transition.duration"), - transitionProperty: E.prop("transitionProperty", "transition.property"), - transitionTimingFunction: E.prop( - "transitionTimingFunction", - "transition.easing" - ) -}, ik = { - fontFamily: E.prop("fontFamily", "fonts"), - fontSize: E.prop("fontSize", "fontSizes", Ae.px), - fontWeight: E.prop("fontWeight", "fontWeights"), - lineHeight: E.prop("lineHeight", "lineHeights"), - letterSpacing: E.prop("letterSpacing", "letterSpacings"), - textAlign: !0, - fontStyle: !0, - textIndent: !0, - wordBreak: !0, - overflowWrap: !0, - textOverflow: !0, - textTransform: !0, - whiteSpace: !0, - isTruncated: { - transform(e) { - if (e === !0) - return { - overflow: "hidden", - textOverflow: "ellipsis", - whiteSpace: "nowrap" - }; - } - }, - noOfLines: { - static: { - overflow: "hidden", - textOverflow: "ellipsis", - display: "-webkit-box", - WebkitBoxOrient: "vertical", - //@ts-ignore - WebkitLineClamp: "var(--chakra-line-clamp)" - }, - property: "--chakra-line-clamp" - } -}, sk = { - scrollBehavior: !0, - scrollSnapAlign: !0, - scrollSnapStop: !0, - scrollSnapType: !0, - // scroll margin - scrollMargin: E.spaceT("scrollMargin"), - scrollMarginTop: E.spaceT("scrollMarginTop"), - scrollMarginBottom: E.spaceT("scrollMarginBottom"), - scrollMarginLeft: E.spaceT("scrollMarginLeft"), - 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"), - scrollPaddingLeft: E.spaceT("scrollPaddingLeft"), - scrollPaddingRight: E.spaceT("scrollPaddingRight"), - scrollPaddingX: E.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]), - scrollPaddingY: E.spaceT(["scrollPaddingTop", "scrollPaddingBottom"]) -}; -function dv(e) { - return Lt(e) && e.reference ? e.reference : String(e); -} -var Ws = (e, ...t) => t.map(dv).join(` ${e} `).replace(/calc/g, ""), Nf = (...e) => `calc(${Ws("+", ...e)})`, jf = (...e) => `calc(${Ws("-", ...e)})`, jc = (...e) => `calc(${Ws("*", ...e)})`, Bf = (...e) => `calc(${Ws("/", ...e)})`, zf = (e) => { - const t = dv(e); - return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : jc(t, -1); -}, Dn = Object.assign( - (e) => ({ - add: (...t) => Dn(Nf(e, ...t)), - subtract: (...t) => Dn(jf(e, ...t)), - multiply: (...t) => Dn(jc(e, ...t)), - divide: (...t) => Dn(Bf(e, ...t)), - negate: () => Dn(zf(e)), - toString: () => e.toString() - }), - { - add: Nf, - subtract: jf, - multiply: jc, - divide: Bf, - negate: zf - } -); -function lk(e, t = "-") { - return e.replace(/\s+/g, t); -} -function ck(e) { - const t = lk(e.toString()); - return dk(uk(t)); -} -function uk(e) { - return e.includes("\\.") ? e : !Number.isInteger(parseFloat(e.toString())) ? e.replace(".", "\\.") : e; -} -function dk(e) { - return e.replace(/[!-,/:-@[-^`{-~]/g, "\\$&"); -} -function fk(e, t = "") { - return [t, e].filter(Boolean).join("-"); -} -function pk(e, t) { - return `var(${e}${t ? `, ${t}` : ""})`; -} -function hk(e, t = "") { - return ck(`--${fk(e, t)}`); -} -function de(e, t, r) { - const n = hk(e, r); - return { - variable: n, - reference: pk(n, t) - }; -} -function mk(e, t) { - const r = {}; - for (const n of t) { - if (Array.isArray(n)) { - const [o, a] = n; - r[o] = de(`${e}-${o}`, a); - continue; - } - r[n] = de(`${e}-${n}`); - } - return r; -} -function vk(e) { - const t = e == null ? 0 : e.length; - return t ? e[t - 1] : void 0; -} -function gk(e) { - const t = parseFloat(e.toString()), r = e.toString().replace(String(t), ""); - return { unitless: !r, value: t, unit: r }; -} -function Bc(e) { - if (e == null) - return e; - const { unitless: t } = gk(e); - return t || typeof e == "number" ? `${e}px` : e; -} -var fv = (e, t) => parseInt(e[1], 10) > parseInt(t[1], 10) ? 1 : -1, Vu = (e) => Object.fromEntries(Object.entries(e).sort(fv)); -function Vf(e) { - const t = Vu(e); - return Object.assign(Object.values(t), t); -} -function bk(e) { - const t = Object.keys(Vu(e)); - return new Set(t); -} -function Lf(e) { - var t; - if (!e) - return e; - e = (t = Bc(e)) != null ? t : e; - const r = -0.02; - return typeof e == "number" ? `${e + r}` : e.replace(/(\d+\.?\d*)/u, (n) => `${parseFloat(n) + r}`); -} -function na(e, t) { - const r = ["@media screen"]; - return e && r.push("and", `(min-width: ${Bc(e)})`), t && r.push("and", `(max-width: ${Bc(t)})`), r.join(" "); -} -function yk(e) { - var t; - if (!e) - return null; - e.base = (t = e.base) != null ? t : "0px"; - const r = Vf(e), n = Object.entries(e).sort(fv).map(([i, s], l, c) => { - var u; - let [, d] = (u = c[l + 1]) != null ? u : []; - return d = parseFloat(d) > 0 ? Lf(d) : void 0, { - _minW: Lf(s), - breakpoint: i, - minW: s, - maxW: d, - maxWQuery: na(null, d), - minWQuery: na(s), - minMaxQuery: na(s, d) - }; - }), o = bk(e), a = Array.from(o.values()); - return { - keys: o, - normalized: r, - isResponsive(i) { - const s = Object.keys(i); - return s.length > 0 && s.every((l) => o.has(l)); - }, - asObject: Vu(e), - asArray: Vf(e), - details: n, - get(i) { - return n.find((s) => s.breakpoint === i); - }, - media: [ - null, - ...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"); - const s = a.map((l) => { - var c; - return (c = i[l]) != null ? c : null; - }); - for (; vk(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"); - return i.reduce((s, l, c) => { - const u = a[c]; - return u != null && l != null && (s[u] = l), s; - }, {}); - } - }; -} -var _t = { - hover: (e, t) => `${e}:hover ${t}, ${e}[data-hover] ${t}`, - focus: (e, t) => `${e}:focus ${t}, ${e}[data-focus] ${t}`, - focusVisible: (e, t) => `${e}:focus-visible ${t}`, - focusWithin: (e, t) => `${e}:focus-within ${t}`, - active: (e, t) => `${e}:active ${t}, ${e}[data-active] ${t}`, - disabled: (e, t) => `${e}:disabled ${t}, ${e}[data-disabled] ${t}`, - invalid: (e, t) => `${e}:invalid ${t}, ${e}[data-invalid] ${t}`, - checked: (e, t) => `${e}:checked ${t}, ${e}[data-checked] ${t}`, - indeterminate: (e, t) => `${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${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}` -}, cn = (e) => pv((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), Hr = (e) => pv((t) => e(t, "~ &"), "[data-peer]", ".peer"), pv = (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]", - /** - * 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]" -}, hv = Object.keys( - Us -); -function Wf(e, t) { - return de(String(e).replace(/\./g, "-"), void 0, t); -} -function xk(e, t) { - let r = {}; - const n = {}; - for (const [o, a] of Object.entries(e)) { - const { isSemantic: i, value: s } = a, { variable: l, reference: c } = Wf(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 = Dn.negate(s), b = Dn.negate(c); - n[h] = { - value: v, - var: l, - varRef: b - }; - } - r[l] = s, n[o] = { - value: s, - var: l, - varRef: c - }; - continue; - } - const u = (f) => { - const m = [String(o).split(".")[0], f].join("."); - if (!e[m]) - return f; - const { reference: v } = Wf(m, t == null ? void 0 : t.cssVarPrefix); - return v; - }, d = Lt(s) ? s : { default: s }; - r = sr( - r, - Object.entries(d).reduce( - (f, [p, m]) => { - var h, v; - if (!m) - return f; - const b = u(`${m}`); - if (p === "default") - return f[l] = b, f; - const y = (v = (h = Us) == null ? void 0 : h[p]) != null ? v : p; - return f[y] = { [l]: b }, f; - }, - {} - ) - ), n[o] = { - value: c, - var: l, - varRef: c - }; - } - return { - cssVars: r, - cssMap: n - }; -} -function Sk(e, t = []) { - const r = Object.assign({}, e); - for (const n of t) - n in r && delete r[n]; - return r; -} -function wk(e, t) { - const r = {}; - for (const n of t) - n in e && (r[n] = e[n]); - return r; -} -function Ck(e) { - return typeof e == "object" && e != null && !Array.isArray(e); -} -function Uf(e, t, r = {}) { - const { stop: n, getKey: o } = r; - function a(i, s = []) { - var l; - if (Ck(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]; - if (n != null && n(i, p)) - return t(i, s); - c[f] = a(d, p); - } - return c; - } - return t(i, s); - } - return a(e); -} -var _k = [ - "colors", - "borders", - "borderWidths", - "borderStyles", - "fonts", - "fontSizes", - "fontWeights", - "gradients", - "letterSpacings", - "lineHeights", - "radii", - "space", - "shadows", - "sizes", - "zIndices", - "transition", - "blur", - "breakpoints" -]; -function kk(e) { - return wk(e, _k); -} -function Ek(e) { - return e.semanticTokens; -} -function Pk(e) { - const { __cssMap: t, __cssVars: r, __breakpoints: n, ...o } = e; - return o; -} -var Tk = (e) => hv.includes(e) || e === "default"; -function Ak({ - tokens: e, - semanticTokens: t -}) { - const r = {}; - return Uf(e, (n, o) => { - n != null && (r[o.join(".")] = { isSemantic: !1, value: n }); - }), Uf( - t, - (n, o) => { - n != null && (r[o.join(".")] = { isSemantic: !0, value: n }); - }, - { - stop: (n) => Object.keys(n).every(Tk) - } - ), r; -} -function OV(e) { - var t; - const r = Pk(e), n = kk(r), o = Ek(r), a = Ak({ 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 - } = xk(a, { cssVarPrefix: i }); - return Object.assign(r, { - __cssVars: { ...{ - "--chakra-ring-inset": "var(--chakra-empty,/*!*/ /*!*/)", - "--chakra-ring-offset-width": "0px", - "--chakra-ring-offset-color": "#fff", - "--chakra-ring-color": "rgba(66, 153, 225, 0.6)", - "--chakra-ring-offset-shadow": "0 0 #0000", - "--chakra-ring-shadow": "0 0 #0000", - "--chakra-space-x-reverse": "0", - "--chakra-space-y-reverse": "0" - }, ...l }, - __cssMap: s, - __breakpoints: yk(r.breakpoints) - }), r; -} -var Lu = sr( - {}, - Wi, - je, - Y_, - fs, - or, - G_, - rk, - q_, - uv, - tk, - pa, - Nc, - Je, - sk, - ik, - nk, - ok, - X_, - ak -), Ok = Object.assign({}, Je, or, fs, uv, pa), RV = Object.keys( - Ok -), Rk = [...Object.keys(Lu), ...hv], $k = { ...Lu, ...Us }, Dk = (e) => e in $k, Mk = (e) => (t) => { - if (!t.__breakpoints) - return e; - const { isResponsive: r, toArrayValue: n, media: o } = t.__breakpoints, a = {}; - for (const i in e) { - let s = mn(e[i], t); - if (s == null) - continue; - if (s = Lt(s) && r(s) ? n(s) : s, !Array.isArray(s)) { - a[i] = s; - continue; - } - const l = s.slice(0, o.length).length; - for (let c = 0; c < l; c += 1) { - const u = o == null ? void 0 : o[c]; - if (!u) { - a[i] = s[c]; - continue; - } - a[u] = a[u] || {}, s[c] != null && (a[u][i] = s[c]); - } - } - return a; -}; -function Ik(e) { - const t = []; - let r = "", n = !1; - for (let o = 0; o < e.length; o++) { - const a = e[o]; - a === "(" ? (n = !0, r += a) : a === ")" ? (n = !1, r += a) : a === "," && !n ? (t.push(r), r = "") : r += a; - } - return r = r.trim(), r && t.push(r), t; -} -function Fk(e) { - return /^var\(--.+\)$/.test(e); -} -var Nk = (e, t) => e.startsWith("--") && typeof t == "string" && !Fk(t), jk = (e, t) => { - var r, n; - if (t == null) - return t; - const o = (l) => { - var c, u; - return (u = (c = e.__cssMap) == null ? void 0 : c[l]) == null ? void 0 : u.varRef; - }, a = (l) => { - var c; - return (c = o(l)) != null ? c : l; - }, [i, s] = Ik(t); - return t = (n = (r = o(i)) != null ? r : a(s)) != null ? n : a(t), t; -}; -function Bk(e) { - const { configs: t = {}, pseudos: r = {}, theme: n } = e, o = (a, i = !1) => { - var s, l, c; - const u = mn(a, n), d = Mk(u)(n); - let f = {}; - for (let p in d) { - const m = d[p]; - let h = mn(m, n); - p in r && (p = r[p]), Nk(p, h) && (h = jk(n, h)); - let v = t[p]; - if (v === !0 && (v = { property: p }), Lt(h)) { - f[p] = (s = f[p]) != null ? s : {}, f[p] = sr( - {}, - f[p], - o(h, !0) - ); - continue; - } - 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 = mn(v == null ? void 0 : v.property, n); - if (!i && (v != null && v.static)) { - const S = mn(v.static, n); - f = sr({}, f, S); - } - if (y && Array.isArray(y)) { - for (const S of y) - f[S] = b; - continue; - } - if (y) { - y === "&" && Lt(b) ? f = sr({}, f, b) : f[y] = b; - continue; - } - if (Lt(b)) { - f = sr({}, f, b); - continue; - } - f[p] = b; - } - return f; - }; - return o; -} -var zk = (e) => (t) => Bk({ - theme: t, - pseudos: Us, - configs: Lu -})(e); -function $V(e) { - return e; -} -function DV(e) { - return e; -} -function Ke(e) { - return { - definePartsStyle(t) { - return t; - }, - defineMultiStyleConfig(t) { - return { parts: e, ...t }; - } - }; -} -function Vk(e, t) { - if (Array.isArray(e)) - return e; - if (Lt(e)) - return t(e); - if (e != null) - return [e]; -} -function Lk(e, t) { - for (let r = t + 1; r < e.length; r++) - if (e[r] != null) - return r; - return -1; -} -function Wk(e) { - const t = e.__breakpoints; - return function(n, o, a, i) { - var s, l; - if (!t) - return; - const c = {}, u = Vk(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[Lk(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) => { - sr(c, { - [S]: f ? y[S] : { [b]: y[S] } - }); - }); - continue; - } - if (!p) { - f ? sr(c, y) : c[b] = y; - continue; - } - c[b] = y; - } - } - return c; - }; -} -function Uk(e) { - return (t) => { - var r; - const { variant: n, size: o, theme: a } = t, i = Wk(a); - return sr( - {}, - mn((r = e.baseStyle) != null ? r : {}, t), - i(e, "sizes", o, t), - i(e, "variants", n, t) - ); - }; -} -function Hk(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 Br(e) { - return Sk(e, ["styleConfig", "size", "variant", "colorScheme"]); -} -var Yk = [ - "borders", - "breakpoints", - "colors", - "components", - "config", - "direction", - "fonts", - "fontSizes", - "fontWeights", - "letterSpacings", - "lineHeights", - "radii", - "shadows", - "sizes", - "space", - "styles", - "transition", - "zIndices" -]; -function Gk(e) { - return Lt(e) ? Yk.every( - (t) => Object.prototype.hasOwnProperty.call(e, t) - ) : !1; -} -var qk = { - 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" -}, Xk = { - "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)" -}, Kk = { - "ultra-fast": "50ms", - faster: "100ms", - fast: "150ms", - normal: "200ms", - slow: "300ms", - slower: "400ms", - "ultra-slow": "500ms" -}, Zk = { - property: qk, - easing: Xk, - duration: Kk -}, Jk = Zk, Qk = { - hide: -1, - auto: "auto", - base: 0, - docked: 10, - dropdown: 1e3, - sticky: 1100, - banner: 1200, - overlay: 1300, - modal: 1400, - popover: 1500, - skipLink: 1600, - toast: 1700, - tooltip: 1800 -}, eE = Qk, tE = { - none: 0, - "1px": "1px solid", - "2px": "2px solid", - "4px": "4px solid", - "8px": "8px solid" -}, rE = tE, nE = { - base: "0em", - sm: "30em", - md: "48em", - lg: "62em", - xl: "80em", - "2xl": "96em" -}, oE = nE, aE = { - transparent: "transparent", - current: "currentColor", - black: "#000000", - white: "#FFFFFF", - whiteAlpha: { - 50: "rgba(255, 255, 255, 0.04)", - 100: "rgba(255, 255, 255, 0.06)", - 200: "rgba(255, 255, 255, 0.08)", - 300: "rgba(255, 255, 255, 0.16)", - 400: "rgba(255, 255, 255, 0.24)", - 500: "rgba(255, 255, 255, 0.36)", - 600: "rgba(255, 255, 255, 0.48)", - 700: "rgba(255, 255, 255, 0.64)", - 800: "rgba(255, 255, 255, 0.80)", - 900: "rgba(255, 255, 255, 0.92)" - }, - blackAlpha: { - 50: "rgba(0, 0, 0, 0.04)", - 100: "rgba(0, 0, 0, 0.06)", - 200: "rgba(0, 0, 0, 0.08)", - 300: "rgba(0, 0, 0, 0.16)", - 400: "rgba(0, 0, 0, 0.24)", - 500: "rgba(0, 0, 0, 0.36)", - 600: "rgba(0, 0, 0, 0.48)", - 700: "rgba(0, 0, 0, 0.64)", - 800: "rgba(0, 0, 0, 0.80)", - 900: "rgba(0, 0, 0, 0.92)" - }, - gray: { - 50: "#F7FAFC", - 100: "#EDF2F7", - 200: "#E2E8F0", - 300: "#CBD5E0", - 400: "#A0AEC0", - 500: "#718096", - 600: "#4A5568", - 700: "#2D3748", - 800: "#1A202C", - 900: "#171923" - }, - red: { - 50: "#FFF5F5", - 100: "#FED7D7", - 200: "#FEB2B2", - 300: "#FC8181", - 400: "#F56565", - 500: "#E53E3E", - 600: "#C53030", - 700: "#9B2C2C", - 800: "#822727", - 900: "#63171B" - }, - orange: { - 50: "#FFFAF0", - 100: "#FEEBC8", - 200: "#FBD38D", - 300: "#F6AD55", - 400: "#ED8936", - 500: "#DD6B20", - 600: "#C05621", - 700: "#9C4221", - 800: "#7B341E", - 900: "#652B19" - }, - yellow: { - 50: "#FFFFF0", - 100: "#FEFCBF", - 200: "#FAF089", - 300: "#F6E05E", - 400: "#ECC94B", - 500: "#D69E2E", - 600: "#B7791F", - 700: "#975A16", - 800: "#744210", - 900: "#5F370E" - }, - green: { - 50: "#F0FFF4", - 100: "#C6F6D5", - 200: "#9AE6B4", - 300: "#68D391", - 400: "#48BB78", - 500: "#38A169", - 600: "#2F855A", - 700: "#276749", - 800: "#22543D", - 900: "#1C4532" - }, - teal: { - 50: "#E6FFFA", - 100: "#B2F5EA", - 200: "#81E6D9", - 300: "#4FD1C5", - 400: "#38B2AC", - 500: "#319795", - 600: "#2C7A7B", - 700: "#285E61", - 800: "#234E52", - 900: "#1D4044" - }, - blue: { - 50: "#ebf8ff", - 100: "#bee3f8", - 200: "#90cdf4", - 300: "#63b3ed", - 400: "#4299e1", - 500: "#3182ce", - 600: "#2b6cb0", - 700: "#2c5282", - 800: "#2a4365", - 900: "#1A365D" - }, - cyan: { - 50: "#EDFDFD", - 100: "#C4F1F9", - 200: "#9DECF9", - 300: "#76E4F7", - 400: "#0BC5EA", - 500: "#00B5D8", - 600: "#00A3C4", - 700: "#0987A0", - 800: "#086F83", - 900: "#065666" - }, - purple: { - 50: "#FAF5FF", - 100: "#E9D8FD", - 200: "#D6BCFA", - 300: "#B794F4", - 400: "#9F7AEA", - 500: "#805AD5", - 600: "#6B46C1", - 700: "#553C9A", - 800: "#44337A", - 900: "#322659" - }, - pink: { - 50: "#FFF5F7", - 100: "#FED7E2", - 200: "#FBB6CE", - 300: "#F687B3", - 400: "#ED64A6", - 500: "#D53F8C", - 600: "#B83280", - 700: "#97266D", - 800: "#702459", - 900: "#521B41" - }, - linkedin: { - 50: "#E8F4F9", - 100: "#CFEDFB", - 200: "#9BDAF3", - 300: "#68C7EC", - 400: "#34B3E4", - 500: "#00A0DC", - 600: "#008CC9", - 700: "#0077B5", - 800: "#005E93", - 900: "#004471" - }, - facebook: { - 50: "#E8F4F9", - 100: "#D9DEE9", - 200: "#B7C2DA", - 300: "#6482C0", - 400: "#4267B2", - 500: "#385898", - 600: "#314E89", - 700: "#29487D", - 800: "#223B67", - 900: "#1E355B" - }, - messenger: { - 50: "#D0E6FF", - 100: "#B9DAFF", - 200: "#A2CDFF", - 300: "#7AB8FF", - 400: "#2E90FF", - 500: "#0078FF", - 600: "#0063D1", - 700: "#0052AC", - 800: "#003C7E", - 900: "#002C5C" - }, - whatsapp: { - 50: "#dffeec", - 100: "#b9f5d0", - 200: "#90edb3", - 300: "#65e495", - 400: "#3cdd78", - 500: "#22c35e", - 600: "#179848", - 700: "#0c6c33", - 800: "#01421c", - 900: "#001803" - }, - twitter: { - 50: "#E5F4FD", - 100: "#C8E9FB", - 200: "#A8DCFA", - 300: "#83CDF7", - 400: "#57BBF5", - 500: "#1DA1F2", - 600: "#1A94DA", - 700: "#1681BF", - 800: "#136B9E", - 900: "#0D4D71" - }, - telegram: { - 50: "#E3F2F9", - 100: "#C5E4F3", - 200: "#A2D4EC", - 300: "#7AC1E4", - 400: "#47A9DA", - 500: "#0088CC", - 600: "#007AB8", - 700: "#006BA1", - 800: "#005885", - 900: "#003F5E" - } -}, iE = aE, sE = { - none: "0", - sm: "0.125rem", - base: "0.25rem", - md: "0.375rem", - lg: "0.5rem", - xl: "0.75rem", - "2xl": "1rem", - "3xl": "1.5rem", - full: "9999px" -}, lE = sE, cE = { - 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)", - md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)", - lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", - xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", - "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)", - outline: "0 0 0 3px rgba(66, 153, 225, 0.6)", - 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" -}, uE = cE, dE = { - none: 0, - sm: "4px", - base: "8px", - md: "12px", - lg: "16px", - xl: "24px", - "2xl": "40px", - "3xl": "64px" -}, fE = dE, pE = { - letterSpacings: { - tighter: "-0.05em", - tight: "-0.025em", - normal: "0", - wide: "0.025em", - wider: "0.05em", - widest: "0.1em" - }, - lineHeights: { - normal: "normal", - none: 1, - shorter: 1.25, - short: 1.375, - base: 1.5, - tall: 1.625, - taller: "2", - 3: ".75rem", - 4: "1rem", - 5: "1.25rem", - 6: "1.5rem", - 7: "1.75rem", - 8: "2rem", - 9: "2.25rem", - 10: "2.5rem" - }, - fontWeights: { - hairline: 100, - thin: 200, - light: 300, - normal: 400, - medium: 500, - semibold: 600, - bold: 700, - extrabold: 800, - black: 900 - }, - fonts: { - heading: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', - body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', - mono: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace' - }, - fontSizes: { - "3xs": "0.45rem", - "2xs": "0.625rem", - xs: "0.75rem", - sm: "0.875rem", - md: "1rem", - lg: "1.125rem", - xl: "1.25rem", - "2xl": "1.5rem", - "3xl": "1.875rem", - "4xl": "2.25rem", - "5xl": "3rem", - "6xl": "3.75rem", - "7xl": "4.5rem", - "8xl": "6rem", - "9xl": "8rem" - } -}, mv = pE, vv = { - px: "1px", - 0.5: "0.125rem", - 1: "0.25rem", - 1.5: "0.375rem", - 2: "0.5rem", - 2.5: "0.625rem", - 3: "0.75rem", - 3.5: "0.875rem", - 4: "1rem", - 5: "1.25rem", - 6: "1.5rem", - 7: "1.75rem", - 8: "2rem", - 9: "2.25rem", - 10: "2.5rem", - 12: "3rem", - 14: "3.5rem", - 16: "4rem", - 20: "5rem", - 24: "6rem", - 28: "7rem", - 32: "8rem", - 36: "9rem", - 40: "10rem", - 44: "11rem", - 48: "12rem", - 52: "13rem", - 56: "14rem", - 60: "15rem", - 64: "16rem", - 72: "18rem", - 80: "20rem", - 96: "24rem" -}, hE = { - max: "max-content", - min: "min-content", - full: "100%", - "3xs": "14rem", - "2xs": "16rem", - xs: "20rem", - sm: "24rem", - md: "28rem", - lg: "32rem", - xl: "36rem", - "2xl": "42rem", - "3xl": "48rem", - "4xl": "56rem", - "5xl": "64rem", - "6xl": "72rem", - "7xl": "80rem", - "8xl": "90rem", - prose: "60ch" -}, mE = { - sm: "640px", - md: "768px", - lg: "1024px", - xl: "1280px" -}, vE = { - ...vv, - ...hE, - container: mE -}, gv = vE, bv = { - breakpoints: oE, - zIndices: eE, - radii: lE, - blur: fE, - colors: iE, - ...mv, - sizes: gv, - shadows: uE, - space: vv, - borders: rE, - transition: Jk -}, { defineMultiStyleConfig: gE, definePartsStyle: oa } = Ke([ - "stepper", - "step", - "title", - "description", - "indicator", - "separator", - "icon", - "number" -]), 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"), bE = oa(({ colorScheme: e }) => ({ - stepper: { - display: "flex", - justifyContent: "space-between", - gap: "4", - "&[data-orientation=vertical]": { - flexDirection: "column", - alignItems: "flex-start" - }, - "&[data-orientation=horizontal]": { - flexDirection: "row", - alignItems: "center" - }, - [Ko.variable]: `colors.${e}.500`, - _dark: { - [Ko.variable]: `colors.${e}.200` - } - }, - title: { - fontSize: oo.reference, - fontWeight: "medium" - }, - description: { - fontSize: aa.reference, - color: "chakra-subtle-text" - }, - number: { - fontSize: oo.reference - }, - step: { - flexShrink: 0, - position: "relative", - display: "flex", - gap: "2", - "&[data-orientation=horizontal]": { - alignItems: "center" - }, - flex: "1", - "&:last-of-type:not([data-stretch])": { - flex: "initial" - } - }, - icon: { - flexShrink: 0, - width: no.reference, - height: no.reference - }, - indicator: { - flexShrink: 0, - borderRadius: "full", - width: Yr.reference, - height: Yr.reference, - display: "flex", - justifyContent: "center", - alignItems: "center", - "&[data-status=active]": { - borderWidth: "2px", - borderColor: Ko.reference - }, - "&[data-status=complete]": { - bg: Ko.reference, - color: "chakra-inverse-text" - }, - "&[data-status=incomplete]": { - borderWidth: "2px" - } - }, - separator: { - bg: "chakra-border-color", - flex: "1", - "&[data-status=complete]": { - bg: Ko.reference - }, - "&[data-orientation=horizontal]": { - width: "100%", - height: "2px", - marginStart: "2" - }, - "&[data-orientation=vertical]": { - width: "2px", - position: "absolute", - height: "100%", - maxHeight: `calc(100% - ${Yr.reference} - 8px)`, - top: `calc(${Yr.reference} + 4px)`, - insetStart: `calc(${Yr.reference} / 2 - 1px)` - } - } -})), yE = gE({ - baseStyle: bE, - sizes: { - xs: oa({ - stepper: { - [Yr.variable]: "sizes.4", - [no.variable]: "sizes.3", - [oo.variable]: "fontSizes.xs", - [aa.variable]: "fontSizes.xs" - } - }), - sm: oa({ - stepper: { - [Yr.variable]: "sizes.6", - [no.variable]: "sizes.4", - [oo.variable]: "fontSizes.sm", - [aa.variable]: "fontSizes.xs" - } - }), - md: oa({ - stepper: { - [Yr.variable]: "sizes.8", - [no.variable]: "sizes.5", - [oo.variable]: "fontSizes.md", - [aa.variable]: "fontSizes.sm" - } - }), - lg: oa({ - stepper: { - [Yr.variable]: "sizes.10", - [no.variable]: "sizes.6", - [oo.variable]: "fontSizes.lg", - [aa.variable]: "fontSizes.md" - } - }) - }, - defaultProps: { - size: "md", - colorScheme: "blue" - } -}); -function Le(e, t = {}) { - let r = !1; - function n() { - if (!r) { - r = !0; - return; - } - throw new Error( - "[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?" - ); - } - function o(...u) { - n(); - for (const d of u) - t[d] = l(d); - return Le(e, t); - } - function a(...u) { - for (const d of u) - d in t || (t[d] = l(d)); - return Le(e, t); - } - function i() { - return Object.fromEntries( - Object.entries(t).map(([d, f]) => [d, f.selector]) - ); - } - function s() { - return Object.fromEntries( - Object.entries(t).map(([d, f]) => [d, f.className]) - ); - } - function l(u) { - const p = `chakra-${(["container", "root"].includes(u ?? "") ? [e] : [e, u]).filter(Boolean).join("__")}`; - return { - className: p, - selector: `.${p}`, - toString: () => u - }; - } - return { - parts: o, - toPart: l, - extend: a, - selectors: i, - classnames: s, - get keys() { - return Object.keys(t); - }, - __type: {} - }; -} -var xE = Le("accordion").parts("root", "container", "button", "panel").extend("icon"), SE = Le("alert").parts("title", "description", "container").extend("icon", "spinner"), wE = Le("avatar").parts("label", "badge", "container").extend("excessLabel", "group"), CE = Le("breadcrumb").parts("link", "item", "container").extend("separator"); -Le("button").parts(); -var _E = Le("checkbox").parts("control", "icon", "container").extend("label"); -Le("progress").parts("track", "filledTrack").extend("label"); -var kE = Le("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), EE = Le("editable").parts( - "preview", - "input", - "textarea" -), PE = Le("form").parts( - "container", - "requiredIndicator", - "helperText" -), TE = Le("formError").parts("text", "icon"), AE = Le("input").parts( - "addon", - "field", - "element", - "group" -), OE = Le("list").parts("container", "item", "icon"), RE = Le("menu").parts("button", "list", "item").extend("groupTitle", "icon", "command", "divider"), $E = Le("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), DE = Le("numberinput").parts( - "root", - "field", - "stepperGroup", - "stepper" -); -Le("pininput").parts("field"); -var ME = Le("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"), IE = Le("progress").parts( - "label", - "filledTrack", - "track" -), FE = Le("radio").parts( - "container", - "control", - "label" -), NE = Le("select").parts("field", "icon"), jE = Le("slider").parts( - "container", - "track", - "thumb", - "filledTrack", - "mark" -), BE = Le("stat").parts( - "container", - "label", - "helpText", - "number", - "icon" -), zE = Le("switch").parts( - "container", - "track", - "thumb", - "label" -), VE = Le("table").parts( - "table", - "thead", - "tbody", - "tr", - "th", - "td", - "tfoot", - "caption" -), LE = Le("tabs").parts( - "root", - "tab", - "tablist", - "tabpanel", - "tabpanels", - "indicator" -), WE = Le("tag").parts( - "container", - "label", - "closeButton" -), UE = Le("card").parts( - "container", - "header", - "body", - "footer" -); -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 HE extends Error { - constructor(t) { - super(`Failed to parse color: "${t}"`); - } -} -var ia = HE; -function Wu(e) { - if (typeof e != "string") - throw new ia(e); - if (e.trim().toLowerCase() === "transparent") - return [0, 0, 0, 0]; - let t = e.trim(); - t = QE.test(e) ? qE(e) : e; - const r = XE.exec(t); - if (r) { - const i = Array.from(r).slice(1); - return [...i.slice(0, 3).map((s) => parseInt(Na(s, 2), 16)), parseInt(Na(i[3] || "f", 2), 16) / 255]; - } - const n = KE.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 = ZE.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 = JE.exec(t); - if (a) { - const [i, s, l, c] = Array.from(a).slice(1).map(parseFloat); - if (Fn(0, 100, s) !== s) - throw new ia(e); - if (Fn(0, 100, l) !== l) - throw new ia(e); - return [...eP(i, s, l), Number.isNaN(c) ? 1 : c]; - } - throw new ia(e); -} -function YE(e) { - let t = 5381, r = e.length; - for (; r; ) - t = t * 33 ^ e.charCodeAt(--r); - return (t >>> 0) % 2341; -} -const Hf = (e) => parseInt(e.replace(/_/g, ""), 36), GE = "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 = Hf(t.substring(0, 3)), n = Hf(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 qE(e) { - const t = e.toLowerCase().trim(), r = GE[YE(t)]; - if (!r) - throw new ia(e); - return `#${r}`; -} -const Na = (e, t) => Array.from(Array(t)).map(() => e).join(""), XE = new RegExp(`^#${Na("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), KE = new RegExp(`^#${Na("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), ZE = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Na(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), JE = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, QE = /^[a-z]+$/i, Yf = (e) => Math.round(e * 255), eP = (e, t, r) => { - let n = r / 100; - if (t === 0) - return [n, n, n].map(Yf); - 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(Yf); -}; -function tP(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 rP(e, t) { - const [r, n, o, a] = Wu(e); - return tP(r, n, o, a - t); -} -function nP(e) { - const [t, r, n, o] = Wu(e); - let a = (i) => { - 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 oP(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 aP = (e) => Object.keys(e).length === 0, Dt = (e, t, r) => { - const n = oP(e, `colors.${t}`, t); - try { - return nP(n), n; - } catch { - return r ?? "#000000"; - } -}, iP = (e) => { - const [t, r, n] = Wu(e); - return (t * 299 + r * 587 + n * 114) / 1e3; -}, sP = (e) => (t) => { - const r = Dt(t, e); - return iP(r) < 128 ? "dark" : "light"; -}, lP = (e) => (t) => sP(e)(t) === "dark", Ao = (e, t) => (r) => { - const n = Dt(r, e); - return rP(n, 1 - t); -}; -function Gf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") { - return { - backgroundImage: `linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`, - backgroundSize: `${e} ${e}` - }; -} -var cP = () => `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`; -function uP(e) { - const t = cP(); - return !e || aP(e) ? t : e.string && e.colors ? fP(e.string, e.colors) : e.string && !e.colors ? dP(e.string) : e.colors && !e.string ? pP(e.colors) : t; -} -function dP(e) { - let t = 0; - if (e.length === 0) - return t.toString(); - for (let n = 0; n < e.length; n += 1) - t = e.charCodeAt(n) + ((t << 5) - t), t = t & t; - let r = "#"; - for (let n = 0; n < 3; n += 1) { - const o = t >> n * 8 & 255; - r += `00${o.toString(16)}`.substr(-2); - } - return r; -} -function fP(e, t) { - let r = 0; - if (e.length === 0) - return t[0]; - for (let n = 0; n < e.length; n += 1) - r = e.charCodeAt(n) + ((r << 5) - r), r = r & r; - return r = (r % t.length + t.length) % t.length, t[r]; -} -function pP(e) { - return e[Math.floor(Math.random() * e.length)]; -} -function ue(e, t) { - return (r) => r.colorMode === "dark" ? t : e; -} -function Uu(e) { - const { orientation: t, vertical: r, horizontal: n } = e; - return t ? t === "vertical" ? r : n : {}; -} -function yv(e) { - return Lt(e) && e.reference ? e.reference : String(e); -} -var Hs = (e, ...t) => t.map(yv).join(` ${e} `).replace(/calc/g, ""), qf = (...e) => `calc(${Hs("+", ...e)})`, Xf = (...e) => `calc(${Hs("-", ...e)})`, zc = (...e) => `calc(${Hs("*", ...e)})`, Kf = (...e) => `calc(${Hs("/", ...e)})`, Zf = (e) => { - const t = yv(e); - return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : zc(t, -1); -}, Gr = Object.assign( - (e) => ({ - add: (...t) => Gr(qf(e, ...t)), - subtract: (...t) => Gr(Xf(e, ...t)), - multiply: (...t) => Gr(zc(e, ...t)), - divide: (...t) => Gr(Kf(e, ...t)), - negate: () => Gr(Zf(e)), - toString: () => e.toString() - }), - { - add: qf, - subtract: Xf, - multiply: zc, - divide: Kf, - negate: Zf - } -); -function hP(e) { - return !Number.isInteger(parseFloat(e.toString())); -} -function mP(e, t = "-") { - return e.replace(/\s+/g, t); -} -function xv(e) { - const t = mP(e.toString()); - return t.includes("\\.") ? e : hP(e) ? t.replace(".", "\\.") : e; -} -function vP(e, t = "") { - return [t, xv(e)].filter(Boolean).join("-"); -} -function gP(e, t) { - return `var(${xv(e)}${t ? `, ${t}` : ""})`; -} -function bP(e, t = "") { - return `--${vP(e, t)}`; -} -function yt(e, t) { - const r = bP(e, t == null ? void 0 : t.prefix); - return { - variable: r, - reference: gP(r, yP(t == null ? void 0 : t.fallback)) - }; -} -function yP(e) { - return typeof e == "string" ? e : e == null ? void 0 : e.reference; -} -var { defineMultiStyleConfig: xP, definePartsStyle: Ui } = Ke(zE.keys), ha = yt("switch-track-width"), jn = yt("switch-track-height"), Al = yt("switch-track-diff"), SP = Gr.subtract(ha, jn), Vc = yt("switch-thumb-x"), Zo = yt("switch-bg"), wP = (e) => { - const { colorScheme: t } = e; - return { - borderRadius: "full", - p: "0.5", - width: [ha.reference], - height: [jn.reference], - transitionProperty: "common", - transitionDuration: "fast", - [Zo.variable]: "colors.gray.300", - _dark: { - [Zo.variable]: "colors.whiteAlpha.400" - }, - _focusVisible: { - boxShadow: "outline" - }, - _disabled: { - opacity: 0.4, - cursor: "not-allowed" - }, - _checked: { - [Zo.variable]: `colors.${t}.500`, - _dark: { - [Zo.variable]: `colors.${t}.200` - } - }, - bg: Zo.reference - }; -}, CP = { - bg: "white", - transitionProperty: "transform", - transitionDuration: "normal", - borderRadius: "inherit", - width: [jn.reference], - height: [jn.reference], - _checked: { - transform: `translateX(${Vc.reference})` - } -}, _P = Ui((e) => ({ - container: { - [Al.variable]: SP, - [Vc.variable]: Al.reference, - _rtl: { - [Vc.variable]: Gr(Al).negate().toString() - } - }, - track: wP(e), - thumb: CP -})), kP = { - sm: Ui({ - container: { - [ha.variable]: "1.375rem", - [jn.variable]: "sizes.3" - } - }), - md: Ui({ - container: { - [ha.variable]: "1.875rem", - [jn.variable]: "sizes.4" - } - }), - lg: Ui({ - container: { - [ha.variable]: "2.875rem", - [jn.variable]: "sizes.6" - } - }) -}, EP = xP({ - baseStyle: _P, - sizes: kP, - defaultProps: { - size: "md", - colorScheme: "blue" - } -}), { defineMultiStyleConfig: PP, definePartsStyle: vo } = Ke(VE.keys), TP = vo({ - table: { - fontVariantNumeric: "lining-nums tabular-nums", - borderCollapse: "collapse", - width: "full" - }, - th: { - fontFamily: "heading", - fontWeight: "bold", - textTransform: "uppercase", - letterSpacing: "wider", - textAlign: "start" - }, - td: { - textAlign: "start" - }, - caption: { - mt: 4, - fontFamily: "heading", - textAlign: "center", - fontWeight: "medium" - } -}), ps = { - "&[data-is-numeric=true]": { - textAlign: "end" - } -}, AP = vo((e) => { - const { colorScheme: t } = e; - return { - th: { - color: ue("gray.600", "gray.400")(e), - borderBottom: "1px", - borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...ps - }, - td: { - borderBottom: "1px", - borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...ps - }, - caption: { - color: ue("gray.600", "gray.100")(e) - }, - tfoot: { - tr: { - "&:last-of-type": { - th: { borderBottomWidth: 0 } - } - } - } - }; -}), OP = vo((e) => { - const { colorScheme: t } = e; - return { - th: { - color: ue("gray.600", "gray.400")(e), - borderBottom: "1px", - borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...ps - }, - td: { - borderBottom: "1px", - borderColor: ue(`${t}.100`, `${t}.700`)(e), - ...ps - }, - caption: { - color: ue("gray.600", "gray.100")(e) - }, - tbody: { - tr: { - "&:nth-of-type(odd)": { - "th, td": { - borderBottomWidth: "1px", - borderColor: ue(`${t}.100`, `${t}.700`)(e) - }, - td: { - background: ue(`${t}.100`, `${t}.700`)(e) - } - } - } - }, - tfoot: { - tr: { - "&:last-of-type": { - th: { borderBottomWidth: 0 } - } - } - } - }; -}), RP = { - simple: AP, - striped: OP, - unstyled: {} -}, $P = { - sm: vo({ - th: { - px: "4", - py: "1", - lineHeight: "4", - fontSize: "xs" - }, - td: { - px: "4", - py: "2", - fontSize: "sm", - lineHeight: "4" - }, - caption: { - px: "4", - py: "2", - fontSize: "xs" - } - }), - md: vo({ - th: { - px: "6", - py: "3", - lineHeight: "4", - fontSize: "xs" - }, - td: { - px: "6", - py: "4", - lineHeight: "5" - }, - caption: { - px: "6", - py: "2", - fontSize: "sm" - } - }), - lg: vo({ - th: { - px: "8", - py: "4", - lineHeight: "5", - fontSize: "sm" - }, - td: { - px: "8", - py: "5", - lineHeight: "6" - }, - caption: { - px: "6", - py: "2", - fontSize: "md" - } - }) -}, DP = PP({ - baseStyle: TP, - variants: RP, - sizes: $P, - defaultProps: { - variant: "simple", - size: "md", - colorScheme: "gray" - } -}), Vt = de("tabs-color"), br = de("tabs-bg"), Ci = de("tabs-border-color"), { defineMultiStyleConfig: MP, definePartsStyle: Ir } = Ke(LE.keys), IP = (e) => { - const { orientation: t } = e; - return { - display: t === "vertical" ? "flex" : "block" - }; -}, FP = (e) => { - const { isFitted: t } = e; - return { - flex: t ? 1 : void 0, - transitionProperty: "common", - transitionDuration: "normal", - _focusVisible: { - zIndex: 1, - boxShadow: "outline" - }, - _disabled: { - cursor: "not-allowed", - opacity: 0.4 - } - }; -}, NP = (e) => { - const { align: t = "start", orientation: r } = e; - return { - justifyContent: { - end: "flex-end", - center: "center", - start: "flex-start" - }[t], - flexDirection: r === "vertical" ? "column" : "row" - }; -}, jP = { - p: 4 -}, BP = Ir((e) => ({ - root: IP(e), - tab: FP(e), - tablist: NP(e), - tabpanel: jP -})), zP = { - sm: Ir({ - tab: { - py: 1, - px: 4, - fontSize: "sm" - } - }), - md: Ir({ - tab: { - fontSize: "md", - py: 2, - px: 4 - } - }), - lg: Ir({ - tab: { - fontSize: "lg", - py: 3, - px: 4 - } - }) -}, VP = Ir((e) => { - const { colorScheme: t, orientation: r } = e, n = r === "vertical", o = n ? "borderStart" : "borderBottom", a = n ? "marginStart" : "marginBottom"; - return { - tablist: { - [o]: "2px solid", - borderColor: "inherit" - }, - tab: { - [o]: "2px solid", - borderColor: "transparent", - [a]: "-2px", - _selected: { - [Vt.variable]: `colors.${t}.600`, - _dark: { - [Vt.variable]: `colors.${t}.300` - }, - borderColor: "currentColor" - }, - _active: { - [br.variable]: "colors.gray.200", - _dark: { - [br.variable]: "colors.whiteAlpha.300" - } - }, - _disabled: { - _active: { bg: "none" } - }, - color: Vt.reference, - bg: br.reference - } - }; -}), LP = Ir((e) => { - const { colorScheme: t } = e; - return { - tab: { - borderTopRadius: "md", - border: "1px solid", - borderColor: "transparent", - mb: "-1px", - [Ci.variable]: "transparent", - _selected: { - [Vt.variable]: `colors.${t}.600`, - [Ci.variable]: "colors.white", - _dark: { - [Vt.variable]: `colors.${t}.300`, - [Ci.variable]: "colors.gray.800" - }, - borderColor: "inherit", - borderBottomColor: Ci.reference - }, - color: Vt.reference - }, - tablist: { - mb: "-1px", - borderBottom: "1px solid", - borderColor: "inherit" - } - }; -}), WP = Ir((e) => { - const { colorScheme: t } = e; - return { - tab: { - border: "1px solid", - borderColor: "inherit", - [br.variable]: "colors.gray.50", - _dark: { - [br.variable]: "colors.whiteAlpha.50" - }, - mb: "-1px", - _notLast: { - marginEnd: "-1px" - }, - _selected: { - [br.variable]: "colors.white", - [Vt.variable]: `colors.${t}.600`, - _dark: { - [br.variable]: "colors.gray.800", - [Vt.variable]: `colors.${t}.300` - }, - borderColor: "inherit", - borderTopColor: "currentColor", - borderBottomColor: "transparent" - }, - color: Vt.reference, - bg: br.reference - }, - tablist: { - mb: "-1px", - borderBottom: "1px solid", - borderColor: "inherit" - } - }; -}), UP = Ir((e) => { - const { colorScheme: t, theme: r } = e; - return { - tab: { - borderRadius: "full", - fontWeight: "semibold", - color: "gray.600", - _selected: { - color: Dt(r, `${t}.700`), - bg: Dt(r, `${t}.100`) - } - } - }; -}), HP = Ir((e) => { - const { colorScheme: t } = e; - return { - tab: { - borderRadius: "full", - fontWeight: "semibold", - [Vt.variable]: "colors.gray.600", - _dark: { - [Vt.variable]: "inherit" - }, - _selected: { - [Vt.variable]: "colors.white", - [br.variable]: `colors.${t}.600`, - _dark: { - [Vt.variable]: "colors.gray.800", - [br.variable]: `colors.${t}.300` - } - }, - color: Vt.reference, - bg: br.reference - } - }; -}), YP = Ir({}), GP = { - line: VP, - enclosed: LP, - "enclosed-colored": WP, - "soft-rounded": UP, - "solid-rounded": HP, - unstyled: YP -}, qP = MP({ - baseStyle: BP, - sizes: zP, - variants: GP, - defaultProps: { - size: "md", - variant: "line", - colorScheme: "blue" - } -}), pt = mk("badge", ["bg", "color", "shadow"]), XP = { - px: 1, - textTransform: "uppercase", - fontSize: "xs", - borderRadius: "sm", - fontWeight: "bold", - bg: pt.bg.reference, - color: pt.color.reference, - boxShadow: pt.shadow.reference -}, KP = (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", - _dark: { - [pt.bg.variable]: n, - [pt.color.variable]: "colors.whiteAlpha.800" - } - }; -}, ZP = (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`, - _dark: { - [pt.bg.variable]: n, - [pt.color.variable]: `colors.${t}.200` - } - }; -}, JP = (e) => { - const { colorScheme: t, theme: r } = e, n = Ao(`${t}.200`, 0.8)(r); - return { - [pt.color.variable]: `colors.${t}.500`, - _dark: { - [pt.color.variable]: n - }, - [pt.shadow.variable]: `inset 0 0 0px 1px ${pt.color.reference}` - }; -}, QP = { - solid: KP, - subtle: ZP, - outline: JP -}, ma = { - baseStyle: XP, - variants: QP, - defaultProps: { - variant: "subtle", - colorScheme: "gray" - } -}, { defineMultiStyleConfig: eT, definePartsStyle: Bn } = Ke(WE.keys), Jf = de("tag-bg"), Qf = de("tag-color"), Ol = de("tag-shadow"), Hi = de("tag-min-height"), Yi = de("tag-min-width"), Gi = de("tag-font-size"), qi = de("tag-padding-inline"), tT = { - fontWeight: "medium", - lineHeight: 1.2, - outline: 0, - [Qf.variable]: pt.color.reference, - [Jf.variable]: pt.bg.reference, - [Ol.variable]: pt.shadow.reference, - color: Qf.reference, - bg: Jf.reference, - boxShadow: Ol.reference, - borderRadius: "md", - minH: Hi.reference, - minW: Yi.reference, - fontSize: Gi.reference, - px: qi.reference, - _focusVisible: { - [Ol.variable]: "shadows.outline" - } -}, rT = { - lineHeight: 1.2, - overflow: "visible" -}, nT = { - fontSize: "lg", - w: "5", - h: "5", - transitionProperty: "common", - transitionDuration: "normal", - borderRadius: "full", - marginStart: "1.5", - marginEnd: "-1", - opacity: 0.5, - _disabled: { - opacity: 0.4 - }, - _focusVisible: { - boxShadow: "outline", - bg: "rgba(0, 0, 0, 0.14)" - }, - _hover: { - opacity: 0.8 - }, - _active: { - opacity: 1 - } -}, oT = Bn({ - container: tT, - label: rT, - closeButton: nT -}), aT = { - sm: Bn({ - container: { - [Hi.variable]: "sizes.5", - [Yi.variable]: "sizes.5", - [Gi.variable]: "fontSizes.xs", - [qi.variable]: "space.2" - }, - closeButton: { - marginEnd: "-2px", - marginStart: "0.35rem" - } - }), - md: Bn({ - container: { - [Hi.variable]: "sizes.6", - [Yi.variable]: "sizes.6", - [Gi.variable]: "fontSizes.sm", - [qi.variable]: "space.2" - } - }), - lg: Bn({ - container: { - [Hi.variable]: "sizes.8", - [Yi.variable]: "sizes.8", - [Gi.variable]: "fontSizes.md", - [qi.variable]: "space.3" - } - }) -}, iT = { - subtle: Bn((e) => { - var t; - return { - container: (t = ma.variants) == null ? void 0 : t.subtle(e) - }; - }), - solid: Bn((e) => { - var t; - return { - container: (t = ma.variants) == null ? void 0 : t.solid(e) - }; - }), - outline: Bn((e) => { - var t; - return { - container: (t = ma.variants) == null ? void 0 : t.outline(e) - }; - }) -}, sT = eT({ - variants: iT, - baseStyle: oT, - sizes: aT, - defaultProps: { - size: "md", - variant: "subtle", - colorScheme: "gray" - } -}), { definePartsStyle: qr, defineMultiStyleConfig: lT } = Ke(AE.keys), ao = de("input-height"), io = de("input-font-size"), so = de("input-padding"), lo = de("input-border-radius"), cT = qr({ - addon: { - height: ao.reference, - fontSize: io.reference, - px: so.reference, - borderRadius: lo.reference - }, - field: { - width: "100%", - height: ao.reference, - fontSize: io.reference, - px: so.reference, - borderRadius: lo.reference, - minWidth: 0, - outline: 0, - position: "relative", - appearance: "none", - transitionProperty: "common", - transitionDuration: "normal", - _disabled: { - opacity: 0.4, - cursor: "not-allowed" - } - } -}), un = { - lg: { - [io.variable]: "fontSizes.lg", - [so.variable]: "space.4", - [lo.variable]: "radii.md", - [ao.variable]: "sizes.12" - }, - md: { - [io.variable]: "fontSizes.md", - [so.variable]: "space.4", - [lo.variable]: "radii.md", - [ao.variable]: "sizes.10" - }, - sm: { - [io.variable]: "fontSizes.sm", - [so.variable]: "space.3", - [lo.variable]: "radii.sm", - [ao.variable]: "sizes.8" - }, - xs: { - [io.variable]: "fontSizes.xs", - [so.variable]: "space.2", - [lo.variable]: "radii.sm", - [ao.variable]: "sizes.6" - } -}, uT = { - lg: qr({ - field: un.lg, - group: un.lg - }), - md: qr({ - field: un.md, - group: un.md - }), - sm: qr({ - field: un.sm, - group: un.sm - }), - xs: qr({ - field: un.xs, - group: un.xs - }) -}; -function Hu(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 dT = qr((e) => { - const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Hu(e); - return { - field: { - border: "1px solid", - borderColor: "inherit", - bg: "inherit", - _hover: { - borderColor: ue("gray.300", "whiteAlpha.400")(e) - }, - _readOnly: { - boxShadow: "none !important", - userSelect: "all" - }, - _invalid: { - borderColor: Dt(t, n), - boxShadow: `0 0 0 1px ${Dt(t, n)}` - }, - _focusVisible: { - zIndex: 1, - borderColor: Dt(t, r), - boxShadow: `0 0 0 1px ${Dt(t, r)}` - } - }, - addon: { - border: "1px solid", - borderColor: ue("inherit", "whiteAlpha.50")(e), - bg: ue("gray.100", "whiteAlpha.300")(e) - } - }; -}), fT = qr((e) => { - const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Hu(e); - return { - field: { - border: "2px solid", - borderColor: "transparent", - bg: ue("gray.100", "whiteAlpha.50")(e), - _hover: { - bg: ue("gray.200", "whiteAlpha.100")(e) - }, - _readOnly: { - boxShadow: "none !important", - userSelect: "all" - }, - _invalid: { - borderColor: Dt(t, n) - }, - _focusVisible: { - bg: "transparent", - borderColor: Dt(t, r) - } - }, - addon: { - border: "2px solid", - borderColor: "transparent", - bg: ue("gray.100", "whiteAlpha.50")(e) - } - }; -}), pT = qr((e) => { - const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Hu(e); - return { - field: { - borderBottom: "1px solid", - borderColor: "inherit", - borderRadius: "0", - px: "0", - bg: "transparent", - _readOnly: { - boxShadow: "none !important", - userSelect: "all" - }, - _invalid: { - borderColor: Dt(t, n), - boxShadow: `0px 1px 0px 0px ${Dt(t, n)}` - }, - _focusVisible: { - borderColor: Dt(t, r), - boxShadow: `0px 1px 0px 0px ${Dt(t, r)}` - } - }, - addon: { - borderBottom: "2px solid", - borderColor: "inherit", - borderRadius: "0", - px: "0", - bg: "transparent" - } - }; -}), hT = qr({ - field: { - bg: "transparent", - px: "0", - height: "auto" - }, - addon: { - bg: "transparent", - px: "0", - height: "auto" - } -}), mT = { - outline: dT, - filled: fT, - flushed: pT, - unstyled: hT -}, Ve = lT({ - baseStyle: cT, - sizes: uT, - variants: mT, - defaultProps: { - size: "md", - variant: "outline" - } -}), ep, vT = { - ...(ep = Ve.baseStyle) == null ? void 0 : ep.field, - paddingY: "2", - minHeight: "20", - lineHeight: "short", - verticalAlign: "top" -}, tp, rp, gT = { - outline: (e) => { - var t, r; - return (r = (t = Ve.variants) == null ? void 0 : t.outline(e).field) != null ? r : {}; - }, - flushed: (e) => { - var t, r; - return (r = (t = Ve.variants) == null ? void 0 : t.flushed(e).field) != null ? r : {}; - }, - filled: (e) => { - var t, r; - return (r = (t = Ve.variants) == null ? void 0 : t.filled(e).field) != null ? r : {}; - }, - unstyled: (rp = (tp = Ve.variants) == null ? void 0 : tp.unstyled.field) != null ? rp : {} -}, np, op, ap, ip, sp, lp, cp, up, bT = { - xs: (op = (np = Ve.sizes) == null ? void 0 : np.xs.field) != null ? op : {}, - sm: (ip = (ap = Ve.sizes) == null ? void 0 : ap.sm.field) != null ? ip : {}, - md: (lp = (sp = Ve.sizes) == null ? void 0 : sp.md.field) != null ? lp : {}, - lg: (up = (cp = Ve.sizes) == null ? void 0 : cp.lg.field) != null ? up : {} -}, yT = { - baseStyle: vT, - sizes: bT, - variants: gT, - defaultProps: { - size: "md", - variant: "outline" - } -}, _i = yt("tooltip-bg"), Rl = yt("tooltip-fg"), xT = yt("popper-arrow-bg"), ST = { - bg: _i.reference, - color: Rl.reference, - [_i.variable]: "colors.gray.700", - [Rl.variable]: "colors.whiteAlpha.900", - _dark: { - [_i.variable]: "colors.gray.300", - [Rl.variable]: "colors.gray.900" - }, - [xT.variable]: _i.reference, - px: "2", - py: "0.5", - borderRadius: "sm", - fontWeight: "medium", - fontSize: "sm", - boxShadow: "md", - maxW: "xs", - zIndex: "tooltip" -}, wT = { - baseStyle: ST -}, { defineMultiStyleConfig: CT, definePartsStyle: sa } = Ke(IE.keys), _T = (e) => { - const { colorScheme: t, theme: r, isIndeterminate: n, hasStripe: o } = e, a = ue( - Gf(), - Gf("1rem", "rgba(0,0,0,0.1)") - )(e), i = ue(`${t}.500`, `${t}.200`)(e), s = `linear-gradient( - to right, - transparent 0%, - ${Dt(r, i)} 50%, - transparent 100% - )`; - return { - ...!n && o && a, - ...n ? { bgImage: s } : { bgColor: i } - }; -}, kT = { - lineHeight: "1", - fontSize: "0.25em", - fontWeight: "bold", - color: "white" -}, ET = (e) => ({ - bg: ue("gray.100", "whiteAlpha.300")(e) -}), PT = (e) => ({ - transitionProperty: "common", - transitionDuration: "slow", - ..._T(e) -}), TT = sa((e) => ({ - label: kT, - filledTrack: PT(e), - track: ET(e) -})), AT = { - xs: sa({ - track: { h: "1" } - }), - sm: sa({ - track: { h: "2" } - }), - md: sa({ - track: { h: "3" } - }), - lg: sa({ - track: { h: "4" } - }) -}, OT = CT({ - sizes: AT, - baseStyle: TT, - defaultProps: { - size: "md", - colorScheme: "blue" - } -}), RT = (e) => typeof e == "function"; -function Mt(e, ...t) { - return RT(e) ? e(...t) : e; -} -var { definePartsStyle: Xi, defineMultiStyleConfig: $T } = Ke(_E.keys), va = de("checkbox-size"), DT = (e) => { - const { colorScheme: t } = e; - return { - w: va.reference, - h: va.reference, - transitionProperty: "box-shadow", - transitionDuration: "normal", - border: "2px solid", - borderRadius: "sm", - borderColor: "inherit", - color: "white", - _checked: { - bg: ue(`${t}.500`, `${t}.200`)(e), - borderColor: ue(`${t}.500`, `${t}.200`)(e), - color: ue("white", "gray.900")(e), - _hover: { - bg: ue(`${t}.600`, `${t}.300`)(e), - borderColor: ue(`${t}.600`, `${t}.300`)(e) - }, - _disabled: { - borderColor: ue("gray.200", "transparent")(e), - bg: ue("gray.200", "whiteAlpha.300")(e), - color: ue("gray.500", "whiteAlpha.500")(e) - } - }, - _indeterminate: { - bg: ue(`${t}.500`, `${t}.200`)(e), - borderColor: ue(`${t}.500`, `${t}.200`)(e), - color: ue("white", "gray.900")(e) - }, - _disabled: { - bg: ue("gray.100", "whiteAlpha.100")(e), - borderColor: ue("gray.100", "transparent")(e) - }, - _focusVisible: { - boxShadow: "outline" - }, - _invalid: { - borderColor: ue("red.500", "red.300")(e) - } - }; -}, MT = { - _disabled: { cursor: "not-allowed" } -}, IT = { - userSelect: "none", - _disabled: { opacity: 0.4 } -}, FT = { - transitionProperty: "transform", - transitionDuration: "normal" -}, NT = Xi((e) => ({ - icon: FT, - container: MT, - control: Mt(DT, e), - label: IT -})), jT = { - sm: Xi({ - control: { [va.variable]: "sizes.3" }, - label: { fontSize: "sm" }, - icon: { fontSize: "3xs" } - }), - md: Xi({ - control: { [va.variable]: "sizes.4" }, - label: { fontSize: "md" }, - icon: { fontSize: "2xs" } - }), - lg: Xi({ - control: { [va.variable]: "sizes.5" }, - label: { fontSize: "lg" }, - icon: { fontSize: "2xs" } - }) -}, hs = $T({ - baseStyle: NT, - sizes: jT, - defaultProps: { - size: "md", - colorScheme: "blue" - } -}), { defineMultiStyleConfig: BT, definePartsStyle: Ki } = Ke(FE.keys), zT = (e) => { - var t; - const r = (t = Mt(hs.baseStyle, e)) == null ? void 0 : t.control; - return { - ...r, - borderRadius: "full", - _checked: { - ...r == null ? void 0 : r._checked, - _before: { - content: '""', - display: "inline-block", - pos: "relative", - w: "50%", - h: "50%", - borderRadius: "50%", - bg: "currentColor" - } - } - }; -}, VT = Ki((e) => { - var t, r, n, o; - return { - 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: zT(e) - }; -}), LT = { - md: Ki({ - control: { w: "4", h: "4" }, - label: { fontSize: "md" } - }), - lg: Ki({ - control: { w: "5", h: "5" }, - label: { fontSize: "lg" } - }), - sm: Ki({ - control: { width: "3", height: "3" }, - label: { fontSize: "sm" } - }) -}, WT = BT({ - baseStyle: VT, - sizes: LT, - defaultProps: { - size: "md", - colorScheme: "blue" - } -}), { defineMultiStyleConfig: UT, definePartsStyle: HT } = Ke(NE.keys), ki = de("select-bg"), dp, YT = { - ...(dp = Ve.baseStyle) == null ? void 0 : dp.field, - appearance: "none", - paddingBottom: "1px", - lineHeight: "normal", - bg: ki.reference, - [ki.variable]: "colors.white", - _dark: { - [ki.variable]: "colors.gray.700" - }, - "> option, > optgroup": { - bg: ki.reference - } -}, GT = { - width: "6", - height: "100%", - insetEnd: "2", - position: "relative", - color: "currentColor", - fontSize: "xl", - _disabled: { - opacity: 0.5 - } -}, qT = HT({ - field: YT, - icon: GT -}), Ei = { - paddingInlineEnd: "8" -}, fp, pp, hp, mp, vp, gp, bp, yp, XT = { - lg: { - ...(fp = Ve.sizes) == null ? void 0 : fp.lg, - field: { - ...(pp = Ve.sizes) == null ? void 0 : pp.lg.field, - ...Ei - } - }, - md: { - ...(hp = Ve.sizes) == null ? void 0 : hp.md, - field: { - ...(mp = Ve.sizes) == null ? void 0 : mp.md.field, - ...Ei - } - }, - sm: { - ...(vp = Ve.sizes) == null ? void 0 : vp.sm, - field: { - ...(gp = Ve.sizes) == null ? void 0 : gp.sm.field, - ...Ei - } - }, - xs: { - ...(bp = Ve.sizes) == null ? void 0 : bp.xs, - field: { - ...(yp = Ve.sizes) == null ? void 0 : yp.xs.field, - ...Ei - }, - icon: { - insetEnd: "1" - } - } -}, KT = UT({ - baseStyle: qT, - sizes: XT, - variants: Ve.variants, - defaultProps: Ve.defaultProps -}), $l = de("skeleton-start-color"), Dl = de("skeleton-end-color"), ZT = { - [$l.variable]: "colors.gray.100", - [Dl.variable]: "colors.gray.400", - _dark: { - [$l.variable]: "colors.gray.800", - [Dl.variable]: "colors.gray.600" - }, - background: $l.reference, - borderColor: Dl.reference, - opacity: 0.7, - borderRadius: "sm" -}, JT = { - baseStyle: ZT -}, Ml = de("skip-link-bg"), QT = { - borderRadius: "md", - fontWeight: "semibold", - _focusVisible: { - boxShadow: "outline", - padding: "4", - position: "fixed", - top: "6", - insetStart: "6", - [Ml.variable]: "colors.white", - _dark: { - [Ml.variable]: "colors.gray.700" - }, - bg: Ml.reference - } -}, eA = { - baseStyle: QT -}, { defineMultiStyleConfig: tA, definePartsStyle: Ys } = Ke(jE.keys), ja = de("slider-thumb-size"), Ba = de("slider-track-size"), hn = de("slider-bg"), rA = (e) => { - const { orientation: t } = e; - return { - display: "inline-block", - position: "relative", - cursor: "pointer", - _disabled: { - opacity: 0.6, - cursor: "default", - pointerEvents: "none" - }, - ...Uu({ - orientation: t, - vertical: { h: "100%" }, - horizontal: { w: "100%" } - }) - }; -}, nA = (e) => ({ - ...Uu({ - orientation: e.orientation, - horizontal: { h: Ba.reference }, - vertical: { w: Ba.reference } - }), - overflow: "hidden", - borderRadius: "sm", - [hn.variable]: "colors.gray.200", - _dark: { - [hn.variable]: "colors.whiteAlpha.200" - }, - _disabled: { - [hn.variable]: "colors.gray.300", - _dark: { - [hn.variable]: "colors.whiteAlpha.300" - } - }, - bg: hn.reference -}), oA = (e) => { - const { orientation: t } = e; - return { - ...Uu({ - orientation: t, - vertical: { - left: "50%", - transform: "translateX(-50%)", - _active: { - transform: "translateX(-50%) scale(1.15)" - } - }, - horizontal: { - top: "50%", - transform: "translateY(-50%)", - _active: { - transform: "translateY(-50%) scale(1.15)" - } - } - }), - w: ja.reference, - h: ja.reference, - display: "flex", - alignItems: "center", - justifyContent: "center", - position: "absolute", - outline: 0, - zIndex: 1, - borderRadius: "full", - bg: "white", - boxShadow: "base", - border: "1px solid", - borderColor: "transparent", - transitionProperty: "transform", - transitionDuration: "normal", - _focusVisible: { - boxShadow: "outline" - }, - _disabled: { - bg: "gray.300" - } - }; -}, aA = (e) => { - const { colorScheme: t } = e; - return { - width: "inherit", - height: "inherit", - [hn.variable]: `colors.${t}.500`, - _dark: { - [hn.variable]: `colors.${t}.200` - }, - bg: hn.reference - }; -}, iA = Ys((e) => ({ - container: rA(e), - track: nA(e), - thumb: oA(e), - filledTrack: aA(e) -})), sA = Ys({ - container: { - [ja.variable]: "sizes.4", - [Ba.variable]: "sizes.1" - } -}), lA = Ys({ - container: { - [ja.variable]: "sizes.3.5", - [Ba.variable]: "sizes.1" - } -}), cA = Ys({ - container: { - [ja.variable]: "sizes.2.5", - [Ba.variable]: "sizes.0.5" - } -}), uA = { - lg: sA, - md: lA, - sm: cA -}, dA = tA({ - baseStyle: iA, - sizes: uA, - defaultProps: { - size: "md", - colorScheme: "blue" - } -}), Mn = yt("spinner-size"), fA = { - width: [Mn.reference], - height: [Mn.reference] -}, pA = { - xs: { - [Mn.variable]: "sizes.3" - }, - sm: { - [Mn.variable]: "sizes.4" - }, - md: { - [Mn.variable]: "sizes.6" - }, - lg: { - [Mn.variable]: "sizes.8" - }, - xl: { - [Mn.variable]: "sizes.12" - } -}, hA = { - baseStyle: fA, - sizes: pA, - defaultProps: { - size: "md" - } -}, { defineMultiStyleConfig: mA, definePartsStyle: Sv } = Ke(BE.keys), vA = { - fontWeight: "medium" -}, gA = { - opacity: 0.8, - marginBottom: "2" -}, bA = { - verticalAlign: "baseline", - fontWeight: "semibold" -}, yA = { - marginEnd: 1, - w: "3.5", - h: "3.5", - verticalAlign: "middle" -}, xA = Sv({ - container: {}, - label: vA, - helpText: gA, - number: bA, - icon: yA -}), SA = { - md: Sv({ - label: { fontSize: "sm" }, - helpText: { fontSize: "sm" }, - number: { fontSize: "2xl" } - }) -}, wA = mA({ - baseStyle: xA, - sizes: SA, - defaultProps: { - size: "md" - } -}), Il = de("kbd-bg"), CA = { - [Il.variable]: "colors.gray.100", - _dark: { - [Il.variable]: "colors.whiteAlpha.100" - }, - bg: Il.reference, - borderRadius: "md", - borderWidth: "1px", - borderBottomWidth: "3px", - fontSize: "0.8em", - fontWeight: "bold", - lineHeight: "normal", - px: "0.4em", - whiteSpace: "nowrap" -}, _A = { - baseStyle: CA -}, kA = { - transitionProperty: "common", - transitionDuration: "fast", - transitionTimingFunction: "ease-out", - cursor: "pointer", - textDecoration: "none", - outline: "none", - color: "inherit", - _hover: { - textDecoration: "underline" - }, - _focusVisible: { - boxShadow: "outline" - } -}, EA = { - baseStyle: kA -}, { defineMultiStyleConfig: PA, definePartsStyle: TA } = Ke(OE.keys), AA = { - marginEnd: "2", - display: "inline", - verticalAlign: "text-bottom" -}, OA = TA({ - icon: AA -}), RA = PA({ - baseStyle: OA -}), { defineMultiStyleConfig: $A, definePartsStyle: DA } = Ke(RE.keys), Rr = de("menu-bg"), Fl = de("menu-shadow"), MA = { - [Rr.variable]: "#fff", - [Fl.variable]: "shadows.sm", - _dark: { - [Rr.variable]: "colors.gray.700", - [Fl.variable]: "shadows.dark-lg" - }, - color: "inherit", - minW: "3xs", - py: "2", - zIndex: 1, - borderRadius: "md", - borderWidth: "1px", - bg: Rr.reference, - boxShadow: Fl.reference -}, IA = { - py: "1.5", - px: "3", - transitionProperty: "background", - transitionDuration: "ultra-fast", - transitionTimingFunction: "ease-in", - _focus: { - [Rr.variable]: "colors.gray.100", - _dark: { - [Rr.variable]: "colors.whiteAlpha.100" - } - }, - _active: { - [Rr.variable]: "colors.gray.200", - _dark: { - [Rr.variable]: "colors.whiteAlpha.200" - } - }, - _expanded: { - [Rr.variable]: "colors.gray.100", - _dark: { - [Rr.variable]: "colors.whiteAlpha.100" - } - }, - _disabled: { - opacity: 0.4, - cursor: "not-allowed" - }, - bg: Rr.reference -}, FA = { - mx: 4, - my: 2, - fontWeight: "semibold", - fontSize: "sm" -}, NA = { - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - flexShrink: 0 -}, jA = { - opacity: 0.6 -}, BA = { - border: 0, - borderBottom: "1px solid", - borderColor: "inherit", - my: "2", - opacity: 0.6 -}, zA = { - transitionProperty: "common", - transitionDuration: "normal" -}, VA = DA({ - button: zA, - list: MA, - item: IA, - groupTitle: FA, - icon: NA, - command: jA, - divider: BA -}), LA = $A({ - baseStyle: VA -}), { defineMultiStyleConfig: WA, definePartsStyle: Lc } = Ke($E.keys), Nl = de("modal-bg"), jl = de("modal-shadow"), UA = { - bg: "blackAlpha.600", - zIndex: "modal" -}, HA = (e) => { - const { isCentered: t, scrollBehavior: r } = e; - return { - display: "flex", - zIndex: "modal", - justifyContent: "center", - alignItems: t ? "center" : "flex-start", - overflow: r === "inside" ? "hidden" : "auto", - overscrollBehaviorY: "none" - }; -}, YA = (e) => { - const { isCentered: t, scrollBehavior: r } = e; - return { - borderRadius: "md", - color: "inherit", - my: t ? "auto" : "16", - mx: t ? "auto" : void 0, - zIndex: "modal", - maxH: r === "inside" ? "calc(100% - 7.5rem)" : void 0, - [Nl.variable]: "colors.white", - [jl.variable]: "shadows.lg", - _dark: { - [Nl.variable]: "colors.gray.700", - [jl.variable]: "shadows.dark-lg" - }, - bg: Nl.reference, - boxShadow: jl.reference - }; -}, GA = { - px: "6", - py: "4", - fontSize: "xl", - fontWeight: "semibold" -}, qA = { - position: "absolute", - top: "2", - insetEnd: "3" -}, XA = (e) => { - const { scrollBehavior: t } = e; - return { - px: "6", - py: "2", - flex: "1", - overflow: t === "inside" ? "auto" : void 0 - }; -}, KA = { - px: "6", - py: "4" -}, ZA = Lc((e) => ({ - overlay: UA, - dialogContainer: Mt(HA, e), - dialog: Mt(YA, e), - header: GA, - closeButton: qA, - body: Mt(XA, e), - footer: KA -})); -function pr(e) { - return Lc(e === "full" ? { - dialog: { - maxW: "100vw", - minH: "$100vh", - my: "0", - borderRadius: "0" - } - } : { - dialog: { maxW: e } - }); -} -var JA = { - xs: pr("xs"), - sm: pr("sm"), - md: pr("md"), - lg: pr("lg"), - xl: pr("xl"), - "2xl": pr("2xl"), - "3xl": pr("3xl"), - "4xl": pr("4xl"), - "5xl": pr("5xl"), - "6xl": pr("6xl"), - full: pr("full") -}, QA = WA({ - baseStyle: ZA, - sizes: JA, - defaultProps: { size: "md" } -}), { defineMultiStyleConfig: eO, definePartsStyle: wv } = Ke(DE.keys), Yu = yt("number-input-stepper-width"), Cv = yt("number-input-input-padding"), tO = Gr(Yu).add("0.5rem").toString(), Bl = yt("number-input-bg"), zl = yt("number-input-color"), Vl = yt("number-input-border-color"), rO = { - [Yu.variable]: "sizes.6", - [Cv.variable]: tO -}, nO = (e) => { - var t, r; - return (r = (t = Mt(Ve.baseStyle, e)) == null ? void 0 : t.field) != null ? r : {}; -}, oO = { - width: Yu.reference -}, aO = { - borderStart: "1px solid", - borderStartColor: Vl.reference, - color: zl.reference, - bg: Bl.reference, - [zl.variable]: "colors.chakra-body-text", - [Vl.variable]: "colors.chakra-border-color", - _dark: { - [zl.variable]: "colors.whiteAlpha.800", - [Vl.variable]: "colors.whiteAlpha.300" - }, - _active: { - [Bl.variable]: "colors.gray.200", - _dark: { - [Bl.variable]: "colors.whiteAlpha.300" - } - }, - _disabled: { - opacity: 0.4, - cursor: "not-allowed" - } -}, iO = wv((e) => { - var t; - return { - root: rO, - field: (t = Mt(nO, e)) != null ? t : {}, - stepperGroup: oO, - stepper: aO - }; -}); -function Pi(e) { - var t, r, n; - const o = (t = Ve.sizes) == null ? void 0 : t[e], a = { - lg: "md", - md: "md", - sm: "sm", - xs: "sm" - }, i = (n = (r = o.field) == null ? void 0 : r.fontSize) != null ? n : "md", s = mv.fontSizes[i]; - return wv({ - field: { - ...o.field, - paddingInlineEnd: Cv.reference, - verticalAlign: "top" - }, - stepper: { - fontSize: Gr(s).multiply(0.75).toString(), - _first: { - borderTopEndRadius: a[e] - }, - _last: { - borderBottomEndRadius: a[e], - mt: "-1px", - borderTopWidth: 1 - } - } - }); -} -var sO = { - xs: Pi("xs"), - sm: Pi("sm"), - md: Pi("md"), - lg: Pi("lg") -}, lO = eO({ - baseStyle: iO, - sizes: sO, - variants: Ve.variants, - defaultProps: Ve.defaultProps -}), xp, cO = { - ...(xp = Ve.baseStyle) == null ? void 0 : xp.field, - textAlign: "center" -}, uO = { - lg: { - fontSize: "lg", - w: 12, - h: 12, - borderRadius: "md" - }, - md: { - fontSize: "md", - w: 10, - h: 10, - borderRadius: "md" - }, - sm: { - fontSize: "sm", - w: 8, - h: 8, - borderRadius: "sm" - }, - xs: { - fontSize: "xs", - w: 6, - h: 6, - borderRadius: "sm" - } -}, Sp, wp, dO = { - 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 : {}; - }, - flushed: (e) => { - var t, r, n; - return (n = (r = Mt((t = Ve.variants) == null ? void 0 : t.flushed, e)) == null ? void 0 : r.field) != null ? n : {}; - }, - filled: (e) => { - 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: (wp = (Sp = Ve.variants) == null ? void 0 : Sp.unstyled.field) != null ? wp : {} -}, fO = { - baseStyle: cO, - sizes: uO, - variants: dO, - defaultProps: Ve.defaultProps -}, { defineMultiStyleConfig: pO, definePartsStyle: hO } = Ke(ME.keys), Ti = yt("popper-bg"), mO = yt("popper-arrow-bg"), Cp = yt("popper-arrow-shadow-color"), vO = { zIndex: 10 }, gO = { - [Ti.variable]: "colors.white", - bg: Ti.reference, - [mO.variable]: Ti.reference, - [Cp.variable]: "colors.gray.200", - _dark: { - [Ti.variable]: "colors.gray.700", - [Cp.variable]: "colors.whiteAlpha.300" - }, - width: "xs", - border: "1px solid", - borderColor: "inherit", - borderRadius: "md", - boxShadow: "sm", - zIndex: "inherit", - _focusVisible: { - outline: 0, - boxShadow: "outline" - } -}, bO = { - px: 3, - py: 2, - borderBottomWidth: "1px" -}, yO = { - px: 3, - py: 2 -}, xO = { - px: 3, - py: 2, - borderTopWidth: "1px" -}, SO = { - position: "absolute", - borderRadius: "md", - top: 1, - insetEnd: 2, - padding: 2 -}, wO = hO({ - popper: vO, - content: gO, - header: bO, - body: yO, - footer: xO, - closeButton: SO -}), CO = pO({ - baseStyle: wO -}), { definePartsStyle: Wc, defineMultiStyleConfig: _O } = Ke(kE.keys), Ll = de("drawer-bg"), Wl = de("drawer-box-shadow"); -function Zn(e) { - return Wc(e === "full" ? { - dialog: { maxW: "100vw", h: "100vh" } - } : { - dialog: { maxW: e } - }); -} -var kO = { - bg: "blackAlpha.600", - zIndex: "modal" -}, EO = { - display: "flex", - zIndex: "modal", - justifyContent: "center" -}, PO = (e) => { - const { isFullHeight: t } = e; - return { - ...t && { height: "100vh" }, - zIndex: "modal", - maxH: "100vh", - color: "inherit", - [Ll.variable]: "colors.white", - [Wl.variable]: "shadows.lg", - _dark: { - [Ll.variable]: "colors.gray.700", - [Wl.variable]: "shadows.dark-lg" - }, - bg: Ll.reference, - boxShadow: Wl.reference - }; -}, TO = { - px: "6", - py: "4", - fontSize: "xl", - fontWeight: "semibold" -}, AO = { - position: "absolute", - top: "2", - insetEnd: "3" -}, OO = { - px: "6", - py: "2", - flex: "1", - overflow: "auto" -}, RO = { - px: "6", - py: "4" -}, $O = Wc((e) => ({ - overlay: kO, - dialogContainer: EO, - dialog: Mt(PO, e), - header: TO, - closeButton: AO, - body: OO, - footer: RO -})), DO = { - xs: Zn("xs"), - sm: Zn("md"), - md: Zn("lg"), - lg: Zn("2xl"), - xl: Zn("4xl"), - full: Zn("full") -}, MO = _O({ - baseStyle: $O, - sizes: DO, - defaultProps: { - size: "xs" - } -}), { definePartsStyle: IO, defineMultiStyleConfig: FO } = Ke(EE.keys), NO = { - borderRadius: "md", - py: "1", - transitionProperty: "common", - transitionDuration: "normal" -}, jO = { - borderRadius: "md", - py: "1", - transitionProperty: "common", - transitionDuration: "normal", - width: "full", - _focusVisible: { boxShadow: "outline" }, - _placeholder: { opacity: 0.6 } -}, BO = { - borderRadius: "md", - py: "1", - transitionProperty: "common", - transitionDuration: "normal", - width: "full", - _focusVisible: { boxShadow: "outline" }, - _placeholder: { opacity: 0.6 } -}, zO = IO({ - preview: NO, - input: jO, - textarea: BO -}), VO = FO({ - baseStyle: zO -}), { definePartsStyle: LO, defineMultiStyleConfig: WO } = Ke(PE.keys), go = de("form-control-color"), UO = { - marginStart: "1", - [go.variable]: "colors.red.500", - _dark: { - [go.variable]: "colors.red.300" - }, - color: go.reference -}, HO = { - mt: "2", - [go.variable]: "colors.gray.600", - _dark: { - [go.variable]: "colors.whiteAlpha.600" - }, - color: go.reference, - lineHeight: "normal", - fontSize: "sm" -}, YO = LO({ - container: { - width: "100%", - position: "relative" - }, - requiredIndicator: UO, - helperText: HO -}), GO = WO({ - baseStyle: YO -}), { definePartsStyle: qO, defineMultiStyleConfig: XO } = Ke(TE.keys), bo = de("form-error-color"), KO = { - [bo.variable]: "colors.red.500", - _dark: { - [bo.variable]: "colors.red.300" - }, - color: bo.reference, - mt: "2", - fontSize: "sm", - lineHeight: "normal" -}, ZO = { - marginEnd: "0.5em", - [bo.variable]: "colors.red.500", - _dark: { - [bo.variable]: "colors.red.300" - }, - color: bo.reference -}, JO = qO({ - text: KO, - icon: ZO -}), QO = XO({ - baseStyle: JO -}), eR = { - fontSize: "md", - marginEnd: "3", - mb: "2", - fontWeight: "medium", - transitionProperty: "common", - transitionDuration: "normal", - opacity: 1, - _disabled: { - opacity: 0.4 - } -}, tR = { - baseStyle: eR -}, rR = { - fontFamily: "heading", - fontWeight: "bold" -}, nR = { - "4xl": { - fontSize: ["6xl", null, "7xl"], - lineHeight: 1 - }, - "3xl": { - fontSize: ["5xl", null, "6xl"], - lineHeight: 1 - }, - "2xl": { - fontSize: ["4xl", null, "5xl"], - lineHeight: [1.2, null, 1] - }, - xl: { - fontSize: ["3xl", null, "4xl"], - lineHeight: [1.33, null, 1.2] - }, - lg: { - fontSize: ["2xl", null, "3xl"], - lineHeight: [1.33, null, 1.2] - }, - md: { - fontSize: "xl", - lineHeight: 1.2 - }, - sm: { - fontSize: "md", - lineHeight: 1.2 - }, - xs: { - fontSize: "sm", - lineHeight: 1.2 - } -}, oR = { - baseStyle: rR, - sizes: nR, - defaultProps: { - size: "xl" - } -}, { defineMultiStyleConfig: aR, definePartsStyle: iR } = Ke(CE.keys), Ul = de("breadcrumb-link-decor"), sR = { - transitionProperty: "common", - transitionDuration: "fast", - transitionTimingFunction: "ease-out", - outline: "none", - color: "inherit", - textDecoration: Ul.reference, - [Ul.variable]: "none", - "&:not([aria-current=page])": { - cursor: "pointer", - _hover: { - [Ul.variable]: "underline" - }, - _focusVisible: { - boxShadow: "outline" - } - } -}, lR = iR({ - link: sR -}), cR = aR({ - baseStyle: lR -}), uR = { - lineHeight: "1.2", - borderRadius: "md", - fontWeight: "semibold", - transitionProperty: "common", - transitionDuration: "normal", - _focusVisible: { - boxShadow: "outline" - }, - _disabled: { - opacity: 0.4, - cursor: "not-allowed", - boxShadow: "none" - }, - _hover: { - _disabled: { - bg: "initial" - } - } -}, _v = (e) => { - const { colorScheme: t, theme: r } = e; - if (t === "gray") - return { - color: ue("gray.800", "whiteAlpha.900")(e), - _hover: { - bg: ue("gray.100", "whiteAlpha.200")(e) - }, - _active: { bg: ue("gray.200", "whiteAlpha.300")(e) } - }; - 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", - _hover: { - bg: ue(`${t}.50`, n)(e) - }, - _active: { - bg: ue(`${t}.100`, o)(e) - } - }; -}, dR = (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(_v, e) - }; -}, fR = { - yellow: { - bg: "yellow.400", - color: "black", - hoverBg: "yellow.500", - activeBg: "yellow.600" - }, - cyan: { - bg: "cyan.400", - color: "black", - hoverBg: "cyan.500", - activeBg: "cyan.600" - } -}, pR = (e) => { - var t; - const { colorScheme: r } = e; - if (r === "gray") { - const l = ue("gray.100", "whiteAlpha.200")(e); - return { - bg: l, - color: ue("gray.800", "whiteAlpha.900")(e), - _hover: { - bg: ue("gray.200", "whiteAlpha.300")(e), - _disabled: { - bg: l - } - }, - _active: { bg: ue("gray.300", "whiteAlpha.400")(e) } - }; - } - const { - bg: n = `${r}.500`, - color: o = "white", - hoverBg: a = `${r}.600`, - activeBg: i = `${r}.700` - } = (t = fR[r]) != null ? t : {}, s = ue(n, `${r}.200`)(e); - return { - bg: s, - color: ue(o, "gray.800")(e), - _hover: { - bg: ue(a, `${r}.300`)(e), - _disabled: { - bg: s - } - }, - _active: { bg: ue(i, `${r}.400`)(e) } - }; -}, hR = (e) => { - const { colorScheme: t } = e; - return { - padding: 0, - height: "auto", - lineHeight: "normal", - verticalAlign: "baseline", - color: ue(`${t}.500`, `${t}.200`)(e), - _hover: { - textDecoration: "underline", - _disabled: { - textDecoration: "none" - } - }, - _active: { - color: ue(`${t}.700`, `${t}.500`)(e) - } - }; -}, mR = { - bg: "none", - color: "inherit", - display: "inline", - lineHeight: "inherit", - m: "0", - p: "0" -}, vR = { - ghost: _v, - outline: dR, - solid: pR, - link: hR, - unstyled: mR -}, gR = { - lg: { - h: "12", - minW: "12", - fontSize: "lg", - px: "6" - }, - md: { - h: "10", - minW: "10", - fontSize: "md", - px: "4" - }, - sm: { - h: "8", - minW: "8", - fontSize: "sm", - px: "3" - }, - xs: { - h: "6", - minW: "6", - fontSize: "xs", - px: "2" - } -}, bR = { - baseStyle: uR, - variants: vR, - sizes: gR, - defaultProps: { - variant: "solid", - size: "md", - colorScheme: "gray" - } -}, { definePartsStyle: zn, defineMultiStyleConfig: yR } = Ke(UE.keys), ms = de("card-bg"), Kr = de("card-padding"), kv = de("card-shadow"), Zi = de("card-radius"), Ev = de("card-border-width", "0"), Pv = de("card-border-color"), xR = zn({ - container: { - [ms.variable]: "colors.chakra-body-bg", - backgroundColor: ms.reference, - boxShadow: kv.reference, - borderRadius: Zi.reference, - color: "chakra-body-text", - borderWidth: Ev.reference, - borderColor: Pv.reference - }, - body: { - padding: Kr.reference, - flex: "1 1 0%" - }, - header: { - padding: Kr.reference - }, - footer: { - padding: Kr.reference - } -}), SR = { - sm: zn({ - container: { - [Zi.variable]: "radii.base", - [Kr.variable]: "space.3" - } - }), - md: zn({ - container: { - [Zi.variable]: "radii.md", - [Kr.variable]: "space.5" - } - }), - lg: zn({ - container: { - [Zi.variable]: "radii.xl", - [Kr.variable]: "space.7" - } - }) -}, wR = { - elevated: zn({ - container: { - [kv.variable]: "shadows.base", - _dark: { - [ms.variable]: "colors.gray.700" - } - } - }), - outline: zn({ - container: { - [Ev.variable]: "1px", - [Pv.variable]: "colors.chakra-border-color" - } - }), - filled: zn({ - container: { - [ms.variable]: "colors.chakra-subtle-bg" - } - }), - unstyled: { - body: { - [Kr.variable]: 0 - }, - header: { - [Kr.variable]: 0 - }, - footer: { - [Kr.variable]: 0 - } - } -}, CR = yR({ - baseStyle: xR, - variants: wR, - sizes: SR, - defaultProps: { - variant: "elevated", - size: "md" - } -}), ga = yt("close-button-size"), Jo = yt("close-button-bg"), _R = { - w: [ga.reference], - h: [ga.reference], - borderRadius: "md", - transitionProperty: "common", - transitionDuration: "normal", - _disabled: { - opacity: 0.4, - cursor: "not-allowed", - boxShadow: "none" - }, - _hover: { - [Jo.variable]: "colors.blackAlpha.100", - _dark: { - [Jo.variable]: "colors.whiteAlpha.100" - } - }, - _active: { - [Jo.variable]: "colors.blackAlpha.200", - _dark: { - [Jo.variable]: "colors.whiteAlpha.200" - } - }, - _focusVisible: { - boxShadow: "outline" - }, - bg: Jo.reference -}, kR = { - lg: { - [ga.variable]: "sizes.10", - fontSize: "md" - }, - md: { - [ga.variable]: "sizes.8", - fontSize: "xs" - }, - sm: { - [ga.variable]: "sizes.6", - fontSize: "2xs" - } -}, ER = { - baseStyle: _R, - sizes: kR, - defaultProps: { - size: "md" - } -}, { variants: PR, defaultProps: TR } = ma, AR = { - fontFamily: "mono", - fontSize: "sm", - px: "0.2em", - borderRadius: "sm", - bg: pt.bg.reference, - color: pt.color.reference, - boxShadow: pt.shadow.reference -}, OR = { - baseStyle: AR, - variants: PR, - defaultProps: TR -}, RR = { - w: "100%", - mx: "auto", - maxW: "prose", - px: "4" -}, $R = { - baseStyle: RR -}, DR = { - opacity: 0.6, - borderColor: "inherit" -}, MR = { - borderStyle: "solid" -}, IR = { - borderStyle: "dashed" -}, FR = { - solid: MR, - dashed: IR -}, NR = { - baseStyle: DR, - variants: FR, - defaultProps: { - variant: "solid" - } -}, { definePartsStyle: jR, defineMultiStyleConfig: BR } = Ke(xE.keys), zR = { - borderTopWidth: "1px", - borderColor: "inherit", - _last: { - borderBottomWidth: "1px" - } -}, VR = { - transitionProperty: "common", - transitionDuration: "normal", - fontSize: "md", - _focusVisible: { - boxShadow: "outline" - }, - _hover: { - bg: "blackAlpha.50" - }, - _disabled: { - opacity: 0.4, - cursor: "not-allowed" - }, - px: "4", - py: "2" -}, LR = { - pt: "2", - px: "4", - pb: "5" -}, WR = { - fontSize: "1.25em" -}, UR = jR({ - container: zR, - button: VR, - panel: LR, - icon: WR -}), HR = BR({ baseStyle: UR }), { definePartsStyle: ei, defineMultiStyleConfig: YR } = Ke(SE.keys), Zt = de("alert-fg"), rn = de("alert-bg"), GR = ei({ - container: { - bg: rn.reference, - px: "4", - py: "3" - }, - title: { - fontWeight: "bold", - lineHeight: "6", - marginEnd: "2" - }, - description: { - lineHeight: "6" - }, - icon: { - color: Zt.reference, - flexShrink: 0, - marginEnd: "3", - w: "5", - h: "6" - }, - spinner: { - color: Zt.reference, - flexShrink: 0, - marginEnd: "3", - w: "5", - h: "5" - } -}); -function Gu(e) { - const { theme: t, colorScheme: r } = e, n = Ao(`${r}.200`, 0.16)(t); - return { - light: `colors.${r}.100`, - dark: n - }; -} -var qR = ei((e) => { - const { colorScheme: t } = e, r = Gu(e); - return { - container: { - [Zt.variable]: `colors.${t}.600`, - [rn.variable]: r.light, - _dark: { - [Zt.variable]: `colors.${t}.200`, - [rn.variable]: r.dark - } - } - }; -}), XR = ei((e) => { - const { colorScheme: t } = e, r = Gu(e); - return { - container: { - [Zt.variable]: `colors.${t}.600`, - [rn.variable]: r.light, - _dark: { - [Zt.variable]: `colors.${t}.200`, - [rn.variable]: r.dark - }, - paddingStart: "3", - borderStartWidth: "4px", - borderStartColor: Zt.reference - } - }; -}), KR = ei((e) => { - const { colorScheme: t } = e, r = Gu(e); - return { - container: { - [Zt.variable]: `colors.${t}.600`, - [rn.variable]: r.light, - _dark: { - [Zt.variable]: `colors.${t}.200`, - [rn.variable]: r.dark - }, - pt: "2", - borderTopWidth: "4px", - borderTopColor: Zt.reference - } - }; -}), ZR = ei((e) => { - const { colorScheme: t } = e; - return { - container: { - [Zt.variable]: "colors.white", - [rn.variable]: `colors.${t}.600`, - _dark: { - [Zt.variable]: "colors.gray.900", - [rn.variable]: `colors.${t}.200` - }, - color: Zt.reference - } - }; -}), JR = { - subtle: qR, - "left-accent": XR, - "top-accent": KR, - solid: ZR -}, QR = YR({ - baseStyle: GR, - variants: JR, - defaultProps: { - variant: "subtle", - colorScheme: "blue" - } -}), { definePartsStyle: Tv, defineMultiStyleConfig: e$ } = Ke(wE.keys), yo = de("avatar-border-color"), ba = de("avatar-bg"), za = de("avatar-font-size"), Oo = de("avatar-size"), t$ = { - borderRadius: "full", - border: "0.2em solid", - borderColor: yo.reference, - [yo.variable]: "white", - _dark: { - [yo.variable]: "colors.gray.800" - } -}, r$ = { - bg: ba.reference, - fontSize: za.reference, - width: Oo.reference, - height: Oo.reference, - lineHeight: "1", - [ba.variable]: "colors.gray.200", - _dark: { - [ba.variable]: "colors.whiteAlpha.400" - } -}, n$ = (e) => { - const { name: t, theme: r } = e, n = t ? uP({ string: t }) : "colors.gray.400", o = lP(n)(r); - let a = "white"; - return o || (a = "gray.800"), { - bg: ba.reference, - fontSize: za.reference, - color: a, - borderColor: yo.reference, - verticalAlign: "top", - width: Oo.reference, - height: Oo.reference, - "&:not([data-loaded])": { - [ba.variable]: n - }, - [yo.variable]: "colors.white", - _dark: { - [yo.variable]: "colors.gray.800" - } - }; -}, o$ = { - fontSize: za.reference, - lineHeight: "1" -}, a$ = Tv((e) => ({ - badge: Mt(t$, e), - excessLabel: Mt(r$, e), - container: Mt(n$, e), - label: o$ -})); -function dn(e) { - const t = e !== "100%" ? gv[e] : void 0; - return Tv({ - container: { - [Oo.variable]: t ?? e, - [za.variable]: `calc(${t ?? e} / 2.5)` - }, - excessLabel: { - [Oo.variable]: t ?? e, - [za.variable]: `calc(${t ?? e} / 2.5)` - } - }); -} -var i$ = { - "2xs": dn(4), - xs: dn(6), - sm: dn(8), - md: dn(12), - lg: dn(16), - xl: dn(24), - "2xl": dn(32), - full: dn("100%") -}, s$ = e$({ - baseStyle: a$, - sizes: i$, - defaultProps: { - size: "md" - } -}), l$ = { - Accordion: HR, - Alert: QR, - Avatar: s$, - Badge: ma, - Breadcrumb: cR, - Button: bR, - Checkbox: hs, - CloseButton: ER, - Code: OR, - Container: $R, - Divider: NR, - Drawer: MO, - Editable: VO, - Form: GO, - FormError: QO, - FormLabel: tR, - Heading: oR, - Input: Ve, - Kbd: _A, - Link: EA, - List: RA, - Menu: LA, - Modal: QA, - NumberInput: lO, - PinInput: fO, - Popover: CO, - Progress: OT, - Radio: WT, - Select: KT, - Skeleton: JT, - SkipLink: eA, - Slider: dA, - Spinner: hA, - Stat: wA, - Switch: EP, - Table: DP, - Tabs: qP, - Tag: sT, - Textarea: yT, - Tooltip: wT, - Card: CR, - Stepper: yE -}, Av = { - colors: { - "chakra-body-text": { _light: "gray.800", _dark: "whiteAlpha.900" }, - "chakra-body-bg": { _light: "white", _dark: "gray.800" }, - "chakra-border-color": { _light: "gray.200", _dark: "whiteAlpha.300" }, - "chakra-inverse-text": { _light: "white", _dark: "gray.800" }, - "chakra-subtle-bg": { _light: "gray.100", _dark: "gray.700" }, - "chakra-subtle-text": { _light: "gray.600", _dark: "gray.400" }, - "chakra-placeholder-color": { _light: "gray.500", _dark: "whiteAlpha.400" } - } -}, Ov = { - global: { - body: { - fontFamily: "body", - color: "chakra-body-text", - bg: "chakra-body-bg", - transitionProperty: "background-color", - transitionDuration: "normal", - lineHeight: "base" - }, - "*::placeholder": { - color: "chakra-placeholder-color" - }, - "*, *::before, &::after": { - borderColor: "chakra-border-color" - } - } -}, Rv = "ltr", $v = { - useSystemColorMode: !1, - initialColorMode: "light", - cssVarPrefix: "chakra" -}, c$ = { - semanticTokens: Av, - direction: Rv, - ...bv, - components: l$, - styles: Ov, - config: $v -}, u$ = { - semanticTokens: Av, - direction: Rv, - components: {}, - ...bv, - styles: Ov, - config: $v -}; -function la(e) { - return typeof e == "function"; -} -function d$(...e) { - return (t) => e.reduce((r, n) => n(r), t); -} -var Dv = (e) => function(...r) { - let n = [...r], o = r[r.length - 1]; - return Gk(o) && // this ensures backward compatibility - // previously only `extendTheme(override, activeTheme?)` was allowed - n.length > 1 ? n = n.slice(0, n.length - 1) : o = e, d$( - ...n.map( - (a) => (i) => la(a) ? a(i) : Mv(i, a) - ) - )(o); -}, MV = Dv(c$), IV = Dv(u$); -function Mv(...e) { - return sr({}, ...e, Iv); -} -function Iv(e, t, r, n) { - if ((la(e) || la(t)) && Object.prototype.hasOwnProperty.call(n, r)) - return (...o) => { - const a = la(e) ? e(...o) : e, i = la(t) ? t(...o) : t; - return sr({}, a, i, Iv); - }; -} -function f$(e, t) { - const r = {}; - return Object.keys(e).forEach((n) => { - t.includes(n) || (r[n] = e[n]); - }), r; -} -function p$(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 h$ = (e) => { - const t = /* @__PURE__ */ new WeakMap(); - return (n, o, a, i) => { - if (typeof n > "u") - return e(n, o, a); - t.has(n) || t.set(n, /* @__PURE__ */ new Map()); - const s = t.get(n); - if (s.has(o)) - return s.get(o); - const l = e(n, o, a, i); - return s.set(o, l), l; - }; -}, m$ = h$(p$); -function Fv(e, t) { - const r = {}; - return Object.keys(e).forEach((n) => { - const o = e[n]; - t(o, n, e) && (r[n] = o); - }), r; -} -var Nv = (e) => Fv(e, (t) => t != null); -function _p(e) { - return typeof e == "number"; -} -function v$(e) { - return typeof e == "function"; -} -var g$ = process.env.NODE_ENV !== "production"; -process.env.NODE_ENV; -function FV(e) { - return "current" in e; -} -function b$(e, ...t) { - return v$(e) ? e(...t) : e; -} -function NV(...e) { - return function(r) { - e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented)); - }; -} -function y$(e) { - let t; - return function(...n) { - return e && (t = e.apply(this, n), e = null), t; - }; -} -var jV = () => { -}, BV = /* @__PURE__ */ y$((e) => () => { - const { condition: t, message: r } = e; - t && g$ && console.warn(r); -}), zV = (...e) => (t) => e.reduce((r, n) => n(r), t), Hl = (e, t) => Math.abs(e - t), kp = (e) => "x" in e && "y" in e; -function VV(e, t) { - if (_p(e) && _p(t)) - return Hl(e, t); - if (kp(e) && kp(t)) { - const r = Hl(e.x, t.x), n = Hl(e.y, t.y); - return Math.sqrt(r ** 2 + n ** 2); - } - return 0; -} -const jv = 1 / 60 * 1e3, x$ = typeof performance < "u" ? () => performance.now() : () => Date.now(), Bv = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(x$()), jv); -function S$(e) { - let t = [], r = [], n = 0, o = !1, a = !1; - const i = /* @__PURE__ */ new WeakSet(), s = { - schedule: (l, c = !1, u = !1) => { - const d = u && o, f = d ? t : r; - return c && i.add(l), f.indexOf(l) === -1 && (f.push(l), d && o && (n = t.length)), l; - }, - cancel: (l) => { - const c = r.indexOf(l); - c !== -1 && r.splice(c, 1), i.delete(l); - }, - process: (l) => { - if (o) { - a = !0; - return; - } - if (o = !0, [t, r] = [r, t], r.length = 0, n = t.length, n) - for (let c = 0; c < n; c++) { - const u = t[c]; - u(l), i.has(u) && (s.schedule(u), e()); - } - o = !1, a && (a = !1, s.process(l)); - } - }; - return s; -} -const w$ = 40; -let Uc = !0, Va = !1, Hc = !1; -const xo = { - delta: 0, - timestamp: 0 -}, ti = [ - "read", - "update", - "preRender", - "render", - "postRender" -], Gs = ti.reduce((e, t) => (e[t] = S$(() => Va = !0), e), {}), C$ = ti.reduce((e, t) => { - const r = Gs[t]; - return e[t] = (n, o = !1, a = !1) => (Va || E$(), r.schedule(n, o, a)), e; -}, {}), _$ = ti.reduce((e, t) => (e[t] = Gs[t].cancel, e), {}); -ti.reduce((e, t) => (e[t] = () => Gs[t].process(xo), e), {}); -const k$ = (e) => Gs[e].process(xo), zv = (e) => { - Va = !1, xo.delta = Uc ? jv : Math.max(Math.min(e - xo.timestamp, w$), 1), xo.timestamp = e, Hc = !0, ti.forEach(k$), Hc = !1, Va && (Uc = !1, Bv(zv)); -}, E$ = () => { - Va = !0, Uc = !0, Hc || Bv(zv); -}, Ep = () => xo; -var P$ = typeof Element < "u", T$ = typeof Map == "function", A$ = typeof Set == "function", O$ = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView; -function Ji(e, t) { - if (e === t) - return !0; - if (e && t && typeof e == "object" && typeof t == "object") { - if (e.constructor !== t.constructor) - return !1; - var r, n, o; - if (Array.isArray(e)) { - if (r = e.length, r != t.length) - return !1; - for (n = r; n-- !== 0; ) - if (!Ji(e[n], t[n])) - return !1; - return !0; - } - var a; - if (T$ && e instanceof Map && t instanceof Map) { - if (e.size !== t.size) - return !1; - for (a = e.entries(); !(n = a.next()).done; ) - if (!t.has(n.value[0])) - return !1; - for (a = e.entries(); !(n = a.next()).done; ) - if (!Ji(n.value[1], t.get(n.value[0]))) - return !1; - return !0; - } - if (A$ && e instanceof Set && t instanceof Set) { - if (e.size !== t.size) - return !1; - for (a = e.entries(); !(n = a.next()).done; ) - if (!t.has(n.value[0])) - return !1; - return !0; - } - if (O$ && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) { - if (r = e.length, r != t.length) - return !1; - for (n = r; n-- !== 0; ) - if (e[n] !== t[n]) - return !1; - return !0; - } - if (e.constructor === RegExp) - return e.source === t.source && e.flags === t.flags; - if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") - return e.valueOf() === t.valueOf(); - if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") - return e.toString() === t.toString(); - if (o = Object.keys(e), r = o.length, r !== Object.keys(t).length) - return !1; - for (n = r; n-- !== 0; ) - if (!Object.prototype.hasOwnProperty.call(t, o[n])) - return !1; - if (P$ && 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]])) - return !1; - return !0; - } - return e !== e && t !== t; -} -var R$ = function(t, r) { - try { - return Ji(t, r); - } catch (n) { - if ((n.message || "").match(/stack|recursion/i)) - return console.warn("react-fast-compare cannot handle circular refs"), !1; - throw n; - } -}; -const $$ = /* @__PURE__ */ Ms(R$); -function qu(e, t = {}) { - var r; - const { styleConfig: n, ...o } = t, { theme: a, colorMode: i } = lv(), s = e ? m$(a, `components.${e}`) : void 0, l = n || s, c = sr( - { theme: a, colorMode: i }, - (r = l == null ? void 0 : l.defaultProps) != null ? r : {}, - Nv(f$(o, ["children"])) - ), u = be({}); - if (l) { - const f = Uk(l)(c); - $$(u.current, f) || (u.current = f); - } - return u.current; -} -function jo(e, t = {}) { - return qu(e, t); -} -function Bo(e, t = {}) { - return qu(e, t); -} -function LV(e, t) { - var r; - const { baseConfig: n, ...o } = t, { theme: a } = lv(), i = (r = a.components) == null ? void 0 : r[e], s = i ? Mv(i, n) : n; - return qu(null, { - ...o, - styleConfig: s - }); -} -var D$ = /* @__PURE__ */ new Set([ - ...Rk, - "textStyle", - "layerStyle", - "apply", - "noOfLines", - "focusBorderColor", - "errorBorderColor", - "as", - "__css", - "css", - "sx" -]), M$ = /* @__PURE__ */ new Set([ - "htmlWidth", - "htmlHeight", - "htmlSize", - "htmlTranslate" -]); -function I$(e) { - return M$.has(e) || !D$.has(e); -} -function F$(e, ...t) { - if (e == null) - throw new TypeError("Cannot convert undefined or null to object"); - const r = { ...e }; - for (const n of t) - if (n != null) - for (const o in n) - Object.prototype.hasOwnProperty.call(n, o) && (o in r && delete r[o], r[o] = n[o]); - return r; -} -var N$ = /^((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)-.*))$/, j$ = /* @__PURE__ */ Jm( - function(e) { - return N$.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; - } - /* Z+1 */ -), B$ = j$, z$ = function(t) { - return t !== "theme"; -}, Pp = 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 ? B$ : z$; -}, Tp = function(t, r, n) { - var o; - if (r) { - var a = r.shouldForwardProp; - o = t.__emotion_forwardProp && a ? function(i) { - return t.__emotion_forwardProp(i) && a(i); - } : a; - } - return typeof o != "function" && n && (o = t.__emotion_forwardProp), o; -}, Ap = `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`, V$ = function(t) { - var r = t.cache, n = t.serialized, o = t.isStringTag; - return zs(r, n, o), Iu(function() { - return Vs(r, n, o); - }), null; -}, L$ = 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 = Tp(t, r, n), l = s || Pp(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(Ap), 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(Ap), d.push(u[p], u[0][p]); - } - 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(yn); - } - typeof h.className == "string" ? S = Du(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 ? Pp(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(V$, { - cache: v, - serialized: P, - isStringTag: typeof y == "string" - }), /* @__PURE__ */ U.createElement(y, z)); - }); - return m.displayName = a !== void 0 ? a : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", m.defaultProps = t.defaultProps, m.__emotion_real = m, m.__emotion_base = o, m.__emotion_styles = d, m.__emotion_forwardProp = s, Object.defineProperty(m, "toString", { - value: function() { - return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i; - } - }), m.withComponent = function(h, v) { - return e(h, Wn({}, r, v, { - shouldForwardProp: Tp(m, v, !0) - })).apply(void 0, d); - }, m; - }; -}, W$ = [ - "a", - "abbr", - "address", - "area", - "article", - "aside", - "audio", - "b", - "base", - "bdi", - "bdo", - "big", - "blockquote", - "body", - "br", - "button", - "canvas", - "caption", - "cite", - "code", - "col", - "colgroup", - "data", - "datalist", - "dd", - "del", - "details", - "dfn", - "dialog", - "div", - "dl", - "dt", - "em", - "embed", - "fieldset", - "figcaption", - "figure", - "footer", - "form", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "head", - "header", - "hgroup", - "hr", - "html", - "i", - "iframe", - "img", - "input", - "ins", - "kbd", - "keygen", - "label", - "legend", - "li", - "link", - "main", - "map", - "mark", - "marquee", - "menu", - "menuitem", - "meta", - "meter", - "nav", - "noscript", - "object", - "ol", - "optgroup", - "option", - "output", - "p", - "param", - "picture", - "pre", - "progress", - "q", - "rp", - "rt", - "ruby", - "s", - "samp", - "script", - "section", - "select", - "small", - "source", - "span", - "strong", - "style", - "sub", - "summary", - "sup", - "table", - "tbody", - "td", - "textarea", - "tfoot", - "th", - "thead", - "time", - "title", - "tr", - "track", - "u", - "ul", - "var", - "video", - "wbr", - // SVG - "circle", - "clipPath", - "defs", - "ellipse", - "foreignObject", - "g", - "image", - "line", - "linearGradient", - "mask", - "path", - "pattern", - "polygon", - "polyline", - "radialGradient", - "rect", - "stop", - "svg", - "text", - "tspan" -], vs = L$.bind(); -W$.forEach(function(e) { - vs[e] = vs(e); -}); -var Op, U$ = (Op = vs.default) != null ? Op : vs, H$ = ({ baseStyle: e }) => (t) => { - const { theme: r, css: n, __css: o, sx: a, ...i } = t, s = Fv(i, (d, f) => Dk(f)), l = b$(e, t), c = F$( - {}, - o, - l, - Nv(s), - a - ), u = zk(c)(t.theme); - return n ? [u, n] : u; -}; -function Yl(e, t) { - const { baseStyle: r, ...n } = t ?? {}; - n.shouldForwardProp || (n.shouldForwardProp = I$); - const o = H$({ baseStyle: r }), a = U$( - e, - n - )(o); - return It.forwardRef(function(l, c) { - const { colorMode: u, forced: d } = Bu(); - return It.createElement(a, { - ref: c, - "data-theme": d ? u : void 0, - ...l - }); - }); -} -function Y$() { - const e = /* @__PURE__ */ new Map(); - return new Proxy(Yl, { - /** - * @example - * const Div = chakra("div") - * const WithChakra = chakra(AnotherComponent) - */ - apply(t, r, n) { - return Yl(...n); - }, - /** - * @example - * - */ - get(t, r) { - return e.has(r) || e.set(r, Yl(r)), e.get(r); - } - }); -} -var ge = Y$(); -function _e(e) { - return At(e); -} -var Xu = Cr({ - getDocument() { - return document; - }, - getWindow() { - return window; - } -}); -Xu.displayName = "EnvironmentContext"; -function G$({ defer: e } = {}) { - const [, t] = x0((r) => r + 1, 0); - return Fa(() => { - e && t(); - }, [e]), ft(Xu); -} -function q$(e) { - const { children: t, environment: r, disabled: n } = e, o = be(null), a = gt(() => r || { - getDocument: () => { - var s, l; - return (l = (s = o.current) == null ? void 0 : s.ownerDocument) != null ? l : document; - }, - getWindow: () => { - var s, l; - return (l = (s = o.current) == null ? void 0 : s.ownerDocument.defaultView) != null ? l : window; - } - }, [r]), i = !n || !r; - return /* @__PURE__ */ L.jsxs(Xu.Provider, { value: a, children: [ - t, - i && /* @__PURE__ */ L.jsx("span", { id: "__chakra_env", hidden: !0, ref: o }) - ] }); -} -q$.displayName = "EnvironmentProvider"; -function Jt(e, t = []) { - const r = be(e); - return Fe(() => { - r.current = e; - }), G((...n) => { - var o; - return (o = r.current) == null ? void 0 : o.call(r, ...n); - }, t); -} -function zo(e, t) { - const r = be(!1), n = be(!1); - Fe(() => { - if (r.current && n.current) - return e(); - n.current = !0; - }, t), Fe(() => (r.current = !0, () => { - r.current = !1; - }), []); -} -const Vv = Cr({ - transformPagePoint: (e) => e, - isStatic: !1, - reducedMotion: "never" -}), qs = Cr({}), ri = Cr(null), Xs = typeof document < "u", gs = Xs ? $s : Fe, Lv = Cr({ strict: !1 }); -function X$(e, t, r, n) { - const { visualElement: o } = ft(qs), a = ft(Lv), i = ft(ri), s = ft(Vv).reducedMotion, l = be(); - n = n || a.renderer, !l.current && n && (l.current = n(e, { - visualState: t, - parent: o, - props: r, - presenceContext: i, - blockInitialAnimation: i ? i.initial === !1 : !1, - reducedMotionConfig: s - })); - const c = l.current; - return gm(() => { - c && c.update(r, i); - }), gs(() => { - c && c.render(); - }), Fe(() => { - c && c.updateFeatures(); - }), (window.HandoffAppearAnimations ? gs : Fe)(() => { - c && c.animationState && c.animationState.animateChanges(); - }), c; -} -function co(e) { - return typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current"); -} -function K$(e, t, r) { - return G( - (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 - * factory. Otherwise we'll be mounting/remounting every time externalRef - * or other dependencies change. - */ - [t] - ); -} -function La(e) { - return typeof e == "string" || Array.isArray(e); -} -function Ks(e) { - return typeof e == "object" && typeof e.start == "function"; -} -const Ku = [ - "animate", - "whileInView", - "whileFocus", - "whileHover", - "whileTap", - "whileDrag", - "exit" -], Zu = ["initial", ...Ku]; -function Zs(e) { - return Ks(e.animate) || Zu.some((t) => La(e[t])); -} -function Wv(e) { - return !!(Zs(e) || e.variants); -} -function Z$(e, t) { - if (Zs(e)) { - const { initial: r, animate: n } = e; - return { - initial: r === !1 || La(r) ? r : void 0, - animate: La(n) ? n : void 0 - }; - } - return e.inherit !== !1 ? t : {}; -} -function J$(e) { - const { initial: t, animate: r } = Z$(e, ft(qs)); - return gt(() => ({ initial: t, animate: r }), [Rp(t), Rp(r)]); -} -function Rp(e) { - return Array.isArray(e) ? e.join(" ") : e; -} -const $p = { - animation: [ - "animate", - "variants", - "whileHover", - "whileTap", - "exit", - "whileInView", - "whileFocus", - "whileDrag" - ], - exit: ["exit"], - drag: ["drag", "dragControls"], - focus: ["whileFocus"], - hover: ["whileHover", "onHoverStart", "onHoverEnd"], - tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"], - pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"], - inView: ["whileInView", "onViewportEnter", "onViewportLeave"], - layout: ["layout", "layoutId"] -}, Wa = {}; -for (const e in $p) - Wa[e] = { - isEnabled: (t) => $p[e].some((r) => !!t[r]) - }; -function Q$(e) { - for (const t in e) - Wa[t] = { - ...Wa[t], - ...e[t] - }; -} -const Ju = Cr({}), Uv = Cr({}), e2 = Symbol.for("motionComponentSymbol"); -function t2({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: o }) { - e && Q$(e); - function a(s, l) { - let c; - const u = { - ...ft(Vv), - ...s, - layoutId: r2(s) - }, { isStatic: d } = u, f = J$(s), p = n(s, d); - if (!d && Xs) { - f.visualElement = X$(o, p, u, t); - const m = ft(Uv), h = ft(Lv).strict; - f.visualElement && (c = f.visualElement.loadFeatures( - // Note: Pass the full new combined props to correctly re-render dynamic feature components. - u, - h, - e, - m - )); - } - return U.createElement( - qs.Provider, - { value: f }, - c && f.visualElement ? U.createElement(c, { visualElement: f.visualElement, ...u }) : null, - r(o, s, K$(p, f.visualElement, l), p, d, f.visualElement) - ); - } - const i = At(a); - return i[e2] = o, i; -} -function r2({ layoutId: e }) { - const t = ft(Ju).id; - return t && e !== void 0 ? t + "-" + e : e; -} -function n2(e) { - function t(n, o = {}) { - return t2(e(n, o)); - } - if (typeof Proxy > "u") - return t; - const r = /* @__PURE__ */ new Map(); - return new Proxy(t, { - /** - * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc. - * The prop name is passed through as `key` and we can use that to generate a `motion` - * DOM component with that name. - */ - get: (n, o) => (r.has(o) || r.set(o, t(o)), r.get(o)) - }); -} -const o2 = [ - "animate", - "circle", - "defs", - "desc", - "ellipse", - "g", - "image", - "line", - "filter", - "marker", - "mask", - "metadata", - "path", - "pattern", - "polygon", - "polyline", - "rect", - "stop", - "switch", - "symbol", - "svg", - "text", - "tspan", - "use", - "view" -]; -function Qu(e) { - return ( - /** - * If it's not a string, it's a custom React component. Currently we only support - * HTML custom React components. - */ - typeof e != "string" || /** - * If it contains a dash, the element is a custom HTML webcomponent. - */ - e.includes("-") ? !1 : ( - /** - * If it's in our list of lowercase SVG tags, it's an SVG component - */ - !!(o2.indexOf(e) > -1 || /** - * If it contains a capital letter, it's an SVG component - */ - /[A-Z]/.test(e)) - ) - ); -} -const bs = {}; -function a2(e) { - Object.assign(bs, e); -} -const ni = [ - "transformPerspective", - "x", - "y", - "z", - "translateX", - "translateY", - "translateZ", - "scale", - "scaleX", - "scaleY", - "rotate", - "rotateX", - "rotateY", - "rotateZ", - "skew", - "skewX", - "skewY" -], Gn = new Set(ni); -function Hv(e, { layout: t, layoutId: r }) { - return Gn.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!bs[e] || e === "opacity"); -} -const Yt = (e) => !!(e && e.getVelocity), i2 = { - x: "translateX", - y: "translateY", - z: "translateZ", - transformPerspective: "perspective" -}, s2 = ni.length; -function l2(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, o) { - let a = ""; - for (let i = 0; i < s2; i++) { - const s = ni[i]; - if (e[s] !== void 0) { - const l = i2[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 Yv = (e) => (t) => typeof t == "string" && t.startsWith(e), Gv = Yv("--"), Yc = Yv("var(--"), c2 = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, u2 = (e, t) => t && typeof e == "number" ? t.transform(e) : e, xn = (e, t, r) => Math.min(Math.max(r, e), t), qn = { - test: (e) => typeof e == "number", - parse: parseFloat, - transform: (e) => e -}, ya = { - ...qn, - transform: (e) => xn(0, 1, e) -}, Ai = { - ...qn, - default: 1 -}, xa = (e) => Math.round(e * 1e5) / 1e5, Js = /(-)?([\d]*\.?[\d])+/g, qv = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, d2 = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i; -function oi(e) { - return typeof e == "string"; -} -const ai = (e) => ({ - test: (t) => oi(t) && t.endsWith(e) && t.split(" ").length === 1, - parse: parseFloat, - transform: (t) => `${t}${e}` -}), fn = ai("deg"), Fr = ai("%"), pe = ai("px"), f2 = ai("vh"), p2 = ai("vw"), Dp = { - ...Fr, - parse: (e) => Fr.parse(e) / 100, - transform: (e) => Fr.transform(e * 100) -}, Mp = { - ...qn, - transform: Math.round -}, Xv = { - // Border props - borderWidth: pe, - borderTopWidth: pe, - borderRightWidth: pe, - borderBottomWidth: pe, - borderLeftWidth: pe, - borderRadius: pe, - radius: pe, - borderTopLeftRadius: pe, - borderTopRightRadius: pe, - borderBottomRightRadius: pe, - borderBottomLeftRadius: pe, - // Positioning props - width: pe, - maxWidth: pe, - height: pe, - maxHeight: pe, - size: pe, - top: pe, - right: pe, - bottom: pe, - left: pe, - // Spacing props - padding: pe, - paddingTop: pe, - paddingRight: pe, - paddingBottom: pe, - paddingLeft: pe, - margin: pe, - marginTop: pe, - marginRight: pe, - marginBottom: pe, - marginLeft: pe, - // Transform props - rotate: fn, - rotateX: fn, - rotateY: fn, - rotateZ: fn, - scale: Ai, - scaleX: Ai, - scaleY: Ai, - scaleZ: Ai, - skew: fn, - skewX: fn, - skewY: fn, - distance: pe, - translateX: pe, - translateY: pe, - translateZ: pe, - x: pe, - y: pe, - z: pe, - perspective: pe, - transformPerspective: pe, - opacity: ya, - originX: Dp, - originY: Dp, - originZ: pe, - // Misc - zIndex: Mp, - // SVG - fillOpacity: ya, - strokeOpacity: ya, - numOctaves: Mp -}; -function ed(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 (Gv(d)) { - a[d] = f; - continue; - } - const p = Xv[d], m = u2(f, p); - if (Gn.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 = l2(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 td = () => ({ - style: {}, - transform: {}, - transformOrigin: {}, - vars: {} -}); -function Kv(e, t, r) { - for (const n in t) - !Yt(t[n]) && !Hv(n, r) && (e[n] = t[n]); -} -function h2({ transformTemplate: e }, t, r) { - return gt(() => { - const n = td(); - return ed(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style); - }, [t]); -} -function m2(e, t, r) { - const n = e.style || {}, o = {}; - return Kv(o, n, e), Object.assign(o, h2(e, t, r)), e.transformValues ? e.transformValues(o) : o; -} -function v2(e, t, r) { - const n = {}, o = m2(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 g2 = /* @__PURE__ */ new Set([ - "animate", - "exit", - "variants", - "initial", - "style", - "values", - "variants", - "transition", - "transformTemplate", - "transformValues", - "custom", - "inherit", - "onLayoutAnimationStart", - "onLayoutAnimationComplete", - "onLayoutMeasure", - "onBeforeLayoutMeasure", - "onAnimationStart", - "onAnimationComplete", - "onUpdate", - "onDragStart", - "onDrag", - "onDragEnd", - "onMeasureDragConstraints", - "onDirectionLock", - "onDragTransitionEnd", - "_dragX", - "_dragY", - "onHoverStart", - "onHoverEnd", - "onViewportEnter", - "onViewportLeave", - "ignoreStrict", - "viewport" -]); -function ys(e) { - return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || g2.has(e); -} -let Zv = (e) => !ys(e); -function b2(e) { - e && (Zv = (t) => t.startsWith("on") ? !ys(t) : e(t)); -} -try { - b2(require("@emotion/is-prop-valid").default); -} catch { -} -function y2(e, t, r) { - const n = {}; - for (const o in e) - o === "values" && typeof e.values == "object" || (Zv(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 Ip(e, t, r) { - return typeof e == "string" ? e : pe.transform(t + r * e); -} -function x2(e, t, r) { - const n = Ip(t, e.x, e.width), o = Ip(r, e.y, e.height); - return `${n} ${o}`; -} -const S2 = { - offset: "stroke-dashoffset", - array: "stroke-dasharray" -}, w2 = { - offset: "strokeDashoffset", - array: "strokeDasharray" -}; -function C2(e, t, r = 1, n = 0, o = !0) { - e.pathLength = 1; - const a = o ? S2 : w2; - e[a.offset] = pe.transform(-n); - const i = pe.transform(t), s = pe.transform(r); - e[a.array] = `${i} ${s}`; -} -function rd(e, { - attrX: t, - attrY: r, - attrScale: n, - originX: o, - originY: a, - pathLength: i, - pathSpacing: s = 1, - pathOffset: l = 0, - // This is object creation, which we try to avoid per-frame. - ...c -}, u, d, f) { - if (ed(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 = x2(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 && C2(p, i, s, l, !1); -} -const Jv = () => ({ - ...td(), - attrs: {} -}), nd = (e) => typeof e == "string" && e.toLowerCase() === "svg"; -function _2(e, t, r, n) { - const o = gt(() => { - const a = Jv(); - return rd(a, t, { enableHardwareAcceleration: !1 }, nd(n), e.transformTemplate), { - ...a.attrs, - style: { ...a.style } - }; - }, [t]); - if (e.style) { - const a = {}; - Kv(a, e.style, e), o.style = { ...a, ...o.style }; - } - return o; -} -function k2(e = !1) { - return (r, n, o, { latestValues: a }, i) => { - const l = (Qu(r) ? _2 : v2)(n, a, i, r), u = { - ...y2(n, typeof r == "string", e), - ...l, - ref: o - }, { children: d } = n, f = gt(() => Yt(d) ? d.get() : d, [d]); - return ir(r, { - ...u, - children: f - }); - }; -} -const od = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); -function Qv(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 eg = /* @__PURE__ */ new Set([ - "baseFrequency", - "diffuseConstant", - "kernelMatrix", - "kernelUnitLength", - "keySplines", - "keyTimes", - "limitingConeAngle", - "markerHeight", - "markerWidth", - "numOctaves", - "targetX", - "targetY", - "surfaceScale", - "specularConstant", - "specularExponent", - "stdDeviation", - "tableValues", - "viewBox", - "gradientTransform", - "pathLength", - "startOffset", - "textLength", - "lengthAdjust" -]); -function tg(e, t, r, n) { - Qv(e, t, void 0, n); - for (const o in t.attrs) - e.setAttribute(eg.has(o) ? o : od(o), t.attrs[o]); -} -function ad(e, t) { - const { style: r } = e, n = {}; - for (const o in r) - (Yt(r[o]) || t.style && Yt(t.style[o]) || Hv(o, e)) && (n[o] = r[o]); - return n; -} -function rg(e, t) { - const r = ad(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; - r[o] = e[n]; - } - return r; -} -function id(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 ng(e) { - const t = be(null); - return t.current === null && (t.current = e()), t.current; -} -const xs = (e) => Array.isArray(e), E2 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), P2 = (e) => xs(e) ? e[e.length - 1] || 0 : e; -function Qi(e) { - const t = Yt(e) ? e.get() : e; - return E2(t) ? t.toValue() : t; -} -function T2({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, o, a) { - const i = { - latestValues: A2(n, o, a, e), - renderState: t() - }; - return r && (i.mount = (s) => r(n, s, i)), i; -} -const og = (e) => (t, r) => { - const n = ft(qs), o = ft(ri), a = () => T2(e, t, n, o); - return r ? a() : ng(a); -}; -function A2(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 = Zs(e), c = Wv(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" && !Ks(d) && (Array.isArray(d) ? d : [d]).forEach((p) => { - const m = id(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 _ = u ? S.length - 1 : 0; - S = S[_]; - } - S !== null && (o[y] = S); - } - for (const y in h) - o[y] = h[y]; - }), o; -} -const O2 = { - useVisualState: og({ - scrapeMotionValuesFromProps: rg, - createRenderState: Jv, - onMount: (e, t, { renderState: r, latestValues: n }) => { - try { - r.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect(); - } catch { - r.dimensions = { - x: 0, - y: 0, - width: 0, - height: 0 - }; - } - rd(r, n, { enableHardwareAcceleration: !1 }, nd(t.tagName), e.transformTemplate), tg(t, r); - } - }) -}, R2 = { - useVisualState: og({ - scrapeMotionValuesFromProps: ad, - createRenderState: td - }) -}; -function $2(e, { forwardMotionProps: t = !1 }, r, n) { - return { - ...Qu(e) ? O2 : R2, - preloadedFeatures: r, - useRender: k2(t), - createVisualElement: n, - Component: e - }; -} -function Xr(e, t, r, n = { passive: !0 }) { - return e.addEventListener(t, r, n), () => e.removeEventListener(t, r); -} -const ag = (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"], - y: e[t + "Y"] - } - }; -} -const D2 = (e) => (t) => ag(t) && e(t, Qs(t)); -function Zr(e, t, r, n) { - return Xr(e, t, D2(r), n); -} -const M2 = (e, t) => (r) => t(e(r)), vn = (...e) => e.reduce(M2); -function ig(e) { - let t = null; - return () => { - const r = () => { - t = null; - }; - return t === null ? (t = e, r) : !1; - }; -} -const Fp = ig("dragHorizontal"), Np = ig("dragVertical"); -function sg(e) { - let t = !1; - if (e === "y") - t = Np(); - else if (e === "x") - t = Fp(); - else { - const r = Fp(), n = Np(); - r && n ? t = () => { - r(), n(); - } : (r && r(), n && n()); - } - return t; -} -function lg() { - const e = sg(!0); - return e ? (e(), !1) : !0; -} -class Cn { - constructor(t) { - this.isMounted = !1, this.node = t; - } - update() { - } -} -function I2(e) { - let t = [], r = [], n = 0, o = !1, a = !1; - const i = /* @__PURE__ */ new WeakSet(), s = { - /** - * Schedule a process to run on the next frame. - */ - schedule: (l, c = !1, u = !1) => { - const d = u && o, f = d ? t : r; - return c && i.add(l), f.indexOf(l) === -1 && (f.push(l), d && o && (n = t.length)), l; - }, - /** - * Cancel the provided callback from running on the next frame. - */ - cancel: (l) => { - const c = r.indexOf(l); - c !== -1 && r.splice(c, 1), i.delete(l); - }, - /** - * Execute all schedule callbacks. - */ - process: (l) => { - if (o) { - a = !0; - return; - } - if (o = !0, [t, r] = [r, t], r.length = 0, n = t.length, n) - for (let c = 0; c < n; c++) { - const u = t[c]; - u(l), i.has(u) && (s.schedule(u), e()); - } - o = !1, a && (a = !1, s.process(l)); - } - }; - return s; -} -const it = { - delta: 0, - timestamp: 0, - isProcessing: !1 -}, F2 = 40; -let Gc = !0, Ua = !1; -const el = [ - "read", - "update", - "preRender", - "render", - "postRender" -], So = el.reduce((e, t) => (e[t] = I2(() => Ua = !0), e), {}), N2 = (e) => So[e].process(it), cg = (e) => { - Ua = !1, it.delta = Gc ? 1e3 / 60 : Math.max(Math.min(e - it.timestamp, F2), 1), it.timestamp = e, it.isProcessing = !0, el.forEach(N2), it.isProcessing = !1, Ua && (Gc = !1, requestAnimationFrame(cg)); -}, j2 = () => { - Ua = !0, Gc = !0, it.isProcessing || requestAnimationFrame(cg); -}, tt = el.reduce((e, t) => { - const r = So[t]; - return e[t] = (n, o = !1, a = !1) => (Ua || j2(), r.schedule(n, o, a)), e; -}, {}); -function nn(e) { - el.forEach((t) => So[t].cancel(e)); -} -function jp(e, t) { - const r = "pointer" + (t ? "enter" : "leave"), n = "onHover" + (t ? "Start" : "End"), o = (a, i) => { - if (a.type === "touch" || lg()) - return; - const s = e.getProps(); - e.animationState && s.whileHover && e.animationState.setActive("whileHover", t), s[n] && tt.update(() => s[n](a, i)); - }; - return Zr(e.current, r, o, { - passive: !e.getProps()[n] - }); -} -class B2 extends Cn { - mount() { - this.unmount = vn(jp(this.node, !0), jp(this.node, !1)); - } - unmount() { - } -} -class z2 extends Cn { - constructor() { - super(...arguments), this.isActive = !1; - } - onFocus() { - let t = !1; - try { - t = this.node.current.matches(":focus-visible"); - } catch { - t = !0; - } - !t || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0); - } - onBlur() { - !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1); - } - mount() { - this.unmount = vn(Xr(this.node.current, "focus", () => this.onFocus()), Xr(this.node.current, "blur", () => this.onBlur())); - } - unmount() { - } -} -const ug = (e, t) => t ? e === t ? !0 : ug(e, t.parentElement) : !1, bt = (e) => e; -function Gl(e, t) { - if (!t) - return; - const r = new PointerEvent("pointer" + e); - t(r, Qs(r)); -} -class V2 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 = Zr(window, "pointerup", (s, l) => { - if (!this.checkPressEnd()) - return; - const { onTap: c, onTapCancel: u } = this.node.getProps(); - tt.update(() => { - ug(this.node.current, s.target) ? c && c(s, l) : u && u(s, l); - }); - }, { 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() || Gl("up", (l, c) => { - const { onTap: u } = this.node.getProps(); - u && tt.update(() => u(l, c)); - }); - }; - this.removeEndListeners(), this.removeEndListeners = Xr(this.node.current, "keyup", i), Gl("down", (s, l) => { - this.startPress(s, l); - }); - }, 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) { - this.isPressing = !0; - const { onTapStart: n, whileTap: o } = this.node.getProps(); - 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), !lg(); - } - cancelPress(t, r) { - if (!this.checkPressEnd()) - return; - const { onTapCancel: n } = this.node.getProps(); - n && tt.update(() => n(t, r)); - } - mount() { - 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 qc = /* @__PURE__ */ new WeakMap(), ql = /* @__PURE__ */ new WeakMap(), L2 = (e) => { - const t = qc.get(e.target); - t && t(e); -}, W2 = (e) => { - e.forEach(L2); -}; -function U2({ root: e, ...t }) { - const r = e || document; - ql.has(r) || ql.set(r, {}); - const n = ql.get(r), o = JSON.stringify(t); - return n[o] || (n[o] = new IntersectionObserver(W2, { root: e, ...t })), n[o]; -} -function H2(e, t, r) { - const n = U2(t); - return qc.set(e, r), n.observe(e), () => { - qc.delete(e), n.unobserve(e); - }; -} -const Y2 = { - some: 0, - all: 1 -}; -class G2 extends Cn { - constructor() { - super(...arguments), this.hasEnteredView = !1, this.isInView = !1; - } - startObserver() { - this.unmount(); - 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 : Y2[o] - }, s = (l) => { - const { isIntersecting: c } = l; - if (this.isInView === c || (this.isInView = c, a && !c && this.hasEnteredView)) - return; - c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c); - const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), f = c ? u : d; - f && f(l); - }; - return H2(this.node.current, i, s); - } - mount() { - this.startObserver(); - } - update() { - if (typeof IntersectionObserver > "u") - return; - const { props: t, prevProps: r } = this.node; - ["amount", "margin", "root"].some(q2(t, r)) && this.startObserver(); - } - unmount() { - } -} -function q2({ viewport: e = {} }, { viewport: t = {} } = {}) { - return (r) => e[r] !== t[r]; -} -const X2 = { - inView: { - Feature: G2 - }, - tap: { - Feature: V2 - }, - focus: { - Feature: z2 - }, - hover: { - Feature: B2 - } -}; -function dg(e, t) { - if (!Array.isArray(t)) - return !1; - const r = t.length; - if (r !== e.length) - return !1; - for (let n = 0; n < r; n++) - if (t[n] !== e[n]) - return !1; - return !0; -} -function K2(e) { - const t = {}; - return e.values.forEach((r, n) => t[n] = r.get()), t; -} -function Z2(e) { - const t = {}; - return e.values.forEach((r, n) => t[n] = r.getVelocity()), t; -} -function tl(e, t, r) { - const n = e.getProps(); - return id(n, t, r !== void 0 ? r : n.custom, K2(e), Z2(e)); -} -const J2 = "framerAppearId", Q2 = "data-" + od(J2); -let ii = bt, wr = bt; -process.env.NODE_ENV !== "production" && (ii = (e, t) => { - !e && typeof console < "u" && console.warn(t); -}, wr = (e, t) => { - if (!e) - throw new Error(t); -}); -const gn = (e) => e * 1e3, Jr = (e) => e / 1e3, eD = { - current: !1 -}, fg = (e) => Array.isArray(e) && typeof e[0] == "number"; -function pg(e) { - return !!(!e || typeof e == "string" && hg[e] || fg(e) || Array.isArray(e) && e.every(pg)); -} -const ca = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, hg = { - linear: "linear", - ease: "ease", - easeIn: "ease-in", - easeOut: "ease-out", - easeInOut: "ease-in-out", - 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 mg(e) { - if (e) - return fg(e) ? ca(e) : Array.isArray(e) ? e.map(mg) : hg[e]; -} -function tD(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 = mg(s); - return Array.isArray(u) && (c.easing = u), e.animate(c, { - delay: n, - duration: o, - easing: Array.isArray(u) ? "linear" : u, - fill: "both", - iterations: a + 1, - direction: i === "reverse" ? "alternate" : "normal" - }); -} -const Bp = { - waapi: () => Object.hasOwnProperty.call(Element.prototype, "animate") -}, Xl = {}, vg = {}; -for (const e in Bp) - vg[e] = () => (Xl[e] === void 0 && (Xl[e] = Bp[e]()), Xl[e]); -function rD(e, { repeat: t, repeatType: r = "loop" }) { - const n = t && r !== "loop" && t % 2 === 1 ? 0 : e.length - 1; - return e[n]; -} -const gg = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, nD = 1e-7, oD = 12; -function aD(e, t, r, n, o) { - let a, i, s = 0; - do - i = t + (r - t) / 2, a = gg(i, n, o) - e, a > 0 ? r = i : t = i; - while (Math.abs(a) > nD && ++s < oD); - return i; -} -function si(e, t, r, n) { - if (e === t && r === n) - return bt; - const o = (a) => aD(a, 0, 1, e, r); - return (a) => a === 0 || a === 1 ? a : gg(o(a), t, n); -} -const iD = si(0.42, 0, 1, 1), sD = si(0, 0, 0.58, 1), bg = si(0.42, 0, 0.58, 1), lD = (e) => Array.isArray(e) && typeof e[0] != "number", yg = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, xg = (e) => (t) => 1 - e(1 - t), Sg = (e) => 1 - Math.sin(Math.acos(e)), sd = xg(Sg), cD = yg(sd), wg = si(0.33, 1.53, 0.69, 0.99), ld = xg(wg), uD = yg(ld), dD = (e) => (e *= 2) < 1 ? 0.5 * ld(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), zp = { - linear: bt, - easeIn: iD, - easeInOut: bg, - easeOut: sD, - circIn: Sg, - circInOut: cD, - circOut: sd, - backIn: ld, - backInOut: uD, - backOut: wg, - anticipate: dD -}, Vp = (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(zp[e] !== void 0, `Invalid easing type '${e}'`), zp[e]; - return e; -}, cd = (e, t) => (r) => !!(oi(r) && d2.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), Cg = (e, t, r) => (n) => { - if (!oi(n)) - return n; - 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 - }; -}, fD = (e) => xn(0, 255, e), Kl = { - ...qn, - transform: (e) => Math.round(fD(e)) -}, Nn = { - test: cd("rgb", "red"), - parse: Cg("red", "green", "blue"), - transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Kl.transform(e) + ", " + Kl.transform(t) + ", " + Kl.transform(r) + ", " + xa(ya.transform(n)) + ")" -}; -function pD(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), - green: parseInt(r, 16), - blue: parseInt(n, 16), - alpha: o ? parseInt(o, 16) / 255 : 1 - }; -} -const Xc = { - test: cd("#"), - parse: pD, - transform: Nn.transform -}, uo = { - test: cd("hsl", "hue"), - parse: Cg("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) || Xc.test(e) || uo.test(e), - parse: (e) => Nn.test(e) ? Nn.parse(e) : uo.test(e) ? uo.parse(e) : Xc.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 Zl(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 hD({ 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 = Zl(l, s, e + 1 / 3), a = Zl(l, s, e), i = Zl(l, s, e - 1 / 3); - } - return { - red: Math.round(o * 255), - green: Math.round(a * 255), - blue: Math.round(i * 255), - alpha: n - }; -} -const Jl = (e, t, r) => { - const n = e * e; - return Math.sqrt(Math.max(0, r * (t * t - n) + n)); -}, mD = [Xc, Nn, uo], vD = (e) => mD.find((t) => t.test(e)); -function Lp(e) { - const t = vD(e); - wr(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`); - let r = t.parse(e); - return t === uo && (r = hD(r)), r; -} -const _g = (e, t) => { - const r = Lp(e), n = Lp(t), o = { ...r }; - return (a) => (o.red = Jl(r.red, n.red, a), o.green = Jl(r.green, n.green, a), o.blue = Jl(r.blue, n.blue, a), o.alpha = st(r.alpha, n.alpha, a), Nn.transform(o)); -}; -function gD(e) { - var t, r; - return isNaN(e) && oi(e) && (((t = e.match(Js)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(qv)) === null || r === void 0 ? void 0 : r.length) || 0) > 0; -} -const kg = { - regex: c2, - countKey: "Vars", - token: "${v}", - parse: bt -}, Eg = { - regex: qv, - countKey: "Colors", - token: "${c}", - parse: Rt.parse -}, Pg = { - regex: Js, - countKey: "Numbers", - token: "${n}", - parse: qn.parse -}; -function Ql(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 Ss(e) { - const t = e.toString(), r = { - value: t, - tokenised: t, - values: [], - numVars: 0, - numColors: 0, - numNumbers: 0 - }; - return r.value.includes("var(--") && Ql(r, kg), Ql(r, Eg), Ql(r, Pg), r; -} -function Tg(e) { - return Ss(e).values; -} -function Ag(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(kg.token, i[l]) : l < n + r ? s = s.replace(Eg.token, Rt.transform(i[l])) : s = s.replace(Pg.token, xa(i[l])); - return s; - }; -} -const bD = (e) => typeof e == "number" ? 0 : e; -function yD(e) { - const t = Tg(e); - return Ag(e)(t.map(bD)); -} -const Sn = { - test: gD, - parse: Tg, - createTransformer: Ag, - getAnimatableNone: yD -}, Og = (e, t) => (r) => `${r > 0 ? t : e}`; -function Rg(e, t) { - return typeof e == "number" ? (r) => st(e, t, r) : Rt.test(e) ? _g(e, t) : e.startsWith("var(") ? Og(e, t) : Dg(e, t); -} -const $g = (e, t) => { - const r = [...e], n = r.length, o = e.map((a, i) => Rg(a, t[i])); - return (a) => { - for (let i = 0; i < n; i++) - r[i] = o[i](a); - return r; - }; -}, xD = (e, t) => { - const r = { ...e, ...t }, n = {}; - for (const o in r) - e[o] !== void 0 && t[o] !== void 0 && (n[o] = Rg(e[o], t[o])); - return (o) => { - for (const a in n) - r[a] = n[a](o); - return r; - }; -}, Dg = (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($g(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.`), Og(e, t)); -}, Ha = (e, t, r) => { - const n = t - e; - return n === 0 ? 1 : (r - e) / n; -}, Wp = (e, t) => (r) => st(e, t, r); -function SD(e) { - return typeof e == "number" ? Wp : typeof e == "string" ? Rt.test(e) ? _g : Dg : Array.isArray(e) ? $g : typeof e == "object" ? xD : Wp; -} -function wD(e, t, r) { - const n = [], o = r || SD(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 = vn(l, s); - } - n.push(s); - } - return n; -} -function Mg(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 = wD(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 = Ha(e[u], e[u + 1], c); - return i[u](d); - }; - return r ? (c) => l(xn(e[0], e[a - 1], c)) : l; -} -function CD(e, t) { - const r = e[e.length - 1]; - for (let n = 1; n <= t; n++) { - const o = Ha(0, t, n); - e.push(st(r, 1, o)); - } -} -function _D(e) { - const t = [0]; - return CD(t, e.length - 1), t; -} -function kD(e, t) { - return e.map((r) => r * t); -} -function ED(e, t) { - return e.map(() => t || bg).splice(0, e.length - 1); -} -function ws({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) { - const o = lD(n) ? n.map(Vp) : Vp(n), a = { - done: !1, - value: t[0] - }, i = kD( - // 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 : _D(t), - e - ), s = Mg(i, t, { - ease: Array.isArray(o) ? o : ED(t, o) - }); - return { - calculatedDuration: e, - next: (l) => (a.value = s(l), a.done = l >= e, a) - }; -} -function Ig(e, t) { - return t ? e * (1e3 / t) : 0; -} -const PD = 5; -function Fg(e, t, r) { - const n = Math.max(t - PD, 0); - return Ig(r - e(n), t - n); -} -const ec = 1e-3, TD = 0.01, Up = 10, AD = 0.05, OD = 1; -function RD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }) { - let o, a; - ii(e <= gn(Up), "Spring duration must be 10 seconds or less"); - let i = 1 - t; - i = xn(AD, OD, i), e = xn(TD, Up, Jr(e)), i < 1 ? (o = (c) => { - const u = c * i, d = u * e, f = u - r, p = Kc(c, i), m = Math.exp(-d); - return ec - 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 = Kc(Math.pow(c, 2), i); - return (-o(c) + ec > 0 ? -1 : 1) * ((f - p) * m) / h; - }) : (o = (c) => { - const u = Math.exp(-c * e), d = (c - r) * e + 1; - return -ec + u * d; - }, a = (c) => { - const u = Math.exp(-c * e), d = (r - c) * (e * e); - return u * d; - }); - const s = 5 / e, l = DD(o, a, s); - if (e = gn(e), isNaN(l)) - return { - stiffness: 100, - damping: 10, - duration: e - }; - { - const c = Math.pow(l, 2) * n; - return { - stiffness: c, - damping: i * 2 * Math.sqrt(n * c), - duration: e - }; - } -} -const $D = 12; -function DD(e, t, r) { - let n = r; - for (let o = 1; o < $D; o++) - n = n - e(n) / t(n); - return n; -} -function Kc(e, t) { - return e * Math.sqrt(1 - t * t); -} -const MD = ["duration", "bounce"], ID = ["stiffness", "damping", "mass"]; -function Hp(e, t) { - return t.some((r) => e[r] !== void 0); -} -function FD(e) { - let t = { - velocity: 0, - stiffness: 100, - damping: 10, - mass: 1, - isResolvedFromDuration: !1, - ...e - }; - if (!Hp(e, ID) && Hp(e, MD)) { - const r = RD(e); - t = { - ...t, - ...r, - velocity: 0, - mass: 1 - }, t.isResolvedFromDuration = !0; - } - return t; -} -function Ng({ 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 } = FD(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 = Kc(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 = (_) => { - 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 _ = y(S); - if (f) - i.done = S >= d; - else { - let w = p; - S !== 0 && (m < 1 ? w = Fg(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 : _, i; - } - }; -} -function Yp({ 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 - }, p = (I) => s !== void 0 && I < s || l !== void 0 && I > l, m = (I) => s === void 0 ? l : l === void 0 || Math.abs(s - I) < Math.abs(l - I) ? s : l; - 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), _ = (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 = Ng({ - keyframes: [f.value, m(f.value)], - velocity: Fg(S, I, f.value), - damping: o, - stiffness: a, - restDelta: c, - restSpeed: u - })); - }; - return P(0), { - calculatedDuration: null, - next: (I) => { - let z = !1; - return !M && w === void 0 && (z = !0, _(I), P(I)), w !== void 0 && I > w ? M.next(I - w) : (!z && _(I), f); - } - }; -} -const ND = (e) => { - const t = ({ timestamp: r }) => e(r); - return { - start: () => tt.update(t, !0), - 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() - }; -}, Gp = 2e4; -function qp(e) { - let t = 0; - const r = 50; - let n = e.next(t); - for (; !n.done && t < Gp; ) - t += r, n = e.next(t); - return t >= Gp ? 1 / 0 : t; -} -const jD = { - decay: Yp, - inertia: Yp, - tween: ws, - keyframes: ws, - spring: Ng -}; -function Cs({ autoplay: e = !0, delay: t = 0, driver: r = ND, 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) => { - h = N; - }); - }; - b(); - let y; - const S = jD[o] || ws; - let _; - S !== ws && typeof n[0] != "number" && (_ = Mg([0, 100], n, { - clamp: !1 - }), n = [0, 100]); - const w = S({ ...f, keyframes: n }); - let M; - s === "mirror" && (M = S({ - ...f, - keyframes: [...n].reverse(), - velocity: -(f.velocity || 0) - })); - let P = "idle", I = null, z = null, j = null; - w.calculatedDuration === null && a && (w.calculatedDuration = qp(w)); - const { calculatedDuration: X } = w; - let ne = 1 / 0, J = 1 / 0; - X !== null && (ne = X + i, J = ne * (a + 1) - i); - let Q = 0; - const ee = (N) => { - if (z === null) - return; - 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 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 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(A); - _ && (C.value = _(C.value)); - let { done: H } = C; - !T && X !== null && (H = p >= 0 ? Q >= J : Q <= 0); - 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 = () => { - P = "idle", oe(), b(), z = j = null; - }, ce = () => { - P = "finished", u && u(), oe(), b(); - }, fe = () => { - if (m) - return; - y || (y = r(ee)); - const N = y.now(); - l && l(), I !== null ? z = N - I : (!z || P === "finished") && (z = N), j = z, I = null, P = "running", y.start(); - }; - e && fe(); - const F = { - then(N, V) { - return v.then(N, V); - }, - get time() { - return Jr(Q); - }, - set time(N) { - N = gn(N), Q = N, I !== null || !y || p === 0 ? I = N : z = y.now() - N / p; - }, - get duration() { - const N = w.calculatedDuration === null ? qp(w) : w.calculatedDuration; - return Jr(N); - }, - get speed() { - return p; - }, - set speed(N) { - N === p || !y || (p = N, F.time = Jr(Q)); - }, - get state() { - return P; - }, - play: fe, - pause: () => { - P = "paused", I = Q; - }, - stop: () => { - m = !0, P !== "idle" && (P = "idle", c && c(), D()); - }, - cancel: () => { - j !== null && ee(j), D(); - }, - complete: () => { - P = "finished"; - }, - sample: (N) => (z = 0, ee(N)) - }; - return F; -} -const BD = /* @__PURE__ */ new Set([ - "opacity", - "clipPath", - "filter", - "transform", - "backgroundColor" -]), Oi = 10, zD = 2e4, VD = (e, t) => t.type === "spring" || e === "backgroundColor" || !pg(t.ease); -function LD(e, t, { onUpdate: r, onComplete: n, ...o }) { - if (!(vg.waapi() && BD.has(t) && !o.repeatDelay && o.repeatType !== "mirror" && o.damping !== 0 && o.type !== "inertia")) - return !1; - let i = !1, s, l; - const c = () => { - l = new Promise((b) => { - s = b; - }); - }; - c(); - let { keyframes: u, duration: d = 300, ease: f, times: p } = o; - if (VD(t, o)) { - const b = Cs({ - ...o, - repeat: 0, - delay: 0 - }); - let y = { done: !1, value: u[0] }; - const S = []; - let _ = 0; - for (; !y.done && _ < zD; ) - y = b.sample(_), S.push(y.value), _ += Oi; - p = void 0, u = S, d = _ - Oi, f = "linear"; - } - const m = tD(e.owner.current, t, u, { - ...o, - duration: d, - /** - * This function is currently not called if ease is provided - * as a function so the cast is safe. - * - * However it would be possible for a future refinement to port - * in easing pregeneration from Motion One for browsers that - * support the upcoming `linear()` easing function. - */ - ease: f, - times: p - }), h = () => m.cancel(), v = () => { - tt.update(h), s(), c(); - }; - return m.onfinish = () => { - e.set(rD(u, o)), n && n(), v(); - }, { - then(b, y) { - return l.then(b, y); - }, - get time() { - return Jr(m.currentTime || 0); - }, - set time(b) { - m.currentTime = gn(b); - }, - get speed() { - return m.playbackRate; - }, - set speed(b) { - m.playbackRate = b; - }, - get duration() { - return Jr(d); - }, - play: () => { - i || (m.play(), nn(h)); - }, - pause: () => m.pause(), - stop: () => { - if (i = !0, m.playState === "idle") - return; - const { currentTime: b } = m; - if (b) { - const y = Cs({ - ...o, - autoplay: !1 - }); - e.setWithVelocity(y.sample(b - Oi).value, y.sample(b).value, Oi); - } - v(); - }, - complete: () => m.finish(), - cancel: v - }; -} -function WD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) { - const o = () => (r && r(e[e.length - 1]), n && n(), { - time: 0, - speed: 1, - duration: 0, - play: bt, - pause: bt, - stop: bt, - then: (a) => (a(), Promise.resolve()), - cancel: bt, - complete: bt - }); - return t ? Cs({ - keyframes: [0, 1], - duration: 0, - delay: t, - onComplete: o - }) : o(); -} -const UD = { - type: "spring", - stiffness: 500, - damping: 25, - restSpeed: 10 -}, HD = (e) => ({ - type: "spring", - stiffness: 550, - damping: e === 0 ? 2 * Math.sqrt(550) : 30, - restSpeed: 10 -}), YD = { - type: "keyframes", - duration: 0.8 -}, GD = { - type: "keyframes", - ease: [0.25, 0.1, 0.35, 1], - duration: 0.3 -}, qD = (e, { keyframes: t }) => t.length > 2 ? YD : Gn.has(e) ? e.startsWith("scale") ? HD(t[1]) : UD : GD, Zc = (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(")), XD = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]); -function KD(e) { - const [t, r] = e.slice(0, -1).split("("); - if (t === "drop-shadow") - return e; - const [n] = r.match(Js) || []; - if (!n) - return e; - const o = r.replace(n, ""); - let a = XD.has(t) ? 1 : 0; - return n !== r && (a *= 100), t + "(" + a + o + ")"; -} -const ZD = /([a-z-]*)\(.*?\)/g, Jc = { - ...Sn, - getAnimatableNone: (e) => { - const t = e.match(ZD); - return t ? t.map(KD).join(" ") : e; - } -}, JD = { - ...Xv, - // Color props - color: Rt, - backgroundColor: Rt, - outlineColor: Rt, - fill: Rt, - stroke: Rt, - // Border props - borderColor: Rt, - borderTopColor: Rt, - borderRightColor: Rt, - borderBottomColor: Rt, - borderLeftColor: Rt, - filter: Jc, - WebkitFilter: Jc -}, ud = (e) => JD[e]; -function jg(e, t) { - let r = ud(e); - return r !== Jc && (r = Sn), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0; -} -const Bg = (e) => /^0[^.\s]+$/.test(e); -function QD(e) { - if (typeof e == "number") - return e === 0; - if (e !== null) - return e === "none" || e === "0" || Bg(e); -} -function eM(e, t, r, n) { - const o = Zc(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]), QD(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] = jg(t, s); - } - return a; -} -function tM({ 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 zg(e, t) { - return e[t] || e.default || e; -} -const dd = (e, t, r, n = {}) => (o) => { - const a = zg(n, e) || {}, i = a.delay || n.delay || 0; - let { elapsed: s = 0 } = n; - s = s - gn(i); - const l = eM(t, e, r, a), c = l[0], u = l[l.length - 1], d = Zc(e, c), f = Zc(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, - velocity: t.getVelocity(), - ease: "easeOut", - ...a, - delay: -s, - onUpdate: (m) => { - t.set(m), a.onUpdate && a.onUpdate(m); - }, - onComplete: () => { - o(), a.onComplete && a.onComplete(); - } - }; - if (tM(a) || (p = { - ...p, - ...qD(e, p) - }), p.duration && (p.duration = gn(p.duration)), p.repeatDelay && (p.repeatDelay = gn(p.repeatDelay)), !d || !f || eD.current || a.type === !1) - return WD(p); - if (t.owner && t.owner.current instanceof HTMLElement && !t.owner.getProps().onUpdate) { - const m = LD(t, e, p); - if (m) - return m; - } - return Cs(p); -}; -function _s(e) { - return !!(Yt(e) && e.add); -} -const rM = (e) => /^\-?\d*\.?\d+$/.test(e); -function fd(e, t) { - e.indexOf(t) === -1 && e.push(t); -} -function pd(e, t) { - const r = e.indexOf(t); - r > -1 && e.splice(r, 1); -} -class hd { - constructor() { - this.subscriptions = []; - } - add(t) { - return fd(this.subscriptions, t), () => pd(this.subscriptions, t); - } - notify(t, r, n) { - const o = this.subscriptions.length; - if (o) - if (o === 1) - this.subscriptions[0](t, r, n); - else - for (let a = 0; a < o; a++) { - const i = this.subscriptions[a]; - i && i(t, r, n); - } - } - getSize() { - return this.subscriptions.length; - } - clear() { - this.subscriptions.length = 0; - } -} -const Xp = /* @__PURE__ */ new Set(); -function md(e, t, r) { - e || Xp.has(t) || (console.warn(t), r && console.warn(r), Xp.add(t)); -} -const nM = (e) => !isNaN(parseFloat(e)); -class oM { - /** - * @param init - The initiating value - * @param config - Optional configuration options - * - * - `transformer`: A function to transform incoming values with. - * - * @internal - */ - constructor(t, r = {}) { - this.version = "10.12.18", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (n, o = !0) => { - this.prev = this.current, this.current = n; - const { delta: a, timestamp: i } = it; - 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 = nM(this.current), this.owner = r.owner; - } - /** - * Adds a function that will be notified when the `MotionValue` is updated. - * - * It returns a function that, when called, will cancel the subscription. - * - * When calling `onChange` inside a React component, it should be wrapped with the - * `useEffect` hook. As it returns an unsubscribe function, this should be returned - * from the `useEffect` function to ensure you don't add duplicate subscribers.. - * - * ```jsx - * export const MyComponent = () => { - * const x = useMotionValue(0) - * const y = useMotionValue(0) - * const opacity = useMotionValue(1) - * - * useEffect(() => { - * function updateOpacity() { - * const maxXY = Math.max(x.get(), y.get()) - * const newOpacity = transform(maxXY, [0, 100], [1, 0]) - * opacity.set(newOpacity) - * } - * - * const unsubscribeX = x.on("change", updateOpacity) - * const unsubscribeY = y.on("change", updateOpacity) - * - * return () => { - * unsubscribeX() - * unsubscribeY() - * } - * }, []) - * - * return - * } - * ``` - * - * @param subscriber - A function that receives the latest value. - * @returns A function that, when called, will cancel this subscription. - * - * @deprecated - */ - onChange(t) { - return process.env.NODE_ENV !== "production" && md(!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 hd()); - const n = this.events[t].add(r); - return t === "change" ? () => { - n(), tt.read(() => { - this.events.change.getSize() || this.stop(); - }); - } : n; - } - clearListeners() { - for (const t in this.events) - this.events[t].clear(); - } - /** - * Attaches a passive effect to the `MotionValue`. - * - * @internal - */ - attach(t, r) { - this.passiveEffect = t, this.stopPassiveEffect = r; - } - /** - * Sets the state of the `MotionValue`. - * - * @remarks - * - * ```jsx - * const x = useMotionValue(0) - * x.set(10) - * ``` - * - * @param latest - Latest value to set. - * @param render - Whether to notify render subscribers. Defaults to `true` - * - * @public - */ - set(t, r = !0) { - !r || !this.passiveEffect ? this.updateAndNotify(t, r) : this.passiveEffect(t, this.updateAndNotify); - } - setWithVelocity(t, r, n) { - this.set(r), this.prev = t, this.timeDelta = n; - } - /** - * Set the state of the `MotionValue`, stopping any active animations, - * effects, and resets velocity to `0`. - */ - jump(t) { - this.updateAndNotify(t), this.prev = t, this.stop(), this.stopPassiveEffect && this.stopPassiveEffect(); - } - /** - * Returns the latest state of `MotionValue` - * - * @returns - The latest state of `MotionValue` - * - * @public - */ - get() { - return this.current; - } - /** - * @public - */ - getPrevious() { - return this.prev; - } - /** - * Returns the latest velocity of `MotionValue` - * - * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical. - * - * @public - */ - getVelocity() { - return this.canTrackVelocity ? ( - // These casts could be avoided if parseFloat would be typed better - Ig(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta) - ) : 0; - } - /** - * Registers a new animation to control this `MotionValue`. Only one - * animation can drive a `MotionValue` at one time. - * - * ```jsx - * value.start() - * ``` - * - * @param animation - A function that starts the provided animation - * - * @internal - */ - start(t) { - return this.stop(), new Promise((r) => { - this.hasAnimated = !0, this.animation = t(r), this.events.animationStart && this.events.animationStart.notify(); - }).then(() => { - this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation(); - }); - } - /** - * Stop the currently active animation. - * - * @public - */ - stop() { - this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation(); - } - /** - * Returns `true` if this value is currently animating. - * - * @public - */ - isAnimating() { - return !!this.animation; - } - clearAnimation() { - delete this.animation; - } - /** - * Destroy and clean up subscribers to this `MotionValue`. - * - * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically - * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually - * created a `MotionValue` via the `motionValue` function. - * - * @public - */ - destroy() { - this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect(); - } -} -function Ro(e, t) { - return new oM(e, t); -} -const Vg = (e) => (t) => t.test(e), aM = { - test: (e) => e === "auto", - parse: (e) => e -}, Lg = [qn, pe, Fr, fn, p2, f2, aM], Qo = (e) => Lg.find(Vg(e)), iM = [...Lg, Rt, Sn], sM = (e) => iM.find(Vg(e)); -function lM(e, t, r) { - e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, Ro(r)); -} -function cM(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 = P2(a[i]); - lM(e, i, s); - } -} -function uM(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" && (rM(u) || Bg(u)) ? u = parseFloat(u) : !sM(u) && Sn.test(c) && (u = jg(l, c)), e.addValue(l, Ro(u, { owner: e })), r[l] === void 0 && (r[l] = u), u !== null && e.setBaseTarget(l, u)); - } -} -function dM(e, t) { - return t ? (t[e] || t.default || t).from : void 0; -} -function fM(e, t, r) { - const n = {}; - for (const o in e) { - const a = dM(o, t); - if (a !== void 0) - n[o] = a; - else { - const i = r.getValue(o); - i && (n[o] = i.get()); - } - } - return n; -} -function pM({ protectedKeys: e, needsAnimating: t }, r) { - const n = e.hasOwnProperty(r) && t[r] !== !0; - return t[r] = !1, n; -} -function Wg(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 && pM(u, d)) - continue; - const m = { delay: r, elapsed: 0, ...a }; - if (window.HandoffAppearAnimations && !f.hasAnimated) { - const v = e.getProps()[Q2]; - v && (m.elapsed = window.HandoffAppearAnimations(v, d, f, tt)); - } - f.start(dd(d, f, p, e.shouldReduceMotion && Gn.has(d) ? { type: !1 } : m)); - const h = f.animation; - _s(l) && (l.add(d), h.then(() => l.remove(d))), c.push(h); - } - return i && Promise.all(c).then(() => { - i && cM(e, i); - }), c; -} -function Qc(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(Wg(e, n, r)) : () => Promise.resolve(), i = e.variantChildren && e.variantChildren.size ? (l = 0) => { - const { delayChildren: c = 0, staggerChildren: u, staggerDirection: d } = o; - return hM(e, t, c + l, u, d, r); - } : () => Promise.resolve(), { when: s } = o; - if (s) { - const [l, c] = s === "beforeChildren" ? [a, i] : [i, a]; - return l().then(() => c()); - } else - return Promise.all([a(), i(r.delay)]); -} -function hM(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(mM).forEach((c, u) => { - c.notify("AnimationStart", t), i.push(Qc(c, t, { - ...a, - delay: r + l(u) - }).then(() => c.notify("AnimationComplete", t))); - }), Promise.all(i); -} -function mM(e, t) { - return e.sortNodePosition(t); -} -function vM(e, t, r = {}) { - e.notify("AnimationStart", t); - let n; - if (Array.isArray(t)) { - const o = t.map((a) => Qc(e, a, r)); - n = Promise.all(o); - } else if (typeof t == "string") - n = Qc(e, t, r); - else { - const o = typeof t == "function" ? tl(e, t, r.custom) : t; - n = Promise.all(Wg(e, o, r)); - } - return n.then(() => e.notify("AnimationComplete", t)); -} -const gM = [...Ku].reverse(), bM = Ku.length; -function yM(e) { - return (t) => Promise.all(t.map(({ animation: r, options: n }) => vM(e, r, n))); -} -function xM(e) { - let t = yM(e); - const r = wM(); - let n = !0; - const o = (l, c) => { - const u = tl(e, c); - if (u) { - const { transition: d, transitionEnd: f, ...p } = u; - l = { ...l, ...p, ...f }; - } - return l; - }; - function a(l) { - t = l(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 < bM; b++) { - const y = gM[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 = _ === 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 - !_ && !S.prevProp || // Or if the prop doesn't define an animation - Ks(_) || typeof _ == "boolean") - continue; - const I = SM(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(_) ? _ : [_]; - let X = j.reduce(o, {}); - M === !1 && (X = {}); - const { prevResolvedValues: ne = {} } = S, J = { - ...ne, - ...X - }, Q = (ee) => { - z = !0, p.delete(ee), S.needsAnimating[ee] = !0; - }; - for (const ee in J) { - const oe = X[ee], D = ne[ee]; - m.hasOwnProperty(ee) || (oe !== D ? xs(oe) && xs(D) ? !dg(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 = _, 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 } - }))); - } - if (p.size) { - const b = {}; - p.forEach((y) => { - const S = e.getBaseTarget(y); - S !== void 0 && (b[y] = S); - }), f.push({ animation: b }); - } - let v = !!f.length; - return n && u.initial === !1 && !e.manuallyAnimateOnMount && (v = !1), n = !1, v ? t(f) : Promise.resolve(); - } - function s(l, c, u) { - var d; - if (r[l].isActive === c) - return Promise.resolve(); - (d = e.variantChildren) === null || d === void 0 || d.forEach((p) => { - var m; - return (m = p.animationState) === null || m === void 0 ? void 0 : m.setActive(l, c); - }), r[l].isActive = c; - const f = i(u, l); - for (const p in r) - r[p].protectedKeys = {}; - return f; - } - return { - animateChanges: i, - setActive: s, - setAnimateFunction: a, - getState: () => r - }; -} -function SM(e, t) { - return typeof t == "string" ? t !== e : Array.isArray(t) ? !dg(t, e) : !1; -} -function An(e = !1) { - return { - isActive: e, - protectedKeys: {}, - needsAnimating: {}, - prevResolvedValues: {} - }; -} -function wM() { - return { - animate: An(!0), - whileInView: An(), - whileHover: An(), - whileTap: An(), - whileDrag: An(), - whileFocus: An(), - exit: An() - }; -} -class CM 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 = xM(t)); - } - updateAnimationControlsSubscription() { - const { animate: t } = this.node.getProps(); - this.unmount(), Ks(t) && (this.unmount = t.subscribe(this.node)); - } - /** - * Subscribe any provided AnimationControls to the component's VisualElement - */ - mount() { - this.updateAnimationControlsSubscription(); - } - update() { - const { animate: t } = this.node.getProps(), { animate: r } = this.node.prevProps || {}; - t !== r && this.updateAnimationControlsSubscription(); - } - unmount() { - } -} -let _M = 0; -class kM extends Cn { - constructor() { - super(...arguments), this.id = _M++; - } - update() { - if (!this.node.presenceContext) - return; - const { isPresent: t, onExitComplete: r, custom: n } = this.node.presenceContext, { isPresent: o } = this.node.prevPresenceContext || {}; - if (!this.node.animationState || t === o) - return; - const a = this.node.animationState.setActive("exit", !t, { custom: n ?? this.node.getProps().custom }); - r && !t && a.then(() => r(this.id)); - } - mount() { - const { register: t } = this.node.presenceContext || {}; - t && (this.unmount = t(this.id)); - } - unmount() { - } -} -const EM = { - animation: { - Feature: CM - }, - exit: { - Feature: kM - } -}, Kp = (e, t) => Math.abs(e - t); -function PM(e, t) { - const r = Kp(e.x, t.x), n = Kp(e.y, t.y); - return Math.sqrt(r ** 2 + n ** 2); -} -class Ug { - 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 = rc(this.lastMoveEventInfo, this.history), u = this.startEvent !== null, d = PM(c.offset, { x: 0, y: 0 }) >= 3; - if (!u && !d) - return; - const { point: f } = c, { timestamp: p } = it; - this.history.push({ ...f, timestamp: p }); - 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 = tc(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 = rc(c.type === "pointercancel" ? this.lastMoveEventInfo : tc(u, this.transformPagePoint), this.history); - this.startEvent && d && d(c, p), f && f(c, p); - }, !ag(t)) - return; - this.handlers = r, this.transformPagePoint = n; - const o = Qs(t), a = tc(o, this.transformPagePoint), { point: i } = a, { timestamp: s } = it; - this.history = [{ ...i, timestamp: s }]; - const { onSessionStart: l } = r; - l && l(t, rc(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(), nn(this.updatePoint); - } -} -function tc(e, t) { - return t ? { point: t(e.point) } : e; -} -function Zp(e, t) { - return { x: e.x - t.x, y: e.y - t.y }; -} -function rc({ point: e }, t) { - return { - point: e, - delta: Zp(e, Hg(t)), - offset: Zp(e, TM(t)), - velocity: AM(t, 0.1) - }; -} -function TM(e) { - return e[0]; -} -function Hg(e) { - return e[e.length - 1]; -} -function AM(e, t) { - if (e.length < 2) - return { x: 0, y: 0 }; - let r = e.length - 1, n = null; - const o = Hg(e); - for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > gn(t))); ) - r--; - if (!n) - return { x: 0, y: 0 }; - const a = Jr(o.timestamp - n.timestamp); - if (a === 0) - return { x: 0, y: 0 }; - const i = { - x: (o.x - n.x) / a, - y: (o.y - n.y) / a - }; - return i.x === 1 / 0 && (i.x = 0), i.y === 1 / 0 && (i.y = 0), i; -} -function Qt(e) { - return e.max - e.min; -} -function eu(e, t = 0, r = 0.01) { - return Math.abs(e - t) <= r; -} -function Jp(e, t, r, n = 0.5) { - e.origin = n, e.originPoint = st(t.min, t.max, e.origin), e.scale = Qt(r) / Qt(t), (eu(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = st(r.min, r.max, e.origin) - e.originPoint, (eu(e.translate) || isNaN(e.translate)) && (e.translate = 0); -} -function Sa(e, t, r, n) { - Jp(e.x, t.x, r.x, n ? n.originX : void 0), Jp(e.y, t.y, r.y, n ? n.originY : void 0); -} -function Qp(e, t, r) { - e.min = r.min + t.min, e.max = e.min + Qt(t); -} -function OM(e, t, r) { - Qp(e.x, t.x, r.x), Qp(e.y, t.y, r.y); -} -function eh(e, t, r) { - e.min = t.min - r.min, e.max = e.min + Qt(t); -} -function wa(e, t, r) { - eh(e.x, t.x, r.x), eh(e.y, t.y, r.y); -} -function RM(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 th(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 $M(e, { top: t, left: r, bottom: n, right: o }) { - return { - x: th(e.x, r, o), - y: th(e.y, t, n) - }; -} -function rh(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 DM(e, t) { - return { - x: rh(e.x, t.x), - y: rh(e.y, t.y) - }; -} -function MM(e, t) { - let r = 0.5; - const n = Qt(e), o = Qt(t); - 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 IM(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 tu = 0.35; -function FM(e = tu) { - return e === !1 ? e = 0 : e === !0 && (e = tu), { - x: nh(e, "left", "right"), - y: nh(e, "top", "bottom") - }; -} -function nh(e, t, r) { - return { - min: oh(e, t), - max: oh(e, r) - }; -} -function oh(e, t) { - return typeof e == "number" ? e : e[t] || 0; -} -const ah = () => ({ - translate: 0, - scale: 1, - origin: 0, - originPoint: 0 -}), fo = () => ({ - x: ah(), - y: ah() -}), ih = () => ({ min: 0, max: 0 }), mt = () => ({ - x: ih(), - y: ih() -}); -function Or(e) { - return [e("x"), e("y")]; -} -function Yg({ top: e, left: t, right: r, bottom: n }) { - return { - x: { min: t, max: r }, - y: { min: e, max: n } - }; -} -function NM({ x: e, y: t }) { - return { top: t.min, right: e.max, bottom: t.max, left: e.min }; -} -function jM(e, t) { - if (!t) - return e; - const r = t({ x: e.left, y: e.top }), n = t({ x: e.right, y: e.bottom }); - return { - top: r.y, - left: r.x, - bottom: n.y, - right: n.x - }; -} -function nc(e) { - return e === void 0 || e === 1; -} -function ru({ scale: e, scaleX: t, scaleY: r }) { - return !nc(e) || !nc(t) || !nc(r); -} -function Rn(e) { - return ru(e) || Gg(e) || e.z || e.rotate || e.rotateX || e.rotateY; -} -function Gg(e) { - return sh(e.x) || sh(e.y); -} -function sh(e) { - return e && e !== "0%"; -} -function ks(e, t, r) { - const n = e - r, o = t * n; - return r + o; -} -function lh(e, t, r, n, o) { - return o !== void 0 && (e = ks(e, o, n)), ks(e, r, n) + t; -} -function nu(e, t = 0, r = 1, n, o) { - e.min = lh(e.min, t, r, n, o), e.max = lh(e.max, t, r, n, o); -} -function qg(e, { x: t, y: r }) { - nu(e.x, t.translate, t.scale, t.originPoint), nu(e.y, r.translate, r.scale, r.originPoint); -} -function BM(e, t, r, n = !1) { - const o = r.length; - if (!o) - return; - t.x = t.y = 1; - let a, i; - 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 && po(e, { - x: -a.scroll.offset.x, - y: -a.scroll.offset.y - }), i && (t.x *= i.x.scale, t.y *= i.y.scale, qg(e, i)), n && Rn(a.latestValues) && po(e, a.latestValues)); - } - t.x = ch(t.x), t.y = ch(t.y); -} -function ch(e) { - return Number.isInteger(e) || e > 1.0000000000001 || e < 0.999999999999 ? e : 1; -} -function pn(e, t) { - e.min = e.min + t, e.max = e.max + t; -} -function uh(e, t, [r, n, o]) { - const a = t[o] !== void 0 ? t[o] : 0.5, i = st(e.min, e.max, a); - nu(e, t[r], t[n], i, t.scale); -} -const zM = ["x", "scaleX", "originX"], VM = ["y", "scaleY", "originY"]; -function po(e, t) { - uh(e.x, t, zM), uh(e.y, t, VM); -} -function Xg(e, t) { - return Yg(jM(e.getBoundingClientRect(), t)); -} -function LM(e, t, r) { - const n = Xg(e, r), { scroll: o } = t; - return o && (pn(n.x, o.offset.x), pn(n.y, o.offset.y)), n; -} -const WM = /* @__PURE__ */ new WeakMap(); -class UM { - 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; - } - start(t, { snapToCursor: r = !1 } = {}) { - const { presenceContext: n } = this.visualElement; - if (n && n.isPresent === !1) - return; - const o = (l) => { - 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 = sg(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), Or((m) => { - let h = this.getAxisMotionValue(m).get() || 0; - if (Fr.test(h)) { - const { projection: v } = this.visualElement; - if (v && v.layout) { - const b = v.layout.layoutBox[m]; - b && (h = Qt(b) * (parseFloat(h) / 100)); - } - } - this.originPoint[m] = h; - }), f && tt.update(() => f(l, c), !1, !0); - const { animationState: p } = this.visualElement; - p && p.setActive("whileDrag", !0); - }, i = (l, c) => { - const { dragPropagation: u, dragDirectionLock: d, onDirectionLock: f, onDrag: p } = this.getProps(); - if (!u && !this.openGlobalLock) - return; - const { offset: m } = c; - if (d && this.currentDirection === null) { - this.currentDirection = HM(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 Ug(t, { - onSessionStart: o, - onStart: a, - onMove: i, - onSessionEnd: s - }, { transformPagePoint: this.visualElement.getTransformPagePoint() }); - } - stop(t, r) { - const n = this.isDragging; - if (this.cancel(), !n) - return; - const { velocity: o } = r; - this.startAnimation(o); - const { onDragEnd: a } = this.getProps(); - a && tt.update(() => a(t, r)); - } - cancel() { - this.isDragging = !1; - const { projection: t, animationState: r } = this.visualElement; - t && (t.isAnimationBlocked = !1), this.panSession && this.panSession.end(), this.panSession = void 0; - const { dragPropagation: n } = this.getProps(); - !n && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), r && r.setActive("whileDrag", !1); - } - updateAxis(t, r, n) { - const { drag: o } = this.getProps(); - 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 = RM(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 && co(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = $M(n.layoutBox, t) : this.constraints = !1, this.elastic = FM(r), o !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && Or((a) => { - this.getAxisMotionValue(a) && (this.constraints[a] = IM(n.layoutBox[a], this.constraints[a])); - }); - } - resolveRefConstraints() { - const { dragConstraints: t, onMeasureDragConstraints: r } = this.getProps(); - 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 = LM(n, o.root, this.visualElement.getTransformPagePoint()); - let i = DM(o.layout.layoutBox, a); - if (r) { - const s = r(NM(i)); - this.hasMutatedConstraints = !!s, s && (i = Yg(s)); - } - return i; - } - startAnimation(t) { - 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 }); - const f = o ? 200 : 1e6, p = o ? 40 : 1e7, m = { - type: "inertia", - velocity: n ? t[u] : 0, - bounceStiffness: f, - bounceDamping: p, - timeConstant: 750, - restDelta: 1, - restSpeed: 10, - ...a, - ...d - }; - return this.startAxisValueAnimation(u, m); - }); - return Promise.all(c).then(s); - } - startAxisValueAnimation(t, r) { - const n = this.getAxisMotionValue(t); - return n.start(dd(t, n, 0, r)); - } - stopAnimation() { - Or((t) => this.getAxisMotionValue(t).stop()); - } - /** - * Drag works differently depending on which props are provided. - * - * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values. - * - Otherwise, we apply the delta to the x/y motion values. - */ - getAxisMotionValue(t) { - const r = "_drag" + t.toUpperCase(), n = this.visualElement.getProps(), o = n[r]; - return o || this.visualElement.getValue(t, (n.initial ? n.initial[t] : void 0) || 0); - } - snapToCursor(t) { - Or((r) => { - const { drag: n } = this.getProps(); - if (!Ri(r, n, this.currentDirection)) - return; - const { projection: o } = this.visualElement, a = this.getAxisMotionValue(r); - if (o && o.layout) { - const { min: i, max: s } = o.layout.layoutBox[r]; - a.set(t[r] - st(i, s, 0.5)); - } - }); - } - /** - * When the viewport resizes we want to check if the measured constraints - * have changed and, if so, reposition the element within those new constraints - * relative to where it was before the resize. - */ - scalePositionWithinConstraints() { - if (!this.visualElement.current) - return; - const { drag: t, dragConstraints: r } = this.getProps(), { projection: n } = this.visualElement; - if (!co(r) || !n || !this.constraints) - return; - this.stopAnimation(); - const o = { x: 0, y: 0 }; - Or((i) => { - const s = this.getAxisMotionValue(i); - if (s) { - const l = s.get(); - o[i] = MM({ 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(), 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])); - }); - } - addListeners() { - if (!this.visualElement.current) - return; - WM.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(); - 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 = 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()); - }); - return () => { - i(), r(), a(), s && s(); - }; - } - getProps() { - const t = this.visualElement.getProps(), { drag: r = !1, dragDirectionLock: n = !1, dragPropagation: o = !1, dragConstraints: a = !1, dragElastic: i = tu, dragMomentum: s = !0 } = t; - return { - ...t, - drag: r, - dragDirectionLock: n, - dragPropagation: o, - dragConstraints: a, - dragElastic: i, - dragMomentum: s - }; - } -} -function Ri(e, t, r) { - return (t === !0 || t === e) && (r === null || r === e); -} -function HM(e, t = 10) { - let r = null; - return Math.abs(e.y) > t ? r = "y" : Math.abs(e.x) > t && (r = "x"), r; -} -class YM extends Cn { - constructor(t) { - super(t), this.removeGroupControls = bt, this.removeListeners = bt, this.controls = new UM(t); - } - mount() { - const { dragControls: t } = this.node.getProps(); - t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || bt; - } - unmount() { - this.removeGroupControls(), this.removeListeners(); - } -} -const dh = (e) => (t, r) => { - e && tt.update(() => e(t, r)); -}; -class GM extends Cn { - constructor() { - super(...arguments), this.removePointerDownListener = bt; - } - onPointerDown(t) { - this.session = new Ug(t, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() }); - } - createPanHandlers() { - const { onPanSessionStart: t, onPanStart: r, onPan: n, onPanEnd: o } = this.node.getProps(); - return { - onSessionStart: dh(t), - onStart: dh(r), - onMove: n, - onEnd: (a, i) => { - delete this.session, o && tt.update(() => o(a, i)); - } - }; - } - mount() { - this.removePointerDownListener = Zr(this.node.current, "pointerdown", (t) => this.onPointerDown(t)); - } - update() { - this.session && this.session.updateHandlers(this.createPanHandlers()); - } - unmount() { - this.removePointerDownListener(), this.session && this.session.end(); - } -} -function Kg() { - 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 WV() { - return qM(ft(ri)); -} -function qM(e) { - return e === null ? !0 : e.isPresent; -} -const es = { - /** - * Global flag as to whether the tree has animated since the last time - * we resized the window - */ - hasAnimatedSinceResize: !0, - /** - * We set this to true once, on the first update. Any nodes added to the tree beyond that - * update will be given a `data-projection-id` attribute. - */ - hasEverUpdated: !1 -}; -function fh(e, t) { - return t.max === t.min ? 0 : e / (t.max - t.min) * 100; -} -const ea = { - correct: (e, t) => { - if (!t.target) - return e; - if (typeof e == "string") - if (pe.test(e)) - e = parseFloat(e); - else - return e; - const r = fh(e, t.target.x), n = fh(e, t.target.y); - return `${r}% ${n}%`; - } -}, XM = { - correct: (e, { treeScale: t, projectionDelta: r }) => { - const n = e, o = Sn.parse(e); - if (o.length > 5) - return n; - 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 KM extends It.Component { - /** - * This only mounts projection nodes for components that - * need measuring, we might want to do it for all components - * in order to incorporate transforms - */ - componentDidMount() { - const { visualElement: t, layoutGroup: r, switchLayoutGroup: n, layoutId: o } = this.props, { projection: a } = t; - a2(ZM), 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, - onExitComplete: () => this.safeToRemove() - })), es.hasEverUpdated = !0; - } - getSnapshotBeforeUpdate(t) { - const { layoutDependency: r, visualElement: n, drag: o, isPresent: a } = this.props, i = n.projection; - return i && (i.isPresent = a, o || t.layoutDependency !== r || r === void 0 ? i.willUpdate() : this.safeToRemove(), t.isPresent !== a && (a ? i.promote() : i.relegate() || tt.postRender(() => { - const s = i.getStack(); - (!s || !s.members.length) && this.safeToRemove(); - }))), null; - } - componentDidUpdate() { - const { projection: t } = this.props.visualElement; - t && (t.root.didUpdate(), queueMicrotask(() => { - !t.currentAnimation && t.isLead() && this.safeToRemove(); - })); - } - componentWillUnmount() { - const { visualElement: t, layoutGroup: r, switchLayoutGroup: n } = this.props, { projection: o } = t; - o && (o.scheduleCheckAfterUnmount(), r && r.group && r.group.remove(o), n && n.deregister && n.deregister(o)); - } - safeToRemove() { - const { safeToRemove: t } = this.props; - t && t(); - } - render() { - return null; - } -} -function Zg(e) { - const [t, r] = Kg(), n = ft(Ju); - return It.createElement(KM, { ...e, layoutGroup: n, switchLayoutGroup: ft(Uv), isPresent: t, safeToRemove: r }); -} -const ZM = { - borderRadius: { - ...ea, - applyTo: [ - "borderTopLeftRadius", - "borderTopRightRadius", - "borderBottomLeftRadius", - "borderBottomRightRadius" - ] - }, - borderTopLeftRadius: ea, - borderTopRightRadius: ea, - borderBottomLeftRadius: ea, - borderBottomRightRadius: ea, - boxShadow: XM -}, Jg = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], JM = Jg.length, ph = (e) => typeof e == "string" ? parseFloat(e) : e, hh = (e) => typeof e == "number" || pe.test(e); -function QM(e, t, r, n, o, a) { - o ? (e.opacity = st( - 0, - // TODO Reinstate this if only child - r.opacity !== void 0 ? r.opacity : 1, - eI(n) - ), e.opacityExit = st(t.opacity !== void 0 ? t.opacity : 1, 0, tI(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 < JM; i++) { - const s = `border${Jg[i]}Radius`; - let l = mh(t, s), c = mh(r, s); - if (l === void 0 && c === void 0) - continue; - l || (l = 0), c || (c = 0), l === 0 || c === 0 || hh(l) === hh(c) ? (e[s] = Math.max(st(ph(l), ph(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 mh(e, t) { - return e[t] !== void 0 ? e[t] : e.borderRadius; -} -const eI = Qg(0, 0.5, sd), tI = Qg(0.5, 0.95, bt); -function Qg(e, t, r) { - return (n) => n < e ? 0 : n > t ? 1 : r(Ha(e, t, n)); -} -function vh(e, t) { - e.min = t.min, e.max = t.max; -} -function nr(e, t) { - vh(e.x, t.x), vh(e.y, t.y); -} -function gh(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 rI(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 = gh(e.min, t, r, s, o), e.max = gh(e.max, t, r, s, o); -} -function bh(e, t, [r, n, o], a, i) { - rI(e, t[r], t[n], t[o], t.scale, a, i); -} -const nI = ["x", "scaleX", "originX"], oI = ["y", "scaleY", "originY"]; -function yh(e, t, r, n) { - bh(e.x, t, nI, r ? r.x : void 0, n ? n.x : void 0), bh(e.y, t, oI, r ? r.y : void 0, n ? n.y : void 0); -} -function xh(e) { - return e.translate === 0 && e.scale === 1; -} -function eb(e) { - return xh(e.x) && xh(e.y); -} -function ou(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 Sh(e) { - return Qt(e.x) / Qt(e.y); -} -class aI { - constructor() { - this.members = []; - } - add(t) { - fd(this.members, t), t.scheduleRender(); - } - remove(t) { - if (pd(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); - } - } - relegate(t) { - const r = this.members.findIndex((o) => t === o); - if (r === 0) - return !1; - let n; - for (let o = r; o >= 0; o--) { - const a = this.members[o]; - if (a.isPresent !== !1) { - n = a; - break; - } - } - return n ? (this.promote(n), !0) : !1; - } - promote(t, r) { - const n = this.lead; - if (t !== n && (this.prevLead = n, this.lead = t, t.show(), n)) { - n.instance && n.scheduleRender(), t.scheduleRender(), t.resumeFrom = n, r && (t.resumeFrom.preserveOpacity = !0), n.snapshot && (t.snapshot = n.snapshot, t.snapshot.latestValues = n.animationValues || n.latestValues), t.root && t.root.isUpdating && (t.isLayoutDirty = !0); - const { crossfade: o } = t.options; - o === !1 && n.hide(); - } - } - exitAnimationComplete() { - this.members.forEach((t) => { - const { options: r, resumingFrom: n } = t; - r.onExitComplete && r.onExitComplete(), n && n.options.onExitComplete && n.options.onExitComplete(); - }); - } - scheduleRender() { - this.members.forEach((t) => { - t.instance && t.scheduleRender(!1); - }); - } - /** - * Clear any leads that have been removed this render to prevent them from being - * used in future animations and to prevent memory leaks - */ - removeLeadSnapshot() { - this.lead && this.lead.snapshot && (this.lead.snapshot = void 0); - } -} -function wh(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) { - const { rotate: l, rotateX: c, rotateY: u } = r; - l && (n += `rotate(${l}deg) `), c && (n += `rotateX(${c}deg) `), u && (n += `rotateY(${u}deg) `); - } - 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 iI = (e, t) => e.depth - t.depth; -class sI { - constructor() { - this.children = [], this.isDirty = !1; - } - add(t) { - fd(this.children, t), this.isDirty = !0; - } - remove(t) { - pd(this.children, t), this.isDirty = !0; - } - forEach(t) { - this.isDirty && this.children.sort(iI), this.isDirty = !1, this.children.forEach(t); - } -} -function lI(e, t) { - const r = performance.now(), n = ({ timestamp: o }) => { - const a = o - r; - a >= t && (nn(n), e(a - t)); - }; - return tt.read(n, !0), () => nn(n); -} -function cI(e) { - window.MotionDebug && window.MotionDebug.record(e); -} -function uI(e) { - return e instanceof SVGElement && e.tagName !== "svg"; -} -function dI(e, t, r) { - const n = Yt(e) ? e : Ro(e); - return n.start(dd("", n, t, r)), n.animation; -} -const Ch = ["", "X", "Y", "Z"], _h = 1e3; -let fI = 0; -const $n = { - type: "projectionFrame", - totalNodes: 0, - resolvedTargetDeltas: 0, - recalculatedProjection: 0 -}; -function tb({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: n, resetTransform: o }) { - return class { - constructor(i = {}, s = t == null ? void 0 : t()) { - this.id = fI++, 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(mI), this.nodes.forEach(xI), this.nodes.forEach(SI), this.nodes.forEach(vI), cI($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 sI()); - } - addEventListener(i, s) { - return this.eventHandlers.has(i) || this.eventHandlers.set(i, new hd()), this.eventHandlers.get(i).add(s); - } - notifyListeners(i, ...s) { - const l = this.eventHandlers.get(i); - l && l.notify(...s); - } - hasListeners(i) { - return this.eventHandlers.has(i); - } - /** - * Lifecycles - */ - mount(i, s = this.root.hasTreeAnimated) { - if (this.instance) - return; - this.isSVG = uI(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 = lI(f, 250), es.hasAnimatedSinceResize && (es.hasAnimatedSinceResize = !1, this.nodes.forEach(Eh)); - }); - } - l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: f, hasRelativeTargetChanged: p, layout: m }) => { - if (this.isTreeAnimationBlocked()) { - this.target = void 0, this.relativeTarget = void 0; - return; - } - const h = this.options.transition || u.getDefaultTransition() || EI, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !ou(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 _ = { - ...zg(h, "layout"), - onPlay: v, - onComplete: b - }; - (u.shouldReduceMotion || this.options.layoutRoot) && (_.delay = 0, _.type = !1), this.startAnimation(_); - } else - f || Eh(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, nn(this.updateProjection); - } - // only on the root - blockUpdate() { - this.updateManuallyBlocked = !0; - } - unblockUpdate() { - this.updateManuallyBlocked = !1; - } - isUpdateBlocked() { - return this.updateManuallyBlocked || this.updateBlockedByResize; - } - isTreeAnimationBlocked() { - return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1; - } - // Note: currently only running on root node - startUpdate() { - this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(wI), this.animationId++); - } - getTransformTemplate() { - const { visualElement: i } = this.options; - return i && i.getProps().transformTemplate; - } - willUpdate(i = !0) { - if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) { - this.options.onExitComplete && this.options.onExitComplete(); - return; - } - if (!this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) - return; - this.isLayoutDirty = !0; - for (let u = 0; u < this.path.length; u++) { - const d = this.path[u]; - d.shouldResetTransform = !0, d.updateScroll("snapshot"), d.options.layoutRoot && d.willUpdate(!1); - } - const { layoutId: s, layout: l } = this.options; - if (s === void 0 && !l) - return; - const c = this.getTransformTemplate(); - this.prevTransformTemplateValue = c ? c(this.latestValues, "") : void 0, this.updateSnapshot(), i && this.notifyListeners("willUpdate"); - } - update() { - if (this.updateScheduled = !1, this.isUpdateBlocked()) { - this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(kh); - return; - } - this.isUpdating || this.nodes.forEach(bI), this.isUpdating = !1, this.nodes.forEach(yI), this.nodes.forEach(pI), this.nodes.forEach(hI), this.clearAllSnapshots(); - const s = performance.now(); - 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(gI), this.sharedNodes.forEach(CI); - } - scheduleUpdateProjection() { - tt.preRender(this.updateProjection, !1, !0); - } - scheduleCheckAfterUnmount() { - tt.postRender(() => { - this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed(); - }); - } - /** - * Update measurements - */ - updateSnapshot() { - this.snapshot || !this.instance || (this.snapshot = this.measure()); - } - updateLayout() { - if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) - return; - if (this.resumeFrom && !this.resumeFrom.instance) - for (let l = 0; l < this.path.length; l++) - this.path[l].updateScroll(); - const i = this.layout; - this.layout = this.measure(!1), this.layoutCorrected = mt(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox); - const { visualElement: s } = this.options; - s && s.notify("LayoutMeasure", this.layout.layoutBox, i ? i.layoutBox : void 0); - } - updateScroll(i = "measure") { - let s = !!(this.options.layoutScroll && this.instance); - this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === i && (s = !1), s && (this.scroll = { - animationId: this.root.animationId, - phase: i, - isRoot: n(this.instance), - offset: r(this.instance) - }); - } - resetTransform() { - if (!o) - return; - const i = this.isLayoutDirty || this.shouldResetTransform, s = this.projectionDelta && !eb(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)), PI(l), { - animationId: this.root.animationId, - measuredBox: s, - layoutBox: l, - latestValues: {}, - source: this.id - }; - } - measurePageBox() { - const { visualElement: i } = this.options; - if (!i) - return mt(); - const s = i.measureViewportBox(), { scroll: l } = this.root; - return l && (pn(s.x, l.offset.x), pn(s.y, l.offset.y)), s; - } - removeElementScroll(i) { - const s = mt(); - nr(s, i); - for (let l = 0; l < this.path.length; l++) { - const c = this.path[l], { scroll: u, options: d } = c; - if (c !== this.root && u && d.layoutScroll) { - if (u.isRoot) { - nr(s, i); - const { scroll: f } = this.root; - f && (pn(s.x, -f.offset.x), pn(s.y, -f.offset.y)); - } - pn(s.x, u.offset.x), pn(s.y, u.offset.y); - } - } - return s; - } - applyTransform(i, s = !1) { - const l = mt(); - 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 && po(l, { - x: -u.scroll.offset.x, - y: -u.scroll.offset.y - }), Rn(u.latestValues) && po(l, u.latestValues); - } - 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 || !Rn(c.latestValues)) - continue; - ru(c.latestValues) && c.updateSnapshot(); - const u = mt(), d = c.measurePageBox(); - nr(u, d), yh(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u); - } - return Rn(this.latestValues) && yh(s, this.latestValues), s; - } - setTargetDelta(i) { - this.targetDelta = i, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0; - } - setOptions(i) { - this.options = { - ...this.options, - ...i, - crossfade: i.crossfade !== void 0 ? i.crossfade : !0 - }; - } - clearMeasurements() { - this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1; - } - forceRelativeParentToResolveTarget() { - this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== it.timestamp && this.relativeParent.resolveTargetDelta(!0); - } - resolveTargetDelta(i = !1) { - var s; - const l = this.getLead(); - this.isProjectionDirty || (this.isProjectionDirty = l.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = l.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = l.isSharedProjectionDirty); - const c = !!this.resumingFrom || this !== l; - if (!(i || c && this.isSharedProjectionDirty || this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty || this.attemptToResolveRelativeTarget)) - return; - const { layout: d, layoutId: f } = this.options; - 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(), 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(), OM(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nr(this.target, this.layout.layoutBox), qg(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(), wa(this.relativeTargetOrigin, this.target, p.target), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; - } - $n.resolvedTargetDeltas++; - } - } - } - getClosestProjectingParent() { - if (!(!this.parent || ru(this.parent.latestValues) || Gg(this.parent.latestValues))) - return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent(); - } - isProjecting() { - return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout); - } - calcProjection() { - var i; - const s = this.getLead(), l = !!this.resumingFrom || this !== s; - let c = !0; - if ((this.isProjectionDirty || !((i = this.parent) === null || i === void 0) && i.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === it.timestamp && (c = !1), c) - return; - const { layout: u, layoutId: d } = this.options; - if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d)) - return; - nr(this.layoutCorrected, this.layout.layoutBox); - const f = this.treeScale.x, p = this.treeScale.y; - BM(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 = fo(), this.projectionTransform = "none", this.scheduleRender()); - return; - } - this.projectionDelta || (this.projectionDelta = fo(), this.projectionDeltaWithTransform = fo()); - const h = this.projectionTransform; - Sa(this.projectionDelta, this.layoutCorrected, m, this.latestValues), this.projectionTransform = wh(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; - } - show() { - this.isVisible = !0; - } - scheduleRender(i = !0) { - if (this.options.scheduleRender && this.options.scheduleRender(), i) { - const s = this.getStack(); - s && s.scheduleRender(); - } - 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 = 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(kI)); - this.animationProgress = 0; - let S; - this.mixTargetDelta = (_) => { - const w = _ / 1e3; - Ph(d.x, i.x, w), Ph(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), _I(this.relativeTarget, this.relativeTargetOrigin, f, w), S && ou(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = mt()), nr(S, this.relativeTarget)), h && (this.animationValues = u, QM(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 && (nn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = tt.update(() => { - es.hasAnimatedSinceResize = !0, this.currentAnimation = dI(0, _h, { - ...i, - onUpdate: (s) => { - this.mixTargetDelta(s), i.onUpdate && i.onUpdate(s); - }, - onComplete: () => { - i.onComplete && i.onComplete(), this.completeAnimation(); - } - }), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0; - }); - } - completeAnimation() { - this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0); - const i = this.getStack(); - i && i.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete"); - } - finishAnimation() { - this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(_h), 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 && rb(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), po(s, u), Sa(this.projectionDeltaWithTransform, this.layoutCorrected, s, u); - } - } - registerSharedNode(i, s) { - this.sharedNodes.has(i) || this.sharedNodes.set(i, new aI()), this.sharedNodes.get(i).add(s); - const c = s.options.initialPromotionConfig; - s.promote({ - transition: c ? c.transition : void 0, - preserveFollowOpacity: c && c.shouldPreserveFollowOpacity ? c.shouldPreserveFollowOpacity(s) : void 0 - }); - } - isLead() { - const i = this.getStack(); - return i ? i.lead === this : !0; - } - getLead() { - var i; - const { layoutId: s } = this.options; - return s ? ((i = this.getStack()) === null || i === void 0 ? void 0 : i.lead) || this : this; - } - getPrevLead() { - var i; - const { layoutId: s } = this.options; - return s ? (i = this.getStack()) === null || i === void 0 ? void 0 : i.prevLead : void 0; - } - getStack() { - const { layoutId: i } = this.options; - if (i) - return this.root.sharedNodes.get(i); - } - promote({ needsReset: i, transition: s, preserveFollowOpacity: l } = {}) { - const c = this.getStack(); - c && c.promote(this, l), i && (this.projectionDelta = void 0, this.needsReset = !0), s && this.setOptions({ transition: s }); - } - relegate() { - const i = this.getStack(); - return i ? i.relegate(this) : !1; - } - resetRotation() { - const { visualElement: i } = this.options; - if (!i) - return; - let s = !1; - const { latestValues: l } = i; - if ((l.rotate || l.rotateX || l.rotateY || l.rotateZ) && (s = !0), !s) - return; - const c = {}; - for (let u = 0; u < Ch.length; u++) { - const d = "rotate" + Ch[u]; - l[d] && (c[d] = l[d], i.setStaticValue(d, 0)); - } - i.render(); - for (const u in c) - i.setStaticValue(u, c[u]); - i.scheduleRender(); - } - getProjectionStyles(i = {}) { - var s, l; - const c = {}; - if (!this.instance || this.isSVG) - return c; - if (this.isVisible) - c.visibility = ""; - else - return { visibility: "hidden" }; - const u = this.getTransformTemplate(); - if (this.needsReset) - return this.needsReset = !1, c.opacity = "", c.pointerEvents = Qi(i.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c; - 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 && !Rn(this.latestValues) && (h.transform = u ? u({}, "") : "none", this.hasProjected = !1), h; - } - const f = d.animationValues || d.latestValues; - this.applyTransformsToTarget(), c.transform = wh(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 bs) { - if (f[h] === void 0) - continue; - 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 _ = 0; _ < S; _++) - c[b[_]] = y; - } else - c[h] = y; - } - return this.options.layoutId && (c.pointerEvents = d === this ? Qi(i.pointerEvents) || "" : "none"), c; - } - clearSnapshot() { - this.resumeFrom = this.snapshot = void 0; - } - // Only run on root - resetTree() { - this.root.nodes.forEach((i) => { - var s; - return (s = i.currentAnimation) === null || s === void 0 ? void 0 : s.stop(); - }), this.root.nodes.forEach(kh), this.root.sharedNodes.clear(); - } - }; -} -function pI(e) { - e.updateLayout(); -} -function hI(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" ? Or((d) => { - const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Qt(f); - f.min = n[d].min, f.max = f.min + p; - }) : rb(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 = 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 = !eb(s); - let u = !1; - if (!e.resumeFrom) { - const d = e.getClosestProjectingParent(); - if (d && !d.resumeFrom) { - const { snapshot: f, layout: p } = d; - if (f && p) { - const m = mt(); - wa(m, r.layoutBox, f.layoutBox); - const h = mt(); - wa(h, n, p.layoutBox), ou(m, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = m, e.relativeParent = d); - } - } - } - e.notifyListeners("didUpdate", { - layout: n, - snapshot: r, - delta: l, - layoutDelta: s, - hasLayoutChanged: c, - hasRelativeTargetChanged: u - }); - } else if (e.isLead()) { - const { onExitComplete: n } = e.options; - n && n(); - } - e.options.transition = void 0; -} -function mI(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 vI(e) { - e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1; -} -function gI(e) { - e.clearSnapshot(); -} -function kh(e) { - e.clearMeasurements(); -} -function bI(e) { - e.isLayoutDirty = !1; -} -function yI(e) { - const { visualElement: t } = e.options; - t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform(); -} -function Eh(e) { - e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0; -} -function xI(e) { - e.resolveTargetDelta(); -} -function SI(e) { - e.calcProjection(); -} -function wI(e) { - e.resetRotation(); -} -function CI(e) { - e.removeLeadSnapshot(); -} -function Ph(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 Th(e, t, r, n) { - e.min = st(t.min, r.min, n), e.max = st(t.max, r.max, n); -} -function _I(e, t, r, n) { - Th(e.x, t.x, r.x, n), Th(e.y, t.y, r.y, n); -} -function kI(e) { - return e.animationValues && e.animationValues.opacityExit !== void 0; -} -const EI = { - duration: 0.45, - ease: [0.4, 0, 0.1, 1] -}; -function Ah(e) { - e.min = Math.round(e.min), e.max = Math.round(e.max); -} -function PI(e) { - Ah(e.x), Ah(e.y); -} -function rb(e, t, r) { - return e === "position" || e === "preserve-aspect" && !eu(Sh(t), Sh(r), 0.2); -} -const TI = tb({ - attachResizeListener: (e, t) => Xr(e, "resize", t), - measureScroll: () => ({ - x: document.documentElement.scrollLeft || document.body.scrollLeft, - y: document.documentElement.scrollTop || document.body.scrollTop - }), - checkIsScrollRoot: () => !0 -}), oc = { - current: void 0 -}, nb = tb({ - measureScroll: (e) => ({ - x: e.scrollLeft, - y: e.scrollTop - }), - defaultParent: () => { - if (!oc.current) { - const e = new TI({}); - e.mount(window), e.setOptions({ layoutScroll: !0 }), oc.current = e; - } - return oc.current; - }, - resetTransform: (e, t) => { - e.style.transform = t !== void 0 ? t : "none"; - }, - checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed" -}), AI = { - pan: { - Feature: GM - }, - drag: { - Feature: YM, - ProjectionNode: nb, - MeasureLayout: Zg - } -}, OI = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/; -function RI(e) { - const t = OI.exec(e); - if (!t) - return [,]; - const [, r, n] = t; - return [r, n]; -} -const $I = 4; -function au(e, t, r = 1) { - wr(r <= $I, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`); - const [n, o] = RI(e); - if (!n) - return; - const a = window.getComputedStyle(t).getPropertyValue(n); - return a ? a.trim() : Yc(o) ? au(o, t, r + 1) : o; -} -function DI(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 (!Yc(a)) - return; - const i = au(a, n); - i && o.set(i); - }); - for (const o in t) { - const a = t[o]; - if (!Yc(a)) - continue; - const i = au(a, n); - i && (t[o] = i, r || (r = {}), r[o] === void 0 && (r[o] = a)); - } - return { target: t, transitionEnd: r }; -} -const MI = /* @__PURE__ */ new Set([ - "width", - "height", - "top", - "left", - "right", - "bottom", - "x", - "y", - "translateX", - "translateY" -]), ob = (e) => MI.has(e), II = (e) => Object.keys(e).some(ob), $i = (e) => e === qn || e === pe, Oh = (e, t) => parseFloat(e.split(", ")[t]), Rh = (e, t) => (r, { transform: n }) => { - if (n === "none" || !n) - return 0; - const o = n.match(/^matrix3d\((.+)\)$/); - if (o) - return Oh(o[1], t); - { - const a = n.match(/^matrix\((.+)\)$/); - return a ? Oh(a[1], e) : 0; - } -}, FI = /* @__PURE__ */ new Set(["x", "y", "z"]), NI = ni.filter((e) => !FI.has(e)); -function jI(e) { - const t = []; - return NI.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 $h = { - // 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), - top: (e, { top: t }) => parseFloat(t), - left: (e, { left: t }) => parseFloat(t), - bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min), - right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min), - // Transform - x: Rh(4, 13), - y: Rh(5, 14) -}, BI = (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] = $h[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] = $h[c](l, a); - }), e; -}, zI = (e, t, r = {}, n = {}) => { - t = { ...t }, n = { ...n }; - const o = Object.keys(t).filter(ob); - 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 = Qo(u); - const f = t[l]; - let p; - if (xs(f)) { - const m = f.length, h = f[0] === null ? 1 : 0; - u = f[h], d = Qo(u); - for (let v = h; v < m && f[v] !== null; v++) - 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 = Qo(f); - if (d !== 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 = jI(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 = BI(t, e, s); - return a.length && a.forEach(([u, d]) => { - e.getValue(u).set(d); - }), e.render(), Xs && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: n }; - } else - return { target: t, transitionEnd: n }; -}; -function VI(e, t, r, n) { - return II(t) ? zI(e, t, r, n) : { target: t, transitionEnd: n }; -} -const LI = (e, t, r, n) => { - const o = DI(e, t, n); - return t = o.target, n = o.transitionEnd, VI(e, t, r, n); -}, iu = { current: null }, ab = { current: !1 }; -function WI() { - if (ab.current = !0, !!Xs) - if (window.matchMedia) { - const e = window.matchMedia("(prefers-reduced-motion)"), t = () => iu.current = e.matches; - e.addListener(t), t(); - } else - iu.current = !1; -} -function UI(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), _s(n) && n.add(o), process.env.NODE_ENV === "development" && md(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, 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, Ro(s !== void 0 ? s : a, { owner: e })); - } - } - for (const o in r) - t[o] === void 0 && e.removeValue(o); - return t; -} -const Dh = /* @__PURE__ */ new WeakMap(), ib = Object.keys(Wa), HI = ib.length, Mh = [ - "AnimationStart", - "AnimationComplete", - "Update", - "BeforeLayoutMeasure", - "LayoutMeasure", - "LayoutAnimationStart", - "LayoutAnimationComplete" -], YI = Zu.length; -class GI { - 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 = Zs(r), this.isVariantNode = Wv(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), _s(c) && c.add(d)); - } - } - /** - * This method takes React props and returns found MotionValues. For example, HTML - * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays. - * - * This isn't an abstract method as it needs calling in the constructor, but it is - * intended to be one. - */ - scrapeMotionValuesFromProps(t, r) { - return {}; - } - mount(t) { - this.current = t, Dh.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)), ab.current || WI(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : iu.current, process.env.NODE_ENV !== "production" && md(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() { - Dh.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) - this.features[t].unmount(); - this.current = null; - } - bindToMotionValue(t, r) { - const n = Gn.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, () => { - o(), a(); - }); - } - sortNodePosition(t) { - return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current); - } - loadFeatures({ children: t, ...r }, n, o, a) { - let i, s; - if (process.env.NODE_ENV !== "production" && o && n) { - 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 < HI; l++) { - const c = ib[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) { - this.projection = new i(this.latestValues, this.parent && this.parent.projection); - const { layoutId: l, layout: c, drag: u, dragConstraints: d, layoutScroll: f, layoutRoot: p } = r; - this.projection.setOptions({ - layoutId: l, - layout: c, - alwaysMeasureLayout: !!u || d && co(d), - visualElement: this, - scheduleRender: () => this.scheduleRender(), - /** - * TODO: Update options in an effect. This could be tricky as it'll be too late - * to update by the time layout animations run. - * We also need to fix this safeToRemove by linking it up to the one returned by usePresence, - * ensuring it gets called if there's no potential layout animations. - * - */ - animationType: typeof c == "string" ? c : "both", - initialPromotionConfig: a, - layoutScroll: f, - layoutRoot: p - }); - } - return s; - } - updateFeatures() { - for (const t in this.features) { - const r = this.features[t]; - r.isMounted ? r.update() : (r.mount(), r.isMounted = !0); - } - } - triggerBuild() { - this.build(this.renderState, this.latestValues, this.options, this.props); - } - /** - * Measure the current viewport box with or without transforms. - * Only measures axis-aligned boxes, rotate and skew must be manually - * removed with a re-render to work. - */ - measureViewportBox() { - return this.current ? this.measureInstanceViewportBox(this.current, this.props) : mt(); - } - getStaticValue(t) { - return this.latestValues[t]; - } - setStaticValue(t, r) { - this.latestValues[t] = r; - } - /** - * Make a target animatable by Popmotion. For instance, if we're - * trying to animate width from 100px to 100vw we need to measure 100vw - * in pixels to determine what we really need to animate to. This is also - * pluggable to support Framer's custom value types like Color, - * and CSS variables. - */ - makeTargetAnimatable(t, r = !0) { - return this.makeTargetAnimatableFromInstance(t, this.props, r); - } - /** - * Update the provided props. Ensure any newly-added motion values are - * added to our map, old ones removed, and listeners updated. - */ - 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 < Mh.length; n++) { - const o = Mh[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 = UI(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(); - } - getProps() { - return this.props; - } - /** - * Returns the variant definition with a given name. - */ - getVariant(t) { - return this.props.variants ? this.props.variants[t] : void 0; - } - /** - * Returns the defined default transition on this component. - */ - getDefaultTransition() { - return this.props.transition; - } - getTransformPagePoint() { - return this.props.transformPagePoint; - } - getClosestVariantNode() { - return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0; - } - getVariantContext(t = !1) { - if (t) - return this.parent ? this.parent.getVariantContext() : void 0; - if (!this.isControllingVariants) { - const n = this.parent ? this.parent.getVariantContext() || {} : {}; - return this.props.initial !== void 0 && (n.initial = this.props.initial), n; - } - const r = {}; - for (let n = 0; n < YI; n++) { - const o = Zu[n], a = this.props[o]; - (La(a) || a === !1) && (r[o] = a); - } - return r; - } - /** - * Add a child visual element to our set of children. - */ - addVariantChild(t) { - const r = this.getClosestVariantNode(); - if (r) - return r.variantChildren && r.variantChildren.add(t), () => r.variantChildren.delete(t); - } - /** - * Add a motion value and bind it to this visual element. - */ - addValue(t, r) { - r !== this.values.get(t) && (this.removeValue(t), this.bindToMotionValue(t, r)), this.values.set(t, r), this.latestValues[t] = r.get(); - } - /** - * Remove a motion value and unbind any active subscriptions. - */ - removeValue(t) { - this.values.delete(t); - const r = this.valueSubscriptions.get(t); - r && (r(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState); - } - /** - * Check whether we have a motion value for this key - */ - hasValue(t) { - return this.values.has(t); - } - getValue(t, r) { - 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 = Ro(r, { owner: this }), this.addValue(t, n)), n; - } - /** - * If we're trying to animate to a previously unencountered value, - * we need to check for it in our state and as a last resort read it - * directly from the instance (which might have performance implications). - */ - readValue(t) { - return this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.readValueFromInstance(this.current, t, this.options); - } - /** - * Set the base target to later animate back to. This is currently - * only hydrated on creation and when we first read a value. - */ - setBaseTarget(t, r) { - this.baseTarget[t] = r; - } - /** - * Find the base target for a value thats been removed from all animation - * props. - */ - getBaseTarget(t) { - var r; - const { initial: n } = this.props, o = typeof n == "string" || typeof n == "object" ? (r = id(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 hd()), this.events[t].add(r); - } - notify(t, ...r) { - this.events[t] && this.events[t].notify(...r); - } -} -class sb extends GI { - sortInstanceNodePosition(t, r) { - return t.compareDocumentPosition(r) & 2 ? 1 : -1; - } - getBaseTargetFromProps(t, r) { - return t.style ? t.style[r] : void 0; - } - removeValueFromRenderState(t, { vars: r, style: n }) { - delete r[t], delete n[t]; - } - makeTargetAnimatableFromInstance({ transition: t, transitionEnd: r, ...n }, { transformValues: o }, a) { - let i = fM(n, t || {}, this); - if (o && (r && (r = o(r)), n && (n = o(n)), i && (i = o(i))), a) { - uM(this, n, i); - const s = LI(this, n, i, r); - r = s.transitionEnd, n = s.target; - } - return { - transition: t, - transitionEnd: r, - ...n - }; - } -} -function qI(e) { - return window.getComputedStyle(e); -} -class XI extends sb { - readValueFromInstance(t, r) { - if (Gn.has(r)) { - const n = ud(r); - return n && n.default || 0; - } else { - const n = qI(t), o = (Gv(r) ? n.getPropertyValue(r) : n[r]) || 0; - return typeof o == "string" ? o.trim() : o; - } - } - measureInstanceViewportBox(t, { transformPagePoint: r }) { - return Xg(t, r); - } - build(t, r, n, o) { - ed(t, r, n, o.transformTemplate); - } - scrapeMotionValuesFromProps(t, r) { - return ad(t, r); - } - handleChildMotionValue() { - this.childSubscription && (this.childSubscription(), delete this.childSubscription); - const { children: t } = this.props; - Yt(t) && (this.childSubscription = t.on("change", (r) => { - this.current && (this.current.textContent = `${r}`); - })); - } - renderInstance(t, r, n, o) { - Qv(t, r, n, o); - } -} -class KI extends sb { - constructor() { - super(...arguments), this.isSVGTag = !1; - } - getBaseTargetFromProps(t, r) { - return t[r]; - } - readValueFromInstance(t, r) { - if (Gn.has(r)) { - const n = ud(r); - return n && n.default || 0; - } - return r = eg.has(r) ? r : od(r), t.getAttribute(r); - } - measureInstanceViewportBox() { - return mt(); - } - scrapeMotionValuesFromProps(t, r) { - return rg(t, r); - } - build(t, r, n, o) { - rd(t, r, n, this.isSVGTag, o.transformTemplate); - } - renderInstance(t, r, n, o) { - tg(t, r, n, o); - } - mount(t) { - this.isSVGTag = nd(t.tagName), super.mount(t); - } -} -const ZI = (e, t) => Qu(e) ? new KI(t, { enableHardwareAcceleration: !1 }) : new XI(t, { enableHardwareAcceleration: !0 }), JI = { - layout: { - ProjectionNode: nb, - MeasureLayout: Zg - } -}, QI = { - ...EM, - ...X2, - ...AI, - ...JI -}, _n = /* @__PURE__ */ n2((e, t) => $2(e, t, QI, ZI)); -function lb() { - const e = be(!1); - return gs(() => (e.current = !0, () => { - e.current = !1; - }), []), e; -} -function eF() { - const e = lb(), [t, r] = Ye(0), n = G(() => { - e.current && r(t + 1); - }, [t]); - return [G(() => tt.postRender(n), [n]), t]; -} -class tF extends U.Component { - getSnapshotBeforeUpdate(t) { - const r = this.props.childRef.current; - if (r && t.isPresent && !this.props.isPresent) { - const n = this.props.sizeRef.current; - n.height = r.offsetHeight || 0, n.width = r.offsetWidth || 0, n.top = r.offsetTop, n.left = r.offsetLeft; - } - return null; - } - /** - * Required with getSnapshotBeforeUpdate to stop React complaining. - */ - componentDidUpdate() { - } - render() { - return this.props.children; - } -} -function rF({ children: e, isPresent: t }) { - const r = _r(), n = be(null), o = be({ - width: 0, - height: 0, - top: 0, - left: 0 - }); - return gm(() => { - const { width: a, height: i, top: s, left: l } = o.current; - if (t || !n.current || !a || !i) - return; - n.current.dataset.motionPopId = r; - const c = document.createElement("style"); - return document.head.appendChild(c), c.sheet && c.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${a}px !important; - height: ${i}px !important; - top: ${s}px !important; - left: ${l}px !important; - } - `), () => { - document.head.removeChild(c); - }; - }, [t]), U.createElement(tF, { isPresent: t, childRef: n, sizeRef: o }, U.cloneElement(e, { ref: n })); -} -const ac = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: o, presenceAffectsLayout: a, mode: i }) => { - const s = ng(nF), l = _r(), c = gt( - () => ({ - id: l, - initial: t, - isPresent: r, - custom: o, - onExitComplete: (u) => { - s.set(u, !0); - for (const d of s.values()) - if (!d) - return; - n && n(); - }, - register: (u) => (s.set(u, !1), () => s.delete(u)) - }), - /** - * If the presence of a child affects the layout of the components around it, - * we want to make a new context value to ensure they get re-rendered - * so they can detect that layout change. - */ - a ? void 0 : [r] - ); - return gt(() => { - s.forEach((u, d) => s.set(d, !1)); - }, [r]), U.useEffect(() => { - !r && !s.size && n && n(); - }, [r]), i === "popLayout" && (e = U.createElement(rF, { isPresent: r }, e)), U.createElement(ri.Provider, { value: c }, e); -}; -function nF() { - return /* @__PURE__ */ new Map(); -} -function oF(e) { - return Fe(() => () => e(), []); -} -const ro = (e) => e.key || ""; -function aF(e, t) { - e.forEach((r) => { - const n = ro(r); - t.set(n, r); - }); -} -function iF(e) { - const t = []; - return Ds.forEach(e, (r) => { - wu(r) && t.push(r); - }), t; -} -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(Ju).forceRender || eF()[0], l = lb(), c = iF(e); - let u = c; - const d = be(/* @__PURE__ */ new Map()).current, f = be(u), p = be(/* @__PURE__ */ new Map()).current, m = be(!0); - if (gs(() => { - m.current = !1, aF(c, p), f.current = u; - }), oF(() => { - m.current = !0, p.clear(), d.clear(); - }), m.current) - return U.createElement(U.Fragment, null, u.map((y) => U.createElement(ac, { key: ro(y), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: a, mode: i }, y))); - u = [...u]; - 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); - } - return i === "wait" && d.size && (u = []), d.forEach((y, S) => { - if (v.indexOf(S) !== -1) - return; - const _ = p.get(S); - if (!_) - return; - const w = h.indexOf(S); - let M = y; - if (!M) { - const P = () => { - p.delete(S), d.delete(S); - const I = f.current.findIndex((z) => z.key === S); - if (f.current.splice(I, 1), !d.size) { - if (f.current = c, l.current === !1) - return; - s(), n && n(); - } - }; - M = U.createElement(ac, { 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(ac, { 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 Ih = { - path: /* @__PURE__ */ L.jsxs("g", { stroke: "currentColor", strokeWidth: "1.5", children: [ - /* @__PURE__ */ L.jsx( - "path", - { - strokeLinecap: "round", - fill: "none", - d: "M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25" - } - ), - /* @__PURE__ */ L.jsx( - "path", - { - fill: "currentColor", - strokeLinecap: "round", - d: "M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0" - } - ), - /* @__PURE__ */ L.jsx("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" }) - ] }), - viewBox: "0 0 24 24" -}, vd = _e((e, t) => { - const { - as: r, - viewBox: n, - color: o = "currentColor", - focusable: a = !1, - children: i, - className: s, - __css: l, - ...c - } = e, u = Xe("chakra-icon", s), d = jo("Icon", e), f = { - w: "1em", - h: "1em", - display: "inline-block", - lineHeight: "1em", - flexShrink: 0, - color: o, - ...l, - ...d - }, p = { - ref: t, - focusable: a, - className: u, - __css: f - }, m = n ?? Ih.viewBox; - if (r && typeof r != "string") - return /* @__PURE__ */ L.jsx(ge.svg, { as: r, ...p, ...c }); - const h = i ?? Ih.path; - return /* @__PURE__ */ L.jsx(ge.svg, { verticalAlign: "middle", viewBox: m, ...p, ...c, children: h }); -}); -vd.displayName = "Icon"; -var sF = l_({ - "0%": { - transform: "rotate(0deg)" - }, - "100%": { - transform: "rotate(360deg)" - } -}), lF = _e((e, t) => { - const r = jo("Spinner", e), { - label: n = "Loading...", - thickness: o = "2px", - speed: a = "0.45s", - emptyColor: i = "transparent", - className: s, - ...l - } = Br(e), c = Xe("chakra-spinner", s), u = { - display: "inline-block", - borderColor: "currentColor", - borderStyle: "solid", - borderRadius: "99999px", - borderWidth: o, - borderBottomColor: i, - borderLeftColor: i, - animation: `${sF} ${a} linear infinite`, - ...r - }; - return /* @__PURE__ */ L.jsx( - ge.div, - { - ref: t, - __css: u, - className: c, - ...l, - children: n && /* @__PURE__ */ L.jsx(ge.span, { srOnly: !0, children: n }) - } - ); -}); -lF.displayName = "Spinner"; -function cF(e) { - return /* @__PURE__ */ L.jsx(vd, { focusable: "false", "aria-hidden": !0, ...e, children: /* @__PURE__ */ L.jsx( - "path", - { - fill: "currentColor", - d: "M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z" - } - ) }); -} -var cb = _e( - function(t, r) { - const n = jo("CloseButton", t), { children: o, isDisabled: a, __css: i, ...s } = Br(t), l = { - outline: 0, - display: "flex", - alignItems: "center", - justifyContent: "center", - flexShrink: 0 - }; - return /* @__PURE__ */ L.jsx( - ge.button, - { - type: "button", - "aria-label": "Close", - ref: r, - disabled: a, - __css: { - ...l, - ...n, - ...i - }, - ...s, - children: o || /* @__PURE__ */ L.jsx(cF, { width: "1em", height: "1em" }) - } - ); - } -); -cb.displayName = "CloseButton"; -var uF = Object.defineProperty, dF = (e, t, r) => t in e ? uF(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t, r) => (dF(e, typeof t != "symbol" ? t + "" : t, r), r); -function Fh(e) { - return e.sort((t, r) => { - const n = t.compareDocumentPosition(r); - if (n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY) - return -1; - if (n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS) - return 1; - if (n & Node.DOCUMENT_POSITION_DISCONNECTED || n & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC) - throw Error("Cannot sort the given nodes."); - return 0; - }); -} -var fF = (e) => typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; -function Nh(e, t, r) { - let n = e + 1; - return r && n >= t && (n = 0), n; -} -function jh(e, t, r) { - let n = e - 1; - return r && n < 0 && (n = t), n; -} -var su = typeof window < "u" ? $s : Fe, Es = (e) => e, pF = class { - constructor() { - ut(this, "descendants", /* @__PURE__ */ new Map()), ut(this, "register", (e) => { - if (e != null) - return fF(e) ? this.registerNode(e) : (t) => { - this.registerNode(t, e); - }; - }), ut(this, "unregister", (e) => { - this.descendants.delete(e); - const t = Fh(Array.from(this.descendants.keys())); - this.assignIndex(t); - }), ut(this, "destroy", () => { - this.descendants.clear(); - }), ut(this, "assignIndex", (e) => { - this.descendants.forEach((t) => { - const r = e.indexOf(t.node); - t.index = r, t.node.dataset.index = t.index.toString(); - }); - }), ut(this, "count", () => this.descendants.size), ut(this, "enabledCount", () => this.enabledValues().length), ut(this, "values", () => Array.from(this.descendants.values()).sort((t, r) => t.index - r.index)), ut(this, "enabledValues", () => this.values().filter((e) => !e.disabled)), ut(this, "item", (e) => { - if (this.count() !== 0) - return this.values()[e]; - }), ut(this, "enabledItem", (e) => { - if (this.enabledCount() !== 0) - return this.enabledValues()[e]; - }), ut(this, "first", () => this.item(0)), ut(this, "firstEnabled", () => this.enabledItem(0)), ut(this, "last", () => this.item(this.descendants.size - 1)), ut(this, "lastEnabled", () => { - const e = this.enabledValues().length - 1; - return this.enabledItem(e); - }), ut(this, "indexOf", (e) => { - 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 = Nh(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 = Nh( - n, - this.enabledCount(), - t - ); - return this.enabledItem(o); - }), ut(this, "prev", (e, t = !0) => { - const r = jh(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 = jh( - n, - this.enabledCount() - 1, - t - ); - return this.enabledItem(o); - }), ut(this, "registerNode", (e, t) => { - if (!e || this.descendants.has(e)) - return; - const r = Array.from(this.descendants.keys()).concat(e), n = Fh(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 hF(e, t) { - if (e != null) { - if (typeof e == "function") { - e(t); - return; - } - try { - e.current = t; - } catch { - throw new Error(`Cannot assign value '${t}' to ref '${e}'`); - } - } -} -function St(...e) { - return (t) => { - e.forEach((r) => { - hF(r, t); - }); - }; -} -function HV(...e) { - return gt(() => St(...e), e); -} -function mF() { - const e = be(new pF()); - return su(() => () => e.current.destroy()), e.current; -} -var [vF, ub] = Nt({ - name: "DescendantsProvider", - errorMessage: "useDescendantsContext must be used within DescendantsProvider" -}); -function gF(e) { - const t = ub(), [r, n] = Ye(-1), o = be(null); - su(() => () => { - o.current && t.unregister(o.current); - }, []), su(() => { - if (!o.current) - return; - const i = Number(o.current.dataset.index); - r != i && !Number.isNaN(i) && n(i); - }); - const a = Es(e ? t.register(e) : t.register); - return { - descendants: t, - index: r, - enabledIndex: t.enabledIndexOf(o.current), - register: St(a, o) - }; -} -function bF() { - return [ - Es(vF), - () => Es(ub()), - () => mF(), - (o) => gF(o) - ]; -} -function gd(e) { - const { - value: t, - defaultValue: r, - onChange: n, - shouldUpdate: o = (f, p) => f !== p - } = e, a = Jt(n), i = Jt(o), [s, l] = Ye(r), c = t !== void 0, u = c ? t : s, d = Jt( - (f) => { - const m = typeof f == "function" ? f(u) : f; - i(u, m) && (c || l(m), a(m)); - }, - [c, a, u, i] - ); - return [u, d]; -} -var lu = { - 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] -}, ta = { - scale: { - enter: { scale: 1 }, - exit: { scale: 0.95 } - }, - fade: { - enter: { opacity: 1 }, - exit: { opacity: 0 } - }, - pushLeft: { - enter: { x: "100%" }, - exit: { x: "-30%" } - }, - pushRight: { - enter: { x: "-100%" }, - exit: { x: "30%" } - }, - pushUp: { - enter: { y: "100%" }, - exit: { y: "-30%" } - }, - pushDown: { - enter: { y: "-100%" }, - exit: { y: "30%" } - }, - slideLeft: { - position: { left: 0, top: 0, bottom: 0, width: "100%" }, - enter: { x: 0, y: 0 }, - exit: { x: "-100%", y: 0 } - }, - slideRight: { - position: { right: 0, top: 0, bottom: 0, width: "100%" }, - enter: { x: 0, y: 0 }, - exit: { x: "100%", y: 0 } - }, - slideUp: { - position: { top: 0, left: 0, right: 0, maxWidth: "100vw" }, - enter: { x: 0, y: 0 }, - exit: { x: 0, y: "-100%" } - }, - slideDown: { - position: { bottom: 0, left: 0, right: 0, maxWidth: "100vw" }, - enter: { x: 0, y: 0 }, - exit: { x: 0, y: "100%" } - } -}; -function cu(e) { - var t; - switch ((t = e == null ? void 0 : e.direction) != null ? t : "right") { - case "right": - return ta.slideRight; - case "left": - return ta.slideLeft; - case "bottom": - return ta.slideDown; - case "top": - return ta.slideUp; - default: - return ta.slideRight; - } -} -var Vn = { - enter: { - duration: 0.2, - ease: lu.easeOut - }, - exit: { - duration: 0.1, - ease: lu.easeIn - } -}, Qr = { - enter: (e, t) => ({ - ...e, - delay: typeof t == "number" ? t : t == null ? void 0 : t.enter - }), - exit: (e, t) => ({ - ...e, - delay: typeof t == "number" ? t : t == null ? void 0 : t.exit - }) -}, yF = { - enter: ({ transition: e, transitionEnd: t, delay: r } = {}) => { - var n; - return { - opacity: 1, - transition: (n = e == null ? void 0 : e.enter) != null ? n : Qr.enter(Vn.enter, r), - transitionEnd: t == null ? void 0 : t.enter - }; - }, - exit: ({ transition: e, transitionEnd: t, delay: r } = {}) => { - var n; - return { - opacity: 0, - transition: (n = e == null ? void 0 : e.exit) != null ? n : Qr.exit(Vn.exit, r), - transitionEnd: t == null ? void 0 : t.exit - }; - } -}, db = { - initial: "exit", - animate: "enter", - exit: "exit", - variants: yF -}, xF = At(function(t, r) { - const { - unmountOnExit: n, - in: o, - className: a, - transition: i, - transitionEnd: s, - 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(Vo, { custom: f, children: d && /* @__PURE__ */ L.jsx( - _n.div, - { - ref: r, - className: Xe("chakra-fade", a), - custom: f, - ...db, - animate: u, - ...c - } - ) }); -}); -xF.displayName = "Fade"; -var SF = { - 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 : Qr.exit(Vn.exit, o) - }; - }, - enter: ({ transitionEnd: e, transition: t, delay: r }) => { - var n; - return { - opacity: 1, - scale: 1, - transition: (n = t == null ? void 0 : t.enter) != null ? n : Qr.enter(Vn.enter, r), - transitionEnd: e == null ? void 0 : e.enter - }; - } -}, fb = { - initial: "exit", - animate: "enter", - exit: "exit", - variants: SF -}, wF = At( - function(t, r) { - const { - unmountOnExit: n, - in: o, - reverse: a = !0, - initialScale: i = 0.95, - className: s, - transition: l, - transitionEnd: c, - 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(Vo, { custom: m, children: f && /* @__PURE__ */ L.jsx( - _n.div, - { - ref: r, - className: Xe("chakra-offset-slide", s), - ...fb, - animate: p, - custom: m, - ...d - } - ) }); - } -); -wF.displayName = "ScaleFade"; -var CF = { - 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 : Qr.exit(Vn.exit, o), - transitionEnd: n == null ? void 0 : n.exit - }; - }, - enter: ({ transition: e, transitionEnd: t, delay: r }) => { - var n; - return { - opacity: 1, - x: 0, - y: 0, - transition: (n = e == null ? void 0 : e.enter) != null ? n : Qr.enter(Vn.enter, r), - transitionEnd: t == null ? void 0 : t.enter - }; - }, - exit: ({ offsetY: e, offsetX: t, transition: r, transitionEnd: n, reverse: o, delay: a }) => { - var i; - const s = { x: t, y: e }; - return { - opacity: 0, - 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 } } - }; - } -}, ua = { - initial: "initial", - animate: "enter", - exit: "exit", - variants: CF -}, _F = At( - function(t, r) { - const { - unmountOnExit: n, - in: o, - reverse: a = !0, - className: i, - offsetX: s = 0, - offsetY: l = 8, - transition: c, - transitionEnd: u, - delay: d, - ...f - } = t, p = n ? o && n : !0, m = o || n ? "enter" : "exit", h = { - offsetX: s, - offsetY: l, - reverse: a, - transition: c, - transitionEnd: u, - delay: d - }; - return /* @__PURE__ */ L.jsx(Vo, { custom: h, children: p && /* @__PURE__ */ L.jsx( - _n.div, - { - ref: r, - className: Xe("chakra-offset-slide", i), - custom: h, - ...ua, - animate: m, - ...f - } - ) }); - } -); -_F.displayName = "SlideFade"; -var Bh = { - exit: { - duration: 0.15, - ease: lu.easeInOut - }, - enter: { - type: "spring", - damping: 25, - stiffness: 180 - } -}, kF = { - exit: ({ direction: e, transition: t, transitionEnd: r, delay: n }) => { - var o; - const { exit: a } = cu({ direction: e }); - return { - ...a, - transition: (o = t == null ? void 0 : t.exit) != null ? o : Qr.exit(Bh.exit, n), - transitionEnd: r == null ? void 0 : r.exit - }; - }, - enter: ({ direction: e, transitionEnd: t, transition: r, delay: n }) => { - var o; - const { enter: a } = cu({ direction: e }); - return { - ...a, - transition: (o = r == null ? void 0 : r.enter) != null ? o : Qr.enter(Bh.enter, n), - transitionEnd: t == null ? void 0 : t.enter - }; - } -}, pb = At(function(t, r) { - const { - direction: n = "right", - style: o, - unmountOnExit: a, - in: i, - className: s, - transition: l, - transitionEnd: c, - delay: u, - motionProps: d, - ...f - } = t, p = cu({ 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(Vo, { custom: b, children: h && /* @__PURE__ */ L.jsx( - _n.div, - { - ...f, - ref: r, - initial: "exit", - className: Xe("chakra-slide", s), - animate: v, - exit: "exit", - custom: b, - variants: kF, - style: m, - ...d - } - ) }); -}); -pb.displayName = "Slide"; -function hb(e) { - return Ds.toArray(e).filter( - (t) => wu(t) - ); -} -var [EF, mb] = Nt({ - name: "FormControlStylesContext", - errorMessage: `useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [PF, Lo] = Nt({ - strict: !1, - name: "FormControlContext" -}); -function TF(e) { - const { - id: t, - isRequired: r, - isInvalid: n, - isDisabled: o, - isReadOnly: a, - ...i - } = e, s = _r(), l = t || `field-${s}`, c = `${l}-label`, u = `${l}-feedback`, d = `${l}-helptext`, [f, p] = Ye(!1), [m, h] = Ye(!1), [v, b] = Ye(!1), y = G( - (P = {}, I = null) => ({ - id: d, - ...P, - /** - * Notify the field context when the help text is rendered on screen, - * so we can apply the correct `aria-describedby` to the field (e.g. input, textarea). - */ - ref: St(I, (z) => { - z && h(!0); - }) - }), - [d] - ), S = G( - (P = {}, I = null) => ({ - ...P, - ref: I, - "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] - ), _ = G( - (P = {}, I = null) => ({ - id: u, - ...P, - /** - * Notify the field context when the error message is rendered on screen, - * so we can apply the correct `aria-describedby` to the field (e.g. input, textarea). - */ - ref: St(I, (z) => { - z && p(!0); - }), - "aria-live": "polite" - }), - [u] - ), w = G( - (P = {}, I = null) => ({ - ...P, - ...i, - ref: I, - role: "group", - "data-focus": Ar(v), - "data-disabled": Ar(o), - "data-invalid": Ar(n), - "data-readonly": Ar(a) - }), - [i, o, v, n, a] - ), M = G( - (P = {}, I = null) => ({ - ...P, - ref: I, - role: "presentation", - "aria-hidden": !0, - children: P.children || "*" - }), - [] - ); - return { - isRequired: !!r, - isInvalid: !!n, - isReadOnly: !!a, - isDisabled: !!o, - isFocused: !!v, - onFocus: () => b(!0), - onBlur: () => b(!1), - hasFeedbackText: f, - setHasFeedbackText: p, - hasHelpText: m, - setHasHelpText: h, - id: l, - labelId: c, - feedbackId: u, - helpTextId: d, - htmlProps: i, - getHelpTextProps: y, - getErrorMessageProps: _, - getRootProps: w, - getLabelProps: S, - getRequiredIndicatorProps: M - }; -} -var AF = _e( - function(t, r) { - const n = Bo("Form", t), o = Br(t), { - getRootProps: a, - htmlProps: i, - ...s - } = TF(o), l = Xe("chakra-form-control", t.className); - return /* @__PURE__ */ L.jsx(PF, { value: s, children: /* @__PURE__ */ L.jsx(EF, { value: n, children: /* @__PURE__ */ L.jsx( - ge.div, - { - ...a({}, r), - className: l, - __css: n.container - } - ) }) }); - } -); -AF.displayName = "FormControl"; -var OF = _e( - function(t, r) { - const n = Lo(), o = mb(), a = Xe("chakra-form__helper-text", t.className); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ...n == null ? void 0 : n.getHelpTextProps(t, r), - __css: o.helperText, - className: a - } - ); - } -); -OF.displayName = "FormHelperText"; -var [RF, $F] = Nt({ - name: "FormErrorStylesContext", - errorMessage: `useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), DF = _e( - (e, t) => { - const r = Bo("FormError", e), n = Br(e), o = Lo(); - return o != null && o.isInvalid ? /* @__PURE__ */ L.jsx(RF, { value: r, children: /* @__PURE__ */ L.jsx( - ge.div, - { - ...o == null ? void 0 : o.getErrorMessageProps(n, t), - className: Xe("chakra-form__error-message", e.className), - __css: { - display: "flex", - alignItems: "center", - ...r.text - } - } - ) }) : null; - } -); -DF.displayName = "FormErrorMessage"; -var MF = _e((e, t) => { - const r = $F(), n = Lo(); - if (!(n != null && n.isInvalid)) - return null; - const o = Xe("chakra-form__error-icon", e.className); - return /* @__PURE__ */ L.jsx( - vd, - { - ref: t, - "aria-hidden": !0, - ...e, - __css: r.icon, - className: o, - children: /* @__PURE__ */ L.jsx( - "path", - { - fill: "currentColor", - d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z" - } - ) - } - ); -}); -MF.displayName = "FormErrorIcon"; -var IF = _e(function(t, r) { - var n; - const o = jo("FormLabel", t), a = Br(t), { - className: i, - children: s, - requiredIndicator: l = /* @__PURE__ */ L.jsx(vb, {}), - optionalIndicator: c = null, - ...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, - { - ...f, - className: Xe("chakra-form__label", a.className), - __css: { - display: "block", - textAlign: "start", - ...o - }, - children: [ - s, - d != null && d.isRequired ? l : c - ] - } - ); -}); -IF.displayName = "FormLabel"; -var vb = _e( - function(t, r) { - const n = Lo(), o = mb(); - if (!(n != null && n.isRequired)) - return null; - const a = Xe("chakra-form__required-indicator", t.className); - return /* @__PURE__ */ L.jsx( - ge.span, - { - ...n == null ? void 0 : n.getRequiredIndicatorProps(t, r), - __css: o.requiredIndicator, - className: a - } - ); - } -); -vb.displayName = "RequiredIndicator"; -function YV(e) { - const { isDisabled: t, isInvalid: r, isReadOnly: n, isRequired: o, ...a } = FF(e); - return { - ...a, - disabled: t, - readOnly: n, - required: o, - "aria-invalid": Pl(r), - "aria-required": Pl(o), - "aria-readonly": Pl(n) - }; -} -function FF(e) { - var t, r, n; - const o = Lo(), { - id: a, - disabled: i, - readOnly: s, - required: l, - isRequired: c, - isInvalid: u, - isReadOnly: d, - isDisabled: f, - onFocus: p, - onBlur: m, - ...h - } = e, v = e["aria-describedby"] ? [e["aria-describedby"]] : []; - return o != null && o.hasFeedbackText && (o != null && o.isInvalid) && v.push(o.feedbackId), o != null && o.hasHelpText && v.push(o.helpTextId), { - ...h, - "aria-describedby": v.join(" ") || void 0, - id: a ?? (o == null ? void 0 : o.id), - isDisabled: (t = i ?? f) != null ? t : o == null ? void 0 : o.isDisabled, - 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: $t(o == null ? void 0 : o.onFocus, p), - onBlur: $t(o == null ? void 0 : o.onBlur, m) - }; -} -function NF(e) { - const t = parseFloat(e); - return typeof t != "number" || Number.isNaN(t) ? 0 : t; -} -function jF(e, t) { - let r = NF(e); - const n = 10 ** (t ?? 10); - return r = Math.round(r * n) / n, t ? r.toFixed(t) : r.toString(); -} -function BF(e) { - if (!Number.isFinite(e)) - return 0; - let t = 1, r = 0; - for (; Math.round(e * t) / t !== e; ) - t *= 10, r += 1; - return r; -} -function Ps(e, t, r) { - return (e - t) * 100 / (r - t); -} -function gb(e, t, r) { - return (r - t) * e + t; -} -function uu(e, t, r) { - const n = Math.round((e - t) / r) * r + t, o = BF(r); - return jF(n, o); -} -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 _a(e, t, r, n) { - const o = Jt(r); - return Fe(() => { - const a = typeof e == "function" ? e() : e ?? document; - if (!(!r || !a)) - return a.addEventListener(t, o, n), () => { - a.removeEventListener(t, o, n); - }; - }, [t, e, n, o, r]), () => { - const a = typeof e == "function" ? e() : e ?? document; - a == null || a.removeEventListener(t, o, n); - }; -} -function zF(e, t) { - if (e == null) - return {}; - var r = {}, n = Object.keys(e), o, a; - for (a = 0; a < n.length; a++) - o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]); - return r; -} -var du = { exports: {} }, ic, zh; -function bd() { - if (zh) - return ic; - zh = 1; - var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; - return ic = e, ic; -} -var sc, Vh; -function bb() { - return Vh || (Vh = 1, sc = Function.call.bind(Object.prototype.hasOwnProperty)), sc; -} -var lc, Lh; -function VF() { - if (Lh) - return lc; - Lh = 1; - var e = function() { - }; - if (process.env.NODE_ENV !== "production") { - var t = bd(), r = {}, n = bb(); - e = function(a) { - var i = "Warning: " + a; - typeof console < "u" && console.error(i); - try { - throw new Error(i); - } catch { - } - }; - } - function o(a, i, s, l, c) { - if (process.env.NODE_ENV !== "production") { - for (var u in a) - if (n(a, u)) { - var d; - try { - if (typeof a[u] != "function") { - var f = Error( - (l || "React class") + ": " + s + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." - ); - throw f.name = "Invariant Violation", f; - } - d = a[u](i, u, l, s, null, t); - } catch (m) { - d = m; - } - if (d && !(d instanceof Error) && e( - (l || "React class") + ": type specification of " + s + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." - ), d instanceof Error && !(d.message in r)) { - r[d.message] = !0; - var p = c ? c() : ""; - e( - "Failed " + s + " type: " + d.message + (p ?? "") - ); - } - } - } - } - return o.resetWarningCache = function() { - process.env.NODE_ENV !== "production" && (r = {}); - }, lc = o, lc; -} -var cc, Wh; -function LF() { - if (Wh) - return cc; - Wh = 1; - var e = Tu, t = Pm, r = bd(), n = bb(), o = VF(), a = function() { - }; - process.env.NODE_ENV !== "production" && (a = function(s) { - var l = "Warning: " + s; - typeof console < "u" && console.error(l); - try { - throw new Error(l); - } catch { - } - }); - function i() { - return null; - } - return cc = function(s, l) { - var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator"; - function d(F) { - var N = F && (c && F[c] || F[u]); - if (typeof N == "function") - return N; - } - var f = "<>", p = { - array: b("array"), - bigint: b("bigint"), - bool: b("boolean"), - func: b("function"), - number: b("number"), - object: b("object"), - string: b("string"), - symbol: b("symbol"), - any: y(), - arrayOf: S, - element: _(), - elementType: w(), - instanceOf: M, - node: j(), - objectOf: I, - oneOf: P, - oneOfType: z, - shape: ne, - exact: J - }; - function m(F, N) { - return F === N ? F !== 0 || 1 / F === 1 / N : F !== F && N !== N; - } - function h(F, N) { - this.message = F, this.data = N && typeof N == "object" ? N : {}, this.stack = ""; - } - h.prototype = Error.prototype; - function v(F) { - if (process.env.NODE_ENV !== "production") - var N = {}, V = 0; - function T(B, C, H, O, Z, Y, ae) { - if (O = O || f, Y = Y || H, ae !== r) { - if (l) { - 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 R.name = "Invariant Violation", R; - } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { - 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 `" + 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 `" + 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 A = T.bind(null, !1); - return A.isRequired = T.bind(null, !0), A; - } - function b(F) { - function N(V, T, A, B, C, H) { - var O = V[T], Z = oe(O); - if (Z !== F) { - var Y = D(O); - return new h( - "Invalid " + B + " `" + C + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected ") + ("`" + F + "`."), - { expectedType: F } - ); - } - return null; - } - return v(N); - } - function y() { - return v(i); - } - function S(F) { - function N(V, T, A, B, C) { - if (typeof F != "function") - return new h("Property `" + C + "` of component `" + A + "` has invalid PropType notation inside arrayOf."); - var H = V[T]; - if (!Array.isArray(H)) { - 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, A, B, C + "[" + Z + "]", r); - if (Y instanceof Error) - return Y; - } - return null; - } - return v(N); - } - function _() { - function F(N, V, T, A, B) { - var C = N[V]; - if (!s(C)) { - var H = oe(C); - 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, A, B) { - var C = N[V]; - if (!e.isValidElementType(C)) { - var H = oe(C); - 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, A, B, C) { - if (!(V[T] instanceof F)) { - 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; - } - return v(N); - } - function P(F) { - if (!Array.isArray(F)) - 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, 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, R) { - var Se = D(R); - return Se === "symbol" ? String(R) : R; - }); - 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, A, B, C) { - if (typeof F != "function") - 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, A, B, C + "." + Z, r); - if (Y instanceof Error) - return Y; - } - return null; - } - return v(N); - } - function z(F) { - if (!Array.isArray(F)) - return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i; - for (var N = 0; N < F.length; N++) { - var V = F[N]; - if (typeof V != "function") - return a( - "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(V) + " at index " + N + "." - ), i; - } - function T(A, B, C, H, O) { - for (var Z = [], Y = 0; Y < F.length; Y++) { - var ae = F[Y], R = ae(A, B, C, H, O, r); - if (R == null) - return null; - 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 + " `" + O + "` supplied to " + ("`" + C + "`" + Se + ".")); - } - return v(T); - } - function j() { - 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, 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 `" + A + "`." - ); - } - function ne(F) { - 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(A, B, C, Z, D(Y)); - var ae = Y(H, Z, A, B, C + "." + Z, r); - if (ae) - return ae; - } - return null; - } - return v(N); - } - function J(F) { - 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(A, B, C, Y, D(ae)); - if (!ae) - return new h( - "Invalid " + B + " `" + C + "` key `" + Y + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(V[T], null, " ") + ` -Valid keys: ` + JSON.stringify(Object.keys(F), null, " ") - ); - var R = ae(H, Y, A, B, C + "." + Y, r); - if (R) - return R; - } - return null; - } - return v(N); - } - function Q(F) { - switch (typeof F) { - case "number": - case "string": - case "undefined": - return !0; - case "boolean": - return !F; - case "object": - if (Array.isArray(F)) - return F.every(Q); - if (F === null || s(F)) - return !0; - var N = d(F); - if (N) { - var V = N.call(F), T; - if (N !== F.entries) { - for (; !(T = V.next()).done; ) - if (!Q(T.value)) - return !1; - } else - for (; !(T = V.next()).done; ) { - var A = T.value; - if (A && !Q(A[1])) - return !1; - } - } else - return !1; - return !0; - default: - return !1; - } - } - function ee(F, N) { - return F === "symbol" ? !0 : N ? N["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && N instanceof Symbol : !1; - } - function oe(F) { - var N = typeof F; - return Array.isArray(F) ? "array" : F instanceof RegExp ? "object" : ee(N, F) ? "symbol" : N; - } - function D(F) { - if (typeof F > "u" || F === null) - return "" + F; - var N = oe(F); - if (N === "object") { - if (F instanceof Date) - return "date"; - if (F instanceof RegExp) - return "regexp"; - } - return N; - } - function ce(F) { - var N = D(F); - switch (N) { - case "array": - case "object": - return "an " + N; - case "boolean": - case "date": - case "regexp": - return "a " + N; - default: - return N; - } - } - function fe(F) { - return !F.constructor || !F.constructor.name ? f : F.constructor.name; - } - return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p; - }, cc; -} -var uc, Uh; -function WF() { - if (Uh) - return uc; - Uh = 1; - var e = bd(); - function t() { - } - function r() { - } - return r.resetWarningCache = t, uc = function() { - function n(i, s, l, c, u, d) { - if (d !== e) { - var f = 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 f.name = "Invariant Violation", f; - } - } - n.isRequired = n; - function o() { - return n; - } - var a = { - array: n, - bigint: n, - bool: n, - func: n, - number: n, - object: n, - string: n, - symbol: n, - any: n, - arrayOf: o, - element: n, - elementType: n, - instanceOf: o, - node: n, - objectOf: o, - oneOf: o, - oneOfType: o, - shape: o, - exact: o, - checkPropTypes: r, - resetWarningCache: t - }; - return a.PropTypes = a, a; - }, uc; -} -if (process.env.NODE_ENV !== "production") { - var UF = Tu, HF = !0; - du.exports = LF()(UF.isElement, HF); -} else - du.exports = WF()(); -var qe = du.exports; -const yb = /* @__PURE__ */ Ms(qe); -var fu = "data-focus-lock", xb = "data-focus-lock-disabled", YF = "data-no-focus-lock", GF = "data-autofocus-inside", qF = "data-no-autofocus"; -function XF(e, t) { - return typeof e == "function" ? e(t) : e && (e.current = t), e; -} -function KF(e, t) { - var r = Ye(function() { - return { - // value - value: e, - // last callback - callback: t, - // "memoized" public interface - facade: { - get current() { - return r.value; - }, - set current(n) { - var o = r.value; - o !== n && (r.value = n, r.callback(n, o)); - } - } - }; - })[0]; - return r.callback = t, r.facade; -} -function Sb(e, t) { - return KF(t || null, function(r) { - return e.forEach(function(n) { - return XF(n, r); - }); - }); -} -var dc = { - width: "1px", - height: "0px", - padding: 0, - overflow: "hidden", - position: "fixed", - top: "1px", - left: "1px" -}; -process.env.NODE_ENV !== "production" && yb.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; - }, Dr.apply(this, arguments); -}; -function wb(e, t) { - var r = {}; - for (var n in e) - Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); - if (e != null && typeof Object.getOwnPropertySymbols == "function") - for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++) - t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]); - return r; -} -function ZF(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 Cb(e) { - return e; -} -function _b(e, t) { - t === void 0 && (t = Cb); - var r = [], n = !1, o = { - read: function() { - if (n) - throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`."); - return r.length ? r[r.length - 1] : e; - }, - useMedium: function(a) { - var i = t(a, n); - return r.push(i), function() { - r = r.filter(function(s) { - return s !== i; - }); - }; - }, - assignSyncMedium: function(a) { - for (n = !0; r.length; ) { - var i = r; - r = [], i.forEach(a); - } - r = { - push: function(s) { - return a(s); - }, - filter: function() { - return r; - } - }; - }, - assignMedium: function(a) { - n = !0; - var i = []; - if (r.length) { - var s = r; - r = [], s.forEach(a), i = r; - } - var l = function() { - var u = i; - i = [], u.forEach(a); - }, c = function() { - return Promise.resolve().then(l); - }; - c(), r = { - push: function(u) { - i.push(u), c(); - }, - filter: function(u) { - return i = i.filter(u), r; - } - }; - } - }; - return o; -} -function yd(e, t) { - return t === void 0 && (t = Cb), _b(e, t); -} -function kb(e) { - e === void 0 && (e = {}); - var t = _b(null); - return t.options = Dr({ async: !0, ssr: !1 }, e), t; -} -var Eb = function(e) { - var t = e.sideCar, r = wb(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, Dr({}, r)); -}; -Eb.isSideCarExport = !0; -function JF(e, t) { - return e.useMedium(t), Eb; -} -var Pb = yd({}, function(e) { - var t = e.target, r = e.currentTarget; - return { - target: t, - currentTarget: r - }; -}), Tb = yd(), QF = yd(), e5 = kb({ - async: !0 - // focus-lock sidecar is not required on the server - // however, it might be required for JSDOM tests - // ssr: true, -}), t5 = [], xd = /* @__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 ? t5 : 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); - }, [ee]); - Fe(function() { - d || (c.current = null); - }, []); - 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, O ? Promise.resolve().then(function() { - return Z.focus(ae); - }) : Z.focus(ae); - } - } - }, [ne]), N = U.useCallback(function(O) { - l.current && Pb.useMedium(O); - }, []), V = Tb.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 A = Wn((n = {}, n[xb] = d && "disabled", n[fu] = b, n), j), B = f !== !0, C = B && f !== "tail", H = Sb([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: dc - }), - // first tabbed element guard - _ ? /* @__PURE__ */ U.createElement("div", { - key: "guard-nearest", - "data-focus-guard": !0, - tabIndex: d ? -1 : 1, - style: dc - }) : null - ], !d && /* @__PURE__ */ U.createElement(X, { - id: D, - sideCar: e5, - observed: a, - disabled: d, - persistentFocus: p, - crossFrame: m, - autoFocus: h, - whiteList: S, - shards: M, - onActivation: ce, - onDeactivation: fe, - returnFocus: F, - focusOptions: J - }), /* @__PURE__ */ U.createElement(I, Wn({ - ref: H - }, A, { - className: y, - onBlur: V, - onFocus: N - }), u), C && /* @__PURE__ */ U.createElement("div", { - "data-focus-guard": !0, - tabIndex: d ? -1 : 0, - style: dc - })); -}); -xd.propTypes = process.env.NODE_ENV !== "production" ? { - children: qe.node, - disabled: qe.bool, - returnFocus: qe.oneOfType([qe.bool, qe.object, qe.func]), - focusOptions: qe.object, - noFocusGuards: qe.bool, - hasPositiveIndices: qe.bool, - allowTextSelection: qe.bool, - autoFocus: qe.bool, - persistentFocus: qe.bool, - crossFrame: qe.bool, - group: qe.string, - className: qe.string, - whiteList: qe.func, - shards: qe.arrayOf(qe.any), - as: qe.oneOfType([qe.string, qe.func, qe.object]), - lockProps: qe.object, - onActivation: qe.func, - onDeactivation: qe.func, - sideCar: qe.any.isRequired -} : {}; -xd.defaultProps = { - children: void 0, - disabled: !1, - returnFocus: !1, - focusOptions: void 0, - noFocusGuards: !1, - autoFocus: !0, - persistentFocus: !1, - crossFrame: !0, - hasPositiveIndices: void 0, - allowTextSelection: void 0, - group: void 0, - className: void 0, - whiteList: void 0, - shards: void 0, - as: "div", - lockProps: {}, - onActivation: void 0, - onDeactivation: void 0 -}; -const Ab = xd; -function r5(e, t) { - if (process.env.NODE_ENV !== "production") { - if (typeof e != "function") - throw new Error("Expected reducePropsToState to be a function."); - if (typeof t != "function") - throw new Error("Expected handleStateChangeOnClient to be a function."); - } - function r(n) { - return n.displayName || n.name || "Component"; - } - return function(o) { - if (process.env.NODE_ENV !== "production" && typeof o != "function") - throw new Error("Expected WrappedComponent to be a React component."); - var a = [], i; - function s() { - i = e(a.map(function(c) { - return c.props; - })), t(i); - } - var l = /* @__PURE__ */ function(c) { - P0(u, c); - function u() { - return c.apply(this, arguments) || this; - } - u.peek = function() { - return i; - }; - var d = u.prototype; - return d.componentDidMount = function() { - a.push(this), s(); - }, d.componentDidUpdate = function() { - s(); - }, d.componentWillUnmount = function() { - var p = a.indexOf(this); - a.splice(p, 1), s(); - }, d.render = function() { - return /* @__PURE__ */ It.createElement(o, this.props); - }, u; - }(S0); - return Cu(l, "displayName", "SideEffect(" + r(o) + ")"), l; - }; -} -var zr = function(e) { - for (var t = Array(e.length), r = 0; r < e.length; ++r) - t[r] = e[r]; - return t; -}, Ts = function(e) { - return Array.isArray(e) ? e : [e]; -}, Ob = function(e) { - return Array.isArray(e) ? e[0] : e; -}, n5 = 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"; -}, Rb = 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; -}, $b = function(e) { - return e === document || e && e.nodeType === Node.DOCUMENT_NODE; -}, o5 = function(e, t) { - return !e || $b(e) || !n5(e) && t(Rb(e)); -}, Db = function(e, t) { - var r = e.get(t); - if (r !== void 0) - return r; - var n = o5(t, Db.bind(void 0, e)); - return e.set(t, n), n; -}, a5 = function(e, t) { - return e && !$b(e) ? l5(e) ? t(Rb(e)) : !1 : !0; -}, Mb = function(e, t) { - var r = e.get(t); - if (r !== void 0) - return r; - var n = a5(t, Mb.bind(void 0, e)); - return e.set(t, n), n; -}, Ib = function(e) { - return e.dataset; -}, i5 = function(e) { - return e.tagName === "BUTTON"; -}, Fb = function(e) { - return e.tagName === "INPUT"; -}, Nb = function(e) { - return Fb(e) && e.type === "radio"; -}, s5 = function(e) { - return !((Fb(e) || i5(e)) && (e.type === "hidden" || e.disabled)); -}, l5 = function(e) { - var t = e.getAttribute(qF); - return ![!0, "true", ""].includes(t); -}, Sd = function(e) { - var t; - return !!(e && (!((t = Ib(e)) === null || t === void 0) && t.focusGuard)); -}, As = function(e) { - return !Sd(e); -}, c5 = function(e) { - return !!e; -}, u5 = function(e, t) { - var r = e.tabIndex - t.tabIndex, n = e.index - t.index; - if (r) { - if (!e.tabIndex) - return 1; - if (!t.tabIndex) - return -1; - } - return r || n; -}, jb = function(e, t, r) { - return zr(e).map(function(n, o) { - return { - node: n, - index: o, - tabIndex: r && n.tabIndex === -1 ? (n.dataset || {}).focusGuard ? 0 : -1 : n.tabIndex - }; - }).filter(function(n) { - return !t || n.tabIndex >= 0; - }).sort(u5); -}, d5 = [ - "button:enabled", - "select:enabled", - "textarea:enabled", - "input:enabled", - // elements with explicit roles will also use explicit tabindex - // '[role="button"]', - "a[href]", - "area[href]", - "summary", - "iframe", - "object", - "embed", - "audio[controls]", - "video[controls]", - "[tabindex]", - "[contenteditable]", - "[autofocus]" -], wd = d5.join(","), f5 = "".concat(wd, ", [data-focus-guard]"), Bb = function(e, t) { - return zr((e.shadowRoot || e).children).reduce(function(r, n) { - return r.concat(n.matches(t ? f5 : wd) ? [n] : [], Bb(n)); - }, []); -}, p5 = function(e, t) { - var r; - 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 = Bb(n, t), i = (o = []).concat.apply(o, a.map(function(s) { - return p5(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 ? zr(n.parentNode.querySelectorAll(wd)).filter(function(s) { - return s === n; - }) : [] - ); - }, []); -}, h5 = function(e) { - var t = e.querySelectorAll("[".concat(GF, "]")); - return zr(t).map(function(r) { - return rl([r]); - }).reduce(function(r, n) { - return r.concat(n); - }, []); -}, Cd = function(e, t) { - return zr(e).filter(function(r) { - return Db(t, r); - }).filter(function(r) { - return s5(r); - }); -}, Hh = function(e, t) { - return t === void 0 && (t = /* @__PURE__ */ new Map()), zr(e).filter(function(r) { - return Mb(t, r); - }); -}, pu = function(e, t, r) { - return jb(Cd(rl(e, r), t), !0, r); -}, Yh = function(e, t) { - return jb(Cd(rl(e), t), !1); -}, m5 = function(e, t) { - return Cd(h5(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 ? wo(o, t) : !1; - } - return wo(r, t); - }); -}, v5 = 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]); - (a & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0 && t.add(o), (a & Node.DOCUMENT_POSITION_CONTAINS) > 0 && t.add(n); - } - return e.filter(function(i, s) { - return !t.has(s); - }); -}, zb = function(e) { - return e.parentNode ? zb(e.parentNode) : e; -}, _d = function(e) { - var t = Ts(e); - return t.filter(Boolean).reduce(function(r, n) { - var o = n.getAttribute(fu); - return r.push.apply(r, o ? v5(zr(zb(n).querySelectorAll("[".concat(fu, '="').concat(o, '"]:not([').concat(xb, '="disabled"])')))) : [n]), r; - }, []); -}, g5 = function(e) { - try { - return e(); - } catch { - return; - } -}, 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 && g5(function() { - return t.contentWindow.document; - }) ? Ya(t.contentWindow.document) : t; - } -}, b5 = function(e, t) { - return e === t; -}, y5 = function(e, t) { - return !!zr(e.querySelectorAll("iframe")).some(function(r) { - return b5(r, t); - }); -}, Vb = function(e, t) { - return t === void 0 && (t = Ya(Ob(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : _d(e).some(function(r) { - return wo(r, t) || y5(r, t); - }); -}, x5 = function(e) { - e === void 0 && (e = document); - var t = Ya(e); - return t ? zr(e.querySelectorAll("[".concat(YF, "]"))).some(function(r) { - return wo(r, t); - }) : !1; -}, S5 = function(e, t) { - return t.filter(Nb).filter(function(r) { - return r.name === e.name; - }).filter(function(r) { - return r.checked; - })[0] || e; -}, kd = function(e, t) { - return Nb(e) && e.name ? S5(e, t) : e; -}, w5 = function(e) { - var t = /* @__PURE__ */ new Set(); - return e.forEach(function(r) { - return t.add(kd(r, e)); - }), e.filter(function(r) { - return t.has(r); - }); -}, Gh = function(e) { - return e[0] && e.length > 1 ? kd(e[0], e) : e[0]; -}, qh = function(e, t) { - return e.length > 1 ? e.indexOf(kd(e[t], e)) : t; -}, Lb = "NEW_FOCUS", C5 = function(e, t, r, n) { - var o = e.length, a = e[0], i = e[o - 1], s = Sd(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 = w5(t), h = r !== void 0 ? m.indexOf(r) : -1, v = h - (n ? m.indexOf(n) : l), b = qh(e, 0), y = qh(e, o - 1); - if (l === -1 || u === -1) - return Lb; - if (!d && u >= 0) - return u; - if (l <= f && s && Math.abs(d) > 1) - return y; - if (l >= p && s && Math.abs(d) > 1) - return b; - if (d && Math.abs(v) > 1) - return u; - if (l <= f) - return y; - if (l > p) - return b; - if (d) - return Math.abs(d) > 1 ? u : (o + u + d) % o; - } -}, _5 = function(e) { - return function(t) { - var r, n = (r = Ib(t)) === null || r === void 0 ? void 0 : r.autofocus; - return ( - // @ts-expect-error - t.autofocus || // - n !== void 0 && n !== "false" || // - e.indexOf(t) >= 0 - ); - }; -}, k5 = function(e, t, r) { - var n = e.map(function(a) { - var i = a.node; - return i; - }), o = Hh(n.filter(_5(r))); - return o && o.length ? Gh(o) : Gh(Hh(t)); -}, hu = function(e, t) { - return t === void 0 && (t = []), t.push(e), e.parentNode && hu(e.parentNode.host || e.parentNode, t), t; -}, fc = function(e, t) { - for (var r = hu(e), n = hu(t), o = 0; o < r.length; o += 1) { - var a = r[o]; - if (n.indexOf(a) >= 0) - return a; - } - return !1; -}, Wb = function(e, t, r) { - var n = Ts(e), o = Ts(t), a = n[0], i = !1; - return o.filter(Boolean).forEach(function(s) { - i = fc(i || s, s) || i, r.filter(Boolean).forEach(function(l) { - var c = fc(a, l); - c && (!i || wo(c, i) ? i = c : i = fc(c, i)); - }); - }), i; -}, E5 = function(e, t) { - return e.reduce(function(r, n) { - return r.concat(m5(n, t)); - }, []); -}, P5 = 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(c5); -}, T5 = function(e, t) { - var r = Ya(Ts(e).length > 0 ? document : Ob(e).ownerDocument), n = _d(e).filter(As), o = Wb(r || e, e, n), a = /* @__PURE__ */ new Map(), i = Yh(n, a), s = pu(n, a).filter(function(p) { - var m = p.node; - return As(m); - }); - if (!(!s[0] && (s = i, !s[0]))) { - var l = Yh([o], a).map(function(p) { - var m = p.node; - return m; - }), c = P5(l, s), u = c.map(function(p) { - var m = p.node; - return m; - }), d = C5(u, l, r, t); - if (d === Lb) { - var f = k5(i, u, E5(n, a)); - if (f) - return { node: f }; - console.warn("focus-lock: cannot find any node to move focus into"); - return; - } - return d === void 0 ? d : c[d]; - } -}, A5 = function(e) { - var t = _d(e).filter(As), r = Wb(e, e, t), n = /* @__PURE__ */ new Map(), o = pu([r], n, !0), a = pu(t, n).filter(function(i) { - var s = i.node; - return As(s); - }).map(function(i) { - var s = i.node; - return s; - }); - return o.map(function(i) { - var s = i.node, l = i.index; - return { - node: s, - index: l, - lockItem: a.indexOf(s) >= 0, - guard: Sd(s) - }; - }); -}, O5 = function(e, t) { - "focus" in e && e.focus(t), "contentWindow" in e && e.contentWindow && e.contentWindow.focus(); -}, pc = 0, hc = !1, Ub = function(e, t, r) { - r === void 0 && (r = {}); - var n = T5(e, t); - if (!hc && n) { - if (pc > 2) { - console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), hc = !0, setTimeout(function() { - hc = !1; - }, 1); - return; - } - pc++, O5(n.node, r.focusOptions), pc--; - } -}; -function Hb(e) { - var t = window, r = t.setImmediate; - typeof r < "u" ? r(e) : setTimeout(e, 1); -} -var R5 = function() { - return document && document.activeElement === document.body; -}, $5 = function() { - return R5() || x5(); -}, Co = null, ho = null, _o = null, Ga = !1, D5 = function() { - return !0; -}, M5 = function(t) { - return (Co.whiteList || D5)(t); -}, I5 = function(t, r) { - _o = { - observerNode: t, - portaledElement: r - }; -}, F5 = function(t) { - return _o && _o.portaledElement === t; -}; -function Xh(e, t, r, n) { - var o = null, a = e; - do { - var i = n[a]; - if (i.guard) - i.node.dataset.focusAutoGuard && (o = i); - else if (i.lockItem) { - if (a !== e) - return; - o = null; - } else - break; - } while ((a += r) !== t); - o && (o.node.tabIndex = 0); -} -var N5 = function(t) { - return t && "current" in t ? t.current : t; -}, j5 = function(t) { - return t ? !!Ga : Ga === "meanwhile"; -}, B5 = 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)); -}, z5 = function(t, r) { - return r.some(function(n) { - return B5(t, n, n); - }); -}, Os = function() { - var t = !1; - 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(N5).filter(Boolean)); - if ((!u || M5(u)) && (o || j5(s) || !$5() || !ho && a) && (c && !// active element is "inside" working area - (Vb(d) || // check for shadow-dom contained elements - u && z5(u, d) || F5(u)) && (document && !ho && u && !a ? (u.blur && u.blur(), document.body.focus()) : (t = Ub(d, ho, { - focusOptions: l - }), _o = {})), Ga = !1, ho = document && document.activeElement), document) { - var f = document && document.activeElement, p = A5(d), m = p.map(function(h) { - var v = h.node; - return v; - }).indexOf(f); - m > -1 && (p.filter(function(h) { - var v = h.guard, b = h.node; - return v && b.dataset.focusAutoGuard; - }).forEach(function(h) { - var v = h.node; - return v.removeAttribute("tabIndex"); - }), Xh(m, p.length, 1, p), Xh(m, -1, -1, p)); - } - } - } - return t; -}, Yb = function(t) { - Os() && t && (t.stopPropagation(), t.preventDefault()); -}, Ed = function() { - return Hb(Os); -}, V5 = function(t) { - var r = t.target, n = t.currentTarget; - n.contains(r) || I5(n, r); -}, L5 = function() { - return null; -}; -process.env.NODE_ENV !== "production" && yb.node.isRequired; -var Gb = function() { - Ga = "just", setTimeout(function() { - Ga = "meanwhile"; - }, 0); -}, W5 = function() { - document.addEventListener("focusin", Yb), document.addEventListener("focusout", Ed), window.addEventListener("blur", Gb); -}, U5 = function() { - document.removeEventListener("focusin", Yb), document.removeEventListener("focusout", Ed), window.removeEventListener("blur", Gb); -}; -function H5(e) { - return e.filter(function(t) { - var r = t.disabled; - return !r; - }); -} -function Y5(e) { - var t = e.slice(-1)[0]; - t && !Co && W5(); - 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 ? (ho = null, (!n || r.observed !== t.observed) && t.onActivation(), Os(), Hb(Os)) : (U5(), ho = null); -} -Pb.assignSyncMedium(V5); -Tb.assignMedium(Ed); -QF.assignMedium(function(e) { - return e({ - moveFocusInside: Ub, - focusInside: Vb - }); -}); -const G5 = r5(H5, Y5)(L5); -var qb = /* @__PURE__ */ U.forwardRef(function(t, r) { - return /* @__PURE__ */ U.createElement(Ab, Wn({ - sideCar: G5, - ref: r - }, t)); -}), Xb = Ab.propTypes || {}; -Xb.sideCar; -var q5 = zF(Xb, ["sideCar"]); -qb.propTypes = process.env.NODE_ENV !== "production" ? q5 : {}; -const Kh = qb; -function Kb(e) { - return e != null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; -} -function Pd(e) { - var t; - if (!Kb(e)) - return !1; - const r = (t = e.ownerDocument.defaultView) != null ? t : window; - return e instanceof r.HTMLElement; -} -function X5(e) { - var t, r; - return (r = (t = Zb(e)) == null ? void 0 : t.defaultView) != null ? r : window; -} -function Zb(e) { - return Kb(e) ? e.ownerDocument : document; -} -function K5(e) { - return Zb(e).activeElement; -} -function Z5(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 J5(e) { - return e.localName === "html" ? e : e.assignedSlot || e.parentElement || e.ownerDocument.documentElement; -} -function Jb(e) { - return ["html", "body", "#document"].includes(e.localName) ? e.ownerDocument.body : Pd(e) && Z5(e) ? e : Jb(J5(e)); -} -var Qb = (e) => e.hasAttribute("tabindex"), Q5 = (e) => Qb(e) && e.tabIndex === -1; -function eN(e) { - return !!e.getAttribute("disabled") || !!e.getAttribute("aria-disabled"); -} -function ey(e) { - return e.parentElement && ey(e.parentElement) ? !0 : e.hidden; -} -function tN(e) { - const t = e.getAttribute("contenteditable"); - return t !== "false" && t != null; -} -function ty(e) { - if (!Pd(e) || ey(e) || eN(e)) - return !1; - const { localName: t } = e; - if (["input", "select", "textarea", "button"].indexOf(t) >= 0) - return !0; - const n = { - a: () => e.hasAttribute("href"), - audio: () => e.hasAttribute("controls"), - video: () => e.hasAttribute("controls") - }; - return t in n ? n[t]() : tN(e) ? !0 : Qb(e); -} -function rN(e) { - return e ? Pd(e) && ty(e) && !Q5(e) : !1; -} -var nN = [ - "input:not(:disabled):not([disabled])", - "select:not(:disabled):not([disabled])", - "textarea:not(:disabled):not([disabled])", - "embed", - "iframe", - "object", - "a[href]", - "area[href]", - "button:not(:disabled):not([disabled])", - "[tabindex]", - "audio[controls]", - "video[controls]", - "*[tabindex]:not([aria-disabled])", - "*[contenteditable]" -], oN = nN.join(), aN = (e) => e.offsetWidth > 0 && e.offsetHeight > 0; -function ry(e) { - const t = Array.from( - e.querySelectorAll(oN) - ); - return t.unshift(e), t.filter((r) => ty(r) && aN(r)); -} -var Zh, iN = (Zh = Kh.default) != null ? Zh : Kh, ny = (e) => { - const { - initialFocusRef: t, - finalFocusRef: r, - contentRef: n, - restoreFocus: o, - children: a, - isDisabled: i, - autoFocus: s, - persistentFocus: l, - lockFocusAcrossFrames: c - } = e, u = G(() => { - t != null && t.current ? t.current.focus() : n != null && n.current && ry(n.current).length === 0 && requestAnimationFrame(() => { - var m; - (m = n.current) == null || m.focus(); - }); - }, [t, n]), d = G(() => { - var p; - (p = r == null ? void 0 : r.current) == null || p.focus(); - }, [r]), f = o && !r; - return /* @__PURE__ */ L.jsx( - iN, - { - crossFrame: c, - persistentFocus: l, - autoFocus: s, - disabled: i, - onActivation: u, - onDeactivation: d, - returnFocus: f, - children: a - } - ); -}; -ny.displayName = "FocusLock"; -var oy = Object.freeze([ - "base", - "sm", - "md", - "lg", - "xl", - "2xl" -]); -function sN(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 lN(e, t = oy) { - const r = {}; - return e.forEach((n, o) => { - const a = t[o]; - n != null && (r[a] = n); - }), r; -} -var ay = (e) => /* @__PURE__ */ L.jsx( - ge.div, - { - className: "chakra-stack__item", - ...e, - __css: { - display: "inline-block", - flex: "0 0 auto", - minWidth: 0, - ...e.__css - } - } -); -ay.displayName = "StackItem"; -function cN(e) { - const { spacing: t, direction: r } = e, n = { - column: { - my: t, - mx: 0, - borderLeftWidth: 0, - borderBottomWidth: "1px" - }, - "column-reverse": { - my: t, - mx: 0, - borderLeftWidth: 0, - borderBottomWidth: "1px" - }, - row: { - mx: t, - my: 0, - borderLeftWidth: "1px", - borderBottomWidth: 0 - }, - "row-reverse": { - mx: t, - my: 0, - borderLeftWidth: "1px", - borderBottomWidth: 0 - } - }; - return { - "&": sN( - r, - (o) => n[o] - ) - }; -} -var iy = _e((e, t) => { - const { - isInline: r, - direction: n, - align: o, - justify: a, - spacing: i = "0.5rem", - wrap: s, - children: l, - divider: c, - className: u, - shouldWrapChildren: d, - ...f - } = e, p = r ? "row" : n ?? "column", m = gt( - () => cN({ spacing: i, direction: p }), - [i, p] - ), h = !!c, v = !d && !h, b = gt(() => { - const S = hb(l); - return v ? S : S.map((_, w) => { - const M = typeof _.key < "u" ? _.key : w, P = w + 1 === S.length, z = d ? /* @__PURE__ */ L.jsx(ay, { children: _ }, M) : _; - if (!h) - return z; - const j = Ka( - c, - { - __css: m - } - ), X = P ? null : j; - return /* @__PURE__ */ L.jsxs(Su, { children: [ - z, - X - ] }, M); - }); - }, [ - c, - m, - h, - v, - d, - l - ]), y = Xe("chakra-stack", u); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ref: t, - display: "flex", - alignItems: o, - justifyContent: a, - flexDirection: p, - flexWrap: s, - gap: h ? void 0 : i, - className: y, - ...f, - children: b - } - ); -}); -iy.displayName = "Stack"; -var uN = _e((e, t) => /* @__PURE__ */ L.jsx(iy, { align: "center", ...e, direction: "row", ref: t })); -uN.displayName = "HStack"; -var sy = ge("div"); -sy.displayName = "Box"; -var ly = _e(function(t, r) { - const { size: n, centerContent: o = !0, ...a } = t, i = o ? { display: "flex", alignItems: "center", justifyContent: "center" } : {}; - return /* @__PURE__ */ L.jsx( - sy, - { - ref: r, - boxSize: n, - __css: { - ...i, - flexShrink: 0, - flexGrow: 0 - }, - ...a - } - ); -}); -ly.displayName = "Square"; -var dN = _e(function(t, r) { - const { size: n, ...o } = t; - return /* @__PURE__ */ L.jsx(ly, { size: n, ref: r, borderRadius: "9999px", ...o }); -}); -dN.displayName = "Circle"; -var fN = _e(function(t, r) { - const { - borderLeftWidth: n, - borderBottomWidth: o, - borderTopWidth: a, - borderRightWidth: i, - borderWidth: s, - borderStyle: l, - borderColor: c, - ...u - } = jo("Divider", t), { - className: d, - orientation: f = "horizontal", - __css: p, - ...m - } = Br(t), h = { - vertical: { - borderLeftWidth: n || i || s || "1px", - height: "100%" - }, - horizontal: { - borderBottomWidth: o || a || s || "1px", - width: "100%" - } - }; - return /* @__PURE__ */ L.jsx( - ge.hr, - { - ref: r, - "aria-orientation": f, - ...m, - __css: { - ...u, - border: "0", - borderColor: c, - borderStyle: l, - ...h[f], - ...p - }, - className: Xe("chakra-divider", d) - } - ); -}); -fN.displayName = "Divider"; -var pN = _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, - alignItems: o, - justifyContent: a, - flexWrap: i, - flexBasis: s, - flexGrow: l, - flexShrink: c - }; - return /* @__PURE__ */ L.jsx(ge.div, { ref: r, __css: d, ...u }); -}); -pN.displayName = "Flex"; -function hN(e, t = {}) { - const { ssr: r = !0, fallback: n } = t, { getWindow: o } = G$(), 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) => ({ - media: c, - matches: r ? !!i[u] : o().matchMedia(c).matches - }))); - return Fe(() => { - const c = o(); - l( - a.map((f) => ({ - media: f, - matches: c.matchMedia(f).matches - })) - ); - const u = a.map((f) => c.matchMedia(f)), d = (f) => { - l((p) => p.slice().map((m) => m.media === f.media ? { ...m, matches: f.matches } : m)); - }; - return u.forEach((f) => { - typeof f.addListener == "function" ? f.addListener(d) : f.addEventListener("change", d); - }), () => { - u.forEach((f) => { - typeof f.removeListener == "function" ? f.removeListener(d) : f.removeEventListener("change", d); - }); - }; - }, [o]), s.map((c) => c.matches); -} -function mN(e, t, r = oy) { - let n = Object.keys(e).indexOf(t); - if (n !== -1) - return e[t]; - let o = r.indexOf(t); - for (; o >= 0; ) { - const a = r[o]; - if (e.hasOwnProperty(a)) { - n = o; - break; - } - o -= 1; - } - if (n !== -1) { - const a = r[n]; - return e[a]; - } -} -function vN(e) { - var t, r; - 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 = hN( - 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 GV(e, t) { - var r; - const n = Lt(t) ? t : { fallback: t ?? "base" }, o = vN(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(lN(e, i)).map( - ([l, c]) => [l, c] - ) - ) : e; - return mN(s, o, i); -} -function gN(e) { - const { key: t } = e; - return t.length === 1 || t.length > 1 && /[^a-zA-Z0-9]/.test(t); -} -function bN(e = {}) { - const { timeout: t = 300, preventDefault: r = () => !0 } = e, [n, o] = Ye([]), a = be(), i = () => { - a.current && (clearTimeout(a.current), a.current = null); - }, s = () => { - i(), a.current = setTimeout(() => { - o([]), a.current = null; - }, t); - }; - Fe(() => i, []); - function l(c) { - return (u) => { - if (u.key === "Backspace") { - const d = [...n]; - d.pop(), o(d); - return; - } - if (gN(u)) { - const d = n.concat(u.key); - r(u) && (u.preventDefault(), u.stopPropagation()), o(d), c(d.join("")), s(); - } - }; - } - return l; -} -function yN(e, t, r, n) { - if (t == null) - return n; - if (!n) - return e.find( - (i) => r(i).toLowerCase().startsWith(t.toLowerCase()) - ); - const o = e.filter( - (a) => r(a).toLowerCase().startsWith(t.toLowerCase()) - ); - if (o.length > 0) { - let a; - return o.includes(n) ? (a = o.indexOf(n) + 1, a === o.length && (a = 0), o[a]) : (a = e.indexOf(o[0]), e[a]); - } - return n; -} -function xN() { - const e = be(/* @__PURE__ */ new Map()), t = e.current, r = G((o, a, i, s) => { - e.current.set(i, { type: a, el: o, options: s }), o.addEventListener(a, i, s); - }, []), n = G( - (o, a, i, s) => { - o.removeEventListener(a, i, s), e.current.delete(i); - }, - [] - ); - return Fe( - () => () => { - t.forEach((o, a) => { - n(o.el, o.type, a, o.options); - }); - }, - [n, t] - ), { add: r, remove: n }; -} -function mc(e) { - const t = e.target, { tagName: r, isContentEditable: n } = t; - return r !== "INPUT" && r !== "TEXTAREA" && n !== !0; -} -function SN(e = {}) { - const { - ref: t, - isDisabled: r, - isFocusable: n, - clickOnEnter: o = !0, - clickOnSpace: a = !0, - onMouseDown: i, - onMouseUp: s, - onClick: l, - onKeyDown: c, - onKeyUp: u, - tabIndex: d, - onMouseOver: f, - onMouseLeave: p, - ...m - } = e, [h, v] = Ye(!0), [b, y] = Ye(!1), S = xN(), _ = (D) => { - D && D.tagName !== "BUTTON" && v(!1); - }, w = h ? d : d || 0, M = r && !n, P = G( - (D) => { - if (r) { - D.stopPropagation(), D.preventDefault(); - return; - } - D.currentTarget.focus(), l == null || l(D); - }, - [r, l] - ), I = G( - (D) => { - b && mc(D) && (D.preventDefault(), D.stopPropagation(), y(!1), S.remove(document, "keyup", I, !1)); - }, - [b, S] - ), z = G( - (D) => { - if (c == null || c(D), r || D.defaultPrevented || D.metaKey || !mc(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); - }, - [ - r, - h, - c, - o, - a, - S, - I - ] - ), j = G( - (D) => { - if (u == null || u(D), r || D.defaultPrevented || D.metaKey || !mc(D.nativeEvent) || h) - return; - a && D.key === " " && (D.preventDefault(), y(!1), D.currentTarget.click()); - }, - [a, h, r, u] - ), X = G( - (D) => { - D.button === 0 && (y(!1), S.remove(document, "mouseup", X, !1)); - }, - [S] - ), ne = G( - (D) => { - if (D.button !== 0) - return; - if (r) { - D.stopPropagation(), D.preventDefault(); - return; - } - h || y(!0), D.currentTarget.focus({ preventScroll: !0 }), S.add(document, "mouseup", X, !1), i == null || i(D); - }, - [r, h, i, S, X] - ), J = G( - (D) => { - D.button === 0 && (h || y(!1), s == null || s(D)); - }, - [s, h] - ), Q = G( - (D) => { - if (r) { - D.preventDefault(); - return; - } - f == null || f(D); - }, - [r, f] - ), ee = G( - (D) => { - b && (D.preventDefault(), y(!1)), p == null || p(D); - }, - [b, p] - ), oe = St(t, _); - return h ? { - ...m, - ref: oe, - type: "button", - "aria-disabled": M ? void 0 : r, - disabled: M, - onClick: P, - onMouseDown: i, - onMouseUp: s, - onKeyUp: u, - onKeyDown: c, - onMouseOver: f, - onMouseLeave: p - } : { - ...m, - ref: oe, - role: "button", - "data-active": Ar(b), - "aria-disabled": r ? "true" : void 0, - tabIndex: M ? void 0 : w, - onClick: P, - onMouseDown: ne, - onMouseUp: J, - onKeyUp: j, - onKeyDown: z, - onMouseOver: Q, - onMouseLeave: ee - }; -} -function wN(e) { - const t = e.current; - if (!t) - return !1; - const r = K5(t); - return !r || t.contains(r) ? !1 : !!rN(r); -} -function CN(e, t) { - const { shouldFocus: r, visible: n, focusRef: o } = t, a = r && !n; - zo(() => { - if (!a || wN(e)) - return; - const i = (o == null ? void 0 : o.current) || e.current; - let s; - if (i) - return s = requestAnimationFrame(() => { - i.focus({ preventScroll: !0 }); - }), () => { - cancelAnimationFrame(s); - }; - }, [a, e, o]); -} -var _N = { - preventScroll: !0, - shouldFocus: !1 -}; -function qV(e, t = _N) { - const { focusRef: r, preventScroll: n, shouldFocus: o, visible: a } = t, i = kN(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 = G(() => { - if (!(!a || !i || !l.current) && (l.current = !1, !i.contains(document.activeElement))) - if (r != null && r.current) - requestAnimationFrame(() => { - var d; - (d = r.current) == null || d.focus({ preventScroll: n }); - }); - else { - const d = ry(i); - d.length > 0 && requestAnimationFrame(() => { - d[0].focus({ preventScroll: n }); - }); - } - }, [a, n, i, r]); - zo(() => { - u(); - }, [u]), _a(i, "transitionend", u); -} -function kN(e) { - return "current" in e; -} -var Jn = (e, t) => ({ - var: e, - varRef: t ? `var(${e}, ${t})` : `var(${e})` -}), Et = { - 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 EN(e) { - if (e.includes("top")) - return "1px 1px 0px 0 var(--popper-arrow-shadow-color)"; - if (e.includes("bottom")) - return "-1px -1px 0px 0 var(--popper-arrow-shadow-color)"; - if (e.includes("right")) - return "-1px 1px 0px 0 var(--popper-arrow-shadow-color)"; - if (e.includes("left")) - return "1px -1px 0px 0 var(--popper-arrow-shadow-color)"; -} -var PN = { - top: "bottom center", - "top-start": "bottom left", - "top-end": "bottom right", - bottom: "top center", - "bottom-start": "top left", - "bottom-end": "top right", - left: "right center", - "left-start": "right top", - "left-end": "right bottom", - right: "left center", - "right-start": "left top", - "right-end": "left bottom" -}, TN = (e) => PN[e], Jh = { - scroll: !0, - resize: !0 -}; -function AN(e) { - let t; - return typeof e == "object" ? t = { - enabled: !0, - options: { ...Jh, ...e } - } : t = { - enabled: e, - options: Jh - }, t; -} -var ON = { - name: "matchWidth", - enabled: !0, - phase: "beforeWrite", - requires: ["computeStyles"], - fn: ({ state: e }) => { - e.styles.popper.width = `${e.rects.reference.width}px`; - }, - effect: ({ state: e }) => () => { - const t = e.elements.reference; - e.elements.popper.style.width = `${t.offsetWidth}px`; - } -}, RN = { - name: "transformOrigin", - enabled: !0, - phase: "write", - fn: ({ state: e }) => { - Qh(e); - }, - effect: ({ state: e }) => () => { - Qh(e); - } -}, Qh = (e) => { - e.elements.popper.style.setProperty( - Et.transformOrigin.var, - TN(e.placement) - ); -}, $N = { - name: "positionArrow", - enabled: !0, - phase: "afterWrite", - fn: ({ state: e }) => { - DN(e); - } -}, DN = (e) => { - var t; - if (!e.placement) - return; - const r = MN(e.placement); - if ((t = e.elements) != null && t.arrow && r) { - Object.assign(e.elements.arrow.style, { - [r.property]: r.value, - width: Et.arrowSize.varRef, - height: Et.arrowSize.varRef, - zIndex: -1 - }); - const n = { - [Et.arrowSizeHalf.var]: `calc(${Et.arrowSize.varRef} / 2 - 1px)`, - [Et.arrowOffset.var]: `calc(${Et.arrowSizeHalf.varRef} * -1)` - }; - for (const o in n) - e.elements.arrow.style.setProperty(o, n[o]); - } -}, MN = (e) => { - if (e.startsWith("top")) - return { property: "bottom", value: Et.arrowOffset.varRef }; - if (e.startsWith("bottom")) - return { property: "top", value: Et.arrowOffset.varRef }; - if (e.startsWith("left")) - return { property: "right", value: Et.arrowOffset.varRef }; - if (e.startsWith("right")) - return { property: "left", value: Et.arrowOffset.varRef }; -}, IN = { - name: "innerArrow", - enabled: !0, - phase: "main", - requires: ["arrow"], - fn: ({ state: e }) => { - em(e); - }, - effect: ({ state: e }) => () => { - em(e); - } -}, em = (e) => { - if (!e.elements.arrow) - return; - const t = e.elements.arrow.querySelector( - "[data-popper-arrow-inner]" - ); - if (!t) - return; - const r = EN(e.placement); - r && t.style.setProperty("--popper-arrow-default-shadow", r), Object.assign(t.style, { - transform: "rotate(45deg)", - background: Et.arrowBg.varRef, - top: 0, - left: 0, - width: "100%", - height: "100%", - position: "absolute", - zIndex: "inherit", - boxShadow: "var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))" - }); -}, FN = { - "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" } -}, NN = { - "auto-start": "auto-end", - "auto-end": "auto-start", - "top-start": "top-end", - "top-end": "top-start", - "bottom-start": "bottom-end", - "bottom-end": "bottom-start" -}; -function jN(e, t = "ltr") { - var r, n; - const o = ((r = FN[e]) == null ? void 0 : r[t]) || e; - return t === "ltr" ? o : (n = NN[e]) != null ? n : o; -} -var Wt = "top", cr = "bottom", ur = "right", Ut = "left", Td = "auto", li = [Wt, cr, ur, Ut], $o = "start", qa = "end", BN = "clippingParents", cy = "viewport", ra = "popper", zN = "reference", tm = /* @__PURE__ */ li.reduce(function(e, t) { - return e.concat([t + "-" + $o, t + "-" + qa]); -}, []), uy = /* @__PURE__ */ [].concat(li, [Td]).reduce(function(e, t) { - return e.concat([t, t + "-" + $o, t + "-" + qa]); -}, []), VN = "beforeRead", LN = "read", WN = "afterRead", UN = "beforeMain", HN = "main", YN = "afterMain", GN = "beforeWrite", qN = "write", XN = "afterWrite", KN = [VN, LN, WN, UN, HN, YN, GN, qN, XN]; -function jr(e) { - return e ? (e.nodeName || "").toLowerCase() : null; -} -function er(e) { - if (e == null) - return window; - if (e.toString() !== "[object Window]") { - var t = e.ownerDocument; - return t && t.defaultView || window; - } - return e; -} -function Un(e) { - var t = er(e).Element; - return e instanceof t || e instanceof Element; -} -function lr(e) { - var t = er(e).HTMLElement; - return e instanceof t || e instanceof HTMLElement; -} -function Ad(e) { - if (typeof ShadowRoot > "u") - return !1; - var t = er(e).ShadowRoot; - return e instanceof t || e instanceof ShadowRoot; -} -function ZN(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) || !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 JN(e) { - var t = e.state, r = { - popper: { - position: t.options.strategy, - left: "0", - top: "0", - margin: "0" - }, - arrow: { - position: "absolute" - }, - reference: {} - }; - return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() { - Object.keys(t.elements).forEach(function(n) { - 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) || !jr(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(l) { - o.removeAttribute(l); - })); - }); - }; -} -const QN = { - name: "applyStyles", - enabled: !0, - phase: "write", - fn: ZN, - effect: JN, - requires: ["computeStyles"] -}; -function Nr(e) { - return e.split("-")[0]; -} -var Ln = Math.max, Rs = Math.min, Do = Math.round; -function mu() { - 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 dy() { - return !/^((?!chrome|android).)*safari/i.test(mu()); -} -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 && 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 = !dy() && 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, - top: u, - right: c + d, - bottom: u + f, - left: c, - x: c, - y: u - }; -} -function Od(e) { - 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, - width: r, - height: n - }; -} -function fy(e, t) { - var r = t.getRootNode && t.getRootNode(); - if (e.contains(t)) - return !0; - if (r && Ad(r)) { - var n = t; - do { - if (n && e.isSameNode(n)) - return !0; - n = n.parentNode || n.host; - } while (n); - } - return !1; -} -function on(e) { - return er(e).getComputedStyle(e); -} -function ej(e) { - return ["table", "td", "th"].indexOf(jr(e)) >= 0; -} -function kn(e) { - return ((Un(e) ? e.ownerDocument : ( - // $FlowFixMe[prop-missing] - e.document - )) || window.document).documentElement; -} -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 - (Ad(e) ? e.host : null) || // ShadowRoot detected - // $FlowFixMe[incompatible-call]: HTMLElement is a Node - kn(e) - ); -} -function rm(e) { - return !lr(e) || // https://github.com/popperjs/popper-core/issues/837 - on(e).position === "fixed" ? null : e.offsetParent; -} -function tj(e) { - var t = /firefox/i.test(mu()), r = /Trident/i.test(mu()); - if (r && lr(e)) { - var n = on(e); - if (n.position === "fixed") - return null; - } - var o = nl(e); - for (Ad(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; - } - return null; -} -function ci(e) { - for (var t = er(e), r = rm(e); r && ej(r) && on(r).position === "static"; ) - r = rm(r); - return r && (jr(r) === "html" || jr(r) === "body" && on(r).position === "static") ? t : r || tj(e) || t; -} -function Rd(e) { - return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; -} -function ka(e, t, r) { - return Ln(e, Rs(t, r)); -} -function rj(e, t, r) { - var n = ka(e, t, r); - return n > r ? r : n; -} -function py() { - return { - top: 0, - right: 0, - bottom: 0, - left: 0 - }; -} -function hy(e) { - return Object.assign({}, py(), e); -} -function my(e, t) { - return t.reduce(function(r, n) { - return r[n] = e, r; - }, {}); -} -var nj = function(t, r) { - return t = typeof t == "function" ? t(Object.assign({}, r.rects, { - placement: r.placement - })) : t, hy(typeof t != "number" ? t : my(t, li)); -}; -function oj(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 = Rd(s), c = [Ut, ur].indexOf(s) >= 0, u = c ? "height" : "width"; - if (!(!a || !i)) { - var d = nj(o.padding, r), f = Od(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 aj(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) || fy(t.elements.popper, o) && (t.elements.arrow = o)); -} -const ij = { - name: "arrow", - enabled: !0, - phase: "main", - fn: oj, - effect: aj, - requires: ["popperOffsets"], - requiresIfExists: ["preventOverflow"] -}; -function Io(e) { - return e.split("-")[1]; -} -var sj = { - top: "auto", - right: "auto", - bottom: "auto", - left: "auto" -}; -function lj(e, t) { - var r = e.x, n = e.y, o = t.devicePixelRatio || 1; - return { - x: Do(r * o) / o || 0, - y: Do(n * o) / o || 0 - }; -} -function nm(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 - }) : { - x: p, - y: h - }; - p = v.x, h = v.y; - 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 = kn(r), on(M).position !== "static" && s === "absolute" && (P = "scrollHeight", I = "scrollWidth")), M = M, o === Wt || (o === Ut || o === ur) && a === qa) { - _ = cr; - var z = d && M === w && w.visualViewport ? w.visualViewport.height : ( - // $FlowFixMe[prop-missing] - M[P] - ); - h -= z - n.height, h *= l ? 1 : -1; - } - if (o === Ut || (o === Wt || o === cr) && a === qa) { - S = ur; - var j = d && M === w && w.visualViewport ? w.visualViewport.width : ( - // $FlowFixMe[prop-missing] - M[I] - ); - p -= j - n.width, p *= l ? 1 : -1; - } - } - var X = Object.assign({ - position: s - }, c && sj), ne = u === !0 ? lj({ - x: p, - y: h - }, er(r)) : { - x: p, - y: h - }; - if (p = ne.x, h = ne.y, l) { - var 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[_] = y ? h + "px" : "", t[S] = b ? p + "px" : "", t.transform = "", t)); -} -function cj(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: 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, nm(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, nm(Object.assign({}, c, { - offsets: t.modifiersData.arrow, - position: "absolute", - adaptive: !1, - roundOffsets: l - })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { - "data-popper-placement": t.placement - }); -} -const uj = { - name: "computeStyles", - enabled: !0, - phase: "beforeWrite", - fn: cj, - data: {} -}; -var Di = { - passive: !0 -}; -function dj(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); - }), s && l.addEventListener("resize", r.update, Di), function() { - a && c.forEach(function(u) { - u.removeEventListener("scroll", r.update, Di); - }), s && l.removeEventListener("resize", r.update, Di); - }; -} -const fj = { - name: "eventListeners", - enabled: !0, - phase: "write", - fn: function() { - }, - effect: dj, - data: {} -}; -var pj = { - left: "right", - right: "left", - bottom: "top", - top: "bottom" -}; -function ts(e) { - return e.replace(/left|right|bottom|top/g, function(t) { - return pj[t]; - }); -} -var hj = { - start: "end", - end: "start" -}; -function om(e) { - return e.replace(/start|end/g, function(t) { - return hj[t]; - }); -} -function $d(e) { - var t = er(e), r = t.pageXOffset, n = t.pageYOffset; - return { - scrollLeft: r, - scrollTop: n - }; -} -function Dd(e) { - return Mo(kn(e)).left + $d(e).scrollLeft; -} -function mj(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 = dy(); - (c || !c && t === "fixed") && (s = o.offsetLeft, l = o.offsetTop); - } - return { - width: a, - height: i, - x: s + Dd(e), - y: l - }; -} -function vj(e) { - var t, r = kn(e), n = $d(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 + Dd(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 Md(e) { - var t = on(e), r = t.overflow, n = t.overflowX, o = t.overflowY; - return /auto|scroll|overlay|hidden/.test(r + o + n); -} -function vy(e) { - return ["html", "body", "#document"].indexOf(jr(e)) >= 0 ? e.ownerDocument.body : lr(e) && Md(e) ? e : vy(nl(e)); -} -function Ea(e, t) { - var r; - t === void 0 && (t = []); - var n = vy(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = er(n), i = o ? [a].concat(a.visualViewport || [], Md(n) ? n : []) : n, s = t.concat(i); - return o ? s : ( - // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here - s.concat(Ea(nl(i))) - ); -} -function vu(e) { - return Object.assign({}, e, { - left: e.x, - top: e.y, - right: e.x + e.width, - bottom: e.y + e.height - }); -} -function gj(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 am(e, t, r) { - return t === cy ? vu(mj(e, r)) : Un(t) ? gj(t, r) : vu(vj(kn(e))); -} -function bj(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) && fy(o, n) && jr(o) !== "body"; - }) : []; -} -function yj(e, t, r, n) { - var o = t === "clippingParents" ? bj(e) : [].concat(t), a = [].concat(o, [r]), i = a[0], s = a.reduce(function(l, c) { - var u = am(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; - }, am(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 gy(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 = { - x: i, - y: t.y - r.height - }; - break; - case cr: - l = { - x: i, - y: t.y + t.height - }; - break; - case ur: - l = { - x: t.x + t.width, - y: s - }; - break; - case Ut: - l = { - x: t.x - r.width, - y: s - }; - break; - default: - l = { - x: t.x, - y: t.y - }; - } - var c = o ? Rd(o) : null; - if (c != null) { - var u = c === "y" ? "height" : "width"; - switch (a) { - case $o: - l[c] = l[c] - (t[u] / 2 - r[u] / 2); - break; - case qa: - l[c] = l[c] + (t[u] / 2 - r[u] / 2); - break; - } - } - return l; -} -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 ? BN : s, c = r.rootBoundary, u = c === void 0 ? cy : 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 = hy(typeof v != "number" ? v : my(v, li)), y = f === ra ? zN : ra, S = e.rects.popper, _ = e.elements[m ? y : f], w = yj(Un(_) ? _ : _.contextElement || kn(e.elements.popper), l, u, i), M = Mo(e.elements.reference), P = gy({ - reference: M, - element: S, - strategy: "absolute", - placement: o - }), I = vu(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 === 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"; - j[J] += ne[ee] * Q; - }); - } - return j; -} -function xj(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 ? uy : l, u = Io(n), d = u ? s ? tm : tm.filter(function(m) { - return Io(m) === u; - }) : li, f = d.filter(function(m) { - return c.indexOf(m) >= 0; - }); - f.length === 0 && (f = d); - var p = f.reduce(function(m, h) { - return m[h] = Xa(e, { - placement: h, - boundary: o, - rootBoundary: a, - padding: i - })[Nr(h)], m; - }, {}); - return Object.keys(p).sort(function(m, h) { - return p[m] - p[h]; - }); -} -function Sj(e) { - if (Nr(e) === Td) - return []; - var t = ts(e); - return [om(e), t, om(t)]; -} -function wj(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 = Nr(v), y = b === v, S = l || (y || !m ? [ts(v)] : Sj(v)), _ = [v].concat(S).reduce(function(A, B) { - return A.concat(Nr(B) === Td ? xj(t, { - placement: B, - boundary: u, - rootBoundary: d, - padding: c, - flipVariations: m, - allowedAutoPlacements: h - }) : B); - }, []), 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, - altBoundary: f, - padding: c - }), 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(A) { - return A; - })) { - z = X, I = !1; - break; - } - P.set(X, fe); - } - if (I) - for (var F = m ? 3 : 1, N = function(B) { - var C = _.find(function(H) { - var O = P.get(H); - if (O) - return O.slice(0, B).every(function(Z) { - return Z; - }); - }); - if (C) - return z = C, "break"; - }, V = F; V > 0; V--) { - var T = N(V); - if (T === "break") - break; - } - t.placement !== z && (t.modifiersData[n]._skip = !0, t.placement = z, t.reset = !0); - } -} -const Cj = { - name: "flip", - enabled: !0, - phase: "main", - fn: wj, - requiresIfExists: ["offset"], - data: { - _skip: !1 - } -}; -function im(e, t, r) { - return r === void 0 && (r = { - x: 0, - y: 0 - }), { - top: e.top - t.height - r.y, - right: e.right - t.width + r.x, - bottom: e.bottom - t.height + r.y, - left: e.left - t.width - r.x - }; -} -function sm(e) { - return [Wt, ur, cr, Ut].some(function(t) { - return e[t] >= 0; - }); -} -function _j(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 = im(i, n), c = im(s, o, a), u = sm(l), d = sm(c); - t.modifiersData[r] = { - referenceClippingOffsets: l, - popperEscapeOffsets: c, - isReferenceHidden: u, - hasPopperEscaped: d - }, t.attributes.popper = Object.assign({}, t.attributes.popper, { - "data-popper-reference-hidden": u, - "data-popper-escaped": d - }); -} -const kj = { - name: "hide", - enabled: !0, - phase: "main", - requiresIfExists: ["preventOverflow"], - fn: _j -}; -function Ej(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 ? { - x: s, - y: i - } : { - x: i, - y: s - }; -} -function Pj(e) { - var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = uy.reduce(function(u, d) { - return u[d] = Ej(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 Tj = { - name: "offset", - enabled: !0, - phase: "main", - requires: ["popperOffsets"], - fn: Pj -}; -function Aj(e) { - var t = e.state, r = e.name; - t.modifiersData[r] = gy({ - reference: t.rects.reference, - element: t.rects.popper, - strategy: "absolute", - placement: t.placement - }); -} -const Oj = { - name: "popperOffsets", - enabled: !0, - phase: "read", - fn: Aj, - data: {} -}; -function Rj(e) { - return e === "x" ? "y" : "x"; -} -function $j(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 = Nr(t.placement), y = Io(t.placement), S = !y, _ = Rd(b), w = Rj(_), 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, - altAxis: z - } : Object.assign({ - mainAxis: 0, - altAxis: 0 - }, z), X = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, ne = { - x: 0, - y: 0 - }; - if (M) { - if (a) { - 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 ? Od(T) : { - width: 0, - height: 0 - }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : py(), 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 = _ === "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 ? rj(Ot, ke, xt) : ka(p ? Ot : rt, ke, p ? xt : Ie); - M[w] = lt, ne[w] = lt - ke; - } - t.modifiersData[n] = ne; - } -} -const Dj = { - name: "preventOverflow", - enabled: !0, - phase: "main", - fn: $j, - requiresIfExists: ["offset"] -}; -function Mj(e) { - return { - scrollLeft: e.scrollLeft, - scrollTop: e.scrollTop - }; -} -function Ij(e) { - return e === er(e) || !lr(e) ? $d(e) : Mj(e); -} -function Fj(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 Nj(e, t, r) { - r === void 0 && (r = !1); - var n = lr(t), o = lr(t) && Fj(t), a = kn(t), i = Mo(e, o, r), s = { - scrollLeft: 0, - scrollTop: 0 - }, l = { - x: 0, - y: 0 - }; - return (n || !n && !r) && ((jr(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 - Md(a)) && (s = Ij(t)), lr(t) ? (l = Mo(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : a && (l.x = Dd(a))), { - x: i.left + s.scrollLeft - l.x, - y: i.top + s.scrollTop - l.y, - width: i.width, - height: i.height - }; -} -function jj(e) { - var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = []; - e.forEach(function(a) { - t.set(a.name, a); - }); - function o(a) { - r.add(a.name); - var i = [].concat(a.requires || [], a.requiresIfExists || []); - i.forEach(function(s) { - if (!r.has(s)) { - var l = t.get(s); - l && o(l); - } - }), n.push(a); - } - return e.forEach(function(a) { - r.has(a.name) || o(a); - }), n; -} -function Bj(e) { - var t = jj(e); - return KN.reduce(function(r, n) { - return r.concat(t.filter(function(o) { - return o.phase === n; - })); - }, []); -} -function zj(e) { - var t; - return function() { - return t || (t = new Promise(function(r) { - Promise.resolve().then(function() { - t = void 0, r(e()); - }); - })), t; - }; -} -function Vj(e) { - var t = e.reduce(function(r, n) { - var o = r[n.name]; - return r[n.name] = o ? Object.assign({}, o, n, { - options: Object.assign({}, o.options, n.options), - data: Object.assign({}, o.data, n.data) - }) : n, r; - }, {}); - return Object.keys(t).map(function(r) { - return t[r]; - }); -} -var lm = { - placement: "bottom", - modifiers: [], - strategy: "absolute" -}; -function cm() { - 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 Lj(e) { - e === void 0 && (e = {}); - var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? lm : o; - return function(s, l, c) { - c === void 0 && (c = a); - var u = { - placement: "bottom", - orderedModifiers: [], - options: Object.assign({}, lm, a), - modifiersData: {}, - elements: { - reference: s, - popper: l - }, - attributes: {}, - styles: {} - }, d = [], f = !1, p = { - state: u, - setOptions: function(b) { - var y = typeof b == "function" ? b(u.options) : b; - h(), u.options = Object.assign({}, a, u.options, y), u.scrollParents = { - reference: Un(s) ? Ea(s) : s.contextElement ? Ea(s.contextElement) : [], - popper: Ea(l) - }; - var S = Bj(Vj([].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 - // is useful for low frequency updates where sync behavior simplifies the - // logic. - // For high frequency updates (e.g. `resize` and `scroll` events), always - // prefer the async Popper#update method - forceUpdate: function() { - if (!f) { - var b = u.elements, y = b.reference, S = b.popper; - if (cm(y, S)) { - u.rects = { - reference: Nj(y, ci(S), u.options.strategy === "fixed"), - popper: Od(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 _ = 0; _ < u.orderedModifiers.length; _++) { - if (u.reset === !0) { - u.reset = !1, _ = -1; - continue; - } - 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, - name: z, - instance: p - }) || u); - } - } - } - }, - // Async and optimistically optimized update – it will not be executed if - // not necessary (debounced to run at most once-per-tick) - update: zj(function() { - return new Promise(function(v) { - p.forceUpdate(), v(u); - }); - }), - destroy: function() { - h(), f = !0; - } - }; - if (!cm(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, _ = v.effect; - if (typeof _ == "function") { - var w = _({ - state: u, - name: b, - instance: p, - options: S - }), M = function() { - }; - d.push(w || M); - } - }); - } - function h() { - d.forEach(function(v) { - return v(); - }), d = []; - } - return p; - }; -} -var Wj = [fj, Oj, uj, QN, Tj, Cj, Dj, ij, kj], Uj = /* @__PURE__ */ Lj({ - defaultModifiers: Wj -}); -function by(e = {}) { - const { - enabled: t = !0, - modifiers: r, - placement: n = "bottom", - strategy: o = "absolute", - arrowPadding: a = 8, - eventListeners: i = !0, - offset: s, - gutter: l = 8, - flip: c = !0, - boundary: u = "clippingParents", - preventOverflow: d = !0, - matchWidth: f, - direction: p = "ltr" - } = e, m = be(null), h = be(null), v = be(null), b = jN(n, p), y = be(() => { - }), S = G(() => { - var j; - !t || !m.current || !h.current || ((j = y.current) == null || j.call(y), v.current = Uj(m.current, h.current, { - placement: b, - modifiers: [ - IN, - $N, - RN, - { - ...ON, - enabled: !!f - }, - { - name: "eventListeners", - ...AN(i) - }, - { - name: "arrow", - options: { padding: a } - }, - { - name: "offset", - options: { - offset: s ?? [0, l] - } - }, - { - name: "flip", - enabled: !!c, - options: { padding: 8 } - }, - { - name: "preventOverflow", - enabled: !!d, - options: { boundary: u } - }, - // allow users override internal modifiers - ...r ?? [] - ], - strategy: o - }), v.current.forceUpdate(), y.current = v.current.destroy); - }, [ - b, - t, - r, - f, - i, - a, - s, - l, - c, - d, - u, - o - ]); - Fe(() => () => { - var j; - !m.current && !h.current && ((j = v.current) == null || j.destroy(), v.current = null); - }, []); - const _ = G( - (j) => { - m.current = j, S(); - }, - [S] - ), w = G( - (j = {}, X = null) => ({ - ...j, - ref: St(_, X) - }), - [_] - ), M = G( - (j) => { - h.current = j, S(); - }, - [S] - ), P = G( - (j = {}, X = null) => ({ - ...j, - ref: St(M, X), - style: { - ...j.style, - position: o, - minWidth: f ? void 0 : "max-content", - inset: "0 auto auto 0" - } - }), - [o, M, f] - ), I = G((j = {}, X = null) => { - const { size: ne, shadowColor: J, bg: Q, style: ee, ...oe } = j; - return { - ...oe, - ref: X, - "data-popper-arrow": "", - style: Hj(j) - }; - }, []), z = G( - (j = {}, X = null) => ({ - ...j, - ref: X, - "data-popper-arrow-inner": "" - }), - [] - ); - return { - update() { - var j; - (j = v.current) == null || j.update(); - }, - forceUpdate() { - var j; - (j = v.current) == null || j.forceUpdate(); - }, - transformOrigin: Et.transformOrigin.varRef, - referenceRef: _, - popperRef: M, - getPopperProps: P, - getArrowProps: I, - getArrowInnerProps: z, - getReferenceProps: w - }; -} -function Hj(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 yy(e = {}) { - const { - onClose: t, - onOpen: r, - isOpen: n, - id: o - } = e, a = Jt(r), i = Jt(t), [s, l] = Ye(e.defaultIsOpen || !1), c = n !== void 0 ? n : s, u = n !== void 0, d = _r(), f = o ?? `disclosure-${d}`, p = G(() => { - u || l(!1), i == null || i(); - }, [u, i]), m = G(() => { - u || l(!0), a == null || a(); - }, [u, a]), h = G(() => { - c ? p() : m(); - }, [c, m, p]); - function v(y = {}) { - return { - ...y, - "aria-expanded": c, - "aria-controls": f, - onClick(S) { - var _; - (_ = y.onClick) == null || _.call(y, S), h(); - } - }; - } - function b(y = {}) { - return { - ...y, - hidden: !c, - id: f - }; - } - return { - isOpen: c, - onOpen: m, - onClose: p, - onToggle: h, - isControlled: u, - getButtonProps: v, - getDisclosureProps: b - }; -} -function Yj(e) { - const { ref: t, handler: r, enabled: n = !0 } = e, o = Jt(r), i = be({ - isPointerDown: !1, - ignoreEmulatedMouseEvents: !1 - }).current; - Fe(() => { - if (!n) - return; - const s = (d) => { - vc(d, t) && (i.isPointerDown = !0); - }, l = (d) => { - if (i.ignoreEmulatedMouseEvents) { - i.ignoreEmulatedMouseEvents = !1; - return; - } - i.isPointerDown && r && vc(d, t) && (i.isPointerDown = !1, o(d)); - }, c = (d) => { - i.ignoreEmulatedMouseEvents = !0, r && i.isPointerDown && vc(d, t) && (i.isPointerDown = !1, o(d)); - }, u = xy(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 vc(e, t) { - var r; - const n = e.target; - return n && !xy(n).contains(n) ? !1 : !((r = t.current) != null && r.contains(n)); -} -function xy(e) { - var t; - return (t = e == null ? void 0 : e.ownerDocument) != null ? t : document; -} -function Gj(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]), _a( - () => r.current, - "animationend", - () => { - o(t); - } - ), { - present: !(t ? !1 : !n), - onComplete() { - var l; - const c = X5(r.current), u = new c.CustomEvent("animationend", { bubbles: !0 }); - (l = r.current) == null || l.dispatchEvent(u); - } - }; -} -function qj(e) { - const { wasSelected: t, enabled: r, isSelected: n, mode: o = "unmount" } = e; - return !!(!r || n || o === "keepMounted" && t); -} -var [ - Xj, - Kj, - Zj, - Jj -] = bF(), [Qj, Wo] = Nt({ - strict: !1, - name: "MenuContext" -}); -function eB(e, ...t) { - const r = _r(), n = e || r; - return gt(() => t.map((o) => `${o}-${n}`), [n, t]); -} -function Sy(e) { - var t; - return (t = e == null ? void 0 : e.ownerDocument) != null ? t : document; -} -function um(e) { - return Sy(e).activeElement === e; -} -function tB(e = {}) { - const { - id: t, - closeOnSelect: r = !0, - closeOnBlur: n = !0, - initialFocusRef: o, - autoSelect: a = !0, - isLazy: i, - isOpen: s, - defaultIsOpen: l, - onClose: c, - onOpen: u, - placement: d = "bottom-start", - lazyBehavior: f = "unmount", - direction: p, - computePositionOnMount: m = !1, - ...h - } = e, v = be(null), b = be(null), y = Zj(), S = G(() => { - requestAnimationFrame(() => { - var T; - (T = v.current) == null || T.focus({ preventScroll: !1 }); - }); - }, []), _ = G(() => { - const T = setTimeout(() => { - var A; - if (o) - (A = o.current) == null || A.focus(); - else { - const B = y.firstEnabled(); - B && J(B.index); - } - }); - ce.current.add(T); - }, [y, o]), w = G(() => { - const T = setTimeout(() => { - const A = y.lastEnabled(); - A && J(A.index); - }); - ce.current.add(T); - }, [y]), M = G(() => { - u == null || u(), a ? _() : S(); - }, [a, _, S, u]), { isOpen: P, onOpen: I, onClose: z, onToggle: j } = yy({ - isOpen: s, - defaultIsOpen: l, - onClose: c, - onOpen: M - }); - Yj({ - enabled: P && n, - ref: v, - handler: (T) => { - var A; - (A = b.current) != null && A.contains(T.target) || z(); - } - }); - const X = by({ - ...h, - enabled: P || m, - placement: d, - direction: p - }), [ne, J] = Ye(-1); - zo(() => { - P || J(-1); - }, [P]), CN(v, { - focusRef: b, - visible: P, - shouldFocus: !0 - }); - const Q = Gj({ isOpen: P, ref: v }), [ee, oe] = eB(t, "menu-button", "menu-list"), D = G(() => { - I(), S(); - }, [I, S]), ce = be(/* @__PURE__ */ new Set([])); - Fe(() => { - const T = ce.current; - return () => { - T.forEach((A) => clearTimeout(A)), T.clear(); - }; - }, []); - const fe = G(() => { - I(), _(); - }, [_, I]), F = G(() => { - I(), w(); - }, [I, w]), N = G(() => { - var T, A; - const B = Sy(v.current), C = (T = v.current) == null ? void 0 : T.contains(B.activeElement); - if (!(P && !C)) - return; - 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, - openAndFocusFirstItem: fe, - openAndFocusLastItem: F, - onTransitionEnd: N, - unstable__animationState: Q, - descendants: y, - popper: X, - buttonId: ee, - menuId: oe, - forceUpdate: X.forceUpdate, - orientation: "vertical", - isOpen: P, - onToggle: j, - onOpen: I, - onClose: z, - menuRef: v, - buttonRef: b, - focusedIndex: ne, - closeOnSelect: r, - closeOnBlur: n, - autoSelect: a, - setFocusedIndex: J, - isLazy: i, - lazyBehavior: f, - initialFocusRef: o, - rafId: V - }; -} -function rB(e = {}, t = null) { - const r = Wo(), { onToggle: n, popper: o, openAndFocusFirstItem: a, openAndFocusLastItem: i } = r, s = G( - (l) => { - const c = l.key, d = { - Enter: a, - ArrowDown: a, - ArrowUp: i - }[c]; - d && (l.preventDefault(), l.stopPropagation(), d(l)); - }, - [a, i] - ); - return { - ...e, - ref: St(r.buttonRef, t, o.referenceRef), - id: r.buttonId, - "data-active": Ar(r.isOpen), - "aria-expanded": r.isOpen, - "aria-haspopup": "menu", - "aria-controls": r.menuId, - onClick: $t(e.onClick, n), - onKeyDown: $t(e.onKeyDown, s) - }; -} -function gu(e) { - var t; - return aB(e) && !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem")); -} -function nB(e = {}, t = null) { - const r = Wo(); - if (!r) - throw new Error( - "useMenuContext: context is undefined. Seems you forgot to wrap component within " - ); - const { - focusedIndex: n, - setFocusedIndex: o, - menuRef: a, - isOpen: i, - onClose: s, - menuId: l, - isLazy: c, - lazyBehavior: u, - unstable__animationState: d - } = r, f = Kj(), p = bN({ - preventDefault: (b) => b.key !== " " && gu(b.target) - }), m = G( - (b) => { - if (!b.currentTarget.contains(b.target)) - return; - const y = b.key, _ = { - Tab: (M) => M.preventDefault(), - Escape: s, - ArrowDown: () => { - const M = f.nextEnabled(n); - M && o(M.index); - }, - ArrowUp: () => { - const M = f.prevEnabled(n); - M && o(M.index); - } - }[y]; - if (_) { - b.preventDefault(), _(b); - return; - } - const w = p((M) => { - const P = yN( - f.values(), - M, - (I) => { - var z, j; - return (j = (z = I == null ? void 0 : I.node) == null ? void 0 : z.textContent) != null ? j : ""; - }, - f.item(n) - ); - if (P) { - const I = f.indexOf(P.node); - o(I); - } - }); - gu(b.target) && w(b); - }, - [ - f, - n, - p, - s, - o - ] - ), h = be(!1); - i && (h.current = !0); - const v = qj({ - wasSelected: h.current, - enabled: c, - mode: u, - isSelected: d.present - }); - return { - ...e, - ref: St(a, t), - children: v ? e.children : null, - tabIndex: -1, - role: "menu", - id: l, - style: { - ...e.style, - transformOrigin: "var(--popper-transform-origin)" - }, - "aria-orientation": "vertical", - onKeyDown: $t(e.onKeyDown, m) - }; -} -function oB(e = {}) { - const { popper: t, isOpen: r } = Wo(); - return t.getPopperProps({ - ...e, - style: { - visibility: r ? "visible" : "hidden", - ...e.style - } - }); -} -function wy(e = {}, t = null) { - const { - onMouseEnter: r, - onMouseMove: n, - onMouseLeave: o, - onClick: a, - onFocus: i, - isDisabled: s, - isFocusable: l, - closeOnSelect: c, - type: u, - ...d - } = e, f = Wo(), { - setFocusedIndex: p, - focusedIndex: m, - closeOnSelect: h, - onClose: v, - menuRef: b, - isOpen: y, - menuId: S, - rafId: _ - } = f, w = be(null), M = `${S}-menuitem-${_r()}`, { index: P, register: I } = Jj({ - disabled: s && !l - }), z = G( - (D) => { - r == null || r(D), !s && p(P); - }, - [p, P, s, r] - ), j = G( - (D) => { - n == null || n(D), w.current && !um(w.current) && z(D); - }, - [z, n] - ), X = G( - (D) => { - o == null || o(D), !s && p(-1); - }, - [p, s, o] - ), ne = G( - (D) => { - a == null || a(D), gu(D.currentTarget) && (c ?? h) && v(); - }, - [v, a, h, c] - ), J = G( - (D) => { - i == null || i(D), p(P); - }, - [p, i, P] - ), Q = P === m, ee = s && !l; - 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 && !um(b.current) && b.current.focus({ preventScroll: !0 }), () => { - _.current && cancelAnimationFrame(_.current); - }; - }, [Q, ee, b, y]); - const oe = SN({ - onClick: ne, - onFocus: J, - onMouseEnter: z, - onMouseMove: j, - onMouseLeave: X, - ref: St(I, w, t), - isDisabled: s, - isFocusable: l - }); - return { - ...d, - ...oe, - type: u ?? oe.type, - id: M, - role: "menuitem", - tabIndex: Q ? 0 : -1 - }; -} -function XV(e = {}, t = null) { - const { type: r = "radio", isChecked: n, ...o } = e; - return { - ...wy(o, t), - role: `menuitem${r}`, - "aria-checked": n - }; -} -function KV(e = {}) { - const { - children: t, - type: r = "radio", - value: n, - defaultValue: o, - onChange: a, - ...i - } = e, l = r === "radio" ? "" : [], [c, u] = gd({ - defaultValue: o ?? l, - value: n, - onChange: a - }), d = G( - (m) => { - if (r === "radio" && typeof c == "string" && u(m), r === "checkbox" && Array.isArray(c)) { - const h = c.includes(m) ? c.filter((v) => v !== m) : c.concat(m); - u(h); - } - }, - [c, u, r] - ), p = hb(t).map((m) => { - if (m.type.id !== "MenuItemOption") - return m; - const h = (b) => { - var y, S; - d(m.props.value), (S = (y = m.props).onClick) == null || S.call(y, b); - }, v = r === "radio" ? m.props.value === c : c.includes(m.props.value); - return Ka(m, { - type: r, - onClick: h, - isChecked: v - }); - }); - return { - ...i, - children: p - }; -} -function ZV() { - const { isOpen: e, onClose: t } = Wo(); - return { isOpen: e, onClose: t }; -} -function aB(e) { - var t; - if (!iB(e)) - return !1; - const r = (t = e.ownerDocument.defaultView) != null ? t : window; - return e instanceof r.HTMLElement; -} -function iB(e) { - return e != null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE; -} -var [sB, Uo] = Nt({ - name: "MenuStylesContext", - errorMessage: `useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), lB = (e) => { - const { children: t } = e, r = Bo("Menu", e), n = Br(e), { direction: o } = sn(), { descendants: a, ...i } = tB({ ...n, direction: o }), s = gt(() => i, [i]), { isOpen: l, onClose: c, forceUpdate: u } = s; - return /* @__PURE__ */ L.jsx(Xj, { value: a, children: /* @__PURE__ */ L.jsx(Qj, { value: s, children: /* @__PURE__ */ L.jsx(sB, { value: r, children: mn(t, { isOpen: l, onClose: c, forceUpdate: u }) }) }) }); -}; -lB.displayName = "Menu"; -var Cy = _e( - (e, t) => { - const r = Uo(); - return /* @__PURE__ */ L.jsx( - ge.span, - { - ref: t, - ...e, - __css: r.command, - className: "chakra-menu__command" - } - ); - } -); -Cy.displayName = "MenuCommand"; -var cB = _e( - (e, t) => { - const { type: r, ...n } = e, o = Uo(), a = n.as || r ? r ?? void 0 : "button", i = gt( - () => ({ - textDecoration: "none", - color: "inherit", - userSelect: "none", - display: "flex", - width: "100%", - alignItems: "center", - textAlign: "start", - flex: "0 0 auto", - outline: 0, - ...o.item - }), - [o.item] - ); - return /* @__PURE__ */ L.jsx(ge.button, { ref: t, type: a, ...n, __css: i }); - } -), _y = (e) => { - const { className: t, children: r, ...n } = e, o = Uo(), a = Ds.only(r), i = wu(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 }); -}; -_y.displayName = "MenuIcon"; -var uB = _e((e, t) => { - const { - icon: r, - iconSpacing: n = "0.75rem", - command: o, - commandSpacing: a = "0.75rem", - children: i, - ...s - } = e, l = wy(s, t), u = r || o ? /* @__PURE__ */ L.jsx("span", { style: { pointerEvents: "none", flex: 1 }, children: i }) : i; - return /* @__PURE__ */ L.jsxs( - cB, - { - ...l, - className: Xe("chakra-menu__menuitem", l.className), - children: [ - r && /* @__PURE__ */ L.jsx(_y, { fontSize: "0.8em", marginEnd: n, children: r }), - u, - o && /* @__PURE__ */ L.jsx(Cy, { marginStart: a, children: o }) - ] - } - ); -}); -uB.displayName = "MenuItem"; -var dB = { - enter: { - visibility: "visible", - opacity: 1, - scale: 1, - transition: { - duration: 0.2, - ease: [0.4, 0, 0.2, 1] - } - }, - exit: { - transitionEnd: { - visibility: "hidden" - }, - opacity: 0, - scale: 0.8, - transition: { - duration: 0.1, - easings: "easeOut" - } - } -}, fB = ge(_n.div), pB = _e(function(t, r) { - var n, o; - const { rootProps: a, motionProps: i, ...s } = t, { - isOpen: l, - onTransitionEnd: c, - unstable__animationState: u - } = Wo(), d = nB(s, r), f = oB(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( - fB, - { - variants: dB, - initial: !1, - animate: l ? "enter" : "exit", - __css: { outline: 0, ...p.list }, - ...i, - className: Xe("chakra-menu__menu-list", d.className), - ...d, - onUpdate: c, - onAnimationComplete: T_( - u.onComplete, - d.onAnimationComplete - ) - } - ) - } - ); -}); -pB.displayName = "MenuList"; -var hB = _e((e, t) => { - const r = Uo(); - return /* @__PURE__ */ L.jsx( - ge.button, - { - ref: t, - ...e, - __css: { - display: "inline-flex", - appearance: "none", - alignItems: "center", - outline: 0, - ...r.button - } - } - ); -}), mB = _e( - (e, t) => { - const { children: r, as: n, ...o } = e, a = rB(o, t), i = n || hB; - return /* @__PURE__ */ L.jsx( - i, - { - ...a, - className: Xe("chakra-menu__menu-button", e.className), - children: /* @__PURE__ */ L.jsx( - ge.span, - { - __css: { pointerEvents: "none", flex: "1 1 auto", minW: 0 }, - children: e.children - } - ) - } - ); - } -); -mB.displayName = "MenuButton"; -var vB = (e) => { - const { className: t, ...r } = e, n = Uo(); - return /* @__PURE__ */ L.jsx( - ge.hr, - { - "aria-orientation": "horizontal", - className: Xe("chakra-menu__divider", t), - ...r, - __css: n.divider - } - ); -}; -vB.displayName = "MenuDivider"; -var gB = { - slideInBottom: { - ...ua, - custom: { offsetY: 16, reverse: !0 } - }, - slideInRight: { - ...ua, - custom: { offsetX: 16, reverse: !0 } - }, - slideInTop: { - ...ua, - custom: { offsetY: -16, reverse: !0 } - }, - slideInLeft: { - ...ua, - custom: { offsetX: -16, reverse: !0 } - }, - scale: { - ...fb, - custom: { initialScale: 0.95, reverse: !0 } - }, - none: {} -}, bB = ge(_n.section), yB = (e) => gB[e || "none"], ky = At( - (e, t) => { - const { preset: r, motionProps: n = yB(r), ...o } = e; - return /* @__PURE__ */ L.jsx(bB, { ref: t, ...n, ...o }); - } -); -ky.displayName = "ModalTransition"; -var xB = Object.defineProperty, SB = (e, t, r) => t in e ? xB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wB = (e, t, r) => (SB(e, typeof t != "symbol" ? t + "" : t, r), r), CB = class { - constructor() { - wB(this, "modals"), this.modals = /* @__PURE__ */ new Map(); - } - add(e) { - return this.modals.set(e, this.modals.size + 1), this.modals.size; - } - remove(e) { - this.modals.delete(e); - } - isTopModal(e) { - return e ? this.modals.get(e) === this.modals.size : !1; - } -}, bu = new CB(); -function Ey(e, t) { - const [r, n] = Ye(0); - return Fe(() => { - const o = e.current; - if (o) { - if (t) { - const a = bu.add(o); - n(a); - } - return () => { - bu.remove(o), n(0); - }; - } - }, [t, e]), r; -} -var _B = function(e) { - if (typeof document > "u") - return null; - var t = Array.isArray(e) ? e[0] : e; - return t.ownerDocument.body; -}, Qn = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Ii = {}, gc = 0, Py = function(e) { - return e && (e.host || Py(e.parentNode)); -}, kB = function(e, t) { - return t.map(function(r) { - if (e.contains(r)) - return r; - var n = Py(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; - }); -}, EB = function(e, t, r, n) { - var o = kB(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)); - }; - o.forEach(c); - var u = function(d) { - !d || l.has(d) || Array.prototype.forEach.call(d.children, function(f) { - if (s.has(f)) - u(f); - else { - 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(), gc++, function() { - i.forEach(function(d) { - 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); - }), gc--, gc || (Qn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Ii = {}); - }; -}, PB = function(e, t, r) { - r === void 0 && (r = "data-aria-hidden"); - var n = Array.from(Array.isArray(e) ? e : [e]), o = t || _B(e); - return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), EB(n, o, r, "aria-hidden")) : function() { - return null; - }; -}; -function TB(e) { - const { - isOpen: t, - onClose: r, - id: n, - closeOnOverlayClick: o = !0, - closeOnEsc: a = !0, - useInert: i = !0, - onOverlayClick: s, - onEsc: l - } = e, c = be(null), u = be(null), [d, f, p] = OB( - n, - "chakra-modal", - "chakra-modal--header", - "chakra-modal--body" - ); - AB(c, t && i); - const m = Ey(c, t), h = be(null), v = G((z) => { - h.current = z.target; - }, []), b = G( - (z) => { - z.key === "Escape" && (z.stopPropagation(), a && (r == null || r()), l == null || l()); - }, - [a, r, l] - ), [y, S] = Ye(!1), [_, w] = Ye(!1), M = G( - (z = {}, j = null) => ({ - role: "dialog", - ...z, - ref: St(j, c), - id: d, - tabIndex: -1, - "aria-modal": !0, - "aria-labelledby": y ? f : void 0, - "aria-describedby": _ ? p : void 0, - onClick: $t( - z.onClick, - (X) => X.stopPropagation() - ) - }), - [p, _, d, f, y] - ), P = G( - (z) => { - z.stopPropagation(), h.current === z.target && bu.isTopModal(c.current) && (o && (r == null || r()), s == null || s()); - }, - [r, o, s] - ), I = G( - (z = {}, j = null) => ({ - ...z, - ref: St(j, u), - onClick: $t(z.onClick, P), - onKeyDown: $t(z.onKeyDown, b), - onMouseDown: $t(z.onMouseDown, v) - }), - [b, v, P] - ); - return { - isOpen: t, - onClose: r, - headerId: f, - bodyId: p, - setBodyMounted: w, - setHeaderMounted: S, - dialogRef: c, - overlayRef: u, - getDialogProps: M, - getDialogContainerProps: I, - index: m - }; -} -function AB(e, t) { - const r = e.current; - Fe(() => { - if (!(!e.current || !t)) - return PB(e.current); - }, [t, e, r]); -} -function OB(e, ...t) { - const r = _r(), n = e || r; - return gt(() => t.map((o) => `${o}-${n}`), [n, t]); -} -var [RB, Xn] = Nt({ - name: "ModalStylesContext", - errorMessage: `useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [$B, wn] = Nt({ - strict: !0, - name: "ModalContext", - errorMessage: "useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``" -}), Ty = (e) => { - const t = { - scrollBehavior: "outside", - autoFocus: !0, - trapFocus: !0, - returnFocusOnClose: !0, - blockScrollOnMount: !0, - allowPinchZoom: !1, - motionPreset: "scale", - lockFocusAcrossFrames: !0, - ...e - }, { - portalProps: r, - children: n, - autoFocus: o, - trapFocus: a, - initialFocusRef: i, - finalFocusRef: s, - returnFocusOnClose: l, - blockScrollOnMount: c, - allowPinchZoom: u, - preserveScrollBarGap: d, - motionPreset: f, - lockFocusAcrossFrames: p, - onCloseComplete: m - } = t, h = Bo("Modal", t), b = { - ...TB(t), - autoFocus: o, - trapFocus: a, - initialFocusRef: i, - finalFocusRef: s, - returnFocusOnClose: l, - blockScrollOnMount: c, - allowPinchZoom: u, - preserveScrollBarGap: d, - motionPreset: f, - lockFocusAcrossFrames: p - }; - return /* @__PURE__ */ L.jsx($B, { value: b, children: /* @__PURE__ */ L.jsx(RB, { value: h, children: /* @__PURE__ */ L.jsx(Vo, { onExitComplete: m, children: b.isOpen && /* @__PURE__ */ L.jsx(Qa, { ...r, children: n }) }) }) }); -}; -Ty.displayName = "Modal"; -var rs = "right-scroll-bar-position", ns = "width-before-scroll-bar", DB = "with-scroll-bars-hidden", MB = "--removed-body-scroll-bar-size", Ay = kb(), bc = function() { -}, ol = U.forwardRef(function(e, t) { - var r = U.useRef(null), n = U.useState({ - onScrollCapture: bc, - onWheelCapture: bc, - onTouchMoveCapture: bc - }), 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 = wb(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = f, w = Sb([r, t]), M = Dr(Dr({}, S), o); - return U.createElement( - U.Fragment, - null, - u && U.createElement(_, { sideCar: Ay, 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) - ); -}); -ol.defaultProps = { - enabled: !0, - removeScrollBar: !0, - inert: !1 -}; -ol.classNames = { - fullWidth: ns, - zeroRight: rs -}; -var dm, IB = function() { - if (dm) - return dm; - if (typeof __webpack_nonce__ < "u") - return __webpack_nonce__; -}; -function FB() { - if (!document) - return null; - var e = document.createElement("style"); - e.type = "text/css"; - var t = IB(); - return t && e.setAttribute("nonce", t), e; -} -function NB(e, t) { - e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t)); -} -function jB(e) { - var t = document.head || document.getElementsByTagName("head")[0]; - t.appendChild(e); -} -var BB = function() { - var e = 0, t = null; - return { - add: function(r) { - e == 0 && (t = FB()) && (NB(t, r), jB(t)), e++; - }, - remove: function() { - e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null); - } - }; -}, zB = function() { - var e = BB(); - return function(t, r) { - U.useEffect(function() { - return e.add(t), function() { - e.remove(); - }; - }, [t && r]); - }; -}, Oy = function() { - var e = zB(), t = function(r) { - var n = r.styles, o = r.dynamic; - return e(n, o), null; - }; - return t; -}, VB = { - left: 0, - top: 0, - right: 0, - gap: 0 -}, yc = function(e) { - return parseInt(e || "", 10) || 0; -}, LB = 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 [yc(r), yc(n), yc(o)]; -}, WB = function(e) { - if (e === void 0 && (e = "margin"), typeof window > "u") - return VB; - var t = LB(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]) - }; -}, UB = Oy(), HB = 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(DB, ` { - overflow: hidden `).concat(n, `; - padding-right: `).concat(s, "px ").concat(n, `; - } - body { - overflow: hidden `).concat(n, `; - overscroll-behavior: contain; - `).concat([ - t && "position: relative ".concat(n, ";"), - r === "margin" && ` - padding-left: `.concat(o, `px; - padding-top: `).concat(a, `px; - padding-right: `).concat(i, `px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s, "px ").concat(n, `; - `), - r === "padding" && "padding-right: ".concat(s, "px ").concat(n, ";") - ].filter(Boolean).join(""), ` - } - - .`).concat(rs, ` { - right: `).concat(s, "px ").concat(n, `; - } - - .`).concat(ns, ` { - margin-right: `).concat(s, "px ").concat(n, `; - } - - .`).concat(rs, " .").concat(rs, ` { - right: 0 `).concat(n, `; - } - - .`).concat(ns, " .").concat(ns, ` { - margin-right: 0 `).concat(n, `; - } - - body { - `).concat(MB, ": ").concat(s, `px; - } -`); -}, YB = function(e) { - var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n, a = U.useMemo(function() { - return WB(o); - }, [o]); - return U.createElement(UB, { styles: HB(a, !t, o, r ? "" : "!important") }); -}, yu = !1; -if (typeof window < "u") - try { - var Fi = Object.defineProperty({}, "passive", { - get: function() { - return yu = !0, !0; - } - }); - window.addEventListener("test", Fi, Fi), window.removeEventListener("test", Fi, Fi); - } catch { - yu = !1; - } -var eo = yu ? { passive: !1 } : !1, GB = function(e) { - return e.tagName === "TEXTAREA"; -}, Ry = function(e, t) { - var r = window.getComputedStyle(e); - return ( - // not-not-scrollable - r[t] !== "hidden" && // contains scroll inside self - !(r.overflowY === r.overflowX && !GB(e) && r[t] === "visible") - ); -}, qB = function(e) { - return Ry(e, "overflowY"); -}, XB = function(e) { - return Ry(e, "overflowX"); -}, fm = function(e, t) { - var r = t.ownerDocument, n = t; - do { - typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host); - var o = $y(e, n); - if (o) { - var a = Dy(e, n), i = a[1], s = a[2]; - if (i > s) - return !0; - } - n = n.parentNode; - } while (n && n !== r.body); - return !1; -}, KB = function(e) { - var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight; - return [ - t, - r, - n - ]; -}, ZB = function(e) { - var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth; - return [ - t, - r, - n - ]; -}, $y = function(e, t) { - return e === "v" ? qB(t) : XB(t); -}, Dy = function(e, t) { - return e === "v" ? KB(t) : ZB(t); -}, JB = function(e, t) { - return e === "h" && t === "rtl" ? -1 : 1; -}, QB = function(e, t, r, n, o) { - var a = JB(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 = Dy(e, s), m = p[0], h = p[1], v = p[2], b = h - v - a * m; - (m || b) && $y(e, s) && (d += b, f += m), s = s.parentNode; - } while ( - // portaled content - !l && s !== document.body || // self content - l && (t.contains(s) || t === s) - ); - 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]; -}, pm = function(e) { - return [e.deltaX, e.deltaY]; -}, hm = function(e) { - return e && "current" in e ? e.current : e; -}, ez = function(e, t) { - return e[0] === t[0] && e[1] === t[1]; -}, tz = function(e) { - return ` - .block-interactivity-`.concat(e, ` {pointer-events: none;} - .allow-interactivity-`).concat(e, ` {pointer-events: all;} -`); -}, rz = 0, to = []; -function nz(e) { - var t = U.useRef([]), r = U.useRef([0, 0]), n = U.useRef(), o = U.useState(rz++)[0], a = U.useState(Oy)[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 = ZF([e.lockRef.current], (e.shards || []).map(hm), !0).filter(Boolean); - return h.forEach(function(v) { - return v.classList.add("allow-interactivity-".concat(o)); - }), function() { - document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(v) { - return v.classList.remove("allow-interactivity-".concat(o)); - }); - }; - } - }, [e.inert, e.lockRef.current, e.shards]); - 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], _ = "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 = fm(P, M); - if (!I) - return !0; - if (I ? w = P : (w = P === "v" ? "h" : "v", I = fm(P, M)), !I) - return !1; - if (!n.current && "changedTouches" in h && (S || _) && (n.current = w), !w) - return !0; - var z = n.current || w; - return QB(z, v, h, z === "h" ? S : _, !0); - }, []), l = U.useCallback(function(h) { - var v = h; - if (!(!to.length || to[to.length - 1] !== a)) { - var b = "deltaY" in v ? pm(v) : Ni(v), y = t.current.filter(function(w) { - return w.name === v.type && w.target === v.target && ez(w.delta, b); - })[0]; - if (y && y.should) { - v.cancelable && v.preventDefault(); - return; - } - if (!y) { - var S = (i.current.shards || []).map(hm).filter(Boolean).filter(function(w) { - return w.contains(v.target); - }), _ = 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(_) { - return _ !== S; - }); - }, 1); - }, []), u = U.useCallback(function(h) { - r.current = Ni(h), n.current = void 0; - }, []), d = U.useCallback(function(h) { - c(h.type, pm(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 to.push(a), e.setCallbacks({ - onScrollCapture: d, - onWheelCapture: d, - onTouchMoveCapture: f - }), 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, 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: tz(o) }) : null, - p ? U.createElement(YB, { gapMode: e.gapMode }) : null - ); -} -const oz = JF(Ay, nz); -var My = U.forwardRef(function(e, t) { - return U.createElement(ol, Dr({}, e, { ref: t, sideCar: oz })); -}); -My.classNames = ol.classNames; -const az = My; -function Iy(e) { - const { - autoFocus: t, - trapFocus: r, - dialogRef: n, - initialFocusRef: o, - blockScrollOnMount: a, - allowPinchZoom: i, - finalFocusRef: s, - returnFocusOnClose: l, - preserveScrollBarGap: c, - lockFocusAcrossFrames: u, - isOpen: d - } = wn(), [f, p] = Kg(); - Fe(() => { - !f && p && setTimeout(p); - }, [f, p]); - const m = Ey(n, d); - return /* @__PURE__ */ L.jsx( - ny, - { - autoFocus: t, - isDisabled: !r, - initialFocusRef: o, - finalFocusRef: s, - restoreFocus: l, - contentRef: n, - lockFocusAcrossFrames: u, - children: /* @__PURE__ */ L.jsx( - az, - { - removeScrollBar: !c, - allowPinchZoom: i, - enabled: m === 1 && a, - forwardProps: !0, - children: e.children - } - ) - } - ); -} -var iz = _e( - (e, t) => { - const { - className: r, - children: n, - containerProps: o, - motionProps: a, - ...i - } = 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", - width: "100%", - outline: 0, - ...f.dialog - }, m = { - display: "flex", - width: "100vw", - height: "$100vh", - position: "fixed", - left: 0, - top: 0, - ...f.dialogContainer - }, { motionPreset: h } = wn(); - return /* @__PURE__ */ L.jsx(Iy, { children: /* @__PURE__ */ L.jsx( - ge.div, - { - ...u, - className: "chakra-modal__content-container", - tabIndex: -1, - __css: m, - children: /* @__PURE__ */ L.jsx( - ky, - { - preset: h, - motionProps: a, - className: d, - ...c, - __css: p, - children: n - } - ) - } - ) }); - } -); -iz.displayName = "ModalContent"; -var [sz, lz] = Nt(), cz = { - start: { ltr: "left", rtl: "right" }, - end: { ltr: "right", rtl: "left" } -}; -function uz(e, t) { - var r, n; - if (e) - return (n = (r = cz[e]) == null ? void 0 : r[t]) != null ? n : e; -} -function JV(e) { - var t; - const { - isOpen: r, - onClose: n, - placement: o = "right", - children: a, - ...i - } = e, s = sn(), l = (t = s.components) == null ? void 0 : t.Drawer, c = uz(o, s.direction); - return /* @__PURE__ */ L.jsx(sz, { value: { placement: c }, children: /* @__PURE__ */ L.jsx( - Ty, - { - isOpen: r, - onClose: n, - styleConfig: l, - ...i, - children: a - } - ) }); -} -var dz = ge(pb), fz = _e( - (e, t) => { - const { - className: r, - children: n, - motionProps: o, - containerProps: a, - ...i - } = 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", - width: "100%", - outline: 0, - ...p.dialog - }, h = { - display: "flex", - width: "100vw", - height: "$100vh", - position: "fixed", - left: 0, - top: 0, - ...p.dialogContainer - }, { placement: v } = lz(); - return /* @__PURE__ */ L.jsx(Iy, { children: /* @__PURE__ */ L.jsx( - ge.div, - { - ...d, - className: "chakra-modal__content-container", - __css: h, - children: /* @__PURE__ */ L.jsx( - dz, - { - motionProps: o, - direction: v, - in: c, - className: f, - ...u, - __css: m, - children: n - } - ) - } - ) }); - } -); -fz.displayName = "DrawerContent"; -var pz = _e( - (e, t) => { - const { className: r, ...n } = e, o = Xe("chakra-modal__footer", r), i = { - display: "flex", - alignItems: "center", - justifyContent: "flex-end", - ...Xn().footer - }; - return /* @__PURE__ */ L.jsx( - ge.footer, - { - ref: t, - ...n, - __css: i, - className: o - } - ); - } -); -pz.displayName = "ModalFooter"; -var hz = _e( - (e, t) => { - 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, - ...Xn().header - }; - return /* @__PURE__ */ L.jsx( - ge.header, - { - ref: t, - className: i, - id: o, - ...n, - __css: l - } - ); - } -); -hz.displayName = "ModalHeader"; -var mz = ge(_n.div), vz = _e( - (e, t) => { - const { className: r, transition: n, motionProps: o, ...a } = e, i = Xe("chakra-modal__overlay", r), l = { - pos: "fixed", - left: "0", - top: "0", - w: "100vw", - h: "100vh", - ...Xn().overlay - }, { motionPreset: c } = wn(), d = o || (c === "none" ? {} : db); - return /* @__PURE__ */ L.jsx( - mz, - { - ...d, - __css: l, - ref: t, - className: i, - ...a - } - ); - } -); -vz.displayName = "ModalOverlay"; -var gz = _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 = Xn(); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ref: t, - className: i, - id: o, - ...n, - __css: s.body - } - ); -}); -gz.displayName = "ModalBody"; -var bz = _e( - (e, t) => { - const { onClick: r, className: n, ...o } = e, { onClose: a } = wn(), i = Xe("chakra-modal__close-btn", n), s = Xn(); - return /* @__PURE__ */ L.jsx( - cb, - { - ref: t, - __css: s.closeButton, - className: i, - onClick: $t(r, (l) => { - l.stopPropagation(), a(); - }), - ...o - } - ); - } -); -bz.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 yz(e) { - return { - root: `slider-root-${e}`, - getThumb: (t) => `slider-thumb-${e}-${t}`, - getInput: (t) => `slider-input-${e}-${t}`, - track: `slider-track-${e}`, - innerTrack: `slider-filled-track-${e}`, - getMarker: (t) => `slider-marker-${e}-${t}`, - output: `slider-output-${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 Fy(e) { - const { orientation: t, thumbPercents: r, thumbRects: n, isReversed: o } = e, a = (h) => { - var v; - const b = (v = n[h]) != null ? v : os; - return { - position: "absolute", - userSelect: "none", - WebkitUserSelect: "none", - MozUserSelect: "none", - msUserSelect: "none", - touchAction: "none", - ...da({ - orientation: t, - vertical: { - bottom: `calc(${r[h]}% - ${b.height / 2}px)` - }, - horizontal: { - left: `calc(${r[h]}% - ${b.width / 2}px)` - } - }) - }; - }, i = t === "vertical" ? n.reduce( - (h, v) => ji(h).height > ji(v).height ? h : v, - os - ) : n.reduce( - (h, v) => ji(h).width > ji(v).width ? h : v, - os - ), s = { - position: "relative", - touchAction: "none", - WebkitTapHighlightColor: "rgba(0,0,0,0)", - userSelect: "none", - outline: 0, - ...da({ - orientation: t, - vertical: i ? { - paddingLeft: i.width / 2, - paddingRight: i.width / 2 - } : {}, - horizontal: i ? { - paddingTop: i.height / 2, - paddingBottom: i.height / 2 - } : {} - }) - }, l = { - position: "absolute", - ...da({ - orientation: t, - vertical: { - left: "50%", - transform: "translateX(-50%)", - height: "100%" - }, - horizontal: { - top: "50%", - transform: "translateY(-50%)", - width: "100%" - } - }) - }, c = r.length === 1, u = [0, o ? 100 - r[0] : r[0]], d = c ? u : r; - let f = d[0]; - !c && o && (f = 100 - f); - const p = Math.abs(d[d.length - 1] - d[0]), m = { - ...l, - ...da({ - orientation: t, - vertical: o ? { height: `${p}%`, top: `${f}%` } : { height: `${p}%`, bottom: `${f}%` }, - horizontal: o ? { width: `${p}%`, right: `${f}%` } : { width: `${p}%`, left: `${f}%` } - }) - }; - return { trackStyle: l, innerTrackStyle: m, rootStyle: s, getThumbStyle: a }; -} -function Ny(e) { - const { isReversed: t, direction: r, orientation: n } = e; - return r === "ltr" || n === "vertical" ? t : !t; -} -function xz(e, t, r, n) { - return e.addEventListener(t, r, n), () => { - e.removeEventListener(t, r, n); - }; -} -function Sz(e) { - const t = Cz(e); - return typeof t.PointerEvent < "u" && e instanceof t.PointerEvent ? e.pointerType === "mouse" : e instanceof t.MouseEvent; -} -function jy(e) { - return !!e.touches; -} -function wz(e) { - return jy(e) && e.touches.length > 1; -} -function Cz(e) { - var t; - return (t = e.view) != null ? t : window; -} -function _z(e, t = "page") { - const r = e.touches[0] || e.changedTouches[0]; - return { x: r[`${t}X`], y: r[`${t}Y`] }; -} -function kz(e, t = "page") { - return { - x: e[`${t}X`], - y: e[`${t}Y`] - }; -} -function By(e, t = "page") { - return jy(e) ? _z(e, t) : kz(e, t); -} -function Ez(e) { - return (t) => { - const r = Sz(t); - (!r || r && t.button === 0) && e(t); - }; -} -function Pz(e, t = !1) { - function r(o) { - e(o, { point: By(o) }); - } - return t ? Ez(r) : r; -} -function as(e, t, r, n) { - return xz(e, t, Pz(r, t === "pointerdown"), n); -} -var Tz = Object.defineProperty, Az = (e, t, r) => t in e ? Tz(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hr = (e, t, r) => (Az(e, typeof t != "symbol" ? t + "" : t, r), r), Oz = 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 = xc(this.lastEventInfo, this.history), l = this.startEvent !== null, c = Mz(s.offset, { x: 0, y: 0 }) >= this.threshold; - if (!l && !c) - return; - const { timestamp: u } = Ep(); - 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, C$.update(this.updatePoint, !0); - }), hr(this, "onPointerUp", (s, l) => { - const c = xc(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, wz(e)) - return; - this.handlers = t, r && (this.threshold = r), e.stopPropagation(), e.preventDefault(); - const o = { point: By(e) }, { timestamp: a } = Ep(); - this.history = [{ ...o.point, timestamp: a }]; - const { onSessionStart: i } = t; - i == null || i(e, xc(o, this.history)), this.removeListeners = Dz( - as(this.win, "pointermove", this.onPointerMove), - as(this.win, "pointerup", this.onPointerUp), - as(this.win, "pointercancel", this.onPointerUp) - ); - } - updateHandlers(e) { - this.handlers = e; - } - end() { - var e; - (e = this.removeListeners) == null || e.call(this), _$.update(this.updatePoint); - } -}; -function mm(e, t) { - return { x: e.x - t.x, y: e.y - t.y }; -} -function xc(e, t) { - return { - point: e.point, - delta: mm(e.point, t[t.length - 1]), - offset: mm(e.point, t[0]), - velocity: $z(t, 0.1) - }; -} -var Rz = (e) => e * 1e3; -function $z(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 > Rz(t))); ) - r--; - if (!n) - return { x: 0, y: 0 }; - const a = (o.timestamp - n.timestamp) / 1e3; - if (a === 0) - return { x: 0, y: 0 }; - const i = { - x: (o.x - n.x) / a, - y: (o.y - n.y) / a - }; - return i.x === 1 / 0 && (i.x = 0), i.y === 1 / 0 && (i.y = 0), i; -} -function Dz(...e) { - return (t) => e.reduce((r, n) => n(r), t); -} -function Sc(e, t) { - return Math.abs(e - t); -} -function vm(e) { - return "x" in e && "y" in e; -} -function Mz(e, t) { - if (typeof e == "number" && typeof t == "number") - return Sc(e, t); - if (vm(e) && vm(t)) { - const r = Sc(e.x, t.x), n = Sc(e.y, t.y); - return Math.sqrt(r ** 2 + n ** 2); - } - return 0; -} -function zy(e) { - const t = be(null); - return t.current = e, t; -} -function Vy(e, t) { - const { - onPan: r, - onPanStart: n, - onPanEnd: o, - onPanSessionStart: a, - onPanSessionEnd: i, - threshold: s - } = t, l = !!(r || n || o || a || i), c = be(null), u = zy({ - onSessionStart: a, - onSessionEnd: i, - onStart: n, - onMove: r, - onEnd(d, f) { - c.current = null, o == null || o(d, f); - } - }); - Fe(() => { - var d; - (d = c.current) == null || d.updateHandlers(u.current); - }), Fe(() => { - const d = e.current; - if (!d || !l) - return; - function f(p) { - c.current = new Oz(p, u.current, s); - } - return as(d, "pointerdown", f); - }, [e, l, u, s]), Fe(() => () => { - var d; - (d = c.current) == null || d.end(), c.current = null; - }, []); -} -function Iz(e, t) { - if (!e) { - t(void 0); - return; - } - t({ width: e.offsetWidth, height: e.offsetHeight }); - const r = e.ownerDocument.defaultView ?? window, n = new r.ResizeObserver((o) => { - if (!Array.isArray(o) || !o.length) - return; - const [a] = o; - let i, s; - if ("borderBoxSize" in a) { - const l = a.borderBoxSize, c = Array.isArray(l) ? l[0] : l; - i = c.inlineSize, s = c.blockSize; - } else - i = e.offsetWidth, s = e.offsetHeight; - t({ width: i, height: s }); - }); - return n.observe(e, { box: "border-box" }), () => n.unobserve(e); -} -var Fz = globalThis != null && globalThis.document ? $s : Fe; -function Nz(e, t) { - var r, n; - if (!e || !e.parentElement) - return; - const o = (n = (r = e.ownerDocument) == null ? void 0 : r.defaultView) != null ? n : window, a = new o.MutationObserver(() => { - t(); - }); - return a.observe(e.parentElement, { childList: !0 }), () => { - a.disconnect(); - }; -} -function Ly({ - getNodes: e, - observeMutation: t = !0 -}) { - const [r, n] = Ye([]), [o, a] = Ye(0); - return Fz(() => { - const i = e(), s = i.map( - (l, c) => Iz(l, (u) => { - n((d) => [ - ...d.slice(0, c), - u, - ...d.slice(c + 1) - ]); - }) - ); - if (t) { - const l = i[0]; - s.push( - Nz(l, () => { - a((c) => c + 1); - }) - ); - } - return () => { - s.forEach((l) => { - l == null || l(); - }); - }; - }, [o]), r; -} -function jz(e) { - return typeof e == "object" && e !== null && "current" in e; -} -function Bz(e) { - const [t] = Ly({ - observeMutation: !1, - getNodes() { - return [jz(e) ? e.current : e]; - } - }); - return t; -} -function zz(e) { - const { - min: t = 0, - max: r = 100, - onChange: n, - value: o, - defaultValue: a, - isReversed: i, - direction: s = "ltr", - orientation: l = "horizontal", - id: c, - isDisabled: u, - isReadOnly: d, - onChangeStart: f, - onChangeEnd: p, - step: m = 1, - getAriaValueText: h, - "aria-valuetext": v, - "aria-label": b, - "aria-labelledby": y, - name: S, - focusThumbOnChange: _ = !0, - minStepsBetweenThumbs: w = 0, - ...M - } = e, P = Jt(f), I = Jt(p), z = Jt(h), j = Ny({ - isReversed: i, - direction: s, - orientation: l - }), [X, ne] = gd({ - value: o, - defaultValue: a ?? [25, 75], - onChange: n - }); - if (!Array.isArray(X)) - 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((q) => Ca(q, t, r)), V = w * m, T = Vz(N, t, r, V), A = be({ - eventSource: null, - value: [], - valueBounds: [] - }); - A.current.value = N, A.current.valueBounds = T; - const B = N.map((q) => r - q + t), H = (j ? B : N).map((q) => Ps(q, t, r)), O = l === "vertical", Z = be(null), Y = be(null), ae = Ly({ - getNodes() { - const q = Y.current, ie = q == null ? void 0 : q.querySelectorAll("[role=slider]"); - return ie ? Array.from(ie) : []; - } - }), R = _r(), he = yz(c ?? R), le = G( - (q) => { - var ie, xe; - if (!Z.current) - return; - A.current.eventSource = "pointer"; - const Ce = Z.current.getBoundingClientRect(), { clientX: He, clientY: wt } = (xe = (ie = q.touches) == null ? void 0 : ie[0]) != null ? xe : q, Ze = O ? Ce.bottom - wt : He - Ce.left, nt = O ? Ce.height : Ce.width; - let Ur = Ze / nt; - return j && (Ur = 1 - Ur), gb(Ur, t, r); - }, - [O, j, r, t] - ), De = (r - t) / 10, ye = m || (r - t) / 100, we = gt( - () => ({ - setValueAtIndex(q, ie) { - if (!fe) - return; - const xe = A.current.valueBounds[q]; - ie = parseFloat(uu(ie, xe.min, ye)), ie = Ca(ie, xe.min, xe.max); - const Ce = [...A.current.value]; - Ce[q] = ie, ne(Ce); - }, - setActiveIndex: ce, - stepUp(q, ie = ye) { - const xe = A.current.value[q], Ce = j ? xe - ie : xe + ie; - we.setValueAtIndex(q, Ce); - }, - stepDown(q, ie = ye) { - const xe = A.current.value[q], Ce = j ? xe + ie : xe - ie; - we.setValueAtIndex(q, Ce); - }, - reset() { - ne(F.current); - } - }), - [ye, j, ne, fe] - ), ht = G( - (q) => { - const ie = q.key, Ce = { - ArrowRight: () => we.stepUp(D), - ArrowUp: () => we.stepUp(D), - ArrowLeft: () => we.stepDown(D), - ArrowDown: () => we.stepDown(D), - PageUp: () => we.stepUp(D, De), - PageDown: () => we.stepDown(D, De), - Home: () => { - const { min: He } = T[D]; - we.setValueAtIndex(D, He); - }, - End: () => { - const { max: He } = T[D]; - we.setValueAtIndex(D, He); - } - }[ie]; - Ce && (q.preventDefault(), q.stopPropagation(), Ce(q), A.current.eventSource = "keyboard"); - }, - [we, D, De, T] - ), { getThumbStyle: ke, rootStyle: dt, trackStyle: rt, innerTrackStyle: Ie } = gt( - () => Fy({ - isReversed: j, - orientation: l, - thumbRects: ae, - thumbPercents: H - }), - [j, l, H, ae] - ), se = G( - (q) => { - var ie; - const xe = q ?? D; - if (xe !== -1 && _) { - const Ce = he.getThumb(xe), He = (ie = Y.current) == null ? void 0 : ie.ownerDocument.getElementById(Ce); - He && setTimeout(() => He.focus()); - } - }, - [_, D, he] - ); - zo(() => { - A.current.eventSource === "keyboard" && (I == null || I(A.current.value)); - }, [N, I]); - const Oe = (q) => { - const ie = le(q) || 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 > A.current.value[He] && (He = He + wt.length - 1), ce(He), we.setValueAtIndex(He, ie), se(He); - }, Ot = (q) => { - if (D == -1) - return; - const ie = le(q) || 0; - ce(D), we.setValueAtIndex(D, ie), se(D); - }; - Vy(Y, { - onPanSessionStart(q) { - fe && (Q(!0), Oe(q), P == null || P(A.current.value)); - }, - onPanSessionEnd() { - fe && (Q(!1), I == null || I(A.current.value)); - }, - onPan(q) { - fe && Ot(q); - } - }); - const xt = G( - (q = {}, ie = null) => ({ - ...q, - ...M, - id: he.root, - ref: St(ie, Y), - tabIndex: -1, - "aria-disabled": ko(u), - "data-focused": ar(ee), - style: { ...q.style, ...dt } - }), - [M, u, ee, dt, he] - ), lt = G( - (q = {}, ie = null) => ({ - ...q, - ref: St(ie, Z), - id: he.track, - "data-disabled": ar(u), - style: { ...q.style, ...rt } - }), - [u, rt, he] - ), Vr = G( - (q = {}, ie = null) => ({ - ...q, - ref: ie, - id: he.innerTrack, - style: { - ...q.style, - ...Ie - } - }), - [Ie, he] - ), Lr = G( - (q, ie = null) => { - var xe; - const { index: Ce, ...He } = q, wt = N[Ce]; - if (wt == null) - throw new TypeError( - `[range-slider > thumb] Cannot find value at index \`${Ce}\`. The \`value\` or \`defaultValue\` length is : ${N.length}` - ); - const Ze = T[Ce]; - return { - ...He, - ref: ie, - role: "slider", - tabIndex: fe ? 0 : void 0, - id: he.getThumb(Ce), - "data-active": ar(J && D === Ce), - "aria-valuetext": (xe = z == null ? void 0 : z(wt)) != null ? xe : v == null ? void 0 : v[Ce], - "aria-valuemin": Ze.min, - "aria-valuemax": Ze.max, - "aria-valuenow": wt, - "aria-orientation": l, - "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: { ...q.style, ...ke(Ce) }, - onKeyDown: Eo(q.onKeyDown, ht), - onFocus: Eo(q.onFocus, () => { - oe(!0), ce(Ce); - }), - onBlur: Eo(q.onBlur, () => { - oe(!1), ce(-1); - }) - }; - }, - [ - he, - N, - T, - fe, - J, - D, - z, - v, - l, - u, - d, - b, - y, - ke, - ht, - oe - ] - ), Wr = G( - (q = {}, ie = null) => ({ - ...q, - ref: ie, - id: he.output, - htmlFor: N.map((xe, Ce) => he.getThumb(Ce)).join(" "), - "aria-live": "off" - }), - [he, N] - ), te = G( - (q, ie = null) => { - const { value: xe, ...Ce } = q, He = !(xe < t || xe > r), wt = xe >= N[0] && xe <= N[N.length - 1]; - let Ze = Ps(xe, t, r); - Ze = j ? 100 - Ze : Ze; - const nt = { - position: "absolute", - pointerEvents: "none", - ...da({ - orientation: l, - vertical: { bottom: `${Ze}%` }, - horizontal: { left: `${Ze}%` } - }) - }; - return { - ...Ce, - ref: ie, - id: he.getMarker(q.value), - role: "presentation", - "aria-hidden": !0, - "data-disabled": ar(u), - "data-invalid": ar(!He), - "data-highlighted": ar(wt), - style: { - ...q.style, - ...nt - } - }; - }, - [u, j, r, t, l, N, he] - ), ve = G( - (q, ie = null) => { - const { index: xe, ...Ce } = q; - return { - ...Ce, - ref: ie, - id: he.getInput(xe), - type: "hidden", - value: N[xe], - name: Array.isArray(S) ? S[xe] : `${S}-${xe}` - }; - }, - [S, N, he] - ); - return { - state: { - value: N, - isFocused: ee, - isDragging: J, - getThumbPercent: (q) => H[q], - getThumbMinValue: (q) => T[q].min, - getThumbMaxValue: (q) => T[q].max - }, - actions: we, - getRootProps: xt, - getTrackProps: lt, - getInnerTrackProps: Vr, - getThumbProps: Lr, - getMarkerProps: te, - getInputProps: ve, - getOutputProps: Wr - }; -} -function Vz(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 [Lz, al] = Nt({ - name: "SliderContext", - errorMessage: "useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within " -}), [Wz, il] = Nt({ - name: "RangeSliderStylesContext", - errorMessage: `useRangeSliderStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Uz = _e( - function(t, r) { - const n = { - orientation: "horizontal", - ...t - }, o = Bo("Slider", n), a = Br(n), { direction: i } = sn(); - a.direction = i; - const { getRootProps: s, ...l } = zz(a), c = gt( - () => ({ ...l, name: n.name }), - [l, n.name] - ); - return /* @__PURE__ */ L.jsx(Lz, { value: c, children: /* @__PURE__ */ L.jsx(Wz, { value: o, children: /* @__PURE__ */ L.jsx( - ge.div, - { - ...s({}, r), - className: "chakra-slider", - __css: o.container, - children: n.children - } - ) }) }); - } -); -Uz.displayName = "RangeSlider"; -var Hz = _e( - function(t, r) { - const { getThumbProps: n, getInputProps: o, name: a } = al(), i = il(), s = n(t, r); - return /* @__PURE__ */ L.jsxs( - ge.div, - { - ...s, - className: En("chakra-slider__thumb", t.className), - __css: i.thumb, - children: [ - s.children, - a && /* @__PURE__ */ L.jsx("input", { ...o({ index: t.index }) }) - ] - } - ); - } -); -Hz.displayName = "RangeSliderThumb"; -var Yz = _e( - function(t, r) { - const { getTrackProps: n } = al(), o = il(), a = n(t, r); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ...a, - className: En("chakra-slider__track", t.className), - __css: o.track, - "data-testid": "chakra-range-slider-track" - } - ); - } -); -Yz.displayName = "RangeSliderTrack"; -var Gz = _e(function(t, r) { - const { getInnerTrackProps: n } = al(), o = il(), a = n(t, r); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ...a, - className: "chakra-slider__filled-track", - __css: o.filledTrack - } - ); -}); -Gz.displayName = "RangeSliderFilledTrack"; -var qz = _e( - function(t, r) { - const { getMarkerProps: n } = al(), o = il(), a = n(t, r); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ...a, - className: En("chakra-slider__marker", t.className), - __css: o.mark - } - ); - } -); -qz.displayName = "RangeSliderMark"; -function Xz(e) { - var t; - const { - min: r = 0, - max: n = 100, - onChange: o, - value: a, - defaultValue: i, - isReversed: s, - direction: l = "ltr", - orientation: c = "horizontal", - id: u, - isDisabled: d, - isReadOnly: f, - onChangeStart: p, - onChangeEnd: m, - step: h = 1, - getAriaValueText: v, - "aria-valuetext": b, - "aria-label": y, - "aria-labelledby": S, - name: _, - focusThumbOnChange: w = !0, - ...M - } = e, P = Jt(p), I = Jt(m), z = Jt(v), j = Ny({ - isReversed: s, - direction: l, - orientation: c - }), [X, ne] = gd({ - value: a, - defaultValue: i ?? Zz(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 = Ca(X, r, n), N = n - F + r, T = Ps(j ? N : F, r, n), A = c === "vertical", B = zy({ - min: r, - max: n, - step: h, - isDisabled: d, - value: F, - isInteractive: D, - isReversed: j, - isVertical: A, - eventSource: null, - focusThumbOnChange: w, - orientation: c - }), C = be(null), H = be(null), O = be(null), Z = _r(), Y = u ?? Z, [ae, R] = [`slider-thumb-${Y}`, `slider-track-${Y}`], Se = G( - (te) => { - var ve, kr; - if (!C.current) - return; - const q = B.current; - q.eventSource = "pointer"; - 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 = gb(Ze, q.min, q.max); - return q.step && (nt = parseFloat( - uu(nt, q.min, q.step) - )), nt = Ca(nt, q.min, q.max), nt; - }, - [A, j, B] - ), he = G( - (te) => { - const ve = B.current; - ve.isInteractive && (te = parseFloat(uu(te, ve.min, fe)), te = Ca(te, ve.min, ve.max), ne(te)); - }, - [fe, ne, B] - ), le = gt( - () => ({ - stepUp(te = fe) { - const ve = j ? F - te : F + te; - he(ve); - }, - stepDown(te = fe) { - const ve = j ? F + te : F - te; - he(ve); - }, - reset() { - he(i || 0); - }, - stepTo(te) { - he(te); - } - }), - [he, j, F, fe, i] - ), De = G( - (te) => { - const ve = B.current, q = { - ArrowRight: () => le.stepUp(), - ArrowUp: () => le.stepUp(), - ArrowLeft: () => le.stepDown(), - ArrowDown: () => le.stepDown(), - PageUp: () => le.stepUp(ce), - PageDown: () => le.stepDown(ce), - Home: () => he(ve.min), - End: () => he(ve.max) - }[te.key]; - q && (te.preventDefault(), te.stopPropagation(), q(te), ve.eventSource = "keyboard"); - }, - [le, he, ce, B] - ), ye = (t = z == null ? void 0 : z(F)) != null ? t : b, we = Bz(H), { getThumbStyle: ht, rootStyle: ke, trackStyle: dt, innerTrackStyle: rt } = gt(() => { - const te = B.current, ve = we ?? { width: 0, height: 0 }; - return Fy({ - isReversed: j, - orientation: te.orientation, - thumbRects: [ve], - thumbPercents: [T] - }); - }, [j, we, T, B]), Ie = G(() => { - B.current.focusThumbOnChange && setTimeout(() => { - var ve; - return (ve = H.current) == null ? void 0 : ve.focus(); - }); - }, [B]); - zo(() => { - const te = B.current; - 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); - } - Vy(O, { - onPanSessionStart(te) { - const ve = B.current; - ve.isInteractive && (Q(!0), Ie(), se(te), P == null || P(ve.value)); - }, - onPanSessionEnd() { - const te = B.current; - te.isInteractive && (Q(!1), I == null || I(te.value)); - }, - onPan(te) { - B.current.isInteractive && se(te); - } - }); - const Oe = G( - (te = {}, ve = null) => ({ - ...te, - ...M, - ref: St(ve, O), - tabIndex: -1, - "aria-disabled": ko(d), - "data-focused": ar(ee), - style: { - ...te.style, - ...ke - } - }), - [M, d, ee, ke] - ), Ot = G( - (te = {}, ve = null) => ({ - ...te, - ref: St(ve, C), - id: R, - "data-disabled": ar(d), - style: { - ...te.style, - ...dt - } - }), - [d, R, dt] - ), xt = G( - (te = {}, ve = null) => ({ - ...te, - ref: ve, - style: { - ...te.style, - ...rt - } - }), - [rt] - ), lt = G( - (te = {}, ve = null) => ({ - ...te, - ref: St(ve, H), - role: "slider", - tabIndex: D ? 0 : void 0, - id: ae, - "data-active": ar(J), - "aria-valuetext": ye, - "aria-valuemin": r, - "aria-valuemax": n, - "aria-valuenow": F, - "aria-orientation": c, - "aria-disabled": ko(d), - "aria-readonly": ko(f), - "aria-label": y, - "aria-labelledby": y ? void 0 : S, - style: { - ...te.style, - ...ht(0) - }, - onKeyDown: Eo(te.onKeyDown, De), - onFocus: Eo(te.onFocus, () => oe(!0)), - onBlur: Eo(te.onBlur, () => oe(!1)) - }), - [ - D, - ae, - J, - ye, - r, - n, - F, - c, - d, - f, - y, - S, - ht, - De - ] - ), Vr = G( - (te, ve = null) => { - const kr = !(te.value < r || te.value > n), q = F >= te.value, ie = Ps(te.value, r, n), xe = { - position: "absolute", - pointerEvents: "none", - ...Kz({ - orientation: c, - vertical: { - bottom: j ? `${100 - ie}%` : `${ie}%` - }, - horizontal: { - left: j ? `${100 - ie}%` : `${ie}%` - } - }) - }; - return { - ...te, - ref: ve, - role: "presentation", - "aria-hidden": !0, - "data-disabled": ar(d), - "data-invalid": ar(!kr), - "data-highlighted": ar(q), - style: { - ...te.style, - ...xe - } - }; - }, - [d, j, n, r, c, F] - ), Lr = G( - (te = {}, ve = null) => ({ - ...te, - ref: ve, - type: "hidden", - value: F, - name: _ - }), - [_, F] - ); - return { - state: { value: F, isFocused: ee, isDragging: J }, - actions: le, - getRootProps: Oe, - getTrackProps: Ot, - getInnerTrackProps: xt, - getThumbProps: lt, - getMarkerProps: Vr, - getInputProps: Lr - }; -} -function Kz(e) { - const { orientation: t, vertical: r, horizontal: n } = e; - return t === "vertical" ? r : n; -} -function Zz(e, t) { - return t < e ? e : e + (t - e) / 2; -} -var [Jz, sl] = Nt({ - name: "SliderContext", - hookName: "useSliderContext", - providerName: "" -}), [Qz, ll] = Nt({ - name: "SliderStylesContext", - hookName: "useSliderStyles", - providerName: "" -}), eV = _e((e, t) => { - var r; - const n = { - ...e, - orientation: (r = e == null ? void 0 : e.orientation) != null ? r : "horizontal" - }, o = Bo("Slider", n), a = Br(n), { direction: i } = sn(); - a.direction = i; - const { getInputProps: s, getRootProps: l, ...c } = Xz(a), u = l(), d = s({}, t); - return /* @__PURE__ */ L.jsx(Jz, { value: c, children: /* @__PURE__ */ L.jsx(Qz, { value: o, children: /* @__PURE__ */ L.jsxs( - ge.div, - { - ...u, - className: En("chakra-slider", n.className), - __css: o.container, - children: [ - n.children, - /* @__PURE__ */ L.jsx("input", { ...d }) - ] - } - ) }) }); -}); -eV.displayName = "Slider"; -var tV = _e((e, t) => { - const { getThumbProps: r } = sl(), n = ll(), o = r(e, t); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ...o, - className: En("chakra-slider__thumb", e.className), - __css: n.thumb - } - ); -}); -tV.displayName = "SliderThumb"; -var rV = _e((e, t) => { - const { getTrackProps: r } = sl(), n = ll(), o = r(e, t); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ...o, - className: En("chakra-slider__track", e.className), - __css: n.track - } - ); -}); -rV.displayName = "SliderTrack"; -var nV = _e( - (e, t) => { - const { getInnerTrackProps: r } = sl(), n = ll(), o = r(e, t); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ...o, - className: En("chakra-slider__filled-track", e.className), - __css: n.filledTrack - } - ); - } -); -nV.displayName = "SliderFilledTrack"; -var oV = _e((e, t) => { - const { getMarkerProps: r } = sl(), n = ll(), o = r(e, t); - return /* @__PURE__ */ L.jsx( - ge.div, - { - ...o, - className: En("chakra-slider__marker", e.className), - __css: n.mark - } - ); -}); -oV.displayName = "SliderMark"; -var aV = { - exit: { - scale: 0.85, - opacity: 0, - transition: { - opacity: { duration: 0.15, easings: "easeInOut" }, - scale: { duration: 0.2, easings: "easeInOut" } - } - }, - enter: { - scale: 1, - opacity: 1, - transition: { - opacity: { easings: "easeOut", duration: 0.2 }, - scale: { duration: 0.2, ease: [0.175, 0.885, 0.4, 1.1] } - } - } -}, xu = (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 iV(e = {}) { - const { - openDelay: t = 0, - closeDelay: r = 0, - closeOnClick: n = !0, - closeOnMouseDown: o, - closeOnScroll: a, - closeOnPointerDown: i = o, - closeOnEsc: s = !0, - onOpen: l, - onClose: c, - placement: u, - id: d, - isOpen: f, - defaultIsOpen: p, - arrowSize: m = 10, - arrowShadowColor: h, - arrowPadding: v, - modifiers: b, - isDisabled: y, - gutter: S, - offset: _, - direction: w, - ...M - } = e, { isOpen: P, onOpen: I, onClose: z } = yy({ - isOpen: f, - defaultIsOpen: p, - onOpen: l, - onClose: c - }), { referenceRef: j, getPopperProps: X, getArrowInnerProps: ne, getArrowProps: J } = by({ - enabled: P, - placement: u, - arrowPadding: v, - modifiers: b, - gutter: S, - offset: _, - direction: w - }), Q = _r(), oe = `tooltip-${d ?? Q}`, D = be(null), ce = be(), fe = G(() => { - ce.current && (clearTimeout(ce.current), ce.current = void 0); - }, []), F = be(), N = G(() => { - F.current && (clearTimeout(F.current), F.current = void 0); - }, []), V = G(() => { - N(), z(); - }, [z, N]), T = sV(D, V), A = G(() => { - if (!y && !ce.current) { - P && T(); - const R = is(D); - ce.current = R.setTimeout(I, t); - } - }, [T, y, P, I, t]), B = G(() => { - fe(); - const R = is(D); - F.current = R.setTimeout(V, r); - }, [r, V, fe]), C = G(() => { - P && n && B(); - }, [n, B, P]), H = G(() => { - P && i && B(); - }, [i, B, P]), O = G( - (R) => { - P && R.key === "Escape" && B(); - }, - [P, B] - ); - _a( - () => xu(D), - "keydown", - s ? O : void 0 - ), _a( - () => { - if (!a) - return null; - const R = D.current; - if (!R) - return null; - const Se = Jb(R); - return Se.localName === "body" ? is(D) : Se; - }, - "scroll", - () => { - P && a && V(); - }, - { passive: !0, capture: !0 } - ), Fe(() => { - y && (fe(), P && z()); - }, [y, P, z, fe]), Fe(() => () => { - fe(), N(); - }, [fe, N]), _a(() => D.current, "pointerleave", B); - const Z = G( - (R = {}, Se = null) => ({ - ...R, - ref: St(D, Se, j), - onPointerEnter: $t(R.onPointerEnter, (le) => { - le.pointerType !== "touch" && A(); - }), - 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 - }), - [ - A, - B, - H, - P, - oe, - C, - j - ] - ), Y = G( - (R = {}, Se = null) => X( - { - ...R, - style: { - ...R.style, - [Et.arrowSize.var]: m ? `${m}px` : void 0, - [Et.arrowShadowColor.var]: h - } - }, - Se - ), - [X, m, h] - ), ae = G( - (R = {}, Se = null) => { - const he = { - ...R.style, - position: "relative", - transformOrigin: Et.transformOrigin.varRef - }; - return { - ref: Se, - ...M, - ...R, - id: oe, - role: "tooltip", - style: he - }; - }, - [M, oe] - ); - return { - isOpen: P, - show: A, - hide: B, - getTriggerProps: Z, - getTooltipProps: ae, - getTooltipPositionerProps: Y, - getArrowProps: J, - getArrowInnerProps: ne - }; -} -var wc = "chakra-ui:close-tooltip"; -function sV(e, t) { - return Fe(() => { - const r = xu(e); - return r.addEventListener(wc, t), () => r.removeEventListener(wc, t); - }, [t, e]), () => { - const r = xu(e), n = is(e); - r.dispatchEvent(new n.CustomEvent(wc)); - }; -} -function lV(e, t = []) { - const r = Object.assign({}, e); - for (const n of t) - n in r && delete r[n]; - return r; -} -function cV(e, t) { - const r = {}; - for (const n of t) - n in e && (r[n] = e[n]); - return r; -} -var uV = ge(_n.div), dV = _e((e, t) => { - var r, n; - const o = jo("Tooltip", e), a = Br(e), i = sn(), { - children: s, - label: l, - shouldWrapChildren: c, - "aria-label": u, - hasArrow: d, - bg: f, - portalProps: p, - background: m, - backgroundColor: h, - bgColor: v, - motionProps: b, - ...y - } = a, S = (n = (r = m ?? h) != null ? r : f) != null ? n : v; - if (S) { - o.bg = S; - const X = Hk(i, "colors", S); - o[Et.arrowBg.var] = X; - } - const _ = iV({ ...y, direction: i.direction }), w = typeof s == "string" || c; - let M; - if (w) - M = /* @__PURE__ */ L.jsx( - ge.span, - { - display: "inline-block", - tabIndex: 0, - ..._.getTriggerProps(), - children: s - } - ); - else { - const X = Ds.only(s); - M = Ka( - X, - _.getTriggerProps(X.props, X.ref) - ); - } - const P = !!u, I = _.getTooltipProps({}, t), z = P ? lV(I, ["role", "id"]) : I, j = cV(I, ["role", "id"]); - return l ? /* @__PURE__ */ L.jsxs(L.Fragment, { children: [ - M, - /* @__PURE__ */ L.jsx(Vo, { children: _.isOpen && /* @__PURE__ */ L.jsx(Qa, { ...p, children: /* @__PURE__ */ L.jsx( - ge.div, - { - ..._.getTooltipPositionerProps(), - __css: { - zIndex: o.zIndex, - pointerEvents: "none" - }, - children: /* @__PURE__ */ L.jsxs( - uV, - { - variants: aV, - initial: "exit", - animate: "enter", - exit: "exit", - ...b, - ...z, - __css: o, - children: [ - l, - P && /* @__PURE__ */ L.jsx(ge.span, { srOnly: !0, ...j, children: u }), - d && /* @__PURE__ */ L.jsx( - ge.div, - { - "data-popper-arrow": !0, - className: "chakra-tooltip__arrow-wrapper", - children: /* @__PURE__ */ L.jsx( - ge.div, - { - "data-popper-arrow-inner": !0, - className: "chakra-tooltip__arrow", - __css: { bg: o.bg } - } - ) - } - ) - ] - } - ) - } - ) }) }) - ] }) : /* @__PURE__ */ L.jsx(L.Fragment, { children: s }); -}); -dV.displayName = "Tooltip"; -const QV = At(({ children: e, gap: t, sx: r, ...n }, o) => /* @__PURE__ */ L.jsx(zm, { ref: o, sx: { gap: t, ...r }, ...n, children: e })); -export { - EV as $, - _c as A, - vV as B, - k0 as C, - Cu as D, - gV as E, - zm as F, - QV as G, - Wn as H, - zF as I, - vz as J, - iz as K, - hz as L, - Ty as M, - bz as N, - gz as O, - pz as P, - Gw as Q, - lB as R, - O0 as S, - Ra as T, - pN as U, - mB as V, - pB as W, - uB as X, - vB as Y, - l_ as Z, - P0 as _, - On as a, - Qa as a$, - s_ as a0, - sn as a1, - GV as a2, - Bo as a3, - fN as a4, - jo as a5, - lF as a6, - vd as a7, - ge as a8, - PV as a9, - Mv as aA, - Lt as aB, - zV as aC, - _$ as aD, - jV as aE, - VV as aF, - C$ as aG, - Ep as aH, - BV as aI, - OV as aJ, - kV as aK, - m$ as aL, - b$ as aM, - zk as aN, - g_ as aO, - q$ as aP, - Jt as aQ, - WV as aR, - zo as aS, - _n as aT, - mn as aU, - _e as aV, - Nt as aW, - Xe as aX, - Br as aY, - cb as aZ, - Vo as a_, - _y as aa, - YV as ab, - AF as ac, - IF as ad, - DF as ae, - uN as af, - Ms as ag, - $$ as ah, - Uj as ai, - eV as aj, - rV as ak, - nV as al, - tV as am, - Uz as an, - Yz as ao, - Gz as ap, - Hz as aq, - JV as ar, - fz as as, - mV as at, - Bu as au, - wV as av, - _V as aw, - i_ as ax, - Fa as ay, - sv as az, - at as b, - Xj as b$, - lv as b0, - c$ as b1, - u$ as b2, - bF as b3, - gd as b4, - St as b5, - $t as b6, - AV as b7, - lu as b8, - Qr as b9, - Et as bA, - Lo as bB, - RV as bC, - de as bD, - TV as bE, - SN as bF, - Ke as bG, - $E as bH, - RE as bI, - $V as bJ, - jE as bK, - AE as bL, - WE as bM, - MV as bN, - eC as bO, - rC as bP, - ny as bQ, - MF as bR, - OF as bS, - vb as bT, - mb as bU, - $F as bV, - dN as bW, - ly as bX, - ay as bY, - vN as bZ, - Cy as b_, - Ar as ba, - hb as bb, - HV as bc, - FF as bd, - T_ as be, - Ca as bf, - jF as bg, - BF as bh, - _a as bi, - Pl as bj, - NV as bk, - FV as bl, - sN as bm, - k_ as bn, - iy as bo, - hN as bp, - Uo as bq, - KV as br, - XV as bs, - cB as bt, - yy as bu, - by as bv, - Gj as bw, - CN as bx, - qV as by, - qj as bz, - ZS as c, - hk as c$, - Qj as c0, - tB as c1, - rB as c2, - Wo as c3, - Jj as c4, - Zj as c5, - Kj as c6, - wy as c7, - nB as c8, - oB as c9, - je as cA, - Dn as cB, - Y_ as cC, - mk as cD, - DV as cE, - Nc as cF, - G_ as cG, - Ak as cH, - fs as cI, - Hk as cJ, - Bk as cK, - uv as cL, - q_ as cM, - Dk as cN, - or as cO, - X_ as cP, - tk as cQ, - pa as cR, - Rk as cS, - hv as cT, - Us as cU, - Uk as cV, - rk as cW, - sk as cX, - Je as cY, - Lu as cZ, - nk as c_, - ZV as ca, - $B as cb, - Iy as cc, - lz as cd, - TB as ce, - wn as cf, - Ey as cg, - Xn as ch, - v_ as ci, - G$ as cj, - qz as ck, - Lz as cl, - oV as cm, - Jz as cn, - zz as co, - al as cp, - il as cq, - Xz as cr, - sl as cs, - ll as ct, - I$ as cu, - Yl as cv, - H$ as cw, - LV as cx, - fk as cy, - Wi as cz, - yr as d, - pk as d0, - R_ as d1, - ok as d2, - ak as d3, - ik as d4, - Gk as d5, - Yk as d6, - IV as d7, - iV as d8, - xF as d9, - wF as da, - pb as db, - _F as dc, - db as dd, - cu as de, - fb as df, - ua as dg, - Um as e, - JS as f, - bV as g, - QS as h, - wm as i, - In as j, - yV as k, - vf as l, - a1 as m, - SV as n, - L as o, - tC as p, - Yn as q, - hV as r, - Ec as s, - xV as t, - CV as u, - w1 as v, - Em as w, - dV as x, - sy as y, - Ta as z -}; diff --git a/dist/asn1-65d0271f.mjs b/dist/asn1-65d0271f.mjs deleted file mode 100644 index f075f0865..000000000 --- a/dist/asn1-65d0271f.mjs +++ /dev/null @@ -1,102 +0,0 @@ -function u(i) { - for (var s = {}, c = i.split(" "), T = 0; T < c.length; ++T) - s[c[T]] = !0; - return s; -} -const o = { - keywords: u("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"), - cmipVerbs: u("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"), - compareTypes: u("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"), - status: u("current deprecated mandatory obsolete"), - tags: u("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"), - storage: u("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"), - modifier: u("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"), - accessTypes: u("not-accessible accessible-for-notify read-only read-create read-write"), - multiLineStrings: !0 -}; -function L(i) { - var s = i.keywords || o.keywords, c = i.cmipVerbs || o.cmipVerbs, T = i.compareTypes || o.compareTypes, N = i.status || o.status, d = i.tags || o.tags, f = i.storage || o.storage, m = i.modifier || o.modifier, C = i.accessTypes || o.accessTypes, R = i.multiLineStrings || o.multiLineStrings, y = i.indentStatements !== !1, A = /[\|\^]/, E; - function D(e, n) { - var t = e.next(); - if (t == '"' || t == "'") - return n.tokenize = g(t), n.tokenize(e, n); - if (/[\[\]\(\){}:=,;]/.test(t)) - return E = t, "punctuation"; - if (t == "-" && e.eat("-")) - return e.skipToEnd(), "comment"; - if (/\d/.test(t)) - return e.eatWhile(/[\w\.]/), "number"; - if (A.test(t)) - return e.eatWhile(A), "operator"; - e.eatWhile(/[\w\-]/); - var r = e.current(); - return s.propertyIsEnumerable(r) ? "keyword" : c.propertyIsEnumerable(r) ? "variableName" : T.propertyIsEnumerable(r) ? "atom" : N.propertyIsEnumerable(r) ? "comment" : d.propertyIsEnumerable(r) ? "typeName" : f.propertyIsEnumerable(r) || m.propertyIsEnumerable(r) || C.propertyIsEnumerable(r) ? "modifier" : "variableName"; - } - function g(e) { - return function(n, t) { - for (var r = !1, l, O = !1; (l = n.next()) != null; ) { - if (l == e && !r) { - var I = n.peek(); - I && (I = I.toLowerCase(), (I == "b" || I == "h" || I == "o") && n.next()), O = !0; - break; - } - r = !r && l == "\\"; - } - return (O || !(r || R)) && (t.tokenize = null), "string"; - }; - } - function p(e, n, t, r, l) { - this.indented = e, this.column = n, this.type = t, this.align = r, this.prev = l; - } - function a(e, n, t) { - var r = e.indented; - return e.context && e.context.type == "statement" && (r = e.context.indented), e.context = new p(r, n, t, null, e.context); - } - function S(e) { - var n = e.context.type; - return (n == ")" || n == "]" || n == "}") && (e.indented = e.context.indented), e.context = e.context.prev; - } - return { - name: "asn1", - startState: function() { - return { - tokenize: null, - context: new p(-2, 0, "top", !1), - indented: 0, - startOfLine: !0 - }; - }, - token: function(e, n) { - var t = n.context; - if (e.sol() && (t.align == null && (t.align = !1), n.indented = e.indentation(), n.startOfLine = !0), e.eatSpace()) - return null; - E = null; - var r = (n.tokenize || D)(e, n); - if (r == "comment") - return r; - if (t.align == null && (t.align = !0), (E == ";" || E == ":" || E == ",") && t.type == "statement") - S(n); - else if (E == "{") - a(n, e.column(), "}"); - else if (E == "[") - a(n, e.column(), "]"); - else if (E == "(") - a(n, e.column(), ")"); - else if (E == "}") { - for (; t.type == "statement"; ) - t = S(n); - for (t.type == "}" && (t = S(n)); t.type == "statement"; ) - t = S(n); - } else - E == t.type ? S(n) : y && ((t.type == "}" || t.type == "top") && E != ";" || t.type == "statement" && E == "newstatement") && a(n, e.column(), "statement"); - return n.startOfLine = !1, r; - }, - languageData: { - indentOnInput: /^\s*[{}]$/, - commentTokens: { line: "--" } - } - }; -} -export { - L as asn1 -}; diff --git a/dist/chakra.d.ts b/dist/chakra.d.ts deleted file mode 100644 index 9c934e09a..000000000 --- a/dist/chakra.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './src/chakra' diff --git a/dist/chakra.mjs b/dist/chakra.mjs deleted file mode 100644 index 0066d5031..000000000 --- a/dist/chakra.mjs +++ /dev/null @@ -1,8740 +0,0 @@ -(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-801ab823.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-801ab823.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 Ws = /* @__PURE__ */ ro(function(e, n) { - return Or(function(o, r) { - return o[r] = e(n[r], r, n), o; - }, {}, Vr(n)); -}); -const Ks = Ws; -var Us = /* @__PURE__ */ ro(function(e, n) { - return zr(function(o, r, s) { - return r; - }, e, n); -}); -const qs = Us; -var yo = String.raw, xo = yo` - :root, - :host { - --chakra-vh: 100vh; - } - - @supports (height: -webkit-fill-available) { - :root, - :host { - --chakra-vh: -webkit-fill-available; - } - } - - @supports (height: -moz-fill-available) { - :root, - :host { - --chakra-vh: -moz-fill-available; - } - } - - @supports (height: 100dvh) { - :root, - :host { - --chakra-vh: 100dvh; - } - } -`, Xs = () => /* @__PURE__ */ l.jsx(gt, { styles: xo }), Ys = ({ scope: t = "" }) => /* @__PURE__ */ l.jsx( - gt, - { - styles: yo` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${t} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${t} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${t} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${t} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${t} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${t} :where(b, strong) { - font-weight: bold; - } - - ${t} small { - font-size: 80%; - } - - ${t} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${t} sub { - bottom: -0.25em; - } - - ${t} sup { - top: -0.5em; - } - - ${t} img { - border-style: none; - } - - ${t} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${t} :where(button, input) { - overflow: visible; - } - - ${t} :where(button, select) { - text-transform: none; - } - - ${t} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${t} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${t} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${t} progress { - vertical-align: baseline; - } - - ${t} textarea { - overflow: auto; - } - - ${t} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${t} input[type="number"]::-webkit-inner-spin-button, - ${t} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${t} input[type="number"] { - -moz-appearance: textfield; - } - - ${t} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${t} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${t} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${t} details { - display: block; - } - - ${t} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${t} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${t} button { - background: transparent; - padding: 0; - } - - ${t} fieldset { - margin: 0; - padding: 0; - } - - ${t} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${t} textarea { - resize: vertical; - } - - ${t} :where(button, [role="button"]) { - cursor: pointer; - } - - ${t} button::-moz-focus-inner { - border: 0 !important; - } - - ${t} table { - border-collapse: collapse; - } - - ${t} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${t} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${t} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${t} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${t} select::-ms-expand { - display: none; - } - - ${xo} - ` - } -), ft = { - light: "chakra-ui-light", - dark: "chakra-ui-dark" -}; -function Zs(t = {}) { - const { preventTransition: e = !0 } = t, n = { - setDataset: (o) => { - const r = e ? n.preventTransition() : void 0; - document.documentElement.dataset.theme = o, document.documentElement.style.colorScheme = o, r == null || r(); - }, - setClassName(o) { - document.body.classList.add(o ? ft.dark : ft.light), document.body.classList.remove(o ? ft.light : ft.dark); - }, - query() { - return window.matchMedia("(prefers-color-scheme: dark)"); - }, - getSystemTheme(o) { - var r; - return ((r = n.query().matches) != null ? r : o === "dark") ? "dark" : "light"; - }, - addListener(o) { - const r = n.query(), s = (a) => { - o(a.matches ? "dark" : "light"); - }; - return typeof r.addListener == "function" ? r.addListener(s) : r.addEventListener("change", s), () => { - typeof r.removeListener == "function" ? r.removeListener(s) : r.removeEventListener("change", s); - }; - }, - preventTransition() { - const o = document.createElement("style"); - return o.appendChild( - document.createTextNode( - "*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}" - ) - ), document.head.appendChild(o), () => { - window.getComputedStyle(document.body), requestAnimationFrame(() => { - requestAnimationFrame(() => { - document.head.removeChild(o); - }); - }); - }; - } - }; - return n; -} -var Jt = "chakra-ui-color-mode"; -function Js(t) { - return { - ssr: !1, - type: "localStorage", - get(e) { - if (!(globalThis != null && globalThis.document)) - return e; - let n; - try { - n = localStorage.getItem(t) || e; - } catch { - } - return n || e; - }, - set(e) { - try { - localStorage.setItem(t, e); - } catch { - } - } - }; -} -var Qs = Js(Jt); -function Mn(t, e) { - const n = t.match(new RegExp(`(^| )${e}=([^;]+)`)); - return n == null ? void 0 : n[2]; -} -function So(t, e) { - return { - ssr: !!e, - type: "cookie", - get(n) { - return e ? Mn(e, t) : globalThis != null && globalThis.document && Mn(document.cookie, t) || n; - }, - set(n) { - document.cookie = `${t}=${n}; max-age=31536000; path=/`; - } - }; -} -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 _o(t) { - const { - value: e, - children: n, - options: { - useSystemColorMode: o, - initialColorMode: r, - disableTransitionOnChange: s - } = {}, - 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 } = Q( - () => Zs({ preventTransition: s }), - [s] - ), v = r === "system" && !c ? d : c, _ = x( - (I) => { - const w = I === "system" ? m() : I; - u(w), p(w === "dark"), b(w), a.set(w); - }, - [a, m, p, b] - ); - Ae(() => { - r === "system" && f(m()); - }, []), U(() => { - const I = a.get(); - if (I) { - _(I); - return; - } - if (r === "system") { - _("system"); - return; - } - _(i); - }, [a, i, r, _]); - const S = x(() => { - _(v === "dark" ? "light" : "dark"); - }, [v, _]); - U(() => { - if (o) - return y(_); - }, [o, y, _]); - const E = Q( - () => ({ - colorMode: e ?? v, - toggleColorMode: e ? Xe : S, - setColorMode: e ? Xe : _, - forced: e !== void 0 - }), - [v, S, _, e] - ); - return /* @__PURE__ */ l.jsx(bt.Provider, { value: E, children: n }); -} -_o.displayName = "ColorModeProvider"; -function ea(t) { - const e = Q( - () => ({ - colorMode: "dark", - toggleColorMode: Xe, - setColorMode: Xe, - forced: !0 - }), - [] - ); - return /* @__PURE__ */ l.jsx(bt.Provider, { value: e, ...t }); -} -ea.displayName = "DarkMode"; -function ta(t) { - const e = Q( - () => ({ - colorMode: "light", - toggleColorMode: Xe, - setColorMode: Xe, - forced: !0 - }), - [] - ); - return /* @__PURE__ */ l.jsx(bt.Provider, { value: e, ...t }); -} -ta.displayName = "LightMode"; -var na = /* @__PURE__ */ new Set(["dark", "light", "system"]); -function oa(t) { - let e = t; - return na.has(e) || (e = "light"), e; -} -function ra(t = {}) { - const { - initialColorMode: e = "light", - type: n = "localStorage", - storageKey: o = "chakra-ui-color-mode" - } = 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 $f(t = {}) { - const { nonce: e } = t; - return /* @__PURE__ */ l.jsx( - "script", - { - id: "chakra-script", - nonce: e, - dangerouslySetInnerHTML: { __html: ra(t) } - } - ); -} -function sa({ - colorScheme: t, - components: e -}) { - return (n) => { - let o = Object.keys(n.components || {}); - return Array.isArray(e) ? o = e : Re(e) && (o = Object.keys(e)), yt(n, { - components: Object.fromEntries( - o.map((r) => [r, { - defaultProps: { - colorScheme: t - } - }]) - ) - }); - }; -} -function aa({ - size: t, - components: e -}) { - return (n) => { - let o = Object.keys(n.components || {}); - return Array.isArray(e) ? o = e : Re(e) && (o = Object.keys(e)), yt(n, { - components: Object.fromEntries( - o.map((r) => [r, { - defaultProps: { - size: t - } - }]) - ) - }); - }; -} -function ia({ - variant: t, - components: e -}) { - return (n) => { - let o = Object.keys(n.components || {}); - return Array.isArray(e) ? o = e : Re(e) && (o = Object.keys(e)), yt(n, { - components: Object.fromEntries( - o.map((r) => [r, { - defaultProps: { - variant: t - } - }]) - ) - }); - }; -} -function la(...t) { - return (e) => t.reduce((n, o) => o(n), e); -} -function Of({ - defaultProps: { colorScheme: t, variant: e, size: n }, - components: o -}) { - const r = (a) => a, s = [ - t ? sa({ colorScheme: t, components: o }) : r, - n ? aa({ size: n, components: o }) : r, - e ? ia({ variant: e, components: o }) : r - ]; - return (a) => yt(la(...s)(a)); -} -function Qt(t) { - return t != null && typeof t == "object" && "nodeType" in t && t.nodeType === Node.ELEMENT_NODE; -} -function xt(t) { - var e; - if (!Qt(t)) - return !1; - const n = (e = t.ownerDocument.defaultView) != null ? e : window; - return t instanceof n.HTMLElement; -} -function ca(t) { - var e, n; - return Qt(t) && (n = (e = ze(t)) == null ? void 0 : e.defaultView) != null ? n : window; -} -function ze(t) { - var e; - return Qt(t) && (e = t.ownerDocument) != null ? e : document; -} -function en(t) { - var e; - return (e = t.view) != null ? e : window; -} -function ua() { - return !!(typeof window < "u" && window.document && window.document.createElement); -} -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 fa(t, e, n, o) { - return t.addEventListener(e, n, o), () => { - t.removeEventListener(e, n, o); - }; -} -function ma(t) { - const { userAgent: e, vendor: n } = t, o = /(android)/i.test(e); - switch (!0) { - case /CriOS/.test(e): - return "Chrome for iOS"; - case /Edg\//.test(e): - return "Edge"; - case (o && /Silk\//.test(e)): - return "Silk"; - case (/Chrome/.test(e) && /Google Inc/.test(n)): - return "Chrome"; - case /Firefox\/\d+\.\d+$/.test(e): - return "Firefox"; - case o: - return "AOSP"; - case /MSIE|Trident/.test(e): - return "IE"; - case (/Safari/.test(t.userAgent) && /Apple Computer/.test(e)): - return "Safari"; - case /AppleWebKit/.test(e): - return "WebKit"; - default: - return null; - } -} -function pa(t) { - return st ? ma(window.navigator) === t : !1; -} -function ha(t) { - const e = en(t); - return typeof e.PointerEvent < "u" && t instanceof e.PointerEvent ? t.pointerType === "mouse" : t instanceof e.MouseEvent; -} -function ko(t) { - return !!t.touches; -} -function va(t) { - return (e) => { - const n = en(e), o = e instanceof n.MouseEvent; - (!o || o && e.button === 0) && t(e); - }; -} -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 ya(t, e = "page") { - return { - x: t[`${e}X`], - y: t[`${e}Y`] - }; -} -function Co(t, e = "page") { - return { - point: ko(t) ? ba(t, e) : ya(t, e) - }; -} -var nn = (t, e = !1) => { - 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", - pointercancel: "mousecancel", - pointerover: "mouseover", - pointerout: "mouseout", - pointerenter: "mouseenter", - pointerleave: "mouseleave" -}, Ca = { - pointerdown: "touchstart", - pointermove: "touchmove", - pointerup: "touchend", - pointercancel: "touchcancel" -}; -function on(t) { - return xa() ? t : Sa() ? Ca[t] : _a() ? ka[t] : t; -} -function It(t, e, n, o) { - return fa( - t, - on(e), - nn(n, e === "pointerdown"), - o - ); -} -function wa(t) { - return ko(t) && t.touches.length > 1; -} -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 = Wr(a.offset, { x: 0, y: 0 }) >= this.threshold; - if (!i && !c) - return; - const { timestamp: u } = En(); - this.history.push({ ...a.point, timestamp: u }); - 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, ha(a) && a.buttons === 0) { - this.onPointerUp(a, i); - return; - } - 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), wa(t)) - return; - this.handlers = e, n && (this.threshold = n), t.stopPropagation(), t.preventDefault(); - 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 = Hr( - It(this.win, "pointermove", this.onPointerMove), - It(this.win, "pointerup", this.onPointerUp), - It(this.win, "pointercancel", this.onPointerUp) - ); - } - updateHandlers(t) { - this.handlers = t; - } - end() { - var t; - (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 Ea(t) { - return t[0]; -} -function ja(t) { - return t[t.length - 1]; -} -function Et(t, e) { - return { - point: t.point, - delta: Ln(t.point, ja(e)), - offset: Ln(t.point, Ea(e)), - velocity: Ma(e, 0.1) - }; -} -function Aa(t) { - return t[t.length - 1]; -} -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 = Aa(t); - for (; n >= 0 && (o = t[n], !(r.timestamp - o.timestamp > Ta(e))); ) - n--; - if (!o) - return { x: 0, y: 0 }; - const s = (r.timestamp - o.timestamp) / 1e3; - if (s === 0) - return { x: 0, y: 0 }; - const a = { - x: (r.x - o.x) / s, - y: (r.y - o.y) / s - }; - return a.x === 1 / 0 && (a.x = 0), a.y === 1 / 0 && (a.y = 0), a; -} -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 Fa(t) { - return xt(t) && t.localName === "input" && "select" in t; -} -function Po(t) { - return (xt(t) ? ze(t) : document).activeElement === t; -} -function Ba(t) { - return document.activeElement ? t.contains(document.activeElement) : !1; -} -function No(t) { - return t.parentElement && No(t.parentElement) ? !0 : t.hidden; -} -function Ra(t) { - const e = t.getAttribute("contenteditable"); - return e !== "false" && e != null; -} -function Io(t) { - if (!xt(t) || No(t) || La(t)) - return !1; - const { localName: e } = t; - if (["input", "select", "textarea", "button"].indexOf(e) >= 0) - return !0; - const o = { - a: () => t.hasAttribute("href"), - audio: () => t.hasAttribute("controls"), - video: () => t.hasAttribute("controls") - }; - return e in o ? o[e]() : Ra(t) ? !0 : wo(t); -} -function $a(t) { - return t ? xt(t) && Io(t) && !Da(t) : !1; -} -var Oa = [ - "input:not(:disabled):not([disabled])", - "select:not(:disabled):not([disabled])", - "textarea:not(:disabled):not([disabled])", - "embed", - "iframe", - "object", - "a[href]", - "area[href]", - "button:not(:disabled):not([disabled])", - "[tabindex]", - "audio[controls]", - "video[controls]", - "*[tabindex]:not([aria-disabled])", - "*[contenteditable]" -], Va = Oa.join(), za = (t) => t.offsetWidth > 0 && t.offsetHeight > 0; -function Ha(t) { - const e = Array.from( - t.querySelectorAll(Va) - ); - return e.unshift(t), e.filter((n) => Io(n) && za(n)); -} -function nt(t, e = {}) { - const { - isActive: n = Po, - nextTick: o, - preventScroll: r = !0, - selectTextIfInput: s = !0 - } = e; - if (!t || n(t)) - return -1; - function a() { - if (!t) { - Ur({ - condition: !0, - message: "[chakra-ui]: can't call focus() on `null` or `undefined` element" - }); - return; - } - if (Ga()) - t.focus({ preventScroll: r }); - else if (t.focus(), r) { - const i = Wa(t); - Ka(i); - } - if (s) { - if (Fa(t)) - t.select(); - else if ("setSelectionRange" in t) { - const i = t; - i.setSelectionRange(i.value.length, i.value.length); - } - } - } - return o ? requestAnimationFrame(a) : (a(), -1); -} -var mt = null; -function Ga() { - if (mt == null) { - mt = !1; - try { - document.createElement("div").focus({ - get preventScroll() { - return mt = !0, !0; - } - }); - } catch { - } - } - return mt; -} -function Wa(t) { - var e; - const n = ze(t), o = (e = n.defaultView) != null ? e : window; - let r = t.parentNode; - const s = [], a = n.scrollingElement || n.documentElement; - for (; r instanceof o.HTMLElement && r !== a; ) - (r.offsetHeight < r.scrollHeight || r.offsetWidth < r.scrollWidth) && s.push({ - element: r, - scrollTop: r.scrollTop, - scrollLeft: r.scrollLeft - }), r = r.parentNode; - return a instanceof o.HTMLElement && s.push({ - element: a, - scrollTop: a.scrollTop, - scrollLeft: a.scrollLeft - }), s; -} -function Ka(t) { - for (const { element: e, scrollTop: n, scrollLeft: o } of t) - e.scrollTop = n, e.scrollLeft = o; -} -var Ua = process.env.NODE_ENV === "production", jt = "Invariant failed"; -function Fn(t, e) { - if (!t) { - if (Ua) - throw new Error(jt); - var n = typeof e == "function" ? e() : e, o = n ? "".concat(jt, ": ").concat(n) : jt; - throw new Error(o); - } -} -var pt = function(e) { - var n = e.top, o = e.right, r = e.bottom, s = e.left, a = o - s, i = r - n, c = { - top: n, - right: o, - bottom: r, - left: s, - width: a, - height: i, - x: s, - y: n, - center: { - x: (o + s) / 2, - y: (r + n) / 2 - } - }; - return c; -}, qa = function(e, n) { - return { - top: e.top - n.top, - left: e.left - n.left, - bottom: e.bottom + n.bottom, - right: e.right + n.right - }; -}, Bn = function(e, n) { - return { - top: e.top + n.top, - left: e.left + n.left, - bottom: e.bottom - n.bottom, - right: e.right - n.right - }; -}, At = { - top: 0, - right: 0, - bottom: 0, - left: 0 -}, 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), - paddingBox: d, - contentBox: f, - margin: r, - border: a, - padding: c - }; -}, ke = function(e) { - var n = e.slice(0, -2), o = e.slice(-2); - if (o !== "px") - 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; -}, Ya = function(e, n) { - var o = { - top: ke(n.marginTop), - right: ke(n.marginRight), - bottom: ke(n.marginBottom), - left: ke(n.marginLeft) - }, r = { - top: ke(n.paddingTop), - right: ke(n.paddingRight), - bottom: ke(n.paddingBottom), - left: ke(n.paddingLeft) - }, s = { - top: ke(n.borderTopWidth), - right: ke(n.borderRightWidth), - bottom: ke(n.borderBottomWidth), - left: ke(n.borderLeftWidth) - }; - return Xa({ - borderBox: e, - margin: o, - padding: r, - border: s - }); -}, Za = function(e) { - var n = e.getBoundingClientRect(), o = window.getComputedStyle(e); - return Ya(n, o); -}; -function rn(t) { - const e = Object.assign({}, t); - for (let n in e) - e[n] === void 0 && delete e[n]; - return e; -} -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 = Bs(void 0); - r.displayName = o; - function s() { - var a; - 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; - } - return i; - } - return [ - r.Provider, - s, - r - ]; -} -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 - ] }); -} -function Ja({ root: t = ":host, :root" }) { - const e = [t, "[data-theme]"].join(","); - return /* @__PURE__ */ l.jsx(gt, { styles: (n) => ({ [e]: n.__cssVars }) }); -} -var [Vf, zf] = Eo({ - name: "StylesContext", - errorMessage: "useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` " -}); -function Ao(t) { - return Eo({ - name: `${t}StylesContext`, - errorMessage: `useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${t} />" ` - }); -} -function Qa() { - const { colorMode: t } = Yr(); - return /* @__PURE__ */ l.jsx( - gt, - { - styles: (e) => { - const n = Zr(e, "styles.global"), o = ht(n, { theme: e, colorMode: t }); - return o ? Jr(o)(e) : void 0; - } - } - ); -} -var ei = (t) => { - const { - children: e, - colorModeManager: n, - portalZIndex: o, - resetScope: r, - resetCSS: s = !0, - theme: a = {}, - environment: i, - cssVarsRoot: c, - disableEnvironment: u, - disableGlobalStyle: d - } = t, f = /* @__PURE__ */ l.jsx( - es, - { - environment: i, - disabled: u, - children: e - } - ); - return /* @__PURE__ */ l.jsx(jo, { theme: a, cssVarsRoot: c, children: /* @__PURE__ */ l.jsxs( - _o, - { - colorModeManager: n, - options: a.config, - children: [ - 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 - ] - } - ) }); -}, ti = (t, e) => t.find((n) => n.id === e); -function Rn(t, e) { - const n = To(t, e), o = n ? t[n].findIndex((r) => r.id === e) : -1; - return { - position: n, - index: o - }; -} -function To(t, e) { - for (const [n, o] of Object.entries(t)) - if (ti(o, e)) - return n; -} -function ni(t) { - const e = t.includes("right"), n = t.includes("left"); - let o = "center"; - return e && (o = "flex-end"), n && (o = "flex-start"), { - display: "flex", - flexDirection: "column", - alignItems: o - }; -} -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", - zIndex: "var(--toast-z-index, 5500)", - pointerEvents: "none", - display: "flex", - flexDirection: "column", - margin: n, - top: o, - bottom: r, - right: s, - left: a - }; -} -function ri(t, e) { - const n = Se(t); - U(() => { - if (e == null) - return; - let o = null; - return o = window.setTimeout(() => { - n(); - }, e), () => { - o && window.clearTimeout(o); - }; - }, [e, n]); -} -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; - return e === "bottom" && (o = 1), { - opacity: 0, - [n]: o * 24 - }; - }, - animate: { - opacity: 1, - y: 0, - x: 0, - scale: 1, - transition: { - duration: 0.4, - ease: [0.4, 0, 0.2, 1] - } - }, - exit: { - opacity: 0, - scale: 0.85, - transition: { - duration: 0.2, - ease: [0.4, 0, 1, 1] - } - } -}, Mo = $s((t) => { - const { - id: e, - message: n, - onCloseComplete: o, - onRequestRemove: r, - requestClose: s = !1, - position: a = "bottom", - duration: i = 5e3, - containerStyle: c, - motionVariants: u = si, - toastSpacing: d = "0.5rem" - } = t, [f, m] = L(i), p = ts(); - tt(() => { - p || o == null || o(); - }, [p]), tt(() => { - m(i); - }, [i]); - const b = () => m(null), y = () => m(i), v = () => { - p && r(); - }; - U(() => { - p && s && r(); - }, [p, s, r]), ri(v, f); - const _ = Q( - () => ({ - pointerEvents: "auto", - maxWidth: 560, - minWidth: 300, - margin: d, - ...c - }), - [c, d] - ), S = Q(() => ni(a), [a]); - return /* @__PURE__ */ l.jsx( - Gt.div, - { - layout: !0, - className: "chakra-toast", - variants: u, - initial: "initial", - animate: "animate", - exit: "exit", - onHoverStart: b, - onHoverEnd: y, - custom: { position: a }, - style: S, - children: /* @__PURE__ */ l.jsx( - h.div, - { - role: "status", - "aria-atomic": "true", - className: "chakra-toast__inner", - __css: _, - children: Te(n, { id: e, onClose: v }) - } - ) - } - ); -}); -Mo.displayName = "ToastComponent"; -function ai(t, e) { - var n; - const o = t ?? "bottom", s = { - "top-start": { ltr: "top-left", rtl: "top-right" }, - "top-end": { ltr: "top-right", rtl: "top-left" }, - "bottom-start": { ltr: "bottom-left", rtl: "bottom-right" }, - "bottom-end": { ltr: "bottom-right", rtl: "bottom-left" } - }[o]; - return (n = s == null ? void 0 : s[e]) != null ? n : o; -} -function Hf(t) { - const { - viewBox: e = "0 0 24 24", - d: n, - displayName: o, - defaultProps: r = {} - } = 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 ii(t) { - return /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( - "path", - { - fill: "currentColor", - d: "M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z" - } - ) }); -} -function li(t) { - return /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( - "path", - { - fill: "currentColor", - d: "M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z" - } - ) }); -} -function $n(t) { - return /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( - "path", - { - fill: "currentColor", - d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z" - } - ) }); -} -var [ci, sn] = ne({ - name: "AlertContext", - hookName: "useAlertContext", - providerName: "" -}), [ui, an] = ne({ - name: "AlertStylesContext", - hookName: "useAlertStyles", - providerName: "" -}), Do = { - info: { icon: li, colorScheme: "blue" }, - warning: { icon: $n, colorScheme: "orange" }, - success: { icon: ii, colorScheme: "green" }, - error: { icon: $n, colorScheme: "red" }, - loading: { icon: ao, colorScheme: "blue" } -}; -function di(t) { - return Do[t].colorScheme; -} -function fi(t) { - return Do[t].icon; -} -var ln = g( - function(e, n) { - const o = an(), { status: r } = sn(), s = { - display: "inline", - ...o.description - }; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - "data-status": r, - ...e, - className: k("chakra-alert__desc", e.className), - __css: s - } - ); - } -); -ln.displayName = "AlertDescription"; -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, - { - display: "inherit", - "data-status": e, - ...t, - className: k("chakra-alert__icon", t.className), - __css: r, - children: t.children || /* @__PURE__ */ l.jsx(n, { h: "100%", w: "100%" }) - } - ); -} -Lo.displayName = "AlertIcon"; -var cn = g( - function(e, n) { - const o = an(), { status: r } = sn(); - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - "data-status": r, - ...e, - className: k("chakra-alert__title", e.className), - __css: o.title - } - ); - } -); -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 : di(r), c = ie("Alert", { ...e, colorScheme: i }), u = { - width: "100%", - display: "flex", - alignItems: "center", - position: "relative", - overflow: "hidden", - ...c.container - }; - return /* @__PURE__ */ l.jsx(ci, { value: { status: r }, children: /* @__PURE__ */ l.jsx(ui, { value: c, children: /* @__PURE__ */ l.jsx( - h.div, - { - "data-status": r, - role: s ? "alert" : void 0, - ref: n, - ...a, - className: k("chakra-alert", e.className), - __css: u - } - ) }) }); -}); -un.displayName = "Alert"; -var mi = { - top: [], - "top-left": [], - "top-right": [], - "bottom-left": [], - bottom: [], - "bottom-right": [] -}, Pe = pi(mi); -function pi(t) { - let e = t; - const n = /* @__PURE__ */ new Set(), o = (r) => { - e = r(e), n.forEach((s) => s()); - }; - return { - getState: () => e, - subscribe: (r) => (n.add(r), () => { - o(() => t), n.delete(r); - }), - /** - * Delete a toast record at its position - */ - removeToast: (r, s) => { - o((a) => ({ - ...a, - // id may be string or number - // eslint-disable-next-line eqeqeq - [s]: a[s].filter((i) => i.id != r) - })); - }, - notify: (r, s) => { - 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]; - return { - ...u, - [i]: p - }; - }), c; - }, - update: (r, s) => { - r && o((a) => { - const i = { ...a }, { position: c, index: u } = Rn(i, r); - return c && u !== -1 && (i[c][u] = { - ...i[c][u], - ...s, - message: Fo(s) - }), i; - }); - }, - closeAll: ({ positions: r } = {}) => { - o((s) => (r ?? [ - "bottom", - "bottom-right", - "bottom-left", - "top", - "top-left", - "top-right" - ]).reduce( - (c, u) => (c[u] = s[u].map((d) => ({ - ...d, - requestClose: !0 - })), c), - { ...s } - )); - }, - close: (r) => { - o((s) => { - const a = To(s, r); - return a ? { - ...s, - [a]: s[a].map((i) => i.id == r ? { - ...i, - requestClose: !0 - } : i) - } : s; - }); - }, - isActive: (r) => !!Rn(Pe.getState(), r).position - }; -} -var On = 0; -function hi(t, e = {}) { - var n, o; - On += 1; - const r = (n = e.id) != null ? n : On, s = (o = e.position) != null ? o : "bottom"; - return { - id: r, - message: t, - position: s, - duration: e.duration, - onCloseComplete: e.onCloseComplete, - onRequestRemove: () => Pe.removeToast(String(r), s), - status: e.status, - requestClose: !1, - containerStyle: e.containerStyle - }; -} -var vi = (t) => { - const { - status: e, - variant: n = "solid", - id: o, - title: r, - isClosable: s, - onClose: a, - description: i, - colorScheme: c, - icon: u - } = t, d = o ? { - root: `toast-${o}`, - title: `toast-${o}-title`, - description: `toast-${o}-description` - } : void 0; - return /* @__PURE__ */ l.jsxs( - un, - { - addRole: !1, - status: e, - variant: n, - id: d == null ? void 0 : d.root, - alignItems: "start", - borderRadius: "md", - boxShadow: "lg", - paddingEnd: 8, - textAlign: "start", - width: "auto", - colorScheme: c, - children: [ - /* @__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 }) - ] }), - s && /* @__PURE__ */ l.jsx( - Wt, - { - size: "sm", - onClick: a, - position: "absolute", - insetEnd: 1, - top: 1 - } - ) - ] - } - ); -}; -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 Bo(t, e) { - const n = (r) => { - var s; - return { - ...e, - ...r, - 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 = Fo(s); - return Pe.notify(a, s); - }; - return o.update = (r, s) => { - Pe.update(r, n(s)); - }, o.promise = (r, s) => { - const a = o({ - ...s.loading, - status: "loading", - duration: null - }); - r.then( - (i) => o.update(a, { - status: "success", - duration: 5e3, - ...Te(s.success, i) - }) - ).catch( - (i) => o.update(a, { - status: "error", - duration: 5e3, - ...Te(s.error, i) - }) - ); - }, o.closeAll = Pe.closeAll, o.close = Pe.close, o.isActive = Pe.isActive, o; -} -var [gi, bi] = ne({ - name: "ToastOptionsContext", - strict: !1 -}), Ro = (t) => { - const e = Os( - Pe.subscribe, - Pe.getState, - Pe.getState - ), { - motionVariants: n, - component: o = Mo, - portalProps: r - } = t, a = Object.keys(e).map((i) => { - const c = e[i]; - return /* @__PURE__ */ l.jsx( - "div", - { - role: "region", - "aria-live": "polite", - "aria-label": `Notifications-${i}`, - id: `chakra-toast-manager-${i}`, - style: oi(i), - children: /* @__PURE__ */ l.jsx(io, { initial: !1, children: c.map((u) => /* @__PURE__ */ l.jsx( - o, - { - motionVariants: n, - ...u - }, - u.id - )) }) - }, - i - ); - }); - return /* @__PURE__ */ l.jsx(ns, { ...r, children: a }); -}; -function yi(t) { - const { theme: e } = os(), n = bi(); - return Q( - () => Bo(e.direction, { - ...n, - ...t - }), - [t, e.direction, n] - ); -} -var xi = { - duration: 5e3, - variant: "solid" -}, Ke = { - theme: lo, - colorMode: "light", - toggleColorMode: () => { - }, - setColorMode: () => { - }, - defaultOptions: xi, - forced: !1 -}; -function Gf({ - theme: t = Ke.theme, - colorMode: e = Ke.colorMode, - toggleColorMode: n = Ke.toggleColorMode, - setColorMode: o = Ke.setColorMode, - defaultOptions: r = Ke.defaultOptions, - motionVariants: s, - toastSpacing: a, - component: i, - forced: c -} = Ke) { - const u = { - colorMode: e, - setColorMode: o, - toggleColorMode: n, - forced: c - }; - return { - ToastContainer: () => /* @__PURE__ */ l.jsx(jo, { theme: t, children: /* @__PURE__ */ l.jsx(bt.Provider, { value: u, children: /* @__PURE__ */ l.jsx( - Ro, - { - defaultOptions: r, - motionVariants: s, - toastSpacing: a, - component: i - } - ) }) }), - toast: Bo(t.direction, r) - }; -} -var $o = (t) => function({ - children: n, - theme: o = t, - toastOptions: r, - ...s -}) { - 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 }) - ] }); -}, Si = $o(lo), Wf = $o(rs), [_i, St] = ne({ - name: "AccordionStylesContext", - hookName: "useAccordionStyles", - providerName: "" -}), [ki, _t] = ne({ - name: "AccordionItemContext", - hookName: "useAccordionItemContext", - providerName: "" -}), [ - Ci, - Kf, - wi, - Pi -] = Kt(), Ni = g( - function(e, n) { - const { getButtonProps: o } = _t(), r = o(e, n), a = { - display: "flex", - alignItems: "center", - width: "100%", - outline: 0, - ...St().button - }; - return /* @__PURE__ */ l.jsx( - h.button, - { - ...r, - className: k("chakra-accordion__button", e.className), - __css: a - } - ); - } -); -Ni.displayName = "AccordionButton"; -function Ii(t) { - const { - onChange: e, - defaultIndex: n, - index: o, - allowMultiple: r, - allowToggle: s, - ...a - } = t; - Ai(t), Ti(t); - const i = wi(), [c, u] = L(-1); - U(() => () => { - u(-1); - }, []); - const [d, f] = ot({ - value: o, - defaultValue() { - return r ? n ?? [] : n ?? -1; - }, - onChange: e - }); - return { - index: d, - setIndex: f, - htmlProps: a, - getAccordionItemProps: (p) => { - let b = !1; - return p !== null && (b = Array.isArray(d) ? d.includes(p) : d === p), { isOpen: b, onChange: (v) => { - if (p !== null) - if (r && Array.isArray(d)) { - const _ = v ? d.concat(p) : d.filter((S) => S !== p); - f(_); - } else - v ? f(p) : s && f(-1); - } }; - }, - focusedIndex: c, - setFocusedIndex: u, - descendants: i - }; -} -var [Ei, dn] = ne({ - name: "AccordionContext", - hookName: "useAccordionContext", - providerName: "Accordion" -}); -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}`; - Mi(t); - const { register: m, index: p, descendants: b } = Pi({ - disabled: e && !n - }), { isOpen: y, onChange: v } = s( - p === -1 ? null : p - ); - Di({ isOpen: y, isDisabled: e }); - const _ = () => { - v == null || v(!0); - }, S = () => { - v == null || v(!1); - }, E = x(() => { - v == null || v(!y), a(p); - }, [p, a, y, v]), I = x( - (F) => { - const D = { - ArrowDown: () => { - const M = b.nextEnabled(p); - M == null || M.node.focus(); - }, - ArrowUp: () => { - const M = b.prevEnabled(p); - M == null || M.node.focus(); - }, - Home: () => { - const M = b.firstEnabled(); - M == null || M.node.focus(); - }, - End: () => { - const M = b.lastEnabled(); - M == null || M.node.focus(); - } - }[F.key]; - D && (F.preventDefault(), D(F)); - }, - [b, p] - ), w = x(() => { - a(p); - }, [a, p]), P = x( - function(ee = {}, D = null) { - return { - ...ee, - type: "button", - ref: ce(m, i, D), - id: d, - disabled: !!e, - "aria-expanded": !!y, - "aria-controls": f, - onClick: A(ee.onClick, E), - onFocus: A(ee.onFocus, w), - onKeyDown: A(ee.onKeyDown, I) - }; - }, - [ - d, - e, - y, - E, - w, - I, - f, - m - ] - ), G = x( - function(ee = {}, D = null) { - return { - ...ee, - ref: D, - role: "region", - id: f, - "aria-labelledby": d, - hidden: !y - }; - }, - [d, y, f] - ); - return { - isOpen: y, - isDisabled: e, - isFocusable: n, - onOpen: _, - onClose: S, - getButtonProps: P, - getPanelProps: G, - htmlProps: r - }; -} -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 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 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 Di(t) { - rt({ - condition: t.isOpen && !!t.isDisabled, - message: "Cannot open a disabled accordion item" - }); -} -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, - transition: o ? void 0 : "transform 0.2s", - transformOrigin: "center", - ...s.icon - }; - return /* @__PURE__ */ l.jsx( - be, - { - viewBox: "0 0 24 24", - "aria-hidden": !0, - className: r, - __css: a, - ...t, - children: /* @__PURE__ */ l.jsx( - "path", - { - fill: "currentColor", - d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" - } - ) - } - ); -} -Li.displayName = "AccordionIcon"; -var Fi = g( - function(e, n) { - const { children: o, className: r } = e, { htmlProps: s, ...a } = ji(e), c = { - ...St().container, - overflowAnchor: "none" - }, u = Q(() => a, [a]); - return /* @__PURE__ */ l.jsx(ki, { value: u, children: /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - ...s, - className: k("chakra-accordion__item", r), - __css: c, - children: typeof o == "function" ? o({ - isExpanded: !!a.isOpen, - isDisabled: !!a.isDisabled - }) : o - } - ) }); - } -); -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 } - }, - enter: { - height: { duration: 0.3, ease: dt.ease }, - opacity: { duration: 0.4, ease: dt.ease } - } -}, Ri = { - exit: ({ - animateOpacity: t, - startingHeight: e, - transition: n, - transitionEnd: o, - delay: r - }) => { - var s; - return { - ...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) - }; - }, - enter: ({ - animateOpacity: t, - endingHeight: e, - transition: n, - transitionEnd: o, - delay: r - }) => { - var s; - return { - ...t && { opacity: 1 }, - height: e, - transitionEnd: o == null ? void 0 : o.enter, - transition: (s = n == null ? void 0 : n.enter) != null ? s : jn.enter(Vn.enter, r) - }; - } -}, Oo = Vs( - (t, e) => { - const { - in: n, - unmountOnExit: o, - animateOpacity: r = !0, - startingHeight: s = 0, - endingHeight: a = "auto", - style: i, - className: c, - transition: u, - transitionEnd: d, - ...f - } = t, [m, p] = L(!1); - U(() => { - const S = setTimeout(() => { - p(!0); - }); - return () => clearTimeout(S); - }, []), rt({ - condition: Number(s) > 0 && !!o, - message: "startingHeight and unmountOnExit are mutually exclusive. You can't use them together" - }); - const b = parseFloat(s.toString()) > 0, y = { - startingHeight: s, - endingHeight: a, - animateOpacity: r, - transition: m ? u : { enter: { duration: 0 } }, - transitionEnd: { - enter: d == null ? void 0 : d.enter, - exit: o ? d == null ? void 0 : d.exit : { - ...d == null ? void 0 : d.exit, - display: b ? "block" : "none" - } - } - }, v = o ? n : !0, _ = n || o ? "enter" : "exit"; - return /* @__PURE__ */ l.jsx(io, { initial: !1, custom: y, children: v && /* @__PURE__ */ l.jsx( - Gt.div, - { - ref: e, - ...f, - className: k("chakra-collapse", c), - style: { - overflow: "hidden", - display: "block", - ...i - }, - custom: y, - variants: Ri, - initial: o ? "exit" : !1, - animate: _, - exit: "exit" - } - ) }); - } -); -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(Oo, { in: c, ...r, children: m }); - } -); -$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(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, - ...i, - className: k("chakra-accordion", o.className), - __css: s.root, - children: e - } - ) }) }) }); -}); -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 [Vi, Vo] = ne({ - name: "AvatarStylesContext", - hookName: "useAvatarStyles", - providerName: "" -}), zi = { - "top-start": { - top: "0", - insetStart: "0", - transform: "translate(-25%, -25%)" - }, - "top-end": { - top: "0", - insetEnd: "0", - transform: "translate(25%, -25%)" - }, - "bottom-start": { - bottom: "0", - insetStart: "0", - transform: "translate(-25%, 25%)" - }, - "bottom-end": { - bottom: "0", - insetEnd: "0", - transform: "translate(25%, 25%)" - } -}, Hi = g( - function(e, n) { - const { placement: o = "bottom-end", className: r, ...s } = e, a = Vo(), c = { - position: "absolute", - display: "flex", - alignItems: "center", - justifyContent: "center", - ...zi[o], - ...a.badge - }; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - ...s, - className: k("chakra-avatar__badge", r), - __css: c - } - ); - } -); -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 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 }); -} -zo.displayName = "AvatarName"; -var Ho = (t) => /* @__PURE__ */ l.jsxs( - h.svg, - { - viewBox: "0 0 128 128", - color: "#fff", - width: "100%", - height: "100%", - className: "chakra-avatar__svg", - ...t, - children: [ - /* @__PURE__ */ l.jsx( - "path", - { - fill: "currentColor", - d: "M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z" - } - ), - /* @__PURE__ */ l.jsx( - "path", - { - fill: "currentColor", - d: "M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24" - } - ) - ] - } -), vt = g(function(e, n) { - const { htmlWidth: o, htmlHeight: r, alt: s, ...a } = e; - return /* @__PURE__ */ l.jsx("img", { width: o, height: r, ref: n, alt: s, ...a }); -}); -vt.displayName = "NativeImage"; -function Go(t) { - const { - loading: e, - src: n, - srcSet: o, - onLoad: r, - onError: s, - crossOrigin: a, - sizes: i, - ignoreFallback: c - } = t, [u, d] = L("pending"); - U(() => { - d(n ? "loading" : "pending"); - }, [n]); - const f = V(), m = x(() => { - if (!n) - return; - p(); - const b = new Image(); - b.src = n, a && (b.crossOrigin = a), o && (b.srcset = o), i && (b.sizes = i), e && (b.loading = e), b.onload = (y) => { - p(), d("loaded"), r == null || r(y); - }, b.onerror = (y) => { - p(), d("failed"), s == null || s(y); - }, f.current = b; - }, [n, a, o, i, r, s, e]), p = () => { - f.current && (f.current.onload = null, f.current.onerror = null, f.current = null); - }; - return Ae(() => { - if (!c) - return u === "loading" && m(), () => { - p(); - }; - }, [u, m, c]), c ? "loaded" : u; -} -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 Ui = g(function(e, n) { - const { - fallbackSrc: o, - fallback: r, - src: s, - srcSet: a, - align: i, - fit: c, - loading: u, - ignoreFallback: d, - crossOrigin: f, - fallbackStrategy: m = "beforeLoadOrError", - referrerPolicy: p, - ...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, _ = Go({ - ...e, - crossOrigin: f, - ignoreFallback: v - }), S = Wi(_, m), E = { - ref: n, - objectFit: c, - objectPosition: i, - ...v ? b : Ki(b, ["onError", "onLoad"]) - }; - return S ? r || /* @__PURE__ */ l.jsx( - h.img, - { - as: vt, - className: "chakra-image__placeholder", - src: o, - ...E - } - ) : /* @__PURE__ */ l.jsx( - h.img, - { - as: vt, - src: s, - srcSet: a, - crossOrigin: f, - loading: u, - referrerPolicy: p, - className: "chakra-image", - ...E - } - ); -}); -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, - onError: o, - onLoad: r, - getInitials: s, - name: a, - borderRadius: i, - loading: c, - iconLabel: u, - icon: d = /* @__PURE__ */ l.jsx(Ho, {}), - ignoreFallback: f, - referrerPolicy: m, - crossOrigin: p - } = t, y = Go({ src: e, onError: o, crossOrigin: p, ignoreFallback: f }) === "loaded"; - return !e || !y ? a ? /* @__PURE__ */ l.jsx( - zo, - { - className: "chakra-avatar__initials", - getInitials: s, - name: a - } - ) : ge(d, { - role: "img", - "aria-label": u - }) : /* @__PURE__ */ l.jsx( - h.img, - { - src: e, - srcSet: n, - alt: a, - onLoad: r, - referrerPolicy: m, - crossOrigin: p ?? void 0, - className: "chakra-avatar__img", - loading: c, - __css: { - width: "100%", - height: "100%", - objectFit: "cover", - borderRadius: i - } - } - ); -} -Wo.displayName = "AvatarImage"; -var Ko = { - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - textAlign: "center", - textTransform: "uppercase", - fontWeight: "medium", - position: "relative", - flexShrink: 0 -}, qi = g((t, e) => { - const n = ie("Avatar", t), [o, r] = L(!1), { - src: s, - srcSet: a, - name: i, - showBorder: c, - borderRadius: u = "full", - onError: d, - onLoad: f, - getInitials: m = Gi, - icon: p = /* @__PURE__ */ l.jsx(Ho, {}), - iconLabel: b = " avatar", - loading: y, - children: v, - borderColor: _, - ignoreFallback: S, - crossOrigin: E, - referrerPolicy: I, - ...w - } = K(t), P = { - borderRadius: u, - borderWidth: c ? "2px" : void 0, - ...Ko, - ...n.container - }; - return _ && (P.borderColor = _), /* @__PURE__ */ l.jsx( - h.span, - { - ref: e, - ...w, - className: k("chakra-avatar", t.className), - "data-loaded": $(o), - __css: P, - children: /* @__PURE__ */ l.jsxs(Vi, { value: n, children: [ - /* @__PURE__ */ l.jsx( - Wo, - { - src: s, - srcSet: a, - loading: y, - onLoad: A(f, () => { - r(!0); - }), - onError: d, - getInitials: m, - name: i, - borderRadius: u, - icon: p, - iconLabel: b, - ignoreFallback: S, - crossOrigin: E, - referrerPolicy: I - } - ), - v - ] }) - } - ); -}); -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 Yi = g( - function(e, n) { - const o = ie("Avatar", e), { - children: r, - borderColor: s, - max: a, - spacing: i = "-0.75rem", - borderRadius: c = "full", - ...u - } = K(e), d = Oe(r), f = a != null ? d.slice(0, a) : d, m = a != null ? d.length - a : 0, b = f.reverse().map((_, S) => { - var E; - const w = { - marginEnd: S === 0 ? 0 : i, - size: e.size, - borderColor: (E = _.props.borderColor) != null ? E : s, - showBorder: !0 - }; - return ge(_, Xi(w)); - }), y = { - display: "flex", - alignItems: "center", - justifyContent: "flex-end", - flexDirection: "row-reverse", - ...o.group - }, v = { - borderRadius: c, - marginStart: i, - ...Ko, - ...o.excessLabel - }; - return /* @__PURE__ */ l.jsxs( - h.div, - { - ref: n, - role: "group", - __css: y, - ...u, - className: k("chakra-avatar__group", e.className), - children: [ - m > 0 && /* @__PURE__ */ l.jsx(h.span, { className: "chakra-avatar__excess", __css: v, children: `+${m}` }), - b - ] - } - ); - } -); -Yi.displayName = "AvatarGroup"; -var [Zi, fn] = ne({ - name: "BreadcrumbStylesContext", - errorMessage: `useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Uo = g( - function(e, n) { - const { isCurrentPage: o, as: r, className: s, href: a, ...i } = e, c = fn(), u = { - ref: n, - as: r, - className: k("chakra-breadcrumb__link", s), - ...i - }; - 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 }); - } -); -Uo.displayName = "BreadcrumbLink"; -var Ft = g( - function(e, n) { - const { spacing: o, ...r } = e, s = fn(), a = { - mx: o, - ...s.separator - }; - return /* @__PURE__ */ l.jsx( - h.span, - { - ref: n, - role: "presentation", - ...r, - __css: a - } - ); - } -); -Ft.displayName = "BreadcrumbSeparator"; -var Ji = g( - function(e, n) { - const { - isCurrentPage: o, - separator: r, - isLastChild: s, - spacing: a, - children: i, - className: c, - ...u - } = e, f = Oe(i).map((y) => y.type === Uo ? ge(y, { - isCurrentPage: o - }) : y.type === Ft ? ge(y, { - spacing: a, - children: y.props.children || r - }) : y), p = { - display: "inline-flex", - alignItems: "center", - ...fn().item - }, b = k("chakra-breadcrumb__list-item", c); - return /* @__PURE__ */ l.jsxs(h.li, { ref: n, className: b, ...u, __css: p, children: [ - f, - !s && /* @__PURE__ */ l.jsx(Ft, { spacing: a, children: r }) - ] }); - } -); -Ji.displayName = "BreadcrumbItem"; -var Qi = g( - function(e, n) { - const o = ie("Breadcrumb", e), r = K(e), { - children: s, - spacing: a = "0.5rem", - separator: i = "/", - className: c, - listProps: u, - ...d - } = r, f = Oe(s), m = f.length, p = f.map( - (y, v) => ge(y, { - separator: i, - spacing: a, - isLastChild: m === v + 1 - }) - ), b = k("chakra-breadcrumb", c); - return /* @__PURE__ */ l.jsx( - h.nav, - { - ref: n, - "aria-label": "breadcrumb", - className: b, - __css: o.container, - ...d, - children: /* @__PURE__ */ l.jsx(Zi, { value: o, children: /* @__PURE__ */ l.jsx( - h.ol, - { - className: "chakra-breadcrumb__list", - ...u, - __css: { - display: "flex", - alignItems: "center", - ...o.list - }, - children: p - } - ) }) - } - ); - } -); -Qi.displayName = "Breadcrumb"; -var [el, tl] = ne({ - strict: !1, - name: "ButtonGroupContext" -}), nl = { - horizontal: { - "> *:first-of-type:not(:last-of-type)": { borderEndRadius: 0 }, - "> *:not(:first-of-type):not(:last-of-type)": { borderRadius: 0 }, - "> *:not(:first-of-type):last-of-type": { borderStartRadius: 0 } - }, - vertical: { - "> *:first-of-type:not(:last-of-type)": { borderBottomRadius: 0 }, - "> *:not(:first-of-type):not(:last-of-type)": { borderRadius: 0 }, - "> *:not(:first-of-type):last-of-type": { borderTopRadius: 0 } - } -}, ol = { - horizontal: (t) => ({ - "& > *:not(style) ~ *:not(style)": { marginStart: t } - }), - vertical: (t) => ({ - "& > *:not(style) ~ *:not(style)": { marginTop: t } - }) -}, rl = g( - function(e, n) { - const { - size: o, - colorScheme: r, - variant: s, - className: a, - spacing: i = "0.5rem", - isAttached: c, - isDisabled: u, - orientation: d = "horizontal", - ...f - } = 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 ? nl[d] : ol[d](i) - }; - const y = d === "vertical"; - return /* @__PURE__ */ l.jsx(el, { value: p, children: /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - role: "group", - __css: b, - className: m, - "data-attached": c ? "" : void 0, - "data-orientation": d, - flexDir: y ? "column" : void 0, - ...f - } - ) }); - } -); -rl.displayName = "ButtonGroup"; -function sl(t) { - const [e, n] = L(!t); - return { ref: x((s) => { - s && n(s.tagName === "BUTTON"); - }, []), type: e ? "button" : void 0 }; -} -function Bt(t) { - const { children: e, className: n, ...o } = t, r = Zt(e) ? ge(e, { - "aria-hidden": !0, - focusable: !1 - }) : e, s = k("chakra-button__icon", n); - return /* @__PURE__ */ l.jsx( - h.span, - { - display: "inline-flex", - alignSelf: "center", - flexShrink: 0, - ...o, - className: s, - children: r - } - ); -} -Bt.displayName = "ButtonIcon"; -function Rt(t) { - const { - label: e, - placement: n, - spacing: o = "0.5rem", - children: r = /* @__PURE__ */ l.jsx(ao, { color: "currentColor", width: "1em", height: "1em" }), - className: s, - __css: a, - ...i - } = t, c = k("chakra-button__spinner", s), u = n === "start" ? "marginEnd" : "marginStart", d = Q( - () => ({ - display: "flex", - alignItems: "center", - position: e ? "relative" : "absolute", - [u]: e ? o : 0, - fontSize: "1em", - lineHeight: "normal", - ...a - }), - [a, e, u, o] - ); - return /* @__PURE__ */ l.jsx(h.div, { className: c, ...i, __css: d, children: r }); -} -Rt.displayName = "ButtonSpinner"; -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, - children: i, - leftIcon: c, - rightIcon: u, - loadingText: d, - iconSpacing: f = "0.5rem", - type: m, - spinner: p, - spinnerPlacement: b = "start", - className: y, - as: v, - ..._ - } = K(t), S = Q(() => { - const P = { ...o == null ? void 0 : o._focus, zIndex: 1 }; - return { - display: "inline-flex", - appearance: "none", - alignItems: "center", - justifyContent: "center", - userSelect: "none", - position: "relative", - whiteSpace: "nowrap", - verticalAlign: "middle", - outline: "none", - ...o, - ...!!n && { _focus: P } - }; - }, [o, n]), { ref: E, type: I } = sl(v), w = { rightIcon: u, leftIcon: c, iconSpacing: f, children: i }; - return /* @__PURE__ */ l.jsxs( - h.button, - { - ref: ss(e, E), - as: v, - type: m ?? I, - "data-active": $(a), - "data-loading": $(s), - __css: S, - className: k("chakra-button", y), - ..._, - disabled: r || s, - children: [ - s && b === "start" && /* @__PURE__ */ l.jsx( - Rt, - { - className: "chakra-button__spinner--start", - label: d, - placement: "start", - spacing: f, - children: p - } - ), - s ? d || /* @__PURE__ */ l.jsx(h.span, { opacity: 0, children: /* @__PURE__ */ l.jsx(zn, { ...w }) }) : /* @__PURE__ */ l.jsx(zn, { ...w }), - s && b === "end" && /* @__PURE__ */ l.jsx( - Rt, - { - className: "chakra-button__spinner--end", - label: d, - placement: "end", - spacing: f, - children: p - } - ) - ] - } - ); -}); -qo.displayName = "Button"; -function zn(t) { - const { leftIcon: e, rightIcon: n, children: o, iconSpacing: r } = t; - return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [ - e && /* @__PURE__ */ l.jsx(Bt, { marginEnd: r, children: e }), - o, - n && /* @__PURE__ */ l.jsx(Bt, { marginStart: r, children: n }) - ] }); -} -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( - qo, - { - padding: "0", - borderRadius: r ? "full" : void 0, - ref: e, - "aria-label": s, - ...a, - children: c - } - ); - } -); -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, - { - ref: n, - className: k("chakra-card__body", o), - __css: s.body, - ...r - } - ); -}), Yf = g( - function(e, n) { - const { className: o, justify: r, ...s } = e, a = mn(); - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - className: k("chakra-card__footer", o), - __css: { - display: "flex", - justifyContent: r, - ...a.footer - }, - ...s - } - ); - } -), Zf = g( - function(e, n) { - const { className: o, ...r } = e, s = mn(); - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - className: k("chakra-card__header", o), - __css: s.header, - ...r - } - ); - } -), Jf = g(function(e, n) { - const { - className: o, - children: r, - direction: s = "column", - justify: a, - align: i, - ...c - } = K(e), u = ie("Card", e); - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - className: k("chakra-card", o), - __css: { - display: "flex", - flexDirection: s, - justifyContent: a, - alignItems: i, - position: "relative", - minWidth: 0, - wordWrap: "break-word", - ...u.container - }, - ...c, - children: /* @__PURE__ */ l.jsx(il, { value: u, children: r }) - } - ); -}), [ll, cl] = ne({ - name: "CheckboxGroupContext", - strict: !1 -}); -function Hn(t) { - return t && Re(t) && Re(t.target); -} -function ul(t = {}) { - const { - defaultValue: e, - value: n, - onChange: o, - isDisabled: r, - isNative: s - } = t, a = Se(o), [i, c] = ot({ - value: n, - defaultValue: e || [], - onChange: a - }), u = x( - (f) => { - if (!i) - return; - const m = Hn(f) ? f.target.checked : !i.includes(f), p = Hn(f) ? f.target.value : f, b = m ? [...i, p] : i.filter((y) => String(y) !== String(p)); - c(b); - }, - [c, i] - ), d = x( - (f = {}) => ({ - ...f, - [s ? "checked" : "isChecked"]: i.some((p) => String(f.value) === String(p)), - onChange: u - }), - [u, s, i] - ); - return { - value: i, - isDisabled: r, - onChange: u, - setValue: c, - getCheckboxProps: d - }; -} -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, - colorScheme: e, - value: a, - variant: o, - isDisabled: s - }), - [n, i, e, a, o, s] - ); - return /* @__PURE__ */ l.jsx(ll, { value: c, children: r }); -} -dl.displayName = "CheckboxGroup"; -function fl(t) { - const [e, n] = L(t), [o, r] = L(!1); - return t !== e && (r(!0), n(t)), o; -} -function ml(t) { - return /* @__PURE__ */ l.jsx( - h.svg, - { - width: "1.2em", - viewBox: "0 0 12 10", - style: { - fill: "none", - strokeWidth: 2, - stroke: "currentColor", - strokeDasharray: 16 - }, - ...t, - children: /* @__PURE__ */ l.jsx("polyline", { points: "1.5 6 4.5 9 10.5 1" }) - } - ); -} -function pl(t) { - return /* @__PURE__ */ l.jsx( - h.svg, - { - width: "1.2em", - viewBox: "0 0 24 24", - style: { stroke: "currentColor", strokeWidth: 4 }, - ...t, - children: /* @__PURE__ */ l.jsx("line", { x1: "21", x2: "3", y1: "12", y2: "12" }) - } - ); -} -function hl(t) { - const { isIndeterminate: e, isChecked: n, ...o } = t, r = e ? pl : ml; - return n || e ? /* @__PURE__ */ l.jsx( - h.div, - { - style: { - display: "flex", - alignItems: "center", - justifyContent: "center", - height: "100%" - }, - children: /* @__PURE__ */ l.jsx(r, { ...o }) - } - ) : null; -} -var pn = { - border: "0", - clip: "rect(0, 0, 0, 0)", - height: "1px", - width: "1px", - margin: "-1px", - padding: "0", - overflow: "hidden", - whiteSpace: "nowrap", - position: "absolute" -}, vl = h("span", { - baseStyle: pn -}); -vl.displayName = "VisuallyHidden"; -var gl = h("input", { - baseStyle: pn -}); -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)); -} -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, xl(t) && (at = "keyboard", hn("keyboard", t)); -} -function Ue(t) { - if (at = "pointer", t.type === "mousedown" || t.type === "pointerdown") { - $e = !0; - const e = t.composedPath ? t.composedPath()[0] : t.target; - let n = !1; - try { - n = e.matches(":focus-visible"); - } catch { - } - if (n) - return; - hn("pointer", t); - } -} -function Sl(t) { - return t.mozInputSource === 0 && t.isTrusted ? !0 : t.detail === 0 && !t.pointerType; -} -function _l(t) { - Sl(t) && ($e = !0, at = "virtual"); -} -function kl(t) { - t.target === window || t.target === document || (!$e && !$t && (at = "virtual", hn("virtual", t)), $e = !1, $t = !1); -} -function Cl() { - $e = !1, $t = !0; -} -function Kn() { - return at !== "pointer"; -} -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", _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 Xo(t) { - wl(), t(Kn()); - const e = () => t(Kn()); - return Ot.add(e), () => { - Ot.delete(e); - }; -} -function Pl(t, e = []) { - const n = Object.assign({}, t); - for (const o of e) - o in n && delete n[o]; - return n; -} -function Yo(t = {}) { - const e = co(t), { - isDisabled: n, - isReadOnly: o, - isRequired: r, - isInvalid: s, - id: a, - onBlur: i, - onFocus: c, - "aria-describedby": u - } = e, { - defaultChecked: d, - isChecked: f, - isFocusable: m, - onChange: p, - isIndeterminate: b, - name: y, - value: v, - tabIndex: _ = void 0, - "aria-label": S, - "aria-labelledby": E, - "aria-invalid": I, - ...w - } = t, P = Pl(w, [ - "isDisabled", - "isReadOnly", - "isRequired", - "isInvalid", - "id", - "onBlur", - "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(() => 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) { - N.preventDefault(); - return; - } - de || re(q ? N.target.checked : b ? !0 : N.target.checked), G == null || G(N); - }, - [ - o, - n, - q, - de, - b, - G - ] - ); - Ae(() => { - T.current && (T.current.indeterminate = !!b); - }, [b]), tt(() => { - n && R(!1); - }, [n, R]), Ae(() => { - const N = T.current; - if (!(N != null && N.form)) - return; - const oe = () => { - re(!!d); - }; - return N.form.addEventListener("reset", oe), () => { - var J; - return (J = N.form) == null ? void 0 : J.removeEventListener("reset", oe); - }; - }, []); - const ve = n && !m, ye = x( - (N) => { - N.key === " " && Z(!0); - }, - [Z] - ), we = x( - (N) => { - N.key === " " && Z(!1); - }, - [Z] - ); - Ae(() => { - if (!T.current) - return; - T.current.checked !== q && re(T.current.checked); - }, [T.current]); - const j = x( - (N = {}, oe = null) => { - const J = (pe) => { - O && pe.preventDefault(), Z(!0); - }; - return { - ...N, - ref: oe, - "data-active": $(W), - "data-hover": $(z), - "data-checked": $(q), - "data-focus": $(O), - "data-focus-visible": $(O && D), - "data-indeterminate": $(b), - "data-disabled": $(n), - "data-invalid": $(s), - "data-readonly": $(o), - "aria-hidden": !0, - onMouseDown: A(N.onMouseDown, J), - onMouseUp: A(N.onMouseUp, () => Z(!1)), - onMouseEnter: A( - N.onMouseEnter, - () => Y(!0) - ), - onMouseLeave: A( - N.onMouseLeave, - () => Y(!1) - ) - }; - }, - [ - W, - q, - n, - O, - D, - z, - b, - s, - o - ] - ), H = x( - (N = {}, oe = null) => ({ - ...N, - ref: oe, - "data-active": $(W), - "data-hover": $(z), - "data-checked": $(q), - "data-focus": $(O), - "data-focus-visible": $(O && D), - "data-indeterminate": $(b), - "data-disabled": $(n), - "data-invalid": $(s), - "data-readonly": $(o) - }), - [ - W, - q, - n, - O, - D, - z, - b, - s, - o - ] - ), B = x( - (N = {}, oe = null) => ({ - ...P, - ...N, - ref: ce(oe, (J) => { - J && me(J.tagName === "LABEL"); - }), - onClick: A(N.onClick, () => { - var J; - ae || ((J = T.current) == null || J.click(), requestAnimationFrame(() => { - var pe; - (pe = T.current) == null || pe.focus({ preventScroll: !0 }); - })); - }), - "data-disabled": $(n), - "data-checked": $(q), - "data-invalid": $(s) - }), - [P, n, q, s, ae] - ), te = x( - (N = {}, oe = null) => ({ - ...N, - ref: ce(T, oe), - type: "checkbox", - name: y, - value: v, - id: a, - tabIndex: _, - onChange: A(N.onChange, se), - onBlur: A( - N.onBlur, - F, - () => R(!1) - ), - onFocus: A( - N.onFocus, - ee, - () => R(!0) - ), - onKeyDown: A(N.onKeyDown, ye), - onKeyUp: A(N.onKeyUp, we), - required: r, - checked: q, - disabled: ve, - readOnly: o, - "aria-label": S, - "aria-labelledby": E, - "aria-invalid": I ? !!I : s, - "aria-describedby": u, - "aria-disabled": n, - style: pn - }), - [ - y, - v, - a, - se, - F, - ee, - ye, - we, - r, - q, - ve, - o, - S, - E, - I, - s, - u, - n, - _ - ] - ), he = x( - (N = {}, oe = null) => ({ - ...N, - ref: oe, - onMouseDown: A(N.onMouseDown, Nl), - "data-disabled": $(n), - "data-checked": $(q), - "data-invalid": $(s) - }), - [q, n, s] - ); - return { - state: { - isInvalid: s, - isFocused: O, - isChecked: q, - isActive: W, - isHovered: z, - isIndeterminate: b, - isDisabled: n, - isReadOnly: o, - isRequired: r - }, - getRootProps: B, - getCheckboxProps: j, - getIndicatorProps: H, - getInputProps: te, - getLabelProps: he, - htmlProps: P - }; -} -function Nl(t) { - t.preventDefault(), t.stopPropagation(); -} -var Il = { - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - verticalAlign: "top", - userSelect: "none", - flexShrink: 0 -}, El = { - cursor: "pointer", - display: "inline-flex", - alignItems: "center", - verticalAlign: "top", - position: "relative" -}, jl = Ee({ - from: { - opacity: 0, - strokeDashoffset: 16, - transform: "scale(0.95)" - }, - to: { - opacity: 1, - strokeDashoffset: 0, - transform: "scale(1)" - } -}), Al = Ee({ - from: { - opacity: 0 - }, - to: { - opacity: 1 - } -}), Tl = Ee({ - from: { - transform: "scaleX(0.65)" - }, - to: { - transform: "scaleX(1)" - } -}), 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(hl, {}), - isChecked: p, - isDisabled: b = o == null ? void 0 : o.isDisabled, - onChange: y, - inputProps: v, - ..._ - } = a; - let S = p; - o != null && o.value && a.value && (S = o.value.includes(a.value)); - let E = y; - o != null && o.onChange && a.value && (E = Ut(o.onChange, y)); - const { - state: I, - getInputProps: w, - getCheckboxProps: P, - getLabelProps: G, - getRootProps: F - } = Yo({ - ..._, - isDisabled: b, - isChecked: S, - onChange: E - }), ee = fl(I.isChecked), D = Q( - () => ({ - animation: ee ? I.isIndeterminate ? `${Al} 20ms linear, ${Tl} 200ms linear` : `${jl} 200ms linear` : void 0, - fontSize: f, - color: d, - ...s.icon - }), - [d, f, ee, I.isIndeterminate, s.icon] - ), M = ge(m, { - __css: D, - isIndeterminate: I.isIndeterminate, - isChecked: I.isChecked - }); - return /* @__PURE__ */ l.jsxs( - h.label, - { - __css: { ...El, ...s.container }, - className: k("chakra-checkbox", c), - ...F(), - children: [ - /* @__PURE__ */ l.jsx( - "input", - { - className: "chakra-checkbox__input", - ...w(v, n) - } - ), - /* @__PURE__ */ l.jsx( - h.span, - { - __css: { ...Il, ...s.control }, - className: "chakra-checkbox__control", - ...P(), - children: M - } - ), - u && /* @__PURE__ */ l.jsx( - h.span, - { - className: "chakra-checkbox__label", - ...G(), - __css: { - marginStart: i, - ...s.label - }, - children: u - } - ) - ] - } - ); -}); -Ml.displayName = "Checkbox"; -var Dl = (t) => { - const { - type: e = "checkbox", - _hover: n, - _invalid: o, - _disabled: r, - _focus: s, - _checked: a, - _child: i = { opacity: 0 }, - _checkedAndChild: c = { opacity: 1 }, - _checkedAndDisabled: u, - _checkedAndFocus: d, - _checkedAndHover: f, - children: m, - ...p - } = t, b = `input[type=${e}]:checked:disabled + &`, y = `input[type=${e}]:checked:hover:not(:disabled) + &`, v = `input[type=${e}]:checked:focus + &`, _ = `input[type=${e}]:disabled + &`, S = `input[type=${e}]:focus + &`, E = `input[type=${e}]:hover:not(:disabled):not(:checked) + &`, I = `input[type=${e}]:checked + &, input[type=${e}][aria-checked=mixed] + &`, w = `input[type=${e}][aria-invalid=true] + &`, P = "& > *"; - return /* @__PURE__ */ l.jsx( - h.div, - { - ...p, - "aria-hidden": !0, - __css: { - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - transitionProperty: "common", - transitionDuration: "fast", - flexShrink: 0, - [S]: s, - [E]: n, - [_]: r, - [w]: o, - [b]: u, - [v]: d, - [y]: f, - [P]: i, - [I]: { - ...a, - [P]: c - } - }, - children: m - } - ); -}; -Dl.displayName = "ControlBox"; -function Ll(t = {}) { - const { - onChange: e, - precision: n, - defaultValue: o, - value: r, - step: s = 1, - min: a = Number.MIN_SAFE_INTEGER, - max: i = Number.MAX_SAFE_INTEGER, - keepWithinRange: c = !0 - } = 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 = Zo(je(p), s), y = n ?? b, v = x( - (D) => { - D !== p && (m || f(D.toString()), u == null || u(D.toString(), je(D))); - }, - [u, m, p] - ), _ = x( - (D) => { - let M = D; - return c && (M = as(M, a, i)), uo(M, y); - }, - [y, c, i, a] - ), S = x( - (D = s) => { - let M; - p === "" ? M = je(D) : M = je(p) + D, M = _(M), v(M); - }, - [_, s, v, p] - ), E = x( - (D = s) => { - let M; - p === "" ? M = je(-D) : M = je(p) - D, M = _(M), v(M); - }, - [_, s, v, p] - ), I = x(() => { - var D; - let M; - o == null ? M = "" : M = (D = Tt(o, s, n)) != null ? D : a, v(M); - }, [o, n, s, v, a]), w = x( - (D) => { - var M; - const O = (M = Tt(D, s, y)) != null ? M : a; - v(O); - }, - [y, s, v, a] - ), P = je(p); - return { - isOutOfRange: P > i || P < a, - isAtMax: P === i, - isAtMin: P === a, - precision: y, - value: p, - valueAsNumber: P, - update: v, - reset: I, - increment: S, - decrement: E, - clamp: _, - cast: w, - setValue: f - }; -} -function je(t) { - return parseFloat(t.toString().replace(/[^\w.-]+/g, "")); -} -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 = Zo(o, e); - return uo(o, n ?? r); -} -var [Fl, vn] = ne({ - name: "EditableStylesContext", - errorMessage: `useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [Bl, it] = ne({ - name: "EditableContext", - errorMessage: "useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``" -}); -function Qf() { - const { isEditing: t, onSubmit: e, onCancel: n, onEdit: o, isDisabled: r } = it(); - return { - isEditing: t, - onSubmit: e, - onCancel: n, - onEdit: o, - isDisabled: r - }; -} -var gn = { - fontSize: "inherit", - fontWeight: "inherit", - textAlign: "inherit", - bg: "transparent" -}, 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( - h.input, - { - ...s, - __css: { - outline: 0, - ...gn, - ...r.input - }, - className: a - } - ); - } -); -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( - h.span, - { - ...s, - __css: { - cursor: "text", - display: "inline-block", - ...gn, - ...r.preview - }, - className: a - } - ); - } -); -$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( - h.textarea, - { - ...s, - __css: { - outline: 0, - ...gn, - ...r.textarea - }, - className: a - } - ); - } -); -Ol.displayName = "EditableTextarea"; -function Vl(t) { - return "current" in t; -} -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 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; - }; - fo(r, "pointerdown", (s) => { - if (!Kl() || !o) - return; - const a = s.target, c = (n ?? [e]).some((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()); - }); -} -function Un(t, e) { - return t ? t === e || t.contains(e) : !1; -} -function Ul(t = {}) { - const { - onChange: e, - onCancel: n, - onSubmit: o, - onBlur: r, - value: s, - isDisabled: a, - defaultValue: i, - startWithEditView: c, - isPreviewFocusable: u = !0, - submitOnBlur: d = !0, - selectAllOnFocus: f = !0, - placeholder: m, - onEdit: p, - finalFocusRef: b, - ...y - } = t, v = Se(p), _ = !!(c && !a), [S, E] = L(_), [I, w] = ot({ - defaultValue: i || "", - value: s, - onChange: e - }), [P, G] = L(I), F = V(null), ee = V(null), D = V(null), M = V(null), O = V(null); - Qo({ - ref: F, - enabled: S, - elements: [M, O] - }); - const R = !S && !a; - Ae(() => { - var j, H; - S && ((j = F.current) == null || j.focus(), f && ((H = F.current) == null || H.select())); - }, []), tt(() => { - var j, H, B, te; - if (!S) { - b ? (j = b.current) == null || j.focus() : (H = D.current) == null || H.focus(); - return; - } - (B = F.current) == null || B.focus(), f && ((te = F.current) == null || te.select()), v == null || v(); - }, [S, v, f]); - const z = x(() => { - R && E(!0); - }, [R]), Y = x(() => { - G(I); - }, [I]), W = x(() => { - E(!1), w(P), n == null || n(P), r == null || r(P); - }, [n, r, w, P]), Z = x(() => { - E(!1), G(I), o == null || o(I), r == null || r(P); - }, [I, o, r, P]); - U(() => { - if (S) - return; - const j = F.current; - (j == null ? void 0 : j.ownerDocument.activeElement) === j && (j == null || j.blur()); - }, [S]); - const T = x( - (j) => { - w(j.currentTarget.value); - }, - [w] - ), ae = x( - (j) => { - const H = j.key, te = { - Escape: W, - Enter: (he) => { - !he.shiftKey && !he.metaKey && Z(); - } - }[H]; - te && (j.preventDefault(), te(j)); - }, - [W, Z] - ), me = x( - (j) => { - const H = j.key, te = { - Escape: W - }[H]; - te && (j.preventDefault(), te(j)); - }, - [W] - ), ue = I.length === 0, re = x( - (j) => { - var H; - if (!S) - return; - const B = j.currentTarget.ownerDocument, te = (H = j.relatedTarget) != null ? H : B.activeElement, he = Un(M.current, te), fe = Un(O.current, te); - !he && !fe && (d ? Z() : W()); - }, - [d, Z, W, S] - ), de = x( - (j = {}, H = null) => { - const B = R && u ? 0 : void 0; - return { - ...j, - ref: ce(H, ee), - children: ue ? m : I, - hidden: S, - "aria-disabled": Ne(a), - tabIndex: B, - onFocus: A(j.onFocus, z, Y) - }; - }, - [ - a, - S, - R, - u, - ue, - z, - Y, - m, - I - ] - ), q = x( - (j = {}, H = null) => ({ - ...j, - hidden: !S, - placeholder: m, - ref: ce(H, F), - disabled: a, - "aria-disabled": Ne(a), - value: I, - onBlur: A(j.onBlur, re), - onChange: A(j.onChange, T), - onKeyDown: A(j.onKeyDown, ae), - onFocus: A(j.onFocus, Y) - }), - [ - a, - S, - re, - T, - ae, - Y, - m, - I - ] - ), se = x( - (j = {}, H = null) => ({ - ...j, - hidden: !S, - placeholder: m, - ref: ce(H, F), - disabled: a, - "aria-disabled": Ne(a), - value: I, - onBlur: A(j.onBlur, re), - onChange: A(j.onChange, T), - onKeyDown: A(j.onKeyDown, me), - onFocus: A(j.onFocus, Y) - }), - [ - a, - S, - re, - T, - me, - Y, - m, - I - ] - ), ve = x( - (j = {}, H = null) => ({ - "aria-label": "Edit", - ...j, - type: "button", - onClick: A(j.onClick, z), - ref: ce(H, D), - disabled: a - }), - [z, a] - ), ye = x( - (j = {}, H = null) => ({ - ...j, - "aria-label": "Submit", - ref: ce(O, H), - type: "button", - onClick: A(j.onClick, Z), - disabled: a - }), - [Z, a] - ), we = x( - (j = {}, H = null) => ({ - "aria-label": "Cancel", - id: "cancel", - ...j, - ref: ce(M, H), - type: "button", - onClick: A(j.onClick, W), - disabled: a - }), - [W, a] - ); - return { - isEditing: S, - isDisabled: a, - isValueEmpty: ue, - value: I, - onEdit: z, - onCancel: W, - onSubmit: Z, - getPreviewProps: de, - getInputProps: q, - getTextareaProps: se, - getEditButtonProps: ve, - getSubmitButtonProps: ye, - getCancelButtonProps: we, - htmlProps: y - }; -} -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(Bl, { value: a, children: /* @__PURE__ */ l.jsx(Fl, { value: o, children: /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - ...s, - className: f, - children: m - } - ) }) }); -}); -ql.displayName = "Editable"; -function em() { - const { - isEditing: t, - getEditButtonProps: e, - getCancelButtonProps: n, - getSubmitButtonProps: o - } = it(); - return { - isEditing: t, - getEditButtonProps: e, - getCancelButtonProps: n, - getSubmitButtonProps: o - }; -} -function tm(t) { - const e = V(); - return U(() => { - e.current = t; - }, [t]), e.current; -} -function Xl(t) { - const { key: e } = t; - return e.length === 1 || e.length > 1 && /[^a-zA-Z0-9]/.test(e); -} -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 = () => { - a(), s.current = setTimeout(() => { - r([]), s.current = null; - }, e); - }; - U(() => a, []); - function c(u) { - return (d) => { - if (d.key === "Backspace") { - const f = [...o]; - f.pop(), r(f); - return; - } - if (Xl(d)) { - const f = o.concat(d.key); - n(d) && (d.preventDefault(), d.stopPropagation()), r(f), u(f.join("")), i(); - } - }; - } - return c; -} -var bn = st ? zs : U; -function Me(t, e = []) { - const n = V(t); - return bn(() => { - n.current = t; - }), x((...o) => { - var r; - return (r = n.current) == null ? void 0 : r.call(n, ...o); - }, e); -} -function om(t, e) { - const n = Me(t); - U(() => { - if (e == null) - return; - let o = null; - return o = window.setTimeout(() => { - n(); - }, e), () => { - o && window.clearTimeout(o); - }; - }, [e, n]); -} -function rm(t, e) { - const n = V(); - U(() => { - if (n.current) { - const o = Object.keys({ ...n.current, ...e }), r = {}; - o.forEach((s) => { - n.current[s] !== e[s] && (r[s] = { - from: n.current[s], - to: e[s] - }); - }), Object.keys(r).length && console.log("[why-did-you-update]", t, r); - } - n.current = e; - }); -} -function sm(t, e) { - const n = Me(t); - U(() => { - let o = null; - const r = () => n(); - return e !== null && (o = window.setInterval(r, e)), () => { - o && window.clearInterval(o); - }; - }, [e, n]); -} -function am(t) { - const e = V(null); - return e.current = t, e; -} -function Yl(t, e) { - if (t != null) { - if (typeof t == "function") { - t(e); - return; - } - try { - t.current = e; - } catch { - throw new Error(`Cannot assign value '${e}' to ref '${t}'`); - } - } -} -function im(...t) { - return Q(() => t.every((e) => e == null) ? null : (e) => { - t.forEach((n) => { - n && Yl(n, e); - }); - }, t); -} -function kt(t, e, n, o) { - const r = Me(e); - return U(() => { - var s; - const a = (s = ht(n)) != null ? s : document; - if (e) - return a.addEventListener(t, r, o), () => { - a.removeEventListener(t, r, o); - }; - }, [t, n, o, r, e]), () => { - var s; - ((s = ht(n)) != null ? s : document).removeEventListener(t, r, o); - }; -} -function lm(t = !0) { - const e = V(); - return kt("mousedown", (n) => { - t && (e.current = n.target); - }), e; -} -function cm(t) { - const { ref: e, handler: n, enabled: o = !0 } = t, r = Me(n), a = V({ - isPointerDown: !1, - ignoreEmulatedMouseEvents: !1 - }).current; - U(() => { - if (!o) - return; - const i = (f) => { - Mt(f, e) && (a.isPointerDown = !0); - }, c = (f) => { - if (a.ignoreEmulatedMouseEvents) { - a.ignoreEmulatedMouseEvents = !1; - return; - } - a.isPointerDown && n && Mt(f, e) && (a.isPointerDown = !1, r(f)); - }, u = (f) => { - a.ignoreEmulatedMouseEvents = !0, n && a.isPointerDown && Mt(f, e) && (a.isPointerDown = !1, r(f)); - }, d = ze(e.current); - return d.addEventListener("mousedown", i, !0), d.addEventListener("mouseup", c, !0), d.addEventListener("touchstart", i, !0), d.addEventListener("touchend", u, !0), () => { - d.removeEventListener("mousedown", i, !0), d.removeEventListener("mouseup", c, !0), d.removeEventListener("touchstart", i, !0), d.removeEventListener("touchend", u, !0); - }; - }, [n, e, r, a, o]); -} -function Mt(t, e) { - var n; - const o = t.target; - return o && !ze(o).contains(o) ? !1 : !((n = e.current) != null && n.contains(o)); -} -function er(t, e, n, o) { - return kt( - on(e), - nn(n, e === "pointerdown"), - t, - o - ); -} -function tr(t, e = []) { - return U( - () => () => t(), - // eslint-disable-next-line react-hooks/exhaustive-deps - e - ); -} -function um(t, e) { - const { - onPan: n, - onPanStart: o, - onPanEnd: r, - onPanSessionStart: s, - onPanSessionEnd: a, - threshold: i - } = e, c = !!(n || o || r || s || a), u = V(null), d = { - onSessionStart: s, - onSessionEnd: a, - onStart: o, - onMove: n, - onEnd(m, p) { - u.current = null, r == null || r(m, p); - } - }; - U(() => { - var m; - (m = u.current) == null || m.updateHandlers(d); - }); - function f(m) { - u.current = new Ia(m, d, i); - } - er( - () => t.current, - "pointerdown", - c ? f : so - ), tr(() => { - var m; - (m = u.current) == null || m.end(), u.current = null; - }); -} -function nr(t, e) { - const n = Ve(); - return Q( - () => t || [e, n].filter(Boolean).join("-"), - [t, e, n] - ); -} -function dm(t, ...e) { - const n = nr(t); - return Q(() => e.map((o) => `${o}-${n}`), [n, e]); -} -function fm(t) { - const [e, n] = L(null); - return { ref: x( - (r) => { - n(r ? t : null); - }, - [t] - ), id: e, isRendered: !!e }; -} -function Zl(t, e) { - const n = t !== void 0; - return [n, n && typeof t < "u" ? t : e]; -} -function mm(t) { - const { - value: e, - defaultValue: n, - onChange: o, - shouldUpdate: r = (m, p) => m !== p - } = t, s = Me(o), a = Me(r), [i, c] = L(n), u = e !== void 0, d = u ? e : i, f = x( - (m) => { - const p = ht(m, d); - a(d, p) && (u || c(p), s(p)); - }, - [u, s, d, a] - ); - return [d, f]; -} -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] = 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(); - }, [u, s]), b = x(() => { - (d ? m : p)(); - }, [d, p, m]); - return { - isOpen: !!d, - onOpen: p, - onClose: m, - onToggle: b, - isControlled: u, - getButtonProps: (y = {}) => ({ - ...y, - "aria-expanded": d, - "aria-controls": f, - onClick: is(y.onClick, b) - }), - getDisclosureProps: (y = {}) => ({ - ...y, - hidden: !d, - id: f - }) - }; -} -function hm() { - const t = V(/* @__PURE__ */ new Map()), e = t.current, n = x((r, s, a, i) => { - const c = nn( - a, - s === "pointerdown" - ); - t.current.set(a, { - __listener: c, - type: on(s), - el: r, - options: i - }), r.addEventListener(s, c, i); - }, []), o = x( - (r, s, a, i) => { - const { __listener: c } = t.current.get(a); - r.removeEventListener(s, c, i), t.current.delete(c); - }, - [] - ); - return U( - () => () => { - e.forEach((r, s) => { - o(r.el, r.type, s, r.options); - }); - }, - [o, e] - ), { add: n, remove: o }; -} -var yn = (t, e) => { - const n = V(!1), o = V(!1); - U(() => { - if (n.current && o.current) - return t(); - o.current = !0; - }, e), U(() => (n.current = !0, () => { - n.current = !1; - }), []); -}; -function vm(t, e) { - const { shouldFocus: n, preventScroll: o } = e; - yn(() => { - const r = t.current; - !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 = da(e); - return !n || tn(e, n) ? !1 : !!$a(n); -} -function gm(t, e) { - const { shouldFocus: n, visible: o, focusRef: r } = e, s = n && !o; - yn(() => { - if (!s || Jl(t)) - return; - const a = (r == null ? void 0 : r.current) || t.current; - a && nt(a, { nextTick: !0 }); - }, [s, t, r]); -} -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 = mo(d) ? d.current : d; - return tn(f, i); - }); - !Po(i) && u && (a.preventDefault(), nt(i)); - }); -} -var Ql = { - preventScroll: !0, - shouldFocus: !1 -}; -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]); - const d = x(() => { - if (!(!s || !a || !c.current) && (c.current = !1, !tn(a, document.activeElement))) - if (n != null && n.current) - nt(n.current, { preventScroll: o, nextTick: !0 }); - else { - const f = Ha(a); - f.length > 0 && nt(f[0], { preventScroll: o, nextTick: !0 }); - } - }, [s, o, a, n]); - yn(() => { - d(); - }, [d]), kt("transitionend", d, a); -} -function xm() { - const t = V(!1), [e, n] = L(0); - return tr(() => { - t.current = !0; - }), x(() => { - t.current || n(e + 1); - }, [e]); -} -function Sm(t) { - const { isOpen: e, ref: n } = t, [o, r] = L(e), [s, a] = L(!1); - return U(() => { - s || (r(e), a(!0)); - }, [e, s, o]), kt( - "animationend", - () => { - r(e); - }, - () => n.current - ), { - present: !(e ? !1 : !o), - onComplete() { - var c; - const u = ca(n.current), d = new u.CustomEvent("animationend", { bubbles: !0 }); - (c = n.current) == null || c.dispatchEvent(d); - } - }; -} -function _m(t = !1) { - const [e, n] = L(t), o = Q( - () => ({ - on: () => n(!0), - off: () => n(!1), - toggle: () => n((r) => !r) - }), - [] - ); - return [e, o]; -} -var ec = function() { - var t = document.getSelection(); - if (!t.rangeCount) - return function() { - }; - for (var e = document.activeElement, n = [], o = 0; o < t.rangeCount; o++) - n.push(t.getRangeAt(o)); - switch (e.tagName.toUpperCase()) { - case "INPUT": - case "TEXTAREA": - e.blur(); - break; - default: - e = null; - break; - } - return t.removeAllRanges(), function() { - t.type === "Caret" && t.removeAllRanges(), t.rangeCount || n.forEach(function(r) { - t.addRange(r); - }), e && e.focus(); - }; -}, tc = ec, qn = { - "text/plain": "Text", - "text/html": "Url", - default: "Text" -}, 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 rc(t, e) { - var n, o, r, s, a, i, c = !1; - e || (e = {}), n = e.debug || !1; - try { - 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(); - var f = qn[e.format] || qn.default; - window.clipboardData.setData(f, t); - } else - d.clipboardData.clearData(), d.clipboardData.setData(e.format, t); - e.onCopy && (d.preventDefault(), e.onCopy(d.clipboardData)); - }), document.body.appendChild(i), s.selectNodeContents(i), a.addRange(s); - var u = document.execCommand("copy"); - if (!u) - throw new Error("copy command was unsuccessful"); - c = !0; - } catch (d) { - n && console.error("unable to copy using execCommand: ", d), n && console.warn("trying IE specific stuff"); - 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 = 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 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 = ac(r, i); - o(u); - }, [r, i]); - return U(() => { - let u = null; - return n && (u = window.setTimeout(() => { - o(!1); - }, a)), () => { - u && window.clearTimeout(u); - }; - }, [a, n]), { - value: r, - setValue: s, - onCopy: c, - hasCopied: n - }; -} -function Cm(t) { - const e = V(null); - return e.current === null && (e.current = typeof t == "function" ? t() : t), e.current; -} -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 = Za(a); - o(i); - })); - } - return s(), e && (window.addEventListener("resize", s), window.addEventListener("scroll", s)), () => { - e && (window.removeEventListener("resize", s), window.removeEventListener("scroll", s)), r.current && cancelAnimationFrame(r.current); - }; - }, [e]), n; -} -var [ic, or] = ne({ - name: "InputGroupStylesContext", - errorMessage: `useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), 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) => { - var p, b; - o && (d && m.type.id === "InputLeftElement" && (c.paddingStart = (p = d.height) != null ? p : d.h), d && m.type.id === "InputRightElement" && (c.paddingEnd = (b = d.height) != null ? b : d.h), m.type.id === "InputRightAddon" && (c.borderEndRadius = 0), m.type.id === "InputLeftAddon" && (c.borderStartRadius = 0)); - }); - const f = u.map((m) => { - var p, b; - const y = rn({ - size: ((p = m.props) == null ? void 0 : p.size) || e.size, - variant: ((b = m.props) == null ? void 0 : b.variant) || e.variant - }); - return m.type.id !== "Input" ? ge(m, y) : ge(m, Object.assign(y, c, m.props)); - }); - return /* @__PURE__ */ l.jsx( - h.div, - { - className: i, - ref: n, - __css: { - width: "100%", - display: "flex", - position: "relative", - // Parts of inputs override z-index to ensure that they stack correctly on each other - // Create a new stacking context so that these overrides don't leak out and conflict with other z-indexes - isolation: "isolate", - ...o.group - }, - "data-group": !0, - ...a, - children: /* @__PURE__ */ l.jsx(ic, { value: o, children: f }) - } - ); - } -); -lc.displayName = "InputGroup"; -var cc = { - left: { - marginEnd: "-1px", - borderEndRadius: 0, - borderEndColor: "transparent" - }, - right: { - marginStart: "-1px", - borderStartRadius: 0, - borderStartColor: "transparent" - } -}, uc = h("div", { - baseStyle: { - flex: "0 0 auto", - width: "auto", - display: "flex", - alignItems: "center", - whiteSpace: "nowrap" - } -}), xn = g( - function(e, n) { - var o; - const { placement: r = "left", ...s } = e, a = (o = cc[r]) != null ? o : {}, i = or(); - return /* @__PURE__ */ l.jsx( - uc, - { - ref: n, - ...s, - __css: { - ...i.addon, - ...a - } - } - ); - } -); -xn.displayName = "InputAddon"; -var rr = g( - function(e, n) { - return /* @__PURE__ */ l.jsx( - xn, - { - ref: n, - placement: "left", - ...e, - className: k("chakra-input__left-addon", e.className) - } - ); - } -); -rr.displayName = "InputLeftAddon"; -rr.id = "InputLeftAddon"; -var sr = g( - function(e, n) { - return /* @__PURE__ */ l.jsx( - xn, - { - ref: n, - placement: "right", - ...e, - className: k("chakra-input__right-addon", e.className) - } - ); - } -); -sr.displayName = "InputRightAddon"; -sr.id = "InputRightAddon"; -var dc = h("div", { - baseStyle: { - display: "flex", - alignItems: "center", - justifyContent: "center", - position: "absolute", - top: "0", - zIndex: 2 - } -}), Ct = g(function(e, n) { - var o, r; - 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(dc, { ref: n, __css: d, ...a }); -}); -Ct.id = "InputElement"; -Ct.displayName = "InputElement"; -var ar = g( - function(e, n) { - const { className: o, ...r } = e, s = k("chakra-input__left-element", o); - return /* @__PURE__ */ l.jsx( - Ct, - { - ref: n, - placement: "left", - className: s, - ...r - } - ); - } -); -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( - Ct, - { - ref: n, - placement: "right", - className: s, - ...r - } - ); - } -); -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, - { - size: o, - ...i, - __css: s.field, - ref: n, - className: c - } - ); -}); -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, - { - target: s ? "_blank" : void 0, - rel: s ? "noopener" : void 0, - ref: n, - className: k("chakra-link", r), - ...a, - __css: o - } - ); -}); -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) { - const o = ie("List", e), { - children: r, - styleType: s = "none", - stylePosition: a, - spacing: i, - ...c - } = K(e), u = Oe(r), f = i ? { ["& > *:not(style) ~ *:not(style)"]: { mt: i } } : {}; - return /* @__PURE__ */ l.jsx(mc, { value: o, children: /* @__PURE__ */ l.jsx( - h.ul, - { - ref: n, - listStyleType: s, - listStylePosition: a, - role: "list", - __css: { ...o.container, ...f }, - ...c, - children: u - } - ) }); -}); -Sn.displayName = "List"; -var pc = g((t, e) => { - const { as: n, ...o } = t; - return /* @__PURE__ */ l.jsx(Sn, { ref: e, as: "ol", styleType: "decimal", marginStart: "1em", ...o }); -}); -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 }); -}); -hc.displayName = "UnorderedList"; -var vc = g(function(e, n) { - const o = cr(); - return /* @__PURE__ */ l.jsx(h.li, { ref: n, ...e, __css: o.item }); -}); -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 }); -}); -gc.displayName = "ListIcon"; -var ur = g(function(e, n) { - const { - templateAreas: o, - gap: r, - rowGap: s, - columnGap: a, - column: i, - row: c, - autoFlow: u, - autoRows: d, - templateRows: f, - autoColumns: m, - templateColumns: p, - ...b - } = e, y = { - display: "grid", - gridTemplateAreas: o, - gridGap: r, - gridRowGap: s, - gridColumnGap: a, - gridAutoColumns: m, - gridColumn: i, - gridRow: c, - gridAutoFlow: u, - gridAutoRows: d, - gridTemplateRows: f, - gridTemplateColumns: p - }; - return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: y, ...b }); -}); -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 ? xc(i, u) : Sc(o); - return /* @__PURE__ */ l.jsx( - ur, - { - ref: n, - gap: a, - columnGap: r, - rowGap: s, - templateColumns: d, - ...c - } - ); - } -); -bc.displayName = "SimpleGrid"; -function yc(t) { - return typeof t == "number" ? `${t}px` : t; -} -function xc(t, e) { - return Ie(t, (n) => { - const o = cs("sizes", n, yc(n))(e); - return n === null ? null : `repeat(auto-fit, minmax(${o}, 1fr))`; - }); -} -function Sc(t) { - return Ie( - t, - (e) => e === null ? null : `repeat(${e}, minmax(0, 1fr))` - ); -} -var _c = h("div", { - baseStyle: { - flex: 1, - justifySelf: "stretch", - alignSelf: "stretch" - } -}); -_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, - textTransform: e.casing - }); - return /* @__PURE__ */ l.jsx( - h.p, - { - ref: n, - className: k("chakra-text", e.className), - ...u, - ...c, - __css: o - } - ); -}); -kc.displayName = "Text"; -var Cc = g(function(e, n) { - const { - spacing: o = "0.5rem", - spacingX: r, - spacingY: s, - children: a, - justify: i, - direction: c, - align: u, - className: d, - shouldWrapChildren: f, - ...m - } = 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( - h.ul, - { - className: "chakra-wrap__list", - __css: { - display: "flex", - flexWrap: "wrap", - justifyContent: i, - alignItems: u, - flexDirection: c, - listStyleType: "none", - gap: o, - columnGap: r, - rowGap: s, - padding: "0" - }, - children: p - } - ) }); -}); -Cc.displayName = "Wrap"; -var dr = g(function(e, n) { - const { className: o, ...r } = e; - return /* @__PURE__ */ l.jsx( - h.li, - { - ref: n, - __css: { display: "flex", alignItems: "flex-start" }, - className: k("chakra-wrap__listitem", o), - ...r - } - ); -}); -dr.displayName = "WrapItem"; -var wc = (t) => /* @__PURE__ */ l.jsx( - h.div, - { - className: "chakra-stack__divider", - ...t, - __css: { - ...t.__css, - borderWidth: 0, - alignSelf: "stretch", - borderColor: "inherit", - width: "auto", - height: "auto" - } - } -); -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 Nc = g(function(e, n) { - const { - area: o, - colSpan: r, - colStart: s, - colEnd: a, - rowEnd: i, - rowSpan: c, - rowStart: u, - ...d - } = e, f = rn({ - gridArea: o, - gridColumn: Xn(r), - gridRow: Xn(c), - gridColumnStart: s, - gridColumnEnd: a, - gridRowStart: u, - gridRowEnd: i - }); - return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: f, ...d }); -}); -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, - { - ref: n, - className: k("chakra-heading", e.className), - ...s, - __css: o - } - ); -}); -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 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 Tc(t) { - const { text: e, query: n } = t; - return Q(() => Ac({ text: e, query: n }), [e, n]); -} -var Mc = g(function(e, n) { - const o = _e("Mark", e), r = K(e); - return /* @__PURE__ */ l.jsx( - ds, - { - ref: n, - ...r, - as: "mark", - __css: { bg: "transparent", whiteSpace: "nowrap", ...o } - } - ); -}); -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 = 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 Nm = g(function(e, n) { - const { - offsetX: o, - offsetY: r, - offset: s = "0", - placement: a = "top-end", - ...i - } = e, c = Q( - () => ({ - display: "inline-flex", - justifyContent: "center", - alignItems: "center", - position: "absolute", - insetBlockStart: Ie(a, (u) => { - const [d] = u.split("-"); - return { - top: r ?? s, - middle: "50%", - bottom: "auto" - }[d]; - }), - insetBlockEnd: Ie(a, (u) => { - const [d] = u.split("-"); - return { - top: "auto", - middle: "50%", - bottom: r ?? s - }[d]; - }), - insetStart: Ie(a, (u) => { - const [, d] = u.split("-"); - return { - start: o ?? s, - center: "50%", - end: "auto" - }[d]; - }), - insetEnd: Ie(a, (u) => { - const [, d] = u.split("-"); - return { - start: "auto", - center: "50%", - end: o ?? s - }[d]; - }), - translate: Ie(a, (u) => { - const [d, f] = u.split("-"), m = { start: "-50%", center: "-50%", end: "50%" }, p = { top: "-50%", middle: "-50%", bottom: "50%" }; - return `${m[f]} ${p[d]}`; - }) - }), - [s, o, r, a] - ); - return /* @__PURE__ */ l.jsx(h.div, { ref: n, __css: c, ...i }); -}), Dc = g(function(e, n) { - const o = _e("Kbd", e), { className: r, ...s } = K(e); - return /* @__PURE__ */ l.jsx( - h.kbd, - { - ref: n, - className: k("chakra-kbd", r), - ...s, - __css: { - fontFamily: "mono", - ...o - } - } - ); -}); -Dc.displayName = "Kbd"; -var Im = g( - function(e, n) { - const { isExternal: o, target: r, rel: s, className: a, ...i } = e; - return /* @__PURE__ */ l.jsx( - h.a, - { - ...i, - ref: n, - className: k("chakra-linkbox__overlay", a), - rel: o ? "noopener noreferrer" : s, - target: o ? "_blank" : r, - __css: { - position: "static", - "&::before": { - content: "''", - cursor: "inherit", - display: "block", - position: "absolute", - top: 0, - left: 0, - zIndex: 0, - width: "100%", - height: "100%" - } - } - } - ); - } -), Em = g(function(e, n) { - const { className: o, ...r } = e; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - position: "relative", - ...r, - className: k("chakra-linkbox", o), - __css: { - /* Elevate the links and abbreviations up */ - "a[href]:not(.chakra-linkbox__overlay), abbr[title]": { - position: "relative", - zIndex: 1 - } - } - } - ); -}), 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, - { - ref: e, - position: "relative", - className: i, - _before: { - height: 0, - content: '""', - display: "block", - paddingBottom: Ie(n, (c) => `${1 / c * 100}%`) - }, - __css: { - "& > *:not(style)": { - overflow: "hidden", - position: "absolute", - top: "0", - right: "0", - bottom: "0", - left: "0", - display: "flex", - justifyContent: "center", - alignItems: "center", - width: "100%", - height: "100%" - }, - "& > img, & > video": { - objectFit: "cover" - } - }, - ...s, - children: a - } - ); -}); -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, - { - ref: n, - className: k("chakra-badge", e.className), - ...s, - __css: { - display: "inline-block", - whiteSpace: "nowrap", - verticalAlign: "middle", - ...o - } - } - ); -}); -Fc.displayName = "Badge"; -var Bc = h("div", { - baseStyle: { - display: "flex", - alignItems: "center", - justifyContent: "center" - } -}); -Bc.displayName = "Center"; -var Rc = { - horizontal: { - insetStart: "50%", - transform: "translateX(-50%)" - }, - vertical: { - top: "50%", - transform: "translateY(-50%)" - }, - both: { - insetStart: "50%", - top: "50%", - transform: "translate(-50%, -50%)" - } -}, jm = g( - function(e, n) { - const { axis: o = "both", ...r } = e; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - __css: Rc[o], - ...r, - position: "absolute" - } - ); - } -), $c = g(function(e, n) { - const o = _e("Code", e), { className: r, ...s } = K(e); - return /* @__PURE__ */ l.jsx( - h.code, - { - ref: n, - className: k("chakra-code", e.className), - ...s, - __css: { - display: "inline-block", - ...o - } - } - ); -}); -$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, - { - ref: n, - className: k("chakra-container", o), - ...s, - __css: { - ...a, - ...r && { - display: "flex", - flexDirection: "column", - alignItems: "center" - } - } - } - ); -}); -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; -} -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 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 Vc(t) { - const { children: e, ssr: n } = t, o = mr(t); - return /* @__PURE__ */ l.jsx(fr, { breakpoint: o, hide: !0, ssr: n, children: e }); -} -Vc.displayName = "Hide"; -function Am(t) { - const [e] = Yt( - "(prefers-reduced-motion: reduce)", - t - ); - return e; -} -function Tm(t) { - const [e, n] = Yt( - ["(prefers-color-scheme: light)", "(prefers-color-scheme: dark)"], - t - ); - if (e) - return "light"; - if (n) - return "dark"; -} -function zc(t) { - const { children: e, ssr: n } = t, o = mr(t); - return /* @__PURE__ */ l.jsx(fr, { breakpoint: o, ssr: n, children: e }); -} -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 - ] }); -}); -pr.displayName = "MenuGroup"; -var Hc = (t) => { - const { className: e, title: n, ...o } = t, r = ms(o); - return /* @__PURE__ */ l.jsx( - pr, - { - title: n, - className: k("chakra-menu__option-group", e), - ...r - } - ); -}; -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" - } -) }), hr = g( - (t, e) => { - const { icon: n, iconSpacing: o = "0.75rem", ...r } = t, s = ps(r, e); - return /* @__PURE__ */ l.jsxs( - hs, - { - ...s, - className: k("chakra-menu__menuitem-option", r.className), - children: [ - n !== null && /* @__PURE__ */ l.jsx( - vs, - { - fontSize: "0.8em", - marginEnd: o, - opacity: t.isChecked ? 1 : 0, - children: n || /* @__PURE__ */ l.jsx(Gc, {}) - } - ), - /* @__PURE__ */ l.jsx("span", { style: { flex: 1 }, children: s.children }) - ] - } - ); - } -); -hr.id = "MenuItemOption"; -hr.displayName = "MenuItemOption"; -function Mm(t) { - const { leastDestructiveRef: e, ...n } = t; - return /* @__PURE__ */ l.jsx(gs, { ...n, initialFocusRef: e }); -} -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" - } -) }), Kc = (t) => /* @__PURE__ */ l.jsx(be, { viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ l.jsx( - "path", - { - fill: "currentColor", - d: "M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z" - } -) }); -function Zn(t, e, n, o) { - U(() => { - var r; - if (!t.current || !o) - return; - const s = (r = t.current.ownerDocument.defaultView) != null ? r : window, a = Array.isArray(e) ? e : [e], i = new s.MutationObserver((c) => { - for (const u of c) - u.type === "attributes" && u.attributeName && a.includes(u.attributeName) && n(u); - }); - return i.observe(t.current, { attributes: !0, attributeFilter: a }), () => i.disconnect(); - }); -} -function Uc(t, e) { - const n = Se(t); - U(() => { - let o = null; - const r = () => n(); - return e !== null && (o = window.setInterval(r, e)), () => { - o && window.clearInterval(o); - }; - }, [e, n]); -} -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); - Uc( - () => { - r === "increment" && t(), r === "decrement" && e(); - }, - n ? qc : null - ); - const d = x(() => { - a && t(), c.current = setTimeout(() => { - i(!1), o(!0), s("increment"); - }, Jn); - }, [t, a]), f = x(() => { - a && e(), c.current = setTimeout(() => { - i(!1), o(!0), s("decrement"); - }, Jn); - }, [e, a]), m = x(() => { - i(!0), o(!1), u(); - }, []); - return U(() => () => u(), []), { up: d, down: f, stop: m, isSpinning: n }; -} -var Yc = /^[Ee0-9+\-.]$/; -function Zc(t) { - return Yc.test(t); -} -function Jc(t, e) { - if (t.key == null) - return !0; - const n = t.ctrlKey || t.altKey || t.metaKey; - return !(t.key.length === 1) || n ? !0 : e(t.key); -} -function Qc(t = {}) { - const { - focusInputOnChange: e = !0, - clampValueOnBlur: n = !0, - keepWithinRange: o = !0, - min: r = Number.MIN_SAFE_INTEGER, - max: s = Number.MAX_SAFE_INTEGER, - step: a = 1, - isReadOnly: i, - isDisabled: c, - isRequired: u, - isInvalid: d, - pattern: f = "[0-9]*(.[0-9]+)?", - inputMode: m = "decimal", - allowMouseWheel: p, - id: b, - onChange: y, - precision: v, - name: _, - "aria-describedby": S, - "aria-label": E, - "aria-labelledby": I, - onFocus: w, - onBlur: P, - onInvalid: G, - getAriaValueText: F, - isValidCharacter: ee, - format: D, - parse: M, - ...O - } = t, R = Se(w), z = Se(P), Y = Se(G), W = Se( - ee ?? Zc - ), Z = Se(F), T = Ll(t), { - update: ae, - increment: me, - decrement: ue - } = T, [re, de] = L(!1), q = !(i || c), se = V(null), ve = V(null), ye = V(null), we = V(null), j = x( - (C) => C.split("").filter(W).join(""), - [W] - ), H = x( - (C) => { - var X; - return (X = M == null ? void 0 : M(C)) != null ? X : C; - }, - [M] - ), B = x( - (C) => { - var X; - return ((X = D == null ? void 0 : D(C)) != null ? X : C).toString(); - }, - [D] - ); - tt(() => { - (T.valueAsNumber > s || T.valueAsNumber < r) && (Y == null || Y("rangeOverflow", B(T.value), T.valueAsNumber)); - }, [T.valueAsNumber, T.value, B, Y]), Ae(() => { - if (!se.current) - return; - if (se.current.value != T.value) { - const X = H(se.current.value); - T.setValue(j(X)); - } - }, [H, j]); - const te = x( - (C = a) => { - q && me(C); - }, - [me, q, a] - ), he = x( - (C = a) => { - q && ue(C); - }, - [ue, q, a] - ), fe = Xc(te, he); - Zn( - ye, - "disabled", - fe.stop, - fe.isSpinning - ), Zn( - we, - "disabled", - fe.stop, - fe.isSpinning - ); - const N = x( - (C) => { - if (C.nativeEvent.isComposing) - return; - const le = H(C.currentTarget.value); - ae(j(le)), ve.current = { - start: C.currentTarget.selectionStart, - end: C.currentTarget.selectionEnd - }; - }, - [ae, j, H] - ), oe = x( - (C) => { - var X, le, xe; - 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] - ), J = x( - (C) => { - if (C.nativeEvent.isComposing) - return; - Jc(C, W) || C.preventDefault(); - const X = pe(C) * a, le = C.key, Be = { - ArrowUp: () => te(X), - ArrowDown: () => he(X), - Home: () => ae(r), - End: () => ae(s) - }[le]; - Be && (C.preventDefault(), Be(C)); - }, - [W, a, te, he, ae, r, s] - ), pe = (C) => { - let X = 1; - return (C.metaKey || C.ctrlKey) && (X = 0.1), C.shiftKey && (X = 10), X; - }, Fe = Q(() => { - const C = Z == null ? void 0 : Z(T.value); - if (C != null) - return C; - const X = T.value.toString(); - return X || void 0; - }, [T.value, Z]), We = x(() => { - let C = T.value; - if (T.value === "") - return; - /^[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]), Qe = x(() => { - e && requestAnimationFrame(() => { - var C; - (C = se.current) == null || C.focus(); - }); - }, [e]), Pn = x( - (C) => { - C.preventDefault(), fe.up(), Qe(); - }, - [Qe, fe] - ), Nn = x( - (C) => { - C.preventDefault(), fe.down(), Qe(); - }, - [Qe, fe] - ); - fo( - () => se.current, - "wheel", - (C) => { - var X, le; - const Be = ((le = (X = se.current) == null ? void 0 : X.ownerDocument) != null ? le : document).activeElement === se.current; - if (!p || !Be) - return; - C.preventDefault(); - const et = pe(C) * a, In = Math.sign(C.deltaY); - In === -1 ? te(et) : In === 1 && he(et); - }, - { passive: !1 } - ); - const Br = x( - (C = {}, X = null) => { - const le = c || o && T.isAtMax; - return { - ...C, - ref: ce(X, ye), - role: "button", - tabIndex: -1, - onPointerDown: A(C.onPointerDown, (xe) => { - xe.button !== 0 || le || Pn(xe); - }), - onPointerLeave: A(C.onPointerLeave, fe.stop), - onPointerUp: A(C.onPointerUp, fe.stop), - disabled: le, - "aria-disabled": Ne(le) - }; - }, - [T.isAtMax, o, Pn, fe.stop, c] - ), Rr = x( - (C = {}, X = null) => { - const le = c || o && T.isAtMin; - return { - ...C, - ref: ce(X, we), - role: "button", - tabIndex: -1, - onPointerDown: A(C.onPointerDown, (xe) => { - xe.button !== 0 || le || Nn(xe); - }), - onPointerLeave: A(C.onPointerLeave, fe.stop), - onPointerUp: A(C.onPointerUp, fe.stop), - disabled: le, - "aria-disabled": Ne(le) - }; - }, - [T.isAtMin, o, Nn, fe.stop, c] - ), $r = x( - (C = {}, X = null) => { - var le, xe, Be, et; - return { - name: _, - inputMode: m, - type: "text", - pattern: f, - "aria-labelledby": I, - "aria-label": E, - "aria-describedby": S, - id: b, - disabled: c, - ...C, - readOnly: (le = C.readOnly) != null ? le : i, - "aria-readonly": (xe = C.readOnly) != null ? xe : i, - "aria-required": (Be = C.required) != null ? Be : u, - required: (et = C.required) != null ? et : u, - ref: ce(se, X), - value: B(T.value), - role: "spinbutton", - "aria-valuemin": r, - "aria-valuemax": s, - "aria-valuenow": Number.isNaN(T.valueAsNumber) ? void 0 : T.valueAsNumber, - "aria-invalid": Ne(d ?? T.isOutOfRange), - "aria-valuetext": Fe, - autoComplete: "off", - autoCorrect: "off", - onChange: A(C.onChange, N), - onKeyDown: A(C.onKeyDown, J), - onFocus: A( - C.onFocus, - oe, - () => de(!0) - ), - onBlur: A(C.onBlur, z, ut) - }; - }, - [ - _, - m, - f, - I, - E, - B, - S, - b, - c, - u, - i, - d, - T.value, - T.valueAsNumber, - T.isOutOfRange, - r, - s, - Fe, - N, - J, - oe, - z, - ut - ] - ); - return { - value: B(T.value), - valueAsNumber: T.valueAsNumber, - isFocused: re, - isDisabled: c, - isReadOnly: i, - getIncrementButtonProps: Br, - getDecrementButtonProps: Rr, - getInputProps: $r, - htmlProps: O - }; -} -var [eu, wt] = ne({ - name: "NumberInputStylesContext", - errorMessage: `useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), [tu, _n] = ne({ - name: "NumberInputContext", - errorMessage: "useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within " -}), nu = g( - function(e, n) { - 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, - ref: n, - className: k("chakra-numberinput", e.className), - __css: { - position: "relative", - zIndex: 0, - ...o.root - } - } - ) }) }); - } -); -nu.displayName = "NumberInput"; -var ou = g( - function(e, n) { - const o = wt(); - return /* @__PURE__ */ l.jsx( - h.div, - { - "aria-hidden": !0, - ref: n, - ...e, - __css: { - display: "flex", - flexDirection: "column", - position: "absolute", - top: "0", - insetEnd: "0px", - margin: "1px", - height: "calc(100% - 2px)", - zIndex: 1, - ...o.stepperGroup - } - } - ); - } -); -ou.displayName = "NumberInputStepper"; -var ru = g( - function(e, n) { - const { getInputProps: o } = _n(), r = o(e, n), s = wt(); - return /* @__PURE__ */ l.jsx( - h.input, - { - ...r, - className: k("chakra-numberinput__field", e.className), - __css: { - width: "100%", - ...s.field - } - } - ); - } -); -ru.displayName = "NumberInputField"; -var vr = h("div", { - baseStyle: { - display: "flex", - justifyContent: "center", - alignItems: "center", - flex: 1, - transitionProperty: "common", - transitionDuration: "normal", - userSelect: "none", - cursor: "pointer", - lineHeight: "normal" - } -}), su = g(function(e, n) { - var o; - const r = wt(), { getDecrementButtonProps: s } = _n(), a = s(e, n); - return /* @__PURE__ */ l.jsx(vr, { ...a, __css: r.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Wc, {}) }); -}); -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(vr, { ...s, __css: a.stepper, children: (o = e.children) != null ? o : /* @__PURE__ */ l.jsx(Kc, {}) }); -}); -au.displayName = "NumberIncrementStepper"; -var [ - iu, - Lm, - lu, - cu -] = Kt(), [uu, du] = ne({ - name: "PinInputContext", - errorMessage: "usePinInputContext: `context` is undefined. Seems you forgot to all pin input fields within ``" -}), 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 fu(t = {}) { - const { - autoFocus: e, - value: n, - defaultValue: o, - onChange: r, - onComplete: s, - placeholder: a = "○", - manageFocus: i = !0, - otp: c = !1, - id: u, - isDisabled: d, - isInvalid: f, - type: m = "number", - mask: p - } = 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(() => { - if (e) { - const O = v.first(); - O && requestAnimationFrame(() => { - O.node.focus(); - }); - } - }, [v]); - const G = x( - (O) => { - if (!_ || !i) - return; - const R = v.next(O, !1); - R && requestAnimationFrame(() => { - R.node.focus(); - }); - }, - [v, _, i] - ), F = x( - (O, R, z = !0) => { - const Y = [...w]; - Y[R] = O, P(Y), O !== "" && Y.length === v.count() && Y.every( - (Z) => Z != null && Z !== "" - ) ? s == null || s(Y.join("")) : z && G(R); - }, - [w, P, G, s, v] - ), ee = x(() => { - var O; - const R = Array(v.count()).fill(""); - P(R); - const z = v.first(); - (O = z == null ? void 0 : z.node) == null || O.focus(); - }, [v, P]), D = x((O, R) => { - let z = R; - return (O == null ? void 0 : O.length) > 0 && (O[0] === R.charAt(0) ? z = R.charAt(1) : O[0] === R.charAt(1) && (z = R.charAt(0))), z; - }, []); - return { - // prop getter - getInputProps: x( - (O) => { - const { index: R, ...z } = O, Y = (ue) => { - const re = ue.target.value, de = w[R], q = D(de, re); - if (q === "") { - F("", R); - return; - } - if (re.length > 2) { - if (eo(re, m)) { - const se = re.split("").filter((ve, ye) => ye < v.count()); - P(se), se.length === v.count() && (s == null || s(se.join(""))); - } - } else - eo(q, m) && F(q, R), S(!0); - }, W = (ue) => { - var re; - if (ue.key === "Backspace" && i) - if (ue.target.value === "") { - const de = v.prev(R, !1); - de && (F("", R - 1, !1), (re = de.node) == null || re.focus(), S(!0)); - } else - S(!1); - }, Z = () => { - I(R); - }, T = () => { - I(-1); - }, ae = E === R; - return { - "aria-label": "Please enter your pin code", - inputMode: m === "number" ? "numeric" : "text", - type: p ? "password" : m === "number" ? "tel" : "text", - ...z, - id: `${y}-${R}`, - disabled: d, - "aria-invalid": Ne(f), - onChange: A(z.onChange, Y), - onKeyDown: A(z.onKeyDown, W), - onFocus: A(z.onFocus, Z), - onBlur: A(z.onBlur, T), - value: w[R] || "", - autoComplete: c ? "one-time-code" : "off", - placeholder: ae ? "" : a - }; - }, - [ - v, - E, - D, - y, - d, - p, - f, - i, - s, - c, - a, - F, - P, - m, - w - ] - ), - // state - id: y, - descendants: v, - values: w, - // actions - setValue: F, - setValues: P, - clear: ee - }; -} -function mu(t = {}, e = null) { - const { getInputProps: n } = du(), { index: o, register: r } = cu(); - return n({ - ...t, - ref: ce(r, e), - index: o - }); -} -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(iu, { value: r, children: /* @__PURE__ */ l.jsx(uu, { value: s, children: a }) }); -} -pu.displayName = "PinInput"; -var hu = g( - function(e, n) { - const o = mu(e, n); - return /* @__PURE__ */ l.jsx( - h.input, - { - ...o, - className: k("chakra-pin-input", e.className) - } - ); - } -); -hu.displayName = "PinInputField"; -var [vu, De] = ne({ - name: "PopoverContext", - errorMessage: "usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``" -}), [gu, Je] = ne({ - name: "PopoverStylesContext", - errorMessage: `usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), bu = g( - function(e, n) { - const { getHeaderProps: o } = De(), r = Je(); - return /* @__PURE__ */ l.jsx( - h.header, - { - ...o(e, n), - className: k("chakra-popover__header", e.className), - __css: r.header - } - ); - } -); -bu.displayName = "PopoverHeader"; -function yu(t) { - const e = Ze.only(t.children), { getTriggerProps: n } = De(); - return ge(e, n(e.props, e.ref)); -} -yu.displayName = "PopoverTrigger"; -var qe = { - click: "click", - hover: "hover" -}; -function xu(t = {}) { - const { - closeOnBlur: e = !0, - closeOnEsc: n = !0, - initialFocusRef: o, - id: r, - returnFocusOnClose: s = !0, - autoFocus: a = !0, - arrowSize: i, - arrowShadowColor: c, - trigger: u = qe.click, - openDelay: d = 200, - closeDelay: f = 200, - isLazy: m, - lazyBehavior: p = "unmount", - computePositionOnMount: b, - ...y - } = 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", - "popover-content", - "popover-header", - "popover-body" - ].map((N) => `${N}-${z}`), { - referenceRef: ae, - getArrowProps: me, - getPopperProps: ue, - getArrowInnerProps: re, - forceUpdate: de - } = xs({ - ...y, - enabled: v || !!b - }), q = Ss({ isOpen: v, ref: P }); - Qo({ - enabled: v, - ref: w - }), _s(P, { - focusRef: w, - visible: v, - shouldFocus: s && u === qe.click - }), ks(P, { - focusRef: o, - visible: v, - shouldFocus: a && u === qe.click - }); - const se = po({ - wasSelected: F.current, - enabled: m, - mode: p, - isSelected: q.present - }), ve = x( - (N = {}, oe = null) => { - const J = { - ...N, - style: { - ...N.style, - transformOrigin: Nt.transformOrigin.varRef, - [Nt.arrowSize.var]: i ? `${i}px` : void 0, - [Nt.arrowShadowColor.var]: c - }, - ref: ce(P, oe), - children: se ? N.children : null, - id: W, - tabIndex: -1, - role: "dialog", - onKeyDown: A(N.onKeyDown, (pe) => { - n && pe.key === "Escape" && _(); - }), - onBlur: A(N.onBlur, (pe) => { - const Fe = to(pe), We = Dt(P.current, Fe), ut = Dt(w.current, Fe); - v && e && (!We && !ut) && _(); - }), - "aria-labelledby": ee ? Z : void 0, - "aria-describedby": M ? T : void 0 - }; - return u === qe.hover && (J.role = "tooltip", J.onMouseEnter = A(N.onMouseEnter, () => { - G.current = !0; - }), J.onMouseLeave = A( - N.onMouseLeave, - (pe) => { - pe.nativeEvent.relatedTarget !== null && (G.current = !1, setTimeout(() => _(), f)); - } - )), J; - }, - [ - se, - W, - ee, - Z, - M, - T, - u, - n, - _, - v, - e, - f, - c, - i - ] - ), ye = x( - (N = {}, oe = null) => ue( - { - ...N, - style: { - visibility: v ? "visible" : "hidden", - ...N.style - } - }, - oe - ), - [v, ue] - ), we = x( - (N, oe = null) => ({ - ...N, - // If anchor is rendered, it is used as reference. - ref: ce(oe, I, ae) - }), - [I, ae] - ), j = V(), H = V(), B = x( - (N) => { - I.current == null && ae(N); - }, - [ae] - ), te = x( - (N = {}, oe = null) => { - const J = { - ...N, - ref: ce(w, oe, B), - id: Y, - "aria-haspopup": "dialog", - "aria-expanded": v, - "aria-controls": W - }; - return u === qe.click && (J.onClick = A(N.onClick, E)), u === qe.hover && (J.onFocus = A(N.onFocus, () => { - j.current === void 0 && S(); - }), J.onBlur = A(N.onBlur, (pe) => { - const Fe = to(pe), We = !Dt(P.current, Fe); - v && e && We && _(); - }), J.onKeyDown = A(N.onKeyDown, (pe) => { - pe.key === "Escape" && _(); - }), J.onMouseEnter = A(N.onMouseEnter, () => { - G.current = !0, j.current = window.setTimeout(() => S(), d); - }), 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); - })), J; - }, - [ - Y, - v, - W, - u, - B, - E, - S, - e, - _, - d, - f - ] - ); - U(() => () => { - j.current && clearTimeout(j.current), H.current && clearTimeout(H.current); - }, []); - const he = x( - (N = {}, oe = null) => ({ - ...N, - id: Z, - ref: ce(oe, (J) => { - D(!!J); - }) - }), - [Z] - ), fe = x( - (N = {}, oe = null) => ({ - ...N, - id: T, - ref: ce(oe, (J) => { - O(!!J); - }) - }), - [T] - ); - return { - forceUpdate: de, - isOpen: v, - onAnimationComplete: q.onComplete, - onClose: _, - getAnchorProps: we, - getArrowProps: me, - getArrowInnerProps: re, - getPopoverPositionerProps: ye, - getPopoverProps: ve, - getTriggerProps: te, - getHeaderProps: he, - getBodyProps: fe - }; -} -function Dt(t, e) { - return t === e || (t == null ? void 0 : t.contains(e)); -} -function to(t) { - var e; - const n = t.currentTarget.ownerDocument.activeElement; - return (e = t.relatedTarget) != null ? e : 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 - }) }) }); -} -Su.displayName = "Popover"; -function _u(t) { - const e = Ze.only(t.children), { getAnchorProps: n } = De(); - return ge(e, n(e.props, e.ref)); -} -_u.displayName = "PopoverAnchor"; -var Lt = (t, e) => e ? `${t}.${e}, ${e}` : void 0; -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 = Je(), f = (e = n ?? o) != null ? e : r, m = s ?? a; - return /* @__PURE__ */ l.jsx( - h.div, - { - ...c(), - className: "chakra-popover__arrow-positioner", - children: /* @__PURE__ */ l.jsx( - h.div, - { - className: k("chakra-popover__arrow", t.className), - ...u(t), - __css: { - "--popper-arrow-shadow-color": Lt("colors", i), - "--popper-arrow-bg": Lt("colors", f), - "--popper-arrow-shadow": Lt("shadows", m), - ...d.arrow - } - } - ) - } - ); -} -ku.displayName = "PopoverArrow"; -var Cu = g( - function(e, n) { - const { getBodyProps: o } = De(), r = Je(); - return /* @__PURE__ */ l.jsx( - h.div, - { - ...o(e, n), - className: k("chakra-popover__body", e.className), - __css: r.body - } - ); - } -); -Cu.displayName = "PopoverBody"; -var wu = g( - function(e, n) { - const { onClose: o } = De(), r = Je(); - return /* @__PURE__ */ l.jsx( - Wt, - { - size: "sm", - onClick: o, - className: k("chakra-popover__close-btn", e.className), - __css: r.closeButton, - ref: n, - ...e - } - ); - } -); -wu.displayName = "PopoverCloseButton"; -function Pu(t) { - if (t) - return { - enter: { - ...t.enter, - visibility: "visible" - }, - exit: { - ...t.exit, - transitionEnd: { - visibility: "hidden" - } - } - }; -} -var Nu = { - exit: { - opacity: 0, - scale: 0.95, - transition: { - duration: 0.1, - ease: [0.4, 0, 1, 1] - } - }, - enter: { - scale: 1, - opacity: 1, - transition: { - duration: 0.15, - ease: [0, 0, 0.2, 1] - } - } -}, Iu = h(Gt.section), gr = g(function(e, n) { - const { variants: o = Nu, ...r } = e, { isOpen: s } = De(); - return /* @__PURE__ */ l.jsx( - Iu, - { - ref: n, - variants: Pu(o), - initial: !1, - animate: s ? "enter" : "exit", - ...r - } - ); -}); -gr.displayName = "PopoverTransition"; -var Eu = g( - function(e, n) { - const { rootProps: o, motionProps: r, ...s } = e, { getPopoverProps: a, getPopoverPositionerProps: i, onAnimationComplete: c } = De(), u = Je(), d = { - position: "relative", - display: "flex", - flexDirection: "column", - ...u.content - }; - return /* @__PURE__ */ l.jsx( - h.div, - { - ...i(o), - __css: u.popper, - className: "chakra-popover__popper", - children: /* @__PURE__ */ l.jsx( - gr, - { - ...r, - ...a(s, n), - onAnimationComplete: Ut( - c, - s.onAnimationComplete - ), - className: k("chakra-popover__content", e.className), - __css: d - } - ) - } - ); - } -); -Eu.displayName = "PopoverContent"; -function ju(t) { - const e = Je(); - return /* @__PURE__ */ l.jsx( - h.footer, - { - ...t, - className: k("chakra-popover__footer", t.className), - __css: e.footer - } - ); -} -ju.displayName = "PopoverFooter"; -var Au = h("div", { - baseStyle: { - fontSize: "0.24em", - top: "50%", - left: "50%", - width: "100%", - textAlign: "center", - position: "absolute", - transform: "translate(-50%, -50%)" - } -}); -Au.displayName = "CircularProgressLabel"; -var Vt = (t) => /* @__PURE__ */ l.jsx(h.circle, { cx: 50, cy: 50, r: 42, fill: "transparent", ...t }); -Vt.displayName = "Circle"; -function Tu(t, e, n) { - return (t - e) * 100 / (n - e); -} -var Mu = Ee({ - "0%": { - strokeDasharray: "1, 400", - strokeDashoffset: "0" - }, - "50%": { - strokeDasharray: "400, 400", - strokeDashoffset: "-100" - }, - "100%": { - strokeDasharray: "400, 400", - strokeDashoffset: "-260" - } -}), Du = Ee({ - "0%": { - transform: "rotate(0deg)" - }, - "100%": { - transform: "rotate(360deg)" - } -}), Lu = Ee({ - "0%": { left: "-40%" }, - "100%": { left: "100%" } -}), Fu = Ee({ - from: { backgroundPosition: "1rem 0" }, - to: { backgroundPosition: "0 0" } -}); -function br(t) { - const { - value: e = 0, - min: n, - max: o, - valueText: r, - getValueText: s, - isIndeterminate: a, - role: i = "progressbar" - } = t, c = Tu(e, n, o); - return { - bind: { - "data-indeterminate": a ? "" : void 0, - "aria-valuemax": o, - "aria-valuemin": n, - "aria-valuenow": a ? void 0 : e, - "aria-valuetext": (() => { - if (e != null) - return typeof s == "function" ? s(e, c) : r; - })(), - role: i - }, - percent: c, - value: e - }; -} -var yr = (t) => { - const { size: e, isIndeterminate: n, ...o } = t; - return /* @__PURE__ */ l.jsx( - h.svg, - { - viewBox: "0 0 100 100", - __css: { - width: e, - height: e, - animation: n ? `${Du} 2s linear infinite` : void 0 - }, - ...o - } - ); -}; -yr.displayName = "Shape"; -var Bu = g( - (t, e) => { - var n; - const { - size: o = "48px", - max: r = 100, - min: s = 0, - valueText: a, - getValueText: i, - value: c, - capIsRound: u, - children: d, - thickness: f = "10px", - color: m = "#0078d4", - trackColor: p = "#edebe9", - isIndeterminate: b, - ...y - } = t, v = br({ - min: s, - max: r, - value: c, - valueText: a, - getValueText: i, - isIndeterminate: b - }), _ = b ? void 0 : ((n = v.percent) != null ? n : 0) * 2.64, S = _ == null ? void 0 : `${_} ${264 - _}`, E = b ? { - css: { animation: `${Mu} 1.5s linear infinite` } - } : { - strokeDashoffset: 66, - strokeDasharray: S, - transitionProperty: "stroke-dasharray, stroke", - transitionDuration: "0.6s", - transitionTimingFunction: "ease" - }, I = { - display: "inline-block", - position: "relative", - verticalAlign: "middle", - fontSize: o - }; - return /* @__PURE__ */ l.jsxs( - h.div, - { - ref: e, - className: "chakra-progress", - ...v.bind, - ...y, - __css: I, - children: [ - /* @__PURE__ */ l.jsxs(yr, { size: o, isIndeterminate: b, children: [ - /* @__PURE__ */ l.jsx( - Vt, - { - stroke: p, - strokeWidth: f, - className: "chakra-progress__track" - } - ), - /* @__PURE__ */ l.jsx( - Vt, - { - stroke: m, - strokeWidth: f, - className: "chakra-progress__indicator", - strokeLinecap: u ? "round" : void 0, - opacity: v.value === 0 && !b ? 0 : void 0, - ...E - } - ) - ] }), - d - ] - } - ); - } -); -Bu.displayName = "CircularProgress"; -var [Ru, xr] = ne({ - name: "ProgressStylesContext", - errorMessage: `useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), $u = g( - (t, e) => { - const { min: n, max: o, value: r, isIndeterminate: s, role: a, ...i } = t, c = br({ - value: r, - min: n, - max: o, - isIndeterminate: s, - role: a - }), d = { - height: "100%", - ...xr().filledTrack - }; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: e, - style: { width: `${c.percent}%`, ...i.style }, - ...c.bind, - ...i, - __css: d - } - ); - } -), Ou = g((t, e) => { - var n; - const { - value: o, - min: r = 0, - max: s = 100, - hasStripe: a, - isAnimated: i, - children: c, - borderRadius: u, - isIndeterminate: d, - "aria-label": f, - "aria-labelledby": m, - "aria-valuetext": p, - title: b, - role: y, - ...v - } = 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: `${Lu} 1s ease infinite normal none running` - } - }, G = { - overflow: "hidden", - position: "relative", - ..._.track - }; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: e, - borderRadius: S, - __css: G, - ...v, - children: /* @__PURE__ */ l.jsxs(Ru, { value: _, children: [ - /* @__PURE__ */ l.jsx( - $u, - { - "aria-label": f, - "aria-labelledby": m, - "aria-valuetext": p, - min: r, - max: s, - value: o, - isIndeterminate: d, - css: P, - borderRadius: S, - title: b, - role: y - } - ), - c - ] }) - } - ); -}); -Ou.displayName = "Progress"; -var Vu = (t) => { - const n = { - top: "50%", - left: "50%", - width: "100%", - textAlign: "center", - position: "absolute", - transform: "translate(-50%, -50%)", - ...xr().label - }; - return /* @__PURE__ */ l.jsx(h.div, { ...t, __css: n }); -}; -Vu.displayName = "ProgressLabel"; -function zu(t) { - return t && Re(t) && Re(t.target); -} -function Hu(t = {}) { - const { - onChange: e, - value: n, - defaultValue: o, - name: r, - isDisabled: s, - isFocusable: a, - isNative: i, - ...c - } = t, [u, d] = L(o || ""), f = typeof n < "u", m = f ? n : u, p = V(null), b = x(() => { - const w = p.current; - if (!w) - return; - let P = "input:not(:disabled):checked"; - const G = w.querySelector( - P - ); - if (G) { - G.focus(); - return; - } - P = "input:not(:disabled)"; - const F = w.querySelector(P); - F == null || F.focus(); - }, []), v = `radio-${Ve()}`, _ = r || v, S = x( - (w) => { - const P = zu(w) ? w.target.value : w; - f || d(P), e == null || e(String(P)); - }, - [e, f] - ), E = x( - (w = {}, P = null) => ({ - ...w, - ref: ce(P, p), - role: "radiogroup" - }), - [] - ), I = x( - (w = {}, P = null) => ({ - ...w, - ref: P, - name: _, - [i ? "checked" : "isChecked"]: m != null ? w.value === m : void 0, - onChange(F) { - S(F); - }, - "data-radiogroup": !0 - }), - [i, _, S, m] - ); - return { - getRootProps: E, - getRadioProps: I, - name: _, - ref: p, - focus: b, - setValue: d, - value: m, - onChange: S, - isDisabled: s, - isFocusable: a, - htmlProps: c - }; -} -var [Gu, Sr] = ne({ - name: "RadioGroupContext", - strict: !1 -}), Wu = g((t, e) => { - const { - colorScheme: n, - size: o, - variant: r, - children: s, - className: a, - isDisabled: i, - isFocusable: c, - ...u - } = t, { value: d, onChange: f, getRootProps: m, name: p, htmlProps: b } = Hu(u), y = Q( - () => ({ - name: p, - size: o, - onChange: f, - colorScheme: n, - value: d, - variant: r, - isDisabled: i, - isFocusable: c - }), - [ - p, - o, - f, - n, - d, - r, - i, - c - ] - ); - return /* @__PURE__ */ l.jsx(Gu, { value: y, children: /* @__PURE__ */ l.jsx( - h.div, - { - ...m(b, e), - className: k("chakra-radio-group", a), - children: s - } - ) }); -}); -Wu.displayName = "RadioGroup"; -var Ku = { - border: "0", - clip: "rect(0, 0, 0, 0)", - height: "1px", - width: "1px", - margin: "-1px", - padding: "0", - overflow: "hidden", - whiteSpace: "nowrap", - position: "absolute" -}; -function Uu(t = {}) { - const { - defaultChecked: e, - isChecked: n, - isFocusable: o, - isDisabled: r, - isReadOnly: s, - isRequired: a, - onChange: i, - isInvalid: c, - name: u, - value: d, - id: f, - "data-radiogroup": m, - "aria-describedby": p, - ...b - } = 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(() => Xo(D), []); - const ue = x( - (B) => { - if (P || w) { - B.preventDefault(); - return; - } - ae || T(B.target.checked), i == null || i(B); - }, - [ae, w, P, i] - ), re = x( - (B) => { - B.key === " " && W(!0); - }, - [W] - ), de = x( - (B) => { - B.key === " " && W(!1); - }, - [W] - ), q = x( - (B = {}, te = null) => ({ - ...B, - ref: te, - "data-active": $(Y), - "data-hover": $(R), - "data-disabled": $(w), - "data-invalid": $(F), - "data-checked": $(me), - "data-focus": $(M), - "data-focus-visible": $(M && ee), - "data-readonly": $(P), - "aria-hidden": !0, - onMouseDown: A(B.onMouseDown, () => W(!0)), - onMouseUp: A(B.onMouseUp, () => W(!1)), - onMouseEnter: A( - B.onMouseEnter, - () => z(!0) - ), - onMouseLeave: A( - B.onMouseLeave, - () => z(!1) - ) - }), - [ - Y, - R, - w, - F, - me, - M, - P, - ee - ] - ), { onFocus: se, onBlur: ve } = v ?? {}, ye = x( - (B = {}, te = null) => { - const he = w && !o; - return { - ...B, - id: I, - ref: te, - type: "radio", - name: u, - value: d, - onChange: A(B.onChange, ue), - onBlur: A( - ve, - B.onBlur, - () => O(!1) - ), - onFocus: A( - se, - B.onFocus, - () => O(!0) - ), - onKeyDown: A(B.onKeyDown, re), - onKeyUp: A(B.onKeyUp, de), - checked: me, - disabled: he, - readOnly: P, - required: G, - "aria-invalid": Ne(F), - "aria-disabled": Ne(he), - "aria-required": Ne(G), - "data-readonly": $(P), - "aria-describedby": p, - style: Ku - }; - }, - [ - w, - o, - I, - u, - d, - ue, - ve, - se, - re, - de, - me, - P, - G, - F, - p - ] - ); - return { - state: { - isInvalid: F, - isFocused: M, - isChecked: me, - isActive: Y, - isHovered: R, - isDisabled: w, - isReadOnly: P, - isRequired: G - }, - /** - * @deprecated - use `getRadioProps` instead - */ - getCheckboxProps: q, - getRadioProps: q, - getInputProps: ye, - getLabelProps: (B = {}, te = null) => ({ - ...B, - ref: te, - onMouseDown: A(B.onMouseDown, qu), - "data-disabled": $(w), - "data-checked": $(me), - "data-invalid": $(F) - }), - getRootProps: (B, te = null) => ({ - ...B, - ref: te, - "data-disabled": $(w), - "data-checked": $(me), - "data-invalid": $(F) - }), - htmlProps: b - }; -} -function qu(t) { - t.preventDefault(), t.stopPropagation(); -} -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 Yu = g((t, e) => { - var n; - 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, - isFocusable: f = o == null ? void 0 : o.isFocusable, - inputProps: m, - ...p - } = i; - let b = t.isChecked; - (o == null ? void 0 : o.value) != null && s != null && (b = o.value === s); - let y = r; - o != null && o.onChange && s != null && (y = Ut(o.onChange, r)); - const v = (n = t == null ? void 0 : t.name) != null ? n : o == null ? void 0 : o.name, { - getInputProps: _, - getCheckboxProps: S, - getLabelProps: E, - getRootProps: I, - htmlProps: w - } = Uu({ - ...p, - isChecked: b, - isFocusable: f, - isDisabled: d, - onChange: y, - name: v - }), [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", - cursor: "pointer", - position: "relative", - ...a.container - }, R = { - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - flexShrink: 0, - ...a.control - }, z = { - userSelect: "none", - marginStart: c, - ...a.label - }; - return /* @__PURE__ */ l.jsxs(h.label, { className: "chakra-radio", ...M, __css: O, children: [ - /* @__PURE__ */ l.jsx("input", { className: "chakra-radio__input", ...ee }), - /* @__PURE__ */ l.jsx( - h.span, - { - className: "chakra-radio__control", - ...F, - __css: R - } - ), - u && /* @__PURE__ */ l.jsx( - h.span, - { - className: "chakra-radio__label", - ...D, - __css: z, - children: u - } - ) - ] }); -}); -Yu.displayName = "Radio"; -var _r = g( - function(e, n) { - const { children: o, placeholder: r, className: s, ...a } = e; - return /* @__PURE__ */ l.jsxs( - h.select, - { - ...a, - ref: n, - className: k("chakra-select", s), - children: [ - r && /* @__PURE__ */ l.jsx("option", { value: "", children: r }), - o - ] - } - ); - } -); -_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; - return [n, o]; -} -var Ju = g((t, e) => { - var n; - const o = ie("Select", t), { - rootProps: r, - placeholder: s, - icon: a, - color: i, - height: c, - h: u, - minH: d, - minHeight: f, - iconColor: m, - iconSize: p, - ...b - } = K(t), [y, v] = Zu(b, ho), _ = qt(v), S = { - width: "100%", - height: "fit-content", - position: "relative", - color: i - }, E = { - paddingEnd: "2rem", - ...o.field, - _focus: { - zIndex: "unset", - ...(n = o.field) == null ? void 0 : n._focus - } - }; - return /* @__PURE__ */ l.jsxs( - h.div, - { - className: "chakra-select__wrapper", - __css: S, - ...y, - ...r, - children: [ - /* @__PURE__ */ l.jsx( - _r, - { - ref: e, - height: u ?? c, - minH: d ?? f, - placeholder: s, - ..._, - __css: E, - children: t.children - } - ), - /* @__PURE__ */ l.jsx( - kr, - { - "data-disabled": $(_.disabled), - ...(m || i) && { color: m || i }, - __css: o.icon, - ...p && { fontSize: p }, - children: a - } - ) - ] - } - ); -}); -Ju.displayName = "Select"; -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" - } -) }), ed = h("div", { - baseStyle: { - position: "absolute", - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - pointerEvents: "none", - top: "50%", - transform: "translateY(-50%)" - } -}), kr = (t) => { - const { children: e = /* @__PURE__ */ l.jsx(Qu, {}), ...n } = t, o = ge(e, { - role: "presentation", - className: "chakra-select__icon", - focusable: !1, - "aria-hidden": !0, - // force icon to adhere to `IconWrapper` styles - style: { - width: "1em", - height: "1em", - color: "currentColor" - } - }); - return /* @__PURE__ */ l.jsx(ed, { ...n, className: "chakra-select__icon-wrapper", children: Zt(e) ? o : null }); -}; -kr.displayName = "SelectIcon"; -function td() { - const t = V(!0); - return U(() => { - t.current = !1; - }, []), t.current; -} -function nd(t) { - const e = V(); - return U(() => { - e.current = t; - }, [t]), e.current; -} -var od = h("div", { - baseStyle: { - boxShadow: "none", - backgroundClip: "padding-box", - cursor: "default", - color: "transparent", - pointerEvents: "none", - userSelect: "none", - "&::before, &::after, *": { - visibility: "hidden" - } - } -}), zt = vo("skeleton-start-color"), Ht = vo("skeleton-end-color"), rd = Ee({ - from: { opacity: 0 }, - to: { opacity: 1 } -}), sd = Ee({ - from: { - borderColor: zt.reference, - background: zt.reference - }, - to: { - borderColor: Ht.reference, - background: Ht.reference - } -}), kn = g((t, e) => { - const n = { - ...t, - fadeDuration: typeof t.fadeDuration == "number" ? t.fadeDuration : 0.4, - speed: typeof t.speed == "number" ? t.speed : 0.8 - }, o = _e("Skeleton", n), r = td(), { - startColor: s = "", - endColor: a = "", - isLoaded: i, - fadeDuration: c, - speed: u, - className: d, - fitContent: f, - ...m - } = K(n), [p, b] = ws("colors", [ - s, - a - ]), y = nd(i), v = k("chakra-skeleton", d), _ = { - ...p && { [zt.variable]: p }, - ...b && { [Ht.variable]: b } - }; - if (i) { - const S = r || y ? "none" : `${rd} ${c}s`; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: e, - className: v, - __css: { animation: S }, - ...m - } - ); - } - return /* @__PURE__ */ l.jsx( - od, - { - ref: e, - className: v, - ...m, - __css: { - width: f ? "fit-content" : void 0, - ...o, - ..._, - _dark: { ...o._dark, ..._ }, - animation: `${u}s linear infinite alternate ${sd}` - } - } - ); -}); -kn.displayName = "Skeleton"; -var ad = ({ - size: t = "2rem", - ...e -}) => /* @__PURE__ */ l.jsx(kn, { borderRadius: "full", boxSize: t, ...e }); -ad.displayName = "SkeletonCircle"; -function id(t) { - return Array(t).fill(1).map((e, n) => n + 1); -} -var no = 3, ld = (t) => { - const { - noOfLines: e = no, - spacing: n = "0.5rem", - skeletonHeight: o = "0.5rem", - className: r, - startColor: s, - endColor: a, - isLoaded: i, - fadeDuration: c, - speed: u, - variant: d, - size: f, - colorScheme: m, - children: p, - ...b - } = t, y = Ps( - typeof e == "number" ? [e] : e - ) || 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; - const w = i ? null : { - mb: E === v.length ? "0" : n, - width: _(E), - height: o - }; - return /* @__PURE__ */ l.jsx( - kn, - { - startColor: s, - endColor: a, - isLoaded: i, - fadeDuration: c, - speed: u, - variant: d, - size: f, - colorScheme: m, - ...w, - // allows animating the children - children: I === 0 ? p : void 0 - }, - v.length.toString() + E - ); - }) }); -}; -ld.displayName = "SkeletonText"; -var Cr = "chakra-skip-nav"; -function cd(t) { - return { - userSelect: "none", - border: "0", - height: "1px", - width: "1px", - margin: "-1px", - padding: "0", - outline: "0", - overflow: "hidden", - position: "absolute", - clip: "rect(0 0 0 0)", - ...t, - _focus: { - clip: "auto", - width: "auto", - height: "auto", - ...t._focus - } - }; -} -var ud = g( - function(e, n) { - 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) }); - } -); -ud.displayName = "SkipNavLink"; -var dd = g( - function(e, n) { - const { id: o = Cr, ...r } = e; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - id: o, - tabIndex: -1, - style: { outline: 0 }, - ...r - } - ); - } -); -dd.displayName = "SkipNavContent"; -var [fd, Pt] = ne({ - name: "StatStylesContext", - errorMessage: `useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), 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(fd, { value: o, children: /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - ...i, - className: k("chakra-stat", s), - __css: r, - children: /* @__PURE__ */ l.jsx("dl", { children: a }) - } - ) }); -}); -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" - } -) }); -wr.displayName = "StatDownArrow"; -function Pr(t) { - return /* @__PURE__ */ l.jsx(be, { color: "green.400", ...t, children: /* @__PURE__ */ l.jsx( - "path", - { - fill: "currentColor", - d: "M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z" - } - ) }); -} -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 }) - ] }); -} -pd.displayName = "StatArrow"; -var hd = g(function(e, n) { - return /* @__PURE__ */ l.jsx( - h.div, - { - ...e, - ref: n, - role: "group", - className: k("chakra-stat__group", e.className), - __css: { - display: "flex", - flexWrap: "wrap", - justifyContent: "space-around", - alignItems: "flex-start" - } - } - ); -}); -hd.displayName = "StatGroup"; -var vd = g( - function(e, n) { - const o = Pt(); - return /* @__PURE__ */ l.jsx( - h.dd, - { - ref: n, - ...e, - className: k("chakra-stat__help-text", e.className), - __css: o.helpText - } - ); - } -); -vd.displayName = "StatHelpText"; -var gd = g(function(e, n) { - const o = Pt(); - return /* @__PURE__ */ l.jsx( - h.dt, - { - ref: n, - ...e, - className: k("chakra-stat__label", e.className), - __css: o.label - } - ); -}); -gd.displayName = "StatLabel"; -var bd = g(function(e, n) { - const o = Pt(); - return /* @__PURE__ */ l.jsx( - h.dd, - { - ref: n, - ...e, - className: k("chakra-stat__number", e.className), - __css: { - ...o.number, - fontFeatureSettings: "pnum", - fontVariantNumeric: "proportional-nums" - } - } - ); -}); -bd.displayName = "StatNumber"; -var [yd, Le] = ne( - { name: "StepContext" } -), [xd, He] = Ao("Stepper"), Fm = g(function(e, n) { - const { status: o } = Le(), r = He(); - return /* @__PURE__ */ l.jsx( - h.h3, - { - ref: n, - "data-status": o, - ...e, - __css: r.title, - className: k("chakra-step__title", e.className) - } - ); -}), Bm = g(function(e, n) { - const { orientation: o, status: r, showLastSeparator: s } = Le(), a = He(); - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - "data-status": r, - "data-orientation": o, - "data-stretch": $(s), - __css: a.step, - ...e, - className: k("chakra-step", e.className) - } - ); -}), Rm = g(function(e, n) { - const o = ie("Stepper", e), { - children: r, - index: s, - orientation: a = "horizontal", - showLastSeparator: i = !1, - ...c - } = K(e), u = Ze.toArray(r), d = u.length; - function f(m) { - return m < s ? "complete" : m > s ? "incomplete" : "active"; - } - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - "aria-label": "Progress", - "data-orientation": a, - ...c, - __css: o.stepper, - className: k("chakra-stepper", e.className), - children: /* @__PURE__ */ l.jsx(xd, { value: o, children: u.map((m, p) => /* @__PURE__ */ l.jsx( - yd, - { - value: { - index: p, - status: f(p), - orientation: a, - showLastSeparator: i, - count: d, - isFirst: p === 0, - isLast: p === d - 1 - }, - children: m - }, - p - )) }) - } - ); -}); -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, - setActiveStep: r, - activeStepPercent: a, - isActiveStep(i) { - return i === o; - }, - isCompleteStep(i) { - return i < o; - }, - isIncompleteStep(i) { - return i > o; - }, - getStatus(i) { - return i < o ? "complete" : i > o ? "incomplete" : "active"; - }, - goToNext() { - r((i) => typeof n == "number" ? Math.min(n, i + 1) : i + 1); - }, - goToPrevious() { - r((i) => Math.max(0, i - 1)); - } - }; -} -var Om = g(function(e, n) { - const { status: o } = Le(), r = He(); - return /* @__PURE__ */ l.jsx( - h.p, - { - ref: n, - "data-status": o, - ...e, - className: k("chakra-step__description", e.className), - __css: r.description - } - ); -}); -function Sd(t) { - const { complete: e, incomplete: n, active: o } = t, r = Le(); - let s = null; - switch (r.status) { - case "complete": - s = Te(e, r); - break; - case "incomplete": - s = Te(n, r); - break; - case "active": - s = Te(o, r); - break; - } - return s ? /* @__PURE__ */ l.jsx(l.Fragment, { children: s }) : null; -} -function _d(t) { - return /* @__PURE__ */ l.jsx( - "svg", - { - stroke: "currentColor", - fill: "currentColor", - strokeWidth: "0", - viewBox: "0 0 20 20", - "aria-hidden": "true", - height: "1em", - width: "1em", - ...t, - children: /* @__PURE__ */ l.jsx( - "path", - { - fillRule: "evenodd", - d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", - clipRule: "evenodd" - } - ) - } - ); -} -function kd(t) { - const { status: e } = Le(), n = He(), o = e === "complete" ? _d : void 0; - return /* @__PURE__ */ l.jsx( - be, - { - as: o, - __css: n.icon, - ...t, - className: k("chakra-step__icon", t.className) - } - ); -} -var oo = g(function(e, n) { - const { children: o, ...r } = e, { status: s, index: a } = Le(), i = He(); - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - "data-status": s, - __css: i.number, - ...r, - className: k("chakra-step__number", e.className), - children: o || a + 1 - } - ); -}); -function Vm(t) { - const { status: e } = Le(), n = He(); - return /* @__PURE__ */ l.jsx( - h.div, - { - "data-status": e, - ...t, - __css: n.indicator, - className: k("chakra-step__indicator", t.className) - } - ); -} -function zm() { - return /* @__PURE__ */ l.jsx( - Sd, - { - complete: /* @__PURE__ */ l.jsx(kd, {}), - incomplete: /* @__PURE__ */ l.jsx(oo, {}), - active: /* @__PURE__ */ l.jsx(oo, {}) - } - ); -} -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, - { - ref: n, - role: "separator", - "data-orientation": o, - "data-status": r, - __css: i.separator, - ...e, - className: k("chakra-step__separator", e.className) - } - ); -}), 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 - } = Yo(a), m = Q( - () => ({ - display: "inline-block", - position: "relative", - verticalAlign: "middle", - lineHeight: 0, - ...o.container - }), - [o.container] - ), p = Q( - () => ({ - display: "inline-flex", - flexShrink: 0, - justifyContent: "flex-start", - boxSizing: "content-box", - cursor: "pointer", - ...o.track - }), - [o.track] - ), b = Q( - () => ({ - userSelect: "none", - marginStart: r, - ...o.label - }), - [r, o.label] - ); - return /* @__PURE__ */ l.jsxs( - h.label, - { - ...d(), - className: k("chakra-switch", e.className), - __css: m, - children: [ - /* @__PURE__ */ l.jsx("input", { className: "chakra-switch__input", ...c({}, n) }), - /* @__PURE__ */ l.jsx( - h.span, - { - ...u(), - className: "chakra-switch__track", - __css: p, - children: /* @__PURE__ */ l.jsx( - h.span, - { - __css: o.thumb, - className: "chakra-switch__thumb", - ...i() - } - ) - } - ), - s && /* @__PURE__ */ l.jsx( - h.span, - { - className: "chakra-switch__label", - ...f(), - __css: b, - children: s - } - ) - ] - } - ); -}); -Cd.displayName = "Switch"; -var [wd, Ge] = ne({ - name: "TableStylesContext", - errorMessage: `useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), Pd = g((t, e) => { - const n = ie("Table", t), { className: o, layout: r, ...s } = K(t); - return /* @__PURE__ */ l.jsx(wd, { value: n, children: /* @__PURE__ */ l.jsx( - h.table, - { - ref: e, - __css: { tableLayout: r, ...n.table }, - className: k("chakra-table", o), - ...s - } - ) }); -}); -Pd.displayName = "Table"; -var Gm = g((t, e) => { - const n = Ge(); - return /* @__PURE__ */ l.jsx(h.thead, { ...t, ref: e, __css: n.thead }); -}), Wm = g((t, e) => { - const n = Ge(); - return /* @__PURE__ */ l.jsx(h.tr, { ...t, ref: e, __css: n.tr }); -}), Nd = g( - (t, e) => { - const { placement: n = "bottom", ...o } = t, r = Ge(); - return /* @__PURE__ */ l.jsx( - h.caption, - { - ...o, - ref: e, - __css: { - ...r.caption, - captionSide: n - } - } - ); - } -); -Nd.displayName = "TableCaption"; -var Km = g( - (t, e) => { - var n; - const { overflow: o, overflowX: r, className: s, ...a } = t; - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: e, - className: k("chakra-table__container", s), - ...a, - __css: { - display: "block", - whiteSpace: "nowrap", - WebkitOverflowScrolling: "touch", - overflowX: (n = o ?? r) != null ? n : "auto", - overflowY: "hidden", - maxWidth: "100%" - } - } - ); - } -), Um = g((t, e) => { - const n = Ge(); - return /* @__PURE__ */ l.jsx(h.tbody, { ...t, ref: e, __css: n.tbody }); -}), qm = g( - ({ isNumeric: t, ...e }, n) => { - const o = Ge(); - return /* @__PURE__ */ l.jsx( - h.td, - { - ...e, - ref: n, - __css: o.td, - "data-is-numeric": t - } - ); - } -), Xm = g((t, e) => { - const n = Ge(); - return /* @__PURE__ */ l.jsx(h.tfoot, { ...t, ref: e, __css: n.tfoot }); -}), Ym = g( - ({ isNumeric: t, ...e }, n) => { - const o = Ge(); - return /* @__PURE__ */ l.jsx( - h.th, - { - ...e, - ref: n, - __css: o.th, - "data-is-numeric": t - } - ); - } -), [ - Id, - Nr, - Ed, - jd -] = Kt(); -function Ad(t) { - var e; - const { - defaultIndex: n, - onChange: o, - index: r, - isManual: s, - isLazy: a, - lazyBehavior: i = "unmount", - orientation: c = "horizontal", - direction: u = "ltr", - ...d - } = t, [f, m] = L(n ?? 0), [p, b] = ot({ - defaultValue: n ?? 0, - value: r, - onChange: o - }); - U(() => { - r != null && m(r); - }, [r]); - const y = Ed(), v = Ve(); - return { - id: `tabs-${(e = t.id) != null ? e : v}`, - selectedIndex: p, - focusedIndex: f, - setSelectedIndex: b, - setFocusedIndex: m, - isManual: s, - isLazy: a, - lazyBehavior: i, - orientation: c, - descendants: y, - direction: u, - htmlProps: d - }; -} -var [Td, lt] = ne({ - name: "TabsContext", - errorMessage: "useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within " -}); -function Md(t) { - const { focusedIndex: e, orientation: n, direction: o } = lt(), r = Nr(), s = x( - (a) => { - const i = () => { - var S; - const E = r.nextEnabled(e); - E && ((S = E.node) == null || S.focus()); - }, c = () => { - var S; - const E = r.prevEnabled(e); - E && ((S = E.node) == null || S.focus()); - }, u = () => { - var S; - const E = r.firstEnabled(); - E && ((S = E.node) == null || S.focus()); - }, d = () => { - var S; - const E = r.lastEnabled(); - E && ((S = E.node) == null || S.focus()); - }, f = n === "horizontal", m = n === "vertical", p = a.key, b = o === "ltr" ? "ArrowLeft" : "ArrowRight", y = o === "ltr" ? "ArrowRight" : "ArrowLeft", _ = { - [b]: () => f && c(), - [y]: () => f && i(), - ArrowDown: () => m && i(), - ArrowUp: () => m && c(), - Home: u, - End: d - }[p]; - _ && (a.preventDefault(), _(a)); - }, - [r, e, n, o] - ); - return { - ...t, - role: "tablist", - "aria-orientation": n, - onKeyDown: A(t.onKeyDown, s) - }; -} -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 = Ns({ - ...o, - ref: ce(d, t.ref), - isDisabled: e, - isFocusable: n, - onClick: A(t.onClick, m) - }), y = "button"; - return { - ...b, - id: Ir(a, u), - role: "tab", - tabIndex: f ? 0 : -1, - type: y, - "aria-selected": f, - "aria-controls": Er(a, u), - onFocus: e ? void 0 : A(t.onFocus, p) - }; -} -var [Ld, Fd] = ne({}); -function Bd(t) { - const e = lt(), { id: n, selectedIndex: o } = e, s = Oe(t.children).map( - (a, i) => Gs( - Ld, - { - key: i, - value: { - isSelected: i === o, - id: Er(n, i), - tabId: Ir(n, i), - selectedIndex: o - } - }, - a - ) - ); - return { ...t, children: s }; -} -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 = po({ - wasSelected: c.current, - isSelected: s, - enabled: o, - mode: r - }); - return { - // Puts the tabpanel in the page `Tab` sequence. - tabIndex: 0, - ...n, - children: u ? e : null, - role: "tabpanel", - "aria-labelledby": i, - hidden: !s, - id: a - }; -} -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) - return { top: 0, height: 0 }; - }), [c, u] = L(!1); - return Ae(() => { - if (n == null) - return; - const d = e.item(n); - if (d == null) - return; - r && i({ left: d.node.offsetLeft, width: d.node.offsetWidth }), s && i({ top: d.node.offsetTop, height: d.node.offsetHeight }); - const f = requestAnimationFrame(() => { - u(!0); - }); - return () => { - f && cancelAnimationFrame(f); - }; - }, [n, r, s, e]), { - position: "absolute", - transitionProperty: "left, right, top, bottom, height, width", - transitionDuration: c ? "200ms" : "0ms", - transitionTimingFunction: "cubic-bezier(0, 0, 0.2, 1)", - ...a - }; -} -function Ir(t, e) { - return `${t}--tab-${e}`; -} -function Er(t, e) { - return `${t}--tabpanel-${e}`; -} -var [Od, ct] = ne({ - name: "TabsStylesContext", - errorMessage: `useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), 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: p, - children: r - } - ) }) }) }); -}); -Vd.displayName = "Tabs"; -var zd = g( - function(e, n) { - const o = $d(), r = { - ...e.style, - ...o - }, s = ct(); - return /* @__PURE__ */ l.jsx( - h.div, - { - ref: n, - ...e, - className: k("chakra-tabs__tab-indicator", e.className), - style: r, - __css: s.indicator - } - ); - } -); -zd.displayName = "TabIndicator"; -var Hd = g(function(e, n) { - const o = Md({ ...e, ref: n }), s = { - display: "flex", - ...ct().tablist - }; - return /* @__PURE__ */ l.jsx( - h.div, - { - ...o, - className: k("chakra-tabs__tablist", e.className), - __css: s - } - ); -}); -Hd.displayName = "TabList"; -var Gd = g(function(e, n) { - const o = Rd({ ...e, ref: n }), r = ct(); - return /* @__PURE__ */ l.jsx( - h.div, - { - outline: "0", - ...o, - className: k("chakra-tabs__tab-panel", e.className), - __css: r.tabpanel - } - ); -}); -Gd.displayName = "TabPanel"; -var Wd = g(function(e, n) { - const o = Bd(e), r = ct(); - return /* @__PURE__ */ l.jsx( - h.div, - { - ...o, - width: "100%", - ref: n, - className: k("chakra-tabs__tab-panels", e.className), - __css: r.tabpanels - } - ); -}); -Wd.displayName = "TabPanels"; -var Kd = g(function(e, n) { - const o = ct(), r = Dd({ ...e, ref: n }), s = { - outline: "0", - display: "flex", - alignItems: "center", - justifyContent: "center", - ...o.tab - }; - return /* @__PURE__ */ l.jsx( - h.button, - { - ...r, - className: k("chakra-tabs__tab", e.className), - __css: s - } - ); -}); -Kd.displayName = "Tab"; -var [Ud, jr] = ne({ - name: "TagStylesContext", - errorMessage: `useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "" ` -}), qd = g((t, e) => { - const n = ie("Tag", t), o = K(t), r = { - display: "inline-flex", - verticalAlign: "top", - alignItems: "center", - maxWidth: "100%", - ...n.container - }; - return /* @__PURE__ */ l.jsx(Ud, { value: n, children: /* @__PURE__ */ l.jsx(h.span, { ref: e, ...o, __css: r }) }); -}); -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 }); -}); -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" - } -) }); -Ar.displayName = "TagCloseIcon"; -var Jd = g( - (t, e) => { - const { isDisabled: n, children: o, ...r } = t, a = { - display: "flex", - alignItems: "center", - justifyContent: "center", - outline: "0", - ...jr().closeButton - }; - return /* @__PURE__ */ l.jsx( - h.button, - { - ref: e, - "aria-label": "close", - ...r, - type: "button", - disabled: n, - __css: a, - children: o || /* @__PURE__ */ l.jsx(Ar, {}) - } - ); - } -); -Jd.displayName = "TagCloseButton"; -function Qd(t, e = []) { - const n = Object.assign({}, t); - for (const o of e) - o in n && delete n[o]; - return 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, - { - ref: e, - rows: r, - ...a, - className: k("chakra-textarea", o), - __css: i - } - ); -}); -tf.displayName = "Textarea"; -const Tr = { - borderRadius: "0.7px", - ":focus-visible": { - boxShadow: "0 0 0 2px rgba(33, 177, 130, 0.6)", - _dark: { - boxShadow: "0 0 0 2px rgba(33, 177, 130, 0.6)" - } - } -}, Mr = { - bg: "rgba(39, 39, 39, 0.2)", - _dark: { - bg: "rgba(39, 39, 39, 0.6)" - } -}, { definePartsStyle: nf, defineMultiStyleConfig: of } = Ye(go.keys), rf = nf({ - overlay: Mr, - dialog: { - top: "77px !important", - right: "20px !important", - bottom: "20px !important", - borderTopStyle: "solid", - borderTopWidth: "4px", - borderColor: "primary._light", - borderRadius: 0, - bg: "white._light", - _dark: { - bg: "white._dark", - borderColor: "primary._dark" - } - }, - body: { - p: 0 - }, - header: { - fontWeight: "bold", - p: 0 - }, - footer: { - p: 0 - }, - closeButton: Tr -}), sf = of({ - baseStyle: rf -}), { definePartsStyle: af, defineMultiStyleConfig: lf } = Ye(Is.keys), cf = af({ - list: { - // this will style the MenuList component - py: "2", - borderRadius: "sm", - bg: "background" - }, - item: { - // this will style the MenuItem and MenuItemOption components - fontSize: "14px", - fontWeight: "600", - color: "text", - bg: "background", - _hover: { - bg: "primaryShade2._light", - color: "text", - _dark: { - bg: "primaryShade2._dark" - } - }, - _focus: { - bg: "primaryShade2._light", - color: "text", - _dark: { - bg: "primaryShade2._dark" - } - } - } -}), 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)" -}), mf = Cn({ - dialogContainer: { - width: "0px !important" - }, - dialog: { - position: "fixed", - minWidth: "350px", - top: "77px", - right: "8px" - }, - body: { - p: 0 - } -}), pf = { - "7xl": Cn({ dialog: ff }) -}, hf = Cn({ - overlay: Mr, - header: { - fontWeight: "bold", - pb: "0px" - }, - dialogContainer: { - width: "100%", - height: "100%" - }, - dialog: { - minHeight: "140px", - borderTopStyle: "solid", - borderTopWidth: "4px", - borderColor: "primary._light", - borderRadius: 0, - bg: "white._light", - _dark: { - bg: "white._dark", - borderColor: "primary._dark" - } - }, - footer: { - bgColor: "grayShade3._light", - _dark: { bgColor: "grayShade3._dark" } - }, - 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, - borderWidth: "2px", - borderColor: "primary._light", - _dark: { - borderColor: "primary._dark" - } - }, - filledTrack: { - bg: "primary._light", - // change the background of the filled track to blue.600 - _dark: { - bg: "primary._dark" - } - }, - track: { - bg: "grayShade2._light", - _dark: { - bg: "grayShade2._dark" - } - } -}), xf = bf({ baseStyle: yf }), { definePartsStyle: wn, defineMultiStyleConfig: Sf } = Ye(As.keys), _f = wn({ - field: { - color: "text", - outline: "none", - transition: "all 0.25s ease", - fontFamily: "text", - fontWeight: "text", - fontSize: "text", - lineHeight: "20px", - borderWidth: "1px !important", - borderColor: "transparent", - _invalid: { - borderColor: "labels.red" - }, - _hover: { - borderColor: "grayShade1" - }, - _focusWithin: { - borderColor: "text" - }, - _disabled: { - bg: "grayShade2", - borderColor: "grayShade2" - } - } -}), kf = wn({ - field: { - background: "grayShade3", - _hover: { - background: "grayShade3" - }, - _focus: { - bg: "grayShade3" - } - } -}), Cf = wn({ - field: { - background: "background", - _hover: { - background: "background" - }, - _focus: { - bg: "background" - }, - _focusWithin: { - borderColor: "grayShade2" - } - } -}), wf = Sf({ - baseStyle: _f, - variants: { - primary: kf, - white: Cf - }, - defaultProps: { - variant: "primary" - } -}), Pf = { - colors: { - text: { - default: "#272727", - _dark: "#F0F0F0" - }, - background: { - default: "#FFFFFF", - _dark: "#181a1b" - }, - grayShade3: { - default: "#F5F5F5", - _dark: "#1e2021" - }, - gray: { - default: "#a0a0a0", - _dark: "#A6A6A6" - }, - grayShade1: { - default: "#CBCBCB", - _dark: "#707070" - }, - grayShade2: { - default: "#E2E2E2", - _dark: "#4D4D4D" - }, - primary: { - default: "#21B182", - _dark: "#229570" - }, - primaryShade1: { - default: "#65D3AF", - _dark: "#326756" - }, - primaryShade2: { - default: "#E6F2EE", - _dark: "#264339" - }, - labels: { - red: { - default: "#EB5757", - _dark: "#C44D4D" - }, - orange: { - default: "#f2994a", - _dark: "#C0844E" - }, - purple: { - default: "#9B51E0", - _dark: "#8449BB" - }, - yellow: { - default: "#FFE600", - _dark: "#D4BF08" - }, - green: { - default: "#21B182", - _dark: "#229570" - }, - blue: { - default: "#186781", - _dark: "#2885A4" - }, - blueShade1: { - default: "#41B7DC", - _dark: "#2D5E6E" - }, - blueShade2: { - default: "#ECF8FC", - _dark: "#243439" - }, - orangeShade2: { - default: "#FDF0E4", - _dark: "#503E2E" - }, - redShade2: { - default: "#F8DEDE", - _dark: "#4E3131" - }, - purpleShade2: { - default: "#F5EEFC", - _dark: "#8449BB" - } - } - } -}, { definePartsStyle: Nf, defineMultiStyleConfig: If } = Ye(Ts.keys), Ef = Nf({ - container: { - bg: "background", - borderRadius: "1px", - px: "4px", - fontSize: "12px", - fontWeight: 500 - }, - closeButton: { - mx: "2px", - "> svg": { - width: "14px", - height: "14px" - } - } -}), jf = If({ - baseStyle: Ef, - defaultProps: { - size: "sm" - } -}), 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", - useSystemColorMode: !0 - }, - styles: { - global: { - "*, *::before, &::after": { - fontFamily: "Inter" - }, - "*::placeholder": { - color: "gray" - }, - "a:focus-visible": { - outlineOffset: "-1px", - transition: "none", - outlineColor: "rgba(33, 177, 130, 0.6)", - _dark: { - outlineColor: "rgba(33, 177, 130, 0.6)" - } - } - } - }, - colors: Af, - components: { - Drawer: sf, - Menu: uf, - Modal: vf, - Slider: xf, - Input: wf, - Tag: jf - }, - semanticTokens: Pf -}), Zm = ({ - children: t, - toastOptions: e = {}, - ...n -}) => /* @__PURE__ */ l.jsx( - Si, - { - toastOptions: qs(e, { - defaultOptions: { position: "top-right" } - }), - theme: Tf, - ...n, - children: t - } -), Mf = ({ - onClose: t, - content: e, - title: n, - status: o, - ...r -}) => /* @__PURE__ */ l.jsxs( - un, - { - variant: "left-accent", - status: o, - borderLeftWidth: "5px", - flexDirection: "column", - alignItems: "start", - minW: "350px", - bg: "white._light", - _dark: { - bg: "white._dark" - }, - gap: 1, - pb: 4, - pl: 6, - ...r, - 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 }) - ] - } -), 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, - render: r - }), u = () => t.update(a, { - duration: i, - render: r - }); - return /* @__PURE__ */ l.jsx( - Mf, - { - title: n.title, - content: n.content, - onClose: s, - status: e, - onMouseEnter: c, - onMouseLeave: u - } - ); - }; - return n.uniqueId && t.isActive(n.uniqueId) ? null : t({ - position: "top-right", - status: e, - duration: o, - isClosable: !0, - render: r, - id: n.uniqueId - }); -}, Fr = (t, e) => ({ - success: e("success"), - error: e("error"), - info: e("info"), - warning: e("warning"), - closeAll: t.closeAll, - close: t.close -}), Jm = () => { - const t = yi(), e = x( - (n) => Lr(t, n), - [t] - ); - return Q( - () => Fr(t, e), - [e, t] - ); -}, Qm = (t) => Fr(t, (n) => Lr(t, n)); -export { - 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, - 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, - Lc as AspectRatio, - qi as Avatar, - Hi as AvatarBadge, - Yi as AvatarGroup, - Fc as Badge, - ds as Box, - Qi as Breadcrumb, - Ji as BreadcrumbItem, - Uo as BreadcrumbLink, - Ft as BreadcrumbSeparator, - qo as Button, - rl as ButtonGroup, - Rt as ButtonSpinner, - Xs as CSSPolyfill, - Ys as CSSReset, - Ja as CSSVars, - Jf as Card, - 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, - $c as Code, - Oo as Collapse, - bt as ColorModeContext, - _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, - 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, - al as IconButton, - Ui as Image, - qf as Img, - Nm as Indicator, - lr as Input, - xn as InputAddon, - 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, - 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, - 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, - _r as SelectField, - zc as Show, - bc as SimpleGrid, - kn as Skeleton, - 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, - Qp as SliderProvider, - eh as SliderThumb, - th as SliderTrack, - _c as Spacer, - ao as Spinner, - 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, - 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, - 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, - ch as color, - Bf as cookieStorageManager, - Rf as cookieStorageManagerSSR, - So as createCookieStorageManager, - Hf as createIcon, - Js as createLocalStorageManager, - Ye as createMultiStyleConfigHelpers, - 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, - 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, - wh as layout, - ho as layoutPropNames, - Ph as list, - Qs as localStorageManager, - yt as mergeThemeOverride, - K as omitThemingProps, - Nh as others, - Nt as popperCSSVars, - 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, - ji as useAccordionItem, - Uf as useAccordionItemState, - St as useAccordionStyles, - an as useAlertStyles, - Sm as useAnimationState, - Vo as useAvatarStyles, - _m as useBoolean, - fn as useBreadcrumbStyles, - Yh as useBreakpoint, - Ps as useBreakpointValue, - tl as useButtonGroup, - Me as useCallbackRef, - mn as useCardStyles, - 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, - 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, - em as useEditableControls, - Qf as useEditableState, - vn as useEditableStyles, - ev as useEnvironment, - kt as useEventListener, - hm as useEventListenerMap, - vm as useFocusEffect, - gm as useFocusOnHide, - bm as useFocusOnPointerDown, - ym as useFocusOnShow, - xm as useForceUpdate, - qt as useFormControl, - 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, - 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, - Qc as useNumberInput, - wt as useNumberInputStyles, - 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, - 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, - nm as useShortcut, - Sv as useSlider, - _v as useSliderContext, - kv as useSliderStyles, - Pt as useStatStyles, - Le as useStepContext, - He as useStepperStyles, - $m as useSteps, - _e as useStyleConfig, - zf as useStyles, - Dd as useTab, - $d as useTabIndicator, - Md as useTabList, - Rd as useTabPanel, - Bd as useTabPanels, - Ge as useTableStyles, - Ad as useTabs, - lt as useTabsContext, - jd as useTabsDescendant, - Ed as useTabsDescendants, - Nr as useTabsDescendantsContext, - ct as useTabsStyles, - jr as useTagStyles, - Xt as useTheme, - om as useTimeout, - yi as useToast, - ws as useToken, - Cv as useTooltip, - tr as useUnmountEffect, - yn as useUpdateEffect, - rm as useWhyDidYouUpdate, - pn as visuallyHiddenStyle, - sa as withDefaultColorScheme, - Of as withDefaultProps, - aa as withDefaultSize, - ia as withDefaultVariant, - jn as withDelay -}; diff --git a/dist/clojure-769fc78a.mjs b/dist/clojure-769fc78a.mjs deleted file mode 100644 index 2647e480a..000000000 --- a/dist/clojure-769fc78a.mjs +++ /dev/null @@ -1,810 +0,0 @@ -var d = ["false", "nil", "true"], l = [ - ".", - "catch", - "def", - "do", - "if", - "monitor-enter", - "monitor-exit", - "new", - "quote", - "recur", - "set!", - "throw", - "try", - "var" -], u = [ - "*", - "*'", - "*1", - "*2", - "*3", - "*agent*", - "*allow-unresolved-vars*", - "*assert*", - "*clojure-version*", - "*command-line-args*", - "*compile-files*", - "*compile-path*", - "*compiler-options*", - "*data-readers*", - "*default-data-reader-fn*", - "*e", - "*err*", - "*file*", - "*flush-on-newline*", - "*fn-loader*", - "*in*", - "*math-context*", - "*ns*", - "*out*", - "*print-dup*", - "*print-length*", - "*print-level*", - "*print-meta*", - "*print-namespace-maps*", - "*print-readably*", - "*read-eval*", - "*reader-resolver*", - "*source-path*", - "*suppress-read*", - "*unchecked-math*", - "*use-context-classloader*", - "*verbose-defrecords*", - "*warn-on-reflection*", - "+", - "+'", - "-", - "-'", - "->", - "->>", - "->ArrayChunk", - "->Eduction", - "->Vec", - "->VecNode", - "->VecSeq", - "-cache-protocol-fn", - "-reset-methods", - "..", - "/", - "<", - "<=", - "=", - "==", - ">", - ">=", - "EMPTY-NODE", - "Inst", - "StackTraceElement->vec", - "Throwable->map", - "accessor", - "aclone", - "add-classpath", - "add-watch", - "agent", - "agent-error", - "agent-errors", - "aget", - "alength", - "alias", - "all-ns", - "alter", - "alter-meta!", - "alter-var-root", - "amap", - "ancestors", - "and", - "any?", - "apply", - "areduce", - "array-map", - "as->", - "aset", - "aset-boolean", - "aset-byte", - "aset-char", - "aset-double", - "aset-float", - "aset-int", - "aset-long", - "aset-short", - "assert", - "assoc", - "assoc!", - "assoc-in", - "associative?", - "atom", - "await", - "await-for", - "await1", - "bases", - "bean", - "bigdec", - "bigint", - "biginteger", - "binding", - "bit-and", - "bit-and-not", - "bit-clear", - "bit-flip", - "bit-not", - "bit-or", - "bit-set", - "bit-shift-left", - "bit-shift-right", - "bit-test", - "bit-xor", - "boolean", - "boolean-array", - "boolean?", - "booleans", - "bound-fn", - "bound-fn*", - "bound?", - "bounded-count", - "butlast", - "byte", - "byte-array", - "bytes", - "bytes?", - "case", - "cast", - "cat", - "char", - "char-array", - "char-escape-string", - "char-name-string", - "char?", - "chars", - "chunk", - "chunk-append", - "chunk-buffer", - "chunk-cons", - "chunk-first", - "chunk-next", - "chunk-rest", - "chunked-seq?", - "class", - "class?", - "clear-agent-errors", - "clojure-version", - "coll?", - "comment", - "commute", - "comp", - "comparator", - "compare", - "compare-and-set!", - "compile", - "complement", - "completing", - "concat", - "cond", - "cond->", - "cond->>", - "condp", - "conj", - "conj!", - "cons", - "constantly", - "construct-proxy", - "contains?", - "count", - "counted?", - "create-ns", - "create-struct", - "cycle", - "dec", - "dec'", - "decimal?", - "declare", - "dedupe", - "default-data-readers", - "definline", - "definterface", - "defmacro", - "defmethod", - "defmulti", - "defn", - "defn-", - "defonce", - "defprotocol", - "defrecord", - "defstruct", - "deftype", - "delay", - "delay?", - "deliver", - "denominator", - "deref", - "derive", - "descendants", - "destructure", - "disj", - "disj!", - "dissoc", - "dissoc!", - "distinct", - "distinct?", - "doall", - "dorun", - "doseq", - "dosync", - "dotimes", - "doto", - "double", - "double-array", - "double?", - "doubles", - "drop", - "drop-last", - "drop-while", - "eduction", - "empty", - "empty?", - "ensure", - "ensure-reduced", - "enumeration-seq", - "error-handler", - "error-mode", - "eval", - "even?", - "every-pred", - "every?", - "ex-data", - "ex-info", - "extend", - "extend-protocol", - "extend-type", - "extenders", - "extends?", - "false?", - "ffirst", - "file-seq", - "filter", - "filterv", - "find", - "find-keyword", - "find-ns", - "find-protocol-impl", - "find-protocol-method", - "find-var", - "first", - "flatten", - "float", - "float-array", - "float?", - "floats", - "flush", - "fn", - "fn?", - "fnext", - "fnil", - "for", - "force", - "format", - "frequencies", - "future", - "future-call", - "future-cancel", - "future-cancelled?", - "future-done?", - "future?", - "gen-class", - "gen-interface", - "gensym", - "get", - "get-in", - "get-method", - "get-proxy-class", - "get-thread-bindings", - "get-validator", - "group-by", - "halt-when", - "hash", - "hash-combine", - "hash-map", - "hash-ordered-coll", - "hash-set", - "hash-unordered-coll", - "ident?", - "identical?", - "identity", - "if-let", - "if-not", - "if-some", - "ifn?", - "import", - "in-ns", - "inc", - "inc'", - "indexed?", - "init-proxy", - "inst-ms", - "inst-ms*", - "inst?", - "instance?", - "int", - "int-array", - "int?", - "integer?", - "interleave", - "intern", - "interpose", - "into", - "into-array", - "ints", - "io!", - "isa?", - "iterate", - "iterator-seq", - "juxt", - "keep", - "keep-indexed", - "key", - "keys", - "keyword", - "keyword?", - "last", - "lazy-cat", - "lazy-seq", - "let", - "letfn", - "line-seq", - "list", - "list*", - "list?", - "load", - "load-file", - "load-reader", - "load-string", - "loaded-libs", - "locking", - "long", - "long-array", - "longs", - "loop", - "macroexpand", - "macroexpand-1", - "make-array", - "make-hierarchy", - "map", - "map-entry?", - "map-indexed", - "map?", - "mapcat", - "mapv", - "max", - "max-key", - "memfn", - "memoize", - "merge", - "merge-with", - "meta", - "method-sig", - "methods", - "min", - "min-key", - "mix-collection-hash", - "mod", - "munge", - "name", - "namespace", - "namespace-munge", - "nat-int?", - "neg-int?", - "neg?", - "newline", - "next", - "nfirst", - "nil?", - "nnext", - "not", - "not-any?", - "not-empty", - "not-every?", - "not=", - "ns", - "ns-aliases", - "ns-imports", - "ns-interns", - "ns-map", - "ns-name", - "ns-publics", - "ns-refers", - "ns-resolve", - "ns-unalias", - "ns-unmap", - "nth", - "nthnext", - "nthrest", - "num", - "number?", - "numerator", - "object-array", - "odd?", - "or", - "parents", - "partial", - "partition", - "partition-all", - "partition-by", - "pcalls", - "peek", - "persistent!", - "pmap", - "pop", - "pop!", - "pop-thread-bindings", - "pos-int?", - "pos?", - "pr", - "pr-str", - "prefer-method", - "prefers", - "primitives-classnames", - "print", - "print-ctor", - "print-dup", - "print-method", - "print-simple", - "print-str", - "printf", - "println", - "println-str", - "prn", - "prn-str", - "promise", - "proxy", - "proxy-call-with-super", - "proxy-mappings", - "proxy-name", - "proxy-super", - "push-thread-bindings", - "pvalues", - "qualified-ident?", - "qualified-keyword?", - "qualified-symbol?", - "quot", - "rand", - "rand-int", - "rand-nth", - "random-sample", - "range", - "ratio?", - "rational?", - "rationalize", - "re-find", - "re-groups", - "re-matcher", - "re-matches", - "re-pattern", - "re-seq", - "read", - "read-line", - "read-string", - "reader-conditional", - "reader-conditional?", - "realized?", - "record?", - "reduce", - "reduce-kv", - "reduced", - "reduced?", - "reductions", - "ref", - "ref-history-count", - "ref-max-history", - "ref-min-history", - "ref-set", - "refer", - "refer-clojure", - "reify", - "release-pending-sends", - "rem", - "remove", - "remove-all-methods", - "remove-method", - "remove-ns", - "remove-watch", - "repeat", - "repeatedly", - "replace", - "replicate", - "require", - "reset!", - "reset-meta!", - "reset-vals!", - "resolve", - "rest", - "restart-agent", - "resultset-seq", - "reverse", - "reversible?", - "rseq", - "rsubseq", - "run!", - "satisfies?", - "second", - "select-keys", - "send", - "send-off", - "send-via", - "seq", - "seq?", - "seqable?", - "seque", - "sequence", - "sequential?", - "set", - "set-agent-send-executor!", - "set-agent-send-off-executor!", - "set-error-handler!", - "set-error-mode!", - "set-validator!", - "set?", - "short", - "short-array", - "shorts", - "shuffle", - "shutdown-agents", - "simple-ident?", - "simple-keyword?", - "simple-symbol?", - "slurp", - "some", - "some->", - "some->>", - "some-fn", - "some?", - "sort", - "sort-by", - "sorted-map", - "sorted-map-by", - "sorted-set", - "sorted-set-by", - "sorted?", - "special-symbol?", - "spit", - "split-at", - "split-with", - "str", - "string?", - "struct", - "struct-map", - "subs", - "subseq", - "subvec", - "supers", - "swap!", - "swap-vals!", - "symbol", - "symbol?", - "sync", - "tagged-literal", - "tagged-literal?", - "take", - "take-last", - "take-nth", - "take-while", - "test", - "the-ns", - "thread-bound?", - "time", - "to-array", - "to-array-2d", - "trampoline", - "transduce", - "transient", - "tree-seq", - "true?", - "type", - "unchecked-add", - "unchecked-add-int", - "unchecked-byte", - "unchecked-char", - "unchecked-dec", - "unchecked-dec-int", - "unchecked-divide-int", - "unchecked-double", - "unchecked-float", - "unchecked-inc", - "unchecked-inc-int", - "unchecked-int", - "unchecked-long", - "unchecked-multiply", - "unchecked-multiply-int", - "unchecked-negate", - "unchecked-negate-int", - "unchecked-remainder-int", - "unchecked-short", - "unchecked-subtract", - "unchecked-subtract-int", - "underive", - "unquote", - "unquote-splicing", - "unreduced", - "unsigned-bit-shift-right", - "update", - "update-in", - "update-proxy", - "uri?", - "use", - "uuid?", - "val", - "vals", - "var-get", - "var-set", - "var?", - "vary-meta", - "vec", - "vector", - "vector-of", - "vector?", - "volatile!", - "volatile?", - "vreset!", - "vswap!", - "when", - "when-first", - "when-let", - "when-not", - "when-some", - "while", - "with-bindings", - "with-bindings*", - "with-in-str", - "with-loading-context", - "with-local-vars", - "with-meta", - "with-open", - "with-out-str", - "with-precision", - "with-redefs", - "with-redefs-fn", - "xml-seq", - "zero?", - "zipmap" -], p = [ - "->", - "->>", - "as->", - "binding", - "bound-fn", - "case", - "catch", - "comment", - "cond", - "cond->", - "cond->>", - "condp", - "def", - "definterface", - "defmethod", - "defn", - "defmacro", - "defprotocol", - "defrecord", - "defstruct", - "deftype", - "do", - "doseq", - "dotimes", - "doto", - "extend", - "extend-protocol", - "extend-type", - "fn", - "for", - "future", - "if", - "if-let", - "if-not", - "if-some", - "let", - "letfn", - "locking", - "loop", - "ns", - "proxy", - "reify", - "struct-map", - "some->", - "some->>", - "try", - "when", - "when-first", - "when-let", - "when-not", - "when-some", - "while", - "with-bindings", - "with-bindings*", - "with-in-str", - "with-loading-context", - "with-local-vars", - "with-meta", - "with-open", - "with-out-str", - "with-precision", - "with-redefs", - "with-redefs-fn" -], f = o(d), m = o(l), h = o(u), y = o(p), b = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/, v = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/, g = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/, k = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/; -function s(t, e) { - if (t.eatSpace() || t.eat(",")) - return ["space", null]; - if (t.match(v)) - return [null, "number"]; - if (t.match(g)) - return [null, "string.special"]; - if (t.eat(/^"/)) - return (e.tokenize = x)(t, e); - if (t.eat(/^[(\[{]/)) - return ["open", "bracket"]; - if (t.eat(/^[)\]}]/)) - return ["close", "bracket"]; - if (t.eat(/^;/)) - return t.skipToEnd(), ["space", "comment"]; - if (t.eat(/^[#'@^`~]/)) - return [null, "meta"]; - var r = t.match(k), n = r && r[0]; - return n ? n === "comment" && e.lastToken === "(" ? (e.tokenize = w)(t, e) : a(n, f) || n.charAt(0) === ":" ? ["symbol", "atom"] : a(n, m) || a(n, h) ? ["symbol", "keyword"] : e.lastToken === "(" ? ["symbol", "builtin"] : ["symbol", "variable"] : (t.next(), t.eatWhile(function(i) { - return !a(i, b); - }), [null, "error"]); -} -function x(t, e) { - for (var r = !1, n; n = t.next(); ) { - if (n === '"' && !r) { - e.tokenize = s; - break; - } - r = !r && n === "\\"; - } - return [null, "string"]; -} -function w(t, e) { - for (var r = 1, n; n = t.next(); ) - if (n === ")" && r--, n === "(" && r++, r === 0) { - t.backUp(1), e.tokenize = s; - break; - } - return ["space", "comment"]; -} -function o(t) { - for (var e = {}, r = 0; r < t.length; ++r) - e[t[r]] = !0; - return e; -} -function a(t, e) { - if (e instanceof RegExp) - return e.test(t); - if (e instanceof Object) - return e.propertyIsEnumerable(t); -} -const q = { - name: "clojure", - startState: function() { - return { - ctx: { prev: null, start: 0, indentTo: 0 }, - lastToken: null, - tokenize: s - }; - }, - token: function(t, e) { - t.sol() && typeof e.ctx.indentTo != "number" && (e.ctx.indentTo = e.ctx.start + 1); - var r = e.tokenize(t, e), n = r[0], i = r[1], c = t.current(); - return n !== "space" && (e.lastToken === "(" && e.ctx.indentTo === null ? n === "symbol" && a(c, y) ? e.ctx.indentTo = e.ctx.start + t.indentUnit : e.ctx.indentTo = "next" : e.ctx.indentTo === "next" && (e.ctx.indentTo = t.column()), e.lastToken = c), n === "open" ? e.ctx = { prev: e.ctx, start: t.column(), indentTo: null } : n === "close" && (e.ctx = e.ctx.prev || e.ctx), i; - }, - indent: function(t) { - var e = t.ctx.indentTo; - return typeof e == "number" ? e : t.ctx.start + 1; - }, - languageData: { - closeBrackets: { brackets: ["(", "[", "{", '"'] }, - commentTokens: { line: ";;" }, - autocomplete: [].concat(d, l, u) - } -}; -export { - q as clojure -}; diff --git a/dist/css-e7bb015c.mjs b/dist/css-e7bb015c.mjs deleted file mode 100644 index 3cf581866..000000000 --- a/dist/css-e7bb015c.mjs +++ /dev/null @@ -1,1572 +0,0 @@ -function y(i) { - i = { ...ae, ...i }; - var l = i.inline, m = i.tokenHooks, b = i.documentTypes || {}, G = i.mediaTypes || {}, J = i.mediaFeatures || {}, Q = i.mediaValueKeywords || {}, O = i.propertyKeywords || {}, F = i.nonStandardPropertyKeywords || {}, R = i.fontProperties || {}, ee = i.counterDescriptors || {}, N = i.colorKeywords || {}, V = i.valueKeywords || {}, g = i.allowNested, re = i.lineComment, oe = i.supportsAtComponent === !0, W = i.highlightNonStandardPropertyKeywords !== !1, w, n; - function c(e, o) { - return w = o, e; - } - function ie(e, o) { - var r = e.next(); - if (m[r]) { - var t = m[r](e, o); - if (t !== !1) - return t; - } - if (r == "@") - return e.eatWhile(/[\w\\\-]/), c("def", e.current()); - if (r == "=" || (r == "~" || r == "|") && e.eat("=")) - return c(null, "compare"); - if (r == '"' || r == "'") - return o.tokenize = $(r), o.tokenize(e, o); - if (r == "#") - return e.eatWhile(/[\w\\\-]/), c("atom", "hash"); - if (r == "!") - return e.match(/^\s*\w*/), c("keyword", "important"); - if (/\d/.test(r) || r == "." && e.eat(/\d/)) - return e.eatWhile(/[\w.%]/), c("number", "unit"); - if (r === "-") { - if (/[\d.]/.test(e.peek())) - return e.eatWhile(/[\w.%]/), c("number", "unit"); - if (e.match(/^-[\w\\\-]*/)) - return e.eatWhile(/[\w\\\-]/), e.match(/^\s*:/, !1) ? c("def", "variable-definition") : c("variableName", "variable"); - if (e.match(/^\w+-/)) - return c("meta", "meta"); - } else - return /[,+>*\/]/.test(r) ? c(null, "select-op") : r == "." && e.match(/^-?[_a-z][_a-z0-9-]*/i) ? c("qualifier", "qualifier") : /[:;{}\[\]\(\)]/.test(r) ? c(null, r) : e.match(/^[\w-.]+(?=\()/) ? (/^(url(-prefix)?|domain|regexp)$/i.test(e.current()) && (o.tokenize = te), c("variableName.function", "variable")) : /[\w\\\-]/.test(r) ? (e.eatWhile(/[\w\\\-]/), c("property", "word")) : c(null, null); - } - function $(e) { - return function(o, r) { - for (var t = !1, d; (d = o.next()) != null; ) { - if (d == e && !t) { - e == ")" && o.backUp(1); - break; - } - t = !t && d == "\\"; - } - return (d == e || !t && e != ")") && (r.tokenize = null), c("string", "string"); - }; - } - function te(e, o) { - return e.next(), e.match(/^\s*[\"\')]/, !1) ? o.tokenize = null : o.tokenize = $(")"), c(null, "("); - } - function D(e, o, r) { - this.type = e, this.indent = o, this.prev = r; - } - function s(e, o, r, t) { - return e.context = new D(r, o.indentation() + (t === !1 ? 0 : o.indentUnit), e.context), r; - } - function u(e) { - return e.context.prev && (e.context = e.context.prev), e.context.type; - } - function k(e, o, r) { - return a[r.context.type](e, o, r); - } - function h(e, o, r, t) { - for (var d = t || 1; d > 0; d--) - r.context = r.context.prev; - return k(e, o, r); - } - function L(e) { - var o = e.current().toLowerCase(); - V.hasOwnProperty(o) ? n = "atom" : N.hasOwnProperty(o) ? n = "keyword" : n = "variable"; - } - var a = {}; - return a.top = function(e, o, r) { - if (e == "{") - return s(r, o, "block"); - if (e == "}" && r.context.prev) - return u(r); - if (oe && /@component/i.test(e)) - return s(r, o, "atComponentBlock"); - if (/^@(-moz-)?document$/i.test(e)) - return s(r, o, "documentTypes"); - if (/^@(media|supports|(-moz-)?document|import)$/i.test(e)) - return s(r, o, "atBlock"); - if (/^@(font-face|counter-style)/i.test(e)) - return r.stateArg = e, "restricted_atBlock_before"; - if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e)) - return "keyframes"; - if (e && e.charAt(0) == "@") - return s(r, o, "at"); - if (e == "hash") - n = "builtin"; - else if (e == "word") - n = "tag"; - else { - if (e == "variable-definition") - return "maybeprop"; - if (e == "interpolation") - return s(r, o, "interpolation"); - if (e == ":") - return "pseudo"; - if (g && e == "(") - return s(r, o, "parens"); - } - return r.context.type; - }, a.block = function(e, o, r) { - if (e == "word") { - var t = o.current().toLowerCase(); - return O.hasOwnProperty(t) ? (n = "property", "maybeprop") : F.hasOwnProperty(t) ? (n = W ? "string.special" : "property", "maybeprop") : g ? (n = o.match(/^\s*:(?:\s|$)/, !1) ? "property" : "tag", "block") : (n = "error", "maybeprop"); - } else - return e == "meta" ? "block" : !g && (e == "hash" || e == "qualifier") ? (n = "error", "block") : a.top(e, o, r); - }, a.maybeprop = function(e, o, r) { - return e == ":" ? s(r, o, "prop") : k(e, o, r); - }, a.prop = function(e, o, r) { - if (e == ";") - return u(r); - if (e == "{" && g) - return s(r, o, "propBlock"); - if (e == "}" || e == "{") - return h(e, o, r); - if (e == "(") - return s(r, o, "parens"); - if (e == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(o.current())) - n = "error"; - else if (e == "word") - L(o); - else if (e == "interpolation") - return s(r, o, "interpolation"); - return "prop"; - }, a.propBlock = function(e, o, r) { - return e == "}" ? u(r) : e == "word" ? (n = "property", "maybeprop") : r.context.type; - }, a.parens = function(e, o, r) { - return e == "{" || e == "}" ? h(e, o, r) : e == ")" ? u(r) : e == "(" ? s(r, o, "parens") : e == "interpolation" ? s(r, o, "interpolation") : (e == "word" && L(o), "parens"); - }, a.pseudo = function(e, o, r) { - return e == "meta" ? "pseudo" : e == "word" ? (n = "variableName.constant", r.context.type) : k(e, o, r); - }, a.documentTypes = function(e, o, r) { - return e == "word" && b.hasOwnProperty(o.current()) ? (n = "tag", r.context.type) : a.atBlock(e, o, r); - }, a.atBlock = function(e, o, r) { - if (e == "(") - return s(r, o, "atBlock_parens"); - if (e == "}" || e == ";") - return h(e, o, r); - if (e == "{") - return u(r) && s(r, o, g ? "block" : "top"); - if (e == "interpolation") - return s(r, o, "interpolation"); - if (e == "word") { - var t = o.current().toLowerCase(); - t == "only" || t == "not" || t == "and" || t == "or" ? n = "keyword" : G.hasOwnProperty(t) ? n = "attribute" : J.hasOwnProperty(t) ? n = "property" : Q.hasOwnProperty(t) ? n = "keyword" : O.hasOwnProperty(t) ? n = "property" : F.hasOwnProperty(t) ? n = W ? "string.special" : "property" : V.hasOwnProperty(t) ? n = "atom" : N.hasOwnProperty(t) ? n = "keyword" : n = "error"; - } - return r.context.type; - }, a.atComponentBlock = function(e, o, r) { - return e == "}" ? h(e, o, r) : e == "{" ? u(r) && s(r, o, g ? "block" : "top", !1) : (e == "word" && (n = "error"), r.context.type); - }, a.atBlock_parens = function(e, o, r) { - return e == ")" ? u(r) : e == "{" || e == "}" ? h(e, o, r, 2) : a.atBlock(e, o, r); - }, a.restricted_atBlock_before = function(e, o, r) { - return e == "{" ? s(r, o, "restricted_atBlock") : e == "word" && r.stateArg == "@counter-style" ? (n = "variable", "restricted_atBlock_before") : k(e, o, r); - }, a.restricted_atBlock = function(e, o, r) { - return e == "}" ? (r.stateArg = null, u(r)) : e == "word" ? (r.stateArg == "@font-face" && !R.hasOwnProperty(o.current().toLowerCase()) || r.stateArg == "@counter-style" && !ee.hasOwnProperty(o.current().toLowerCase()) ? n = "error" : n = "property", "maybeprop") : "restricted_atBlock"; - }, a.keyframes = function(e, o, r) { - return e == "word" ? (n = "variable", "keyframes") : e == "{" ? s(r, o, "top") : k(e, o, r); - }, a.at = function(e, o, r) { - return e == ";" ? u(r) : e == "{" || e == "}" ? h(e, o, r) : (e == "word" ? n = "tag" : e == "hash" && (n = "builtin"), "at"); - }, a.interpolation = function(e, o, r) { - return e == "}" ? u(r) : e == "{" || e == ";" ? h(e, o, r) : (e == "word" ? n = "variable" : e != "variable" && e != "(" && e != ")" && (n = "error"), "interpolation"); - }, { - name: i.name, - startState: function() { - return { - tokenize: null, - state: l ? "block" : "top", - stateArg: null, - context: new D(l ? "block" : "top", 0, null) - }; - }, - token: function(e, o) { - if (!o.tokenize && e.eatSpace()) - return null; - var r = (o.tokenize || ie)(e, o); - return r && typeof r == "object" && (w = r[1], r = r[0]), n = r, w != "comment" && (o.state = a[o.state](w, e, o)), n; - }, - indent: function(e, o, r) { - var t = e.context, d = o && o.charAt(0), q = t.indent; - return t.type == "prop" && (d == "}" || d == ")") && (t = t.prev), t.prev && (d == "}" && (t.type == "block" || t.type == "top" || t.type == "interpolation" || t.type == "restricted_atBlock") ? (t = t.prev, q = t.indent) : (d == ")" && (t.type == "parens" || t.type == "atBlock_parens") || d == "{" && (t.type == "at" || t.type == "atBlock")) && (q = Math.max(0, t.indent - r.unit))), q; - }, - languageData: { - indentOnInput: /^\s*\}$/, - commentTokens: { line: re, block: { open: "/*", close: "*/" } }, - autocomplete: M - } - }; -} -function p(i) { - for (var l = {}, m = 0; m < i.length; ++m) - l[i[m].toLowerCase()] = !0; - return l; -} -var H = [ - "domain", - "regexp", - "url", - "url-prefix" -], C = p(H), X = [ - "all", - "aural", - "braille", - "handheld", - "print", - "projection", - "screen", - "tty", - "tv", - "embossed" -], v = p(X), Y = [ - "width", - "min-width", - "max-width", - "height", - "min-height", - "max-height", - "device-width", - "min-device-width", - "max-device-width", - "device-height", - "min-device-height", - "max-device-height", - "aspect-ratio", - "min-aspect-ratio", - "max-aspect-ratio", - "device-aspect-ratio", - "min-device-aspect-ratio", - "max-device-aspect-ratio", - "color", - "min-color", - "max-color", - "color-index", - "min-color-index", - "max-color-index", - "monochrome", - "min-monochrome", - "max-monochrome", - "resolution", - "min-resolution", - "max-resolution", - "scan", - "grid", - "orientation", - "device-pixel-ratio", - "min-device-pixel-ratio", - "max-device-pixel-ratio", - "pointer", - "any-pointer", - "hover", - "any-hover", - "prefers-color-scheme", - "dynamic-range", - "video-dynamic-range" -], x = p(Y), E = [ - "landscape", - "portrait", - "none", - "coarse", - "fine", - "on-demand", - "hover", - "interlace", - "progressive", - "dark", - "light", - "standard", - "high" -], B = p(E), S = [ - "align-content", - "align-items", - "align-self", - "alignment-adjust", - "alignment-baseline", - "all", - "anchor-point", - "animation", - "animation-delay", - "animation-direction", - "animation-duration", - "animation-fill-mode", - "animation-iteration-count", - "animation-name", - "animation-play-state", - "animation-timing-function", - "appearance", - "azimuth", - "backdrop-filter", - "backface-visibility", - "background", - "background-attachment", - "background-blend-mode", - "background-clip", - "background-color", - "background-image", - "background-origin", - "background-position", - "background-position-x", - "background-position-y", - "background-repeat", - "background-size", - "baseline-shift", - "binding", - "bleed", - "block-size", - "bookmark-label", - "bookmark-level", - "bookmark-state", - "bookmark-target", - "border", - "border-bottom", - "border-bottom-color", - "border-bottom-left-radius", - "border-bottom-right-radius", - "border-bottom-style", - "border-bottom-width", - "border-collapse", - "border-color", - "border-image", - "border-image-outset", - "border-image-repeat", - "border-image-slice", - "border-image-source", - "border-image-width", - "border-left", - "border-left-color", - "border-left-style", - "border-left-width", - "border-radius", - "border-right", - "border-right-color", - "border-right-style", - "border-right-width", - "border-spacing", - "border-style", - "border-top", - "border-top-color", - "border-top-left-radius", - "border-top-right-radius", - "border-top-style", - "border-top-width", - "border-width", - "bottom", - "box-decoration-break", - "box-shadow", - "box-sizing", - "break-after", - "break-before", - "break-inside", - "caption-side", - "caret-color", - "clear", - "clip", - "color", - "color-profile", - "column-count", - "column-fill", - "column-gap", - "column-rule", - "column-rule-color", - "column-rule-style", - "column-rule-width", - "column-span", - "column-width", - "columns", - "contain", - "content", - "counter-increment", - "counter-reset", - "crop", - "cue", - "cue-after", - "cue-before", - "cursor", - "direction", - "display", - "dominant-baseline", - "drop-initial-after-adjust", - "drop-initial-after-align", - "drop-initial-before-adjust", - "drop-initial-before-align", - "drop-initial-size", - "drop-initial-value", - "elevation", - "empty-cells", - "fit", - "fit-content", - "fit-position", - "flex", - "flex-basis", - "flex-direction", - "flex-flow", - "flex-grow", - "flex-shrink", - "flex-wrap", - "float", - "float-offset", - "flow-from", - "flow-into", - "font", - "font-family", - "font-feature-settings", - "font-kerning", - "font-language-override", - "font-optical-sizing", - "font-size", - "font-size-adjust", - "font-stretch", - "font-style", - "font-synthesis", - "font-variant", - "font-variant-alternates", - "font-variant-caps", - "font-variant-east-asian", - "font-variant-ligatures", - "font-variant-numeric", - "font-variant-position", - "font-variation-settings", - "font-weight", - "gap", - "grid", - "grid-area", - "grid-auto-columns", - "grid-auto-flow", - "grid-auto-rows", - "grid-column", - "grid-column-end", - "grid-column-gap", - "grid-column-start", - "grid-gap", - "grid-row", - "grid-row-end", - "grid-row-gap", - "grid-row-start", - "grid-template", - "grid-template-areas", - "grid-template-columns", - "grid-template-rows", - "hanging-punctuation", - "height", - "hyphens", - "icon", - "image-orientation", - "image-rendering", - "image-resolution", - "inline-box-align", - "inset", - "inset-block", - "inset-block-end", - "inset-block-start", - "inset-inline", - "inset-inline-end", - "inset-inline-start", - "isolation", - "justify-content", - "justify-items", - "justify-self", - "left", - "letter-spacing", - "line-break", - "line-height", - "line-height-step", - "line-stacking", - "line-stacking-ruby", - "line-stacking-shift", - "line-stacking-strategy", - "list-style", - "list-style-image", - "list-style-position", - "list-style-type", - "margin", - "margin-bottom", - "margin-left", - "margin-right", - "margin-top", - "marks", - "marquee-direction", - "marquee-loop", - "marquee-play-count", - "marquee-speed", - "marquee-style", - "mask-clip", - "mask-composite", - "mask-image", - "mask-mode", - "mask-origin", - "mask-position", - "mask-repeat", - "mask-size", - "mask-type", - "max-block-size", - "max-height", - "max-inline-size", - "max-width", - "min-block-size", - "min-height", - "min-inline-size", - "min-width", - "mix-blend-mode", - "move-to", - "nav-down", - "nav-index", - "nav-left", - "nav-right", - "nav-up", - "object-fit", - "object-position", - "offset", - "offset-anchor", - "offset-distance", - "offset-path", - "offset-position", - "offset-rotate", - "opacity", - "order", - "orphans", - "outline", - "outline-color", - "outline-offset", - "outline-style", - "outline-width", - "overflow", - "overflow-style", - "overflow-wrap", - "overflow-x", - "overflow-y", - "padding", - "padding-bottom", - "padding-left", - "padding-right", - "padding-top", - "page", - "page-break-after", - "page-break-before", - "page-break-inside", - "page-policy", - "pause", - "pause-after", - "pause-before", - "perspective", - "perspective-origin", - "pitch", - "pitch-range", - "place-content", - "place-items", - "place-self", - "play-during", - "position", - "presentation-level", - "punctuation-trim", - "quotes", - "region-break-after", - "region-break-before", - "region-break-inside", - "region-fragment", - "rendering-intent", - "resize", - "rest", - "rest-after", - "rest-before", - "richness", - "right", - "rotate", - "rotation", - "rotation-point", - "row-gap", - "ruby-align", - "ruby-overhang", - "ruby-position", - "ruby-span", - "scale", - "scroll-behavior", - "scroll-margin", - "scroll-margin-block", - "scroll-margin-block-end", - "scroll-margin-block-start", - "scroll-margin-bottom", - "scroll-margin-inline", - "scroll-margin-inline-end", - "scroll-margin-inline-start", - "scroll-margin-left", - "scroll-margin-right", - "scroll-margin-top", - "scroll-padding", - "scroll-padding-block", - "scroll-padding-block-end", - "scroll-padding-block-start", - "scroll-padding-bottom", - "scroll-padding-inline", - "scroll-padding-inline-end", - "scroll-padding-inline-start", - "scroll-padding-left", - "scroll-padding-right", - "scroll-padding-top", - "scroll-snap-align", - "scroll-snap-type", - "shape-image-threshold", - "shape-inside", - "shape-margin", - "shape-outside", - "size", - "speak", - "speak-as", - "speak-header", - "speak-numeral", - "speak-punctuation", - "speech-rate", - "stress", - "string-set", - "tab-size", - "table-layout", - "target", - "target-name", - "target-new", - "target-position", - "text-align", - "text-align-last", - "text-combine-upright", - "text-decoration", - "text-decoration-color", - "text-decoration-line", - "text-decoration-skip", - "text-decoration-skip-ink", - "text-decoration-style", - "text-emphasis", - "text-emphasis-color", - "text-emphasis-position", - "text-emphasis-style", - "text-height", - "text-indent", - "text-justify", - "text-orientation", - "text-outline", - "text-overflow", - "text-rendering", - "text-shadow", - "text-size-adjust", - "text-space-collapse", - "text-transform", - "text-underline-position", - "text-wrap", - "top", - "touch-action", - "transform", - "transform-origin", - "transform-style", - "transition", - "transition-delay", - "transition-duration", - "transition-property", - "transition-timing-function", - "translate", - "unicode-bidi", - "user-select", - "vertical-align", - "visibility", - "voice-balance", - "voice-duration", - "voice-family", - "voice-pitch", - "voice-range", - "voice-rate", - "voice-stress", - "voice-volume", - "volume", - "white-space", - "widows", - "width", - "will-change", - "word-break", - "word-spacing", - "word-wrap", - "writing-mode", - "z-index", - // SVG-specific - "clip-path", - "clip-rule", - "mask", - "enable-background", - "filter", - "flood-color", - "flood-opacity", - "lighting-color", - "stop-color", - "stop-opacity", - "pointer-events", - "color-interpolation", - "color-interpolation-filters", - "color-rendering", - "fill", - "fill-opacity", - "fill-rule", - "image-rendering", - "marker", - "marker-end", - "marker-mid", - "marker-start", - "paint-order", - "shape-rendering", - "stroke", - "stroke-dasharray", - "stroke-dashoffset", - "stroke-linecap", - "stroke-linejoin", - "stroke-miterlimit", - "stroke-opacity", - "stroke-width", - "text-rendering", - "baseline-shift", - "dominant-baseline", - "glyph-orientation-horizontal", - "glyph-orientation-vertical", - "text-anchor", - "writing-mode" -], z = p(S), Z = [ - "accent-color", - "aspect-ratio", - "border-block", - "border-block-color", - "border-block-end", - "border-block-end-color", - "border-block-end-style", - "border-block-end-width", - "border-block-start", - "border-block-start-color", - "border-block-start-style", - "border-block-start-width", - "border-block-style", - "border-block-width", - "border-inline", - "border-inline-color", - "border-inline-end", - "border-inline-end-color", - "border-inline-end-style", - "border-inline-end-width", - "border-inline-start", - "border-inline-start-color", - "border-inline-start-style", - "border-inline-start-width", - "border-inline-style", - "border-inline-width", - "content-visibility", - "margin-block", - "margin-block-end", - "margin-block-start", - "margin-inline", - "margin-inline-end", - "margin-inline-start", - "overflow-anchor", - "overscroll-behavior", - "padding-block", - "padding-block-end", - "padding-block-start", - "padding-inline", - "padding-inline-end", - "padding-inline-start", - "scroll-snap-stop", - "scrollbar-3d-light-color", - "scrollbar-arrow-color", - "scrollbar-base-color", - "scrollbar-dark-shadow-color", - "scrollbar-face-color", - "scrollbar-highlight-color", - "scrollbar-shadow-color", - "scrollbar-track-color", - "searchfield-cancel-button", - "searchfield-decoration", - "searchfield-results-button", - "searchfield-results-decoration", - "shape-inside", - "zoom" -], K = p(Z), U = [ - "font-display", - "font-family", - "src", - "unicode-range", - "font-variant", - "font-feature-settings", - "font-stretch", - "font-weight", - "font-style" -], P = p(U), ne = [ - "additive-symbols", - "fallback", - "negative", - "pad", - "prefix", - "range", - "speak-as", - "suffix", - "symbols", - "system" -], I = p(ne), T = [ - "aliceblue", - "antiquewhite", - "aqua", - "aquamarine", - "azure", - "beige", - "bisque", - "black", - "blanchedalmond", - "blue", - "blueviolet", - "brown", - "burlywood", - "cadetblue", - "chartreuse", - "chocolate", - "coral", - "cornflowerblue", - "cornsilk", - "crimson", - "cyan", - "darkblue", - "darkcyan", - "darkgoldenrod", - "darkgray", - "darkgreen", - "darkgrey", - "darkkhaki", - "darkmagenta", - "darkolivegreen", - "darkorange", - "darkorchid", - "darkred", - "darksalmon", - "darkseagreen", - "darkslateblue", - "darkslategray", - "darkslategrey", - "darkturquoise", - "darkviolet", - "deeppink", - "deepskyblue", - "dimgray", - "dimgrey", - "dodgerblue", - "firebrick", - "floralwhite", - "forestgreen", - "fuchsia", - "gainsboro", - "ghostwhite", - "gold", - "goldenrod", - "gray", - "grey", - "green", - "greenyellow", - "honeydew", - "hotpink", - "indianred", - "indigo", - "ivory", - "khaki", - "lavender", - "lavenderblush", - "lawngreen", - "lemonchiffon", - "lightblue", - "lightcoral", - "lightcyan", - "lightgoldenrodyellow", - "lightgray", - "lightgreen", - "lightgrey", - "lightpink", - "lightsalmon", - "lightseagreen", - "lightskyblue", - "lightslategray", - "lightslategrey", - "lightsteelblue", - "lightyellow", - "lime", - "limegreen", - "linen", - "magenta", - "maroon", - "mediumaquamarine", - "mediumblue", - "mediumorchid", - "mediumpurple", - "mediumseagreen", - "mediumslateblue", - "mediumspringgreen", - "mediumturquoise", - "mediumvioletred", - "midnightblue", - "mintcream", - "mistyrose", - "moccasin", - "navajowhite", - "navy", - "oldlace", - "olive", - "olivedrab", - "orange", - "orangered", - "orchid", - "palegoldenrod", - "palegreen", - "paleturquoise", - "palevioletred", - "papayawhip", - "peachpuff", - "peru", - "pink", - "plum", - "powderblue", - "purple", - "rebeccapurple", - "red", - "rosybrown", - "royalblue", - "saddlebrown", - "salmon", - "sandybrown", - "seagreen", - "seashell", - "sienna", - "silver", - "skyblue", - "slateblue", - "slategray", - "slategrey", - "snow", - "springgreen", - "steelblue", - "tan", - "teal", - "thistle", - "tomato", - "turquoise", - "violet", - "wheat", - "white", - "whitesmoke", - "yellow", - "yellowgreen" -], _ = p(T), A = [ - "above", - "absolute", - "activeborder", - "additive", - "activecaption", - "afar", - "after-white-space", - "ahead", - "alias", - "all", - "all-scroll", - "alphabetic", - "alternate", - "always", - "amharic", - "amharic-abegede", - "antialiased", - "appworkspace", - "arabic-indic", - "armenian", - "asterisks", - "attr", - "auto", - "auto-flow", - "avoid", - "avoid-column", - "avoid-page", - "avoid-region", - "axis-pan", - "background", - "backwards", - "baseline", - "below", - "bidi-override", - "binary", - "bengali", - "blink", - "block", - "block-axis", - "blur", - "bold", - "bolder", - "border", - "border-box", - "both", - "bottom", - "break", - "break-all", - "break-word", - "brightness", - "bullets", - "button", - "buttonface", - "buttonhighlight", - "buttonshadow", - "buttontext", - "calc", - "cambodian", - "capitalize", - "caps-lock-indicator", - "caption", - "captiontext", - "caret", - "cell", - "center", - "checkbox", - "circle", - "cjk-decimal", - "cjk-earthly-branch", - "cjk-heavenly-stem", - "cjk-ideographic", - "clear", - "clip", - "close-quote", - "col-resize", - "collapse", - "color", - "color-burn", - "color-dodge", - "column", - "column-reverse", - "compact", - "condensed", - "conic-gradient", - "contain", - "content", - "contents", - "content-box", - "context-menu", - "continuous", - "contrast", - "copy", - "counter", - "counters", - "cover", - "crop", - "cross", - "crosshair", - "cubic-bezier", - "currentcolor", - "cursive", - "cyclic", - "darken", - "dashed", - "decimal", - "decimal-leading-zero", - "default", - "default-button", - "dense", - "destination-atop", - "destination-in", - "destination-out", - "destination-over", - "devanagari", - "difference", - "disc", - "discard", - "disclosure-closed", - "disclosure-open", - "document", - "dot-dash", - "dot-dot-dash", - "dotted", - "double", - "down", - "drop-shadow", - "e-resize", - "ease", - "ease-in", - "ease-in-out", - "ease-out", - "element", - "ellipse", - "ellipsis", - "embed", - "end", - "ethiopic", - "ethiopic-abegede", - "ethiopic-abegede-am-et", - "ethiopic-abegede-gez", - "ethiopic-abegede-ti-er", - "ethiopic-abegede-ti-et", - "ethiopic-halehame-aa-er", - "ethiopic-halehame-aa-et", - "ethiopic-halehame-am-et", - "ethiopic-halehame-gez", - "ethiopic-halehame-om-et", - "ethiopic-halehame-sid-et", - "ethiopic-halehame-so-et", - "ethiopic-halehame-ti-er", - "ethiopic-halehame-ti-et", - "ethiopic-halehame-tig", - "ethiopic-numeric", - "ew-resize", - "exclusion", - "expanded", - "extends", - "extra-condensed", - "extra-expanded", - "fantasy", - "fast", - "fill", - "fill-box", - "fixed", - "flat", - "flex", - "flex-end", - "flex-start", - "footnotes", - "forwards", - "from", - "geometricPrecision", - "georgian", - "grayscale", - "graytext", - "grid", - "groove", - "gujarati", - "gurmukhi", - "hand", - "hangul", - "hangul-consonant", - "hard-light", - "hebrew", - "help", - "hidden", - "hide", - "higher", - "highlight", - "highlighttext", - "hiragana", - "hiragana-iroha", - "horizontal", - "hsl", - "hsla", - "hue", - "hue-rotate", - "icon", - "ignore", - "inactiveborder", - "inactivecaption", - "inactivecaptiontext", - "infinite", - "infobackground", - "infotext", - "inherit", - "initial", - "inline", - "inline-axis", - "inline-block", - "inline-flex", - "inline-grid", - "inline-table", - "inset", - "inside", - "intrinsic", - "invert", - "italic", - "japanese-formal", - "japanese-informal", - "justify", - "kannada", - "katakana", - "katakana-iroha", - "keep-all", - "khmer", - "korean-hangul-formal", - "korean-hanja-formal", - "korean-hanja-informal", - "landscape", - "lao", - "large", - "larger", - "left", - "level", - "lighter", - "lighten", - "line-through", - "linear", - "linear-gradient", - "lines", - "list-item", - "listbox", - "listitem", - "local", - "logical", - "loud", - "lower", - "lower-alpha", - "lower-armenian", - "lower-greek", - "lower-hexadecimal", - "lower-latin", - "lower-norwegian", - "lower-roman", - "lowercase", - "ltr", - "luminosity", - "malayalam", - "manipulation", - "match", - "matrix", - "matrix3d", - "media-play-button", - "media-slider", - "media-sliderthumb", - "media-volume-slider", - "media-volume-sliderthumb", - "medium", - "menu", - "menulist", - "menulist-button", - "menutext", - "message-box", - "middle", - "min-intrinsic", - "mix", - "mongolian", - "monospace", - "move", - "multiple", - "multiple_mask_images", - "multiply", - "myanmar", - "n-resize", - "narrower", - "ne-resize", - "nesw-resize", - "no-close-quote", - "no-drop", - "no-open-quote", - "no-repeat", - "none", - "normal", - "not-allowed", - "nowrap", - "ns-resize", - "numbers", - "numeric", - "nw-resize", - "nwse-resize", - "oblique", - "octal", - "opacity", - "open-quote", - "optimizeLegibility", - "optimizeSpeed", - "oriya", - "oromo", - "outset", - "outside", - "outside-shape", - "overlay", - "overline", - "padding", - "padding-box", - "painted", - "page", - "paused", - "persian", - "perspective", - "pinch-zoom", - "plus-darker", - "plus-lighter", - "pointer", - "polygon", - "portrait", - "pre", - "pre-line", - "pre-wrap", - "preserve-3d", - "progress", - "push-button", - "radial-gradient", - "radio", - "read-only", - "read-write", - "read-write-plaintext-only", - "rectangle", - "region", - "relative", - "repeat", - "repeating-linear-gradient", - "repeating-radial-gradient", - "repeating-conic-gradient", - "repeat-x", - "repeat-y", - "reset", - "reverse", - "rgb", - "rgba", - "ridge", - "right", - "rotate", - "rotate3d", - "rotateX", - "rotateY", - "rotateZ", - "round", - "row", - "row-resize", - "row-reverse", - "rtl", - "run-in", - "running", - "s-resize", - "sans-serif", - "saturate", - "saturation", - "scale", - "scale3d", - "scaleX", - "scaleY", - "scaleZ", - "screen", - "scroll", - "scrollbar", - "scroll-position", - "se-resize", - "searchfield", - "searchfield-cancel-button", - "searchfield-decoration", - "searchfield-results-button", - "searchfield-results-decoration", - "self-start", - "self-end", - "semi-condensed", - "semi-expanded", - "separate", - "sepia", - "serif", - "show", - "sidama", - "simp-chinese-formal", - "simp-chinese-informal", - "single", - "skew", - "skewX", - "skewY", - "skip-white-space", - "slide", - "slider-horizontal", - "slider-vertical", - "sliderthumb-horizontal", - "sliderthumb-vertical", - "slow", - "small", - "small-caps", - "small-caption", - "smaller", - "soft-light", - "solid", - "somali", - "source-atop", - "source-in", - "source-out", - "source-over", - "space", - "space-around", - "space-between", - "space-evenly", - "spell-out", - "square", - "square-button", - "start", - "static", - "status-bar", - "stretch", - "stroke", - "stroke-box", - "sub", - "subpixel-antialiased", - "svg_masks", - "super", - "sw-resize", - "symbolic", - "symbols", - "system-ui", - "table", - "table-caption", - "table-cell", - "table-column", - "table-column-group", - "table-footer-group", - "table-header-group", - "table-row", - "table-row-group", - "tamil", - "telugu", - "text", - "text-bottom", - "text-top", - "textarea", - "textfield", - "thai", - "thick", - "thin", - "threeddarkshadow", - "threedface", - "threedhighlight", - "threedlightshadow", - "threedshadow", - "tibetan", - "tigre", - "tigrinya-er", - "tigrinya-er-abegede", - "tigrinya-et", - "tigrinya-et-abegede", - "to", - "top", - "trad-chinese-formal", - "trad-chinese-informal", - "transform", - "translate", - "translate3d", - "translateX", - "translateY", - "translateZ", - "transparent", - "ultra-condensed", - "ultra-expanded", - "underline", - "unidirectional-pan", - "unset", - "up", - "upper-alpha", - "upper-armenian", - "upper-greek", - "upper-hexadecimal", - "upper-latin", - "upper-norwegian", - "upper-roman", - "uppercase", - "urdu", - "url", - "var", - "vertical", - "vertical-text", - "view-box", - "visible", - "visibleFill", - "visiblePainted", - "visibleStroke", - "visual", - "w-resize", - "wait", - "wave", - "wider", - "window", - "windowframe", - "windowtext", - "words", - "wrap", - "wrap-reverse", - "x-large", - "x-small", - "xor", - "xx-large", - "xx-small" -], j = p(A), M = H.concat(X).concat(Y).concat(E).concat(S).concat(Z).concat(T).concat(A); -const le = { - properties: S, - colors: T, - fonts: U, - values: A, - all: M -}, ae = { - documentTypes: C, - mediaTypes: v, - mediaFeatures: x, - mediaValueKeywords: B, - propertyKeywords: z, - nonStandardPropertyKeywords: K, - fontProperties: P, - counterDescriptors: I, - colorKeywords: _, - valueKeywords: j, - tokenHooks: { - "/": function(i, l) { - return i.eat("*") ? (l.tokenize = f, f(i, l)) : !1; - } - } -}, se = y({ name: "css" }); -function f(i, l) { - for (var m = !1, b; (b = i.next()) != null; ) { - if (m && b == "/") { - l.tokenize = null; - break; - } - m = b == "*"; - } - return ["comment", "comment"]; -} -const ce = y({ - name: "scss", - mediaTypes: v, - mediaFeatures: x, - mediaValueKeywords: B, - propertyKeywords: z, - nonStandardPropertyKeywords: K, - colorKeywords: _, - valueKeywords: j, - fontProperties: P, - allowNested: !0, - lineComment: "//", - tokenHooks: { - "/": function(i, l) { - return i.eat("/") ? (i.skipToEnd(), ["comment", "comment"]) : i.eat("*") ? (l.tokenize = f, f(i, l)) : ["operator", "operator"]; - }, - ":": function(i) { - return i.match(/^\s*\{/, !1) ? [null, null] : !1; - }, - $: function(i) { - return i.match(/^[\w-]+/), i.match(/^\s*:/, !1) ? ["def", "variable-definition"] : ["variableName.special", "variable"]; - }, - "#": function(i) { - return i.eat("{") ? [null, "interpolation"] : !1; - } - } -}), de = y({ - name: "less", - mediaTypes: v, - mediaFeatures: x, - mediaValueKeywords: B, - propertyKeywords: z, - nonStandardPropertyKeywords: K, - colorKeywords: _, - valueKeywords: j, - fontProperties: P, - allowNested: !0, - lineComment: "//", - tokenHooks: { - "/": function(i, l) { - return i.eat("/") ? (i.skipToEnd(), ["comment", "comment"]) : i.eat("*") ? (l.tokenize = f, f(i, l)) : ["operator", "operator"]; - }, - "@": function(i) { - return i.eat("{") ? [null, "interpolation"] : i.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, !1) ? !1 : (i.eatWhile(/[\w\\\-]/), i.match(/^\s*:/, !1) ? ["def", "variable-definition"] : ["variableName", "variable"]); - }, - "&": function() { - return ["atom", "atom"]; - } - } -}), ue = y({ - name: "gss", - documentTypes: C, - mediaTypes: v, - mediaFeatures: x, - propertyKeywords: z, - nonStandardPropertyKeywords: K, - fontProperties: P, - counterDescriptors: I, - colorKeywords: _, - valueKeywords: j, - supportsAtComponent: !0, - tokenHooks: { - "/": function(i, l) { - return i.eat("*") ? (l.tokenize = f, f(i, l)) : !1; - } - } -}); -export { - se as css, - ue as gss, - le as keywords, - de as less, - y as mkCSS, - ce as sCSS -}; diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 3091b7219..000000000 --- a/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './src/index' diff --git a/dist/index.mjs b/dist/index.mjs deleted file mode 100644 index 7b3ffbf2d..000000000 --- a/dist/index.mjs +++ /dev/null @@ -1,63650 +0,0 @@ -var ZR = Object.defineProperty; -var GR = (t, e, n) => e in t ? ZR(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; -var Ml = (t, e, n) => (GR(t, typeof e != "symbol" ? e + "" : e, n), n); -import { s as Xp, w as zR, T as UR, _ as VR, S as jR, i as ER, a as ot, b as hQ, c as o1, d as dr, e as vO, f as Qa, g as vl, k as Ko, h as Nx, j as Kg, t as Yu, l as Mx, m as DR, n as IR, o as f, p as kp, u as Xl, F as j, B as Sa, q as z, r as xn, v as AR, x as FR, y as bt, z as XO, A as LR, C as NR, D as H, E as a1, G as Zu, H as pe, I as Hx, M as MR, J as Bx, K as HR, L as Jx, N as Kx, O as e4, P as t4, Q as pQ, R as n4, U as Gu, V as BR, W as JR, X as KR, Y as e_, Z as t_, $ as Se, a0 as i4, a1 as r4, a2 as n_, a3 as $O, a4 as i_, a5 as r_, a6 as O_, a7 as e5, a8 as t5, a9 as $Q, aa as o_, ab as a_, ac as s_, ad as l_, ae as c_, af as u_, ag as O4, ah as d_, ai as f_, aj as h_, ak as p_, al as $_, am as g_, an as m_, ao as Q_, ap as S_, aq as gQ, ar as w_, as as y_, at as b_, au as o4, av as x_, aw as P_ } from "./Flex-801ab823.mjs"; -import { ax as JSe } from "./Flex-801ab823.mjs"; -import * as de from "react"; -import X, { createElement as cO, Component as n5, memo as Zn, useState as we, forwardRef as Gn, useRef as Ot, useEffect as tt, useCallback as oe, useImperativeHandle as v_, useMemo as De, useLayoutEffect as X_, useContext as wa, createContext as i5, Fragment as Tp, createRef as k_ } from "react"; -import { Link as s1 } from "react-router-dom"; -import * as T_ from "react-dom"; -import C_, { createPortal as a4, findDOMNode as R_ } from "react-dom"; -function s4() { - for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) - e[n] = arguments[n]; - return Xp(e); -} -var mQ = !1, __ = /* @__PURE__ */ zR(function(t, e) { - process.env.NODE_ENV !== "production" && !mQ && // 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?"), mQ = !0); - var n = t.styles; - if (typeof n == "function") - return /* @__PURE__ */ cO(UR.Consumer, null, function(r) { - var O = Xp([n(r)]); - return /* @__PURE__ */ cO(QQ, { - serialized: O, - cache: e - }); - }); - var i = Xp([n]); - return /* @__PURE__ */ cO(QQ, { - serialized: i, - cache: e - }); -}), QQ = /* @__PURE__ */ function(t) { - VR(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 jR({ - key: this.props.cache.key + "-global", - nonce: this.props.cache.sheet.nonce, - container: this.props.cache.sheet.container - }); - var r = document.querySelector("style[data-emotion-" + this.props.cache.key + '="' + this.props.serialized.name + '"]'); - r !== null && this.sheet.tags.push(r), this.props.cache.sheet.tags.length && (this.sheet.before = this.props.cache.sheet.tags[0]), this.insertStyles(); - }, n.componentDidUpdate = function(r) { - r.serialized.name !== this.props.serialized.name && this.insertStyles(); - }, n.insertStyles = function() { - if (this.props.serialized.next !== void 0 && ER(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(); - } - this.props.cache.insert("", this.props.serialized, this.sheet, !1); - }, n.componentWillUnmount = function() { - this.sheet.flush(); - }, n.render = function() { - return null; - }, e; -}(n5), l4 = function() { - var e = s4.apply(void 0, arguments), n = "animation-" + e.name; - return { - name: n, - styles: "@keyframes " + n + "{" + e.styles + "}", - anim: 1, - toString: function() { - return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; - } - }; -}, W_ = function() { - return !0; -}; -const zu = W_; -var q_ = /* @__PURE__ */ ot(function(e, n) { - return Number(e) + Number(n); -}); -const c4 = q_; -function r5(t, e) { - t = t || [], e = e || []; - var n, i = t.length, r = e.length, O = []; - for (n = 0; n < i; ) - O[O.length] = t[n], n += 1; - for (n = 0; n < r; ) - O[O.length] = e[n], n += 1; - return O; -} -function u4(t, e, n) { - return function() { - for (var i = [], r = 0, O = t, o = 0; o < e.length || r < arguments.length; ) { - var a; - o < e.length && (!hQ(e[o]) || r >= arguments.length) ? a = e[o] : (a = arguments[r], r += 1), i[o] = a, hQ(a) || (O -= 1), o += 1; - } - return O <= 0 ? n.apply(this, i) : o1(O, u4(t, i, n)); - }; -} -var Uu = /* @__PURE__ */ ot(function(e, n) { - return e === 1 ? dr(n) : o1(e, u4(e, [], n)); -}), Y_ = /* @__PURE__ */ vO(function(e, n, i) { - var r = i.length; - if (e >= r || e < -r) - return i; - var O = (r + e) % r, o = r5(i); - return o[O] = n(i[O]), o; -}); -const ls = Y_; -function Z_(t) { - return t != null && typeof t["@@transducer/step"] == "function"; -} -function d4(t, e, n) { - return function() { - if (arguments.length === 0) - return n(); - var i = arguments[arguments.length - 1]; - 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 (Z_(i)) { - var O = e.apply(null, Array.prototype.slice.call(arguments, 0, -1)); - return O(i); - } - } - return n.apply(this, arguments); - }; -} -const Vu = { - init: function() { - return this.xf["@@transducer/init"](); - }, - result: function(t) { - return this.xf["@@transducer/result"](t); - } -}; -var G_ = /* @__PURE__ */ ot(function(e, n) { - return n > e ? n : e; -}); -function lu(t, e) { - for (var n = 0, i = e.length, r = Array(i); n < i; ) - r[n] = t(e[n]), n += 1; - return r; -} -var z_ = /* @__PURE__ */ function() { - function t(e, n) { - this.xf = n, this.f = e; - } - return t.prototype["@@transducer/init"] = Vu.init, t.prototype["@@transducer/result"] = Vu.result, t.prototype["@@transducer/step"] = function(e, n) { - return this.xf["@@transducer/step"](e, this.f(n)); - }, t; -}(), U_ = /* @__PURE__ */ ot(function(e, n) { - return new z_(e, n); -}), l1 = /* @__PURE__ */ ot( - /* @__PURE__ */ d4(["fantasy-land/map", "map"], U_, function(e, n) { - switch (Object.prototype.toString.call(n)) { - case "[object Function]": - return Uu(n.length, function() { - return e.call(this, n.apply(this, arguments)); - }); - case "[object Object]": - return vl(function(i, r) { - return i[r] = e(n[r]), i; - }, {}, Ko(n)); - default: - return lu(e, n); - } - }) -); -const ya = Number.isInteger || function(e) { - return e << 0 === e; -}; -var V_ = /* @__PURE__ */ ot(function(e, n) { - var i = e < 0 ? n.length + e : e; - return Nx(n) ? n.charAt(i) : n[i]; -}); -const O5 = V_; -var j_ = /* @__PURE__ */ ot(function(e, n) { - if (n != null) - return ya(e) ? O5(e, n) : n[e]; -}); -const f4 = j_; -var E_ = /* @__PURE__ */ vO(vl); -const h4 = E_; -var D_ = /* @__PURE__ */ dr(function(e) { - return function() { - return e; - }; -}); -const ys = D_; -var I_ = /* @__PURE__ */ ot(function(e, n) { - return e && n; -}), A_ = /* @__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)); - } : vl(function(i, r) { - return r5(i, l1(r, n)); - }, [], e); -}), F_ = /* @__PURE__ */ ot(function(e, n) { - return r5(n, [e]); -}); -const SQ = F_; -function L_(t, e, n) { - if (ya(t) && Qa(n)) { - var i = [].concat(n); - return i[t] = e, i; - } - var r = {}; - for (var O in n) - r[O] = n[O]; - return r[t] = e, r; -} -var N_ = /* @__PURE__ */ dr(function(e) { - return e == null; -}); -const ju = N_; -var M_ = /* @__PURE__ */ vO(function t(e, n, i) { - if (e.length === 0) - return n; - var r = e[0]; - if (e.length > 1) { - var O = !ju(i) && Kg(r, i) ? i[r] : ya(e[1]) ? [] : {}; - n = t(Array.prototype.slice.call(e, 1), n, O); - } - return L_(r, n, i); -}), cs = /* @__PURE__ */ vO(function(e, n, i) { - return M_([e], n, i); -}); -function o5(t) { - var e = Object.prototype.toString.call(t); - return e === "[object Function]" || e === "[object AsyncFunction]" || e === "[object GeneratorFunction]" || e === "[object AsyncGeneratorFunction]"; -} -var H_ = /* @__PURE__ */ ot(function(e, n) { - var i = Uu(e, n); - return Uu(e, function() { - return vl(A_, l1(i, arguments[0]), Array.prototype.slice.call(arguments, 1)); - }); -}), B_ = /* @__PURE__ */ dr(function(e) { - return H_(e.length, e); -}); -const a5 = B_; -var J_ = /* @__PURE__ */ ot(function(e, n) { - return o5(e) ? function() { - return e.apply(this, arguments) && n.apply(this, arguments); - } : a5(I_)(e, n); -}); -const K_ = J_; -var eW = /* @__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 p4 = eW; -var tW = /* @__PURE__ */ dr(function(e) { - return !e; -}), nW = /* @__PURE__ */ a5(tW); -const wQ = nW; -function iW(t, e) { - return function() { - return e.call(this, t.apply(this, arguments)); - }; -} -function $4(t, e) { - return function() { - var n = arguments.length; - if (n === 0) - return e(); - var i = arguments[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 rW = /* @__PURE__ */ vO( - /* @__PURE__ */ $4("slice", function(e, n, i) { - return Array.prototype.slice.call(i, e, n); - }) -), OW = /* @__PURE__ */ dr( - /* @__PURE__ */ $4( - "tail", - /* @__PURE__ */ rW(1, 1 / 0) - ) -); -const oW = OW; -function aW() { - if (arguments.length === 0) - throw new Error("pipe requires at least one argument"); - return o1(arguments[0].length, h4(iW, arguments[0], oW(arguments))); -} -var sW = /* @__PURE__ */ O5(0); -const Cp = sW; -function yQ(t) { - for (var e = [], n; !(n = t.next()).done; ) - e.push(n.value); - return e; -} -function bQ(t, e, n) { - for (var i = 0, r = n.length; i < r; ) { - if (t(e, n[i])) - return !0; - i += 1; - } - return !1; -} -function lW(t) { - var e = String(t).match(/^function (\w*)/); - return e == null ? "" : e[1]; -} -function cW(t, e) { - return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e; -} -const pf = typeof Object.is == "function" ? Object.is : cW; -function xQ(t, e, n, i) { - var r = yQ(t), O = yQ(e); - function o(a, s) { - return s5(a, s, n.slice(), i.slice()); - } - return !bQ(function(a, s) { - return !bQ(o, s, a); - }, O, r); -} -function s5(t, e, n, i) { - if (pf(t, e)) - return !0; - var r = Yu(t); - if (r !== Yu(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); - if (typeof t.equals == "function" || typeof e.equals == "function") - return typeof t.equals == "function" && t.equals(e) && typeof e.equals == "function" && e.equals(t); - switch (r) { - case "Arguments": - case "Array": - case "Object": - if (typeof t.constructor == "function" && lW(t.constructor) === "Promise") - return t === e; - break; - case "Boolean": - case "Number": - case "String": - if (!(typeof t == typeof e && pf(t.valueOf(), e.valueOf()))) - return !1; - break; - case "Date": - if (!pf(t.valueOf(), e.valueOf())) - return !1; - break; - case "Error": - return t.name === e.name && t.message === e.message; - case "RegExp": - if (!(t.source === e.source && t.global === e.global && t.ignoreCase === e.ignoreCase && t.multiline === e.multiline && t.sticky === e.sticky && t.unicode === e.unicode)) - return !1; - break; - } - for (var O = n.length - 1; O >= 0; ) { - if (n[O] === t) - return i[O] === e; - O -= 1; - } - switch (r) { - case "Map": - return t.size !== e.size ? !1 : xQ(t.entries(), e.entries(), n.concat([t]), i.concat([e])); - case "Set": - return t.size !== e.size ? !1 : xQ(t.values(), e.values(), n.concat([t]), i.concat([e])); - case "Arguments": - case "Array": - case "Object": - case "Boolean": - case "Number": - case "String": - case "Date": - case "Error": - case "RegExp": - case "Int8Array": - case "Uint8Array": - case "Uint8ClampedArray": - case "Int16Array": - case "Uint16Array": - case "Int32Array": - case "Uint32Array": - case "Float32Array": - case "Float64Array": - case "ArrayBuffer": - break; - default: - return !1; - } - var o = Ko(t); - if (o.length !== Ko(e).length) - return !1; - var a = n.concat([t]), s = i.concat([e]); - for (O = o.length - 1; O >= 0; ) { - var l = o[O]; - if (!(Kg(l, e) && s5(e[l], t[l], a, s))) - return !1; - O -= 1; - } - return !0; -} -var JO = /* @__PURE__ */ ot(function(e, n) { - return s5(e, n, [], []); -}); -function uW(t, e, n) { - var i, r; - if (typeof t.indexOf == "function") - switch (typeof e) { - case "number": - if (e === 0) { - for (i = 1 / e; n < t.length; ) { - if (r = t[n], r === 0 && 1 / r === i) - return n; - n += 1; - } - return -1; - } else if (e !== e) { - for (; n < t.length; ) { - if (r = t[n], typeof r == "number" && r !== r) - return n; - n += 1; - } - return -1; - } - return t.indexOf(e, n); - case "string": - case "boolean": - case "function": - case "undefined": - return t.indexOf(e, n); - case "object": - if (e === null) - return t.indexOf(e, n); - } - for (; n < t.length; ) { - if (JO(t[n], e)) - return n; - n += 1; - } - return -1; -} -function dW(t, e) { - return uW(e, t, 0) >= 0; -} -function $f(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 Ya = function(e) { - return (e < 10 ? "0" : "") + e; -}, fW = typeof Date.prototype.toISOString == "function" ? function(e) { - return e.toISOString(); -} : function(e) { - 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 hW(t) { - return function() { - return !t.apply(this, arguments); - }; -} -function pW(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 $W = /* @__PURE__ */ function() { - function t(e, n) { - this.xf = n, this.f = e; - } - return t.prototype["@@transducer/init"] = Vu.init, t.prototype["@@transducer/result"] = Vu.result, t.prototype["@@transducer/step"] = function(e, n) { - return this.f(n) ? this.xf["@@transducer/step"](e, n) : e; - }, t; -}(), gW = /* @__PURE__ */ ot(function(e, n) { - return new $W(e, n); -}), mW = /* @__PURE__ */ ot( - /* @__PURE__ */ d4(["fantasy-land/filter", "filter"], gW, function(t, e) { - return Mx(e) ? vl(function(n, i) { - return t(e[i]) && (n[i] = e[i]), n; - }, {}, Ko(e)) : ( - // else - pW(t, e) - ); - }) -), QW = /* @__PURE__ */ ot(function(e, n) { - return mW(hW(e), n); -}); -function g4(t, e) { - var n = function(o) { - var a = e.concat([t]); - return dW(o, a) ? "" : g4(o, a); - }, i = function(O, o) { - return lu(function(a) { - return $f(a) + ": " + n(O[a]); - }, o.slice().sort()); - }; - switch (Object.prototype.toString.call(t)) { - case "[object Arguments]": - return "(function() { return arguments; }(" + lu(n, t).join(", ") + "))"; - case "[object Array]": - return "[" + lu(n, t).concat(i(t, QW(function(O) { - return /^\d+$/.test(O); - }, 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) : $f(fW(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()) + ")" : $f(t); - case "[object Undefined]": - return "undefined"; - default: - if (typeof t.toString == "function") { - var r = t.toString(); - if (r !== "[object Object]") - return r; - } - return "{" + i(t, Ko(t)).join(", ") + "}"; - } -} -var SW = /* @__PURE__ */ dr(function(e) { - return g4(e, []); -}), wW = /* @__PURE__ */ dr(function(e) { - var n = h4(G_, 0, l1(function(i) { - return i[0].length; - }, e)); - return o1(n, function() { - for (var i = 0; i < e.length; ) { - if (e[i][0].apply(this, arguments)) - return e[i][1].apply(this, arguments); - i += 1; - } - }); -}); -const Eu = wW; -var yW = /* @__PURE__ */ c4(-1); -const bW = yW; -var xW = /* @__PURE__ */ ot(function(e, n) { - return n == null || n !== n ? e : n; -}), PW = /* @__PURE__ */ vO(function(e, n, i) { - var r = Array.prototype.slice.call(i, 0); - return r.splice(e, n), r; -}); -function vW(t, e) { - if (e == null) - return e; - if (ya(t) && Qa(e)) - return PW(t, 1, e); - var n = {}; - for (var i in e) - n[i] = e[i]; - return delete n[t], n; -} -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 kW = /* @__PURE__ */ ot(function t(e, n) { - if (n == null) - return n; - switch (e.length) { - case 0: - return n; - case 1: - return vW(e[0], n); - default: - var i = e[0], r = Array.prototype.slice.call(e, 1); - return n[i] == null ? XW(i, n) : cs(i, t(r, n[i]), n); - } -}), TW = /* @__PURE__ */ ot(function(e, n) { - return kW([e], n); -}); -const CW = TW; -var RW = /* @__PURE__ */ ot(function(e, n) { - return e || n; -}), _W = /* @__PURE__ */ ot(function(e, n) { - return o5(e) ? function() { - return e.apply(this, arguments) || n.apply(this, arguments); - } : a5(RW)(e, n); -}); -const Rp = _W; -function WW(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 qW = /* @__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) ? [] : Nx(e) ? "" : Mx(e) ? {} : DR(e) ? function() { - return arguments; - }() : WW(e) ? e.constructor.from("") : void 0; -}), YW = /* @__PURE__ */ c4(1); -const ZW = YW; -function GW(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) - Kg(O, r) && (e[O] = r[O]); - n += 1; - } - return e; -} -const zW = typeof Object.assign == "function" ? Object.assign : GW; -var UW = /* @__PURE__ */ ot(function(e, n) { - return Uu(e + 1, function() { - var i = arguments[e]; - if (i != null && o5(i[n])) - return i[n].apply(i, Array.prototype.slice.call(arguments, 0, e)); - throw new TypeError(SW(i) + ' does not have a method named "' + n + '"'); - }); -}); -const m4 = UW; -var VW = /* @__PURE__ */ dr(function(e) { - return e != null && JO(e, qW(e)); -}); -const Q4 = VW; -var jW = /* @__PURE__ */ ot(function(e, n) { - return e.map(function(i) { - for (var r = n, O = 0, o; O < i.length; ) { - if (r == null) - return; - o = i[O], r = ya(o) ? O5(o, r) : r[o], O += 1; - } - return r; - }); -}), EW = /* @__PURE__ */ ot(function(e, n) { - return jW([e], n)[0]; -}); -const DW = EW; -var IW = /* @__PURE__ */ ot(function(e, n) { - return e < n; -}); -const AW = IW; -var FW = /* @__PURE__ */ ot(function(e, n) { - return IR(function(i, r, O) { - return O; - }, e, n); -}); -const no = FW; -var LW = /* @__PURE__ */ ot(function(e, n) { - return zW({}, n, e); -}); -const Ur = LW; -var NW = /* @__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 MW = NW; -var HW = /* @__PURE__ */ vO(function(e, n, i) { - return xW(e, f4(n, i)); -}); -const BW = HW; -var JW = /* @__PURE__ */ m4(1, "split"); -const KW = JW; -var eq = /* @__PURE__ */ m4(0, "toUpperCase"); -const tq = eq; -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[t.gpu = 96] = "gpu", t))(ze || {}); -function l5(t, e = kp.colors.black, n = kp.iconSizes.lg) { - switch (t) { - case 71: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M7.2265 19.8285C6.81609 20.0434 6.38613 20.1998 5.93663 20.278C5.58485 20.3366 5.21352 20.3561 4.84219 20.3366C4.45132 20.3366 4.08 20.278 3.68912 20.2193C3.66958 20.2193 3.63049 20.1998 3.61095 20.1998C3.61095 20.1998 3.59141 20.1998 3.59141 20.1802L3.57186 20.1607C3.55232 20.1411 3.55232 20.1021 3.55232 20.0825C3.49369 19.6916 3.43506 19.3203 3.43506 18.9295C3.43506 18.5581 3.43506 18.2063 3.49369 17.835C3.57186 17.3855 3.72821 16.9556 3.94319 16.5451C3.96273 16.4865 4.00182 16.467 4.06045 16.4865C4.5295 16.5647 5.01808 16.5647 5.54576 16.5061C5.95617 16.467 6.34704 16.3693 6.71837 16.1934C6.75746 16.2911 6.777 16.3693 6.777 16.467C6.79655 16.6038 6.83563 16.7601 6.93335 16.8578C7.03107 16.9556 7.18742 16.9946 7.32422 17.0142C7.42194 17.0142 7.50011 17.0337 7.59783 17.0728C7.42194 17.4441 7.32422 17.8546 7.26559 18.2454C7.20696 18.7536 7.20696 19.2421 7.28513 19.7307C7.30468 19.7698 7.28513 19.8089 7.2265 19.8285Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M8.06714 18.5385C8.10623 18.089 8.22349 17.6591 8.41893 17.2487C8.45802 17.151 8.53619 17.1119 8.63391 17.1119C9.02478 17.1314 9.3961 17.1119 9.78698 17.0728C10.3342 16.9946 10.8619 16.8773 11.37 16.6819C11.6632 16.5647 11.9368 16.4083 12.2495 16.252C12.2104 16.8578 12.3276 17.405 12.5035 17.9522C12.5622 18.1281 12.6208 18.2845 12.7185 18.4408C12.7576 18.519 12.7576 18.5776 12.699 18.6363C12.0931 19.3985 11.3895 20.0043 10.5101 20.3952C9.88469 20.6688 9.23976 20.8251 8.55573 20.7861C8.45802 20.7861 8.41893 20.747 8.37984 20.6492C8.10623 19.9848 8.00851 19.2812 8.06714 18.5385Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M13.8535 18.7531C13.5799 18.3818 13.365 17.9909 13.2282 17.561C13.1109 17.1505 13.0327 16.7401 13.0327 16.2515C13.0718 15.4307 13.3063 14.6099 13.7363 13.8477C13.9708 13.4373 14.2444 13.0464 14.518 12.6555C14.7135 12.3624 14.9675 12.2647 15.2802 12.2842C15.5538 12.2842 15.8079 12.2647 16.062 12.206C16.1597 12.1865 16.2183 12.206 16.2574 12.3037C16.4919 12.9096 16.8046 13.4764 17.1564 14.0236C17.4691 14.5122 17.8013 14.9812 18.1727 15.4307C18.2118 15.4893 18.2118 15.5284 18.1922 15.5675C17.9577 16.017 17.6841 16.447 17.3518 16.8183C16.9023 17.3264 16.3942 17.7564 15.8079 18.1277C15.2607 18.46 14.6744 18.7336 14.0685 18.9095C13.9513 18.9486 13.9122 18.8313 13.8535 18.7531Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M19.2863 15.2161C19.7749 14.493 20.1658 13.7308 20.4394 12.8904C20.6934 12.1282 20.8889 10.8188 20.6934 9.60708C20.5175 8.66899 20.1462 7.80908 19.6185 7.00779C19.2472 6.44103 18.8172 5.95244 18.3482 5.4834L18.27 5.40522C17.801 4.93618 17.3124 4.52576 16.7652 4.15444C15.9639 3.62676 15.104 3.25543 14.1659 3.07954C12.9737 2.88411 11.6448 3.07954 10.8826 3.33361C10.0422 3.60722 9.28 3.99809 8.55689 4.48668C8.45917 4.54531 8.45917 4.60394 8.53735 4.68211C9.43635 5.42477 10.3744 6.10879 11.4493 6.59738C11.6448 6.6951 11.8402 6.77327 12.0552 6.85145C12.3483 6.98825 12.5633 7.06642 12.4461 7.51593C12.3093 8.00451 12.2702 8.51265 12.3092 9.02078C12.3483 9.66571 12.4461 10.3107 12.6415 10.936C12.661 10.9751 12.6806 11.0142 12.7001 11.0338C12.7001 11.0338 12.7001 11.0533 12.7197 11.0533L12.7392 11.0728C12.7588 11.0924 12.7978 11.1119 12.8369 11.1315C13.4623 11.3269 14.1073 11.4246 14.7522 11.4637C15.2603 11.5028 15.7685 11.4442 16.257 11.3269C16.7065 11.2097 16.8043 11.4246 16.9215 11.7178C16.9997 11.9132 17.0779 12.1282 17.1756 12.3236C17.6642 13.379 18.3287 14.3366 19.0909 15.2356C19.169 15.3138 19.2081 15.3138 19.2863 15.2161Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.0555 15.4117C11.4497 15.8416 10.7656 16.0957 10.0425 16.2129C9.59302 16.2911 9.14352 16.3302 8.67447 16.3302C8.36177 16.3107 8.04908 16.2716 7.73638 16.252C7.67775 16.252 7.65821 16.2325 7.61912 16.2129L7.59958 16.1934C7.59958 16.1934 7.59958 16.1739 7.58003 16.1739C7.56049 16.1348 7.54095 16.1152 7.54095 16.0566C7.5214 15.7439 7.48232 15.4312 7.46277 15.1185C7.44323 14.6495 7.50186 14.2 7.58003 13.7505C7.69729 13.0273 7.95136 12.3433 8.38132 11.7375C8.53767 11.5225 8.69401 11.3857 8.96762 11.3271C9.31941 11.2684 9.65165 11.1121 9.96434 10.9362C10.5311 10.643 11.0783 10.3303 11.5669 9.91992C11.6646 10.4476 11.7623 10.9557 11.9382 11.4443C11.9773 11.5225 12.0164 11.6007 12.075 11.6593L12.0946 11.6788C12.1532 11.7375 12.2118 11.7766 12.3096 11.8156C12.7982 11.9915 13.3063 12.0893 13.834 12.187C13.4235 12.6756 13.1109 13.2228 12.8177 13.7895C12.6614 14.1022 12.505 14.4345 12.4268 14.7863C12.4073 15.0794 12.2509 15.2553 12.0555 15.4117Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M5.25345 15.724C5.70295 15.6849 6.13291 15.5677 6.54332 15.3722C6.64104 15.3331 6.68013 15.255 6.68013 15.1572C6.66058 14.7664 6.68013 14.3951 6.71921 14.0042C6.79739 13.457 6.91465 12.9293 7.11009 12.4212C7.22735 12.128 7.3837 11.8544 7.54004 11.5417C6.93419 11.5808 6.38697 11.4635 5.83976 11.2876C5.66386 11.229 5.50752 11.1704 5.35117 11.0727C5.27299 11.0336 5.21436 11.0336 5.15573 11.0922C4.39353 11.698 3.78769 12.4016 3.39681 13.2811C3.1232 13.9065 2.96686 14.5514 3.00594 15.2354C3.00594 15.3331 3.04503 15.3722 3.14275 15.4113C3.78768 15.6654 4.5108 15.7826 5.25345 15.724Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M5.03814 9.91986C5.40946 10.1935 5.80033 10.4084 6.23029 10.5453C6.64071 10.6625 7.05112 10.7407 7.53971 10.7407C8.36054 10.7016 9.18136 10.4671 9.94356 10.0371C10.354 9.8026 10.7448 9.52899 11.1357 9.25538C11.4289 9.05995 11.5266 8.80588 11.507 8.49318C11.507 8.21957 11.5266 7.96551 11.5852 7.71144C11.6048 7.61372 11.5852 7.55509 11.4875 7.51601C10.8817 7.28148 10.3149 6.96879 9.76767 6.617C9.27908 6.30431 8.81004 5.97207 8.36054 5.60074C8.30191 5.56165 8.26282 5.56165 8.22373 5.5812C7.77423 5.81572 7.34427 6.08933 6.97295 6.42157C6.46481 6.87107 6.03486 7.3792 5.66353 7.96551C5.33129 8.51273 5.05768 9.09903 4.88179 9.70488C4.8427 9.82214 4.95996 9.88077 5.03814 9.91986Z", - fill: e - } - ) - ] - } - ); - case 1: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M6.24076 8.34923C6.60018 7.9299 7.23148 7.88134 7.65081 8.24076L11.1508 11.2408C11.3725 11.4307 11.5 11.7081 11.5 12C11.5 12.2919 11.3725 12.5693 11.1508 12.7593L7.65081 15.7593C7.23148 16.1187 6.60018 16.0701 6.24076 15.6508C5.88134 15.2315 5.9299 14.6002 6.34923 14.2408L8.96343 12L6.34923 9.75927C5.9299 9.39985 5.88134 8.76855 6.24076 8.34923ZM12 15.5C12 14.9477 12.4477 14.5 13 14.5H18C18.5523 14.5 19 14.9477 19 15.5C19 16.0523 18.5523 16.5 18 16.5H13C12.4477 16.5 12 16.0523 12 15.5Z", - fill: e - } - ) - } - ); - case 2: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12 6C12.5523 6 13 6.44772 13 7V11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H13V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V13H7C6.44772 13 6 12.5523 6 12C6 11.4477 6.44772 11 7 11H11V7C11 6.44772 11.4477 6 12 6Z", - fill: e - } - ) - } - ); - case 3: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "-3 -3 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M7.6279 0.348818C7.85847 0.217061 8.14153 0.217061 8.3721 0.348818L15.3721 4.34882C15.6058 4.48235 15.75 4.73086 15.75 5V15C15.75 15.4142 15.4142 15.75 15 15.75H11C10.5858 15.75 10.25 15.4142 10.25 15V11C10.25 10.3096 9.69036 9.75 9 9.75H7C6.30964 9.75 5.75 10.3096 5.75 11V15C5.75 15.4142 5.41421 15.75 5 15.75H1C0.585786 15.75 0.25 15.4142 0.25 15V5C0.25 4.73086 0.394215 4.48235 0.627896 4.34882L7.6279 0.348818ZM1.75 5.43524V14.25H4.25V11C4.25 9.48122 5.48122 8.25 7 8.25H9C10.5188 8.25 11.75 9.48122 11.75 11V14.25H14.25V5.43524L8 1.86381L1.75 5.43524Z", - fill: e - } - ) - } - ); - case 4: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M6.5 15.5C8.433 15.5 10 13.933 10 12C10 10.067 8.433 8.5 6.5 8.5C4.567 8.5 3 10.067 3 12C3 13.933 4.567 15.5 6.5 15.5ZM6.5 17C9.26142 17 11.5 14.7614 11.5 12C11.5 9.23858 9.26142 7 6.5 7C3.73858 7 1.5 9.23858 1.5 12C1.5 14.7614 3.73858 17 6.5 17Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M17.0003 7L11.3711 16.75H22.6294L17.0003 7ZM17.0003 10L13.9692 15.25H20.0313L17.0003 10Z", - fill: e - } - ) - ] - } - ); - case 5: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M6 14V6H14V8.5H9.5C8.94772 8.5 8.5 8.94771 8.5 9.5V14H6ZM8.5 15.5H5.5C4.94771 15.5 4.5 15.0523 4.5 14.5V5.5C4.5 4.94771 4.94772 4.5 5.5 4.5H14.5C15.0523 4.5 15.5 4.94772 15.5 5.5V8.5H18.5C19.0523 8.5 19.5 8.94772 19.5 9.5V18.5C19.5 19.0523 19.0523 19.5 18.5 19.5H9.5C8.94771 19.5 8.5 19.0523 8.5 18.5V15.5ZM15.5 10H18V18H10V15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V10ZM14 10V14H10V10H14Z", - fill: e - } - ) - } - ); - case 6: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M19.0296 6.35205C19.0299 6.35207 19.0285 6.35505 19.0246 6.36098C19.0274 6.355 19.0293 6.35204 19.0296 6.35205ZM18.8899 6.5L18.871 6.48397C18.6284 6.28152 18.1876 6.03191 17.5112 5.79317C16.1718 5.32045 14.2234 5 12 5C9.77658 5 7.82817 5.32045 6.48882 5.79317C5.81238 6.03191 5.37162 6.28152 5.12901 6.48397L5.11006 6.5L5.12901 6.51603C5.37162 6.71848 5.81238 6.96809 6.48882 7.20683C7.82817 7.67955 9.77658 8 12 8C14.2234 8 16.1718 7.67955 17.5112 7.20683C18.1876 6.96809 18.6284 6.71848 18.871 6.51603L18.8899 6.5ZM4.97038 6.35205C4.97066 6.35204 4.97262 6.35501 4.9754 6.36098C4.97149 6.35505 4.97009 6.35207 4.97038 6.35205ZM20.5 6.5C20.5 4.84315 16.6944 3.5 12 3.5C7.30558 3.5 3.5 4.84315 3.5 6.5V12V17.5C3.5 19.433 7.30558 21 12 21C16.6944 21 20.5 19.433 20.5 17.5V12V6.5ZM19 12V8.20231C17.4666 8.98626 14.9033 9.5 12 9.5C9.09671 9.5 6.53339 8.98626 5 8.20231V12H5.00107C5.00964 12.031 5.04948 12.1271 5.21431 12.2876C5.46223 12.5289 5.89898 12.8154 6.56072 13.0879C7.87712 13.6299 9.7994 14 12 14C14.2006 14 16.1229 13.6299 17.4393 13.0879C18.101 12.8154 18.5378 12.5289 18.7857 12.2876C18.9505 12.1271 18.9904 12.031 18.9989 12H19ZM5 13.986C6.53339 14.9006 9.09671 15.5 12 15.5C14.9033 15.5 17.4666 14.9006 19 13.986V17.5H18.9989C18.9904 17.531 18.9505 17.6271 18.7857 17.7876C18.5378 18.0289 18.101 18.3154 17.4393 18.5879C16.1229 19.1299 14.2006 19.5 12 19.5C9.7994 19.5 7.87712 19.1299 6.56072 18.5879C5.89898 18.3154 5.46223 18.0289 5.21431 17.7876C5.04948 17.6271 5.00964 17.531 5.00107 17.5H5V13.986ZM4.99901 17.5111C4.99883 17.5111 4.99894 17.5089 4.99989 17.5047C4.99967 17.5089 4.99919 17.5111 4.99901 17.5111ZM19.0001 17.5047C19.0011 17.5089 19.0012 17.5111 19.001 17.5111C19.0008 17.5111 19.0003 17.5089 19.0001 17.5047Z", - fill: e - } - ) - } - ); - case 7: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M8.0269 6.88871C8.17003 6.77826 8.31772 6.6735 8.46963 6.57478C9.70143 7.25861 11.2874 6.75857 11.9098 5.50283C11.9752 5.50095 12.0408 5.5 12.1067 5.5C12.243 5.5 12.3782 5.50406 12.5122 5.51205C13.1186 6.72268 14.6228 7.22577 15.8337 6.63428C16.0179 6.75828 16.1957 6.89126 16.3665 7.03259C16.1889 8.32953 17.0792 9.56805 18.3608 9.81711C18.4436 10.0355 18.5152 10.2594 18.575 10.4882C17.696 11.4339 17.696 12.9367 18.575 13.8824C18.5152 14.1112 18.4435 14.3351 18.3608 14.5535C17.0792 14.8026 16.189 16.041 16.3664 17.3379C16.1957 17.4793 16.0179 17.6123 15.8336 17.7363C14.6228 17.1449 13.1187 17.6479 12.5122 18.8585C12.3782 18.8665 12.243 18.8705 12.1067 18.8705C12.0408 18.8705 11.9751 18.8696 11.9098 18.8677C11.2873 17.612 9.70147 17.112 8.46971 17.7958C8.31778 17.697 8.17007 17.5923 8.02691 17.4818C8.30791 16.062 7.28532 14.6708 5.84052 14.5214C5.7817 14.3637 5.72868 14.2032 5.68171 14.0402C6.77497 13.0612 6.77496 11.3094 5.68169 10.3304C5.72866 10.1674 5.78167 10.0069 5.84048 9.8492C7.28534 9.69982 8.30795 8.30859 8.0269 6.88871ZM10.6558 4.5622L10.739 4.11376C11.1837 4.03895 11.6407 4 12.1067 4C12.6468 4 13.1747 4.05231 13.6856 4.15215L13.7616 4.5622C13.9062 5.34213 14.8578 5.65132 15.4332 5.10533L15.7162 4.83678C16.6161 5.27965 17.4228 5.88296 18.0991 6.60939L17.9458 6.93084C17.6043 7.6468 18.1924 8.45627 18.9788 8.35276L19.3173 8.30822C19.7836 9.17368 20.0987 10.1327 20.2271 11.1498L19.9386 11.3065C19.2415 11.685 19.2415 12.6856 19.9386 13.0641L20.2271 13.2207C20.0987 14.2379 19.7836 15.1969 19.3173 16.0624L18.9788 16.0178C18.1924 15.9143 17.6043 16.7238 17.9458 17.4398L18.099 17.7612C17.4228 18.4876 16.616 19.0909 15.7161 19.5338L15.4332 19.2653C14.8578 18.7193 13.9062 19.0285 13.7616 19.8084L13.6856 20.2184C13.1747 20.3182 12.6468 20.3705 12.1067 20.3705C11.6406 20.3705 11.1837 20.3316 10.7389 20.2568L10.6558 19.8084C10.5113 19.0285 9.55966 18.7193 8.98426 19.2653L8.6327 19.5989C7.73837 19.1791 6.93241 18.6022 6.25034 17.9038L6.47166 17.4398C6.81312 16.7238 6.225 15.9143 5.43857 16.0178L4.90967 16.0875C4.4518 15.2448 4.13762 14.3127 4.00001 13.3241L4.47884 13.0641C5.17592 12.6856 5.17592 11.685 4.47884 11.3065L4 11.0465C4.1376 10.0579 4.45177 9.12583 4.90963 8.28315L5.43857 8.35276C6.225 8.45627 6.81312 7.64679 6.47166 6.93084L6.25031 6.46673C6.93237 5.76834 7.73832 5.19148 8.63264 4.77167L8.98426 5.10533C9.55966 5.65132 10.5113 5.34213 10.6558 4.5622ZM14.6074 12.1853C14.6074 13.566 13.4881 14.6853 12.1074 14.6853C10.7267 14.6853 9.60742 13.566 9.60742 12.1853C9.60742 10.8046 10.7267 9.6853 12.1074 9.6853C13.4881 9.6853 14.6074 10.8046 14.6074 12.1853ZM16.1074 12.1853C16.1074 14.3944 14.3166 16.1853 12.1074 16.1853C9.89828 16.1853 8.10742 14.3944 8.10742 12.1853C8.10742 9.97616 9.89828 8.1853 12.1074 8.1853C14.3166 8.1853 16.1074 9.97616 16.1074 12.1853Z", - fill: e - } - ) - } - ); - case 8: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M10.3568 5.32282C10.6181 5.44717 10.7845 5.71069 10.7845 6.00001V8.18825L20.0855 9.25489C20.4641 9.29832 20.75 9.61886 20.75 10V14C20.75 14.3812 20.4641 14.7017 20.0855 14.7451L10.7845 15.8118V18C10.7845 18.2957 10.6107 18.5638 10.3408 18.6846C10.0709 18.8054 9.75525 18.7563 9.53475 18.5593L2.50027 12.2736C2.33644 12.1272 2.24504 11.9163 2.25021 11.6967C2.25537 11.477 2.35659 11.2707 2.52712 11.1322L9.5616 5.41787C9.78616 5.23546 10.0956 5.19847 10.3568 5.32282ZM4.15604 11.7415L9.28448 16.324V15.1429C9.28448 14.7617 9.57036 14.4412 9.94903 14.3977L19.25 13.3311V10.6689L9.94903 9.60227C9.57036 9.55884 9.28448 9.2383 9.28448 8.85715V7.57552L4.15604 11.7415Z", - fill: e - } - ) - } - ); - case 9: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M13 11.641L14.121 10.521C14.3095 10.3387 14.562 10.2377 14.8242 10.2398C15.0864 10.2419 15.3373 10.3469 15.5228 10.5322C15.7084 10.7175 15.8137 10.9682 15.8162 11.2304C15.8186 11.4926 15.718 11.7453 15.536 11.934L12.707 14.763C12.6143 14.8562 12.5042 14.9301 12.3829 14.9806C12.2615 15.0311 12.1314 15.057 12 15.057C11.8686 15.057 11.7385 15.0311 11.6171 14.9806C11.4958 14.9301 11.3857 14.8562 11.293 14.763L8.464 11.934C8.37116 11.841 8.29753 11.7307 8.24734 11.6092C8.19714 11.4878 8.17135 11.3577 8.17144 11.2263C8.17154 11.0949 8.19751 10.9648 8.24788 10.8435C8.29825 10.7221 8.37202 10.6118 8.465 10.519C8.55798 10.4262 8.66833 10.3525 8.78976 10.3023C8.91119 10.2521 9.04131 10.2264 9.17271 10.2264C9.3041 10.2265 9.43419 10.2525 9.55555 10.3029C9.67691 10.3532 9.78716 10.427 9.88 10.52L11 11.641V6C11 5.73478 11.1054 5.48043 11.2929 5.29289C11.4804 5.10536 11.7348 5 12 5C12.2652 5 12.5196 5.10536 12.7071 5.29289C12.8946 5.48043 13 5.73478 13 6V11.641ZM6 17H18C18.2652 17 18.5196 17.1054 18.7071 17.2929C18.8946 17.4804 19 17.7348 19 18C19 18.2652 18.8946 18.5196 18.7071 18.7071C18.5196 18.8946 18.2652 19 18 19H6C5.73478 19 5.48043 18.8946 5.29289 18.7071C5.10536 18.5196 5 18.2652 5 18C5 17.7348 5.10536 17.4804 5.29289 17.2929C5.48043 17.1054 5.73478 17 6 17Z", - fill: e - } - ) - } - ); - case 72: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M13 8.41379V14.0558C13 14.321 12.8946 14.5754 12.7071 14.7629C12.5196 14.9504 12.2652 15.0558 12 15.0558C11.7348 15.0558 11.4804 14.9504 11.2929 14.7629C11.1054 14.5754 11 14.321 11 14.0558V8.41379L9.879 9.53579C9.69123 9.72343 9.4366 9.82879 9.17115 9.8287C8.90569 9.8286 8.65114 9.72306 8.4635 9.53529C8.27586 9.34751 8.1705 9.09289 8.17059 8.82743C8.17068 8.56198 8.27623 8.30743 8.464 8.11979L11.293 5.29279C11.4805 5.10532 11.7348 5 12 5C12.2652 5 12.5195 5.10532 12.707 5.29279L15.536 8.12079C15.6289 8.21376 15.7026 8.32413 15.7529 8.44558C15.8031 8.56704 15.829 8.6972 15.8289 8.82864C15.8289 8.96008 15.8029 9.09023 15.7526 9.21164C15.7022 9.33306 15.6285 9.44338 15.5355 9.53629C15.4425 9.6292 15.3322 9.70288 15.2107 9.75314C15.0893 9.8034 14.9591 9.82924 14.8276 9.8292C14.6962 9.82915 14.5661 9.80321 14.4446 9.75287C14.3232 9.70253 14.2129 9.62876 14.12 9.53579L13 8.41379ZM6 16.9998H18C18.2652 16.9998 18.5196 17.1051 18.7071 17.2927C18.8946 17.4802 19 17.7346 19 17.9998C19 18.265 18.8946 18.5194 18.7071 18.7069C18.5196 18.8944 18.2652 18.9998 18 18.9998H6C5.73478 18.9998 5.48043 18.8944 5.29289 18.7069C5.10536 18.5194 5 18.265 5 17.9998C5 17.7346 5.10536 17.4802 5.29289 17.2927C5.48043 17.1051 5.73478 16.9998 6 16.9998Z", - fill: e - } - ) - } - ); - case 10: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M19 8H11.415L10.944 6.666C10.8748 6.47105 10.7468 6.30233 10.5778 6.18307C10.4087 6.06381 10.2069 5.99985 10 6H5C4.73478 6 4.48043 6.10536 4.29289 6.29289C4.10536 6.48043 4 6.73478 4 7V17C4 17.2652 4.10536 17.5196 4.29289 17.7071C4.48043 17.8946 4.73478 18 5 18H19C19.2652 18 19.5196 17.8946 19.7071 17.7071C19.8946 17.5196 20 17.2652 20 17V9C20 8.73478 19.8946 8.48043 19.7071 8.29289C19.5196 8.10536 19.2652 8 19 8ZM12.83 6H19C19.7956 6 20.5587 6.31607 21.1213 6.87868C21.6839 7.44129 22 8.20435 22 9V17C22 17.7956 21.6839 18.5587 21.1213 19.1213C20.5587 19.6839 19.7956 20 19 20H5C4.20435 20 3.44129 19.6839 2.87868 19.1213C2.31607 18.5587 2 17.7956 2 17V7C2 6.20435 2.31607 5.44129 2.87868 4.87868C3.44129 4.31607 4.20435 4 5 4H10C11.306 4 12.417 4.835 12.83 6Z", - fill: e - } - ) - } - ); - case 11: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - fillRule: "evenodd", - clipRule: "evenodd", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M9.28556 5.37023C10.3488 6.43342 10.7951 7.88284 10.6186 9.27166C9.22985 9.44809 7.78056 9.00173 6.71744 7.93861C5.65424 6.87541 5.20789 5.42599 5.38443 4.03718C6.77315 3.86074 8.22244 4.30711 9.28556 5.37023ZM11.0354 11.2325C9.00754 11.541 6.86488 10.9145 5.30323 9.35282C3.41944 7.46904 2.89632 4.73984 3.73388 2.38652C6.0871 1.54917 8.8161 2.07233 10.6998 3.95601C11.7096 4.96588 12.3285 6.21871 12.5563 7.52634C12.8071 6.97869 13.158 6.46561 13.6089 6.01469C15.0772 4.54646 17.2043 4.13874 19.0385 4.79153C19.6912 6.6257 19.2835 8.7528 17.8153 10.221C16.5177 11.5187 14.7053 11.9879 13.0354 11.6288V14.7957C14.3468 15.0718 15.4689 15.8619 16.1811 16.9453C16.5882 16.7796 17.0334 16.6883 17.5 16.6883C19.433 16.6883 21 18.2553 21 20.1883C21 21.1677 20.5978 22.0531 19.9495 22.6883H4.05051C3.40223 22.0531 3 21.1677 3 20.1883C3 18.2553 4.567 16.6883 6.5 16.6883C6.96659 16.6883 7.41185 16.7796 7.81889 16.9453C8.54393 15.8424 9.69363 15.0435 11.0354 14.7813V11.2325ZM14.0845 9.74548C14.9231 9.75851 15.7636 9.44426 16.4011 8.8068C17.0386 8.16935 17.3528 7.3288 17.3398 6.49023C16.5012 6.47719 15.6606 6.79144 15.0232 7.42891C14.3857 8.06636 14.0715 8.9069 14.0845 9.74548ZM19 20.1883C19 20.364 18.9703 20.5321 18.9152 20.6883H5.08484C5.02974 20.5321 5 20.364 5 20.1883C5 19.3599 5.67157 18.6883 6.5 18.6883C6.70365 18.6883 6.8931 18.7278 7.06479 18.7977L8.5872 19.4175L9.49013 18.044C10.0297 17.2232 10.9529 16.6883 12 16.6883C13.0471 16.6883 13.9703 17.2232 14.5099 18.044L15.4128 19.4175L16.9352 18.7977C17.1069 18.7278 17.2964 18.6883 17.5 18.6883C18.3284 18.6883 19 19.3599 19 20.1883Z", - fill: e - } - ) - } - ); - case 12: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M10.5 16.5C11.2879 16.5 12.0682 16.3448 12.7961 16.0433C13.5241 15.7417 14.1855 15.2998 14.7427 14.7426C15.2998 14.1855 15.7418 13.5241 16.0433 12.7961C16.3448 12.0681 16.5 11.2879 16.5 10.5C16.5 9.71207 16.3448 8.93185 16.0433 8.2039C15.7418 7.47595 15.2998 6.81451 14.7427 6.25736C14.1855 5.70021 13.5241 5.25825 12.7961 4.95672C12.0682 4.65519 11.2879 4.5 10.5 4.5C8.90872 4.5 7.38259 5.13214 6.25737 6.25736C5.13216 7.38258 4.50002 8.9087 4.50002 10.5C4.50002 12.0913 5.13216 13.6174 6.25737 14.7426C7.38259 15.8679 8.90872 16.5 10.5 16.5ZM16.82 15.406L20.4 18.986C20.4955 19.0783 20.5716 19.1887 20.6239 19.3108C20.6762 19.4328 20.7037 19.564 20.7048 19.6968C20.7058 19.8296 20.6804 19.9613 20.63 20.0841C20.5797 20.207 20.5053 20.3186 20.4114 20.4124C20.3174 20.5062 20.2057 20.5804 20.0828 20.6306C19.9599 20.6808 19.8282 20.706 19.6954 20.7047C19.5626 20.7035 19.4314 20.6758 19.3095 20.6233C19.1875 20.5708 19.0772 20.4946 18.985 20.399L15.405 16.819C13.7975 18.0668 11.7748 18.6552 9.74877 18.4642C7.72273 18.2732 5.84562 17.3173 4.49957 15.7911C3.15351 14.2648 2.4397 12.2829 2.50344 10.2489C2.56718 8.2149 3.40368 6.28162 4.84266 4.84265C6.28164 3.40367 8.21492 2.56717 10.2489 2.50343C12.283 2.43968 14.2648 3.1535 15.7911 4.49955C17.3173 5.8456 18.2732 7.72271 18.4642 9.74875C18.6552 11.7748 18.0669 13.7975 16.819 15.405L16.82 15.406ZM11.5 9.5H13.5C13.7652 9.5 14.0196 9.60536 14.2071 9.79289C14.3947 9.98043 14.5 10.2348 14.5 10.5C14.5 10.7652 14.3947 11.0196 14.2071 11.2071C14.0196 11.3946 13.7652 11.5 13.5 11.5H11.5V13.5C11.5 13.7652 11.3947 14.0196 11.2071 14.2071C11.0196 14.3946 10.7652 14.5 10.5 14.5C10.2348 14.5 9.98044 14.3946 9.79291 14.2071C9.60537 14.0196 9.50001 13.7652 9.50001 13.5V11.5H7.50001C7.2348 11.5 6.98044 11.3946 6.79291 11.2071C6.60537 11.0196 6.50001 10.7652 6.50001 10.5C6.50001 10.2348 6.60537 9.98043 6.79291 9.79289C6.98044 9.60536 7.2348 9.5 7.50001 9.5H9.50001V7.5C9.50001 7.23478 9.60537 6.98043 9.79291 6.79289C9.98044 6.60536 10.2348 6.5 10.5 6.5C10.7652 6.5 11.0196 6.60536 11.2071 6.79289C11.3947 6.98043 11.5 7.23478 11.5 7.5V9.5Z", - fill: e - } - ) - } - ); - case 13: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M6 4C6.26522 4 6.51957 4.10536 6.70711 4.29289C6.89464 4.48043 7 4.73478 7 5V19C7 19.2652 6.89464 19.5196 6.70711 19.7071C6.51957 19.8946 6.26522 20 6 20C5.73478 20 5.48043 19.8946 5.29289 19.7071C5.10536 19.5196 5 19.2652 5 19V5C5 4.73478 5.10536 4.48043 5.29289 4.29289C5.48043 4.10536 5.73478 4 6 4V4ZM18 8C18.2652 8 18.5196 8.10536 18.7071 8.29289C18.8946 8.48043 19 8.73478 19 9V19C19 19.2652 18.8946 19.5196 18.7071 19.7071C18.5196 19.8946 18.2652 20 18 20C17.7348 20 17.4804 19.8946 17.2929 19.7071C17.1054 19.5196 17 19.2652 17 19V9C17 8.73478 17.1054 8.48043 17.2929 8.29289C17.4804 8.10536 17.7348 8 18 8ZM12 12C12.2652 12 12.5196 12.1054 12.7071 12.2929C12.8946 12.4804 13 12.7348 13 13V19C13 19.2652 12.8946 19.5196 12.7071 19.7071C12.5196 19.8946 12.2652 20 12 20C11.7348 20 11.4804 19.8946 11.2929 19.7071C11.1054 19.5196 11 19.2652 11 19V13C11 12.7348 11.1054 12.4804 11.2929 12.2929C11.4804 12.1054 11.7348 12 12 12Z", - fill: e - } - ) - } - ); - case 14: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "2 2 21 20", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M14.106 11H18.059C18.605 11 19.047 11.448 19.047 12C19.047 12.552 18.605 13 18.059 13H13.118C12.9875 12.9992 12.8584 12.9727 12.7381 12.922C12.6178 12.8714 12.5086 12.7975 12.4169 12.7046C12.3252 12.6118 12.2526 12.5017 12.2034 12.3808C12.1542 12.2599 12.1292 12.1305 12.13 12V6C12.13 5.448 12.572 5 13.118 5C13.664 5 14.106 5.448 14.106 6V11ZM20.106 4.929C21.9659 6.81183 23.0061 9.35348 23 12C23 17.523 18.576 22 13.118 22V20C17.484 20 21.024 16.418 21.024 12C21.0291 9.88253 20.1965 7.84899 18.708 6.343C17.9786 5.60074 17.1086 5.01126 16.1488 4.60898C15.189 4.20669 14.1587 3.99967 13.118 4C9.57401 4 6.57401 6.36 5.57101 9.612L6.92301 8.689C7.03049 8.61562 7.1515 8.56436 7.27898 8.53821C7.40646 8.51205 7.53787 8.51153 7.66556 8.53665C7.79325 8.56178 7.91466 8.61206 8.02273 8.68457C8.1308 8.75708 8.22335 8.85037 8.29501 8.959C8.44169 9.17907 8.49591 9.44801 8.44595 9.70772C8.39599 9.96742 8.24587 10.1971 8.02801 10.347L4.75101 12.584C4.64354 12.6574 4.52253 12.7086 4.39505 12.7348C4.26757 12.7609 4.13616 12.7615 4.00847 12.7363C3.88078 12.7112 3.75937 12.6609 3.6513 12.5884C3.54323 12.5159 3.45068 12.4226 3.37901 12.314L1.17001 8.998C1.02302 8.77785 0.968628 8.50868 1.0186 8.24873C1.06857 7.98878 1.21888 7.75896 1.43701 7.609C1.54449 7.53562 1.6655 7.48436 1.79298 7.45821C1.92046 7.43205 2.05187 7.43153 2.17956 7.45665C2.30725 7.48178 2.42866 7.53206 2.53673 7.60457C2.6448 7.67708 2.73735 7.77037 2.80901 7.879L3.64801 9.138C4.86301 5.01 8.64301 2 13.118 2C15.847 2 18.318 3.12 20.106 4.929Z", - fill: e - } - ) - } - ); - case 15: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M7 11H11V7H7V11ZM7 13V17H11V13H7ZM17 11V7H13V11H17ZM17 13H13V17H17V13ZM7 5H17C18.1046 5 19 5.89543 19 7V17C19 18.1046 18.1046 19 17 19H7C5.89543 19 5 18.1046 5 17V7C5 5.89543 5.89543 5 7 5Z", - fill: e - } - ) - } - ); - case 16: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M9 7H18C18.2652 7 18.5196 7.10536 18.7071 7.29289C18.8946 7.48043 19 7.73478 19 8C19 8.26522 18.8946 8.51957 18.7071 8.70711C18.5196 8.89464 18.2652 9 18 9H9C8.73478 9 8.48043 8.89464 8.29289 8.70711C8.10536 8.51957 8 8.26522 8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7V7ZM9 15H18C18.2652 15 18.5196 15.1054 18.7071 15.2929C18.8946 15.4804 19 15.7348 19 16C19 16.2652 18.8946 16.5196 18.7071 16.7071C18.5196 16.8946 18.2652 17 18 17H9C8.73478 17 8.48043 16.8946 8.29289 16.7071C8.10536 16.5196 8 16.2652 8 16C8 15.7348 8.10536 15.4804 8.29289 15.2929C8.48043 15.1054 8.73478 15 9 15ZM9 11H18C18.2652 11 18.5196 11.1054 18.7071 11.2929C18.8946 11.4804 19 11.7348 19 12C19 12.2652 18.8946 12.5196 18.7071 12.7071C18.5196 12.8946 18.2652 13 18 13H9C8.73478 13 8.48043 12.8946 8.29289 12.7071C8.10536 12.5196 8 12.2652 8 12C8 11.7348 8.10536 11.4804 8.29289 11.2929C8.48043 11.1054 8.73478 11 9 11ZM6 7C6.26522 7 6.51957 7.10536 6.70711 7.29289C6.89464 7.48043 7 7.73478 7 8C7 8.26522 6.89464 8.51957 6.70711 8.70711C6.51957 8.89464 6.26522 9 6 9C5.73478 9 5.48043 8.89464 5.29289 8.70711C5.10536 8.51957 5 8.26522 5 8C5 7.73478 5.10536 7.48043 5.29289 7.29289C5.48043 7.10536 5.73478 7 6 7V7ZM6 15C6.26522 15 6.51957 15.1054 6.70711 15.2929C6.89464 15.4804 7 15.7348 7 16C7 16.2652 6.89464 16.5196 6.70711 16.7071C6.51957 16.8946 6.26522 17 6 17C5.73478 17 5.48043 16.8946 5.29289 16.7071C5.10536 16.5196 5 16.2652 5 16C5 15.7348 5.10536 15.4804 5.29289 15.2929C5.48043 15.1054 5.73478 15 6 15ZM6 11C6.26522 11 6.51957 11.1054 6.70711 11.2929C6.89464 11.4804 7 11.7348 7 12C7 12.2652 6.89464 12.5196 6.70711 12.7071C6.51957 12.8946 6.26522 13 6 13C5.73478 13 5.48043 12.8946 5.29289 12.7071C5.10536 12.5196 5 12.2652 5 12C5 11.7348 5.10536 11.4804 5.29289 11.2929C5.48043 11.1054 5.73478 11 6 11Z", - fill: e - } - ) - } - ); - case 17: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M22 12C22 13.9778 21.4135 15.9112 20.3147 17.5557C19.2159 19.2002 17.6541 20.4819 15.8268 21.2388C13.9996 21.9957 11.9889 22.1937 10.0491 21.8079C8.10929 21.422 6.32746 20.4696 4.92894 19.0711C3.53041 17.6725 2.578 15.8907 2.19215 13.9509C1.8063 12.0111 2.00433 10.0004 2.76121 8.17317C3.51809 6.3459 4.79981 4.78412 6.4443 3.6853C8.08879 2.58649 10.0222 2 12 2C12.5523 2 13 2.44772 13 3C13 3.55228 12.5523 4 12 4C11.984 4 11.9682 3.99963 11.9524 3.99889C10.3865 4.0082 8.85734 4.47683 7.55474 5.3472C6.23895 6.22639 5.2134 7.47601 4.60781 8.93805C4.00221 10.4001 3.84376 12.0089 4.15249 13.561C4.46122 15.1131 5.22327 16.5387 6.34226 17.6577C7.46126 18.7767 8.88695 19.5388 10.439 19.8475C11.9911 20.1562 13.5999 19.9978 15.062 19.3922C16.524 18.7866 17.7736 17.7611 18.6528 16.4453C19.5232 15.1427 19.9918 13.6136 20.0011 12.0477C20.0004 12.0319 20 12.016 20 12C20 11.4477 20.4477 11 21 11C21.5523 11 22 11.4477 22 12Z", - fill: e - } - ) - } - ); - case 18: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M17.57 7.78723C16.817 6.67592 15.7692 5.78687 14.5354 5.22578C12.9913 4.52355 11.2514 4.37845 9.61232 4.8152C7.97321 5.25195 6.53625 6.24353 5.54627 7.62098C4.5563 8.99843 4.07456 10.6765 4.18314 12.3693C4.29173 14.0622 4.98391 15.665 6.14176 16.9046C7.29961 18.1443 8.85148 18.9442 10.533 19.1679C12.2144 19.3917 13.9215 19.0255 15.3632 18.1317C16.7767 17.2555 17.8494 15.9254 18.4069 14.3606C18.5271 13.9222 18.9285 13.6 19.4051 13.6C19.9767 13.6 20.4401 14.0634 20.4401 14.635C20.4401 14.7388 20.4248 14.8391 20.3964 14.9337L20.397 14.9339L20.3871 14.9628L20.3797 14.9843C20.1749 15.5739 19.9132 16.1381 19.6002 16.6696C18.8321 17.9739 17.7553 19.082 16.4528 19.8894C14.6044 21.0353 12.4159 21.5047 10.2602 21.2179C8.10443 20.931 6.11485 19.9055 4.63043 18.3162C3.14601 16.7269 2.25859 14.672 2.11938 12.5017C2.04583 11.355 2.18356 10.2136 2.51704 9.13151C2.52831 9.08419 2.54302 9.03767 2.56112 8.99235C2.85874 8.07735 3.2972 7.20687 3.86699 6.41407C5.13619 4.64811 6.97845 3.37686 9.07987 2.81692C10.4722 2.44592 11.9213 2.4024 13.3165 2.67716C14.0806 2.82664 14.8266 3.07134 15.5364 3.40811C17.0759 4.13852 18.3875 5.27446 19.3301 6.69398L19.7501 5.31698C19.7886 5.19137 19.8513 5.07456 19.9349 4.97321C20.0184 4.87186 20.1211 4.78796 20.2371 4.7263C20.3531 4.66465 20.4801 4.62644 20.6108 4.61385C20.7416 4.60127 20.8735 4.61457 20.9991 4.65298C21.1247 4.69139 21.2416 4.75417 21.3429 4.83772C21.4443 4.92128 21.5282 5.02398 21.5898 5.13996C21.6515 5.25594 21.6897 5.38293 21.7023 5.51368C21.7148 5.64443 21.7016 5.77637 21.6631 5.90198L20.4931 9.72698C20.4156 9.98047 20.2406 10.1928 20.0066 10.3173C19.7726 10.4418 19.4987 10.4683 19.2451 10.391L15.4201 9.22098C15.2919 9.18488 15.1722 9.12353 15.068 9.04052C14.9638 8.95751 14.8772 8.85452 14.8134 8.73759C14.7496 8.62067 14.7097 8.49216 14.6962 8.35963C14.6827 8.2271 14.6959 8.0932 14.7348 7.96581C14.7738 7.83842 14.8379 7.72011 14.9232 7.61781C15.0085 7.51551 15.1135 7.4313 15.2318 7.37011C15.3501 7.30892 15.4795 7.27199 15.6123 7.2615C15.7451 7.251 15.8787 7.26714 16.0051 7.30898L17.57 7.78723Z", - fill: e - } - ) - } - ); - case 19: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M9 17H5C4.46957 17 3.96086 16.7893 3.58579 16.4142C3.21071 16.0391 3 15.5304 3 15V4C3 3.46957 3.21071 2.96086 3.58579 2.58579C3.96086 2.21071 4.46957 2 5 2H13C13.5304 2 14.0391 2.21071 14.4142 2.58579C14.7893 2.96086 15 3.46957 15 4V7H18L21 10V20C21 20.5304 20.7893 21.0391 20.4142 21.4142C20.0391 21.7893 19.5304 22 19 22H11C10.4696 22 9.96086 21.7893 9.58579 21.4142C9.21071 21.0391 9 20.5304 9 20V17ZM9 15V9C9 8.46957 9.21071 7.96086 9.58579 7.58579C9.96086 7.21071 10.4696 7 11 7H13V4H5V15H9ZM17.172 9H11V20H19V10.828L17.172 9Z", - fill: e - } - ) - } - ); - case 20: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M18.833 7L18.105 20.11C18.0769 20.6206 17.8542 21.1011 17.4828 21.4526C17.1114 21.8041 16.6194 22 16.108 22H7.892C7.3806 22 6.88863 21.8041 6.51721 21.4526C6.14579 21.1011 5.92313 20.6206 5.895 20.11L5.167 7H5C4.73478 7 4.48043 6.89464 4.29289 6.70711C4.10536 6.51957 4 6.26522 4 6V3C4 2.73478 4.10536 2.48043 4.29289 2.29289C4.48043 2.10536 4.73478 2 5 2H19C19.2652 2 19.5196 2.10536 19.7071 2.29289C19.8946 2.48043 20 2.73478 20 3V6C20 6.26522 19.8946 6.51957 19.7071 6.70711C19.5196 6.89464 19.2652 7 19 7H18.833ZM16.83 7H7.17L7.892 20H16.108L16.83 7ZM6 4V5H18V4H6ZM10 9C10.2652 9 10.5196 9.10536 10.7071 9.29289C10.8946 9.48043 11 9.73478 11 10V17C11 17.2652 10.8946 17.5196 10.7071 17.7071C10.5196 17.8946 10.2652 18 10 18C9.73478 18 9.48043 17.8946 9.29289 17.7071C9.10536 17.5196 9 17.2652 9 17V10C9 9.73478 9.10536 9.48043 9.29289 9.29289C9.48043 9.10536 9.73478 9 10 9ZM14 9C14.2652 9 14.5196 9.10536 14.7071 9.29289C14.8946 9.48043 15 9.73478 15 10V17C15 17.2652 14.8946 17.5196 14.7071 17.7071C14.5196 17.8946 14.2652 18 14 18C13.7348 18 13.4804 17.8946 13.2929 17.7071C13.1054 17.5196 13 17.2652 13 17V10C13 9.73478 13.1054 9.48043 13.2929 9.29289C13.4804 9.10536 13.7348 9 14 9Z", - fill: e - } - ) - } - ); - case 21: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M14.738 7.972L5.7 17.01L5.109 19.026L7.084 18.455L16.152 9.387L14.738 7.972ZM16.28 6.43L17.694 7.844L19.012 6.526C19.1057 6.43224 19.1584 6.30508 19.1584 6.1725C19.1584 6.03992 19.1057 5.91276 19.012 5.819L18.304 5.112C18.2102 5.01826 18.0831 4.96561 17.9505 4.96561C17.8179 4.96561 17.6908 5.01826 17.597 5.112L16.281 6.43H16.28ZM19.719 3.698L20.426 4.405C20.8947 4.87382 21.158 5.50959 21.158 6.1725C21.158 6.83541 20.8947 7.47118 20.426 7.94L8.134 20.233L3.914 21.453C3.74199 21.5026 3.55982 21.5051 3.38651 21.4603C3.2132 21.4154 3.0551 21.3249 2.92872 21.1981C2.80233 21.0713 2.71231 20.9129 2.66803 20.7395C2.62375 20.566 2.62685 20.3838 2.677 20.212L3.925 15.957L16.185 3.697C16.6538 3.22832 17.2896 2.96503 17.9525 2.96503C18.6154 2.96503 19.2512 3.22832 19.72 3.697L19.719 3.698Z", - fill: e - } - ) - } - ); - case 22: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M8 6C7.46957 6 6.96086 6.21071 6.58579 6.58579C6.21071 6.96086 6 7.46957 6 8V16C6 16.5304 6.21071 17.0391 6.58579 17.4142C6.96086 17.7893 7.46957 18 8 18H16C16.5304 18 17.0391 17.7893 17.4142 17.4142C17.7893 17.0391 18 16.5304 18 16V8C18 7.46957 17.7893 6.96086 17.4142 6.58579C17.0391 6.21071 16.5304 6 16 6H8ZM8 4H16C17.0609 4 18.0783 4.42143 18.8284 5.17157C19.5786 5.92172 20 6.93913 20 8V16C20 17.0609 19.5786 18.0783 18.8284 18.8284C18.0783 19.5786 17.0609 20 16 20H8C6.93913 20 5.92172 19.5786 5.17157 18.8284C4.42143 18.0783 4 17.0609 4 16V8C4 6.93913 4.42143 5.92172 5.17157 5.17157C5.92172 4.42143 6.93913 4 8 4Z", - fill: e - } - ) - } - ); - case 23: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M17.82 12.523C17.8902 12.4128 17.9375 12.2896 17.9592 12.1608C17.9809 12.032 17.9766 11.9001 17.9463 11.773C17.9161 11.6458 17.8607 11.5261 17.7833 11.4208C17.706 11.3155 17.6083 11.2268 17.496 11.16L7.574 5.128C7.41265 5.03033 7.22761 4.9788 7.039 4.979C6.479 4.979 6.026 5.422 6.026 5.969V18.03C6.026 18.215 6.079 18.396 6.179 18.553C6.475 19.017 7.099 19.159 7.574 18.87L17.496 12.839C17.627 12.759 17.739 12.65 17.821 12.522L17.82 12.523ZM18.566 14.52L8.645 20.551C7.22 21.418 5.345 20.991 4.459 19.6C4.15945 19.1311 4.00019 18.5864 4 18.03V5.97C4 4.329 5.36 3 7.04 3C7.607 3 8.163 3.155 8.645 3.448L18.566 9.48C19.991 10.346 20.428 12.176 19.541 13.568C19.295 13.954 18.961 14.28 18.566 14.52Z", - fill: e - } - ) - } - ); - case 24: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M18 7.8H6C5.88954 7.8 5.8 7.88954 5.8 8V10C5.8 10.1105 5.88954 10.2 6 10.2H18C18.1105 10.2 18.2 10.1105 18.2 10V8C18.2 7.88954 18.1105 7.8 18 7.8ZM6 6C4.89543 6 4 6.89543 4 8V10C4 11.1046 4.89543 12 6 12H18C19.1046 12 20 11.1046 20 10V8C20 6.89543 19.1046 6 18 6H6Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M18 14.8H6C5.88954 14.8 5.8 14.8895 5.8 15V17C5.8 17.1105 5.88954 17.2 6 17.2H18C18.1105 17.2 18.2 17.1105 18.2 17V15C18.2 14.8895 18.1105 14.8 18 14.8ZM6 13C4.89543 13 4 13.8954 4 15V17C4 18.1046 4.89543 19 6 19H18C19.1046 19 20 18.1046 20 17V15C20 13.8954 19.1046 13 18 13H6Z", - fill: e - } - ) - ] - } - ); - case 25: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M6 7H18C18.2652 7 18.5196 7.10536 18.7071 7.29289C18.8946 7.48043 19 7.73478 19 8C19 8.26522 18.8946 8.51957 18.7071 8.70711C18.5196 8.89464 18.2652 9 18 9H6C5.73478 9 5.48043 8.89464 5.29289 8.70711C5.10536 8.51957 5 8.26522 5 8C5 7.73478 5.10536 7.48043 5.29289 7.29289C5.48043 7.10536 5.73478 7 6 7ZM6 15H18C18.2652 15 18.5196 15.1054 18.7071 15.2929C18.8946 15.4804 19 15.7348 19 16C19 16.2652 18.8946 16.5196 18.7071 16.7071C18.5196 16.8946 18.2652 17 18 17H6C5.73478 17 5.48043 16.8946 5.29289 16.7071C5.10536 16.5196 5 16.2652 5 16C5 15.7348 5.10536 15.4804 5.29289 15.2929C5.48043 15.1054 5.73478 15 6 15ZM6 11H18C18.2652 11 18.5196 11.1054 18.7071 11.2929C18.8946 11.4804 19 11.7348 19 12C19 12.2652 18.8946 12.5196 18.7071 12.7071C18.5196 12.8946 18.2652 13 18 13H6C5.73478 13 5.48043 12.8946 5.29289 12.7071C5.10536 12.5196 5 12.2652 5 12C5 11.7348 5.10536 11.4804 5.29289 11.2929C5.48043 11.1054 5.73478 11 6 11Z", - fill: e - } - ) - } - ); - case 26: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.0709 13.314L17.0209 8.364C17.1131 8.26849 17.2235 8.19231 17.3455 8.1399C17.4675 8.08749 17.5987 8.05991 17.7315 8.05875C17.8643 8.0576 17.996 8.0829 18.1189 8.13318C18.2417 8.18346 18.3534 8.25772 18.4473 8.35161C18.5412 8.4455 18.6154 8.55715 18.6657 8.68005C18.716 8.80295 18.7413 8.93463 18.7402 9.06741C18.739 9.20018 18.7114 9.3314 18.659 9.45341C18.6066 9.57541 18.5304 9.68576 18.4349 9.778L12.7779 15.435C12.5904 15.6225 12.3361 15.7278 12.0709 15.7278C11.8057 15.7278 11.5514 15.6225 11.3639 15.435L5.7069 9.778C5.61139 9.68576 5.53521 9.57541 5.4828 9.45341C5.43039 9.3314 5.4028 9.20018 5.40165 9.06741C5.4005 8.93463 5.4258 8.80295 5.47608 8.68005C5.52636 8.55715 5.60061 8.4455 5.6945 8.35161C5.7884 8.25772 5.90005 8.18346 6.02295 8.13318C6.14584 8.0829 6.27752 8.0576 6.4103 8.05875C6.54308 8.05991 6.6743 8.08749 6.7963 8.1399C6.91831 8.19231 7.02865 8.26849 7.1209 8.364L12.0709 13.314Z", - fill: e - } - ) - } - ); - case 27: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.0709 10.4727L7.12095 15.4227C7.0287 15.5182 6.91835 15.5944 6.79635 15.6468C6.67435 15.6992 6.54313 15.7268 6.41035 15.728C6.27757 15.7291 6.14589 15.7038 6.02299 15.6536C5.9001 15.6033 5.78844 15.529 5.69455 15.4351C5.60066 15.3412 5.5264 15.2296 5.47612 15.1067C5.42584 14.9838 5.40054 14.8521 5.4017 14.7193C5.40285 14.5866 5.43044 14.4553 5.48284 14.3333C5.53525 14.2113 5.61144 14.101 5.70695 14.0087L11.3639 8.35174C11.5515 8.16427 11.8058 8.05895 12.0709 8.05895C12.3361 8.05895 12.5904 8.16427 12.7779 8.35174L18.4349 14.0087C18.5305 14.101 18.6066 14.2113 18.659 14.3333C18.7115 14.4553 18.739 14.5866 18.7402 14.7193C18.7414 14.8521 18.716 14.9838 18.6658 15.1067C18.6155 15.2296 18.5412 15.3412 18.4473 15.4351C18.3534 15.529 18.2418 15.6033 18.1189 15.6536C17.996 15.7038 17.8643 15.7291 17.7315 15.728C17.5988 15.7268 17.4675 15.6992 17.3455 15.6468C17.2235 15.5944 17.1132 15.5182 17.0209 15.4227L12.0709 10.4727Z", - fill: e - } - ) - } - ); - case 73: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.3556 18.6408C12.1599 18.8385 11.8405 18.8385 11.6449 18.6408L7.64707 14.6016C7.33459 14.2858 7.55823 13.7498 8.00244 13.7498L15.998 13.7498C16.4422 13.7498 16.6659 14.2858 16.3534 14.6016L12.3556 18.6408Z", - fill: e - } - ) - } - ); - case 28: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M10.757 12L15.707 16.95C15.8026 17.0422 15.8787 17.1526 15.9311 17.2746C15.9836 17.3966 16.0111 17.5278 16.0123 17.6606C16.0135 17.7934 15.9882 17.9251 15.9379 18.048C15.8876 18.1708 15.8133 18.2825 15.7194 18.3764C15.6256 18.4703 15.5139 18.5445 15.391 18.5948C15.2681 18.6451 15.1364 18.6704 15.0036 18.6692C14.8709 18.6681 14.7396 18.6405 14.6176 18.5881C14.4956 18.5357 14.3853 18.4595 14.293 18.364L8.63605 12.707C8.44858 12.5195 8.34326 12.2652 8.34326 12C8.34326 11.7348 8.44858 11.4805 8.63605 11.293L14.293 5.636C14.4817 5.45384 14.7343 5.35305 14.9964 5.35532C15.2586 5.3576 15.5095 5.46277 15.6949 5.64818C15.8803 5.83359 15.9854 6.0844 15.9877 6.3466C15.99 6.60879 15.8892 6.8614 15.707 7.05L10.757 12Z", - fill: e - } - ) - } - ); - case 29: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M13.314 12.071L8.36396 7.121C8.18181 6.93239 8.08101 6.67979 8.08329 6.4176C8.08557 6.1554 8.19074 5.90459 8.37615 5.71918C8.56155 5.53377 8.81237 5.4286 9.07456 5.42632C9.33676 5.42404 9.58936 5.52484 9.77796 5.707L15.435 11.364C15.6224 11.5515 15.7278 11.8058 15.7278 12.071C15.7278 12.3362 15.6224 12.5905 15.435 12.778L9.77796 18.435C9.58936 18.6172 9.33676 18.7179 9.07456 18.7157C8.81237 18.7134 8.56155 18.6082 8.37615 18.4228C8.19074 18.2374 8.08557 17.9866 8.08329 17.7244C8.08101 17.4622 8.18181 17.2096 8.36396 17.021L13.314 12.071Z", - fill: e - } - ) - } - ); - case 74: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 14 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M6.64463 5.35921C6.8403 5.16151 7.1597 5.16151 7.35537 5.35921L11.3532 9.39843C11.6656 9.71415 11.442 10.2502 10.9978 10.2502H3.00221C2.558 10.2502 2.33435 9.71415 2.64684 9.39843L6.64463 5.35921Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M7.35537 18.6408C7.1597 18.8385 6.8403 18.8385 6.64463 18.6408L2.64684 14.6016C2.33436 14.2858 2.558 13.7498 3.00221 13.7498L10.9978 13.7498C11.442 13.7498 11.6656 14.2858 11.3532 14.6016L7.35537 18.6408Z", - fill: e - } - ) - ] - } - ); - case 31: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M10.486 16.7299C10.3547 16.7302 10.2247 16.7045 10.1034 16.6544C9.98204 16.6043 9.87181 16.5307 9.77899 16.4379L5.53699 12.1949C5.44141 12.1027 5.36516 11.9924 5.31266 11.8705C5.26017 11.7485 5.23249 11.6173 5.23125 11.4845C5.23 11.3517 5.25521 11.22 5.3054 11.0971C5.3556 10.9742 5.42977 10.8625 5.52359 10.7685C5.61742 10.6746 5.72902 10.6002 5.85188 10.5499C5.97474 10.4995 6.1064 10.4741 6.23918 10.4752C6.37196 10.4762 6.50319 10.5037 6.62523 10.556C6.74727 10.6083 6.85767 10.6845 6.94999 10.7799L10.485 14.3149L16.85 7.95189C17.0375 7.76425 17.2919 7.65879 17.5571 7.65869C17.8224 7.6586 18.0768 7.76389 18.2645 7.95139C18.4521 8.1389 18.5576 8.39327 18.5577 8.65854C18.5578 8.92381 18.4525 9.17825 18.265 9.36589L11.193 16.4379C11.1002 16.5307 10.9899 16.6043 10.8686 16.6544C10.7473 16.7045 10.6173 16.7302 10.486 16.7299Z", - fill: e - } - ) - } - ); - case 32: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M18.7071 8.79289C19.0976 9.18342 19.0976 9.81658 18.7071 10.2071L11.2071 17.7071C10.8166 18.0976 10.1834 18.0976 9.79289 17.7071L5.29289 13.2071C4.90237 12.8166 4.90237 12.1834 5.29289 11.7929C5.68342 11.4024 6.31658 11.4024 6.70711 11.7929L10.5 15.5858L17.2929 8.79289C17.6834 8.40237 18.3166 8.40237 18.7071 8.79289Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M16.2071 5.29289C16.5976 5.68342 16.5976 6.31658 16.2071 6.70711L11.2071 11.7071C10.8166 12.0976 10.1834 12.0976 9.79289 11.7071L7.29289 9.20711C6.90237 8.81658 6.90237 8.18342 7.29289 7.79289C7.68342 7.40237 8.31658 7.40237 8.70711 7.79289L10.5 9.58579L14.7929 5.29289C15.1834 4.90237 15.8166 4.90237 16.2071 5.29289Z", - fill: e - } - ) - ] - } - ); - case 33: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M5.08579 10.9142C4.71071 10.5391 4.5 10.0304 4.5 9.5L4.5 8C4.5 7.46957 4.71071 6.96086 5.08579 6.58579C5.46086 6.21071 5.96957 6 6.5 6L18.5 6C19.0304 6 19.5391 6.21071 19.9142 6.58579C20.2893 6.96086 20.5 7.46957 20.5 8V9.5C20.5 10.0304 20.2893 10.5391 19.9142 10.9142C19.5391 11.2893 19.0304 11.5 18.5 11.5H18C17.9999 11.5 17.9999 11.5 17.9998 11.5C17.4476 11.5001 17 11.9478 17 12.5C17 13.0518 17.447 13.4993 17.9986 13.5C17.9991 13.5 17.9995 13.5 18 13.5L18.5 13.5C19.5609 13.5 20.5783 13.0786 21.3284 12.3284C22.0786 11.5783 22.5 10.5609 22.5 9.5V8C22.5 6.93913 22.0786 5.92172 21.3284 5.17157C20.5783 4.42143 19.5609 4 18.5 4H6.5C5.43913 4 4.42172 4.42143 3.67157 5.17157C2.92143 5.92172 2.5 6.93913 2.5 8V9.5C2.5 10.5609 2.92143 11.5783 3.67157 12.3284C4.42172 13.0786 5.43913 13.5 6.5 13.5H7C7.0001 13.5 7.00019 13.5 7.00029 13.5C7.55244 13.4998 8 13.0522 8 12.5C8 11.948 7.55281 11.5005 7.00097 11.5C7.00065 11.5 7.00032 11.5 7 11.5L6.5 11.5C5.96957 11.5 5.46086 11.2893 5.08579 10.9142Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M13.5 13.914L13.5 19.5C13.5 19.7652 13.3946 20.0196 13.2071 20.2071C13.0196 20.3946 12.7652 20.5 12.5 20.5C12.2348 20.5 11.9804 20.3946 11.7929 20.2071C11.6054 20.0196 11.5 19.7652 11.5 19.5L11.5 13.914L8.964 16.45C8.7754 16.6322 8.52279 16.733 8.2606 16.7307C7.9984 16.7284 7.74759 16.6232 7.56218 16.4378C7.37677 16.2524 7.2716 16.0016 7.26932 15.7394C7.26705 15.4772 7.36784 15.2246 7.55 15.036L11.793 10.793C11.8857 10.6998 11.9958 10.6259 12.1171 10.5754C12.2385 10.5249 12.3686 10.499 12.5 10.499C12.6314 10.499 12.7615 10.5249 12.8829 10.5754C13.0042 10.6259 13.1143 10.6998 13.207 10.793L17.45 15.036C17.5455 15.1282 17.6217 15.2386 17.6741 15.3606C17.7265 15.4826 17.7541 15.6138 17.7552 15.7466C17.7564 15.8794 17.7311 16.0111 17.6808 16.134C17.6305 16.2568 17.5563 16.3685 17.4624 16.4624C17.3685 16.5563 17.2568 16.6305 17.134 16.6808C17.0111 16.7311 16.8794 16.7564 16.7466 16.7552C16.6138 16.7541 16.4826 16.7265 16.3606 16.6741C16.2386 16.6217 16.1282 16.5455 16.036 16.45L13.5 13.914Z", - fill: e - } - ) - ] - } - ); - case 34: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M10.2387 4.64645L4.64645 10.2387C4.45118 10.4339 4.45118 10.7505 4.64645 10.9458L6.99997 13.2993C7.19523 13.4946 7.51181 13.4946 7.70707 13.2993L13.2993 7.70708C13.4946 7.51181 13.4946 7.19523 13.2993 6.99997L10.9458 4.64645C10.7505 4.45118 10.4339 4.45119 10.2387 4.64645ZM3.58579 9.17803C2.80474 9.95907 2.80474 11.2254 3.58579 12.0065L5.93931 14.36C6.72036 15.141 7.98669 15.141 8.76773 14.36L9.94462 13.1831L17.5987 20.8372C18.3798 21.6183 19.6461 21.6183 20.4272 20.8372L20.8374 20.4269C21.6185 19.6459 21.6185 18.3795 20.8374 17.5985L13.1833 9.94438L14.36 8.76774C15.141 7.98669 15.141 6.72036 14.36 5.93931L12.0065 3.58579C11.2254 2.80474 9.95908 2.80474 9.17803 3.58579L8.00383 4.75999L7.91216 4.66832C7.89708 4.65324 7.88164 4.63874 7.86587 4.62483C7.4731 4.27838 6.87339 4.29287 6.49795 4.66832L4.67344 6.49282C4.298 6.86827 4.2835 7.46798 4.62995 7.86074C4.64387 7.87652 4.65837 7.89196 4.67344 7.90704L4.76511 7.9987L3.58579 9.17803ZM11.0745 12.1916L18.6594 19.7765C18.8547 19.9718 19.1712 19.9718 19.3665 19.7765L19.7768 19.3663C19.972 19.171 19.972 18.8544 19.7768 18.6591L12.1918 11.0742L11.0745 12.1916Z", - fill: e - } - ) - } - ); - case 35: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M4.03601 10.3998L6.86401 13.2278L13.228 6.86376L10.399 4.03576L4.03601 10.3988V10.3998ZM16.763 16.0558L11.813 11.1058L11.107 11.8138L16.057 16.7638L16.763 16.0558ZM18.178 17.4708L17.471 18.1778L19.238 19.9448C19.3323 20.0358 19.4586 20.0862 19.5897 20.0851C19.7208 20.084 19.8462 20.0314 19.9389 19.9387C20.0316 19.846 20.0842 19.7206 20.0853 19.5895C20.0865 19.4584 20.0361 19.3321 19.945 19.2378L18.178 17.4708ZM7.51001 4.09576L8.98501 2.61976C9.17074 2.43396 9.39125 2.28657 9.63396 2.18601C9.87666 2.08545 10.1368 2.03369 10.3995 2.03369C10.6622 2.03369 10.9224 2.08545 11.1651 2.18601C11.4078 2.28657 11.6283 2.43396 11.814 2.61976L14.642 5.44876C15.017 5.82382 15.2276 6.33244 15.2276 6.86276C15.2276 7.39309 15.017 7.90171 14.642 8.27676L13.228 9.69076L21.36 17.8228C21.5922 18.0549 21.7764 18.3306 21.902 18.6339C22.0277 18.9373 22.0923 19.2624 22.0923 19.5908C22.0923 19.9191 22.0277 20.2442 21.902 20.5476C21.7764 20.851 21.5922 21.1266 21.36 21.3588C21.1278 21.5909 20.8522 21.7751 20.5488 21.9008C20.2455 22.0264 19.9204 22.0911 19.592 22.0911C19.2637 22.0911 18.9385 22.0264 18.6352 21.9008C18.3318 21.7751 18.0562 21.5909 17.824 21.3588L9.69201 13.2268L8.27801 14.6408C7.90295 15.0157 7.39434 15.2263 6.86401 15.2263C6.33368 15.2263 5.82506 15.0157 5.45001 14.6408L2.62001 11.8138C2.43421 11.628 2.28681 11.4075 2.18625 11.1648C2.08569 10.9221 2.03394 10.662 2.03394 10.3993C2.03394 10.1366 2.08569 9.87641 2.18625 9.63371C2.28681 9.39101 2.43421 9.17049 2.62001 8.98476L4.09501 7.51076C3.96114 7.23074 3.91743 6.91608 3.9699 6.61017C4.02238 6.30426 4.16846 6.02216 4.38801 5.80276L5.80301 4.38976C6.02241 4.17022 6.3045 4.02414 6.61042 3.97166C6.91633 3.91918 7.23098 3.96289 7.51101 4.09676L7.51001 4.09576Z", - fill: e - } - ) - } - ); - case 36: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M9.28556 5.37023C10.3488 6.43342 10.7951 7.88284 10.6186 9.27166C9.22985 9.44809 7.78056 9.00173 6.71744 7.93861C5.65424 6.87541 5.20789 5.42599 5.38443 4.03718C6.77315 3.86074 8.22244 4.30711 9.28556 5.37023ZM11.0354 11.2325C9.00754 11.541 6.86488 10.9145 5.30323 9.35282C3.41944 7.46904 2.89632 4.73984 3.73388 2.38652C6.0871 1.54917 8.8161 2.07233 10.6998 3.95601C11.7096 4.96588 12.3285 6.21871 12.5563 7.52634C12.8071 6.97869 13.158 6.46561 13.6089 6.01469C15.0772 4.54646 17.2043 4.13874 19.0385 4.79153C19.6912 6.6257 19.2835 8.7528 17.8153 10.221C16.5177 11.5187 14.7053 11.9879 13.0354 11.6288V14.7957C14.3468 15.0718 15.4689 15.8619 16.1811 16.9453C16.5882 16.7796 17.0334 16.6883 17.5 16.6883C19.433 16.6883 21 18.2553 21 20.1883C21 21.1677 20.5978 22.0531 19.9495 22.6883H4.05051C3.40223 22.0531 3 21.1677 3 20.1883C3 18.2553 4.567 16.6883 6.5 16.6883C6.96659 16.6883 7.41185 16.7796 7.81889 16.9453C8.54393 15.8424 9.69363 15.0435 11.0354 14.7813V11.2325ZM14.0845 9.74548C14.9231 9.75851 15.7636 9.44426 16.4011 8.8068C17.0386 8.16935 17.3528 7.3288 17.3398 6.49023C16.5012 6.47719 15.6606 6.79144 15.0232 7.42891C14.3857 8.06636 14.0715 8.9069 14.0845 9.74548ZM19 20.1883C19 20.364 18.9703 20.5321 18.9152 20.6883H5.08484C5.02974 20.5321 5 20.364 5 20.1883C5 19.3599 5.67157 18.6883 6.5 18.6883C6.70365 18.6883 6.8931 18.7278 7.06479 18.7977L8.5872 19.4175L9.49013 18.044C10.0297 17.2232 10.9529 16.6883 12 16.6883C13.0471 16.6883 13.9703 17.2232 14.5099 18.044L15.4128 19.4175L16.9352 18.7977C17.1069 18.7278 17.2964 18.6883 17.5 18.6883C18.3284 18.6883 19 19.3599 19 20.1883Z", - fill: e - } - ) - } - ); - case 37: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M17 5C18.1046 5 19 5.89543 19 7V8C19 8.55228 18.5523 9 18 9C17.4477 9 17 8.55228 17 8V7H11V17H17V16C17 15.4477 17.4477 15 18 15C18.5523 15 19 15.4477 19 16V17C19 18.1046 18.1046 19 17 19H7C5.89543 19 5 18.1046 5 17V7C5 5.89543 5.89543 5 7 5H17ZM9 15H7V17H9V15ZM15 9C15.5523 9 16 9.44772 16 10V11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H16V14C16 14.5523 15.5523 15 15 15C14.4477 15 14 14.5523 14 14V13H13C12.4477 13 12 12.5523 12 12C12 11.4477 12.4477 11 13 11H14V10C14 9.44772 14.4477 9 15 9ZM9 11H7V13H9V11ZM9 7H7V9H9V7Z", - fill: e - } - ) - } - ); - case 38: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M6 4C6.26522 4 6.51957 4.10536 6.70711 4.29289C6.89464 4.48043 7 4.73478 7 5V19C7 19.2652 6.89464 19.5196 6.70711 19.7071C6.51957 19.8946 6.26522 20 6 20C5.73478 20 5.48043 19.8946 5.29289 19.7071C5.10536 19.5196 5 19.2652 5 19V5C5 4.73478 5.10536 4.48043 5.29289 4.29289C5.48043 4.10536 5.73478 4 6 4ZM18 11C18.2652 11 18.5196 11.1054 18.7071 11.2929C18.8946 11.4804 19 11.7348 19 12V19C19 19.2652 18.8946 19.5196 18.7071 19.7071C18.5196 19.8946 18.2652 20 18 20C17.7348 20 17.4804 19.8946 17.2929 19.7071C17.1054 19.5196 17 19.2652 17 19V12C17 11.7348 17.1054 11.4804 17.2929 11.2929C17.4804 11.1054 17.7348 11 18 11ZM12 12.5C12.2652 12.5 12.5196 12.6054 12.7071 12.7929C12.8946 12.9804 13 13.2348 13 13.5V19C13 19.2652 12.8946 19.5196 12.7071 19.7071C12.5196 19.8946 12.2652 20 12 20C11.7348 20 11.4804 19.8946 11.2929 19.7071C11.1054 19.5196 11 19.2652 11 19V13.5C11 13.2348 11.1054 12.9804 11.2929 12.7929C11.4804 12.6054 11.7348 12.5 12 12.5Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M17 9C17 9.55228 17.4477 10 18 10C18.5523 10 19 9.55228 19 9V8H20C20.5523 8 21 7.55228 21 7C21 6.44772 20.5523 6 20 6L19 6V5C19 4.44772 18.5523 4 18 4C17.4477 4 17 4.44772 17 5V6L16 6C15.4477 6 15 6.44772 15 7C15 7.55228 15.4477 8 16 8H17V9Z", - fill: e - } - ) - ] - } - ); - case 39: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.0003 15.9505L8.29261 18L9.00075 13.6585L6 10.584L10.1456 9.95053L12.0003 6L13.8544 9.95053L18 10.584L14.9998 13.6585L15.7086 18L12.0003 15.9505Z", - fill: e - } - ) - } - ); - case 40: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M6 8C6 7.17157 6.67157 6.5 7.5 6.5H9.5C10.3284 6.5 11 7.17157 11 8V10C11 10.8284 10.3284 11.5 9.5 11.5H7.5C6.67157 11.5 6 10.8284 6 10V8Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M8 8.5V9.5H9V8.5H8ZM7.5 6.5C6.67157 6.5 6 7.17157 6 8V10C6 10.8284 6.67157 11.5 7.5 11.5H9.5C10.3284 11.5 11 10.8284 11 10V8C11 7.17157 10.3284 6.5 9.5 6.5H7.5Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M6 14.5C6 13.6716 6.67157 13 7.5 13H9.5C10.3284 13 11 13.6716 11 14.5V16.5C11 17.3284 10.3284 18 9.5 18H7.5C6.67157 18 6 17.3284 6 16.5V14.5Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M8 15V16H9V15H8ZM7.5 13C6.67157 13 6 13.6716 6 14.5V16.5C6 17.3284 6.67157 18 7.5 18H9.5C10.3284 18 11 17.3284 11 16.5V14.5C11 13.6716 10.3284 13 9.5 13H7.5Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.5 8C12.5 7.17157 13.1716 6.5 14 6.5H16C16.8284 6.5 17.5 7.17157 17.5 8V16.5C17.5 17.3284 16.8284 18 16 18H14C13.1716 18 12.5 17.3284 12.5 16.5V8Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M14.5 8.5V16H15.5V8.5H14.5ZM14 6.5C13.1716 6.5 12.5 7.17157 12.5 8V16.5C12.5 17.3284 13.1716 18 14 18H16C16.8284 18 17.5 17.3284 17.5 16.5V8C17.5 7.17157 16.8284 6.5 16 6.5H14Z", - fill: e - } - ) - ] - } - ); - case 41: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M6 8C6 7.17157 6.67157 6.5 7.5 6.5H9.5C10.3284 6.5 11 7.17157 11 8V10C11 10.8284 10.3284 11.5 9.5 11.5H7.5C6.67157 11.5 6 10.8284 6 10V8Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M8 8.5V9.5H9V8.5H8ZM7.5 6.5C6.67157 6.5 6 7.17157 6 8V10C6 10.8284 6.67157 11.5 7.5 11.5H9.5C10.3284 11.5 11 10.8284 11 10V8C11 7.17157 10.3284 6.5 9.5 6.5H7.5Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M6 14.5C6 13.6716 6.67157 13 7.5 13H9.5C10.3284 13 11 13.6716 11 14.5V16.5C11 17.3284 10.3284 18 9.5 18H7.5C6.67157 18 6 17.3284 6 16.5V14.5Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M8 15V16H9V15H8ZM7.5 13C6.67157 13 6 13.6716 6 14.5V16.5C6 17.3284 6.67157 18 7.5 18H9.5C10.3284 18 11 17.3284 11 16.5V14.5C11 13.6716 10.3284 13 9.5 13H7.5Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.5 8C12.5 7.17157 13.1716 6.5 14 6.5H16C16.8284 6.5 17.5 7.17157 17.5 8V16.5C17.5 17.3284 16.8284 18 16 18H14C13.1716 18 12.5 17.3284 12.5 16.5V8Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M14.5 8.5V16H15.5V8.5H14.5ZM14 6.5C13.1716 6.5 12.5 7.17157 12.5 8V16.5C12.5 17.3284 13.1716 18 14 18H16C16.8284 18 17.5 17.3284 17.5 16.5V8C17.5 7.17157 16.8284 6.5 16 6.5H14Z", - fill: e - } - ) - ] - } - ); - case 42: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M17 10C17.5304 10 18.0391 10.2107 18.4142 10.5858C18.7893 10.9609 19 11.4696 19 12V18C19 18.5304 18.7893 19.0391 18.4142 19.4142C18.0391 19.7893 17.5304 20 17 20H7C6.46957 20 5.96086 19.7893 5.58579 19.4142C5.21071 19.0391 5 18.5304 5 18V12C5 11.4696 5.21071 10.9609 5.58579 10.5858C5.96086 10.2107 6.46957 10 7 10V9C7 7.67392 7.52678 6.40215 8.46447 5.46447C9.40215 4.52678 10.6739 4 12 4C13.3261 4 14.5979 4.52678 15.5355 5.46447C16.4732 6.40215 17 7.67392 17 9V10ZM12 17C12.5304 17 13.0391 16.7893 13.4142 16.4142C13.7893 16.0391 14 15.5304 14 15C14 14.4696 13.7893 13.9609 13.4142 13.5858C13.0391 13.2107 12.5304 13 12 13C11.4696 13 10.9609 13.2107 10.5858 13.5858C10.2107 13.9609 10 14.4696 10 15C10 15.5304 10.2107 16.0391 10.5858 16.4142C10.9609 16.7893 11.4696 17 12 17ZM15 10V9C15 8.60603 14.9224 8.21593 14.7716 7.85195C14.6209 7.48797 14.3999 7.15726 14.1213 6.87868C13.8427 6.6001 13.512 6.37913 13.1481 6.22836C12.7841 6.0776 12.394 6 12 6C11.606 6 11.2159 6.0776 10.8519 6.22836C10.488 6.37913 10.1573 6.6001 9.87868 6.87868C9.6001 7.15726 9.37913 7.48797 9.22836 7.85195C9.0776 8.21593 9 8.60603 9 9V10H15Z", - fill: e - } - ) - } - ); - case 43: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M10.5 16.5C11.2879 16.5 12.0682 16.3448 12.7961 16.0433C13.5241 15.7418 14.1855 15.2998 14.7427 14.7427C15.2998 14.1855 15.7418 13.5241 16.0433 12.7961C16.3448 12.0682 16.5 11.2879 16.5 10.5C16.5 9.71208 16.3448 8.93187 16.0433 8.20391C15.7418 7.47596 15.2998 6.81453 14.7427 6.25737C14.1855 5.70022 13.5241 5.25827 12.7961 4.95674C12.0682 4.65521 11.2879 4.50002 10.5 4.50002C8.90872 4.50002 7.38259 5.13216 6.25737 6.25737C5.13216 7.38259 4.50002 8.90872 4.50002 10.5C4.50002 12.0913 5.13216 13.6174 6.25737 14.7427C7.38259 15.8679 8.90872 16.5 10.5 16.5ZM16.82 15.406L20.4 18.986C20.4955 19.0783 20.5716 19.1887 20.6239 19.3108C20.6762 19.4328 20.7037 19.564 20.7048 19.6968C20.7058 19.8296 20.6804 19.9613 20.63 20.0841C20.5797 20.207 20.5053 20.3186 20.4114 20.4124C20.3174 20.5062 20.2057 20.5804 20.0828 20.6306C19.9599 20.6808 19.8282 20.706 19.6954 20.7048C19.5626 20.7035 19.4314 20.6758 19.3095 20.6233C19.1875 20.5708 19.0772 20.4946 18.985 20.399L15.405 16.819C13.7975 18.0669 11.7748 18.6552 9.74877 18.4642C7.72273 18.2732 5.84562 17.3173 4.49957 15.7911C3.15351 14.2648 2.4397 12.283 2.50344 10.2489C2.56718 8.21492 3.40368 6.28164 4.84266 4.84266C6.28164 3.40368 8.21492 2.56718 10.2489 2.50344C12.283 2.4397 14.2648 3.15351 15.7911 4.49957C17.3173 5.84562 18.2732 7.72273 18.4642 9.74877C18.6552 11.7748 18.0669 13.7975 16.819 15.405L16.82 15.406Z", - fill: e - } - ) - } - ); - case 44: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M8.41406 12.657L12.3641 16.607C12.5417 16.7964 12.6387 17.0476 12.6345 17.3073C12.6303 17.5669 12.5252 17.8148 12.3415 17.9984C12.1578 18.182 11.9098 18.2869 11.6501 18.2909C11.3905 18.2949 11.1394 18.1978 10.9501 18.02L5.29306 12.364C5.19987 12.2713 5.12592 12.1612 5.07546 12.0399C5.025 11.9185 4.99902 11.7884 4.99902 11.657C4.99902 11.5256 5.025 11.3955 5.07546 11.2741C5.12592 11.1528 5.19987 11.0427 5.29306 10.95L10.9501 5.293C11.0423 5.19749 11.1526 5.1213 11.2747 5.0689C11.3967 5.01649 11.5279 4.9889 11.6607 4.98775C11.7934 4.98659 11.9251 5.01189 12.048 5.06218C12.1709 5.11246 12.2826 5.18671 12.3765 5.2806C12.4703 5.37449 12.5446 5.48615 12.5949 5.60904C12.6452 5.73194 12.6705 5.86362 12.6693 5.9964C12.6682 6.12918 12.6406 6.2604 12.5882 6.3824C12.5358 6.50441 12.4596 6.61475 12.3641 6.707L8.41406 10.657H18.0001C18.2653 10.657 18.5196 10.7624 18.7072 10.9499C18.8947 11.1374 19.0001 11.3918 19.0001 11.657C19.0001 11.9222 18.8947 12.1766 18.7072 12.3641C18.5196 12.5516 18.2653 12.657 18.0001 12.657H8.41406Z", - fill: e - } - ) - } - ); - case 45: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx("circle", { cx: "12", cy: "5", r: "2", fill: e }), - /* @__PURE__ */ f.jsx("circle", { cx: "12", cy: "12", r: "2", fill: e }), - /* @__PURE__ */ f.jsx("circle", { cx: "12", cy: "19", r: "2", fill: e }) - ] - } - ); - case 46: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M13.3141 11.9L16.8491 8.364C16.9446 8.27176 17.0208 8.16141 17.0732 8.03941C17.1256 7.9174 17.1532 7.78618 17.1543 7.6534C17.1555 7.52062 17.1302 7.38894 17.0799 7.26605C17.0296 7.14315 16.9554 7.0315 16.8615 6.93761C16.7676 6.84371 16.6559 6.76946 16.533 6.71918C16.4101 6.6689 16.2784 6.6436 16.1457 6.64475C16.0129 6.64591 15.8817 6.67349 15.7597 6.7259C15.6377 6.77831 15.5273 6.85449 15.4351 6.95L11.8991 10.485L8.36406 6.95C8.27182 6.85449 8.16147 6.77831 8.03947 6.7259C7.91746 6.67349 7.78624 6.64591 7.65346 6.64475C7.52069 6.6436 7.38901 6.6689 7.26611 6.71918C7.14321 6.76946 7.03156 6.84371 6.93767 6.93761C6.84378 7.0315 6.76952 7.14315 6.71924 7.26605C6.66896 7.38894 6.64366 7.52062 6.64481 7.6534C6.64597 7.78618 6.67355 7.9174 6.72596 8.03941C6.77837 8.16141 6.85455 8.27176 6.95006 8.364L10.4851 11.899L6.95006 15.435C6.85455 15.5273 6.77837 15.6376 6.72596 15.7596C6.67355 15.8816 6.64597 16.0128 6.64481 16.1456C6.64366 16.2784 6.66896 16.4101 6.71924 16.533C6.76952 16.6559 6.84378 16.7675 6.93767 16.8614C7.03156 16.9553 7.14321 17.0295 7.26611 17.0798C7.38901 17.1301 7.52069 17.1554 7.65346 17.1543C7.78624 17.1531 7.91746 17.1255 8.03947 17.0731C8.16147 17.0207 8.27182 16.9445 8.36406 16.849L11.8991 13.314L15.4351 16.849C15.5273 16.9445 15.6377 17.0207 15.7597 17.0731C15.8817 17.1255 16.0129 17.1531 16.1457 17.1543C16.2784 17.1554 16.4101 17.1301 16.533 17.0798C16.6559 17.0295 16.7676 16.9553 16.8615 16.8614C16.9554 16.7675 17.0296 16.6559 17.0799 16.533C17.1302 16.4101 17.1555 16.2784 17.1543 16.1456C17.1532 16.0128 17.1256 15.8816 17.0732 15.7596C17.0208 15.6376 16.9446 15.5273 16.8491 15.435L13.3141 11.899V11.9Z", - fill: e - } - ) - } - ); - case 47: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.0031 11.0034C11.3167 11.0034 10.7551 11.5673 10.7551 12.2566C10.7551 12.9459 11.3167 13.5098 12.0031 13.5098C12.6895 13.5098 13.2512 12.9459 13.2512 12.2566C13.2512 11.5673 12.6895 11.0034 12.0031 11.0034ZM21.9875 12.219C21.9875 12.2065 21.9875 12.2065 21.9875 12.1939V12.1814C21.9875 12.1689 21.9875 12.1689 21.9875 12.1563C21.9875 12.1438 21.9875 12.1438 21.9875 12.1313C21.9626 11.9558 21.8877 11.8054 21.7754 11.6801C21.1388 10.8404 20.3775 10.101 19.6037 9.42426C17.9438 7.95797 16.0468 6.72979 13.9501 6.24102C12.727 5.94025 11.5164 5.92771 10.2933 6.16583C9.18253 6.39141 8.12169 6.84258 7.11076 7.40654C5.5507 8.29634 4.11544 9.51199 2.86739 10.878C2.64275 11.1412 2.4181 11.3919 2.20593 11.6676C1.93136 12.031 1.93136 12.4696 2.20593 12.8331C2.84243 13.6728 3.60374 14.4122 4.37754 15.0889C6.03744 16.5552 7.93448 17.7834 10.0312 18.2722C11.2418 18.5604 12.4649 18.5729 13.688 18.3223C14.7988 18.0967 15.8596 17.6455 16.8705 17.0816C18.4306 16.1918 19.8658 14.9761 21.1139 13.6101C21.3385 13.3594 21.5757 13.0963 21.7878 12.8206C21.9002 12.6952 21.975 12.5323 22 12.3694C22 12.3569 22 12.3569 22 12.3443C22 12.3318 22 12.3318 22 12.3193V12.3067C22 12.2942 22 12.2942 22 12.2817C22 12.2691 22 12.2566 22 12.2441C22 12.2315 21.9875 12.2315 21.9875 12.219ZM12.0031 16.0163C9.93136 16.0163 8.25897 14.337 8.25897 12.2566C8.25897 10.1762 9.93136 8.49686 12.0031 8.49686C14.0749 8.49686 15.7473 10.1762 15.7473 12.2566C15.7473 14.337 14.0749 16.0163 12.0031 16.0163Z", - fill: e - } - ) - } - ); - case 48: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M14.8 4.613L21.501 15.774C22.464 17.377 21.991 19.486 20.444 20.484C19.9248 20.8202 19.3196 20.9994 18.701 21H5.298C3.477 21 2 19.47 2 17.581C2 16.942 2.173 16.317 2.498 15.774L9.2 4.613C10.162 3.01 12.196 2.519 13.743 3.517C14.171 3.793 14.533 4.168 14.8 4.613ZM12.58 5.452C12.4576 5.37326 12.3205 5.32015 12.1769 5.29588C12.0334 5.27161 11.8865 5.27669 11.745 5.3108C11.6035 5.34492 11.4703 5.40736 11.3536 5.49437C11.2369 5.58137 11.1391 5.69112 11.066 5.817L4.365 16.98C4.25615 17.1619 4.19877 17.37 4.199 17.582C4.199 18.212 4.691 18.722 5.299 18.722H18.7C18.906 18.722 19.107 18.662 19.281 18.55C19.5307 18.3841 19.7067 18.1283 19.7725 17.8358C19.8383 17.5434 19.7886 17.2368 19.634 16.98L12.933 5.817C12.8451 5.67003 12.7247 5.54516 12.581 5.452H12.58ZM12 17C11.7348 17 11.4804 16.8946 11.2929 16.7071C11.1054 16.5196 11 16.2652 11 16C11 15.7348 11.1054 15.4804 11.2929 15.2929C11.4804 15.1054 11.7348 15 12 15C12.2652 15 12.5196 15.1054 12.7071 15.2929C12.8946 15.4804 13 15.7348 13 16C13 16.2652 12.8946 16.5196 12.7071 16.7071C12.5196 16.8946 12.2652 17 12 17ZM12 8C12.2652 8 12.5196 8.10536 12.7071 8.2929C12.8946 8.48043 13 8.73479 13 9V13C13 13.2652 12.8946 13.5196 12.7071 13.7071C12.5196 13.8946 12.2652 14 12 14C11.7348 14 11.4804 13.8946 11.2929 13.7071C11.1054 13.5196 11 13.2652 11 13V9C11 8.73479 11.1054 8.48043 11.2929 8.2929C11.4804 8.10536 11.7348 8 12 8Z", - fill: e - } - ) - } - ); - case 49: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M12 20C14.1217 20 16.1566 19.1571 17.6569 17.6569C19.1571 16.1566 20 14.1217 20 12C20 9.87827 19.1571 7.84344 17.6569 6.34315C16.1566 4.84285 14.1217 4 12 4C9.87827 4 7.84344 4.84285 6.34315 6.34315C4.84285 7.84344 4 9.87827 4 12C4 14.1217 4.84285 16.1566 6.34315 17.6569C7.84344 19.1571 9.87827 20 12 20ZM12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M13.4139 12L16.2429 14.828C16.4306 15.0156 16.536 15.2701 16.536 15.5355C16.536 15.8009 16.4306 16.0554 16.2429 16.243C16.0553 16.4306 15.8008 16.5361 15.5354 16.5361C15.2701 16.5361 15.0156 16.4306 14.8279 16.243L11.9999 13.414L9.17192 16.243C8.98428 16.4306 8.72979 16.5361 8.46442 16.5361C8.19906 16.5361 7.94456 16.4306 7.75692 16.243C7.56928 16.0554 7.46387 15.8009 7.46387 15.5355C7.46387 15.2701 7.56928 15.0156 7.75692 14.828L10.5859 12L7.75692 9.172C7.56928 8.98436 7.46387 8.72986 7.46387 8.4645C7.46387 8.19914 7.56928 7.94464 7.75692 7.757C7.94456 7.56936 8.19906 7.46394 8.46442 7.46394C8.72979 7.46394 8.98428 7.56936 9.17192 7.757L11.9999 10.586L14.8279 7.757C15.0156 7.56936 15.2701 7.46394 15.5354 7.46394C15.8008 7.46394 16.0553 7.56936 16.2429 7.757C16.4306 7.94464 16.536 8.19914 16.536 8.4645C16.536 8.72986 16.4306 8.98436 16.2429 9.172L13.4139 12Z", - fill: e - } - ) - ] - } - ); - case 50: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 12 12", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12ZM5.84651 10.3637C5.39079 10.3637 5.02136 9.99427 5.02136 9.53855V5.23844C5.02136 4.78272 5.39079 4.41329 5.84651 4.41329C6.30223 4.41329 6.67167 4.78272 6.67167 5.23844V9.53855C6.67167 9.99427 6.30223 10.3637 5.84651 10.3637ZM6.74527 2.80947C6.74527 3.27047 6.34238 3.64624 5.85039 3.64624C5.36227 3.64624 4.95937 3.27047 4.95937 2.80947C4.95937 2.35234 5.36227 1.97656 5.85039 1.97656C6.34238 1.97656 6.74527 2.35234 6.74527 2.80947Z", - fill: e - } - ) - } - ); - case 51: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C14.1217 20 16.1566 19.1571 17.6569 17.6569C19.1571 16.1566 20 14.1217 20 12C20 9.87827 19.1571 7.84344 17.6569 6.34315C16.1566 4.84285 14.1217 4 12 4C9.87827 4 7.84344 4.84285 6.34315 6.34315C4.84285 7.84344 4 9.87827 4 12C4 14.1217 4.84285 16.1566 6.34315 17.6569C7.84344 19.1571 9.87827 20 12 20ZM12 10C12.2652 10 12.5196 10.1054 12.7071 10.2929C12.8946 10.4804 13 10.7348 13 11V16C13 16.2652 12.8946 16.5196 12.7071 16.7071C12.5196 16.8946 12.2652 17 12 17C11.7348 17 11.4804 16.8946 11.2929 16.7071C11.1054 16.5196 11 16.2652 11 16V11C11 10.7348 11.1054 10.4804 11.2929 10.2929C11.4804 10.1054 11.7348 10 12 10ZM12 9C11.7348 9 11.4804 8.89464 11.2929 8.70711C11.1054 8.51957 11 8.26522 11 8C11 7.73478 11.1054 7.48043 11.2929 7.29289C11.4804 7.10536 11.7348 7 12 7C12.2652 7 12.5196 7.10536 12.7071 7.29289C12.8946 7.48043 13 7.73478 13 8C13 8.26522 12.8946 8.51957 12.7071 8.70711C12.5196 8.89464 12.2652 9 12 9Z", - fill: e - } - ) - } - ); - case 52: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C14.1217 20 16.1566 19.1571 17.6569 17.6569C19.1571 16.1566 20 14.1217 20 12C20 9.87827 19.1571 7.84344 17.6569 6.34315C16.1566 4.84285 14.1217 4 12 4C9.87827 4 7.84344 4.84285 6.34315 6.34315C4.84285 7.84344 4 9.87827 4 12C4 14.1217 4.84285 16.1566 6.34315 17.6569C7.84344 19.1571 9.87827 20 12 20Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx("circle", { cx: "12", cy: "16.5", r: "1", fill: e }), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M9.16458 9.06547C9.46208 8.32245 10.4715 7.1 12.2003 7.1C12.9753 7.1 13.7526 7.29821 14.357 7.77481C14.9873 8.27187 15.3503 9.01217 15.3503 9.9C15.3503 11.3471 14.4711 12.0854 13.864 12.5914C13.2315 13.1184 12.8828 13.4172 12.7903 14.0335C12.7166 14.5251 12.2583 14.8638 11.7668 14.79C11.2752 14.7163 10.9365 14.2581 11.0102 13.7665C11.2072 12.4532 12.0517 11.7547 12.6223 11.2826C12.6529 11.2573 12.6827 11.2327 12.7116 11.2086C13.3045 10.7146 13.5503 10.4529 13.5503 9.9C13.5503 9.53859 13.4208 9.3289 13.2424 9.18826C13.0382 9.02717 12.6904 8.9 12.2003 8.9C11.3988 8.9 10.9385 9.47757 10.8356 9.73454C10.6509 10.196 10.127 10.4203 9.66556 10.2355C9.20412 10.0508 8.97982 9.52692 9.16458 9.06547Z", - fill: e - } - ) - ] - } - ); - case 53: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M6 2H18C19.0609 2 20.0783 2.42143 20.8284 3.17157C21.5786 3.92172 22 4.93913 22 6V18C22 19.0609 21.5786 20.0783 20.8284 20.8284C20.0783 21.5786 19.0609 22 18 22H6C4.93913 22 3.92172 21.5786 3.17157 20.8284C2.42143 20.0783 2 19.0609 2 18V6C2 4.93913 2.42143 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2V2ZM6 4C5.46957 4 4.96086 4.21071 4.58579 4.58579C4.21071 4.96086 4 5.46957 4 6V18C4 18.5304 4.21071 19.0391 4.58579 19.4142C4.96086 19.7893 5.46957 20 6 20H18C18.5304 20 19.0391 19.7893 19.4142 19.4142C19.7893 19.0391 20 18.5304 20 18V6C20 5.46957 19.7893 4.96086 19.4142 4.58579C19.0391 4.21071 18.5304 4 18 4H6ZM7.229 20H6C5.71995 20.0002 5.44297 19.9416 5.187 19.828C5.41155 18.9832 5.83143 18.203 6.4128 17.5503C6.99416 16.8975 7.72075 16.3905 8.534 16.07C8.65695 16.0175 8.78916 15.9903 8.92283 15.9898C9.0565 15.9893 9.18891 16.0156 9.31223 16.0672C9.43555 16.1188 9.54728 16.1945 9.64082 16.29C9.73436 16.3855 9.8078 16.4988 9.85681 16.6231C9.90582 16.7475 9.9294 16.8804 9.92615 17.014C9.92291 17.1477 9.8929 17.2793 9.83792 17.4011C9.78293 17.523 9.70408 17.6325 9.60602 17.7234C9.50796 17.8142 9.39268 17.8845 9.267 17.93C8.80148 18.1134 8.37958 18.3924 8.02854 18.7489C7.67751 19.1055 7.40513 19.5317 7.229 20ZM16.741 20C16.5536 19.5292 16.2705 19.1024 15.9095 18.7467C15.5485 18.3911 15.1176 18.1143 14.644 17.934C14.5175 17.8901 14.4012 17.8213 14.3018 17.7316C14.2024 17.6419 14.1221 17.5332 14.0655 17.4119C14.009 17.2905 13.9773 17.1591 13.9725 17.0253C13.9677 16.8916 13.9897 16.7582 14.0374 16.6331C14.0851 16.508 14.1574 16.3938 14.25 16.2972C14.3427 16.2006 14.4538 16.1235 14.5767 16.0706C14.6997 16.0177 14.832 15.9901 14.9659 15.9893C15.0998 15.9885 15.2324 16.0146 15.356 16.066C16.184 16.3814 16.9264 16.8869 17.5234 17.5417C18.1204 18.1965 18.5553 18.9824 18.793 19.836C18.5427 19.9444 18.2728 20.0002 18 20H16.74H16.741ZM12 6C13.0609 6 14.0783 6.42143 14.8284 7.17157C15.5786 7.92172 16 8.93913 16 10V12C16 13.0609 15.5786 14.0783 14.8284 14.8284C14.0783 15.5786 13.0609 16 12 16C10.9391 16 9.92172 15.5786 9.17157 14.8284C8.42143 14.0783 8 13.0609 8 12V10C8 8.93913 8.42143 7.92172 9.17157 7.17157C9.92172 6.42143 10.9391 6 12 6ZM12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10V12C10 12.5304 10.2107 13.0391 10.5858 13.4142C10.9609 13.7893 11.4696 14 12 14C12.5304 14 13.0391 13.7893 13.4142 13.4142C13.7893 13.0391 14 12.5304 14 12V10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8Z", - fill: e - } - ) - } - ); - case 54: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M4 13V7H20V13H4ZM2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6V14V18H20V15H17V18H15V15H13V18H11V15H9V18H7V15H4V18H2V14V6ZM7 8H5V12H7V8ZM9 8H11V12H9V8ZM15 8H13V12H15V8ZM19 8H17V12H19V8Z", - fill: e - } - ) - } - ); - case 55: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M5.7 13.8C5.46131 13.8 5.23239 13.8948 5.0636 14.0636C4.89482 14.2324 4.8 14.4613 4.8 14.7V18.3C4.8 18.5387 4.89482 18.7676 5.0636 18.9364C5.23239 19.1052 5.46131 19.2 5.7 19.2H18.3C18.5387 19.2 18.7676 19.1052 18.9364 18.9364C19.1052 18.7676 19.2 18.5387 19.2 18.3V14.7C19.2 14.4613 19.1052 14.2324 18.9364 14.0636C18.7676 13.8948 18.5387 13.8 18.3 13.8H5.7ZM5.7 12C4.98392 12 4.29716 11.7155 3.79081 11.2092C3.28446 10.7028 3 10.0161 3 9.3V5.7C3 4.98392 3.28446 4.29716 3.79081 3.79081C4.29716 3.28446 4.98392 3 5.7 3H18.3C19.0161 3 19.7028 3.28446 20.2092 3.79081C20.7155 4.29716 21 4.98392 21 5.7V9.3C21 10.0161 20.7155 10.7028 20.2092 11.2092C19.7028 11.7155 19.0161 12 18.3 12C19.0161 12 19.7028 12.2845 20.2092 12.7908C20.7155 13.2972 21 13.9839 21 14.7V18.3C21 19.0161 20.7155 19.7028 20.2092 20.2092C19.7028 20.7155 19.0161 21 18.3 21H5.7C4.98392 21 4.29716 20.7155 3.79081 20.2092C3.28446 19.7028 3 19.0161 3 18.3V14.7C3 13.9839 3.28446 13.2972 3.79081 12.7908C4.29716 12.2845 4.98392 12 5.7 12ZM5.7 4.8C5.46131 4.8 5.23239 4.89482 5.0636 5.0636C4.89482 5.23239 4.8 5.46131 4.8 5.7V9.3C4.8 9.53869 4.89482 9.76761 5.0636 9.9364C5.23239 10.1052 5.46131 10.2 5.7 10.2H18.3C18.5387 10.2 18.7676 10.1052 18.9364 9.9364C19.1052 9.76761 19.2 9.53869 19.2 9.3V5.7C19.2 5.46131 19.1052 5.23239 18.9364 5.0636C18.7676 4.89482 18.5387 4.8 18.3 4.8H5.7ZM7.5 8.4C7.2613 8.4 7.03239 8.30518 6.8636 8.1364C6.69482 7.96761 6.6 7.73869 6.6 7.5C6.6 7.2613 6.69482 7.03239 6.8636 6.8636C7.03239 6.69482 7.2613 6.6 7.5 6.6C7.73869 6.6 7.96761 6.69482 8.1364 6.8636C8.30518 7.03239 8.4 7.2613 8.4 7.5C8.4 7.73869 8.30518 7.96761 8.1364 8.1364C7.96761 8.30518 7.73869 8.4 7.5 8.4ZM10.2 8.4C9.96131 8.4 9.73239 8.30518 9.5636 8.1364C9.39482 7.96761 9.3 7.73869 9.3 7.5C9.3 7.2613 9.39482 7.03239 9.5636 6.8636C9.73239 6.69482 9.96131 6.6 10.2 6.6C10.4387 6.6 10.6676 6.69482 10.8364 6.8636C11.0052 7.03239 11.1 7.2613 11.1 7.5C11.1 7.73869 11.0052 7.96761 10.8364 8.1364C10.6676 8.30518 10.4387 8.4 10.2 8.4ZM10.2 17.4C9.96131 17.4 9.73239 17.3052 9.5636 17.1364C9.39482 16.9676 9.3 16.7387 9.3 16.5C9.3 16.2613 9.39482 16.0324 9.5636 15.8636C9.73239 15.6948 9.96131 15.6 10.2 15.6C10.4387 15.6 10.6676 15.6948 10.8364 15.8636C11.0052 16.0324 11.1 16.2613 11.1 16.5C11.1 16.7387 11.0052 16.9676 10.8364 17.1364C10.6676 17.3052 10.4387 17.4 10.2 17.4ZM7.5 17.4C7.2613 17.4 7.03239 17.3052 6.8636 17.1364C6.69482 16.9676 6.6 16.7387 6.6 16.5C6.6 16.2613 6.69482 16.0324 6.8636 15.8636C7.03239 15.6948 7.2613 15.6 7.5 15.6C7.73869 15.6 7.96761 15.6948 8.1364 15.8636C8.30518 16.0324 8.4 16.2613 8.4 16.5C8.4 16.7387 8.30518 16.9676 8.1364 17.1364C7.96761 17.3052 7.73869 17.4 7.5 17.4Z", - fill: e - } - ) - } - ); - case 56: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M9 4C9 3.44772 9.44772 3 10 3C10.5523 3 11 3.44772 11 4V6H9V4ZM14.5 8.5H9.5C8.94771 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94771 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94771 15.0523 8.5 14.5 8.5ZM9.5 6.5C7.84315 6.5 6.5 7.84315 6.5 9.5V14.5C6.5 16.1569 7.84315 17.5 9.5 17.5H14.5C16.1569 17.5 17.5 16.1569 17.5 14.5V9.5C17.5 7.84315 16.1569 6.5 14.5 6.5H9.5ZM14 21C14.5523 21 15 20.5523 15 20V18H13V20C13 20.5523 13.4477 21 14 21ZM4 15C3.44772 15 3 14.5523 3 14C3 13.4477 3.44772 13 4 13H6L6 15H4ZM21 10C21 9.44772 20.5523 9 20 9L18 9V11H20C20.5523 11 21 10.5523 21 10ZM11 20C11 20.5523 10.5523 21 10 21C9.44772 21 9 20.5523 9 20V18H11V20ZM14 3C13.4477 3 13 3.44772 13 4V6H15V4C15 3.44772 14.5523 3 14 3ZM4 11C3.44772 11 3 10.5523 3 10C3 9.44772 3.44772 9 4 9H6L6 11H4ZM21 14C21 13.4477 20.5523 13 20 13H18V15H20C20.5523 15 21 14.5523 21 14Z", - fill: e - } - ) - } - ); - case 57: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12 7C12.5523 7 13 7.44772 13 8V11H14C14.5523 11 15 11.4477 15 12C15 12.5523 14.5523 13 14 13H12C11.4477 13 11 12.5523 11 12V8C11 7.44772 11.4477 7 12 7Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z", - fill: e - } - ) - ] - } - ); - case 58: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M14 12C14 10.8954 13.1046 10 12 10C10.8954 10 10 10.8954 10 12C10 13.1046 10.8954 14 12 14C13.1046 14 14 13.1046 14 12ZM16 12C16 10.1362 14.7252 8.57006 13 8.12602L13 3L11 3L11 8.12602C9.27477 8.57006 8 10.1362 8 12C8 13.8638 9.27477 15.4299 11 15.874L11 21L13 21L13 15.874C14.7252 15.4299 16 13.8638 16 12Z", - fill: e - } - ) - } - ); - case 59: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M14.6916 7.89397C12.787 6.64268 10.2033 6.85439 8.52862 8.5291C6.85391 10.2038 6.64219 12.7875 7.89348 14.6921L14.6916 7.89397ZM9.30763 16.1063C11.2122 17.3578 13.7961 17.1462 15.4709 15.4714C17.1457 13.7966 17.3574 11.2127 16.1058 9.30812L9.30763 16.1063ZM16.8851 7.11489C14.187 4.41678 9.81251 4.41678 7.1144 7.11489C4.41629 9.813 4.41629 14.1875 7.1144 16.8856C9.81251 19.5837 14.187 19.5837 16.8851 16.8856C19.5832 14.1875 19.5832 9.813 16.8851 7.11489Z", - fill: e - } - ) - } - ); - case 30: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 18 18", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M17.0001 1L9.00008 9M17.0001 1V6M17.0001 1H12.0001M1.00008 17L9.00008 9M1.00008 17H6M1.00008 17L1 12M9.00008 9L17.0001 17M17.0001 17L1.00008 1M17.0001 17V12M17.0001 17H12.0001M1.00008 1H6.00008M1.00008 1V6", - stroke: e, - strokeWidth: "2", - strokeLinecap: "round", - fill: e - } - ) - } - ); - case 60: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 13 13", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M8.19857 12.2562C10.6851 11.5236 12.5 9.22374 12.5 6.49998C12.5 3.84467 10.7751 1.59223 8.38475 0.801977C8.15357 1.0913 7.9253 1.40495 7.71932 1.73377C7.256 2.47336 6.9722 3.18415 6.92832 3.80161C6.88951 4.34764 7.02764 4.88488 7.58204 5.43929C8.77937 6.63661 9.20342 8.03961 9.09974 9.41722C9.02151 10.4565 8.64949 11.4261 8.19857 12.2562ZM4.62634 12.2016C2.23019 11.4147 0.5 9.15939 0.5 6.49998C0.5 3.76562 2.32909 1.45847 4.83048 0.735313C4.38074 1.56912 4.01013 2.54406 3.93587 3.58892C3.83808 4.96476 4.26513 6.36502 5.46072 7.56061C6.0134 8.11328 6.14916 8.64779 6.1082 9.19205C6.06177 9.80884 5.77419 10.5199 5.30562 11.2603C5.09527 11.5927 4.86215 11.9097 4.62634 12.2016Z", - fill: e - } - ) - } - ); - case 61: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "6", - height: "4", - viewBox: "0 0 6 4", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M2.79736 0.349507C2.90917 0.225946 3.09168 0.225945 3.20349 0.349507L5.48795 2.87402C5.66651 3.07134 5.53871 3.40635 5.28488 3.40635H0.715974C0.462139 3.40635 0.334344 3.07134 0.512905 2.87402L2.79736 0.349507Z", - fill: e - } - ) - } - ); - case 62: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "6", - height: "4", - viewBox: "0 0 6 4", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M3.20264 3.65049C3.09083 3.77405 2.90832 3.77405 2.79651 3.65049L0.512054 1.12598C0.333493 0.928655 0.461289 0.593651 0.715123 0.593651L5.28403 0.593651C5.53786 0.593651 5.66566 0.928656 5.4871 1.12598L3.20264 3.65049Z", - fill: e - } - ) - } - ); - case 63: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "24", - height: "24", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M14.298 4H7C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19C6 19.2652 6.10536 19.5196 6.29289 19.7071C6.48043 19.8946 6.73478 20 7 20H17C17.2652 20 17.5196 19.8946 17.7071 19.7071C17.8946 19.5196 18 19.2652 18 19V6.961L14.298 4ZM7 2H15L20 6V19C20 19.7956 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7956 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2V2Z", - fill: e - } - ) - } - ); - case 64: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "24", - height: "24", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M13 4H14.298L18 6.961V8L13 8V4ZM20 6V9V15V19C20 19.7956 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7956 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2H15L20 6ZM18 14V10L13 10V14H18ZM13 16H18V19C18 19.2652 17.8946 19.5196 17.7071 19.7071C17.5196 19.8946 17.2652 20 17 20H13V16ZM11 14V10L6 10L6 14H11ZM6 16H11V20H7C6.73478 20 6.48043 19.8946 6.29289 19.7071C6.10536 19.5196 6 19.2652 6 19L6 16ZM11 4V8L6 8V5C6 4.73478 6.10536 4.48043 6.29289 4.29289C6.48043 4.10536 6.73478 4 7 4H11Z", - fill: e - } - ) - } - ); - case 65: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "24", - height: "24", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx("g", { children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.5 8V17H14C14.5523 17 15 17.4477 15 18C15 18.869 15.2577 19.3423 15.5055 19.5894C15.7306 19.814 16.0237 19.9294 16.3316 19.9403L16.4658 19.9385C17.1089 19.8996 17.5 19.4831 17.5 19V8V7V6C17.5 5.27722 17.613 4.61637 17.8511 4.04604L7.5 4L7.49799 4C6.96181 4.00045 6.45839 4.1805 6.10186 4.49741C5.7633 4.79836 5.5 5.27136 5.5 6L5.5 7V8ZM19.5 7V8V19C19.5 20.8273 17.9692 21.8654 16.5503 21.9369C16.4751 21.9406 16.3993 21.9419 16.3234 21.9406C11.8257 22 5.47412 22 3.50175 22H3.5C2.51748 22 1.59623 21.6643 0.934923 20.9085C0.288912 20.1702 0 19.1557 0 18C0 17.4477 0.447715 17 1 17H3.5L3.5 8L3.5 7L3.5 6C3.5 4.72864 3.9867 3.70164 4.77314 3.00259C5.54117 2.3199 6.53693 2 7.5 2L7.50445 2.00001L20.8744 2.05947L20.8789 2.05948L20.8961 2.0597C20.928 2.0604 20.9599 2.06153 20.9918 2.06309C22.4142 2.13277 24 3.14982 24 5.00001C24 5.55229 23.5523 6.00001 23 6.00001C22.4477 6.00001 22 5.55229 22 5.00001C22 4.53572 21.6022 4.09539 20.8939 4.06069C20.8837 4.06019 20.8734 4.05979 20.8633 4.0595C20.4212 4.06189 20.1258 4.20654 19.9264 4.43587C19.7108 4.68386 19.5 5.15632 19.5 6V7ZM3.5 19H2.12976C2.21157 19.267 2.3235 19.4583 2.44008 19.5915C2.65377 19.8357 2.98252 20 3.5 20C5.07254 20 9.41688 20 13.3853 19.97C13.2525 19.6742 13.1526 19.3501 13.0878 19H5.5H3.5Z", - fill: e - } - ) }) - } - ); - case 0: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "24", - height: "24", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12 3.25C9.63216 3.25 7.47773 3.58834 5.90639 4.14293C5.12185 4.41983 4.46918 4.75532 4.0078 5.14031C3.62333 5.46113 3.35214 5.83399 3.27347 6.25H3.25V6.5V11.75V12V17.5C3.25 18.0714 3.5323 18.5924 3.99358 19.0415C4.45407 19.4898 5.10741 19.882 5.8944 20.206C7.46957 20.8546 9.62836 21.25 12 21.25C14.3716 21.25 16.5304 20.8546 18.1056 20.206C18.8926 19.882 19.5459 19.4898 20.0064 19.0415C20.4677 18.5924 20.75 18.0714 20.75 17.5V12V11.75V6.5V6.25H20.7265C20.6479 5.83399 20.3767 5.46113 19.9922 5.14031C19.5308 4.75532 18.8782 4.41983 18.0936 4.14293C16.5223 3.58834 14.3678 3.25 12 3.25ZM18.75 8.59783C18.5436 8.68915 18.3243 8.77564 18.0936 8.85707C16.5223 9.41166 14.3678 9.75 12 9.75C9.63216 9.75 7.47773 9.41166 5.90639 8.85707C5.67568 8.77564 5.45639 8.68915 5.25 8.59783V11.75V11.9453C5.26577 11.9714 5.30401 12.026 5.3887 12.1084C5.60624 12.3202 6.01205 12.5916 6.6559 12.8567C7.93535 13.3835 9.82384 13.75 12 13.75C14.1762 13.75 16.0646 13.3835 17.3441 12.8567C17.9879 12.5916 18.3938 12.3202 18.6113 12.1084C18.696 12.026 18.7342 11.9714 18.75 11.9453V11.75V8.59783ZM5.25 14.4098C5.45281 14.514 5.66808 14.6129 5.8944 14.706C7.46957 15.3546 9.62836 15.75 12 15.75C14.3716 15.75 16.5304 15.3546 18.1056 14.706C18.3319 14.6129 18.5472 14.514 18.75 14.4098V17.4453C18.7342 17.4714 18.696 17.526 18.6113 17.6084C18.3938 17.8202 17.9879 18.0916 17.3441 18.3567C16.0646 18.8835 14.1762 19.25 12 19.25C9.82384 19.25 7.93535 18.8835 6.6559 18.3567C6.01205 18.0916 5.60624 17.8202 5.3887 17.6084C5.30401 17.526 5.26577 17.4714 5.25 17.4453V14.4098ZM6.57203 6.02891C7.87824 5.5679 9.79721 5.25 12 5.25C14.2028 5.25 16.1218 5.5679 17.428 6.02891C17.8881 6.19129 18.2268 6.35563 18.4614 6.5C18.2268 6.64437 17.8881 6.80871 17.428 6.97109C16.1218 7.4321 14.2028 7.75 12 7.75C9.79721 7.75 7.87824 7.4321 6.57203 6.97109C6.11195 6.80871 5.77324 6.64437 5.53857 6.5C5.77324 6.35563 6.11195 6.19129 6.57203 6.02891ZM18.7511 17.5072L18.7513 17.5H18.879L18.7512 17.5175L18.7511 17.51L18.7511 17.5072ZM5.24884 17.5175L5.12087 17.5H5.24871C5.24893 17.5048 5.24893 17.5084 5.24894 17.5101L5.24884 17.5175Z", - fill: e - } - ) - } - ); - case 66: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "24", - height: "24", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M14.298 4H7C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19C6 19.2652 6.10536 19.5196 6.29289 19.7071C6.39625 19.8105 6.51991 19.8889 6.6545 19.9384L6.79779 19.6875C8.48837 16.7269 9.48292 14.9852 10.2418 13.9475C10.6673 13.3658 11.0677 12.9339 11.5335 12.6198C12.0072 12.3004 12.4806 12.1492 12.9572 12.0301C13.5386 11.8847 14.1154 11.8211 14.7078 11.9541C15.3024 12.0875 15.8049 12.3945 16.2832 12.7992C16.7513 13.1952 17.2469 13.7295 17.8179 14.3787C17.8765 14.4453 17.9372 14.5148 18 14.5868V6.961L14.298 4ZM17 20H8.92276C10.3947 17.4249 11.2286 15.9862 11.8562 15.1282C12.2138 14.6392 12.4549 14.4107 12.6518 14.278C12.8408 14.1505 13.0512 14.0681 13.4424 13.9703C13.8609 13.8657 14.0967 13.8667 14.2699 13.9055C14.4409 13.9439 14.6571 14.0432 14.9914 14.326C15.3358 14.6174 15.7464 15.0519 16.3161 15.6996C16.5994 16.0217 16.8926 16.3621 17.2217 16.7443L17.2218 16.7443C17.4592 17.02 17.7154 17.3175 18 17.6454V19C18 19.2652 17.8946 19.5196 17.7071 19.7071C17.5196 19.8946 17.2652 20 17 20ZM7 2H15L20 6V19C20 19.7956 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7956 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2ZM12 8C12 9.10457 11.1046 10 10 10C8.89543 10 8 9.10457 8 8C8 6.89543 8.89543 6 10 6C11.1046 6 12 6.89543 12 8Z", - fill: e - } - ) - } - ); - case 67: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "24", - height: "24", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.83 6H19C19.7956 6 20.5587 6.31607 21.1213 6.87868C21.6839 7.44129 22 8.20435 22 9V17C22 17.7956 21.6839 18.5587 21.1213 19.1213C20.5587 19.6839 19.7956 20 19 20H5C4.20435 20 3.44129 19.6839 2.87868 19.1213C2.31607 18.5587 2 17.7956 2 17V7C2 6.20435 2.31607 5.44129 2.87868 4.87868C3.44129 4.31607 4.20435 4 5 4H10C11.306 4 12.417 4.835 12.83 6ZM19 8H11.415L10.944 6.666C10.8748 6.47105 10.7468 6.30233 10.5778 6.18307C10.4087 6.06381 10.2069 5.99985 10 6H5C4.73478 6 4.48043 6.10536 4.29289 6.29289C4.10536 6.48043 4 6.73478 4 7V17C4 17.2652 4.10536 17.5196 4.29289 17.7071C4.48043 17.8946 4.73478 18 5 18H19C19.2652 18 19.5196 17.8946 19.7071 17.7071C19.8946 17.5196 20 17.2652 20 17V9C20 8.73478 19.8946 8.48043 19.7071 8.29289C19.5196 8.10536 19.2652 8 19 8ZM16 10H18V12H16V10ZM14 8H16V10H14V8ZM14 12H16V14H14V12ZM16 14H18V16H16V14ZM14 16H16V18H14V16Z", - fill: e - } - ) - } - ); - case 68: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: "24", - height: "24", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12.5 7V8.5H19C19.2761 8.5 19.5 8.72386 19.5 9V10.25H4.5V7C4.5 6.72386 4.72386 6.5 5 6.5H12C12.2761 6.5 12.5 6.72386 12.5 7ZM4.5 11.75V18C4.5 18.2761 4.72386 18.5 5 18.5H19C19.2761 18.5 19.5 18.2761 19.5 18V11.75H4.5ZM21 9C21 7.89543 20.1046 7 19 7H14C14 5.89543 13.1046 5 12 5H5C3.89543 5 3 5.89543 3 7V18C3 19.1046 3.89543 20 5 20H19C20.1046 20 21 19.1046 21 18V9Z", - fill: e - } - ) - } - ); - case 69: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: "24", - height: "24", - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M11.415 8H19C19.2652 8 19.5196 8.10536 19.7071 8.29289C19.8946 8.48043 20 8.73478 20 9V13.5C20.7684 13.5 21.4692 13.7889 22 14.2639V9C22 8.20435 21.6839 7.44129 21.1213 6.87868C20.5587 6.31607 19.7956 6 19 6H12.83C12.417 4.835 11.306 4 10 4H5C4.20435 4 3.44129 4.31607 2.87868 4.87868C2.31607 5.44129 2 6.20435 2 7V17C2 17.7956 2.31607 18.5587 2.87868 19.1213C3.44129 19.6839 4.20435 20 5 20H11C11 19.2316 11.2889 18.5308 11.7639 18H5C4.73478 18 4.48043 17.8946 4.29289 17.7071C4.10536 17.5196 4 17.2652 4 17V7C4 6.73478 4.10536 6.48043 4.29289 6.29289C4.48043 6.10536 4.73478 6 5 6H10C10.2069 5.99985 10.4087 6.06381 10.5778 6.18307C10.7468 6.30233 10.8748 6.47105 10.944 6.666L11.415 8ZM14 18C12.8954 18 12 18.8954 12 20H14V18ZM22 16.5C22 15.3954 21.1046 14.5 20 14.5V17H21.937C21.9781 16.8402 22 16.6726 22 16.5Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M16 13.009L16 13C16 11.8954 15.1046 11 14 11C12.8954 11 12 11.8954 12 13C12 14.1046 12.8954 15 14 15C14.3612 15 14.7001 14.9042 14.9926 14.7367L18 16.4911C18 16.4941 18 16.497 18 16.5C18 16.503 18 16.506 18 16.5089L14.9926 18.2633C14.7001 18.0958 14.3612 18 14 18C12.8954 18 12 18.8954 12 20C12 21.1046 12.8954 22 14 22C15.1046 22 16 21.1046 16 20L16 19.991L19.0074 18.2367C19.2999 18.4042 19.6388 18.5 20 18.5C21.1046 18.5 22 17.6046 22 16.5C22 15.3954 21.1046 14.5 20 14.5C19.6388 14.5 19.2999 14.5958 19.0074 14.7633L16 13.009Z", - fill: e - } - ) - ] - } - ); - case 70: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M17.5 14C14 14 11 17 11 21.5C13 17.5 16.5 17.8 17.5 17.8V21L23 16L17.5 11V14Z", - fill: "white" - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M11.415 8H19C19.2652 8 19.5196 8.10536 19.7071 8.29289C19.8946 8.48043 20 8.73478 20 9V11.9211L22 13.7393V9C22 8.20435 21.6839 7.44129 21.1213 6.87868C20.5587 6.31607 19.7956 6 19 6H12.83C12.417 4.835 11.306 4 10 4H5C4.20435 4 3.44129 4.31607 2.87868 4.87868C2.31607 5.44129 2 6.20435 2 7V17C2 17.7956 2.31607 18.5587 2.87868 19.1213C3.44129 19.6839 4.20435 20 5 20H10.1063C10.2086 19.2928 10.3826 18.6237 10.6194 18H5C4.73478 18 4.48043 17.8946 4.29289 17.7071C4.10536 17.5196 4 17.2652 4 17V7C4 6.73478 4.10536 6.48043 4.29289 6.29289C4.48043 6.10536 4.73478 6 5 6H10C10.2069 5.99985 10.4087 6.06381 10.5778 6.18307C10.7468 6.30233 10.8748 6.47105 10.944 6.666L11.415 8ZM19 18H19.3132L19.4098 17.9122C19.2821 17.9695 19.1426 18 19 18ZM19.8691 17.4946L21.5134 15.9998L20 14.624V17C20 17.1749 19.9542 17.3452 19.8691 17.4946Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M17.5 14C14 14 11 17 11 21.5C13 17.5 16.5 17.8 17.5 17.8V21L23 16L17.5 11V14Z", - fill: e - } - ) - ] - } - ); - case 75: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M7.7514 8.29652C6.57295 9.08215 6 10.0577 6 11C6 11.7723 6.37937 12.5563 7.16302 13.2519L7.49916 13.5503V16.2337L10.046 14.7056L10.4307 14.7872C11.0796 14.9249 11.7749 15 12.5 15C14.4012 15 16.0771 14.4845 17.2486 13.7035C18.4271 12.9179 19 11.9423 19 11C19 10.0577 18.4271 9.08215 17.2486 8.29652C16.0771 7.51554 14.4012 7 12.5 7C10.5988 7 8.92286 7.51554 7.7514 8.29652ZM6.642 6.63242C8.18501 5.60374 10.259 5 12.5 5C14.741 5 16.815 5.60374 18.358 6.63242C19.894 7.65643 21 9.18091 21 11C21 12.8191 19.894 14.3436 18.358 15.3676C16.815 16.3963 14.741 17 12.5 17C11.7799 17 11.0792 16.9378 10.4093 16.82L5.49916 19.7661V14.4275C4.58872 13.4963 4 12.3222 4 11C4 9.18091 5.10598 7.65643 6.642 6.63242Z", - fill: e - } - ) - } - ); - case 77: - return /* @__PURE__ */ f.jsxs( - "svg", - { - xmlns: "http://www.w3.org/2000/svg", - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12 12.5859L16.7071 17.293C17.0976 17.6836 17.0976 18.3167 16.7071 18.7073C16.3166 19.0978 15.6834 19.0978 15.2929 18.7073L12 15.4144L8.70711 18.7073C8.31658 19.0978 7.68342 19.0978 7.29289 18.7073C6.90237 18.3167 6.90237 17.6836 7.29289 17.293L12 12.5859Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12 11.4141L7.29289 6.70696C6.90237 6.31643 6.90237 5.68327 7.29289 5.29274C7.68342 4.90222 8.31658 4.90222 8.70711 5.29274L12 8.58564L15.2929 5.29274C15.6834 4.90222 16.3166 4.90222 16.7071 5.29274C17.0976 5.68327 17.0976 6.31643 16.7071 6.70696L12 11.4141Z", - fill: e - } - ) - ] - } - ); - case 76: - return /* @__PURE__ */ f.jsxs( - "svg", - { - xmlns: "http://www.w3.org/2000/svg", - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12 21L7.29289 16.2929C6.90237 15.9024 6.90237 15.2692 7.29289 14.8787C7.68342 14.4882 8.31658 14.4882 8.70711 14.8787L12 18.1716L15.2929 14.8787C15.6834 14.4882 16.3166 14.4882 16.7071 14.8787C17.0976 15.2692 17.0976 15.9024 16.7071 16.2929L12 21Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12 3L16.7071 7.70711C17.0976 8.09763 17.0976 8.7308 16.7071 9.12132C16.3166 9.51185 15.6834 9.51185 15.2929 9.12132L12 5.82843L8.70711 9.12132C8.31658 9.51185 7.68342 9.51185 7.29289 9.12132C6.90237 8.7308 6.90237 8.09763 7.29289 7.70711L12 3Z", - fill: e - } - ) - ] - } - ); - case 79: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M15.1261 13.8458L14.9421 12.8098L19.4321 8.31876L16.5811 5.46676L12.0891 9.95676L11.0541 9.77276C10.1354 9.60806 9.18903 9.70117 8.32007 10.0418L14.8581 16.5788C15.1981 15.71 15.2909 14.764 15.1261 13.8458ZM10.8761 15.4498L5.17006 21.1538C4.98097 21.3429 4.72449 21.4491 4.45706 21.4491C4.18964 21.4491 3.93316 21.3429 3.74406 21.1538C3.55497 20.9647 3.44873 20.7082 3.44873 20.4408C3.44873 20.1733 3.55497 19.9169 3.74406 19.7278L9.44906 14.0238L5.17006 9.74476C5.97428 8.9393 6.96154 8.34051 8.04748 7.99954C9.13343 7.65857 10.2858 7.58557 11.4061 7.78676L15.1531 4.03976C15.3404 3.85239 15.5628 3.70375 15.8075 3.60234C16.0523 3.50093 16.3146 3.44873 16.5796 3.44873C16.8445 3.44873 17.1068 3.50093 17.3516 3.60234C17.5964 3.70375 17.8188 3.85239 18.0061 4.03976L20.8581 6.89276C21.2362 7.271 21.4486 7.78393 21.4486 8.31876C21.4486 8.85359 21.2362 9.36652 20.8581 9.74476L17.1111 13.4918C17.3123 14.6121 17.2393 15.7644 16.8983 16.8503C16.5573 17.9363 15.9585 18.9235 15.1531 19.7278L10.8761 15.4498Z", - fill: e - } - ) - } - ); - case 78: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M10.3738 14.7682L4.71782 20.4252C4.62491 20.5181 4.51461 20.5918 4.39322 20.6421C4.27182 20.6924 4.14172 20.7183 4.01032 20.7183C3.87893 20.7183 3.74882 20.6924 3.62743 20.6421C3.50603 20.5918 3.39573 20.5181 3.30282 20.4252C3.20991 20.3323 3.13621 20.222 3.08593 20.1006C3.03565 19.9792 3.00977 19.8491 3.00977 19.7177C3.00977 19.5863 3.03565 19.4562 3.08593 19.3348C3.13621 19.2134 3.20991 19.1031 3.30282 19.0102L8.95982 13.3542L4.71782 9.11023C5.51528 8.31207 6.49404 7.71876 7.57055 7.38093C8.64705 7.04311 9.78932 6.97082 10.8998 7.17023L14.6168 3.45423C14.9919 3.07928 15.5005 2.86865 16.0308 2.86865C16.5612 2.86865 17.0698 3.07928 17.4448 3.45423L20.2738 6.28223C20.4596 6.46795 20.607 6.68847 20.7076 6.93117C20.8081 7.17387 20.8599 7.43401 20.8599 7.69672C20.8599 7.95944 20.8081 8.21957 20.7076 8.46228C20.607 8.70498 20.4596 8.9255 20.2738 9.11123L16.5578 12.8272C16.7573 13.938 16.6849 15.0805 16.3469 16.1572C16.0089 17.2339 15.4153 18.2128 14.6168 19.0102L10.3738 14.7682Z", - fill: e - } - ) - } - ); - case 80: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M18.5 5.5C18.5 6.32843 17.8284 7 17 7C16.1716 7 15.5 6.32843 15.5 5.5C15.5 4.67157 16.1716 4 17 4C17.8284 4 18.5 4.67157 18.5 5.5ZM17.75 8.40549C19.0439 8.07245 20 6.89788 20 5.5C20 3.84315 18.6569 2.5 17 2.5C15.3431 2.5 14 3.84315 14 5.5C14 5.62969 14.0082 5.75746 14.0242 5.88281L9.41879 7.72498C8.87272 6.98212 7.99266 6.5 7 6.5C5.34315 6.5 4 7.84315 4 9.5C4 10.8979 4.95608 12.0725 6.25 12.4055V15.5C6.25 15.5315 6.25194 15.5625 6.25572 15.593C6.49371 15.5323 6.74308 15.5 7 15.5C7.25692 15.5 7.50629 15.5323 7.74429 15.593C7.74806 15.5625 7.75 15.5315 7.75 15.5V12.4055C8.34606 12.2521 8.87043 11.9201 9.26267 11.4699L14.0659 13.8716C14.0227 14.0742 14 14.2845 14 14.5C14 14.6297 14.0082 14.7575 14.0242 14.8828L9.41879 16.725C9.45555 16.775 9.49081 16.8262 9.52448 16.8785C8.99072 16.0492 8.0595 15.5 7 15.5C5.34315 15.5 4 16.8431 4 18.5C4 20.1569 5.34315 21.5 7 21.5C8.65685 21.5 10 20.1569 10 18.5C10 18.3705 9.99179 18.2429 9.97587 18.1177L14.5815 16.2754C15.1276 17.0181 16.0075 17.5 17 17.5C18.6569 17.5 20 16.1569 20 14.5C20 12.8431 18.6569 11.5 17 11.5C16.097 11.5 15.2872 11.8989 14.7372 12.5302L9.93405 10.1286C9.97726 9.92587 10 9.71559 10 9.5C10 9.37048 9.99179 9.24288 9.97587 9.11769L14.5815 7.27543C14.9851 7.82428 15.571 8.23074 16.25 8.40549V11.5C16.25 11.5315 16.2519 11.5625 16.2557 11.593C16.4937 11.5323 16.7431 11.5 17 11.5C17.2569 11.5 17.5063 11.5323 17.7443 11.593C17.7481 11.5625 17.75 11.5315 17.75 11.5V8.40549ZM7 11C7.82843 11 8.5 10.3284 8.5 9.5C8.5 8.67157 7.82843 8 7 8C6.17157 8 5.5 8.67157 5.5 9.5C5.5 10.3284 6.17157 11 7 11ZM17 16C17.8284 16 18.5 15.3284 18.5 14.5C18.5 13.6716 17.8284 13 17 13C16.1716 13 15.5 13.6716 15.5 14.5C15.5 15.3284 16.1716 16 17 16ZM8.5 18.5C8.5 19.3284 7.82843 20 7 20C6.17157 20 5.5 19.3284 5.5 18.5C5.5 17.6716 6.17157 17 7 17C7.82843 17 8.5 17.6716 8.5 18.5Z", - fill: e - } - ) - } - ); - case 81: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M7.28033 6.28033C7.57322 5.98744 7.57322 5.51256 7.28033 5.21967C6.98744 4.92678 6.51256 4.92678 6.21967 5.21967L3.21967 8.21967C2.92678 8.51256 2.92678 8.98744 3.21967 9.28033L6.21967 12.2803C6.51256 12.5732 6.98744 12.5732 7.28033 12.2803C7.57322 11.9874 7.57322 11.5126 7.28033 11.2197L5.56066 9.5H15.75C16.1642 9.5 16.5 9.16421 16.5 8.75C16.5 8.33579 16.1642 8 15.75 8H5.56066L7.28033 6.28033ZM17.2197 18.2197C16.9268 18.5126 16.9268 18.9874 17.2197 19.2803C17.5126 19.5732 17.9874 19.5732 18.2803 19.2803L21.2803 16.2803C21.5732 15.9874 21.5732 15.5126 21.2803 15.2197L18.2803 12.2197C17.9874 11.9268 17.5126 11.9268 17.2197 12.2197C16.9268 12.5126 16.9268 12.9874 17.2197 13.2803L18.9393 15L8.75 15C8.33579 15 8 15.3358 8 15.75C8 16.1642 8.33579 16.5 8.75 16.5L18.9393 16.5L17.2197 18.2197Z", - fill: e - } - ) - } - ); - case 82: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M19.5957 15.0463C17.8929 16.3685 15.1255 17.2286 12.001 17.2286C8.86993 17.2286 6.09748 16.3649 4.39561 15.0379C5.61353 18.04 8.55819 20.1572 11.9973 20.1572C15.4333 20.1572 18.3757 18.044 19.5957 15.0463ZM19.5958 8.86796C17.893 7.54568 15.1256 6.68555 12.001 6.68555C8.86987 6.68555 6.09737 7.54931 4.39551 8.87632C5.61338 5.87411 8.5581 3.75684 11.9973 3.75684C15.4334 3.75684 18.3758 5.87018 19.5958 8.86796Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx("circle", { cx: "18.4434", cy: "3.17145", r: "1.17145", fill: e }), - /* @__PURE__ */ f.jsx("circle", { cx: "6.436", cy: "21.0361", r: "1.46432", fill: e }), - /* @__PURE__ */ f.jsx("circle", { cx: "4.97147", cy: "4.9285", r: "0.585727", fill: e }) - ] - } - ); - case 83: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M12.5 7V8.5H19C19.2761 8.5 19.5 8.72386 19.5 9V10.25H4.5V7C4.5 6.72386 4.72386 6.5 5 6.5H12C12.2761 6.5 12.5 6.72386 12.5 7ZM4.5 11.75V18C4.5 18.2761 4.72386 18.5 5 18.5H19C19.2761 18.5 19.5 18.2761 19.5 18V11.75H4.5ZM21 9C21 7.89543 20.1046 7 19 7H14C14 5.89543 13.1046 5 12 5H5C3.89543 5 3 5.89543 3 7V18C3 19.1046 3.89543 20 5 20H19C20.1046 20 21 19.1046 21 18V9Z", - fill: e - } - ) - } - ); - case 85: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.0003 15.9505L8.29261 18L9.00075 13.6585L6 10.584L10.1456 9.95053L12.0003 6L13.8544 9.95053L18 10.584L14.9998 13.6585L15.7086 18L12.0003 15.9505Z", - fill: e - } - ) - } - ); - case 84: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M12.3631 15.7941L12.0003 15.5936L11.6375 15.7941L9.28145 17.0964L9.74097 14.2793L9.80192 13.9056L9.53748 13.6347L7.55639 11.6049L10.2588 11.1919L10.6544 11.1315L10.8245 10.7693L12.0002 8.265L13.1755 10.7692L13.3455 11.1315L13.7412 11.1919L16.4438 11.6049L14.4631 13.6347L14.1986 13.9057L14.2596 14.2794L14.7195 17.0965L12.3631 15.7941Z", - stroke: e, - strokeWidth: "1.5" - } - ) - } - ); - case 86: - return /* @__PURE__ */ f.jsxs( - "svg", - { - xmlns: "http://www.w3.org/2000/svg", - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M17.5 18.5L18.5 18.5L18.5 17.5L17.5 17.5L17.5 18.5ZM16 19C16 19.5523 16.4477 20 17 20L19 20C19.5523 20 20 19.5523 20 19L20 17C20 16.4477 19.5523 16 19 16L17 16C16.4477 16 16 16.4477 16 17L16 19Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M11.5 18.5L12.5 18.5L12.5 17.5L11.5 17.5L11.5 18.5ZM10 19C10 19.5523 10.4477 20 11 20L13 20C13.5523 20 14 19.5523 14 19L14 17C14 16.4477 13.5523 16 13 16L11 16C10.4477 16 10 16.4477 10 17L10 19Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M11.5 12.5L12.5 12.5L12.5 11.5L11.5 11.5L11.5 12.5ZM10 13C10 13.5523 10.4477 14 11 14L13 14C13.5523 14 14 13.5523 14 13L14 11C14 10.4477 13.5523 10 13 10L11 10C10.4477 10 10 10.4477 10 11L10 13Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.5 18.5L6.5 18.5L6.5 17.5L5.5 17.5L5.5 18.5ZM4 19C4 19.5523 4.44772 20 5 20L7 20C7.55228 20 8 19.5523 8 19L8 17C8 16.4477 7.55228 16 7 16L5 16C4.44772 16 4 16.4477 4 17L4 19Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.5 12.5L6.5 12.5L6.5 11.5L5.5 11.5L5.5 12.5ZM4 13C4 13.5523 4.44772 14 5 14L7 14C7.55228 14 8 13.5523 8 13L8 11C8 10.4477 7.55228 10 7 10L5 10C4.44772 10 4 10.4477 4 11L4 13Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.5 6.5L6.5 6.5L6.5 5.5L5.5 5.5L5.5 6.5ZM4 7C4 7.55228 4.44772 8 5 8L7 8C7.55228 8 8 7.55228 8 7L8 5C8 4.44772 7.55228 4 7 4L5 4C4.44772 4 4 4.44772 4 5L4 7Z", - fill: e - } - ) - ] - } - ); - case 87: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M15.9703 8.228C15.9391 7.93346 15.8935 7.59309 15.8007 7.22146C15.708 6.84982 15.5537 6.44691 15.353 6.01345C15.137 5.59527 14.8747 5.14582 14.5197 4.72764C14.3806 4.55746 14.2262 4.40255 14.0719 4.23236C14.319 3.25636 13.7785 2.40473 13.7785 2.40473C12.8372 2.34291 12.2511 2.69927 12.0351 2.85418C12.004 2.83891 11.9583 2.82291 11.9272 2.80764C11.7728 2.74582 11.6033 2.684 11.4337 2.62145C11.2642 2.57491 11.0939 2.51309 10.9244 2.48182C10.7548 2.43527 10.5693 2.40473 10.3846 2.37345C10.3534 2.37345 10.323 2.35818 10.2918 2.35818C9.89041 1.05709 8.71805 0.5 8.71805 0.5C7.37542 1.36764 7.11312 2.52909 7.11312 2.52909C7.11312 2.52909 7.11312 2.56036 7.09791 2.59091C7.0211 2.60618 6.95879 2.63745 6.88199 2.65273C6.78924 2.684 6.68128 2.71455 6.58853 2.76109C6.49579 2.80764 6.38783 2.83818 6.29508 2.88473C6.09438 2.97782 5.90961 3.07091 5.7089 3.17927C5.52323 3.28356 5.34306 3.39741 5.1691 3.52036C5.13794 3.50509 5.12272 3.48909 5.12272 3.48909C3.31709 2.79236 1.71289 3.62873 1.71289 3.62873C1.57377 5.56473 2.43818 6.77273 2.60773 6.98946C2.56136 7.11309 2.53093 7.22146 2.48456 7.34582C2.34703 7.78538 2.24883 8.23638 2.19111 8.69346C2.17589 8.75527 2.17589 8.83309 2.15995 8.89491C0.493434 9.716 0 11.4193 0 11.4193C1.389 13.0302 3.02436 13.1233 3.02436 13.1233C3.22868 13.4952 3.46636 13.8477 3.73444 14.1764C3.84241 14.316 3.96558 14.4396 4.08948 14.5793C3.58011 16.0353 4.16629 17.2585 4.16629 17.2585C5.72484 17.3204 6.74287 16.5771 6.95879 16.4069L7.42179 16.5465C7.90001 16.6702 8.39417 16.748 8.87238 16.7633H9.50494C10.2302 17.8164 11.5265 17.956 11.5265 17.956C12.4366 16.98 12.4989 16.0353 12.4989 15.8185V15.8033V15.772V15.7255C12.6844 15.5858 12.8691 15.4469 13.0546 15.292C13.4249 14.9669 13.7335 14.5793 14.011 14.1771C14.0422 14.1458 14.0574 14.1 14.0879 14.0687C15.1218 14.1305 15.8471 13.4185 15.8471 13.4185C15.6776 12.3342 15.0602 11.8076 14.9371 11.7145L14.9218 11.6993L14.9066 11.684L14.8914 11.6687C14.8914 11.6069 14.9066 11.5451 14.9066 11.4673C14.9218 11.3436 14.9218 11.2353 14.9218 11.1109V10.956V10.7545V10.6615C14.9218 10.6302 14.9218 10.5996 14.9066 10.5684L14.8755 10.3822C14.8602 10.2585 14.8291 10.1502 14.8139 10.0258C14.7063 9.56775 14.5294 9.12895 14.2893 8.72473C14.0476 8.33337 13.7514 7.97874 13.4097 7.67164C13.0784 7.37775 12.7037 7.1373 12.2989 6.95891C11.9139 6.77921 11.5022 6.66399 11.0802 6.61782C10.8794 6.58655 10.6635 6.58655 10.4628 6.58655H10.3701H10.1542C10.0462 6.60182 9.93823 6.61782 9.84548 6.63309C9.42885 6.71018 9.04338 6.86509 8.70356 7.06655C8.36373 7.268 8.07101 7.53127 7.82393 7.82509C7.58446 8.10453 7.3963 8.42439 7.26818 8.76982C7.145 9.09491 7.06748 9.45127 7.05226 9.77636V10.148C7.05226 10.1945 7.05226 10.2251 7.06748 10.2716C7.11546 10.7486 7.2915 11.2036 7.57685 11.588C7.76234 11.836 7.96232 12.0215 8.19419 12.1764C8.42532 12.3313 8.65719 12.4396 8.90427 12.5175C9.15134 12.5953 9.38248 12.6258 9.5984 12.6105H9.92156C9.95272 12.6105 9.98315 12.5953 9.99837 12.5953C10.0295 12.5953 10.0447 12.58 10.0752 12.58C10.1215 12.5647 10.1831 12.5487 10.2295 12.5335C10.3223 12.5022 10.415 12.4564 10.507 12.4251C10.5998 12.3785 10.6766 12.332 10.7382 12.2855C10.7534 12.2702 10.7845 12.2542 10.7997 12.2389C10.8183 12.2249 10.8338 12.2072 10.8454 12.1871C10.857 12.1669 10.8645 12.1446 10.8674 12.1215C10.8703 12.0984 10.8686 12.0749 10.8623 12.0525C10.856 12.0301 10.8454 12.0091 10.8309 11.9909C10.801 11.9615 10.7633 11.9414 10.7222 11.9332C10.6812 11.9249 10.6386 11.9288 10.5998 11.9444C10.5845 11.9596 10.5686 11.9596 10.5382 11.9756C10.4741 12.0082 10.4069 12.0341 10.3375 12.0527C10.2607 12.068 10.1831 12.0993 10.1063 12.1145C10.06 12.1145 10.0295 12.1298 9.98315 12.1298H9.72158C9.72158 12.1298 9.70637 12.1298 9.72158 12.1298H9.65927C9.64333 12.1298 9.6129 12.1298 9.59768 12.1145C9.42813 12.0833 9.24264 12.0375 9.07309 11.9596C8.90354 11.8818 8.73327 11.7735 8.59487 11.6345C8.44054 11.4949 8.31736 11.34 8.2094 11.1545C8.10144 10.9691 8.03985 10.7676 8.00869 10.5662C7.99348 10.4578 7.97754 10.3495 7.99348 10.2411V10.148C7.99348 10.1633 7.99348 10.148 7.99348 10.148V10.1167V10.0702C7.99348 10.0084 8.00869 9.96182 8.02463 9.9C8.10611 9.4212 8.33879 8.98138 8.68834 8.64546C8.78109 8.55236 8.87383 8.47527 8.98179 8.41346C9.08976 8.33636 9.19772 8.27382 9.30568 8.22727C9.41364 8.18073 9.53682 8.13418 9.66072 8.10364C9.7839 8.07236 9.9078 8.04182 10.031 8.04182C10.0926 8.04182 10.1542 8.02655 10.2165 8.02655H10.3396C10.3549 8.02655 10.3396 8.02655 10.3396 8.02655H10.4012C10.8129 8.06105 11.2127 8.18249 11.5743 8.38291C12.0677 8.66146 12.4844 9.07964 12.7315 9.59091C12.8546 9.83891 12.9474 10.1175 12.9938 10.412C13.009 10.4891 13.009 10.5516 13.0249 10.6287V11.0316C13.0249 11.1087 13.0097 11.1865 13.0097 11.2636C12.9945 11.3407 12.9945 11.4185 12.9785 11.4956L12.9322 11.7276C12.9169 11.8047 12.8394 12.0222 12.793 12.1771C12.7467 12.332 12.5307 12.7502 12.3453 12.9982C11.9704 13.5129 11.4712 13.9234 10.8947 14.1909C10.6012 14.3145 10.3085 14.4229 9.99982 14.4695C9.84741 14.5004 9.69231 14.516 9.53682 14.516H9.30568C9.32089 14.516 9.30568 14.516 9.30568 14.516H9.29046C9.21366 14.516 9.12091 14.516 9.04338 14.5007C8.70356 14.4695 8.37967 14.4076 8.05579 14.3145C7.73191 14.2215 7.42324 14.0978 7.12979 13.9429C6.54189 13.6254 6.02271 13.1937 5.60239 12.6731C5.40168 12.4098 5.21692 12.1313 5.06258 11.8367C4.90825 11.5422 4.80029 11.2324 4.70754 10.9233C4.61732 10.6108 4.56549 10.2884 4.55321 9.96327V9.60691V9.48327C4.55321 9.32836 4.56843 9.15818 4.59958 8.988C4.6148 8.81782 4.64596 8.66291 4.67639 8.49273C4.70682 8.32255 4.75319 8.16764 4.79956 7.99746C4.84594 7.82727 5.00027 7.36255 5.13939 7.068C5.4169 6.47964 5.77194 5.95309 6.18857 5.53491C6.29653 5.42655 6.40449 5.33346 6.52839 5.24036C6.57477 5.19382 6.68273 5.10073 6.8059 5.02364C6.92908 4.94655 7.05298 4.86873 7.19138 4.80691C7.25297 4.77564 7.31455 4.74509 7.39208 4.71382C7.42324 4.69855 7.45367 4.68255 7.50004 4.66727C7.5312 4.652 7.56163 4.636 7.60801 4.62073C7.74712 4.55891 7.88552 4.51236 8.02463 4.46582C8.05579 4.45055 8.10144 4.45055 8.1326 4.43455C8.16375 4.41855 8.2094 4.41927 8.24056 4.40327C8.27171 4.38727 8.37967 4.372 8.45648 4.34145C8.48764 4.32618 8.53328 4.32618 8.56444 4.31018C8.5956 4.31018 8.64125 4.29491 8.6724 4.29491C8.70356 4.29491 8.74921 4.27964 8.78036 4.27964L8.90354 4.24836C8.9347 4.24836 8.98035 4.23309 9.0115 4.23309C9.05787 4.23309 9.08831 4.21782 9.13468 4.21782C9.16584 4.21782 9.22742 4.20255 9.25786 4.20255C9.28829 4.20255 9.30423 4.20255 9.33466 4.18727H9.44262C9.48899 4.18727 9.51943 4.18727 9.5658 4.172H9.62739C9.62739 4.172 9.6426 4.172 9.62739 4.172H10.1984C10.4759 4.18727 10.7541 4.21855 11.0164 4.26509C11.5319 4.35505 12.0311 4.522 12.4974 4.76036C12.9309 4.97026 13.3355 5.23575 13.7009 5.55018C13.7161 5.56545 13.7473 5.58145 13.7625 5.612C13.7777 5.62727 13.8089 5.64327 13.8241 5.67382C13.8705 5.70509 13.9009 5.75091 13.9473 5.78218C13.9937 5.81346 14.0241 5.85927 14.0705 5.89055C14.1016 5.93709 14.1473 5.96764 14.1784 6.01418C14.5901 6.43846 14.9338 6.92423 15.1972 7.45418C15.2124 7.46946 15.2124 7.48546 15.2283 7.516C15.2435 7.53127 15.2435 7.54727 15.2595 7.57782C15.2754 7.60836 15.2906 7.65491 15.3211 7.68618C15.3363 7.71745 15.3522 7.76327 15.3674 7.79455C15.3827 7.82582 15.3986 7.87164 15.4138 7.90291C15.4754 8.04255 15.5218 8.18146 15.5682 8.32109C15.645 8.53782 15.6913 8.724 15.7377 8.87891C15.7462 8.90956 15.7644 8.93664 15.7894 8.95616C15.8145 8.97567 15.8451 8.98658 15.8768 8.98727C15.9536 8.98727 16 8.92546 16 8.84764C15.9848 8.66146 15.9848 8.46073 15.9688 8.228H15.9703Z", - fill: e - } - ) - } - ); - case 88: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 11 11", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M6.3335 5.33333C6.3335 5.88562 5.88578 6.33333 5.3335 6.33333C4.78121 6.33333 4.3335 5.88562 4.3335 5.33333C4.3335 4.78105 4.78121 4.33333 5.3335 4.33333C5.88578 4.33333 6.3335 4.78105 6.3335 5.33333Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.3335 5C5.1494 5 5.00016 5.14924 5.00016 5.33333C5.00016 5.51743 5.1494 5.66667 5.3335 5.66667C5.51759 5.66667 5.66683 5.51743 5.66683 5.33333C5.66683 5.14924 5.51759 5 5.3335 5ZM5.3335 6.33333C5.88578 6.33333 6.3335 5.88562 6.3335 5.33333C6.3335 4.78105 5.88578 4.33333 5.3335 4.33333C4.78121 4.33333 4.3335 4.78105 4.3335 5.33333C4.3335 5.88562 4.78121 6.33333 5.3335 6.33333Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.3335 7C6.25397 7 7.00016 6.25381 7.00016 5.33333C7.00016 4.41286 6.25397 3.66667 5.3335 3.66667C4.41302 3.66667 3.66683 4.41286 3.66683 5.33333C3.66683 6.25381 4.41302 7 5.3335 7ZM5.3335 8.33333C6.99035 8.33333 8.3335 6.99019 8.3335 5.33333C8.3335 3.67648 6.99035 2.33333 5.3335 2.33333C3.67664 2.33333 2.3335 3.67648 2.3335 5.33333C2.3335 6.99019 3.67664 8.33333 5.3335 8.33333Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.3335 9C7.35854 9 9.00016 7.35838 9.00016 5.33333C9.00016 3.30829 7.35854 1.66667 5.3335 1.66667C3.30845 1.66667 1.66683 3.30829 1.66683 5.33333C1.66683 7.35838 3.30845 9 5.3335 9ZM5.3335 10.3333C8.09492 10.3333 10.3335 8.09476 10.3335 5.33333C10.3335 2.57191 8.09492 0.333332 5.3335 0.333332C2.57207 0.333332 0.333496 2.57191 0.333496 5.33333C0.333496 8.09476 2.57207 10.3333 5.3335 10.3333Z", - fill: e - } - ) - ] - } - ); - case 89: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "rect", - { - x: "3.66666", - y: "4.1665", - width: "14.6667", - height: "1.83333", - rx: "0.916667", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "rect", - { - x: "3.66666", - y: "7.8335", - width: "14.6667", - height: "1.83333", - rx: "0.916667", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.81295 13.3333C6.0544 12.6502 6.42699 12.029 6.90046 11.5H4.58332C4.07706 11.5 3.66666 11.9104 3.66666 12.4167C3.66666 12.9229 4.07706 13.3333 4.58332 13.3333H5.81295ZM16.187 13.3333H17.4167C17.9229 13.3333 18.3333 12.9229 18.3333 12.4167C18.3333 11.9104 17.9229 11.5 17.4167 11.5H15.0995C15.573 12.029 15.9456 12.6502 16.187 13.3333Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M11 19.7502C13.5313 19.7502 15.5833 17.6981 15.5833 15.1668C15.5833 12.6355 13.5313 10.5835 11 10.5835C8.46868 10.5835 6.41666 12.6355 6.41666 15.1668C6.41666 17.6981 8.46868 19.7502 11 19.7502ZM11 13.3335C10.7569 13.3335 10.5237 13.2369 10.3518 13.065C10.1799 12.8931 10.0833 12.6599 10.0833 12.4168C10.0833 12.1737 10.1799 11.9406 10.3518 11.7686C10.5237 11.5967 10.7569 11.5002 11 11.5002C11.2431 11.5002 11.4763 11.5967 11.6482 11.7686C11.8201 11.9406 11.9167 12.1737 11.9167 12.4168C11.9167 12.6599 11.8201 12.8931 11.6482 13.065C11.4763 13.2369 11.2431 13.3335 11 13.3335ZM11 14.2502C11.2431 14.2502 11.4763 14.3467 11.6482 14.5186C11.8201 14.6906 11.9167 14.9237 11.9167 15.1668V17.9168C11.9167 18.1599 11.8201 18.3931 11.6482 18.565C11.4763 18.7369 11.2431 18.8335 11 18.8335C10.7569 18.8335 10.5237 18.7369 10.3518 18.565C10.1799 18.3931 10.0833 18.1599 10.0833 17.9168V15.1668C10.0833 14.9237 10.1799 14.6906 10.3518 14.5186C10.5237 14.3467 10.7569 14.2502 11 14.2502Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M16.187 16.9998C16.3897 16.4264 16.5 15.8093 16.5 15.1665L17.4167 15.1665C17.9229 15.1665 18.3333 15.5769 18.3333 16.0832C18.3333 16.5894 17.9229 16.9998 17.4167 16.9998H16.187ZM5.81295 16.9998H4.58332C4.07706 16.9998 3.66666 16.5894 3.66666 16.0832C3.66666 15.5769 4.07706 15.1665 4.58332 15.1665L5.49999 15.1665C5.49999 15.8093 5.61027 16.4264 5.81295 16.9998Z", - fill: e - } - ) - ] - } - ); - case 90: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 24 24", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx( - "rect", - { - x: "3.66666", - y: "4.1665", - width: "14.6667", - height: "1.83333", - rx: "0.916667", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "rect", - { - x: "3.66666", - y: "7.8335", - width: "14.6667", - height: "1.83333", - rx: "0.916667", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M5.81295 13.3333C6.0544 12.6502 6.42699 12.029 6.90046 11.5H4.58332C4.07706 11.5 3.66666 11.9104 3.66666 12.4167C3.66666 12.9229 4.07706 13.3333 4.58332 13.3333H5.81295ZM16.187 13.3333H17.4167C17.9229 13.3333 18.3333 12.9229 18.3333 12.4167C18.3333 11.9104 17.9229 11.5 17.4167 11.5H15.0995C15.573 12.029 15.9456 12.6502 16.187 13.3333Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M11 19.7502C13.5313 19.7502 15.5833 17.6981 15.5833 15.1668C15.5833 12.6355 13.5313 10.5835 11 10.5835C8.46868 10.5835 6.41666 12.6355 6.41666 15.1668C6.41666 17.6981 8.46868 19.7502 11 19.7502ZM8.7475 12.8357C9.10548 12.4777 9.68589 12.4777 10.0439 12.8357L10.9999 13.7917L11.9098 12.8818C12.2678 12.5238 12.8482 12.5238 13.2061 12.8818C13.5641 13.2398 13.5641 13.8202 13.2061 14.1781L12.2962 15.0881L13.2848 16.0766C13.6428 16.4346 13.6428 17.015 13.2848 17.373C12.9268 17.731 12.3464 17.731 11.9884 17.373L10.9999 16.3844L9.96523 17.419C9.60725 17.777 9.02685 17.777 8.66887 17.419C8.31089 17.0611 8.31089 16.4807 8.66887 16.1227L9.70349 15.0881L8.7475 14.1321C8.38952 13.7741 8.38952 13.1937 8.7475 12.8357Z", - fill: e - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M17.9928 16.7962C17.9976 16.698 18 16.5992 18 16.4998C18 16.0857 17.958 15.6815 17.8782 15.291C18.1504 15.4499 18.3333 15.7452 18.3333 16.0832C18.3333 16.3712 18.2005 16.6281 17.9928 16.7962ZM6.02053 16.9998H4.58332C4.07706 16.9998 3.66666 16.5894 3.66666 16.0832C3.66666 15.5769 4.07706 15.1665 4.58332 15.1665H6.14867C6.05136 15.5953 5.99999 16.0416 5.99999 16.4998C5.99999 16.6682 6.00693 16.835 6.02053 16.9998Z", - fill: e - } - ) - ] - } - ); - case 91: - return /* @__PURE__ */ f.jsxs( - "svg", - { - xmlns: "http://www.w3.org/2000/svg", - width: n, - height: n, - viewBox: "0 0 24 24", - children: [ - /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx("clipPath", { id: "clip1", children: /* @__PURE__ */ f.jsx("path", { d: "M 2 0.480469 L 22 0.480469 L 22 22.519531 L 2 22.519531 Z M 2 0.480469 " }) }) }), - /* @__PURE__ */ f.jsx("g", { id: "surface1", children: /* @__PURE__ */ f.jsx("g", { clipPath: "url(#clip1)", clipRule: "nonzero", children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M 18.832031 11.5 L 18.898438 15.839844 L 16.125 14.1875 L 16.125 20.316406 L 12.472656 22.519531 L 12.472656 0.480469 L 21.671875 5.921875 L 21.671875 10.8125 L 16.195312 7.503906 L 16.195312 9.984375 Z M 2.328125 5.921875 L 11.527344 0.480469 L 11.527344 22.519531 L 7.804688 20.316406 L 7.804688 7.4375 L 2.328125 10.742188 Z M 2.328125 5.921875 ", - fill: e - } - ) }) }) - ] - } - ); - case 92: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M7.73067 9.60323L7.78767 8.80523L8.48292 8.40848C9.15047 8.02162 9.76381 7.54799 10.3069 6.99998C12.2869 5.01923 12.8914 2.69048 12.1632 1.96148C11.4342 1.23398 9.10542 1.83698 7.12467 3.81773C6.55467 4.38773 6.07692 5.01023 5.71617 5.64173L5.31867 6.33698L4.52142 6.39398C3.86717 6.43987 3.24633 6.70033 2.75517 7.13498C3.69264 7.54751 4.54496 8.13124 5.26842 8.85623C6.00342 9.59123 6.58242 10.444 6.98967 11.3695C7.42432 10.8783 7.68478 10.2575 7.73067 9.60323ZM5.50092 11.725C5.35009 11.9301 5.18386 12.1234 5.00367 12.3032C4.12467 13.1822 2.79867 13.447 1.02567 13.0982C0.677672 11.326 0.943172 9.99998 1.82067 9.12098C2.00667 8.93648 2.20017 8.76998 2.39967 8.62373C1.78483 8.32337 1.12778 8.11851 0.451172 8.01623C0.669 7.33248 1.04788 6.71105 1.55592 6.20423C2.31972 5.43853 3.33459 4.97478 4.41342 4.89848C4.86626 4.11487 5.42111 3.39483 6.06342 2.75723C8.55342 0.267232 11.7589 -0.563018 13.2237 0.900982C14.6877 2.36573 13.8567 5.57123 11.3674 8.06048C10.7298 8.7028 10.0098 9.25764 9.22617 9.71048C9.14988 10.7893 8.68613 11.8042 7.92042 12.568C7.41404 13.0767 6.79248 13.4559 6.10842 13.6735C6.00614 12.9969 5.80129 12.3398 5.50092 11.725V11.725ZM4.20717 9.91748C4.0864 9.79642 3.95024 9.69178 3.80217 9.60623C3.47817 9.71873 3.09717 9.96623 2.74842 10.3142C2.58417 10.4792 2.38317 11.0335 2.38092 11.743C3.09042 11.7407 3.64692 11.5375 3.80967 11.3755C4.15842 11.026 4.40592 10.6457 4.51767 10.3217C4.43236 10.1737 4.32797 10.0375 4.20717 9.91673V9.91748ZM10.0407 4.08248C9.96741 4.01369 9.90873 3.93087 9.8681 3.83895C9.82747 3.74703 9.80573 3.64789 9.80417 3.5474C9.80261 3.44692 9.82126 3.34715 9.85902 3.25401C9.89677 3.16087 9.95285 3.07628 10.0239 3.00524C10.095 2.9342 10.1797 2.87818 10.2728 2.84049C10.366 2.8028 10.4658 2.78422 10.5663 2.78586C10.6667 2.78749 10.7659 2.8093 10.8578 2.84999C10.9497 2.89068 11.0324 2.94942 11.1012 3.02273C11.2305 3.16535 11.3 3.35225 11.2953 3.54471C11.2907 3.73718 11.2122 3.92048 11.0761 4.05666C10.94 4.19284 10.7568 4.27148 10.5643 4.27628C10.3718 4.28109 10.1849 4.2117 10.0422 4.08248H10.0407Z", - fill: e - } - ) - } - ); - case 93: - return /* @__PURE__ */ f.jsxs( - "svg", - { - width: n, - height: n, - viewBox: "0 0 64 64", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }), - /* @__PURE__ */ f.jsx( - "g", - { - id: "SVGRepo_tracerCarrier", - strokeLinecap: "round", - strokeLinejoin: "round" - } - ), - /* @__PURE__ */ f.jsxs("g", { id: "SVGRepo_iconCarrier", children: [ - /* @__PURE__ */ f.jsx( - "path", - { - d: "M31.885 16c-8.124 0-7.617 3.523-7.617 3.523l.01 3.65h7.752v1.095H21.197S16 23.678 16 31.876c0 8.196 4.537 7.906 4.537 7.906h2.708v-3.804s-.146-4.537 4.465-4.537h7.688s4.32.07 4.32-4.175v-7.019S40.374 16 31.885 16zm-4.275 2.454c.771 0 1.395.624 1.395 1.395s-.624 1.395-1.395 1.395a1.393 1.393 0 0 1-1.395-1.395c0-.771.624-1.395 1.395-1.395z", - fill: "url(#a)" - } - ), - /* @__PURE__ */ f.jsx( - "path", - { - d: "M32.115 47.833c8.124 0 7.617-3.523 7.617-3.523l-.01-3.65H31.97v-1.095h10.832S48 40.155 48 31.958c0-8.197-4.537-7.906-4.537-7.906h-2.708v3.803s.146 4.537-4.465 4.537h-7.688s-4.32-.07-4.32 4.175v7.019s-.656 4.247 7.833 4.247zm4.275-2.454a1.393 1.393 0 0 1-1.395-1.395c0-.77.624-1.394 1.395-1.394s1.395.623 1.395 1.394c0 .772-.624 1.395-1.395 1.395z", - fill: "url(#b)" - } - ), - /* @__PURE__ */ f.jsxs("defs", { children: [ - /* @__PURE__ */ f.jsxs( - "linearGradient", - { - id: "a", - x1: "19.075", - y1: "18.782", - x2: "34.898", - y2: "34.658", - gradientUnits: "userSpaceOnUse", - children: [ - /* @__PURE__ */ f.jsx("stop", { stopColor: "#387EB8" }), - /* @__PURE__ */ f.jsx("stop", { offset: "1", stopColor: "#366994" }) - ] - } - ), - /* @__PURE__ */ f.jsxs( - "linearGradient", - { - id: "b", - x1: "28.809", - y1: "28.882", - x2: "45.803", - y2: "45.163", - gradientUnits: "userSpaceOnUse", - children: [ - /* @__PURE__ */ f.jsx("stop", { stopColor: "#FFE052" }), - /* @__PURE__ */ f.jsx("stop", { offset: "1", stopColor: "#FFC331" }) - ] - } - ) - ] }) - ] }) - ] - } - ); - case 94: - return /* @__PURE__ */ f.jsx( - "svg", - { - width: n, - height: n, - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 100 100", - children: /* @__PURE__ */ f.jsx( - "path", - { - d: "M69.51,44A76.67,76.67,0,0,0,71.44,33.9c0-.35.08-.73.13-1.16.66-6.37-.21-6.92-.21-6.92h0a.25.25,0,0,0-.17-.06c-.08,0-.16.07-.24.17l-3,3.15h0c-2.51,2.52-6.29,6.28-9.8,9.8l-6.8-6.8A12.68,12.68,0,0,0,49,29.92a11.51,11.51,0,0,0-2.62-1.45c-.2-.09-.41-.17-.64-.25s-.43-.17-.66-.25a76,76,0,0,0-11-2.06l-.46-.07c-6.71-.95-6.71.35-6.71.35h0c0,.13,0,.29.26.49.44.3,7,6.9,12.78,12.73,0,0-6.69,5.75-9.13,9.18-.11.16-.23.32-.33.49h0l0,0A14.43,14.43,0,0,0,29,52.32,78.82,78.82,0,0,0,27.1,62h0s-.71,5.07-.24,7.77c0,0,0,0,0,0a.47.47,0,0,0,0,.17l0,0a.26.26,0,0,0,.07.14c.11.2.23.36.42.36a.29.29,0,0,0,.21-.12c.09-.11,3.39-3.53,4.24-4.41l8.55-8.53,7.33,7.33,0,0a.1.1,0,0,1,0,.06l.12.12a11.58,11.58,0,0,0,5.51,3.42s1.32.36,3.26.79l1.47.35c12.57,2.87,13.2,1,13.23.88s.1-.33-.22-.59-6.82-6.91-12.63-12.75L66,49.67A11.71,11.71,0,0,0,69.51,44Zm-37,18.39C30.92,64,29.75,65.15,29,65.92c0-5.18,2-12.43,2.07-13.07,1.44-4,3.89-6.09,7.51-6.09a18.79,18.79,0,0,1,7.52,1.93C43.09,51.8,36.48,58.54,32.48,62.43Zm11.44-22.1-.05,0c-.15-.16-.3-.29-.45-.43-2.93-2.89-6.21-6.14-8.49-8.5a43.13,43.13,0,0,1-3.49-3.5c5.18,0,12.43,1.94,13.07,2.07,3.11,1,4.92,2.58,5.7,4.79,1.17,3.49-.38,7.64-1.56,10.23C47.47,43.81,45.79,42.17,43.92,40.33ZM63.55,65,67,68.51c-5.18,0-12.43-1.94-13.08-2.07-3.11-1-4.91-2.59-5.69-4.79-1.16-3.51.38-7.78,1.56-10.23C52.94,54.39,59.66,61,63.55,65ZM59.92,49.47a18.88,18.88,0,0,1-7.51-1.94l3.77-3.89a10.71,10.71,0,0,0,1-.91,6.3,6.3,0,0,0,.91-1.06c2.73-2.76,5.69-5.74,7.89-7.86,1.56-1.55,2.72-2.73,3.5-3.51,0,5.18-1.94,12.43-2.07,13.08C66,47.53,63.55,49.47,59.92,49.47Z", - fill: e - } - ) - } - ); - case 95: - return /* @__PURE__ */ f.jsxs( - "svg", - { - fill: e, - width: n, - height: n, - viewBox: "0 0 256 256", - id: "Flat", - xmlns: "http://www.w3.org/2000/svg", - children: [ - /* @__PURE__ */ f.jsx("g", { opacity: "0", children: /* @__PURE__ */ f.jsx("circle", { cx: "196.00244", cy: "188", r: "28" }) }), - /* @__PURE__ */ f.jsx("g", { opacity: "0", children: /* @__PURE__ */ f.jsx("circle", { cx: "60", cy: "68", r: "28" }) }), - /* @__PURE__ */ f.jsxs("g", { children: [ - /* @__PURE__ */ f.jsx("path", { d: "M204.00244,152.907l-.00146-33.0271a55.63733,55.63733,0,0,0-16.40137-39.59472L163.31445,56H184a8,8,0,0,0,0-16H144c-.05957,0-.11768.00757-.17676.00891-.20264.00452-.40527.01087-.60742.03064-.13818.01343-.27246.03857-.4082.059-.12256.01831-.24512.03186-.3667.05591-.145.02869-.28565.06811-.42823.10461-.11035.0282-.22167.05213-.33105.08521-.13574.041-.2666.09155-.39941.1394-.11426.04126-.2295.07862-.3418.12525-.11963.04956-.23438.10766-.35108.16284-.1206.05688-.24218.11059-.36083.17383-.10645.05688-.207.12182-.31055.18359-.12158.072-.24414.14087-.36231.22-.10644.071-.20556.15051-.3081.22644-.10742.07971-.21729.15466-.32178.24048-.14453.119-.28076.24792-.417.37671-.05469.05151-.11279.09668-.166.15-.05664.0564-.10449.11792-.15869.17554-.12549.13281-.251.26538-.36719.40649-.0913.11072-.17138.22718-.25537.34156-.07031.0957-.14453.188-.21093.28686-.085.12659-.15918.25782-.23584.38806-.05567.09436-.11524.18616-.167.28309-.06933.12915-.12841.26184-.18994.39379-.04931.10547-.10205.20874-.147.31665-.05225.12647-.09522.25562-.14063.38428-.042.11817-.0874.2345-.124.35523-.03906.1289-.06787.25976-.10059.39013-.03076.123-.06542.24414-.09033.36939-.02978.15137-.04834.30444-.06933.457-.01465.106-.03516.21-.0459.31714q-.03956.39769-.04.79712V88a8,8,0,0,0,16,0V67.31445l24.28516,24.28516A39.73582,39.73582,0,0,1,188.001,119.88086l.00146,33.02637a35.99994,35.99994,0,1,0,16-.00025ZM196.00293,208a20,20,0,1,1,20-20A20.02229,20.02229,0,0,1,196.00293,208Z" }), - /* @__PURE__ */ f.jsx("path", { d: "M118.44141,212.73364c.07031-.0957.14453-.188.21093-.28686.085-.12659.15918-.25782.23584-.38806.05567-.09436.11524-.18616.167-.28309.06933-.12915.12841-.26184.18994-.39379.04931-.10547.10205-.20874.147-.31665.05225-.12647.09521-.25562.14062-.38428.042-.11817.08741-.2345.124-.35523.03906-.1289.06787-.25976.10058-.39013.03077-.12305.06543-.24414.09034-.36939.02978-.15137.04834-.30444.06933-.457.01465-.106.03516-.21.0459-.31714q.03955-.39769.04-.79712V168a8,8,0,0,0-16,0v20.68555L79.71777,164.40039a39.731,39.731,0,0,1-11.71582-28.28125l-.00146-33.02637a35.99994,35.99994,0,1,0-16,.00025l.00146,33.02612a55.63313,55.63313,0,0,0,16.40137,39.5957L92.68848,200H72.00293a8,8,0,1,0,0,16h40c.26367,0,.52734-.014.78955-.03992.11816-.01159.23242-.03369.34912-.05041.1416-.02027.28418-.03687.42481-.0647.13281-.02637.26123-.06274.3916-.0957.123-.03076.24658-.05786.36816-.09473.12647-.03833.24854-.08569.37207-.13.12305-.04395.24658-.0846.36768-.13465.11328-.047.22168-.10217.332-.15405.127-.05957.25439-.116.37842-.18237.10205-.05481.19922-.11731.29834-.17627.12548-.07422.25146-.14527.37353-.22681.10352-.06946.20069-.14722.30078-.22119.10987-.0813.22168-.158.32813-.24561.144-.11792.27881-.246.41406-.37353.05518-.05249.11475-.09851.169-.15283.05664-.0564.10449-.11792.15869-.17554.12549-.13281.251-.26538.36718-.40649C118.27734,212.96448,118.35742,212.848,118.44141,212.73364ZM40,68A20,20,0,1,1,60,88,20.02229,20.02229,0,0,1,40,68Z" }) - ] }) - ] - } - ); - case 96: - return /* @__PURE__ */ f.jsx( - "svg", - { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 64 64", - width: n, - height: n, - fill: e, - children: /* @__PURE__ */ f.jsx("path", { d: "M 4 10 C 3.4478 10 3 10.4478 3 11 C 3 11.5522 3.4478 12 4 12 L 10 12 L 10 18 L 10 21 L 8 21 C 7.4478 21 7 21.4478 7 22 L 7 32 C 7 32.5522 7.4478 33 8 33 L 10 33 L 10 46 L 10 53 C 10 53.5522 10.4478 54 11 54 C 11.5522 54 12 53.5522 12 53 L 12 47 L 17 47 L 17 51 C 17 51.5522 17.4478 52 18 52 L 53 52 C 53.5522 52 54 51.5522 54 51 L 54 47 L 60 47 C 60.5522 47 61 46.5522 61 46 L 61 18 C 61 17.4478 60.5522 17 60 17 L 12 17 L 12 11 C 12 10.4478 11.5522 10 11 10 L 4 10 z M 12 19 L 59 19 L 59 45 L 12 45 L 12 32 L 12 22 L 12 19 z M 24 21 C 17.9346 21 13 25.9346 13 32 C 13 38.0654 17.9346 43 24 43 C 30.0654 43 35 38.0654 35 32 C 35 25.9346 30.0654 21 24 21 z M 47 21 C 40.9346 21 36 25.9346 36 32 C 36 38.0654 40.9346 43 47 43 C 53.0654 43 58 38.0654 58 32 C 58 25.9346 53.0654 21 47 21 z M 9 23 L 10 23 L 10 31 L 9 31 L 9 23 z M 24 23 C 27.4016 23 30.366562 24.897708 31.896484 27.689453 L 28.585938 31 L 26.814453 31 C 26.512326 30.153271 25.846781 29.485609 25 29.183594 L 25 27 C 25 26.7349 24.894431 26.480469 24.707031 26.292969 L 21.71875 23.304688 C 22.44855 23.113022 23.210918 23 24 23 z M 47 23 C 50.4016 23 53.366562 24.897708 54.896484 27.689453 L 51.585938 31 L 49.814453 31 C 49.512326 30.153271 48.846781 29.485609 48 29.183594 L 48 27 C 48 26.7349 47.894431 26.480469 47.707031 26.292969 L 44.71875 23.304688 C 45.44855 23.113022 46.210918 23 47 23 z M 19.689453 24.103516 L 23 27.414062 L 23 29.183594 C 22.152512 29.485442 21.485801 30.152681 21.183594 31 L 19 31 C 18.7349 31 18.480469 31.105569 18.292969 31.292969 L 15.304688 34.28125 C 15.112838 33.551123 15 32.789474 15 32 C 15 28.5984 16.897708 25.633438 19.689453 24.103516 z M 42.689453 24.103516 L 46 27.414062 L 46 29.183594 C 45.152512 29.485442 44.485801 30.152681 44.183594 31 L 42 31 C 41.7349 31 41.480469 31.105569 41.292969 31.292969 L 38.304688 34.28125 C 38.112838 33.551123 38 32.789474 38 32 C 38 28.5984 39.897708 25.633438 42.689453 24.103516 z M 32.695312 29.71875 C 32.887119 30.4488 33 31.210618 33 32 C 33 35.401004 31.101489 38.366326 28.310547 39.896484 L 25 36.585938 L 25 34.816406 C 25.846781 34.514391 26.512326 33.846729 26.814453 33 L 29 33 C 29.2651 33 29.519531 32.894431 29.707031 32.707031 L 32.695312 29.71875 z M 55.695312 29.71875 C 55.887119 30.4488 56 31.210618 56 32 C 56 35.401004 54.101489 38.366326 51.310547 39.896484 L 48 36.585938 L 48 34.816406 C 48.846781 34.514391 49.512326 33.846729 49.814453 33 L 52 33 C 52.2651 33 52.519531 32.894431 52.707031 32.707031 L 55.695312 29.71875 z M 24 31 C 24.5513 31 25 31.4487 25 32 C 25 32.5513 24.5513 33 24 33 C 23.4487 33 23 32.5513 23 32 C 23 31.4487 23.4487 31 24 31 z M 47 31 C 47.5513 31 48 31.4487 48 32 C 48 32.5513 47.5513 33 47 33 C 46.4487 33 46 32.5513 46 32 C 46 31.4487 46.4487 31 47 31 z M 19.414062 33 L 21.183594 33 C 21.485801 33.847319 22.152512 34.514558 23 34.816406 L 23 37 C 23 37.2651 23.105469 37.519531 23.292969 37.707031 L 26.28125 40.695312 C 25.5509 40.887288 24.789741 41 24 41 C 20.5984 41 17.633438 39.102292 16.103516 36.310547 L 19.414062 33 z M 42.414062 33 L 44.183594 33 C 44.485801 33.847319 45.152512 34.514558 46 34.816406 L 46 37 C 46 37.2651 46.105469 37.519531 46.292969 37.707031 L 49.28125 40.695312 C 48.5509 40.887288 47.789741 41 47 41 C 43.5984 41 40.633438 39.102292 39.103516 36.310547 L 42.414062 33 z M 19 47 L 52 47 L 52 50 L 47 50 L 47 49 C 47 48.4478 46.5522 48 46 48 C 45.4478 48 45 48.4478 45 49 L 45 50 L 40 50 L 40 49 C 40 48.4478 39.5522 48 39 48 C 38.4478 48 38 48.4478 38 49 L 38 50 L 33 50 L 33 49 C 33 48.4478 32.5522 48 32 48 C 31.4478 48 31 48.4478 31 49 L 31 50 L 26 50 L 26 49 C 26 48.4478 25.5522 48 25 48 C 24.4478 48 24 48.4478 24 49 L 24 50 L 19 50 L 19 47 z" }) - } - ); - default: - return /* @__PURE__ */ f.jsx("svg", {}); - } -} -const Ie = ({ - icon: t, - color: e = "black", - size: n = "lg", - ...i -}) => { - const r = Xl(), O = DW(KW(".", e), r.colors), o = f4(n, r.iconSizes); - return /* @__PURE__ */ f.jsx( - j, - { - ...i, - sx: { - minWidth: o, - height: "auto", - svg: { - width: o, - height: o - }, - ...i.sx - }, - children: l5(t, O, o) - } - ); -}, gf = { - default: { - border: "1px solid", - borderColor: "grayShade3", - borderRadius: "2px", - backgroundColor: "grayShade3", - cursor: "pointer", - boxShadow: "none", - color: "black", - lineHeight: "15px", - fontSize: "12px", - fontWeight: "bold", - fontFamily: "Inter", - py: "4px", - px: "6px", - ":hover": { - backgroundColor: "grayShade3", - borderColor: "grayShade1" - }, - span: { - width: "4px", - height: "4px", - borderRadius: "50%", - backgroundColor: "gray", - '&[data-active="true"]': { - backgroundColor: "primary" - } - } - }, - highlight: { - backgroundColor: "primaryShade2", - borderColor: "primaryShade2", - ":hover": { - backgroundColor: "primaryShade2", - borderColor: "primary" - } - }, - flex: { - gap: "4px" - } -}, nq = { - horizontal: "row", - vertical: "column-reverse" -}, iq = ({ href: t, newTab: e }) => t ? { - href: t, - as: "a", - rel: "noreferrer", - target: e ? "_blank" : "_self" -} : {}, rq = ({ - icon: t, - href: e, - children: n, - isActive: i, - indicator: r, - sx: O = {}, - newTab: o = !1, - mode: a = "default", - ...s -}) => /* @__PURE__ */ f.jsx( - Sa, - { - ...s, - ...iq({ newTab: o, href: e }), - sx: { ...gf.default, ...gf[a], ...O }, - children: /* @__PURE__ */ f.jsxs( - j, - { - alignItems: "center", - justifyContent: "center", - sx: gf.flex, - flexDirection: nq[r ?? "horizontal"], - children: [ - !!t && /* @__PURE__ */ f.jsx(Ie, { icon: t, size: "xs" }), - r && !t && /* @__PURE__ */ f.jsx("span", { "data-active": i }), - /* @__PURE__ */ f.jsx(z, { children: n }) - ] - } - ) - } -), z0e = Zn(rq), Oq = { - display: "flex", - position: "relative", - flexDirection: "row", - py: "8px", - pr: "15px", - pl: "10px", - cursor: "pointer", - borderRadius: 0, - boxSizing: "border-box", - fontFamily: "label", - fontWeight: "label", - fontSize: "label", - transition: ({ transitions: t }) => t.button, - ":disabled": { - cursor: "default" - } -}, oq = { - position: "absolute", - display: "none", - width: "100%", - height: "100%", - left: 0, - top: 0, - opacity: 0 -}, aq = { - height: "15px", - overflow: "hidden", - display: "inline-block", - svg: { - mr: "11px", - path: { - fill: "primary" - } - } -}, U0e = ({ - children: t, - href: e, - modeNFiles: n, - currentRef: i, - name: r, - value: O, - onHandleUpload: o, - handleClick: a, - validExtensions: s, - isDisabledUploadButton: l, - ...c -}) => /* @__PURE__ */ f.jsx(j, { flexDirection: "column", children: /* @__PURE__ */ f.jsxs( - Sa, - { - disabled: l, - sx: { ...Oq }, - variant: "secondary", - ...c, - onClick: a, - children: [ - /* @__PURE__ */ f.jsx(z, { sx: { ...aq }, children: /* @__PURE__ */ f.jsx(Ie, { color: "primary", size: "sm", icon: ze.upload }) }), - /* @__PURE__ */ f.jsx( - "input", - { - type: "file", - name: r, - style: { - ...oq - }, - ref: i, - multiple: n, - ...s && { accept: s.join(",") }, - onChange: o - } - ), - t - ] - } -) }), sq = { - display: "flex", - justifyContent: "space-between", - alignItems: "center", - "> div": { - ml: "3px", - position: "relative", - paddingRight: "5px" - }, - "> div:after": { - display: "block", - content: '";"', - width: "8px", - height: "8px", - position: "absolute", - right: "-5px", - top: "-1px", - color: "gray" - }, - "> div:last-child:after": { - display: "none" - } -}, lq = { - display: "flex", - justifyContent: "space-between", - alignItems: "center", - button: { - ml: "20px" - } -}, cq = { - width: "100%", - minWidth: "700px", - borderStyle: "solid", - borderWidth: "1px", - borderColor: "grayShade2", - boxShadow: "explorer", - justifyContent: "space-between", - alignItems: "center", - px: "20px", - py: "20px", - zIndex: 1, - backgroundColor: "grayShade3" -}, xe = ({ children: t, bold: e, gray: n, sx: i, ...r }) => /* @__PURE__ */ f.jsx( - xn, - { - variant: `labeling${n ? "Gray" : ""}`, - fontWeight: e ? "label" : void 0, - sx: { wordWrap: "normal", ...i }, - ...r, - children: t - } -); -var c5 = /* @__PURE__ */ ((t) => (t.oneFile = "oneFile", t.nFiles = "nFiles", t.oneFolder = "oneFolder", t))(c5 || {}); -const uq = l4`from { - transform: rotate(50deg) - } - to { - transform: rotate(410deg) - }`, dq = (t, e) => ({ - display: "inline-block", - position: "relative", - width: `${t}px`, - height: `${t}px`, - "> div": { - boxSizing: "border-box", - display: "block", - position: "absolute", - width: `${t}px`, - height: `${t}px`, - borderStyle: "solid", - borderWidth: "3px", - borderRadius: "50%", - animation: `${uq} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite`, - borderLeftColor: e, - borderRightColor: "transparent", - borderTopColor: "transparent", - borderBottomColor: "transparent", - ":nth-of-type(1)": { - animationDelay: "-0.45s" - }, - ":nth-of-type(2)": { - animationDelay: "-0.3s" - }, - ":nth-of-type(3)": { - animationDelay: "-0.15s" - } - } -}), kl = ({ size: t = 20, color: e = "primary", ...n }) => /* @__PURE__ */ f.jsxs(z, { sx: { ...dq(t, e) }, ...n, children: [ - /* @__PURE__ */ f.jsx("div", {}), - /* @__PURE__ */ f.jsx("div", {}), - /* @__PURE__ */ f.jsx("div", {}), - /* @__PURE__ */ f.jsx("div", {}) -] }), fq = { - display: "flex", - flexDirection: "row", - alignItems: "center", - py: "8px", - px: "15px", - borderRadius: 0, - boxSizing: "border-box", - fontFamily: "label", - fontWeight: "label", - fontSize: "label", - cursor: "pointer", - transition: ({ transitions: t }) => t.button, - ":disabled": { - cursor: "default" - }, - "> span": { - mr: "8px", - display: "flex", - height: "15px", - justifyContent: "center", - alignItems: "center" - } -}, hq = (t) => AR[t][":disabled"].color; -const Pn = ({ - icon: t, - children: e, - href: n, - target: i, - sx: r, - external: O = !1, - disabled: o = !1, - intent: a = "primary", - loadingOnly: s = !1, - isLoading: l = !1, - type: c = "button", - ...u -}) => { - const d = /* @__PURE__ */ f.jsxs( - Sa, - { - variant: a, - as: n && !o ? "span" : "button", - disabled: o || l, - sx: { ...fq, ...r }, - type: c, - ...u, - children: [ - t && (!s || !l) && /* @__PURE__ */ f.jsx(Ie, { icon: t, size: "md", color: $q(a) }), - (!s || !l) && e, - l && /* @__PURE__ */ f.jsx( - kl, - { - color: hq(a), - ml: s ? "0px" : "15px" - } - ) - ] - } - ); - return n ? O ? /* @__PURE__ */ f.jsx( - "a", - { - className: "link-button", - href: n, - target: i, - ...i === "_blank" ? { rel: "noopener noreferrer" } : {}, - children: d - } - ) : /* @__PURE__ */ f.jsx(s1, { className: "link-button", to: n, target: i, children: d }) : d; -}, pq = { - primary: "white", - alert: "labels.red" - /* [others]: 'primary' */ -}, $q = (t) => BW(t, "primary")(pq), gq = ({ - value: t, - activeFile: e, - mode: n = c5.oneFile, - onClose: i, - handleSelectFile: r, - fileListValue: O, - rootDir: o, - ...a -}) => { - const s = { - oneFile: { - exploreMode: e ? e.attributes.name : "pick a file", - color: e ? "primary" : "gray", - handleSelect: () => r(e, !1) - }, - nFiles: { - exploreMode: O.map((d) => d.attributes.name).join(" ; ") ?? "pick a file", - color: O.length ? "primary" : "gray", - handleSelect: () => r(O, !1) - }, - oneFolder: { - exploreMode: t || o, - color: "primary", - handleSelect: () => r(t || o, !1) - } - }, { exploreMode: l, color: c, handleSelect: u } = s[n]; - return /* @__PURE__ */ f.jsxs(j, { sx: cq, ...a, children: [ - /* @__PURE__ */ f.jsx(z, { sx: sq, children: n && /* @__PURE__ */ f.jsx( - xe, - { - bold: !0, - sx: { - color: c, - textTransform: "normal", - marginLeft: "0px" - }, - children: l - } - ) }), - /* @__PURE__ */ f.jsxs(z, { sx: lq, children: [ - /* @__PURE__ */ f.jsx(Pn, { variant: "file-secondary", onClick: () => i(!1), children: "Back" }), - /* @__PURE__ */ f.jsx( - Pn, - { - intent: "primary", - disabled: !e && n !== "oneFolder", - onClick: u, - children: !t && n === "oneFolder" ? "Select root" : "Select" - } - ) - ] }) - ] }); -}, mq = { - display: "flex", - flexDirection: "column", - alignItems: "start", - justifyContent: "center", - minHeight: "62px", - width: "100%", - px: "20px", - pt: "20px", - boxSizing: "border-box", - // Title - "> h4": { - fontFamily: "subtitle", - fontWeight: "subtitle", - fontSize: "subtitle" - }, - // Shortcut - "> div": { - marginLeft: 0 - } -}, Qq = ({ - title: t, - shortcutActions: e -}) => /* @__PURE__ */ f.jsxs(z, { sx: { ...mq }, children: [ - t && /* @__PURE__ */ f.jsx(j, { as: "h4", children: t }), - e && /* @__PURE__ */ f.jsx( - "div", - { - style: { - paddingTop: 20 - }, - children: e - } - ) -] }), Sq = 500, At = ({ - children: t, - mainText: e, - secondaryText: n, - disabled: i, - visibleDefault: r = !1, - position: O = "bottom", - delayed: o = !0, - hasArrow: a = !0, - containerProps: s, - ...l -}) => /* @__PURE__ */ f.jsx( - FR, - { - label: /* @__PURE__ */ f.jsxs(bt, { fontSize: "xs", fontWeight: "bold", children: [ - e, - n && /* @__PURE__ */ f.jsx(bt, { ml: "2", as: "span", color: "gray", children: n }) - ] }), - defaultIsOpen: r, - placement: O, - openDelay: o ? Sq : 0, - isDisabled: i || !e, - hasArrow: a, - ...l, - children: /* @__PURE__ */ f.jsx(bt, { ...s, children: t }) - } -), wq = (t, e) => ({ - display: "flex", - position: "relative", - flexDirection: "row", - ":focus": { - backgroundColor: "grayShade2", - outlineWidth: 0 - }, - backgroundColor: t === e ? "grayShade2" : "white", - width: "222px", - ">div:last-of-type": { - width: "176px", - textOverflow: "ellipsis", - whiteSpace: "nowrap", - overflow: "hidden" - }, - overflowX: "hidden", - py: "9px", - px: "11px", - cursor: "pointer", - borderRadius: 0, - borderColor: "grayShade2", - borderStyle: "solid", - borderWidth: "1px", - boxSizing: "border-box", - fontFamily: "text", - fontWeight: "text", - fontSize: "text" -}), yq = ({ - setActiveFile: t, - selectPathListValue: e, - mode: n, - handleLoadMore: i, - isActive: r, - selected: O, - setActiveFolder: o, - activeFolder: a, - index: s, - name: l, - itemInfo: c, - id: u -}) => { - 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( - j, - { - sx: { ...wq(a, u) }, - onClick: m, - tabIndex: 0, - children: [ - /* @__PURE__ */ f.jsx( - z, - { - sx: { - minWidth: "16px", - minHeight: "16px", - marginRight: "9px", - svg: { - path: { - fill: "black" - } - } - }, - children: /* @__PURE__ */ f.jsx(Ie, { color: "primary", size: "sm", icon: ze.folder }) - } - ), - /* @__PURE__ */ f.jsx(At, { mainText: l, children: /* @__PURE__ */ f.jsx(z, { children: l }) }) - ] - } - ); -}, PQ = (t, e, n, i = !0) => ({ - position: "relative", - // eslint-disable-next-line no-nested-ternary - backgroundColor: t && e ? "grayShade2" : "white", - width: "222px", - textOverflow: "ellipsis", - whiteSpace: "nowrap", - overflow: "hidden", - ":focus": { - ...i && { backgroundColor: "primaryShade2" }, - outlineWidth: 0 - }, - "div >label": { - overflow: "hidden", - ">input": { - minWidth: "16px", - minHeight: "16px" - }, - span: { - minWidth: "18px" - }, - div: { - width: "172px", - textOverflow: "ellipsis", - whiteSpace: "nowrap", - overflow: "hidden", - fontFamily: "text", - fontWeight: "text", - fontSize: "text" - } - }, - "> label": { - m: 9 - }, - p: n === "nFiles" ? 0 : 9, - cursor: i ? "pointer" : "default", - borderRadius: 0, - borderColor: "grayShade2", - borderStyle: "solid", - borderWidth: "1px", - boxSizing: "border-box", - fontFamily: "text", - fontWeight: "text", - fontSize: "text", - ...!i && { color: "gray" } -}), bq = { - span: { - display: "flex", - alignItems: "center", - justifyContent: "center", - width: "18px", - height: "18px", - borderWidth: "1px", - borderStyle: "solid", - borderRadius: "0", - cursor: "pointer", - transition: "all 0.25s ease", - boxSizing: "border-box", - // Flag styles - ":after": { - width: "6px", - height: "6px", - display: "none", - content: '""' - } - }, - // Hide the HTML checkbox - "> input": { - position: "absolute", - zIndex: -1, - opacity: 0 - }, - "> input:checked ~ span:after": { - display: "block" - }, - "> input:disabled ~ span": { - borderWidth: "1px", - borderStyle: "solid", - cursor: "default" - } -}, c1 = Gn( - ({ - label: t, - name: e, - id: n, - disabled: i, - onChange: r, - checked: O, - tooltipProps: o = { mainText: "" }, - ...a - }, s) => /* @__PURE__ */ f.jsx( - At, - { - disabled: !i, - ...o, - children: /* @__PURE__ */ f.jsxs( - j, - { - alignItems: "center", - flexDirection: "row", - as: "label", - ...a, - tx: "variants.checkbox", - variant: "primary", - sx: bq, - children: [ - /* @__PURE__ */ f.jsx( - z, - { - ref: s, - as: "input", - type: "checkbox", - name: e, - id: n, - disabled: i, - onChange: r, - checked: O - } - ), - /* @__PURE__ */ f.jsx("span", {}), - t && /* @__PURE__ */ f.jsx(xe, { bold: !0, ml: "10px", children: t }) - ] - } - ) - } - ) -), xq = ({ - isActive: t, - setActiveFolder: e, - setActiveFile: n, - itemInfo: i, - index: r, - setColumns: O, - mode: o = "oneFile", - selected: a, - isFileSelected: s, - isValidExtension: l, - setIsEmptyFolder: c -}) => { - 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(At, { mainText: i.attributes.name, children: o === "nFiles" ? /* @__PURE__ */ f.jsx( - z, - { - sx: { - ...PQ(u, h, o, l) - }, - tabIndex: 0, - onClick: () => l && m(), - children: /* @__PURE__ */ f.jsx( - c1, - { - m: "10px", - disabled: !l, - label: i.attributes.name, - checked: h, - onChange: () => g(o), - variant: "gray" - } - ) - } - ) : /* @__PURE__ */ f.jsx( - z, - { - sx: { - ...PQ(u, h, o, l) - }, - onClick: () => l && g(o), - tabIndex: 0, - children: i.attributes.name - } - ) }); -}, Pq = ({ - items: t, - mode: e, - index: n, - setColumns: i, - setActiveFile: r, - isFileSelected: O, - handleLoadMore: o, - selectPathListValue: a, - fileListValue: s, - validExtensions: l, - setIsEmptyFolder: c -}) => { - const [u, d] = we(0); - return /* @__PURE__ */ f.jsx( - z, - { - sx: { - width: "225px", - minWidth: "225px", - borderRightColor: "grayShade1", - borderRightWidth: "3px", - borderRightStyle: "solid", - backgroundColor: "grayShade3", - overflowY: "auto", - overflowX: "hidden" - }, - children: t.map((h) => { - const $ = () => { - if (!l || (l == null ? void 0 : l.length) === 0) - return !0; - const g = h.attributes.name.split("."), m = g[g.length - 1]; - return l.includes(`.${m}`); - }; - return h ? h.attributes.dir ? /* @__PURE__ */ f.jsx( - yq, - { - index: n, - id: h.attributes.id, - handleLoadMore: o, - mode: e, - name: h.attributes.name, - itemInfo: h, - selectPathListValue: a, - setColumns: i, - setActiveFile: r, - activeFolder: u, - setActiveFolder: d, - isActive: !1, - selected: !1 - }, - h.attributes.id - ) : /* @__PURE__ */ f.jsx( - xq, - { - index: n, - mode: e, - setColumns: i, - isFileSelected: O, - setActiveFile: r, - setActiveFolder: d, - itemInfo: h, - isActive: s ? s.includes(h.attributes.name) : !1, - selected: s ? s.includes(h.attributes.name) : !1, - isValidExtension: $(), - setIsEmptyFolder: c - }, - h.attributes.id - ) : null; - }) - } - ); -}; -function Ce(t) { - if (t === null || t === !0 || t === !1) - return NaN; - var e = Number(t); - return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e); -} -function B(t, e) { - if (e.length < t) - throw new TypeError(t + " argument" + (t > 1 ? "s" : "") + " required, but only " + e.length + " present"); -} -function K(t) { - B(1, arguments); - var e = Object.prototype.toString.call(t); - 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 ba(t, e) { - B(2, arguments); - var n = K(t), i = Ce(e); - return isNaN(i) ? /* @__PURE__ */ new Date(NaN) : (i && n.setDate(n.getDate() + i), n); -} -function _i(t, e) { - B(2, arguments); - 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 o = O.getDate(); - return r >= o ? O : (n.setFullYear(O.getFullYear(), O.getMonth(), r), n); -} -function u5(t, e) { - B(2, arguments); - var n = K(t).getTime(), i = Ce(e); - return new Date(n + i); -} -var vq = 36e5; -function Xq(t, e) { - B(2, arguments); - var n = Ce(e); - return u5(t, n * vq); -} -var kq = {}; -function po() { - return kq; -} -function S4(t, e) { - var n, i, r, O, o, a, s, l; - B(1, arguments); - 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 = K(t), h = d.getDay(), $ = (h < u ? 7 : 0) + h - u; - return d.setDate(d.getDate() - $), d.setHours(0, 0, 0, 0), d; -} -function Du(t) { - return B(1, arguments), S4(t, { - weekStartsOn: 1 - }); -} -function Tq(t) { - B(1, arguments); - 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 = Du(i), O = /* @__PURE__ */ new Date(0); - O.setFullYear(n, 0, 4), O.setHours(0, 0, 0, 0); - var o = Du(O); - return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1; -} -function Cq(t) { - B(1, arguments); - var e = Tq(t), n = /* @__PURE__ */ new Date(0); - n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0); - var i = Du(n); - return i; -} -function Iu(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 = K(t); - return e.setHours(0, 0, 0, 0), e; -} -var Rq = 864e5; -function Au(t, e) { - B(2, arguments); - var n = ir(t), i = ir(e), r = n.getTime() - Iu(n), O = i.getTime() - Iu(i); - return Math.round((r - O) / Rq); -} -var _q = 6e4; -function _p(t, e) { - B(2, arguments); - var n = Ce(e); - return u5(t, n * _q); -} -function w4(t, e) { - B(2, arguments); - var n = Ce(e), i = n * 3; - return _i(t, i); -} -function Fu(t, e) { - B(2, arguments); - var n = Ce(e), i = n * 7; - return ba(t, i); -} -function ea(t, e) { - B(2, arguments); - var n = Ce(e); - return _i(t, n * 12); -} -function vQ(t) { - B(1, arguments); - var e; - if (t && typeof t.forEach == "function") - e = t; - 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 = K(i); - (n === void 0 || n < r || isNaN(Number(r))) && (n = r); - }), n || /* @__PURE__ */ new Date(NaN); -} -function XQ(t) { - B(1, arguments); - var e; - if (t && typeof t.forEach == "function") - e = t; - 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 = K(i); - (n === void 0 || n > r || isNaN(r.getDate())) && (n = r); - }), n || /* @__PURE__ */ new Date(NaN); -} -var d5 = 6e4, f5 = 36e5, Wq = 1e3; -function qq(t, e) { - B(2, arguments); - var n = ir(t), i = ir(e); - return n.getTime() === i.getTime(); -} -function u1(t) { - return B(1, arguments), t instanceof Date || XO(t) === "object" && Object.prototype.toString.call(t) === "[object Date]"; -} -function Es(t) { - if (B(1, arguments), !u1(t) && typeof t != "number") - return !1; - var e = K(t); - return !isNaN(Number(e)); -} -function Lu(t, e) { - B(2, arguments); - var n = K(t), i = K(e), r = n.getFullYear() - i.getFullYear(), O = n.getMonth() - i.getMonth(); - return r * 12 + O; -} -function Uo(t) { - B(1, arguments); - var e = K(t), n = Math.floor(e.getMonth() / 3) + 1; - return n; -} -function Nu(t, e) { - B(2, arguments); - var n = K(t), i = K(e); - return n.getFullYear() - i.getFullYear(); -} -function Yq(t, e) { - return B(2, arguments), K(t).getTime() - K(e).getTime(); -} -function Wp(t) { - B(1, arguments); - var e = K(t); - return e.setHours(23, 59, 59, 999), e; -} -function Zq(t) { - B(1, arguments); - var e = K(t), n = e.getMonth(); - return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e; -} -function qp(t) { - B(1, arguments); - var e = K(t), n = e.getMonth(), i = n - n % 3; - return e.setMonth(i, 1), e.setHours(0, 0, 0, 0), e; -} -function y4(t) { - B(1, arguments); - var e = K(t); - return e.setDate(1), e.setHours(0, 0, 0, 0), e; -} -function Gq(t) { - B(1, arguments); - var e = K(t), n = e.getFullYear(); - return e.setFullYear(n + 1, 0, 0), e.setHours(23, 59, 59, 999), e; -} -function b4(t) { - B(1, arguments); - var e = K(t), n = /* @__PURE__ */ new Date(0); - return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n; -} -function x4(t, e) { - B(2, arguments); - var n = Ce(e); - return u5(t, -n); -} -var zq = 864e5; -function Uq(t) { - B(1, arguments); - 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 / zq) + 1; -} -function ta(t) { - B(1, arguments); - 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 P4(t) { - B(1, arguments); - 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 = ta(i), O = /* @__PURE__ */ new Date(0); - O.setUTCFullYear(n, 0, 4), O.setUTCHours(0, 0, 0, 0); - var o = ta(O); - return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1; -} -function Vq(t) { - B(1, arguments); - var e = P4(t), n = /* @__PURE__ */ new Date(0); - n.setUTCFullYear(e, 0, 4), n.setUTCHours(0, 0, 0, 0); - var i = ta(n); - return i; -} -var jq = 6048e5; -function v4(t) { - B(1, arguments); - var e = K(t), n = ta(e).getTime() - Vq(e).getTime(); - return Math.round(n / jq) + 1; -} -function io(t, e) { - var n, i, r, O, o, a, s, l; - B(1, arguments); - 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 = K(t), h = d.getUTCDay(), $ = (h < u ? 7 : 0) + h - u; - return d.setUTCDate(d.getUTCDate() - $), d.setUTCHours(0, 0, 0, 0), d; -} -function h5(t, e) { - var n, i, r, O, o, a, s, l; - B(1, arguments); - 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 = io($, e), m = /* @__PURE__ */ new Date(0); - m.setUTCFullYear(u, 0, h), m.setUTCHours(0, 0, 0, 0); - var Q = io(m, e); - return c.getTime() >= g.getTime() ? u + 1 : c.getTime() >= Q.getTime() ? u : u - 1; -} -function Eq(t, e) { - var n, i, r, O, o, a, s, l; - B(1, arguments); - 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 = h5(t, e), h = /* @__PURE__ */ new Date(0); - h.setUTCFullYear(d, 0, u), h.setUTCHours(0, 0, 0, 0); - var $ = io(h, e); - return $; -} -var Dq = 6048e5; -function X4(t, e) { - B(1, arguments); - var n = K(t), i = io(n, e).getTime() - Eq(n, e).getTime(); - return Math.round(i / Dq) + 1; -} -function it(t, e) { - for (var n = t < 0 ? "-" : "", i = Math.abs(t).toString(); i.length < e; ) - i = "0" + i; - return n + i; -} -var Iq = { - // Year - y: function(e, n) { - var i = e.getUTCFullYear(), r = i > 0 ? i : 1 - i; - return it(n === "yy" ? r % 100 : r, n.length); - }, - // Month - M: function(e, n) { - var i = e.getUTCMonth(); - return n === "M" ? String(i + 1) : it(i + 1, 2); - }, - // Day of the month - d: function(e, n) { - return it(e.getUTCDate(), n.length); - }, - // AM or PM - a: function(e, n) { - var i = e.getUTCHours() / 12 >= 1 ? "pm" : "am"; - switch (n) { - case "a": - case "aa": - return i.toUpperCase(); - case "aaa": - return i; - case "aaaaa": - return i[0]; - case "aaaa": - default: - return i === "am" ? "a.m." : "p.m."; - } - }, - // Hour [1-12] - h: function(e, n) { - return it(e.getUTCHours() % 12 || 12, n.length); - }, - // Hour [0-23] - H: function(e, n) { - return it(e.getUTCHours(), n.length); - }, - // Minute - m: function(e, n) { - return it(e.getUTCMinutes(), n.length); - }, - // Second - s: function(e, n) { - 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 it(O, n.length); - } -}; -const Vr = Iq; -var xo = { - am: "am", - pm: "pm", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" -}, Aq = { - // Era - G: function(e, n, i) { - var r = e.getUTCFullYear() > 0 ? 1 : 0; - switch (n) { - case "G": - case "GG": - case "GGG": - return i.era(r, { - width: "abbreviated" - }); - case "GGGGG": - return i.era(r, { - width: "narrow" - }); - case "GGGG": - default: - return i.era(r, { - width: "wide" - }); - } - }, - // Year - y: function(e, n, i) { - if (n === "yo") { - var r = e.getUTCFullYear(), O = r > 0 ? r : 1 - r; - return i.ordinalNumber(O, { - unit: "year" - }); - } - return Vr.y(e, n); - }, - // Local week-numbering year - Y: function(e, n, i, r) { - var O = h5(e, r), o = O > 0 ? O : 1 - O; - if (n === "YY") { - var a = o % 100; - return it(a, 2); - } - return n === "Yo" ? i.ordinalNumber(o, { - unit: "year" - }) : it(o, n.length); - }, - // ISO week-numbering year - R: function(e, n) { - var i = P4(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: - // | Year | `y` | `u` | - // |------|-----|-----| - // | AC 1 | 1 | 1 | - // | BC 1 | 1 | 0 | - // | BC 2 | 2 | -1 | - // Also `yy` always returns the last two digits of a year, - // while `uu` pads single digit years to 2 characters and returns other years unchanged. - u: function(e, n) { - var i = e.getUTCFullYear(); - return it(i, n.length); - }, - // Quarter - Q: function(e, n, i) { - var r = Math.ceil((e.getUTCMonth() + 1) / 3); - switch (n) { - case "Q": - return String(r); - case "QQ": - return it(r, 2); - case "Qo": - return i.ordinalNumber(r, { - unit: "quarter" - }); - case "QQQ": - return i.quarter(r, { - width: "abbreviated", - context: "formatting" - }); - case "QQQQQ": - return i.quarter(r, { - width: "narrow", - context: "formatting" - }); - case "QQQQ": - default: - return i.quarter(r, { - width: "wide", - context: "formatting" - }); - } - }, - // Stand-alone quarter - q: function(e, n, i) { - var r = Math.ceil((e.getUTCMonth() + 1) / 3); - switch (n) { - case "q": - return String(r); - case "qq": - return it(r, 2); - case "qo": - return i.ordinalNumber(r, { - unit: "quarter" - }); - case "qqq": - return i.quarter(r, { - width: "abbreviated", - context: "standalone" - }); - case "qqqqq": - return i.quarter(r, { - width: "narrow", - context: "standalone" - }); - case "qqqq": - default: - return i.quarter(r, { - width: "wide", - context: "standalone" - }); - } - }, - // Month - M: function(e, n, i) { - var r = e.getUTCMonth(); - switch (n) { - case "M": - case "MM": - return Vr.M(e, n); - case "Mo": - return i.ordinalNumber(r + 1, { - unit: "month" - }); - case "MMM": - return i.month(r, { - width: "abbreviated", - context: "formatting" - }); - case "MMMMM": - return i.month(r, { - width: "narrow", - context: "formatting" - }); - case "MMMM": - default: - return i.month(r, { - width: "wide", - context: "formatting" - }); - } - }, - // Stand-alone month - L: function(e, n, i) { - var r = e.getUTCMonth(); - switch (n) { - case "L": - return String(r + 1); - case "LL": - return it(r + 1, 2); - case "Lo": - return i.ordinalNumber(r + 1, { - unit: "month" - }); - case "LLL": - return i.month(r, { - width: "abbreviated", - context: "standalone" - }); - case "LLLLL": - return i.month(r, { - width: "narrow", - context: "standalone" - }); - case "LLLL": - default: - return i.month(r, { - width: "wide", - context: "standalone" - }); - } - }, - // Local week of year - w: function(e, n, i, r) { - var O = X4(e, r); - return n === "wo" ? i.ordinalNumber(O, { - unit: "week" - }) : it(O, n.length); - }, - // ISO week of year - I: function(e, n, i) { - var r = v4(e); - return n === "Io" ? i.ordinalNumber(r, { - unit: "week" - }) : it(r, n.length); - }, - // Day of the month - d: function(e, n, i) { - return n === "do" ? i.ordinalNumber(e.getUTCDate(), { - unit: "date" - }) : Vr.d(e, n); - }, - // Day of year - D: function(e, n, i) { - var r = Uq(e); - return n === "Do" ? i.ordinalNumber(r, { - unit: "dayOfYear" - }) : it(r, n.length); - }, - // Day of week - E: function(e, n, i) { - var r = e.getUTCDay(); - switch (n) { - case "E": - case "EE": - case "EEE": - return i.day(r, { - width: "abbreviated", - context: "formatting" - }); - case "EEEEE": - return i.day(r, { - width: "narrow", - context: "formatting" - }); - case "EEEEEE": - return i.day(r, { - width: "short", - context: "formatting" - }); - case "EEEE": - default: - return i.day(r, { - width: "wide", - context: "formatting" - }); - } - }, - // Local day of week - e: function(e, n, i, r) { - var O = e.getUTCDay(), o = (O - r.weekStartsOn + 8) % 7 || 7; - switch (n) { - case "e": - return String(o); - case "ee": - return it(o, 2); - case "eo": - return i.ordinalNumber(o, { - unit: "day" - }); - case "eee": - return i.day(O, { - width: "abbreviated", - context: "formatting" - }); - case "eeeee": - return i.day(O, { - width: "narrow", - context: "formatting" - }); - case "eeeeee": - return i.day(O, { - width: "short", - context: "formatting" - }); - case "eeee": - default: - return i.day(O, { - width: "wide", - context: "formatting" - }); - } - }, - // Stand-alone local day of week - c: function(e, n, i, r) { - var O = e.getUTCDay(), o = (O - r.weekStartsOn + 8) % 7 || 7; - switch (n) { - case "c": - return String(o); - case "cc": - return it(o, n.length); - case "co": - return i.ordinalNumber(o, { - unit: "day" - }); - case "ccc": - return i.day(O, { - width: "abbreviated", - context: "standalone" - }); - case "ccccc": - return i.day(O, { - width: "narrow", - context: "standalone" - }); - case "cccccc": - return i.day(O, { - width: "short", - context: "standalone" - }); - case "cccc": - default: - return i.day(O, { - width: "wide", - context: "standalone" - }); - } - }, - // ISO day of week - i: function(e, n, i) { - var r = e.getUTCDay(), O = r === 0 ? 7 : r; - switch (n) { - case "i": - return String(O); - case "ii": - return it(O, n.length); - case "io": - return i.ordinalNumber(O, { - unit: "day" - }); - case "iii": - return i.day(r, { - width: "abbreviated", - context: "formatting" - }); - case "iiiii": - return i.day(r, { - width: "narrow", - context: "formatting" - }); - case "iiiiii": - return i.day(r, { - width: "short", - context: "formatting" - }); - case "iiii": - default: - return i.day(r, { - width: "wide", - context: "formatting" - }); - } - }, - // AM or PM - a: function(e, n, i) { - var r = e.getUTCHours(), O = r / 12 >= 1 ? "pm" : "am"; - switch (n) { - case "a": - case "aa": - return i.dayPeriod(O, { - width: "abbreviated", - context: "formatting" - }); - case "aaa": - return i.dayPeriod(O, { - width: "abbreviated", - context: "formatting" - }).toLowerCase(); - case "aaaaa": - return i.dayPeriod(O, { - width: "narrow", - context: "formatting" - }); - case "aaaa": - default: - return i.dayPeriod(O, { - width: "wide", - context: "formatting" - }); - } - }, - // AM, PM, midnight, noon - b: function(e, n, i) { - var r = e.getUTCHours(), O; - 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, { - width: "abbreviated", - context: "formatting" - }); - case "bbb": - return i.dayPeriod(O, { - width: "abbreviated", - context: "formatting" - }).toLowerCase(); - case "bbbbb": - return i.dayPeriod(O, { - width: "narrow", - context: "formatting" - }); - case "bbbb": - default: - return i.dayPeriod(O, { - width: "wide", - context: "formatting" - }); - } - }, - // 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 = xo.evening : r >= 12 ? O = xo.afternoon : r >= 4 ? O = xo.morning : O = xo.night, n) { - case "B": - case "BB": - case "BBB": - return i.dayPeriod(O, { - width: "abbreviated", - context: "formatting" - }); - case "BBBBB": - return i.dayPeriod(O, { - width: "narrow", - context: "formatting" - }); - case "BBBB": - default: - return i.dayPeriod(O, { - width: "wide", - context: "formatting" - }); - } - }, - // Hour [1-12] - h: function(e, n, i) { - if (n === "ho") { - var r = e.getUTCHours() % 12; - return r === 0 && (r = 12), i.ordinalNumber(r, { - unit: "hour" - }); - } - return Vr.h(e, n); - }, - // Hour [0-23] - H: function(e, n, i) { - return n === "Ho" ? i.ordinalNumber(e.getUTCHours(), { - unit: "hour" - }) : 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" - }) : 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" - }) : it(r, n.length); - }, - // Minute - m: function(e, n, i) { - return n === "mo" ? i.ordinalNumber(e.getUTCMinutes(), { - unit: "minute" - }) : Vr.m(e, n); - }, - // Second - s: function(e, n, i) { - return n === "so" ? i.ordinalNumber(e.getUTCSeconds(), { - unit: "second" - }) : Vr.s(e, n); - }, - // Fraction of second - S: function(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, o = O.getTimezoneOffset(); - if (o === 0) - return "Z"; - switch (n) { - case "X": - return TQ(o); - case "XXXX": - case "XX": - return jO(o); - case "XXXXX": - case "XXX": - default: - 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, o = O.getTimezoneOffset(); - switch (n) { - case "x": - return TQ(o); - case "xxxx": - case "xx": - return jO(o); - case "xxxxx": - case "xxx": - default: - return jO(o, ":"); - } - }, - // Timezone (GMT) - O: function(e, n, i, r) { - var O = r._originalDate || e, o = O.getTimezoneOffset(); - switch (n) { - case "O": - case "OO": - case "OOO": - return "GMT" + kQ(o, ":"); - case "OOOO": - default: - return "GMT" + jO(o, ":"); - } - }, - // Timezone (specific non-location) - z: function(e, n, i, r) { - var O = r._originalDate || e, o = O.getTimezoneOffset(); - switch (n) { - case "z": - case "zz": - case "zzz": - return "GMT" + kQ(o, ":"); - case "zzzz": - default: - return "GMT" + jO(o, ":"); - } - }, - // Seconds timestamp - t: function(e, n, i, r) { - 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, o = O.getTime(); - return it(o, n.length); - } -}; -function kQ(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 o = e || ""; - return n + String(r) + o + it(O, 2); -} -function TQ(t, e) { - if (t % 60 === 0) { - var n = t > 0 ? "-" : "+"; - return n + it(Math.abs(t) / 60, 2); - } - return jO(t, e); -} -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 Fq = Aq; -var CQ = function(e, n) { - switch (e) { - case "P": - return n.date({ - width: "short" - }); - case "PP": - return n.date({ - width: "medium" - }); - case "PPP": - return n.date({ - width: "long" - }); - case "PPPP": - default: - return n.date({ - width: "full" - }); - } -}, k4 = function(e, n) { - switch (e) { - case "p": - return n.time({ - width: "short" - }); - case "pp": - return n.time({ - width: "medium" - }); - case "ppp": - return n.time({ - width: "long" - }); - case "pppp": - default: - return n.time({ - width: "full" - }); - } -}, Lq = function(e, n) { - var i = e.match(/(P+)(p+)?/) || [], r = i[1], O = i[2]; - if (!O) - return CQ(e, n); - var o; - switch (r) { - case "P": - o = n.dateTime({ - width: "short" - }); - break; - case "PP": - o = n.dateTime({ - width: "medium" - }); - break; - case "PPP": - o = n.dateTime({ - width: "long" - }); - break; - case "PPPP": - default: - o = n.dateTime({ - width: "full" - }); - break; - } - return o.replace("{{date}}", CQ(r, n)).replace("{{time}}", k4(O, n)); -}, Nq = { - p: k4, - P: Lq -}; -const Yp = Nq; -var Mq = ["D", "DD"], Hq = ["YY", "YYYY"]; -function T4(t) { - return Mq.indexOf(t) !== -1; -} -function C4(t) { - return Hq.indexOf(t) !== -1; -} -function Mu(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") - throw new RangeError("Use `yy` instead of `YY` (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 === "D") - throw new RangeError("Use `d` instead of `D` (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")); - 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 Bq = { - lessThanXSeconds: { - one: "less than a second", - other: "less than {{count}} seconds" - }, - xSeconds: { - one: "1 second", - other: "{{count}} seconds" - }, - halfAMinute: "half a minute", - lessThanXMinutes: { - one: "less than a minute", - other: "less than {{count}} minutes" - }, - xMinutes: { - one: "1 minute", - other: "{{count}} minutes" - }, - aboutXHours: { - one: "about 1 hour", - other: "about {{count}} hours" - }, - xHours: { - one: "1 hour", - other: "{{count}} hours" - }, - xDays: { - one: "1 day", - other: "{{count}} days" - }, - aboutXWeeks: { - one: "about 1 week", - other: "about {{count}} weeks" - }, - xWeeks: { - one: "1 week", - other: "{{count}} weeks" - }, - aboutXMonths: { - one: "about 1 month", - other: "about {{count}} months" - }, - xMonths: { - one: "1 month", - other: "{{count}} months" - }, - aboutXYears: { - one: "about 1 year", - other: "about {{count}} years" - }, - xYears: { - one: "1 year", - other: "{{count}} years" - }, - overXYears: { - one: "over 1 year", - other: "over {{count}} years" - }, - almostXYears: { - one: "almost 1 year", - other: "almost {{count}} years" - } -}, Jq = function(e, n, i) { - var r, O = Bq[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 Kq = Jq; -function mf(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 eY = { - full: "EEEE, MMMM do, y", - long: "MMMM do, y", - medium: "MMM d, y", - short: "MM/dd/yyyy" -}, tY = { - full: "h:mm:ss a zzzz", - long: "h:mm:ss a z", - medium: "h:mm:ss a", - short: "h:mm a" -}, nY = { - full: "{{date}} 'at' {{time}}", - long: "{{date}} 'at' {{time}}", - medium: "{{date}}, {{time}}", - short: "{{date}}, {{time}}" -}, iY = { - date: mf({ - formats: eY, - defaultWidth: "full" - }), - time: mf({ - formats: tY, - defaultWidth: "full" - }), - dateTime: mf({ - formats: nY, - defaultWidth: "full" - }) -}; -const rY = iY; -var OY = { - lastWeek: "'last' eeee 'at' p", - yesterday: "'yesterday at' p", - today: "'today at' p", - tomorrow: "'tomorrow at' p", - nextWeek: "eeee 'at' p", - other: "P" -}, oY = function(e, n, i, r) { - return OY[e]; -}; -const aY = oY; -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, o = n != null && n.width ? String(n.width) : O; - r = t.formattingValues[o] || t.formattingValues[O]; - } else { - 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 sY = { - narrow: ["B", "A"], - abbreviated: ["BC", "AD"], - wide: ["Before Christ", "Anno Domini"] -}, lY = { - narrow: ["1", "2", "3", "4"], - abbreviated: ["Q1", "Q2", "Q3", "Q4"], - wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] -}, cY = { - 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"] -}, uY = { - 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"] -}, dY = { - narrow: { - am: "a", - pm: "p", - midnight: "mi", - noon: "n", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - }, - abbreviated: { - am: "AM", - pm: "PM", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - }, - wide: { - am: "a.m.", - pm: "p.m.", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - } -}, fY = { - narrow: { - am: "a", - pm: "p", - midnight: "mi", - noon: "n", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - }, - abbreviated: { - am: "AM", - pm: "PM", - midnight: "midnight", - noon: "noon", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - }, - wide: { - am: "a.m.", - pm: "p.m.", - midnight: "midnight", - noon: "noon", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - } -}, hY = function(e, n) { - var i = Number(e), r = i % 100; - if (r > 20 || r < 10) - switch (r % 10) { - case 1: - return i + "st"; - case 2: - return i + "nd"; - case 3: - return i + "rd"; - } - return i + "th"; -}, pY = { - ordinalNumber: hY, - era: Za({ - values: sY, - defaultWidth: "wide" - }), - quarter: Za({ - values: lY, - defaultWidth: "wide", - argumentCallback: function(e) { - return e - 1; - } - }), - month: Za({ - values: cY, - defaultWidth: "wide" - }), - day: Za({ - values: uY, - defaultWidth: "wide" - }), - dayPeriod: Za({ - values: dY, - defaultWidth: "wide", - formattingValues: fY, - defaultFormattingWidth: "wide" - }) -}; -const $Y = pY; -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 o = O[0], a = i && t.parsePatterns[i] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(a) ? mY(a, function(u) { - return u.test(o); - }) : gY(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(o.length); - return { - value: l, - rest: c - }; - }; -} -function gY(t, e) { - for (var n in t) - if (t.hasOwnProperty(n) && e(t[n])) - return n; -} -function mY(t, e) { - for (var n = 0; n < t.length; n++) - if (e(t[n])) - return n; -} -function QY(t) { - return function(e) { - var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.match(t.matchPattern); - if (!i) - return null; - var r = i[0], O = e.match(t.parsePattern); - if (!O) - return null; - 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: o, - rest: a - }; - }; -} -var SY = /^(\d+)(th|st|nd|rd)?/i, wY = /\d+/i, yY = { - 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 -}, bY = { - any: [/^b/i, /^(a|c)/i] -}, xY = { - narrow: /^[1234]/i, - abbreviated: /^q[1234]/i, - wide: /^[1234](th|st|nd|rd)? quarter/i -}, PY = { - any: [/1/i, /2/i, /3/i, /4/i] -}, vY = { - 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 -}, 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] -}, kY = { - 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 -}, TY = { - 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] -}, CY = { - 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 -}, RY = { - any: { - am: /^a/i, - pm: /^p/i, - midnight: /^mi/i, - noon: /^no/i, - morning: /morning/i, - afternoon: /afternoon/i, - evening: /evening/i, - night: /night/i - } -}, _Y = { - ordinalNumber: QY({ - matchPattern: SY, - parsePattern: wY, - valueCallback: function(e) { - return parseInt(e, 10); - } - }), - era: Ga({ - matchPatterns: yY, - defaultMatchWidth: "wide", - parsePatterns: bY, - defaultParseWidth: "any" - }), - quarter: Ga({ - matchPatterns: xY, - defaultMatchWidth: "wide", - parsePatterns: PY, - defaultParseWidth: "any", - valueCallback: function(e) { - return e + 1; - } - }), - month: Ga({ - matchPatterns: vY, - defaultMatchWidth: "wide", - parsePatterns: XY, - defaultParseWidth: "any" - }), - day: Ga({ - matchPatterns: kY, - defaultMatchWidth: "wide", - parsePatterns: TY, - defaultParseWidth: "any" - }), - dayPeriod: Ga({ - matchPatterns: CY, - defaultMatchWidth: "any", - parsePatterns: RY, - defaultParseWidth: "any" - }) -}; -const WY = _Y; -var qY = { - code: "en-US", - formatDistance: Kq, - formatLong: rY, - formatRelative: aY, - localize: $Y, - match: WY, - options: { - weekStartsOn: 0, - firstWeekContainsDate: 1 - } -}; -const R4 = qY; -var YY = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ZY = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, GY = /^'([^]*?)'?$/, zY = /''/g, UY = /[a-zA-Z]/; -function Hu(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 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 : R4, 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 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 (!k.localize) - throw new RangeError("locale must contain localize property"); - if (!k.formatLong) - throw new RangeError("locale must contain formatLong property"); - var C = K(t); - if (!Es(C)) - throw new RangeError("Invalid time value"); - var W = Iu(C), R = x4(C, W), q = { - firstWeekContainsDate: Y, - weekStartsOn: G, - locale: k, - _originalDate: C - }, U = P.match(ZY).map(function(D) { - var ee = D[0]; - if (ee === "p" || ee === "P") { - var _ = Yp[ee]; - return _(D, k.formatLong); - } - return D; - }).join("").match(YY).map(function(D) { - if (D === "''") - return "'"; - var ee = D[0]; - if (ee === "'") - return VY(D); - var _ = Fq[ee]; - if (_) - return !(n != null && n.useAdditionalWeekYearTokens) && C4(D) && Mu(D, e, String(t)), !(n != null && n.useAdditionalDayOfYearTokens) && T4(D) && Mu(D, e, String(t)), _(R, D, k.localize, q); - if (ee.match(UY)) - throw new RangeError("Format string contains an unescaped latin alphabet character `" + ee + "`"); - return D; - }).join(""); - return U; -} -function VY(t) { - var e = t.match(GY); - return e ? e[1].replace(zY, "'") : t; -} -function jY(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 RQ(t) { - B(1, arguments); - var e = K(t), n = e.getDate(); - return n; -} -function EY(t) { - B(1, arguments); - var e = K(t), n = e.getDay(); - return n; -} -function DY(t) { - B(1, arguments); - 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 rr(t) { - B(1, arguments); - var e = K(t), n = e.getHours(); - return n; -} -var IY = 6048e5; -function AY(t) { - B(1, arguments); - var e = K(t), n = Du(e).getTime() - Cq(e).getTime(); - return Math.round(n / IY) + 1; -} -function Or(t) { - B(1, arguments); - var e = K(t), n = e.getMinutes(); - return n; -} -function un(t) { - B(1, arguments); - var e = K(t), n = e.getMonth(); - return n; -} -function _Q(t) { - B(1, arguments); - var e = K(t), n = e.getSeconds(); - return n; -} -function Zp(t) { - B(1, arguments); - var e = K(t), n = e.getTime(); - return n; -} -function Re(t) { - return B(1, arguments), K(t).getFullYear(); -} -function gO(t, e) { - B(2, arguments); - var n = K(t), i = K(e); - return n.getTime() > i.getTime(); -} -function tO(t, e) { - B(2, arguments); - var n = K(t), i = K(e); - return n.getTime() < i.getTime(); -} -function FY(t, e) { - B(2, arguments); - var n = K(t), i = K(e); - return n.getTime() === i.getTime(); -} -function Gp(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 p5(t, e) { - if (t) { - if (typeof t == "string") - return Gp(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 Gp(t, e); - } -} -function WQ(t, e) { - var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; - if (!n) { - if (Array.isArray(t) || (n = p5(t)) || e && t && typeof t.length == "number") { - n && (t = n); - var i = 0, r = function() { - }; - return { - s: r, - n: function() { - return i >= t.length ? { - done: !0 - } : { - done: !1, - value: t[i++] - }; - }, - e: function(l) { - throw l; - }, - f: r - }; - } - 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, o = !1, a; - return { - s: function() { - n = n.call(t); - }, - n: function() { - var l = n.next(); - return O = l.done, l; - }, - e: function(l) { - o = !0, a = l; - }, - f: function() { - try { - !O && n.return != null && n.return(); - } finally { - if (o) - throw a; - } - } - }; -} -function te(t) { - if (t === void 0) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return t; -} -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, { - constructor: { - value: t, - writable: !0, - configurable: !0 - } - }), Object.defineProperty(t, "prototype", { - writable: !1 - }), e && LR(t, e); -} -function Bu(t) { - return Bu = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { - return n.__proto__ || Object.getPrototypeOf(n); - }, Bu(t); -} -function LY() { - if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) - return !1; - if (typeof Proxy == "function") - return !0; - try { - return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { - })), !0; - } catch { - return !1; - } -} -function NY(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 Ve(t) { - var e = LY(); - return function() { - var i = Bu(t), r; - if (e) { - var O = Bu(this).constructor; - r = Reflect.construct(i, arguments, O); - } else - r = i.apply(this, arguments); - return NY(this, r); - }; -} -function Ze(t, e) { - if (!(t instanceof e)) - throw new TypeError("Cannot call a class as a function"); -} -function qQ(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, NR(i.key), i); - } -} -function Ge(t, e, n) { - return e && qQ(t.prototype, e), n && qQ(t, n), Object.defineProperty(t, "prototype", { - writable: !1 - }), t; -} -var MY = 10, _4 = /* @__PURE__ */ function() { - function t() { - Ze(this, t), H(this, "priority", void 0), H(this, "subPriority", 0); - } - return Ge(t, [{ - key: "validate", - value: function(n, i) { - return !0; - } - }]), t; -}(), HY = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n(i, r, O, o, a) { - var 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 Ge(n, [{ - key: "validate", - value: function(r, O) { - return this.validateValue(r, this.value, O); - } - }, { - key: "set", - value: function(r, O, o) { - return this.setValue(r, O, this.value, o); - } - }]), n; -}(_4), BY = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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", MY), H(te(i), "subPriority", -1), i; - } - return Ge(n, [{ - key: "set", - value: function(r, O) { - if (O.timestampIsSet) - return r; - 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; -}(_4), Be = /* @__PURE__ */ function() { - function t() { - Ze(this, t), H(this, "incompatibleTokens", void 0), H(this, "priority", void 0), H(this, "subPriority", void 0); - } - return Ge(t, [{ - key: "run", - value: function(n, i, r, O) { - var o = this.parse(n, i, r, O); - return o ? { - setter: new HY(o.value, this.validate, this.set, this.priority, this.subPriority), - rest: o.rest - } : null; - } - }, { - key: "validate", - value: function(n, i, r) { - return !0; - } - }]), t; -}(), JY = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "G": - case "GG": - case "GGG": - return o.era(r, { - width: "abbreviated" - }) || o.era(r, { - width: "narrow" - }); - case "GGGGG": - return o.era(r, { - width: "narrow" - }); - case "GGGG": - default: - return o.era(r, { - width: "wide" - }) || o.era(r, { - width: "abbreviated" - }) || o.era(r, { - width: "narrow" - }); - } - } - }, { - key: "set", - value: function(r, O, o) { - return O.era = o, r.setUTCFullYear(o, 0, 1), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), Ct = { - month: /^(1[0-2]|0?\d)/, - // 0 to 12 - date: /^(3[0-1]|[0-2]?\d)/, - // 0 to 31 - dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, - // 0 to 366 - week: /^(5[0-3]|[0-4]?\d)/, - // 0 to 53 - hour23h: /^(2[0-3]|[0-1]?\d)/, - // 0 to 23 - hour24h: /^(2[0-4]|[0-1]?\d)/, - // 0 to 24 - hour11h: /^(1[0-1]|0?\d)/, - // 0 to 11 - hour12h: /^(1[0-2]|0?\d)/, - // 0 to 12 - minute: /^[0-5]?\d/, - // 0 to 59 - second: /^[0-5]?\d/, - // 0 to 59 - singleDigit: /^\d/, - // 0 to 9 - twoDigits: /^\d{1,2}/, - // 0 to 99 - threeDigits: /^\d{1,3}/, - // 0 to 999 - fourDigits: /^\d{1,4}/, - // 0 to 9999 - anyDigitsSigned: /^-?\d+/, - singleDigitSigned: /^-?\d/, - // 0 to 9, -0 to -9 - twoDigitsSigned: /^-?\d{1,2}/, - // 0 to 99, -0 to -99 - threeDigitsSigned: /^-?\d{1,3}/, - // 0 to 999, -0 to -999 - fourDigitsSigned: /^-?\d{1,4}/ - // 0 to 9999, -0 to -9999 -}, 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 Rt(t, e) { - return t && { - value: e(t.value), - rest: t.rest - }; -} -function Qt(t, e) { - var n = e.match(t); - return n ? { - value: parseInt(n[0], 10), - rest: e.slice(n[0].length) - } : null; -} -function Hi(t, e) { - var n = e.match(t); - if (!n) - return null; - if (n[0] === "Z") - return { - 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, o = n[5] ? parseInt(n[5], 10) : 0; - return { - value: i * (r * f5 + O * d5 + o * Wq), - rest: e.slice(n[0].length) - }; -} -function W4(t) { - return Qt(Ct.anyDigitsSigned, t); -} -function vt(t, e) { - switch (t) { - case 1: - return Qt(Ct.singleDigit, e); - case 2: - return Qt(Ct.twoDigits, e); - case 3: - return Qt(Ct.threeDigits, e); - case 4: - return Qt(Ct.fourDigits, e); - default: - return Qt(new RegExp("^\\d{1," + t + "}"), e); - } -} -function Ju(t, e) { - switch (t) { - case 1: - return Qt(Ct.singleDigitSigned, e); - case 2: - return Qt(Ct.twoDigitsSigned, e); - case 3: - return Qt(Ct.threeDigitsSigned, e); - case 4: - return Qt(Ct.fourDigitsSigned, e); - default: - return Qt(new RegExp("^-?\\d{1," + t + "}"), e); - } -} -function $5(t) { - switch (t) { - case "morning": - return 4; - case "evening": - return 17; - case "pm": - case "noon": - case "afternoon": - return 12; - case "am": - case "midnight": - case "night": - default: - return 0; - } -} -function q4(t, e) { - var n = e > 0, i = n ? e : 1 - e, r; - if (i <= 50) - r = t || 100; - else { - 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 Y4(t) { - return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0; -} -var KY = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - var a = function(l) { - return { - year: l, - isTwoDigitYear: O === "yy" - }; - }; - switch (O) { - case "y": - return Rt(vt(4, r), a); - case "yo": - return Rt(o.ordinalNumber(r, { - unit: "year" - }), a); - default: - return Rt(vt(O.length, r), a); - } - } - }, { - key: "validate", - value: function(r, O) { - return O.isTwoDigitYear || O.year > 0; - } - }, { - key: "set", - value: function(r, O, o) { - var a = r.getUTCFullYear(); - if (o.isTwoDigitYear) { - var s = q4(o.year, a); - return r.setUTCFullYear(s, 0, 1), r.setUTCHours(0, 0, 0, 0), r; - } - 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; -}(Be), eZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - var a = function(l) { - return { - year: l, - isTwoDigitYear: O === "YY" - }; - }; - switch (O) { - case "Y": - return Rt(vt(4, r), a); - case "Yo": - return Rt(o.ordinalNumber(r, { - unit: "year" - }), a); - default: - return Rt(vt(O.length, r), a); - } - } - }, { - key: "validate", - value: function(r, O) { - return O.isTwoDigitYear || O.year > 0; - } - }, { - key: "set", - value: function(r, O, o, a) { - var s = h5(r, a); - if (o.isTwoDigitYear) { - var l = q4(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 ? o.year : 1 - o.year; - return r.setUTCFullYear(c, 0, a.firstWeekContainsDate), r.setUTCHours(0, 0, 0, 0), io(r, a); - } - }]), n; -}(Be), tZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O) { - return Ju(O === "R" ? 4 : O.length, r); - } - }, { - key: "set", - 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; -}(Be), nZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O) { - return Ju(O === "u" ? 4 : O.length, r); - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCFullYear(o, 0, 1), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), iZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "Q": - case "QQ": - return vt(O.length, r); - case "Qo": - return o.ordinalNumber(r, { - unit: "quarter" - }); - case "QQQ": - return o.quarter(r, { - width: "abbreviated", - context: "formatting" - }) || o.quarter(r, { - width: "narrow", - context: "formatting" - }); - case "QQQQQ": - return o.quarter(r, { - width: "narrow", - context: "formatting" - }); - case "QQQQ": - default: - return o.quarter(r, { - width: "wide", - context: "formatting" - }) || o.quarter(r, { - width: "abbreviated", - context: "formatting" - }) || o.quarter(r, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 1 && O <= 4; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCMonth((o - 1) * 3, 1), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), rZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "q": - case "qq": - return vt(O.length, r); - case "qo": - return o.ordinalNumber(r, { - unit: "quarter" - }); - case "qqq": - return o.quarter(r, { - width: "abbreviated", - context: "standalone" - }) || o.quarter(r, { - width: "narrow", - context: "standalone" - }); - case "qqqqq": - return o.quarter(r, { - width: "narrow", - context: "standalone" - }); - case "qqqq": - default: - return o.quarter(r, { - width: "wide", - context: "standalone" - }) || o.quarter(r, { - width: "abbreviated", - context: "standalone" - }) || o.quarter(r, { - width: "narrow", - context: "standalone" - }); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 1 && O <= 4; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCMonth((o - 1) * 3, 1), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), OZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - var a = function(l) { - return l - 1; - }; - switch (O) { - case "M": - return Rt(Qt(Ct.month, r), a); - case "MM": - return Rt(vt(2, r), a); - case "Mo": - return Rt(o.ordinalNumber(r, { - unit: "month" - }), a); - case "MMM": - return o.month(r, { - width: "abbreviated", - context: "formatting" - }) || o.month(r, { - width: "narrow", - context: "formatting" - }); - case "MMMMM": - return o.month(r, { - width: "narrow", - context: "formatting" - }); - case "MMMM": - default: - return o.month(r, { - width: "wide", - context: "formatting" - }) || o.month(r, { - width: "abbreviated", - context: "formatting" - }) || o.month(r, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 11; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCMonth(o, 1), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), oZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - var a = function(l) { - return l - 1; - }; - switch (O) { - case "L": - return Rt(Qt(Ct.month, r), a); - case "LL": - return Rt(vt(2, r), a); - case "Lo": - return Rt(o.ordinalNumber(r, { - unit: "month" - }), a); - case "LLL": - return o.month(r, { - width: "abbreviated", - context: "standalone" - }) || o.month(r, { - width: "narrow", - context: "standalone" - }); - case "LLLLL": - return o.month(r, { - width: "narrow", - context: "standalone" - }); - case "LLLL": - default: - return o.month(r, { - width: "wide", - context: "standalone" - }) || o.month(r, { - width: "abbreviated", - context: "standalone" - }) || o.month(r, { - width: "narrow", - context: "standalone" - }); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 11; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCMonth(o, 1), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be); -function aZ(t, e, n) { - B(2, arguments); - var i = K(t), r = Ce(e), O = X4(i, n) - r; - return i.setUTCDate(i.getUTCDate() - O * 7), i; -} -var sZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "w": - return Qt(Ct.week, r); - case "wo": - return o.ordinalNumber(r, { - unit: "week" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 1 && O <= 53; - } - }, { - key: "set", - value: function(r, O, o, a) { - return io(aZ(r, o, a), a); - } - }]), n; -}(Be); -function lZ(t, e) { - B(2, arguments); - var n = K(t), i = Ce(e), r = v4(n) - i; - return n.setUTCDate(n.getUTCDate() - r * 7), n; -} -var cZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "I": - return Qt(Ct.week, r); - case "Io": - return o.ordinalNumber(r, { - unit: "week" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 1 && O <= 53; - } - }, { - key: "set", - value: function(r, O, o) { - return ta(lZ(r, o)); - } - }]), n; -}(Be), uZ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], dZ = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "d": - return Qt(Ct.date, r); - case "do": - return o.ordinalNumber(r, { - unit: "date" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - var o = r.getUTCFullYear(), a = Y4(o), s = r.getUTCMonth(); - return a ? O >= 1 && O <= dZ[s] : O >= 1 && O <= uZ[s]; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCDate(o), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), hZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "D": - case "DD": - return Qt(Ct.dayOfYear, r); - case "Do": - return o.ordinalNumber(r, { - unit: "date" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - var o = r.getUTCFullYear(), a = Y4(o); - return a ? O >= 1 && O <= 366 : O >= 1 && O <= 365; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCMonth(0, o), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be); -function g5(t, e, n) { - var i, r, O, o, a, s, l, c; - B(2, arguments); - 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 = 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 pZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "E": - case "EE": - case "EEE": - return o.day(r, { - width: "abbreviated", - context: "formatting" - }) || o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }); - case "EEEEE": - return o.day(r, { - width: "narrow", - context: "formatting" - }); - case "EEEEEE": - return o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }); - case "EEEE": - default: - return o.day(r, { - width: "wide", - context: "formatting" - }) || o.day(r, { - width: "abbreviated", - context: "formatting" - }) || o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 6; - } - }, { - key: "set", - value: function(r, O, o, a) { - return r = g5(r, o, a), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), $Z = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o, a) { - var s = function(c) { - var u = Math.floor((c - 1) / 7) * 7; - return (c + a.weekStartsOn + 6) % 7 + u; - }; - switch (O) { - case "e": - case "ee": - return Rt(vt(O.length, r), s); - case "eo": - return Rt(o.ordinalNumber(r, { - unit: "day" - }), s); - case "eee": - return o.day(r, { - width: "abbreviated", - context: "formatting" - }) || o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }); - case "eeeee": - return o.day(r, { - width: "narrow", - context: "formatting" - }); - case "eeeeee": - return o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }); - case "eeee": - default: - return o.day(r, { - width: "wide", - context: "formatting" - }) || o.day(r, { - width: "abbreviated", - context: "formatting" - }) || o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 6; - } - }, { - key: "set", - value: function(r, O, o, a) { - return r = g5(r, o, a), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), gZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o, a) { - var s = function(c) { - var u = Math.floor((c - 1) / 7) * 7; - return (c + a.weekStartsOn + 6) % 7 + u; - }; - switch (O) { - case "c": - case "cc": - return Rt(vt(O.length, r), s); - case "co": - return Rt(o.ordinalNumber(r, { - unit: "day" - }), s); - case "ccc": - return o.day(r, { - width: "abbreviated", - context: "standalone" - }) || o.day(r, { - width: "short", - context: "standalone" - }) || o.day(r, { - width: "narrow", - context: "standalone" - }); - case "ccccc": - return o.day(r, { - width: "narrow", - context: "standalone" - }); - case "cccccc": - return o.day(r, { - width: "short", - context: "standalone" - }) || o.day(r, { - width: "narrow", - context: "standalone" - }); - case "cccc": - default: - return o.day(r, { - width: "wide", - context: "standalone" - }) || o.day(r, { - width: "abbreviated", - context: "standalone" - }) || o.day(r, { - width: "short", - context: "standalone" - }) || o.day(r, { - width: "narrow", - context: "standalone" - }); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 6; - } - }, { - key: "set", - value: function(r, O, o, a) { - return r = g5(r, o, a), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be); -function mZ(t, e) { - B(2, arguments); - var n = Ce(e); - n % 7 === 0 && (n = n - 7); - 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 QZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - var a = function(l) { - return l === 0 ? 7 : l; - }; - switch (O) { - case "i": - case "ii": - return vt(O.length, r); - case "io": - return o.ordinalNumber(r, { - unit: "day" - }); - case "iii": - return Rt(o.day(r, { - width: "abbreviated", - context: "formatting" - }) || o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }), a); - case "iiiii": - return Rt(o.day(r, { - width: "narrow", - context: "formatting" - }), a); - case "iiiiii": - return Rt(o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }), a); - case "iiii": - default: - return Rt(o.day(r, { - width: "wide", - context: "formatting" - }) || o.day(r, { - width: "abbreviated", - context: "formatting" - }) || o.day(r, { - width: "short", - context: "formatting" - }) || o.day(r, { - width: "narrow", - context: "formatting" - }), a); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 1 && O <= 7; - } - }, { - key: "set", - value: function(r, O, o) { - return r = mZ(r, o), r.setUTCHours(0, 0, 0, 0), r; - } - }]), n; -}(Be), SZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "a": - case "aa": - case "aaa": - return o.dayPeriod(r, { - width: "abbreviated", - context: "formatting" - }) || o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - case "aaaaa": - return o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - case "aaaa": - default: - return o.dayPeriod(r, { - width: "wide", - context: "formatting" - }) || o.dayPeriod(r, { - width: "abbreviated", - context: "formatting" - }) || o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCHours($5(o), 0, 0, 0), r; - } - }]), n; -}(Be), wZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "b": - case "bb": - case "bbb": - return o.dayPeriod(r, { - width: "abbreviated", - context: "formatting" - }) || o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - case "bbbbb": - return o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - case "bbbb": - default: - return o.dayPeriod(r, { - width: "wide", - context: "formatting" - }) || o.dayPeriod(r, { - width: "abbreviated", - context: "formatting" - }) || o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCHours($5(o), 0, 0, 0), r; - } - }]), n; -}(Be), yZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "B": - case "BB": - case "BBB": - return o.dayPeriod(r, { - width: "abbreviated", - context: "formatting" - }) || o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - case "BBBBB": - return o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - case "BBBB": - default: - return o.dayPeriod(r, { - width: "wide", - context: "formatting" - }) || o.dayPeriod(r, { - width: "abbreviated", - context: "formatting" - }) || o.dayPeriod(r, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCHours($5(o), 0, 0, 0), r; - } - }]), n; -}(Be), bZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "h": - return Qt(Ct.hour12h, r); - case "ho": - return o.ordinalNumber(r, { - unit: "hour" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 1 && O <= 12; - } - }, { - key: "set", - 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; -}(Be), xZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "H": - return Qt(Ct.hour23h, r); - case "Ho": - return o.ordinalNumber(r, { - unit: "hour" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 23; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCHours(o, 0, 0, 0), r; - } - }]), n; -}(Be), PZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "K": - return Qt(Ct.hour11h, r); - case "Ko": - return o.ordinalNumber(r, { - unit: "hour" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 11; - } - }, { - key: "set", - 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; -}(Be), vZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "k": - return Qt(Ct.hour24h, r); - case "ko": - return o.ordinalNumber(r, { - unit: "hour" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 1 && O <= 24; - } - }, { - key: "set", - value: function(r, O, o) { - var a = o <= 24 ? o % 24 : o; - return r.setUTCHours(a, 0, 0, 0), r; - } - }]), n; -}(Be), XZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "m": - return Qt(Ct.minute, r); - case "mo": - return o.ordinalNumber(r, { - unit: "minute" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 59; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCMinutes(o, 0, 0), r; - } - }]), n; -}(Be), kZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O, o) { - switch (O) { - case "s": - return Qt(Ct.second, r); - case "so": - return o.ordinalNumber(r, { - unit: "second" - }); - default: - return vt(O.length, r); - } - } - }, { - key: "validate", - value: function(r, O) { - return O >= 0 && O <= 59; - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCSeconds(o, 0), r; - } - }]), n; -}(Be), TZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O) { - var o = function(s) { - return Math.floor(s * Math.pow(10, -O.length + 3)); - }; - return Rt(vt(O.length, r), o); - } - }, { - key: "set", - value: function(r, O, o) { - return r.setUTCMilliseconds(o), r; - } - }]), n; -}(Be), CZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O) { - switch (O) { - case "X": - return Hi(Mi.basicOptionalMinutes, r); - case "XX": - return Hi(Mi.basic, r); - case "XXXX": - return Hi(Mi.basicOptionalSeconds, r); - case "XXXXX": - return Hi(Mi.extendedOptionalSeconds, r); - case "XXX": - default: - return Hi(Mi.extended, r); - } - } - }, { - key: "set", - value: function(r, O, o) { - return O.timestampIsSet ? r : new Date(r.getTime() - o); - } - }]), n; -}(Be), RZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r, O) { - switch (O) { - case "x": - return Hi(Mi.basicOptionalMinutes, r); - case "xx": - return Hi(Mi.basic, r); - case "xxxx": - return Hi(Mi.basicOptionalSeconds, r); - case "xxxxx": - return Hi(Mi.extendedOptionalSeconds, r); - case "xxx": - default: - return Hi(Mi.extended, r); - } - } - }, { - key: "set", - value: function(r, O, o) { - return O.timestampIsSet ? r : new Date(r.getTime() - o); - } - }]), n; -}(Be), _Z = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r) { - return W4(r); - } - }, { - key: "set", - value: function(r, O, o) { - return [new Date(o * 1e3), { - timestampIsSet: !0 - }]; - } - }]), n; -}(Be), WZ = /* @__PURE__ */ function(t) { - Ue(n, t); - var e = Ve(n); - function n() { - var 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 Ge(n, [{ - key: "parse", - value: function(r) { - return W4(r); - } - }, { - key: "set", - value: function(r, O, o) { - return [new Date(o), { - timestampIsSet: !0 - }]; - } - }]), n; -}(Be), qZ = { - G: new JY(), - y: new KY(), - Y: new eZ(), - R: new tZ(), - u: new nZ(), - Q: new iZ(), - q: new rZ(), - M: new OZ(), - L: new oZ(), - w: new sZ(), - I: new cZ(), - d: new fZ(), - D: new hZ(), - E: new pZ(), - e: new $Z(), - c: new gZ(), - i: new QZ(), - a: new SZ(), - b: new wZ(), - B: new yZ(), - h: new bZ(), - H: new xZ(), - K: new PZ(), - k: new vZ(), - m: new XZ(), - s: new kZ(), - S: new TZ(), - X: new CZ(), - x: new RZ(), - t: new _Z(), - T: new WZ() -}, YZ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ZZ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, GZ = /^'([^]*?)'?$/, zZ = /''/g, UZ = /\S/, VZ = /[a-zA-Z]/; -function Qf(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 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 : R4; - if (!G.match) - throw new RangeError("locale must contain match property"); - 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 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 (k === "") - return v === "" ? K(n) : /* @__PURE__ */ new Date(NaN); - var R = { - firstWeekContainsDate: C, - weekStartsOn: W, - locale: G - }, q = [new BY()], U = k.match(ZZ).map(function(me) { - var Pe = me[0]; - if (Pe in Yp) { - var Jt = Yp[Pe]; - return Jt(me, G.formatLong); - } - return me; - }).join("").match(YZ), D = [], ee = WQ(U), _; - try { - var I = function() { - var Pe = _.value; - !(i != null && i.useAdditionalWeekYearTokens) && C4(Pe) && Mu(Pe, k, t), !(i != null && i.useAdditionalDayOfYearTokens) && T4(Pe) && Mu(Pe, k, t); - var Jt = Pe[0], Vi = qZ[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 (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: Pe - }); - var bo = Vi.run(v, Pe, G.match, R); - if (!bo) - return { - v: /* @__PURE__ */ new Date(NaN) - }; - q.push(bo.setter), v = bo.rest; - } else { - if (Jt.match(VZ)) - throw new RangeError("Format string contains an unescaped latin alphabet character `" + Jt + "`"); - if (Pe === "''" ? Pe = "'" : Jt === "'" && (Pe = jZ(Pe)), v.indexOf(Pe) === 0) - v = v.slice(Pe.length); - else - return { - v: /* @__PURE__ */ new Date(NaN) - }; - } - }; - for (ee.s(); !(_ = ee.n()).done; ) { - var A = I(); - if (XO(A) === "object") - return A.v; - } - } catch (me) { - ee.e(me); - } finally { - ee.f(); - } - if (v.length > 0 && UZ.test(v)) - return /* @__PURE__ */ new Date(NaN); - 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(me) { - return me[0]; - }), ae = K(n); - if (isNaN(ae.getTime())) - return /* @__PURE__ */ new Date(NaN); - var ye = x4(ae, Iu(ae)), qe = {}, Ke = WQ(N), F; - try { - for (Ke.s(); !(F = Ke.n()).done; ) { - var ie = F.value; - if (!ie.validate(ye, R)) - return /* @__PURE__ */ new Date(NaN); - var fe = ie.set(ye, qe, R); - Array.isArray(fe) ? (ye = fe[0], jY(qe, fe[1])) : ye = fe; - } - } catch (me) { - Ke.e(me); - } finally { - Ke.f(); - } - return ye; -} -function jZ(t) { - return t.match(GZ)[1].replace(zZ, "'"); -} -function EZ(t, e) { - B(2, arguments); - var n = K(t), i = K(e); - return n.getFullYear() === i.getFullYear() && n.getMonth() === i.getMonth(); -} -function DZ(t, e) { - B(2, arguments); - var n = qp(t), i = qp(e); - return n.getTime() === i.getTime(); -} -function IZ(t, e) { - B(2, arguments); - var n = K(t), i = K(e); - return n.getFullYear() === i.getFullYear(); -} -function Ds(t, e) { - B(2, arguments); - 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 AZ(t, e) { - B(2, arguments); - var n = Ce(e); - return ba(t, -n); -} -function FZ(t, e) { - var n; - B(1, arguments); - 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 = HZ(t), O; - if (r.date) { - var o = BZ(r.date, i); - O = JZ(o.restDateString, o.year); - } - if (!O || isNaN(O.getTime())) - return /* @__PURE__ */ new Date(NaN); - var a = O.getTime(), s = 0, l; - if (r.time && (s = KZ(r.time), isNaN(s))) - return /* @__PURE__ */ new Date(NaN); - if (r.timezone) { - if (l = eG(r.timezone), isNaN(l)) - return /* @__PURE__ */ new Date(NaN); - } else { - 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(a + s + l); -} -var Hl = { - dateTimeDelimiter: /[T ]/, - timeZoneDelimiter: /[Z ]/i, - timezone: /([Z+-].*)$/ -}, LZ = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, NZ = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, MZ = /^([+-])(\d{2})(?::?(\d{2}))?$/; -function HZ(t) { - var e = {}, n = t.split(Hl.dateTimeDelimiter), i; - if (n.length > 2) - return e; - if (/:/.test(n[0]) ? i = n[0] : (e.date = n[0], i = n[1], Hl.timeZoneDelimiter.test(e.date) && (e.date = t.split(Hl.timeZoneDelimiter)[0], i = t.substr(e.date.length, t.length))), i) { - var r = Hl.timezone.exec(i); - r ? (e.time = i.replace(r[1], ""), e.timezone = r[1]) : e.time = i; - } - return e; -} -function BZ(t, e) { - var n = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"), i = t.match(n); - if (!i) - return { - year: NaN, - restDateString: "" - }; - var r = i[1] ? parseInt(i[1]) : null, O = i[2] ? parseInt(i[2]) : null; - return { - year: O === null ? r : O * 100, - restDateString: t.slice((i[1] || i[2]).length) - }; -} -function JZ(t, e) { - if (e === null) - return /* @__PURE__ */ new Date(NaN); - var n = t.match(LZ); - if (!n) - return /* @__PURE__ */ new Date(NaN); - 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 OG(e, a, s) ? tG(e, a, s) : /* @__PURE__ */ new Date(NaN); - var l = /* @__PURE__ */ new Date(0); - return !iG(e, O, o) || !rG(e, r) ? /* @__PURE__ */ new Date(NaN) : (l.setUTCFullYear(e, O, Math.max(r, o)), l); -} -function za(t) { - return t ? parseInt(t) : 1; -} -function KZ(t) { - var e = t.match(NZ); - if (!e) - return NaN; - var n = Sf(e[1]), i = Sf(e[2]), r = Sf(e[3]); - return oG(n, i, r) ? n * f5 + i * d5 + r * 1e3 : NaN; -} -function Sf(t) { - return t && parseFloat(t.replace(",", ".")) || 0; -} -function eG(t) { - if (t === "Z") - return 0; - var e = t.match(MZ); - if (!e) - return 0; - var n = e[1] === "+" ? -1 : 1, i = parseInt(e[2]), r = e[3] && parseInt(e[3]) || 0; - return aG(i, r) ? n * (i * f5 + r * d5) : NaN; -} -function tG(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 nG = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -function Z4(t) { - return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0; -} -function iG(t, e, n) { - return e >= 0 && e <= 11 && n >= 1 && n <= (nG[e] || (Z4(t) ? 29 : 28)); -} -function rG(t, e) { - return e >= 1 && e <= (Z4(t) ? 366 : 365); -} -function OG(t, e, n) { - return e >= 1 && e <= 53 && n >= 0 && n <= 6; -} -function oG(t, e, n) { - return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25; -} -function aG(t, e) { - return e >= 0 && e <= 59; -} -function yn(t, e) { - B(2, arguments); - 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 = DY(o); - return n.setMonth(i, Math.min(O, a)), n; -} -function sG(t, e) { - if (B(2, arguments), XO(e) !== "object" || e === null) - throw new RangeError("values parameter must be an object"); - 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 cu(t, e) { - B(2, arguments); - var n = K(t), i = Ce(e); - return n.setHours(i), n; -} -function uu(t, e) { - B(2, arguments); - var n = K(t), i = Ce(e); - return n.setMinutes(i), n; -} -function Po(t, e) { - B(2, arguments); - 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 lG(t, e) { - B(2, arguments); - var n = K(t), i = Ce(e); - return n.setSeconds(i), n; -} -function Pr(t, e) { - B(2, arguments); - var n = K(t), i = Ce(e); - return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (n.setFullYear(i), n); -} -function na(t, e) { - B(2, arguments); - var n = Ce(e); - return _i(t, -n); -} -function cG(t, e) { - B(2, arguments); - var n = Ce(e); - return w4(t, -n); -} -function YQ(t, e) { - B(2, arguments); - var n = Ce(e); - return Fu(t, -n); -} -function Is(t, e) { - B(2, arguments); - var n = Ce(e); - return ea(t, -n); -} -const gn = ({ primary: t, sx: e, ...n }) => /* @__PURE__ */ f.jsx( - xn, - { - fontFamily: "Inter", - sx: { - wordWrap: "normal", - ...e - }, - ...n, - variant: `value${t ? "Primary" : ""}` - } -), uG = { - display: "flex", - flexDirection: "column", - alignItems: "center", - justifyContent: "space-between", - backgroundColor: "white", - minHeight: "62px", - width: "100%", - minWidth: "230px", - p: "20px", - boxSizing: "border-box" -}, dG = { - display: "flex", - flexDirection: "column", - "div:first-of-type": { justifyContent: "center" }, - " > div > span": { - color: "black", - marginLeft: 0 - }, - ">h2": { - fontFamily: "subtitle", - fontWeight: "subtitle", - fontSize: "subtitle" - } -}, ZQ = (t) => ({ - display: "flex", - flexDirection: "column", - maxWidth: t ? "80px" : "180px", - textAlign: t ? "right" : "left", - marginRight: "4px", - div: { - display: "flex", - flexDirection: "column", - justifyContent: "flex-end", - marginBottom: "8px", - fontFamily: t ? "microlabel" : "value", - fontWeight: t ? "microlabel" : "value", - fontSize: t ? "microlabel" : "value" - }, - "div:nth-last-of-type(3)": { - paddingBottom: "7px" - }, - "div:nth-last-of-type(2)": { - paddingBottom: "5px" - }, - "div:last-child": { - height: "16px", - paddingBottom: "2px" - }, - "div:first-of-typed": { - height: "auto" - } -}), fG = (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", hG = ({ - children: t, - activeFile: e, - disableDownload: n, - handleDownloadFile: i -}) => { - const r = (O) => Hu(new Date(O), "yyyy-MM-dd - HH:mm:ss"); - return /* @__PURE__ */ f.jsxs( - z, - { - sx: { - ...uG - }, - children: [ - /* @__PURE__ */ f.jsxs( - z, - { - sx: { - ...dG - }, - children: [ - /* @__PURE__ */ f.jsx(gn, { as: "h2", marginBottom: "32px", textAlign: "center", children: e == null ? void 0 : e.attributes.name }), - /* @__PURE__ */ f.jsxs( - j, - { - sx: { - "> div > div": { - height: "30px" - } - }, - children: [ - /* @__PURE__ */ f.jsxs( - z, - { - sx: { - ...ZQ(!0) - }, - children: [ - /* @__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( - z, - { - sx: { - ...ZQ(!1) - }, - children: [ - /* @__PURE__ */ f.jsx(xe, { children: fG(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 }) - ] - } - ) - ] - } - ) - ] - } - ), - !n && /* @__PURE__ */ f.jsx( - Pn, - { - intent: "secondary", - onClick: () => { - i(e); - }, - children: /* @__PURE__ */ f.jsxs(j, { alignItems: "center", justifyContent: "center", children: [ - /* @__PURE__ */ f.jsx( - j, - { - sx: { - mr: "11px", - height: "15px", - alignItems: "center" - }, - children: /* @__PURE__ */ f.jsx(Ie, { size: "sm", icon: ze.folder }) - } - ), - /* @__PURE__ */ f.jsx(j, { alignItems: "center", children: "Download File" }) - ] }) - } - ), - t - ] - } - ); -}, pG = { - display: "flex", - flexDirection: "column", - alignItems: "center", - justifyContent: "center", - backgroundColor: "white", - minHeight: "62px", - width: "100%", - minWidth: "230px", - p: "20px", - boxSizing: "border-box", - ">h2": { - fontFamily: "subtitle", - fontWeight: "subtitle", - fontSize: "subtitle", - color: "gray" - } -}, $G = () => /* @__PURE__ */ f.jsx(z, { sx: pG, children: /* @__PURE__ */ f.jsx(gn, { as: "h2", textAlign: "center", children: "Empty folder" }) }), gG = { - display: "flex", - flexDirection: "column", - height: "100%", - maxHeight: "calc(100vh - 110px)", - borderWidth: "1px", - borderBottomWidth: "0px", - borderStyle: "solid", - boxSizing: "border-box" -}, mG = ({ - title: t = "Select a file", - onClose: e = () => console.log("Close"), - shortcutActions: n, - handleDownloadFile: i, - mode: r = c5.oneFile, - rootDir: O = "/", - 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 = Ot(), [$, g] = we(u), [m, Q] = we(!1); - tt(() => { - if (Array.isArray(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, 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) - ]); - }, W = (R, q) => { - q || k(R), k(R); - }; - return tt(() => { - G(); - }, [$]), /* @__PURE__ */ f.jsxs(a1, { ...d, sx: gG, children: [ - /* @__PURE__ */ f.jsx(Qq, { shortcutActions: n, title: t }), - /* @__PURE__ */ f.jsxs( - j, - { - sx: { - flex: 1, - borderStyle: "solid", - borderColor: "grayShade3", - borderWidth: "1px", - overflowX: "auto", - backgroundColor: "grayShade3" - }, - ref: h, - height: "100%", - minWidth: "965px", - m: "20px", - ...o, - children: [ - $.map((R, q) => /* @__PURE__ */ f.jsx( - Pq, - { - items: R, - validExtensions: c, - handleLoadMore: a, - setActiveFile: w, - mode: r, - setColumns: g, - index: q, - isFileSelected: C, - selectPathListValue: W, - fileListValue: y, - setIsEmptyFolder: Q - } - )), - m && /* @__PURE__ */ f.jsx($G, {}), - S && /* @__PURE__ */ f.jsx( - hG, - { - activeFile: S, - disableDownload: l, - handleDownloadFile: i - } - ), - /* @__PURE__ */ f.jsx(z, { ref: Y }) - ] - } - ), - /* @__PURE__ */ f.jsx( - gq, - { - onClose: e, - fileListValue: y, - value: v, - activeFile: S, - mode: r, - handleSelectFile: s, - rootDir: O - } - ) - ] }); -}, V0e = Zn(mG), QG = (t) => ({ - borderWidth: "1px", - borderStyle: "solid", - borderColor: "transparent", - cursor: "pointer", - mt: t ? "1px" : "-1px", - ml: "10px", - width: "60px", - svg: { - ...t ? { - width: "16px", - height: "16px", - path: { - fill: "black" - } - } : { - width: "20px", - height: "20px", - path: { - fill: "black" - } - } - } -}), SG = (t) => ({ - color: t ? "primaryShade1" : "primary" -}), wG = (t) => ({ - color: t ? "gray" : "black", - display: "inline", - wordBreak: "break-all" -}), yG = (t) => ({ - overflow: "hidden", - color: t ? "gray" : "black", - fontFamily: "label", - fontWeight: "label", - fontSize: "label", - alignItems: "center" -}), j0e = ({ - id: t, - fileName: e, - isLoading: n, - located: i, - percentage: r, - disabled: O, - children: o, - removeHandler: a, - ...s -}) => /* @__PURE__ */ cO(j, { ...s, sx: yG(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: { ...SG(n) }, children: [ - `${e} `, - /* @__PURE__ */ f.jsx(z, { sx: { ...wG(n) }, children: `${n ? "uploading to" : "located in"} ${i} ` }) -] }), !O && /* @__PURE__ */ f.jsx( - z, - { - sx: { ...QG(n) }, - onClick: () => { - a(t); - }, - children: /* @__PURE__ */ f.jsx(j, { children: /* @__PURE__ */ f.jsx(Ie, { size: "sm", icon: ze.cross }) }) - } -)), Bl = { - display: "flex", - flexDirection: "column", - position: "relative", - transition: "max-height .25s linear", - borderWidth: "1px", - borderStyle: "solid", - boxSizing: "border-box" -}, bG = (t, e) => ({ - display: "flex", - flexDirection: "row", - alignItems: "center", - justifyContent: "space-between", - height: "62px", - minHeight: "62px", - width: "100%", - px: "20px", - boxSizing: "border-box", - borderBottomWidth: e ? "1px" : "0px", - borderBottomStyle: "solid", - // @ts-ignore - borderBottomColor: ({ variants: n }) => { - var i; - return (i = n == null ? void 0 : n.card) == null ? void 0 : i.borderColor; - }, - boxShadow: t ? "0px 10px 40px -20px rgba(0, 0, 0, 0.15)" : "none", - // Title - "> h4": { - fontFamily: "subtitle", - fontWeight: "subtitle", - fontSize: "subtitle" - }, - // Actions - "> div": { - ml: "auto" - } -}), xG = ({ - title: t, - actions: e, - withShadow: n = !1, - withBorderBottom: i = !1, - ...r -}) => /* @__PURE__ */ f.jsxs(z, { ...r, sx: { ...bG(n, i), ...r.sx }, children: [ - t && /* @__PURE__ */ f.jsx(j, { alignItems: "center", as: "h4", children: t }), - e && /* @__PURE__ */ f.jsx("div", { children: e }) -] }), PG = (t = !1) => { - const [e, n] = we(t), i = oe(() => { - n((r) => !r); - }, [n]); - return [e, i, n]; -}, GQ = { - display: "flex", - alignItems: "center", - justifyContent: "center", - height: "32px", - width: "32px" -}, As = ({ - intent: t, - // TODO remove this - tooltip: e, - icon: n, - disabled: i = !1, - tooltipProps: r, - href: O, - onClickIcon: o, - target: a, - sx: s, - ...l -}) => { - let c; - return e ? c = /* @__PURE__ */ f.jsx(At, { ...r, disabled: i, mainText: e, children: /* @__PURE__ */ f.jsx( - Pn, - { - sx: { ...GQ, ...s }, - variant: "secondary", - disabled: i, - ...l, - children: /* @__PURE__ */ f.jsx(Ie, { disabled: i, icon: n, size: "sm" }) - } - ) }) : c = /* @__PURE__ */ f.jsx( - Pn, - { - sx: { ...GQ, ...s }, - variant: "secondary", - disabled: i, - ...l, - children: /* @__PURE__ */ f.jsx(Ie, { disabled: i, icon: n, size: "sm" }) - } - ), O ? /* @__PURE__ */ f.jsx( - s1, - { - style: { - textDecoration: "none" - }, - onClick: o, - to: O, - target: a, - ...a === "_blank" ? { rel: "noopener noreferrer" } : {}, - children: c - } - ) : c; -}, vG = ({ - title: t, - actions: e, - children: n, - maxHeight: i, - readOnly: r, - contentProps: O, - withoutShadow: o = !1, - expandable: a = !1, - ...s -}) => { - var g, m; - const l = t || e, [c, u] = PG(), 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( - a1, - { - ...s, - tx: "variants", - variant: r ? "readOnly" : "card", - maxHeight: d, - sx: Bl, - children: [ - l && /* @__PURE__ */ f.jsx( - xG, - { - title: t, - actions: e, - withShadow: !o, - withBorderBottom: !0 - } - ), - !!n && /* @__PURE__ */ f.jsx( - z, - { - sx: { - boxShadow: $ && !c ? "cardInsetShadow" : "none", - transition: Bl == null ? void 0 : Bl.transition - }, - ref: h, - width: "100%", - maxHeight: d, - height: "100%", - overflowY: $ ? "auto" : "initial", - overflowX: "auto", - p: "20px", - ...O, - children: n - } - ), - a && /* @__PURE__ */ f.jsx( - Zu, - { - sx: { - position: "absolute", - bottom: "-1px", - right: "-1px", - width: "100%", - justifyContent: "flex-end" - }, - children: /* @__PURE__ */ f.jsx( - As, - { - icon: c ? ze.arrow_up : ze.arrow_down, - onClick: u, - sx: { cursor: "pointer", mb: "-31px" } - } - ) - } - ) - ] - } - ); -}, E0e = Zn(vG), XG = { - display: "flex", - flexDirection: "row", - alignItems: "center", - justifyContent: "space-between", - width: "100%", - boxSizing: "border-box", - // Title - "> h4": { - p: "20px", - pb: 0, - fontFamily: "subtitle", - fontWeight: "subtitle", - fontSize: "subtitle" - }, - // Actions - "> div": { - ml: "auto" - } -}, kG = { - display: "flex", - flexDirection: "column", - borderWidth: "1px", - borderStyle: "solid", - boxSizing: "border-box" -}, TG = ({ - title: t, - children: e, - maxHeight: n, - contentProps: i, - placeholder: r, - readOnly: O, - ...o -}) => { - 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( - a1, - { - ...o, - maxHeight: n, - tx: "variants", - variant: O ? "readOnly" : "card", - sx: { ...kG, ...o.sx }, - children: [ - 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( - z, - { - sx: { - boxShadow: u ? "cardInsetShadow" : "none" - }, - ref: c, - width: "100%", - maxHeight: n, - height: "100%", - overflowY: u ? "auto" : "initial", - p: "20px", - ...i, - children: e - } - ) - ] - } - ); -}, D0e = Zn(TG); -let nt = class G4 { - /** - Get the line description around the given position. - */ - lineAt(e) { - if (e < 0 || e > this.length) - throw new RangeError(`Invalid position ${e} in document of length ${this.length}`); - return this.lineInner(e, !1, 1, 0); - } - /** - Get the description for the given (1-based) line number. - */ - line(e) { - if (e < 1 || e > this.lines) - throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`); - return this.lineInner(e, !0, 1, 0); - } - /** - Replace a range of the text with the given content. - */ - replace(e, n, i) { - let r = []; - return this.decompose( - 0, - e, - r, - 2 - /* Open.To */ - ), i.length && i.decompose( - 0, - i.length, - r, - 3 - /* Open.To */ - ), this.decompose( - n, - this.length, - r, - 1 - /* Open.From */ - ), Bi.from(r, this.length - (n - e) + i.length); - } - /** - Append another document to this one. - */ - append(e) { - return this.replace(this.length, this.length, e); - } - /** - Retrieve the text between the given points. - */ - slice(e, n = this.length) { - let i = []; - return this.decompose(e, n, i, 0), Bi.from(i, n - e); - } - /** - Test whether this text is equal to another instance. - */ - eq(e) { - if (e == this) - 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 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 (a += r.value.length, r.done || a >= i) - return !0; - } - } - /** - Iterate over the text. When `dir` is `-1`, iteration happens - from end to start. This will return lines and the breaks between - them as separate strings. - */ - iter(e = 1) { - 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 z4(this, e, n); - } - /** - Return a cursor that iterates over the given range of lines, - _without_ returning the line breaks between, and yielding empty - strings for empty lines. - - When `from` and `to` are given, they should be 1-based line numbers. - */ - iterLines(e, n) { - let i; - if (e == null) - i = this.iter(); - else { - n == null && (n = this.lines + 1); - 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 U4(i); - } - /** - Return the document as a string, using newline characters to - separate lines. - */ - toString() { - return this.sliceString(0); - } - /** - Convert the document to an array of lines (which can be - deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#state.Text^of)). - */ - toJSON() { - let e = []; - return this.flatten(e), e; - } - /** - @internal - */ - constructor() { - } - /** - Create a `Text` instance for the given array of lines. - */ - static of(e) { - if (e.length == 0) - throw new RangeError("A document must have at least one line"); - return e.length == 1 && !e[0] ? G4.empty : e.length <= 32 ? new Tt(e) : Bi.from(Tt.split(e, [])); - } -}; -class Tt extends nt { - constructor(e, n = CG(e)) { - super(), this.text = e, this.length = n; - } - get lines() { - return this.text.length; - } - get children() { - return null; - } - lineInner(e, n, i, r) { - for (let O = 0; ; O++) { - let o = this.text[O], a = r + o.length; - if ((n ? i : a) >= e) - return new RG(r, a, i, o); - r = a + 1, i++; - } - } - decompose(e, n, i, r) { - let O = e <= 0 && n >= this.length ? this : new Tt(zQ(this.text, e, n), Math.min(n, this.length) - Math.max(0, e)); - if (r & 1) { - let o = i.pop(), a = du(O.text, o.text.slice(), 0, O.length); - if (a.length <= 32) - i.push(new Tt(a, o.length + O.length)); - else { - let s = a.length >> 1; - i.push(new Tt(a.slice(0, s)), new Tt(a.slice(s))); - } - } else - i.push(O); - } - replace(e, n, i) { - if (!(i instanceof Tt)) - return super.replace(e, n, i); - let r = du(this.text, du(i.text, zQ(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, 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; - } - flatten(e) { - for (let n of this.text) - e.push(n); - } - scanIdentical() { - return 0; - } - static split(e, n) { - let i = [], r = -1; - for (let O of e) - i.push(O), r += O.length + 1, i.length == 32 && (n.push(new Tt(i, r)), i = [], r = -1); - return r > -1 && n.push(new Tt(i, r)), n; - } -} -class Bi extends nt { - constructor(e, n) { - super(), this.children = e, this.length = n, this.lines = 0; - for (let i of e) - this.lines += i.lines; - } - lineInner(e, n, i, r) { - for (let O = 0; ; O++) { - 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, 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); - } - o = s + 1; - } - } - replace(e, n, i) { - if (i.lines < this.lines) - for (let r = 0, O = 0; r < this.children.length; r++) { - 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 Bi(c, this.length - (n - e) + i.length); - } - return super.replace(O, a, s); - } - O = a + 1; - } - return super.replace(e, n, i); - } - sliceString(e, n = this.length, i = ` -`) { - let r = ""; - 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; - } - flatten(e) { - for (let n of this.children) - n.flatten(e); - } - scanIdentical(e, n) { - if (!(e instanceof Bi)) - return 0; - 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 == o || O == a) - return i; - let s = this.children[r], l = e.children[O]; - if (s != l) - return i + s.scanIdentical(l, n); - i += s.length + 1; - } - } - static from(e, n = e.reduce((i, r) => i + r.length + 1, -1)) { - let i = 0; - for (let h of e) - i += h.lines; - if (i < 32) { - let h = []; - for (let $ of e) - $.flatten(h); - return new Tt(h, n); - } - let r = Math.max( - 32, - i >> 5 - /* Tree.BranchShift */ - ), O = r << 1, o = r >> 1, a = [], s = 0, l = -1, c = []; - function u(h) { - let $; - if (h.lines > O && h instanceof Bi) - for (let g of h.children) - u(g); - else - 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 && (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(), a.length == 1 ? a[0] : new Bi(a, n); - } -} -nt.empty = /* @__PURE__ */ new Tt([""], 0); -function CG(t) { - let e = -1; - for (let n of t) - e += n.length + 1; - return e; -} -function du(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 zQ(t, e, n) { - return du(t, [""], e, n); -} -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], 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(); - } else if ((O & 1) == (n > 0 ? 0 : 1)) { - if (this.offsets[i] += n, e == 0) - return this.lineBreak = !0, this.value = ` -`, this; - e--; - } else if (r instanceof Tt) { - 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[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)); - } - } - } - next(e = 0) { - return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir); - } -} -class z4 { - constructor(e, 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) - return this.value = "", this.done = !0, this; - e += Math.max(0, n < 0 ? this.pos - this.to : this.from - this.pos); - let i = n < 0 ? this.pos - this.from : this.to - this.pos; - e > i && (e = i), i -= e; - let { value: r } = this.cursor.next(e); - return this.pos += (r.length + e) * n, this.value = r.length <= i ? r : n < 0 ? r.slice(r.length - i) : r.slice(0, i), this.done = !this.value, this; - } - next(e = 0) { - return e < 0 ? e = Math.max(e, this.from - this.pos) : e > 0 && (e = Math.min(e, this.to - this.pos)), this.nextInner(e, this.cursor.dir); - } - get lineBreak() { - return this.cursor.lineBreak && this.value != ""; - } -} -class U4 { - constructor(e) { - this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1; - } - next(e = 0) { - let { done: n, lineBreak: i, value: r } = this.inner.next(e); - return n ? (this.done = !0, this.value = "") : i ? this.afterBreak ? this.value = "" : (this.afterBreak = !0, this.next()) : (this.value = r, this.afterBreak = !1), this; - } - get lineBreak() { - return !1; - } -} -typeof Symbol < "u" && (nt.prototype[Symbol.iterator] = function() { - return this.iter(); -}, bs.prototype[Symbol.iterator] = z4.prototype[Symbol.iterator] = U4.prototype[Symbol.iterator] = function() { - return this; -}); -let RG = class { - /** - @internal - */ - constructor(e, n, i, r) { - this.from = e, this.to = n, this.number = i, this.text = r; - } - /** - The length of the line (not including any line break after it). - */ - get length() { - return this.to - this.from; - } -}, 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 _G(t) { - for (let e = 1; e < Io.length; e += 2) - if (Io[e] > t) - return Io[e - 1] <= t; - return !1; -} -function UQ(t) { - return t >= 127462 && t <= 127487; -} -const VQ = 8205; -function hn(t, e, n = !0, i = !0) { - return (n ? V4 : WG)(t, e, i); -} -function V4(t, e, n) { - if (e == t.length) - return e; - e && j4(t.charCodeAt(e)) && E4(t.charCodeAt(e - 1)) && e--; - let i = en(t, e); - for (e += li(i); e < t.length; ) { - let r = en(t, e); - if (i == VQ || r == VQ || n && _G(r)) - e += li(r), i = r; - else if (UQ(r)) { - let O = 0, o = e - 2; - for (; o >= 0 && UQ(en(t, o)); ) - O++, o -= 2; - if (O % 2 == 0) - break; - e += 2; - } else - break; - } - return e; -} -function WG(t, e, n) { - for (; e > 0; ) { - let i = V4(t, e - 2, n); - if (i < e) - return i; - e--; - } - return 0; -} -function j4(t) { - return t >= 56320 && t < 57344; -} -function E4(t) { - return t >= 55296 && t < 56320; -} -function en(t, e) { - let n = t.charCodeAt(e); - if (!E4(n) || e + 1 == t.length) - return n; - let i = t.charCodeAt(e + 1); - return j4(i) ? (n - 55296 << 10) + (i - 56320) + 65536 : n; -} -function m5(t) { - return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320)); -} -function li(t) { - return t < 65536 ? 1 : 2; -} -const zp = /\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 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 - // otherwise. So an insertion would be (0, n>0), a deletion (n>0, - // 0), and a replacement two positive numbers. - /** - @internal - */ - constructor(e) { - this.sections = e; - } - /** - The length of the document before the change. - */ - get length() { - let e = 0; - for (let n = 0; n < this.sections.length; n += 2) - e += this.sections[n]; - return e; - } - /** - The length of the document after the change. - */ - get newLength() { - let e = 0; - for (let n = 0; n < this.sections.length; n += 2) { - let i = this.sections[n + 1]; - e += i < 0 ? this.sections[n] : i; - } - return e; - } - /** - False when there are actual changes in this set. - */ - get empty() { - return this.sections.length == 0 || this.sections.length == 2 && this.sections[1] < 0; - } - /** - Iterate over the unchanged parts left by these changes. `posA` - provides the position of the range in the old document, `posB` - the new position in the changed document. - */ - iterGaps(e) { - for (let n = 0, i = 0, r = 0; n < this.sections.length; ) { - let O = this.sections[n++], o = this.sections[n++]; - o < 0 ? (e(i, r, O), r += O) : r += o, i += O; - } - } - /** - Iterate over the ranges changed by these changes. (See - [`ChangeSet.iterChanges`](https://codemirror.net/6/docs/ref/#state.ChangeSet.iterChanges) for a - variant that also provides you with the inserted text.) - `fromA`/`toA` provides the extent of the change in the starting - document, `fromB`/`toB` the extent of the replacement in the - changed document. - - When `individual` is true, adjacent changes (which are kept - separate for [position mapping](https://codemirror.net/6/docs/ref/#state.ChangeDesc.mapPos)) are - reported separately. - */ - iterChangedRanges(e, n = !1) { - Up(this, e, n); - } - /** - Get a description of the inverted form of these changes. - */ - get invertedDesc() { - let e = []; - for (let n = 0; n < this.sections.length; ) { - let i = this.sections[n++], r = this.sections[n++]; - r < 0 ? e.push(i, r) : e.push(r, i); - } - return new or(e); - } - /** - Compute the combined effect of applying another set of changes - after this one. The length of the document after this set should - match the length before `other`. - */ - composeDesc(e) { - return this.empty ? e : e.empty ? this : D4(this, e); - } - /** - Map this description, which should start with the same document - as `other`, over another set of changes, so that it can be - applied after it. When `before` is true, map as if the changes - in `other` happened before the ones in `this`. - */ - mapDesc(e, n = !1) { - return e.empty ? this : Vp(this, e, n); - } - mapPos(e, n = -1, i = nn.Simple) { - let r = 0, O = 0; - 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 += 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 && !a) - return e == r || n < 0 ? O : O + s; - O += s; - } - r = l; - } - if (e > r) - throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`); - return O; - } - /** - Check whether these changes touch a given range. When one of the - changes entirely covers the range, the string `"cover"` is - returned. - */ - touchesRange(e, n = e) { - for (let i = 0, r = 0; i < this.sections.length && r <= n; ) { - 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; - } - /** - @internal - */ - toString() { - let e = ""; - for (let n = 0; n < this.sections.length; ) { - let i = this.sections[n++], r = this.sections[n++]; - e += (e ? " " : "") + i + (r >= 0 ? ":" + r : ""); - } - return e; - } - /** - Serialize this change desc to a JSON-representable value. - */ - toJSON() { - return this.sections; - } - /** - Create a change desc from its JSON representation (as produced - by [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeDesc.toJSON). - */ - 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 or(e); - } - /** - @internal - */ - static create(e) { - return new or(e); - } -} -class Vt extends or { - constructor(e, n) { - super(e), this.inserted = n; - } - /** - Apply the changes to a document, returning the modified - document. - */ - apply(e) { - if (this.length != e.length) - throw new RangeError("Applying change set to a document with the wrong length"); - return Up(this, (n, i, r, O, o) => e = e.replace(r, r + (i - n), o), !1), e; - } - mapDesc(e, n = !1) { - return Vp(this, e, n, !0); - } - /** - Given the document as it existed _before_ the changes, return a - change set that represents the inverse of this set, which could - be used to go from the document created by the changes back to - the document as it existed before the changes. - */ - invert(e) { - let n = this.sections.slice(), i = []; - for (let r = 0, O = 0; r < n.length; r += 2) { - 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(nt.empty); - i.push(o ? e.slice(O, O + o) : nt.empty); - } - O += o; - } - return new Vt(n, i); - } - /** - Combine two subsequent change sets into a single set. `other` - must start in the document produced by `this`. If `this` goes - `docA` → `docB` and `other` represents `docB` → `docC`, the - returned value will represent the change `docA` → `docC`. - */ - compose(e) { - return this.empty ? e : e.empty ? this : D4(this, e, !0); - } - /** - Given another change set starting in the same document, maps this - change set over the other, producing a new change set that can be - applied to the document produced by applying `other`. When - `before` is `true`, order changes as if `this` comes before - `other`, otherwise (the default) treat `other` as coming first. - - Given two changes `A` and `B`, `A.compose(B.map(A))` and - `B.compose(A.map(B, true))` will produce the same document. This - provides a basic form of [operational - transformation](https://en.wikipedia.org/wiki/Operational_transformation), - and can be used for collaborative editing. - */ - map(e, n = !1) { - return e.empty ? this : Vp(this, e, n, !0); - } - /** - Iterate over the changed ranges in the document, calling `f` for - each, with the range in the original document (`fromA`-`toA`) - and the range that replaces it in the new document - (`fromB`-`toB`). - - When `individual` is true, adjacent changes are reported - separately. - */ - iterChanges(e, n = !1) { - Up(this, e, n); - } - /** - Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change - set. - */ - get desc() { - return or.create(this.sections); - } - /** - @internal - */ - filter(e) { - let n = [], i = [], r = [], O = new Fs(this); - e: - 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 - a); - ln(r, c, -1); - let u = O.ins == -1 ? -1 : O.off == 0 ? O.ins : 0; - ln(n, c, u), u > 0 && nO(i, n, O.text), O.forward(c), a += c; - } - let l = e[o++]; - for (; a < l; ) { - if (O.done) - break e; - 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 Vt(n, i), - filtered: or.create(r) - }; - } - /** - Serialize this change set to a JSON-representable value. - */ - toJSON() { - let e = []; - for (let n = 0; n < this.sections.length; n += 2) { - let i = this.sections[n], r = this.sections[n + 1]; - r < 0 ? e.push(i) : r == 0 ? e.push([i]) : e.push([i].concat(this.inserted[n >> 1].toJSON())); - } - return e; - } - /** - Create a change set for the given changes, for a document of the - given length, using `lineSep` as line separator. - */ - static of(e, n, i) { - let r = [], O = [], o = 0, a = null; - function s(c = !1) { - if (!c && !r.length) - return; - 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 Vt) { - if (c.length != n) - throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`); - 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" ? nt.of(h.split(i || zp)) : h : nt.empty, g = $.length; - if (u == d && g == 0) - return; - u < o && s(), u > o && ln(r, u - o, -1), ln(r, d - u, g), nO(O, r, $), o = d; - } - } - return l(e), s(!a), a; - } - /** - Create an empty changeset of the given length. - */ - static empty(e) { - return new Vt(e ? [e, -1] : [], []); - } - /** - Create a changeset from its JSON representation (as produced by - [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeSet.toJSON). - */ - static fromJSON(e) { - if (!Array.isArray(e)) - throw new RangeError("Invalid JSON representation of ChangeSet"); - let n = [], i = []; - for (let r = 0; r < e.length; r++) { - let O = e[r]; - if (typeof O == "number") - n.push(O, -1); - else { - 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(nt.empty); - i[r] = nt.of(O.slice(1)), n.push(O[0], i[r].length); - } - } - } - return new Vt(n, i); - } - /** - @internal - */ - static createSet(e, n) { - return new Vt(e, n); - } -} -function ln(t, e, n, i = !1) { - if (e == 0 && n <= 0) - return; - 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 nO(t, e, n) { - if (n.length == 0) - return; - let i = e.length - 2 >> 1; - if (i < t.length) - t[t.length - 1] = t[t.length - 1].append(n); - else { - for (; t.length < i; ) - t.push(nt.empty); - t.push(n); - } -} -function Up(t, e, n) { - let i = t.inserted; - 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 += a, O += a; - else { - 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 Vp(t, e, n, i = !1) { - let r = [], O = i ? [] : null, o = new Fs(t), a = new Fs(e); - for (let s = -1; ; ) - 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 (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 < o.i ? o.ins : 0), O && s < o.i && nO(O, r, o.text), s = o.i, o.forward(o.len - c); - } else { - if (o.done && a.done) - return O ? Vt.createSet(r, O) : or.create(r); - throw new Error("Mismatched change set lengths"); - } -} -function D4(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, 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 || o.done) - throw new Error("Mismatched change set lengths"); - { - let s = Math.min(O.len2, o.len), l = i.length; - if (O.ins == -1) { - let c = o.ins == -1 ? -1 : o.off ? 0 : o.ins; - ln(i, s, c, a), r && c && nO(r, i, o.text); - } else - 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 Fs { - constructor(e) { - this.set = e, this.i = 0, this.next(); - } - next() { - let { sections: e } = this.set; - this.i < e.length ? (this.len = e[this.i++], this.ins = e[this.i++]) : (this.len = 0, this.ins = -2), this.off = 0; - } - get done() { - return this.ins == -2; - } - get len2() { - return this.ins < 0 ? this.len : this.ins; - } - get text() { - let { inserted: e } = this.set, n = this.i - 2 >> 1; - 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 ? 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); - } - forward2(e) { - this.ins == -1 ? this.forward(e) : e == this.ins ? this.next() : (this.ins -= e, this.off += e); - } -} -class NO { - constructor(e, n, i) { - this.from = e, this.to = n, this.flags = i; - } - /** - The anchor of the range—the side that doesn't move when you - extend it. - */ - get anchor() { - return this.flags & 16 ? this.to : this.from; - } - /** - The head of the range, which is moved when the range is - [extended](https://codemirror.net/6/docs/ref/#state.SelectionRange.extend). - */ - get head() { - return this.flags & 16 ? this.from : this.to; - } - /** - True when `anchor` and `head` are at the same position. - */ - get empty() { - return this.from == this.to; - } - /** - If this is a cursor that is explicitly associated with the - character on one of its sides, this returns the side. -1 means - the character before its position, 1 the character after, and 0 - means no association. - */ - get assoc() { - return this.flags & 4 ? -1 : this.flags & 8 ? 1 : 0; - } - /** - The bidirectional text level associated with this cursor, if - any. - */ - get bidiLevel() { - let e = this.flags & 3; - return e == 3 ? null : e; - } - /** - The goal column (stored vertical offset) associated with a - cursor. This is used to preserve the vertical position when - [moving](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) across - lines of different length. - */ - get goalColumn() { - let e = this.flags >> 5; - return e == 33554431 ? void 0 : e; - } - /** - Map this range through a change, producing a valid range in the - updated document. - */ - 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 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 Z.range(e, n); - let i = Math.abs(e - this.anchor) > Math.abs(n - this.anchor) ? e : n; - return Z.range(this.anchor, i); - } - /** - Compare this range to another range. - */ - eq(e) { - return this.anchor == e.anchor && this.head == e.head; - } - /** - Return a JSON-serializable object representing the range. - */ - toJSON() { - return { anchor: this.anchor, head: this.head }; - } - /** - Convert a JSON representation of a range to a `SelectionRange` - instance. - */ - static fromJSON(e) { - if (!e || typeof e.anchor != "number" || typeof e.head != "number") - throw new RangeError("Invalid JSON representation for SelectionRange"); - return Z.range(e.anchor, e.head); - } - /** - @internal - */ - static create(e, n, i) { - return new NO(e, n, i); - } -} -class Z { - constructor(e, n) { - this.ranges = e, this.mainIndex = n; - } - /** - Map a selection through a change. Used to adjust the selection - position for changes. - */ - map(e, n = -1) { - return e.empty ? this : Z.create(this.ranges.map((i) => i.map(e, n)), this.mainIndex); - } - /** - Compare this selection to another selection. - */ - eq(e) { - if (this.ranges.length != e.ranges.length || this.mainIndex != e.mainIndex) - return !1; - for (let n = 0; n < this.ranges.length; n++) - if (!this.ranges[n].eq(e.ranges[n])) - return !1; - return !0; - } - /** - Get the primary selection range. Usually, you should make sure - your code applies to _all_ ranges, by using methods like - [`changeByRange`](https://codemirror.net/6/docs/ref/#state.EditorState.changeByRange). - */ - get main() { - return this.ranges[this.mainIndex]; - } - /** - Make sure the selection only has one range. Returns a selection - holding only the main range from this selection. - */ - asSingle() { - return this.ranges.length == 1 ? this : new Z([this.main], 0); - } - /** - Extend this selection with an extra range. - */ - addRange(e, n = !0) { - return Z.create([e].concat(this.ranges), n ? 0 : this.mainIndex + 1); - } - /** - Replace a given range with another range, and then normalize the - selection to merge and sort ranges if necessary. - */ - replaceRange(e, n = this.mainIndex) { - let i = this.ranges.slice(); - return i[n] = e, Z.create(i, this.mainIndex); - } - /** - Convert this selection to an object that can be serialized to - JSON. - */ - toJSON() { - return { ranges: this.ranges.map((e) => e.toJSON()), main: this.mainIndex }; - } - /** - Create a selection from a JSON representation. - */ - 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 Z(e.ranges.map((n) => NO.fromJSON(n)), e.main); - } - /** - Create a selection holding a single range. - */ - static single(e, n = e) { - return new Z([Z.range(e, n)], 0); - } - /** - Sort and merge the given set of ranges, creating a valid - selection. - */ - static create(e, n = 0) { - if (e.length == 0) - throw new RangeError("A selection needs at least one range"); - for (let i = 0, r = 0; r < e.length; r++) { - let O = e[r]; - if (O.empty ? O.from <= i : O.from < i) - return Z.normalized(e.slice(), n); - i = O.to; - } - 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 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 ? NO.create(n, e, 24 | O) : NO.create(e, n, (n > e ? 4 : 0) | O); - } - /** - @internal - */ - static normalized(e, n = 0) { - 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], 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 Z(e, n); - } -} -function I4(t, e) { - for (let n of t.ranges) - if (n.to > e) - throw new RangeError("Selection points outside of document"); -} -let Q5 = 0; -class re { - constructor(e, n, i, r, O) { - this.combine = e, this.compareInput = n, this.compare = i, this.isStatic = r, this.id = Q5++, this.default = e([]), this.extensions = typeof O == "function" ? O(this) : O; - } - /** - Define a new facet. - */ - static define(e = {}) { - return new re(e.combine || ((n) => n), e.compareInput || ((n, i) => n === i), e.compare || (e.combine ? (n, i) => n === i : S5), !!e.static, e.enables); - } - /** - Returns an extension that adds the given value to this facet. - */ - of(e) { - return new fu([], this, 0, e); - } - /** - Create an extension that computes a value for the facet from a - state. You must take care to declare the parts of the state that - this value depends on, since your function is only called again - for a new state when one of those parts changed. - - In cases where your value depends only on a single field, you'll - want to use the [`from`](https://codemirror.net/6/docs/ref/#state.Facet.from) method instead. - */ - compute(e, n) { - if (this.isStatic) - throw new Error("Can't compute a static facet"); - return new fu(e, this, 1, n); - } - /** - Create an extension that computes zero or more values for this - facet from a state. - */ - computeN(e, n) { - if (this.isStatic) - throw new Error("Can't compute a static facet"); - return new fu(e, this, 2, n); - } - from(e, n) { - return n || (n = (i) => i), this.compute([e], (i) => n(i.field(e))); - } -} -function S5(t, e) { - return t == e || t.length == e.length && t.every((n, i) => n === e[i]); -} -class fu { - constructor(e, n, i, r) { - this.dependencies = e, this.facet = n, this.type = i, this.value = r, this.id = Q5++; - } - dynamicSlot(e) { - var n; - 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[o] = i(u), 1; - }, - update(u, d) { - if (s && d.docChanged || l && (d.docChanged || d.selection) || jp(u, c)) { - let h = i(u); - if (a ? !jQ(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 = ed(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 ? jQ(h = i(u), g, r) : r(h = i(u), g))) - return u.values[o] = g, 0; - } else - h = i(u); - return u.values[o] = h, 1; - } - }; - } -} -function jQ(t, e, n) { - if (t.length != e.length) - return !1; - for (let i = 0; i < t.length; i++) - if (!n(t[i], e[i])) - return !1; - return !0; -} -function jp(t, e) { - let n = !1; - for (let i of e) - xs(t, i) & 1 && (n = !0); - return n; -} -function qG(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 = ed(s, i[c]); - if (r[c] == 2) - for (let d of u) - l.push(d); - else - l.push(u); - } - return e.combine(l); - } - return { - create(s) { - for (let l of i) - xs(s, l); - return s.values[o] = a(s), 1; - }, - update(s, l) { - if (!jp(s, O)) - return 0; - let c = a(s); - return e.compare(c, s.values[o]) ? 0 : (s.values[o] = c, 1); - }, - reconfigure(s, l) { - let c = jp(s, i), u = l.config.facets[e.id], d = l.facet(e); - if (u && !c && S5(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 EQ = /* @__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; - } - /** - Define a state field. - */ - static define(e) { - let n = new Ft(Q5++, 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(EQ).find((i) => i.field == this); - return ((n == null ? void 0 : n.create) || this.createF)(e); - } - /** - @internal - */ - slot(e) { - let n = e[this.id] >> 1; - return { - create: (i) => (i.values[n] = this.create(i), 1), - update: (i, r) => { - 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) - }; - } - /** - Returns an extension that enables this field and overrides the - way it is initialized. Can be useful when you need to provide a - non-default starting value for the field. - */ - init(e) { - return [this, EQ.of({ field: this, create: e })]; - } - /** - State field instances can be used as - [`Extension`](https://codemirror.net/6/docs/ref/#state.Extension) values to enable the field in a - given state. - */ - get extension() { - return this; - } -} -const AO = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; -function Ua(t) { - return (e) => new A4(e, t); -} -const kO = { - /** - The highest precedence level, for extensions that should end up - near the start of the precedence ordering. - */ - highest: /* @__PURE__ */ Ua(AO.highest), - /** - A higher-than-default precedence, for extensions that should - come before those with default precedence. - */ - high: /* @__PURE__ */ Ua(AO.high), - /** - The default precedence, which is also used for extensions - without an explicit precedence. - */ - default: /* @__PURE__ */ Ua(AO.default), - /** - A lower-than-default precedence. - */ - 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__ */ Ua(AO.lowest) -}; -class A4 { - constructor(e, n) { - this.inner = e, this.prec = n; - } -} -class d1 { - /** - 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 Ep(this, e); - } - /** - Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that - reconfigures this compartment. - */ - reconfigure(e) { - return d1.reconfigure.of({ compartment: this, extension: e }); - } - /** - Get the current content of the compartment in the state, or - `undefined` if it isn't present. - */ - get(e) { - return e.config.compartments.get(this); - } -} -class Ep { - constructor(e, n) { - this.compartment = e, this.inner = n; - } -} -class Ku { - 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 */ - ); - } - staticFacet(e) { - let n = this.address[e.id]; - return n == null ? e.default : this.staticValues[n >> 1]; - } - static resolve(e, n, i) { - let r = [], O = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Map(); - for (let d of YG(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) - 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] || []; - if (h.every( - (m) => m.type == 0 - /* Provider.Static */ - )) - if (a[$.id] = s.length << 1 | 1, S5(g, h)) - s.push(i.facet($)); - else { - let m = $.combine(h.map((Q) => Q.value)); - s.push(i && $.compare(m, i.facet($)) ? i.facet($) : m); - } - else { - for (let m of 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) => qG(m, $, h)); - } - } - let u = l.map((d) => d(a)); - return new Ku(e, o, u, a, s, O); - } -} -function YG(t, e, n) { - let i = [[], [], [], [], []], r = /* @__PURE__ */ new Map(); - function O(o, a) { - let s = r.get(o); - if (s != null) { - if (s <= a) - return; - let l = i[s].indexOf(o); - l > -1 && i[s].splice(l, 1), o instanceof Ep && n.delete(o.compartment); - } - if (r.set(o, a), Array.isArray(o)) - for (let l of o) - O(l, a); - else if (o instanceof Ep) { - if (n.has(o.compartment)) - throw new RangeError("Duplicate use of compartment in extensions"); - let l = e.get(o.compartment) || o.inner; - n.set(o.compartment, l), O(l, a); - } else if (o instanceof A4) - O(o.inner, o.prec); - else if (o instanceof Ft) - i[a].push(o), o.provides && O(o.provides, a); - else if (o instanceof fu) - i[a].push(o), o.facet.extensions && O(o.facet.extensions, AO.default); - else { - let l = o.extension; - if (!l) - 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, AO.default), i.reduce((o, a) => o.concat(a)); -} -function xs(t, e) { - if (e & 1) - return 2; - let n = e >> 1, i = t.status[n]; - if (i == 4) - throw new Error("Cyclic dependency between fields and/or facets"); - if (i & 2) - return i; - t.status[n] = 4; - let r = t.computeSlot(t, t.config.dynamicSlots[n]); - return t.status[n] = 2 | r; -} -function ed(t, e) { - return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1]; -} -const F4 = /* @__PURE__ */ re.define(), L4 = /* @__PURE__ */ re.define({ - combine: (t) => t.some((e) => e), - static: !0 -}), N4 = /* @__PURE__ */ re.define({ - combine: (t) => t.length ? t[0] : void 0, - static: !0 -}), M4 = /* @__PURE__ */ re.define(), H4 = /* @__PURE__ */ re.define(), B4 = /* @__PURE__ */ re.define(), J4 = /* @__PURE__ */ re.define({ - combine: (t) => t.length ? t[0] : !1 -}); -class fr { - /** - @internal - */ - constructor(e, n) { - this.type = e, this.value = n; - } - /** - Define a new type of annotation. - */ - static define() { - return new ZG(); - } -} -class ZG { - /** - Create an instance of this annotation. - */ - of(e) { - return new fr(this, e); - } -} -class GG { - /** - @internal - */ - constructor(e) { - this.map = e; - } - /** - Create a [state effect](https://codemirror.net/6/docs/ref/#state.StateEffect) instance of this - type. - */ - of(e) { - return new ke(this, e); - } -} -class ke { - /** - @internal - */ - constructor(e, n) { - this.type = e, this.value = n; - } - /** - Map this effect through a position mapping. Will return - `undefined` when that ends up deleting the effect. - */ - map(e) { - let n = this.type.map(this.value, e); - 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 - [type](https://codemirror.net/6/docs/ref/#state.StateEffectType). - */ - is(e) { - return this.type == e; - } - /** - Define a new effect type. The type parameter indicates the type - of values that his effect holds. It should be a type that - doesn't include `undefined`, since that is used in - [mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is - removed. - */ - static define(e = {}) { - return new GG(e.map || ((n) => n)); - } - /** - Map an array of effects through a change set. - */ - static mapEffects(e, n) { - if (!e.length) - return e; - let i = []; - for (let r of e) { - let O = r.map(n); - O && i.push(O); - } - return i; - } -} -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 && I4(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, o) { - return new jt(e, n, i, r, O, o); - } - /** - The new document produced by the transaction. Contrary to - [`.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state)`.doc`, accessing this won't - force the entire new state to be computed right away, so it is - recommended that [transaction - filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) use this getter - when they need to look at the new document. - */ - get newDoc() { - return this._doc || (this._doc = this.changes.apply(this.startState.doc)); - } - /** - The new selection produced by the transaction. If - [`this.selection`](https://codemirror.net/6/docs/ref/#state.Transaction.selection) is undefined, - this will [map](https://codemirror.net/6/docs/ref/#state.EditorSelection.map) the start state's - current selection through the changes made by the transaction. - */ - get newSelection() { - return this.selection || this.startState.selection.map(this.changes); - } - /** - The new state created by the transaction. Computed on demand - (but retained for subsequent access), so it is recommended not to - access it in [transaction - filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) when possible. - */ - get state() { - return this._state || this.startState.applyTransaction(this), this._state; - } - /** - Get the value of the given annotation type, if any. - */ - annotation(e) { - for (let n of this.annotations) - if (n.type == e) - return n.value; - } - /** - Indicates whether the transaction changed the document. - */ - get docChanged() { - return !this.changes.empty; - } - /** - Indicates whether this transaction reconfigures the state - (through a [configuration compartment](https://codemirror.net/6/docs/ref/#state.Compartment) or - with a top-level configuration - [effect](https://codemirror.net/6/docs/ref/#state.StateEffect^reconfigure). - */ - get reconfigured() { - return this.startState.config != this.state.config; - } - /** - Returns true if the transaction has a [user - event](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent) annotation that is equal to - or more specific than `event`. For example, if the transaction - has `"select.pointer"` as user event, `"select"` and - `"select.pointer"` will match it. - */ - isUserEvent(e) { - let n = this.annotation(jt.userEvent); - return !!(n && (n == e || n.length > e.length && n.slice(0, e.length) == e && n[e.length] == ".")); - } -} -jt.time = /* @__PURE__ */ fr.define(); -jt.userEvent = /* @__PURE__ */ fr.define(); -jt.addToHistory = /* @__PURE__ */ fr.define(); -jt.remote = /* @__PURE__ */ fr.define(); -function zG(t, e) { - let n = []; - for (let i = 0, r = 0; ; ) { - let O, o; - if (i < t.length && (r == e.length || e[r] >= t[i])) - O = t[i++], o = t[i++]; - else if (r < e.length) - O = e[r++], o = e[r++]; - else - return n; - !n.length || n[n.length - 1] < O ? n.push(O, o) : n[n.length - 1] < o && (n[n.length - 1] = o); - } -} -function K4(t, e, n) { - var i; - 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: 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 Dp(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(N4)), - selection: i && (i instanceof Z ? i : Z.single(i.anchor, i.head)), - effects: Ao(e.effects), - annotations: r, - scrollIntoView: !!e.scrollIntoView - }; -} -function eP(t, e, n) { - let i = Dp(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 o = !!e[O].sequential; - i = K4(i, Dp(t, e[O], o ? i.changes.newLength : t.doc.length), o); - } - let r = jt.create(t, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView); - return VG(n ? UG(r) : r); -} -function UG(t) { - let e = t.startState, n = !0; - for (let r of e.facet(M4)) { - let O = r(t); - if (O === !1) { - n = !1; - break; - } - Array.isArray(O) && (n = n === !0 ? O : zG(n, O)); - } - if (n !== !0) { - let r, O; - if (n === !1) - O = t.changes.invertedDesc, r = Vt.empty(e.doc.length); - else { - let o = t.changes.filter(n); - r = o.changes, O = o.filtered.mapDesc(o.changes).invertedDesc; - } - t = jt.create(e, r, t.selection && t.selection.map(O), ke.mapEffects(t.effects, O), t.annotations, t.scrollIntoView); - } - let i = e.facet(H4); - for (let r = i.length - 1; r >= 0; r--) { - let O = i[r](t); - O instanceof jt ? t = O : Array.isArray(O) && O.length == 1 && O[0] instanceof jt ? t = O[0] : t = eP(e, Ao(O), !1); - } - return t; -} -function VG(t) { - let e = t.startState, n = e.facet(B4), i = t; - for (let r = n.length - 1; r >= 0; r--) { - let O = n[r](t); - O && Object.keys(O).length && (i = K4(i, Dp(e, O, t.changes.newLength), !0)); - } - return i == t ? t : jt.create(e, t.changes, t.selection, i.effects, i.annotations, i.scrollIntoView); -} -const jG = []; -function Ao(t) { - return t == null ? jG : Array.isArray(t) ? t : [t]; -} -var gt = /* @__PURE__ */ function(t) { - return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; -}(gt || (gt = {})); -const EG = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; -let Ip; -try { - Ip = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); -} catch { -} -function DG(t) { - if (Ip) - return Ip.test(t); - for (let e = 0; e < t.length; e++) { - let n = t[e]; - if (/\w/.test(n) || n > "€" && (n.toUpperCase() != n.toLowerCase() || EG.test(n))) - return !0; - } - return !1; -} -function IG(t) { - return (e) => { - if (!/\S/.test(e)) - return gt.Space; - if (DG(e)) - return gt.Word; - for (let n = 0; n < t.length; n++) - if (e.indexOf(t[n]) > -1) - return gt.Word; - return gt.Other; - }; -} -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) { - let i = this.config.address[e.id]; - if (i == null) { - if (n) - throw new RangeError("Field is not present in this state"); - return; - } - return xs(this, i), ed(this, i); - } - /** - Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this - state. Any number of [transaction specs](https://codemirror.net/6/docs/ref/#state.TransactionSpec) - can be passed. Unless - [`sequential`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.sequential) is set, the - [changes](https://codemirror.net/6/docs/ref/#state.TransactionSpec.changes) (if any) of each spec - are assumed to start in the _current_ document (not the document - produced by previous specs), and its - [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) and - [effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) are assumed to refer - to the document created by its _own_ changes. The resulting - transaction contains the combined effect of all the different - specs. For [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection), later - specs take precedence over earlier ones. - */ - update(...e) { - return eP(this, e, !0); - } - /** - @internal - */ - applyTransaction(e) { - let n = this.config, { base: i, compartments: r } = n; - for (let o of e.effects) - o.is(d1.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 = Ku.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 - replaces every selection range with the given content. - */ - replaceSelection(e) { - return typeof e == "string" && (e = this.toText(e)), this.changeByRange((n) => ({ - changes: { from: n.from, to: n.to, insert: e }, - range: Z.cursor(n.from + e.length) - })); - } - /** - Create a set of changes and a new selection by running the given - function for each range in the active selection. The function - can return an optional set of changes (in the coordinate space - of the start document), plus an updated range (in the coordinate - space of the document produced by the call's own changes). This - method will merge all the changes and ranges into a single - changeset and selection, and return it as a [transaction - spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec), which can be passed to - [`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], 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), o = ke.mapEffects(o, c).concat(ke.mapEffects(Ao(s.effects), u)); - } - return { - changes: r, - selection: Z.create(O, n.mainIndex), - effects: o - }; - } - /** - Create a [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet) from the given change - description, taking the state's document length and line - separator into account. - */ - changes(e = []) { - return e instanceof Vt ? e : Vt.of(e, this.doc.length, this.facet(Ye.lineSeparator)); - } - /** - Using the state's [line - separator](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator), create a - [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string. - */ - toText(e) { - return nt.of(e.split(this.facet(Ye.lineSeparator) || zp)); - } - /** - Return the given range of the document as a string. - */ - sliceDoc(e = 0, n = this.doc.length) { - return this.doc.sliceString(e, n, this.lineBreak); - } - /** - Get the value of a state [facet](https://codemirror.net/6/docs/ref/#state.Facet). - */ - facet(e) { - let n = this.config.address[e.id]; - return n == null ? e.default : (xs(this, n), ed(this, n)); - } - /** - Convert this state to a JSON-serializable object. When custom - fields should be serialized, you can pass them in as an object - mapping property names (in the resulting object, which should - not use `doc` or `selection`) to fields. - */ - toJSON(e) { - let n = { - doc: this.sliceDoc(), - selection: this.selection.toJSON() - }; - if (e) - for (let i in e) { - let r = e[i]; - r instanceof Ft && this.config.address[r.id] != null && (n[i] = r.spec.toJSON(this.field(e[i]), this)); - } - return n; - } - /** - Deserialize a state from its JSON representation. When custom - fields should be deserialized, pass the same object you passed - to [`toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) when serializing as - third argument. - */ - static fromJSON(e, n = {}, i) { - if (!e || typeof e.doc != "string") - throw new RangeError("Invalid JSON representation for EditorState"); - let r = []; - if (i) { - for (let O in i) - if (Object.prototype.hasOwnProperty.call(e, O)) { - let o = i[O], a = e[O]; - r.push(o.init((s) => o.spec.fromJSON(a, s))); - } - } - return Ye.create({ - doc: e.doc, - selection: Z.fromJSON(e.selection), - extensions: n.extensions ? r.concat([n.extensions]) : r - }); - } - /** - Create a new state. You'll usually only need this when - initializing an editor—updated states are created by applying - transactions. - */ - static create(e = {}) { - let n = Ku.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof nt ? e.doc : nt.of((e.doc || "").split(n.staticFacet(Ye.lineSeparator) || zp)), r = e.selection ? e.selection instanceof Z ? e.selection : Z.single(e.selection.anchor, e.selection.head) : Z.single(0); - return I4(r, i.length), n.staticFacet(L4) || (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(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(Ye.lineSeparator) || ` -`; - } - /** - Returns true when the editor is - [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only. - */ - get readOnly() { - return this.facet(J4); - } - /** - Look up a translation for the given phrase (via the - [`phrases`](https://codemirror.net/6/docs/ref/#state.EditorState^phrases) facet), or return the - original string if no translation is found. - - If additional arguments are passed, they will be inserted in - place of markers like `$1` (for the first value) and `$2`, etc. - A single `$` is equivalent to `$1`, and `$$` will produce a - literal dollar sign. - */ - phrase(e, ...n) { - for (let i of this.facet(Ye.phrases)) - if (Object.prototype.hasOwnProperty.call(i, e)) { - e = i[e]; - break; - } - return n.length && (e = e.replace(/\$(\$|\d*)/g, (i, r) => { - if (r == "$") - return "$"; - let O = +(r || 1); - return !O || O > n.length ? i : n[O - 1]; - })), e; - } - /** - Find the values for a given language data field, provided by the - the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet. - - Examples of language data fields are... - - - [`"commentTokens"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying - comment syntax. - - [`"autocomplete"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override) - for providing language-specific completion sources. - - [`"wordChars"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding - characters that should be considered part of words in this - language. - - [`"closeBrackets"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls - bracket closing behavior. - */ - languageDataAt(e, n, i = -1) { - let r = []; - for (let O of this.facet(F4)) - for (let o of O(this, n, i)) - Object.prototype.hasOwnProperty.call(o, e) && r.push(o[e]); - return r; - } - /** - Return a function that can categorize strings (expected to - represent a single [grapheme cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak)) - into one of: - - - Word (contains an alphanumeric character or a character - explicitly listed in the local language's `"wordChars"` - language data, which should be a string) - - Space (contains only whitespace) - - Other (anything else) - */ - charCategorizer(e) { - return IG(this.languageDataAt("wordChars", e).join("")); - } - /** - Find the word at the given position, meaning the range - containing all [word](https://codemirror.net/6/docs/ref/#state.CharCategory.Word) characters - around it. If no word characters are adjacent to the position, - this returns null. - */ - wordAt(e) { - 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; - o = s; - } - for (; a < r; ) { - let s = hn(n, a); - if (O(n.slice(a, s)) != gt.Word) - break; - a = s; - } - return o == a ? null : Z.range(o + i, a + i); - } -} -Ye.allowMultipleSelections = L4; -Ye.tabSize = /* @__PURE__ */ re.define({ - combine: (t) => t.length ? t[0] : 4 -}); -Ye.lineSeparator = N4; -Ye.readOnly = J4; -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]); - } -}); -Ye.languageData = F4; -Ye.changeFilter = M4; -Ye.transactionFilter = H4; -Ye.transactionExtender = B4; -d1.reconfigure = /* @__PURE__ */ ke.define(); -function hr(t, e, n = {}) { - let i = {}; - for (let r of t) - for (let O of Object.keys(r)) { - 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](a, o); - else - throw new Error("Config merge conflict for field " + O); - } - for (let r in e) - i[r] === void 0 && (i[r] = e[r]); - return i; -} -class ro { - /** - Compare this value with another value. Used when comparing - rangesets. The default implementation compares by identity. - Unless you are only creating a fixed number of unique instances - of your value type, it is a good idea to implement this - properly. - */ - eq(e) { - return this == e; - } - /** - Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value. - */ - range(e, n = e) { - return Ap.create(e, n, this); - } -} -ro.prototype.startSide = ro.prototype.endSide = 0; -ro.prototype.point = !1; -ro.prototype.mapMode = nn.TrackDel; -let Ap = class tP { - constructor(e, n, i) { - this.from = e, this.to = n, this.value = i; - } - /** - @internal - */ - static create(e, n, i) { - return new tP(e, n, i); - } -}; -function Fp(t, e) { - return t.from - e.from || t.value.startSide - e.value.startSide; -} -class w5 { - constructor(e, n, i, r) { - this.from = e, this.to = n, this.value = i, this.maxPoint = r; - } - get length() { - return this.to[this.to.length - 1]; - } - // Find the index of the given position and side. Use the ranges' - // `from` pos when `end == false`, `to` when `end == true`. - findIndex(e, n, i, r = 0) { - let O = i ? this.to : this.from; - 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), 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 = [], 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) { - let $ = n.mapPos(c, l.startSide, l.mapMode); - if ($ == null || (d = h = $, l.startSide != l.endSide && (h = n.mapPos(c, l.endSide), h < d))) - 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 || (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 w5(r, O, i, a) : null, pos: o }; - } -} -class rt { - constructor(e, n, i, r) { - this.chunkPos = e, this.chunk = n, this.nextLayer = i, this.maxPoint = r; - } - /** - @internal - */ - static create(e, n, i, r) { - return new rt(e, n, i, r); - } - /** - @internal - */ - get length() { - let e = this.chunk.length - 1; - return e < 0 ? 0 : Math.max(this.chunkEnd(e), this.nextLayer.length); - } - /** - The number of ranges in the set. - */ - get size() { - if (this.isEmpty) - return 0; - let e = this.nextLayer.size; - for (let n of this.chunk) - e += n.value.length; - return e; - } - /** - @internal - */ - chunkEnd(e) { - return this.chunkPos[e] + this.chunk[e].length; - } - /** - Update the range set, optionally adding new ranges or filtering - out existing ones. - - (Note: The type parameter is just there as a kludge to work - around TypeScript variance issues that prevented `RangeSet` - from being a subtype of `RangeSet` when `X` is a subtype of - `Y`.) - */ - update(e) { - 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(Fp)), this.isEmpty) - return n.length ? rt.of(n) : this; - let a = new nP(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 - 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(Ap.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. - */ - map(e) { - if (e.empty || this.isEmpty) - return this; - let n = [], i = [], r = -1; - 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(a)); - else if (l === !0) { - 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 rt(i, n, O || rt.empty, r); - } - /** - Iterate over the ranges that touch the region `from` to `to`, - calling `f` for each. There is no guarantee that the ranges will - be reported in any specific order. When the callback returns - `false`, iteration stops. - */ - between(e, n, i) { - if (!this.isEmpty) { - for (let r = 0; r < this.chunk.length; r++) { - 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); - } - } - /** - Iterate over the ranges in this set, in order, including all - ranges that end at or after `from`. - */ - iter(e = 0) { - return Ls.from([this]).goto(e); - } - /** - @internal - */ - get isEmpty() { - return this.nextLayer == this; - } - /** - Iterate over the ranges in a collection of sets, in order, - starting from `from`. - */ - static iter(e, n = 0) { - 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 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 = DQ(o, a, i), l = new Va(o, s, O), c = new Va(a, s, O); - i.iterGaps((u, d, h) => IQ(l, u, c, d, h, r)), i.empty && i.length == 0 && IQ(l, 0, c, 0, 0, r); - } - /** - Compare the contents of two groups of range sets, returning true - if they are equivalent in the given range. - */ - static eq(e, n, i = 0, r) { - r == null && (r = 1e9 - 1); - 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 a = DQ(O, o), s = new Va(O, a, 0).goto(i), l = new Va(o, a, 0).goto(i); - for (; ; ) { - if (s.to != l.to || !Lp(s.active, l.active) || s.point && (!l.point || !s.point.eq(l.point))) - return !1; - if (s.to > r) - return !0; - s.next(), l.next(); - } - } - /** - Iterate over a group of range sets at the same time, notifying - the iterator about the ranges covering every given piece of - content. Returns the open count (see - [`SpanIterator.span`](https://codemirror.net/6/docs/ref/#state.SpanIterator.span)) at the end - of the iteration. - */ - static spans(e, n, i, r, O = -1) { - let o = new Va(e, null, O).goto(n), a = n, s = o.openStart; - for (; ; ) { - 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 > 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(); - } - } - /** - Create a range set for the given range or array of ranges. By - default, this expects the ranges to be _sorted_ (by start - position and, if two start at the same position, - `value.startSide`). You can pass `true` as second argument to - cause the method to sort them. - */ - static of(e, n = !1) { - let i = new mO(); - for (let r of e instanceof Ap ? [e] : n ? AG(e) : e) - i.add(r.from, r.to, r.value); - return i.finish(); - } -} -rt.empty = /* @__PURE__ */ new rt([], [], null, -1); -function AG(t) { - if (t.length > 1) - for (let e = t[0], n = 1; n < t.length; n++) { - let i = t[n]; - if (Fp(e, i) > 0) - return t.slice().sort(Fp); - e = i; - } - return t; -} -rt.empty.nextLayer = rt.empty; -class mO { - finishChunk(e) { - this.chunks.push(new w5(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. - */ - constructor() { - this.chunks = [], this.chunkPos = [], this.chunkStart = -1, this.last = null, this.lastFrom = -1e9, this.lastTo = -1e9, this.from = [], this.to = [], this.value = [], this.maxPoint = -1, this.setMaxPoint = -1, this.nextLayer = null; - } - /** - Add a range. Ranges should be added in sorted (by `from` and - `value.startSide`) order. - */ - add(e, n, i) { - this.addInner(e, n, i) || (this.nextLayer || (this.nextLayer = new mO())).add(e, n, i); - } - /** - @internal - */ - addInner(e, n, i) { - let r = e - this.lastTo || i.startSide - this.last.endSide; - if (r <= 0 && (e - this.lastFrom || i.startSide - this.last.startSide) < 0) - throw new Error("Ranges must be added sorted by `from` position and `startSide`"); - return r < 0 ? !1 : (this.from.length == 250 && this.finishChunk(!0), this.chunkStart < 0 && (this.chunkStart = e), this.from.push(e - this.chunkStart), this.to.push(n - this.chunkStart), this.last = i, this.lastFrom = e, this.lastTo = n, this.value.push(i), i.point && (this.maxPoint = Math.max(this.maxPoint, n - e)), !0); - } - /** - @internal - */ - addChunk(e, n) { - if ((e - this.lastTo || n.value[0].startSide - this.last.endSide) < 0) - return !1; - this.from.length && this.finishChunk(!0), this.setMaxPoint = Math.max(this.setMaxPoint, n.maxPoint), this.chunks.push(n), this.chunkPos.push(e); - let i = n.value.length - 1; - return this.last = n.value[i], this.lastFrom = n.from[i] + e, this.lastTo = n.to[i] + e, !0; - } - /** - Finish the range set. Returns the new set. The builder can't be - used anymore after this has been called. - */ - finish() { - return this.finishInner(rt.empty); - } - /** - @internal - */ - finishInner(e) { - if (this.from.length && this.finishChunk(!1), this.chunks.length == 0) - return e; - let n = rt.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint); - return this.from = null, n; - } -} -function DQ(t, e, n) { - let i = /* @__PURE__ */ new Map(); - for (let O of t) - 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 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 nP { - constructor(e, n, i, r = 0) { - this.layer = e, this.skip = n, this.minPoint = i, this.rank = r; - } - get startSide() { - return this.value ? this.value.startSide : 0; - } - get endSide() { - return this.value ? this.value.endSide : 0; - } - goto(e, n = -1e9) { - return this.chunkIndex = this.rangeIndex = 0, this.gotoInner(e, n, !1), this; - } - gotoInner(e, n, i) { - for (; this.chunkIndex < this.layer.chunk.length; ) { - let r = this.layer.chunk[this.chunkIndex]; - if (!(this.skip && this.skip.has(r) || this.layer.chunkEnd(this.chunkIndex) < e || r.maxPoint < this.minPoint)) - break; - this.chunkIndex++, i = !1; - } - if (this.chunkIndex < this.layer.chunk.length) { - let r = this.layer.chunk[this.chunkIndex].findIndex(e - this.layer.chunkPos[this.chunkIndex], n, !0); - (!i || this.rangeIndex < r) && this.setRangeIndex(r); - } - this.next(); - } - forward(e, n) { - (this.to - e || this.endSide - n) < 0 && this.gotoInner(e, n, !0); - } - next() { - for (; ; ) - if (this.chunkIndex == this.layer.chunk.length) { - this.from = this.to = 1e9, this.value = null; - break; - } else { - let e = this.layer.chunkPos[this.chunkIndex], n = this.layer.chunk[this.chunkIndex], i = e + n.from[this.rangeIndex]; - if (this.from = i, this.to = e + n.to[this.rangeIndex], this.value = n.value[this.rangeIndex], this.setRangeIndex(this.rangeIndex + 1), this.minPoint < 0 || this.value.point && this.to - this.from >= this.minPoint) - break; - } - } - setRangeIndex(e) { - if (e == this.layer.chunk[this.chunkIndex].value.length) { - if (this.chunkIndex++, this.skip) - for (; this.chunkIndex < this.layer.chunk.length && this.skip.has(this.layer.chunk[this.chunkIndex]); ) - this.chunkIndex++; - this.rangeIndex = 0; - } else - this.rangeIndex = e; - } - nextChunk() { - this.chunkIndex++, this.rangeIndex = 0, this.next(); - } - compare(e) { - return this.from - e.from || this.startSide - e.startSide || this.rank - e.rank || this.to - e.to || this.endSide - e.endSide; - } -} -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 o = e[O]; !o.isEmpty; o = o.nextLayer) - o.maxPoint >= i && r.push(new nP(o, n, i, O)); - return r.length == 1 ? r[0] : new Ls(r); - } - get startSide() { - return this.value ? this.value.startSide : 0; - } - goto(e, n = -1e9) { - for (let i of this.heap) - i.goto(e, n); - for (let i = this.heap.length >> 1; i >= 0; i--) - wf(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--) - wf(this.heap, i); - (this.to - e || this.value.endSide - n) < 0 && this.next(); - } - next() { - if (this.heap.length == 0) - 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(), wf(this.heap, 0); - } - } -} -function wf(t, e) { - for (let n = t[e]; ; ) { - let i = (e << 1) + 1; - if (i >= t.length) - break; - let r = t[i]; - if (i + 1 < t.length && r.compare(t[i + 1]) >= 0 && (r = t[i + 1], i++), n.compare(r) < 0) - break; - t[i] = n, t[e] = r, e = i; - } -} -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 = 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; - } - forward(e, n) { - for (; this.minActive > -1 && (this.activeTo[this.minActive] - e || this.active[this.minActive].endSide - n) < 0; ) - this.removeActive(this.minActive); - this.cursor.forward(e, n); - } - removeActive(e) { - Jl(this.active, e), Jl(this.activeTo, e), Jl(this.activeRank, e), this.minActive = AQ(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++; - Kl(this.active, n, i), Kl(this.activeTo, n, r), Kl(this.activeRank, n, O), e && Kl(e, n, this.cursor.from), this.minActive = AQ(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`. - next() { - let e = this.to, n = this.point; - this.point = null; - let i = this.openStart < 0 ? [] : null; - for (; ; ) { - let r = this.minActive; - if (r > -1 && (this.activeTo[r] - this.cursor.from || this.active[r].endSide - this.cursor.startSide) < 0) { - if (this.activeTo[r] > e) { - this.to = this.activeTo[r], this.endSide = this.active[r].endSide; - break; - } - this.removeActive(r), i && Jl(i, r); - } else if (this.cursor.value) - if (this.cursor.from > e) { - this.to = this.cursor.from, this.endSide = this.cursor.startSide; - break; - } else { - let O = this.cursor.value; - if (!O.point) - this.addActive(i), this.cursor.next(); - else if (n && this.cursor.to == this.to && this.cursor.from < this.cursor.to) - this.cursor.next(); - else { - this.point = O, this.pointFrom = this.cursor.from, this.pointRank = this.cursor.rank, this.to = this.cursor.to, this.endSide = O.endSide, this.cursor.next(), this.forward(this.to, this.endSide); - break; - } - } - else { - this.to = this.endSide = 1e9; - break; - } - } - if (i) { - this.openStart = 0; - for (let r = i.length - 1; r >= 0 && i[r] < e; r--) - this.openStart++; - } - } - activeForPoint(e) { - if (!this.active.length) - return this.active; - let n = []; - for (let i = this.active.length - 1; i >= 0 && !(this.activeRank[i] < this.pointRank); i--) - (this.activeTo[i] > e || this.activeTo[i] == e && this.active[i].endSide >= this.point.endSide) && n.push(this.active[i]); - return n.reverse(); - } - openEnd(e) { - let n = 0; - for (let i = this.activeTo.length - 1; i >= 0 && this.activeTo[i] > e; i--) - n++; - return n; - } -} -function IQ(t, e, n, i, r, O) { - t.goto(e), n.goto(i); - 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, o); - if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && Lp(t.activeForPoint(t.to), n.activeForPoint(n.to)) || O.comparePoint(a, u, t.point, n.point) : u > a && !Lp(t.active, n.active) && O.compareRange(a, u, t.active, n.active), c > o) - break; - a = c, l <= 0 && t.next(), l >= 0 && n.next(); - } -} -function Lp(t, e) { - if (t.length != e.length) - return !1; - for (let n = 0; n < t.length; n++) - if (t[n] != e[n] && !t[n].eq(e[n])) - return !1; - return !0; -} -function Jl(t, e) { - for (let n = e, i = t.length - 1; n < i; n++) - t[n] = t[n + 1]; - t.pop(); -} -function Kl(t, e, n) { - for (let i = t.length - 1; i >= e; i--) - t[i + 1] = t[i]; - t[e] = n; -} -function AQ(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 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 = hn(t, r)); - return i; -} -function Np(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 = hn(t, r); - } - return i === !0 ? -1 : t.length; -} -const Mp = "ͼ", FQ = typeof Symbol > "u" ? "__" + Mp : Symbol.for(Mp), Hp = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), LQ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; -class QO { - // :: (Object