Created
September 27, 2025 06:47
-
-
Save rattfieldnz/0849df96445b1d277578b511be08249c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Rc = e => { | |
| throw TypeError(e) | |
| }; | |
| var xl = (e, t, n) => t.has(e) || Rc("Cannot " + n); | |
| var N = (e, t, n) => (xl(e, t, "read from private field"), n ? n.call(e) : t.get(e)), | |
| Z = (e, t, n) => t.has(e) ? Rc("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), | |
| B = (e, t, n, r) => (xl(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), | |
| Pe = (e, t, n) => (xl(e, t, "access private method"), n); | |
| var Si = (e, t, n, r) => ({ | |
| set _(o) { | |
| B(e, t, o, n) | |
| }, | |
| get _() { | |
| return N(e, t, r) | |
| } | |
| }); | |
| function Ug(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| const r = t[n]; | |
| if (typeof r != "string" && !Array.isArray(r)) { | |
| for (const o in r) | |
| if (o !== "default" && !(o in e)) { | |
| const i = Object.getOwnPropertyDescriptor(r, o); | |
| i && Object.defineProperty(e, o, i.get ? i : { | |
| enumerable: !0, | |
| get: () => r[o] | |
| }) | |
| } | |
| } | |
| } | |
| return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { | |
| value: "Module" | |
| })) | |
| }(function() { | |
| const t = document.createElement("link").relList; | |
| if (t && t.supports && t.supports("modulepreload")) return; | |
| for (const o of document.querySelectorAll('link[rel="modulepreload"]')) r(o); | |
| new MutationObserver(o => { | |
| for (const i of o) | |
| if (i.type === "childList") | |
| for (const s of i.addedNodes) s.tagName === "LINK" && s.rel === "modulepreload" && r(s) | |
| }).observe(document, { | |
| childList: !0, | |
| subtree: !0 | |
| }); | |
| function n(o) { | |
| const i = {}; | |
| return o.integrity && (i.integrity = o.integrity), o.referrerPolicy && (i.referrerPolicy = o.referrerPolicy), o.crossOrigin === "use-credentials" ? i.credentials = "include" : o.crossOrigin === "anonymous" ? i.credentials = "omit" : i.credentials = "same-origin", i | |
| } | |
| function r(o) { | |
| if (o.ep) return; | |
| o.ep = !0; | |
| const i = n(o); | |
| fetch(o.href, i) | |
| } | |
| })(); | |
| function _f(e) { | |
| return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e | |
| } | |
| var Af = { | |
| exports: {} | |
| }, | |
| zs = {}, | |
| Of = { | |
| exports: {} | |
| }, | |
| G = {}; | |
| /** | |
| * @license React | |
| * react.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 ci = Symbol.for("react.element"), | |
| Bg = Symbol.for("react.portal"), | |
| Wg = Symbol.for("react.fragment"), | |
| Vg = Symbol.for("react.strict_mode"), | |
| Hg = Symbol.for("react.profiler"), | |
| Qg = Symbol.for("react.provider"), | |
| Kg = Symbol.for("react.context"), | |
| Gg = Symbol.for("react.forward_ref"), | |
| Yg = Symbol.for("react.suspense"), | |
| Xg = Symbol.for("react.memo"), | |
| qg = Symbol.for("react.lazy"), | |
| jc = Symbol.iterator; | |
| function Zg(e) { | |
| return e === null || typeof e != "object" ? null : (e = jc && e[jc] || e["@@iterator"], typeof e == "function" ? e : null) | |
| } | |
| var Mf = { | |
| isMounted: function() { | |
| return !1 | |
| }, | |
| enqueueForceUpdate: function() {}, | |
| enqueueReplaceState: function() {}, | |
| enqueueSetState: function() {} | |
| }, | |
| Lf = Object.assign, | |
| Df = {}; | |
| function so(e, t, n) { | |
| this.props = e, this.context = t, this.refs = Df, this.updater = n || Mf | |
| } | |
| so.prototype.isReactComponent = {}; | |
| so.prototype.setState = function(e, t) { | |
| if (typeof e != "object" && typeof e != "function" && e != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); | |
| this.updater.enqueueSetState(this, e, t, "setState") | |
| }; | |
| so.prototype.forceUpdate = function(e) { | |
| this.updater.enqueueForceUpdate(this, e, "forceUpdate") | |
| }; | |
| function If() {} | |
| If.prototype = so.prototype; | |
| function uu(e, t, n) { | |
| this.props = e, this.context = t, this.refs = Df, this.updater = n || Mf | |
| } | |
| var cu = uu.prototype = new If; | |
| cu.constructor = uu; | |
| Lf(cu, so.prototype); | |
| cu.isPureReactComponent = !0; | |
| var _c = Array.isArray, | |
| Ff = Object.prototype.hasOwnProperty, | |
| du = { | |
| current: null | |
| }, | |
| zf = { | |
| key: !0, | |
| ref: !0, | |
| __self: !0, | |
| __source: !0 | |
| }; | |
| function $f(e, t, n) { | |
| var r, o = {}, | |
| i = null, | |
| s = null; | |
| if (t != null) | |
| for (r in t.ref !== void 0 && (s = t.ref), t.key !== void 0 && (i = "" + t.key), t) Ff.call(t, r) && !zf.hasOwnProperty(r) && (o[r] = t[r]); | |
| var l = arguments.length - 2; | |
| if (l === 1) o.children = n; | |
| else if (1 < l) { | |
| for (var a = Array(l), u = 0; u < l; u++) a[u] = arguments[u + 2]; | |
| o.children = a | |
| } | |
| if (e && e.defaultProps) | |
| for (r in l = e.defaultProps, l) o[r] === void 0 && (o[r] = l[r]); | |
| return { | |
| $$typeof: ci, | |
| type: e, | |
| key: i, | |
| ref: s, | |
| props: o, | |
| _owner: du.current | |
| } | |
| } | |
| function Jg(e, t) { | |
| return { | |
| $$typeof: ci, | |
| type: e.type, | |
| key: t, | |
| ref: e.ref, | |
| props: e.props, | |
| _owner: e._owner | |
| } | |
| } | |
| function fu(e) { | |
| return typeof e == "object" && e !== null && e.$$typeof === ci | |
| } | |
| function ey(e) { | |
| var t = { | |
| "=": "=0", | |
| ":": "=2" | |
| }; | |
| return "$" + e.replace(/[=:]/g, function(n) { | |
| return t[n] | |
| }) | |
| } | |
| var Ac = /\/+/g; | |
| function wl(e, t) { | |
| return typeof e == "object" && e !== null && e.key != null ? ey("" + e.key) : t.toString(36) | |
| } | |
| function Qi(e, t, n, r, o) { | |
| var i = typeof e; | |
| (i === "undefined" || i === "boolean") && (e = null); | |
| var s = !1; | |
| if (e === null) s = !0; | |
| else switch (i) { | |
| case "string": | |
| case "number": | |
| s = !0; | |
| break; | |
| case "object": | |
| switch (e.$$typeof) { | |
| case ci: | |
| case Bg: | |
| s = !0 | |
| } | |
| } | |
| if (s) return s = e, o = o(s), e = r === "" ? "." + wl(s, 0) : r, _c(o) ? (n = "", e != null && (n = e.replace(Ac, "$&/") + "/"), Qi(o, t, n, "", function(u) { | |
| return u | |
| })) : o != null && (fu(o) && (o = Jg(o, n + (!o.key || s && s.key === o.key ? "" : ("" + o.key).replace(Ac, "$&/") + "/") + e)), t.push(o)), 1; | |
| if (s = 0, r = r === "" ? "." : r + ":", _c(e)) | |
| for (var l = 0; l < e.length; l++) { | |
| i = e[l]; | |
| var a = r + wl(i, l); | |
| s += Qi(i, t, n, a, o) | |
| } else if (a = Zg(e), typeof a == "function") | |
| for (e = a.call(e), l = 0; !(i = e.next()).done;) i = i.value, a = r + wl(i, l++), s += Qi(i, t, n, a, o); | |
| else if (i === "object") throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); | |
| return s | |
| } | |
| function ki(e, t, n) { | |
| if (e == null) return e; | |
| var r = [], | |
| o = 0; | |
| return Qi(e, r, "", "", function(i) { | |
| return t.call(n, i, o++) | |
| }), r | |
| } | |
| function ty(e) { | |
| if (e._status === -1) { | |
| var t = e._result; | |
| t = t(), t.then(function(n) { | |
| (e._status === 0 || e._status === -1) && (e._status = 1, e._result = n) | |
| }, function(n) { | |
| (e._status === 0 || e._status === -1) && (e._status = 2, e._result = n) | |
| }), e._status === -1 && (e._status = 0, e._result = t) | |
| } | |
| if (e._status === 1) return e._result.default; | |
| throw e._result | |
| } | |
| var Ie = { | |
| current: null | |
| }, | |
| Ki = { | |
| transition: null | |
| }, | |
| ny = { | |
| ReactCurrentDispatcher: Ie, | |
| ReactCurrentBatchConfig: Ki, | |
| ReactCurrentOwner: du | |
| }; | |
| function Uf() { | |
| throw Error("act(...) is not supported in production builds of React.") | |
| } | |
| G.Children = { | |
| map: ki, | |
| forEach: function(e, t, n) { | |
| ki(e, function() { | |
| t.apply(this, arguments) | |
| }, n) | |
| }, | |
| count: function(e) { | |
| var t = 0; | |
| return ki(e, function() { | |
| t++ | |
| }), t | |
| }, | |
| toArray: function(e) { | |
| return ki(e, function(t) { | |
| return t | |
| }) || [] | |
| }, | |
| only: function(e) { | |
| if (!fu(e)) throw Error("React.Children.only expected to receive a single React element child."); | |
| return e | |
| } | |
| }; | |
| G.Component = so; | |
| G.Fragment = Wg; | |
| G.Profiler = Hg; | |
| G.PureComponent = uu; | |
| G.StrictMode = Vg; | |
| G.Suspense = Yg; | |
| G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ny; | |
| G.act = Uf; | |
| G.cloneElement = function(e, t, n) { | |
| if (e == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); | |
| var r = Lf({}, e.props), | |
| o = e.key, | |
| i = e.ref, | |
| s = e._owner; | |
| if (t != null) { | |
| if (t.ref !== void 0 && (i = t.ref, s = du.current), t.key !== void 0 && (o = "" + t.key), e.type && e.type.defaultProps) var l = e.type.defaultProps; | |
| for (a in t) Ff.call(t, a) && !zf.hasOwnProperty(a) && (r[a] = t[a] === void 0 && l !== void 0 ? l[a] : t[a]) | |
| } | |
| var a = arguments.length - 2; | |
| if (a === 1) r.children = n; | |
| else if (1 < a) { | |
| l = Array(a); | |
| for (var u = 0; u < a; u++) l[u] = arguments[u + 2]; | |
| r.children = l | |
| } | |
| return { | |
| $$typeof: ci, | |
| type: e.type, | |
| key: o, | |
| ref: i, | |
| props: r, | |
| _owner: s | |
| } | |
| }; | |
| G.createContext = function(e) { | |
| return e = { | |
| $$typeof: Kg, | |
| _currentValue: e, | |
| _currentValue2: e, | |
| _threadCount: 0, | |
| Provider: null, | |
| Consumer: null, | |
| _defaultValue: null, | |
| _globalName: null | |
| }, e.Provider = { | |
| $$typeof: Qg, | |
| _context: e | |
| }, e.Consumer = e | |
| }; | |
| G.createElement = $f; | |
| G.createFactory = function(e) { | |
| var t = $f.bind(null, e); | |
| return t.type = e, t | |
| }; | |
| G.createRef = function() { | |
| return { | |
| current: null | |
| } | |
| }; | |
| G.forwardRef = function(e) { | |
| return { | |
| $$typeof: Gg, | |
| render: e | |
| } | |
| }; | |
| G.isValidElement = fu; | |
| G.lazy = function(e) { | |
| return { | |
| $$typeof: qg, | |
| _payload: { | |
| _status: -1, | |
| _result: e | |
| }, | |
| _init: ty | |
| } | |
| }; | |
| G.memo = function(e, t) { | |
| return { | |
| $$typeof: Xg, | |
| type: e, | |
| compare: t === void 0 ? null : t | |
| } | |
| }; | |
| G.startTransition = function(e) { | |
| var t = Ki.transition; | |
| Ki.transition = {}; | |
| try { | |
| e() | |
| } finally { | |
| Ki.transition = t | |
| } | |
| }; | |
| G.unstable_act = Uf; | |
| G.useCallback = function(e, t) { | |
| return Ie.current.useCallback(e, t) | |
| }; | |
| G.useContext = function(e) { | |
| return Ie.current.useContext(e) | |
| }; | |
| G.useDebugValue = function() {}; | |
| G.useDeferredValue = function(e) { | |
| return Ie.current.useDeferredValue(e) | |
| }; | |
| G.useEffect = function(e, t) { | |
| return Ie.current.useEffect(e, t) | |
| }; | |
| G.useId = function() { | |
| return Ie.current.useId() | |
| }; | |
| G.useImperativeHandle = function(e, t, n) { | |
| return Ie.current.useImperativeHandle(e, t, n) | |
| }; | |
| G.useInsertionEffect = function(e, t) { | |
| return Ie.current.useInsertionEffect(e, t) | |
| }; | |
| G.useLayoutEffect = function(e, t) { | |
| return Ie.current.useLayoutEffect(e, t) | |
| }; | |
| G.useMemo = function(e, t) { | |
| return Ie.current.useMemo(e, t) | |
| }; | |
| G.useReducer = function(e, t, n) { | |
| return Ie.current.useReducer(e, t, n) | |
| }; | |
| G.useRef = function(e) { | |
| return Ie.current.useRef(e) | |
| }; | |
| G.useState = function(e) { | |
| return Ie.current.useState(e) | |
| }; | |
| G.useSyncExternalStore = function(e, t, n) { | |
| return Ie.current.useSyncExternalStore(e, t, n) | |
| }; | |
| G.useTransition = function() { | |
| return Ie.current.useTransition() | |
| }; | |
| G.version = "18.3.1"; | |
| Of.exports = G; | |
| var S = Of.exports; | |
| const _ = _f(S), | |
| Bf = Ug({ | |
| __proto__: null, | |
| default: _ | |
| }, [S]); | |
| /** | |
| * @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 ry = S, | |
| oy = Symbol.for("react.element"), | |
| iy = Symbol.for("react.fragment"), | |
| sy = Object.prototype.hasOwnProperty, | |
| ly = ry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, | |
| ay = { | |
| key: !0, | |
| ref: !0, | |
| __self: !0, | |
| __source: !0 | |
| }; | |
| function Wf(e, t, n) { | |
| var r, o = {}, | |
| i = null, | |
| s = null; | |
| n !== void 0 && (i = "" + n), t.key !== void 0 && (i = "" + t.key), t.ref !== void 0 && (s = t.ref); | |
| for (r in t) sy.call(t, r) && !ay.hasOwnProperty(r) && (o[r] = t[r]); | |
| if (e && e.defaultProps) | |
| for (r in t = e.defaultProps, t) o[r] === void 0 && (o[r] = t[r]); | |
| return { | |
| $$typeof: oy, | |
| type: e, | |
| key: i, | |
| ref: s, | |
| props: o, | |
| _owner: ly.current | |
| } | |
| } | |
| zs.Fragment = iy; | |
| zs.jsx = Wf; | |
| zs.jsxs = Wf; | |
| Af.exports = zs; | |
| var g = Af.exports, | |
| Vf = { | |
| exports: {} | |
| }, | |
| et = {}, | |
| Hf = { | |
| exports: {} | |
| }, | |
| Qf = {}; | |
| /** | |
| * @license React | |
| * scheduler.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. | |
| */ | |
| (function(e) { | |
| function t(P, T) { | |
| var L = P.length; | |
| P.push(T); | |
| e: for (; 0 < L;) { | |
| var V = L - 1 >>> 1, | |
| F = P[V]; | |
| if (0 < o(F, T)) P[V] = T, P[L] = F, L = V; | |
| else break e | |
| } | |
| } | |
| function n(P) { | |
| return P.length === 0 ? null : P[0] | |
| } | |
| function r(P) { | |
| if (P.length === 0) return null; | |
| var T = P[0], | |
| L = P.pop(); | |
| if (L !== T) { | |
| P[0] = L; | |
| e: for (var V = 0, F = P.length, K = F >>> 1; V < K;) { | |
| var X = 2 * (V + 1) - 1, | |
| he = P[X], | |
| Ne = X + 1, | |
| J = P[Ne]; | |
| if (0 > o(he, L)) Ne < F && 0 > o(J, he) ? (P[V] = J, P[Ne] = L, V = Ne) : (P[V] = he, P[X] = L, V = X); | |
| else if (Ne < F && 0 > o(J, L)) P[V] = J, P[Ne] = L, V = Ne; | |
| else break e | |
| } | |
| } | |
| return T | |
| } | |
| function o(P, T) { | |
| var L = P.sortIndex - T.sortIndex; | |
| return L !== 0 ? L : P.id - T.id | |
| } | |
| if (typeof performance == "object" && typeof performance.now == "function") { | |
| var i = performance; | |
| e.unstable_now = function() { | |
| return i.now() | |
| } | |
| } else { | |
| var s = Date, | |
| l = s.now(); | |
| e.unstable_now = function() { | |
| return s.now() - l | |
| } | |
| } | |
| var a = [], | |
| u = [], | |
| c = 1, | |
| f = null, | |
| m = 3, | |
| d = !1, | |
| x = !1, | |
| y = !1, | |
| w = typeof setTimeout == "function" ? setTimeout : null, | |
| h = typeof clearTimeout == "function" ? clearTimeout : null, | |
| p = typeof setImmediate < "u" ? setImmediate : null; | |
| typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); | |
| function v(P) { | |
| for (var T = n(u); T !== null;) { | |
| if (T.callback === null) r(u); | |
| else if (T.startTime <= P) r(u), T.sortIndex = T.expirationTime, t(a, T); | |
| else break; | |
| T = n(u) | |
| } | |
| } | |
| function k(P) { | |
| if (y = !1, v(P), !x) | |
| if (n(a) !== null) x = !0, $(C); | |
| else { | |
| var T = n(u); | |
| T !== null && W(k, T.startTime - P) | |
| } | |
| } | |
| function C(P, T) { | |
| x = !1, y && (y = !1, h(R), R = -1), d = !0; | |
| var L = m; | |
| try { | |
| for (v(T), f = n(a); f !== null && (!(f.expirationTime > T) || P && !z());) { | |
| var V = f.callback; | |
| if (typeof V == "function") { | |
| f.callback = null, m = f.priorityLevel; | |
| var F = V(f.expirationTime <= T); | |
| T = e.unstable_now(), typeof F == "function" ? f.callback = F : f === n(a) && r(a), v(T) | |
| } else r(a); | |
| f = n(a) | |
| } | |
| if (f !== null) var K = !0; | |
| else { | |
| var X = n(u); | |
| X !== null && W(k, X.startTime - T), K = !1 | |
| } | |
| return K | |
| } finally { | |
| f = null, m = L, d = !1 | |
| } | |
| } | |
| var E = !1, | |
| b = null, | |
| R = -1, | |
| O = 5, | |
| A = -1; | |
| function z() { | |
| return !(e.unstable_now() - A < O) | |
| } | |
| function I() { | |
| if (b !== null) { | |
| var P = e.unstable_now(); | |
| A = P; | |
| var T = !0; | |
| try { | |
| T = b(!0, P) | |
| } finally { | |
| T ? Q() : (E = !1, b = null) | |
| } | |
| } else E = !1 | |
| } | |
| var Q; | |
| if (typeof p == "function") Q = function() { | |
| p(I) | |
| }; | |
| else if (typeof MessageChannel < "u") { | |
| var M = new MessageChannel, | |
| Y = M.port2; | |
| M.port1.onmessage = I, Q = function() { | |
| Y.postMessage(null) | |
| } | |
| } else Q = function() { | |
| w(I, 0) | |
| }; | |
| function $(P) { | |
| b = P, E || (E = !0, Q()) | |
| } | |
| function W(P, T) { | |
| R = w(function() { | |
| P(e.unstable_now()) | |
| }, T) | |
| } | |
| e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(P) { | |
| P.callback = null | |
| }, e.unstable_continueExecution = function() { | |
| x || d || (x = !0, $(C)) | |
| }, e.unstable_forceFrameRate = function(P) { | |
| 0 > P || 125 < P ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : O = 0 < P ? Math.floor(1e3 / P) : 5 | |
| }, e.unstable_getCurrentPriorityLevel = function() { | |
| return m | |
| }, e.unstable_getFirstCallbackNode = function() { | |
| return n(a) | |
| }, e.unstable_next = function(P) { | |
| switch (m) { | |
| case 1: | |
| case 2: | |
| case 3: | |
| var T = 3; | |
| break; | |
| default: | |
| T = m | |
| } | |
| var L = m; | |
| m = T; | |
| try { | |
| return P() | |
| } finally { | |
| m = L | |
| } | |
| }, e.unstable_pauseExecution = function() {}, e.unstable_requestPaint = function() {}, e.unstable_runWithPriority = function(P, T) { | |
| switch (P) { | |
| case 1: | |
| case 2: | |
| case 3: | |
| case 4: | |
| case 5: | |
| break; | |
| default: | |
| P = 3 | |
| } | |
| var L = m; | |
| m = P; | |
| try { | |
| return T() | |
| } finally { | |
| m = L | |
| } | |
| }, e.unstable_scheduleCallback = function(P, T, L) { | |
| var V = e.unstable_now(); | |
| switch (typeof L == "object" && L !== null ? (L = L.delay, L = typeof L == "number" && 0 < L ? V + L : V) : L = V, P) { | |
| case 1: | |
| var F = -1; | |
| break; | |
| case 2: | |
| F = 250; | |
| break; | |
| case 5: | |
| F = 1073741823; | |
| break; | |
| case 4: | |
| F = 1e4; | |
| break; | |
| default: | |
| F = 5e3 | |
| } | |
| return F = L + F, P = { | |
| id: c++, | |
| callback: T, | |
| priorityLevel: P, | |
| startTime: L, | |
| expirationTime: F, | |
| sortIndex: -1 | |
| }, L > V ? (P.sortIndex = L, t(u, P), n(a) === null && P === n(u) && (y ? (h(R), R = -1) : y = !0, W(k, L - V))) : (P.sortIndex = F, t(a, P), x || d || (x = !0, $(C))), P | |
| }, e.unstable_shouldYield = z, e.unstable_wrapCallback = function(P) { | |
| var T = m; | |
| return function() { | |
| var L = m; | |
| m = T; | |
| try { | |
| return P.apply(this, arguments) | |
| } finally { | |
| m = L | |
| } | |
| } | |
| } | |
| })(Qf); | |
| Hf.exports = Qf; | |
| var uy = Hf.exports; | |
| /** | |
| * @license React | |
| * react-dom.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 cy = S, | |
| Je = uy; | |
| function j(e) { | |
| for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); | |
| return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." | |
| } | |
| var Kf = new Set, | |
| Uo = {}; | |
| function dr(e, t) { | |
| qr(e, t), qr(e + "Capture", t) | |
| } | |
| function qr(e, t) { | |
| for (Uo[e] = t, e = 0; e < t.length; e++) Kf.add(t[e]) | |
| } | |
| var Yt = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), | |
| ea = Object.prototype.hasOwnProperty, | |
| dy = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, | |
| Oc = {}, | |
| Mc = {}; | |
| function fy(e) { | |
| return ea.call(Mc, e) ? !0 : ea.call(Oc, e) ? !1 : dy.test(e) ? Mc[e] = !0 : (Oc[e] = !0, !1) | |
| } | |
| function py(e, t, n, r) { | |
| if (n !== null && n.type === 0) return !1; | |
| switch (typeof t) { | |
| case "function": | |
| case "symbol": | |
| return !0; | |
| case "boolean": | |
| return r ? !1 : n !== null ? !n.acceptsBooleans : (e = e.toLowerCase().slice(0, 5), e !== "data-" && e !== "aria-"); | |
| default: | |
| return !1 | |
| } | |
| } | |
| function hy(e, t, n, r) { | |
| if (t === null || typeof t > "u" || py(e, t, n, r)) return !0; | |
| if (r) return !1; | |
| if (n !== null) switch (n.type) { | |
| case 3: | |
| return !t; | |
| case 4: | |
| return t === !1; | |
| case 5: | |
| return isNaN(t); | |
| case 6: | |
| return isNaN(t) || 1 > t | |
| } | |
| return !1 | |
| } | |
| function Fe(e, t, n, r, o, i, s) { | |
| this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = o, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = i, this.removeEmptyString = s | |
| } | |
| var be = {}; | |
| "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) { | |
| be[e] = new Fe(e, 0, !1, e, null, !1, !1) | |
| }); | |
| [ | |
| ["acceptCharset", "accept-charset"], | |
| ["className", "class"], | |
| ["htmlFor", "for"], | |
| ["httpEquiv", "http-equiv"] | |
| ].forEach(function(e) { | |
| var t = e[0]; | |
| be[t] = new Fe(t, 1, !1, e[1], null, !1, !1) | |
| }); | |
| ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) { | |
| be[e] = new Fe(e, 2, !1, e.toLowerCase(), null, !1, !1) | |
| }); | |
| ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) { | |
| be[e] = new Fe(e, 2, !1, e, null, !1, !1) | |
| }); | |
| "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) { | |
| be[e] = new Fe(e, 3, !1, e.toLowerCase(), null, !1, !1) | |
| }); | |
| ["checked", "multiple", "muted", "selected"].forEach(function(e) { | |
| be[e] = new Fe(e, 3, !0, e, null, !1, !1) | |
| }); | |
| ["capture", "download"].forEach(function(e) { | |
| be[e] = new Fe(e, 4, !1, e, null, !1, !1) | |
| }); | |
| ["cols", "rows", "size", "span"].forEach(function(e) { | |
| be[e] = new Fe(e, 6, !1, e, null, !1, !1) | |
| }); | |
| ["rowSpan", "start"].forEach(function(e) { | |
| be[e] = new Fe(e, 5, !1, e.toLowerCase(), null, !1, !1) | |
| }); | |
| var pu = /[\-:]([a-z])/g; | |
| function hu(e) { | |
| return e[1].toUpperCase() | |
| } | |
| "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e) { | |
| var t = e.replace(pu, hu); | |
| be[t] = new Fe(t, 1, !1, e, null, !1, !1) | |
| }); | |
| "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) { | |
| var t = e.replace(pu, hu); | |
| be[t] = new Fe(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1) | |
| }); | |
| ["xml:base", "xml:lang", "xml:space"].forEach(function(e) { | |
| var t = e.replace(pu, hu); | |
| be[t] = new Fe(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1) | |
| }); | |
| ["tabIndex", "crossOrigin"].forEach(function(e) { | |
| be[e] = new Fe(e, 1, !1, e.toLowerCase(), null, !1, !1) | |
| }); | |
| be.xlinkHref = new Fe("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1); | |
| ["src", "href", "action", "formAction"].forEach(function(e) { | |
| be[e] = new Fe(e, 1, !1, e.toLowerCase(), null, !0, !0) | |
| }); | |
| function mu(e, t, n, r) { | |
| var o = be.hasOwnProperty(t) ? be[t] : null; | |
| (o !== null ? o.type !== 0 : r || !(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (hy(t, n, o, r) && (n = null), r || o === null ? fy(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : o.mustUseProperty ? e[o.propertyName] = n === null ? o.type === 3 ? !1 : "" : n : (t = o.attributeName, r = o.attributeNamespace, n === null ? e.removeAttribute(t) : (o = o.type, n = o === 3 || o === 4 && n === !0 ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))) | |
| } | |
| var tn = cy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, | |
| Ci = Symbol.for("react.element"), | |
| kr = Symbol.for("react.portal"), | |
| Cr = Symbol.for("react.fragment"), | |
| gu = Symbol.for("react.strict_mode"), | |
| ta = Symbol.for("react.profiler"), | |
| Gf = Symbol.for("react.provider"), | |
| Yf = Symbol.for("react.context"), | |
| yu = Symbol.for("react.forward_ref"), | |
| na = Symbol.for("react.suspense"), | |
| ra = Symbol.for("react.suspense_list"), | |
| vu = Symbol.for("react.memo"), | |
| pn = Symbol.for("react.lazy"), | |
| Xf = Symbol.for("react.offscreen"), | |
| Lc = Symbol.iterator; | |
| function mo(e) { | |
| return e === null || typeof e != "object" ? null : (e = Lc && e[Lc] || e["@@iterator"], typeof e == "function" ? e : null) | |
| } | |
| var ce = Object.assign, | |
| Sl; | |
| function bo(e) { | |
| if (Sl === void 0) try { | |
| throw Error() | |
| } catch (n) { | |
| var t = n.stack.trim().match(/\n( *(at )?)/); | |
| Sl = t && t[1] || "" | |
| } | |
| return ` | |
| ` + Sl + e | |
| } | |
| var kl = !1; | |
| function Cl(e, t) { | |
| if (!e || kl) return ""; | |
| kl = !0; | |
| var n = Error.prepareStackTrace; | |
| Error.prepareStackTrace = void 0; | |
| try { | |
| if (t) | |
| if (t = function() { | |
| throw Error() | |
| }, Object.defineProperty(t.prototype, "props", { | |
| set: function() { | |
| throw Error() | |
| } | |
| }), typeof Reflect == "object" && Reflect.construct) { | |
| try { | |
| Reflect.construct(t, []) | |
| } catch (u) { | |
| var r = u | |
| } | |
| Reflect.construct(e, [], t) | |
| } else { | |
| try { | |
| t.call() | |
| } catch (u) { | |
| r = u | |
| } | |
| e.call(t.prototype) | |
| } | |
| else { | |
| try { | |
| throw Error() | |
| } catch (u) { | |
| r = u | |
| } | |
| e() | |
| } | |
| } catch (u) { | |
| if (u && r && typeof u.stack == "string") { | |
| for (var o = u.stack.split(` | |
| `), i = r.stack.split(` | |
| `), s = o.length - 1, l = i.length - 1; 1 <= s && 0 <= l && o[s] !== i[l];) l--; | |
| for (; 1 <= s && 0 <= l; s--, l--) | |
| if (o[s] !== i[l]) { | |
| if (s !== 1 || l !== 1) | |
| do | |
| if (s--, l--, 0 > l || o[s] !== i[l]) { | |
| var a = ` | |
| ` + o[s].replace(" at new ", " at "); | |
| return e.displayName && a.includes("<anonymous>") && (a = a.replace("<anonymous>", e.displayName)), a | |
| } | |
| while (1 <= s && 0 <= l); | |
| break | |
| } | |
| } | |
| } finally { | |
| kl = !1, Error.prepareStackTrace = n | |
| } | |
| return (e = e ? e.displayName || e.name : "") ? bo(e) : "" | |
| } | |
| function my(e) { | |
| switch (e.tag) { | |
| case 5: | |
| return bo(e.type); | |
| case 16: | |
| return bo("Lazy"); | |
| case 13: | |
| return bo("Suspense"); | |
| case 19: | |
| return bo("SuspenseList"); | |
| case 0: | |
| case 2: | |
| case 15: | |
| return e = Cl(e.type, !1), e; | |
| case 11: | |
| return e = Cl(e.type.render, !1), e; | |
| case 1: | |
| return e = Cl(e.type, !0), e; | |
| default: | |
| return "" | |
| } | |
| } | |
| function oa(e) { | |
| if (e == null) return null; | |
| if (typeof e == "function") return e.displayName || e.name || null; | |
| if (typeof e == "string") return e; | |
| switch (e) { | |
| case Cr: | |
| return "Fragment"; | |
| case kr: | |
| return "Portal"; | |
| case ta: | |
| return "Profiler"; | |
| case gu: | |
| return "StrictMode"; | |
| case na: | |
| return "Suspense"; | |
| case ra: | |
| return "SuspenseList" | |
| } | |
| if (typeof e == "object") switch (e.$$typeof) { | |
| case Yf: | |
| return (e.displayName || "Context") + ".Consumer"; | |
| case Gf: | |
| return (e._context.displayName || "Context") + ".Provider"; | |
| case yu: | |
| var t = e.render; | |
| return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e; | |
| case vu: | |
| return t = e.displayName || null, t !== null ? t : oa(e.type) || "Memo"; | |
| case pn: | |
| t = e._payload, e = e._init; | |
| try { | |
| return oa(e(t)) | |
| } catch {} | |
| } | |
| return null | |
| } | |
| function gy(e) { | |
| var t = e.type; | |
| switch (e.tag) { | |
| case 24: | |
| return "Cache"; | |
| case 9: | |
| return (t.displayName || "Context") + ".Consumer"; | |
| case 10: | |
| return (t._context.displayName || "Context") + ".Provider"; | |
| case 18: | |
| return "DehydratedFragment"; | |
| case 11: | |
| return e = t.render, e = e.displayName || e.name || "", t.displayName || (e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"); | |
| case 7: | |
| return "Fragment"; | |
| case 5: | |
| return t; | |
| case 4: | |
| return "Portal"; | |
| case 3: | |
| return "Root"; | |
| case 6: | |
| return "Text"; | |
| case 16: | |
| return oa(t); | |
| case 8: | |
| return t === gu ? "StrictMode" : "Mode"; | |
| case 22: | |
| return "Offscreen"; | |
| case 12: | |
| return "Profiler"; | |
| case 21: | |
| return "Scope"; | |
| case 13: | |
| return "Suspense"; | |
| case 19: | |
| return "SuspenseList"; | |
| case 25: | |
| return "TracingMarker"; | |
| case 1: | |
| case 0: | |
| case 17: | |
| case 2: | |
| case 14: | |
| case 15: | |
| if (typeof t == "function") return t.displayName || t.name || null; | |
| if (typeof t == "string") return t | |
| } | |
| return null | |
| } | |
| function On(e) { | |
| switch (typeof e) { | |
| case "boolean": | |
| case "number": | |
| case "string": | |
| case "undefined": | |
| return e; | |
| case "object": | |
| return e; | |
| default: | |
| return "" | |
| } | |
| } | |
| function qf(e) { | |
| var t = e.type; | |
| return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio") | |
| } | |
| function yy(e) { | |
| var t = qf(e) ? "checked" : "value", | |
| n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), | |
| r = "" + e[t]; | |
| if (!e.hasOwnProperty(t) && typeof n < "u" && typeof n.get == "function" && typeof n.set == "function") { | |
| var o = n.get, | |
| i = n.set; | |
| return Object.defineProperty(e, t, { | |
| configurable: !0, | |
| get: function() { | |
| return o.call(this) | |
| }, | |
| set: function(s) { | |
| r = "" + s, i.call(this, s) | |
| } | |
| }), Object.defineProperty(e, t, { | |
| enumerable: n.enumerable | |
| }), { | |
| getValue: function() { | |
| return r | |
| }, | |
| setValue: function(s) { | |
| r = "" + s | |
| }, | |
| stopTracking: function() { | |
| e._valueTracker = null, delete e[t] | |
| } | |
| } | |
| } | |
| } | |
| function Ei(e) { | |
| e._valueTracker || (e._valueTracker = yy(e)) | |
| } | |
| function Zf(e) { | |
| if (!e) return !1; | |
| var t = e._valueTracker; | |
| if (!t) return !0; | |
| var n = t.getValue(), | |
| r = ""; | |
| return e && (r = qf(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n ? (t.setValue(e), !0) : !1 | |
| } | |
| function ls(e) { | |
| if (e = e || (typeof document < "u" ? document : void 0), typeof e > "u") return null; | |
| try { | |
| return e.activeElement || e.body | |
| } catch { | |
| return e.body | |
| } | |
| } | |
| function ia(e, t) { | |
| var n = t.checked; | |
| return ce({}, t, { | |
| defaultChecked: void 0, | |
| defaultValue: void 0, | |
| value: void 0, | |
| checked: n ?? e._wrapperState.initialChecked | |
| }) | |
| } | |
| function Dc(e, t) { | |
| var n = t.defaultValue == null ? "" : t.defaultValue, | |
| r = t.checked != null ? t.checked : t.defaultChecked; | |
| n = On(t.value != null ? t.value : n), e._wrapperState = { | |
| initialChecked: r, | |
| initialValue: n, | |
| controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null | |
| } | |
| } | |
| function Jf(e, t) { | |
| t = t.checked, t != null && mu(e, "checked", t, !1) | |
| } | |
| function sa(e, t) { | |
| Jf(e, t); | |
| var n = On(t.value), | |
| r = t.type; | |
| if (n != null) r === "number" ? (n === 0 && e.value === "" || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); | |
| else if (r === "submit" || r === "reset") { | |
| e.removeAttribute("value"); | |
| return | |
| } | |
| t.hasOwnProperty("value") ? la(e, t.type, n) : t.hasOwnProperty("defaultValue") && la(e, t.type, On(t.defaultValue)), t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked) | |
| } | |
| function Ic(e, t, n) { | |
| if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { | |
| var r = t.type; | |
| if (!(r !== "submit" && r !== "reset" || t.value !== void 0 && t.value !== null)) return; | |
| t = "" + e._wrapperState.initialValue, n || t === e.value || (e.value = t), e.defaultValue = t | |
| } | |
| n = e.name, n !== "" && (e.name = ""), e.defaultChecked = !!e._wrapperState.initialChecked, n !== "" && (e.name = n) | |
| } | |
| function la(e, t, n) { | |
| (t !== "number" || ls(e.ownerDocument) !== e) && (n == null ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n)) | |
| } | |
| var No = Array.isArray; | |
| function Mr(e, t, n, r) { | |
| if (e = e.options, t) { | |
| t = {}; | |
| for (var o = 0; o < n.length; o++) t["$" + n[o]] = !0; | |
| for (n = 0; n < e.length; n++) o = t.hasOwnProperty("$" + e[n].value), e[n].selected !== o && (e[n].selected = o), o && r && (e[n].defaultSelected = !0) | |
| } else { | |
| for (n = "" + On(n), t = null, o = 0; o < e.length; o++) { | |
| if (e[o].value === n) { | |
| e[o].selected = !0, r && (e[o].defaultSelected = !0); | |
| return | |
| } | |
| t !== null || e[o].disabled || (t = e[o]) | |
| } | |
| t !== null && (t.selected = !0) | |
| } | |
| } | |
| function aa(e, t) { | |
| if (t.dangerouslySetInnerHTML != null) throw Error(j(91)); | |
| return ce({}, t, { | |
| value: void 0, | |
| defaultValue: void 0, | |
| children: "" + e._wrapperState.initialValue | |
| }) | |
| } | |
| function Fc(e, t) { | |
| var n = t.value; | |
| if (n == null) { | |
| if (n = t.children, t = t.defaultValue, n != null) { | |
| if (t != null) throw Error(j(92)); | |
| if (No(n)) { | |
| if (1 < n.length) throw Error(j(93)); | |
| n = n[0] | |
| } | |
| t = n | |
| } | |
| t == null && (t = ""), n = t | |
| } | |
| e._wrapperState = { | |
| initialValue: On(n) | |
| } | |
| } | |
| function ep(e, t) { | |
| var n = On(t.value), | |
| r = On(t.defaultValue); | |
| n != null && (n = "" + n, n !== e.value && (e.value = n), t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)), r != null && (e.defaultValue = "" + r) | |
| } | |
| function zc(e) { | |
| var t = e.textContent; | |
| t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t) | |
| } | |
| function tp(e) { | |
| switch (e) { | |
| case "svg": | |
| return "http://www.w3.org/2000/svg"; | |
| case "math": | |
| return "http://www.w3.org/1998/Math/MathML"; | |
| default: | |
| return "http://www.w3.org/1999/xhtml" | |
| } | |
| } | |
| function ua(e, t) { | |
| return e == null || e === "http://www.w3.org/1999/xhtml" ? tp(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e | |
| } | |
| var bi, np = function(e) { | |
| return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, r, o) { | |
| MSApp.execUnsafeLocalFunction(function() { | |
| return e(t, n, r, o) | |
| }) | |
| } : e | |
| }(function(e, t) { | |
| if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in e) e.innerHTML = t; | |
| else { | |
| for (bi = bi || document.createElement("div"), bi.innerHTML = "<svg>" + t.valueOf().toString() + "</svg>", t = bi.firstChild; e.firstChild;) e.removeChild(e.firstChild); | |
| for (; t.firstChild;) e.appendChild(t.firstChild) | |
| } | |
| }); | |
| function Bo(e, t) { | |
| if (t) { | |
| var n = e.firstChild; | |
| if (n && n === e.lastChild && n.nodeType === 3) { | |
| n.nodeValue = t; | |
| return | |
| } | |
| } | |
| e.textContent = t | |
| } | |
| var _o = { | |
| animationIterationCount: !0, | |
| aspectRatio: !0, | |
| borderImageOutset: !0, | |
| borderImageSlice: !0, | |
| borderImageWidth: !0, | |
| boxFlex: !0, | |
| boxFlexGroup: !0, | |
| boxOrdinalGroup: !0, | |
| columnCount: !0, | |
| columns: !0, | |
| flex: !0, | |
| flexGrow: !0, | |
| flexPositive: !0, | |
| flexShrink: !0, | |
| flexNegative: !0, | |
| flexOrder: !0, | |
| gridArea: !0, | |
| gridRow: !0, | |
| gridRowEnd: !0, | |
| gridRowSpan: !0, | |
| gridRowStart: !0, | |
| gridColumn: !0, | |
| gridColumnEnd: !0, | |
| gridColumnSpan: !0, | |
| gridColumnStart: !0, | |
| fontWeight: !0, | |
| lineClamp: !0, | |
| lineHeight: !0, | |
| opacity: !0, | |
| order: !0, | |
| orphans: !0, | |
| tabSize: !0, | |
| widows: !0, | |
| zIndex: !0, | |
| zoom: !0, | |
| fillOpacity: !0, | |
| floodOpacity: !0, | |
| stopOpacity: !0, | |
| strokeDasharray: !0, | |
| strokeDashoffset: !0, | |
| strokeMiterlimit: !0, | |
| strokeOpacity: !0, | |
| strokeWidth: !0 | |
| }, | |
| vy = ["Webkit", "ms", "Moz", "O"]; | |
| Object.keys(_o).forEach(function(e) { | |
| vy.forEach(function(t) { | |
| t = t + e.charAt(0).toUpperCase() + e.substring(1), _o[t] = _o[e] | |
| }) | |
| }); | |
| function rp(e, t, n) { | |
| return t == null || typeof t == "boolean" || t === "" ? "" : n || typeof t != "number" || t === 0 || _o.hasOwnProperty(e) && _o[e] ? ("" + t).trim() : t + "px" | |
| } | |
| function op(e, t) { | |
| e = e.style; | |
| for (var n in t) | |
| if (t.hasOwnProperty(n)) { | |
| var r = n.indexOf("--") === 0, | |
| o = rp(n, t[n], r); | |
| n === "float" && (n = "cssFloat"), r ? e.setProperty(n, o) : e[n] = o | |
| } | |
| } | |
| var xy = ce({ | |
| menuitem: !0 | |
| }, { | |
| area: !0, | |
| base: !0, | |
| br: !0, | |
| col: !0, | |
| embed: !0, | |
| hr: !0, | |
| img: !0, | |
| input: !0, | |
| keygen: !0, | |
| link: !0, | |
| meta: !0, | |
| param: !0, | |
| source: !0, | |
| track: !0, | |
| wbr: !0 | |
| }); | |
| function ca(e, t) { | |
| if (t) { | |
| if (xy[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(j(137, e)); | |
| if (t.dangerouslySetInnerHTML != null) { | |
| if (t.children != null) throw Error(j(60)); | |
| if (typeof t.dangerouslySetInnerHTML != "object" || !("__html" in t.dangerouslySetInnerHTML)) throw Error(j(61)) | |
| } | |
| if (t.style != null && typeof t.style != "object") throw Error(j(62)) | |
| } | |
| } | |
| function da(e, t) { | |
| if (e.indexOf("-") === -1) return typeof t.is == "string"; | |
| switch (e) { | |
| case "annotation-xml": | |
| case "color-profile": | |
| case "font-face": | |
| case "font-face-src": | |
| case "font-face-uri": | |
| case "font-face-format": | |
| case "font-face-name": | |
| case "missing-glyph": | |
| return !1; | |
| default: | |
| return !0 | |
| } | |
| } | |
| var fa = null; | |
| function xu(e) { | |
| return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e | |
| } | |
| var pa = null, | |
| Lr = null, | |
| Dr = null; | |
| function $c(e) { | |
| if (e = pi(e)) { | |
| if (typeof pa != "function") throw Error(j(280)); | |
| var t = e.stateNode; | |
| t && (t = Vs(t), pa(e.stateNode, e.type, t)) | |
| } | |
| } | |
| function ip(e) { | |
| Lr ? Dr ? Dr.push(e) : Dr = [e] : Lr = e | |
| } | |
| function sp() { | |
| if (Lr) { | |
| var e = Lr, | |
| t = Dr; | |
| if (Dr = Lr = null, $c(e), t) | |
| for (e = 0; e < t.length; e++) $c(t[e]) | |
| } | |
| } | |
| function lp(e, t) { | |
| return e(t) | |
| } | |
| function ap() {} | |
| var El = !1; | |
| function up(e, t, n) { | |
| if (El) return e(t, n); | |
| El = !0; | |
| try { | |
| return lp(e, t, n) | |
| } finally { | |
| El = !1, (Lr !== null || Dr !== null) && (ap(), sp()) | |
| } | |
| } | |
| function Wo(e, t) { | |
| var n = e.stateNode; | |
| if (n === null) return null; | |
| var r = Vs(n); | |
| if (r === null) return null; | |
| n = r[t]; | |
| e: switch (t) { | |
| case "onClick": | |
| case "onClickCapture": | |
| case "onDoubleClick": | |
| case "onDoubleClickCapture": | |
| case "onMouseDown": | |
| case "onMouseDownCapture": | |
| case "onMouseMove": | |
| case "onMouseMoveCapture": | |
| case "onMouseUp": | |
| case "onMouseUpCapture": | |
| case "onMouseEnter": | |
| (r = !r.disabled) || (e = e.type, r = !(e === "button" || e === "input" || e === "select" || e === "textarea")), e = !r; | |
| break e; | |
| default: | |
| e = !1 | |
| } | |
| if (e) return null; | |
| if (n && typeof n != "function") throw Error(j(231, t, typeof n)); | |
| return n | |
| } | |
| var ha = !1; | |
| if (Yt) try { | |
| var go = {}; | |
| Object.defineProperty(go, "passive", { | |
| get: function() { | |
| ha = !0 | |
| } | |
| }), window.addEventListener("test", go, go), window.removeEventListener("test", go, go) | |
| } catch { | |
| ha = !1 | |
| } | |
| function wy(e, t, n, r, o, i, s, l, a) { | |
| var u = Array.prototype.slice.call(arguments, 3); | |
| try { | |
| t.apply(n, u) | |
| } catch (c) { | |
| this.onError(c) | |
| } | |
| } | |
| var Ao = !1, | |
| as = null, | |
| us = !1, | |
| ma = null, | |
| Sy = { | |
| onError: function(e) { | |
| Ao = !0, as = e | |
| } | |
| }; | |
| function ky(e, t, n, r, o, i, s, l, a) { | |
| Ao = !1, as = null, wy.apply(Sy, arguments) | |
| } | |
| function Cy(e, t, n, r, o, i, s, l, a) { | |
| if (ky.apply(this, arguments), Ao) { | |
| if (Ao) { | |
| var u = as; | |
| Ao = !1, as = null | |
| } else throw Error(j(198)); | |
| us || (us = !0, ma = u) | |
| } | |
| } | |
| function fr(e) { | |
| var t = e, | |
| n = e; | |
| if (e.alternate) | |
| for (; t.return;) t = t.return; | |
| else { | |
| e = t; | |
| do t = e, t.flags & 4098 && (n = t.return), e = t.return; while (e) | |
| } | |
| return t.tag === 3 ? n : null | |
| } | |
| function cp(e) { | |
| if (e.tag === 13) { | |
| var t = e.memoizedState; | |
| if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated | |
| } | |
| return null | |
| } | |
| function Uc(e) { | |
| if (fr(e) !== e) throw Error(j(188)) | |
| } | |
| function Ey(e) { | |
| var t = e.alternate; | |
| if (!t) { | |
| if (t = fr(e), t === null) throw Error(j(188)); | |
| return t !== e ? null : e | |
| } | |
| for (var n = e, r = t;;) { | |
| var o = n.return; | |
| if (o === null) break; | |
| var i = o.alternate; | |
| if (i === null) { | |
| if (r = o.return, r !== null) { | |
| n = r; | |
| continue | |
| } | |
| break | |
| } | |
| if (o.child === i.child) { | |
| for (i = o.child; i;) { | |
| if (i === n) return Uc(o), e; | |
| if (i === r) return Uc(o), t; | |
| i = i.sibling | |
| } | |
| throw Error(j(188)) | |
| } | |
| if (n.return !== r.return) n = o, r = i; | |
| else { | |
| for (var s = !1, l = o.child; l;) { | |
| if (l === n) { | |
| s = !0, n = o, r = i; | |
| break | |
| } | |
| if (l === r) { | |
| s = !0, r = o, n = i; | |
| break | |
| } | |
| l = l.sibling | |
| } | |
| if (!s) { | |
| for (l = i.child; l;) { | |
| if (l === n) { | |
| s = !0, n = i, r = o; | |
| break | |
| } | |
| if (l === r) { | |
| s = !0, r = i, n = o; | |
| break | |
| } | |
| l = l.sibling | |
| } | |
| if (!s) throw Error(j(189)) | |
| } | |
| } | |
| if (n.alternate !== r) throw Error(j(190)) | |
| } | |
| if (n.tag !== 3) throw Error(j(188)); | |
| return n.stateNode.current === n ? e : t | |
| } | |
| function dp(e) { | |
| return e = Ey(e), e !== null ? fp(e) : null | |
| } | |
| function fp(e) { | |
| if (e.tag === 5 || e.tag === 6) return e; | |
| for (e = e.child; e !== null;) { | |
| var t = fp(e); | |
| if (t !== null) return t; | |
| e = e.sibling | |
| } | |
| return null | |
| } | |
| var pp = Je.unstable_scheduleCallback, | |
| Bc = Je.unstable_cancelCallback, | |
| by = Je.unstable_shouldYield, | |
| Ny = Je.unstable_requestPaint, | |
| pe = Je.unstable_now, | |
| Py = Je.unstable_getCurrentPriorityLevel, | |
| wu = Je.unstable_ImmediatePriority, | |
| hp = Je.unstable_UserBlockingPriority, | |
| cs = Je.unstable_NormalPriority, | |
| Ty = Je.unstable_LowPriority, | |
| mp = Je.unstable_IdlePriority, | |
| $s = null, | |
| Dt = null; | |
| function Ry(e) { | |
| if (Dt && typeof Dt.onCommitFiberRoot == "function") try { | |
| Dt.onCommitFiberRoot($s, e, void 0, (e.current.flags & 128) === 128) | |
| } catch {} | |
| } | |
| var kt = Math.clz32 ? Math.clz32 : Ay, | |
| jy = Math.log, | |
| _y = Math.LN2; | |
| function Ay(e) { | |
| return e >>>= 0, e === 0 ? 32 : 31 - (jy(e) / _y | 0) | 0 | |
| } | |
| var Ni = 64, | |
| Pi = 4194304; | |
| function Po(e) { | |
| switch (e & -e) { | |
| case 1: | |
| return 1; | |
| case 2: | |
| return 2; | |
| case 4: | |
| return 4; | |
| case 8: | |
| return 8; | |
| case 16: | |
| return 16; | |
| case 32: | |
| return 32; | |
| case 64: | |
| case 128: | |
| case 256: | |
| case 512: | |
| case 1024: | |
| case 2048: | |
| case 4096: | |
| case 8192: | |
| case 16384: | |
| case 32768: | |
| case 65536: | |
| case 131072: | |
| case 262144: | |
| case 524288: | |
| case 1048576: | |
| case 2097152: | |
| return e & 4194240; | |
| case 4194304: | |
| case 8388608: | |
| case 16777216: | |
| case 33554432: | |
| case 67108864: | |
| return e & 130023424; | |
| case 134217728: | |
| return 134217728; | |
| case 268435456: | |
| return 268435456; | |
| case 536870912: | |
| return 536870912; | |
| case 1073741824: | |
| return 1073741824; | |
| default: | |
| return e | |
| } | |
| } | |
| function ds(e, t) { | |
| var n = e.pendingLanes; | |
| if (n === 0) return 0; | |
| var r = 0, | |
| o = e.suspendedLanes, | |
| i = e.pingedLanes, | |
| s = n & 268435455; | |
| if (s !== 0) { | |
| var l = s & ~o; | |
| l !== 0 ? r = Po(l) : (i &= s, i !== 0 && (r = Po(i))) | |
| } else s = n & ~o, s !== 0 ? r = Po(s) : i !== 0 && (r = Po(i)); | |
| if (r === 0) return 0; | |
| if (t !== 0 && t !== r && !(t & o) && (o = r & -r, i = t & -t, o >= i || o === 16 && (i & 4194240) !== 0)) return t; | |
| if (r & 4 && (r |= n & 16), t = e.entangledLanes, t !== 0) | |
| for (e = e.entanglements, t &= r; 0 < t;) n = 31 - kt(t), o = 1 << n, r |= e[n], t &= ~o; | |
| return r | |
| } | |
| function Oy(e, t) { | |
| switch (e) { | |
| case 1: | |
| case 2: | |
| case 4: | |
| return t + 250; | |
| case 8: | |
| case 16: | |
| case 32: | |
| case 64: | |
| case 128: | |
| case 256: | |
| case 512: | |
| case 1024: | |
| case 2048: | |
| case 4096: | |
| case 8192: | |
| case 16384: | |
| case 32768: | |
| case 65536: | |
| case 131072: | |
| case 262144: | |
| case 524288: | |
| case 1048576: | |
| case 2097152: | |
| return t + 5e3; | |
| case 4194304: | |
| case 8388608: | |
| case 16777216: | |
| case 33554432: | |
| case 67108864: | |
| return -1; | |
| case 134217728: | |
| case 268435456: | |
| case 536870912: | |
| case 1073741824: | |
| return -1; | |
| default: | |
| return -1 | |
| } | |
| } | |
| function My(e, t) { | |
| for (var n = e.suspendedLanes, r = e.pingedLanes, o = e.expirationTimes, i = e.pendingLanes; 0 < i;) { | |
| var s = 31 - kt(i), | |
| l = 1 << s, | |
| a = o[s]; | |
| a === -1 ? (!(l & n) || l & r) && (o[s] = Oy(l, t)) : a <= t && (e.expiredLanes |= l), i &= ~l | |
| } | |
| } | |
| function ga(e) { | |
| return e = e.pendingLanes & -1073741825, e !== 0 ? e : e & 1073741824 ? 1073741824 : 0 | |
| } | |
| function gp() { | |
| var e = Ni; | |
| return Ni <<= 1, !(Ni & 4194240) && (Ni = 64), e | |
| } | |
| function bl(e) { | |
| for (var t = [], n = 0; 31 > n; n++) t.push(e); | |
| return t | |
| } | |
| function di(e, t, n) { | |
| e.pendingLanes |= t, t !== 536870912 && (e.suspendedLanes = 0, e.pingedLanes = 0), e = e.eventTimes, t = 31 - kt(t), e[t] = n | |
| } | |
| function Ly(e, t) { | |
| var n = e.pendingLanes & ~t; | |
| e.pendingLanes = t, e.suspendedLanes = 0, e.pingedLanes = 0, e.expiredLanes &= t, e.mutableReadLanes &= t, e.entangledLanes &= t, t = e.entanglements; | |
| var r = e.eventTimes; | |
| for (e = e.expirationTimes; 0 < n;) { | |
| var o = 31 - kt(n), | |
| i = 1 << o; | |
| t[o] = 0, r[o] = -1, e[o] = -1, n &= ~i | |
| } | |
| } | |
| function Su(e, t) { | |
| var n = e.entangledLanes |= t; | |
| for (e = e.entanglements; n;) { | |
| var r = 31 - kt(n), | |
| o = 1 << r; | |
| o & t | e[r] & t && (e[r] |= t), n &= ~o | |
| } | |
| } | |
| var ee = 0; | |
| function yp(e) { | |
| return e &= -e, 1 < e ? 4 < e ? e & 268435455 ? 16 : 536870912 : 4 : 1 | |
| } | |
| var vp, ku, xp, wp, Sp, ya = !1, | |
| Ti = [], | |
| bn = null, | |
| Nn = null, | |
| Pn = null, | |
| Vo = new Map, | |
| Ho = new Map, | |
| mn = [], | |
| Dy = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); | |
| function Wc(e, t) { | |
| switch (e) { | |
| case "focusin": | |
| case "focusout": | |
| bn = null; | |
| break; | |
| case "dragenter": | |
| case "dragleave": | |
| Nn = null; | |
| break; | |
| case "mouseover": | |
| case "mouseout": | |
| Pn = null; | |
| break; | |
| case "pointerover": | |
| case "pointerout": | |
| Vo.delete(t.pointerId); | |
| break; | |
| case "gotpointercapture": | |
| case "lostpointercapture": | |
| Ho.delete(t.pointerId) | |
| } | |
| } | |
| function yo(e, t, n, r, o, i) { | |
| return e === null || e.nativeEvent !== i ? (e = { | |
| blockedOn: t, | |
| domEventName: n, | |
| eventSystemFlags: r, | |
| nativeEvent: i, | |
| targetContainers: [o] | |
| }, t !== null && (t = pi(t), t !== null && ku(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, o !== null && t.indexOf(o) === -1 && t.push(o), e) | |
| } | |
| function Iy(e, t, n, r, o) { | |
| switch (t) { | |
| case "focusin": | |
| return bn = yo(bn, e, t, n, r, o), !0; | |
| case "dragenter": | |
| return Nn = yo(Nn, e, t, n, r, o), !0; | |
| case "mouseover": | |
| return Pn = yo(Pn, e, t, n, r, o), !0; | |
| case "pointerover": | |
| var i = o.pointerId; | |
| return Vo.set(i, yo(Vo.get(i) || null, e, t, n, r, o)), !0; | |
| case "gotpointercapture": | |
| return i = o.pointerId, Ho.set(i, yo(Ho.get(i) || null, e, t, n, r, o)), !0 | |
| } | |
| return !1 | |
| } | |
| function kp(e) { | |
| var t = Gn(e.target); | |
| if (t !== null) { | |
| var n = fr(t); | |
| if (n !== null) { | |
| if (t = n.tag, t === 13) { | |
| if (t = cp(n), t !== null) { | |
| e.blockedOn = t, Sp(e.priority, function() { | |
| xp(n) | |
| }); | |
| return | |
| } | |
| } else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) { | |
| e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null; | |
| return | |
| } | |
| } | |
| } | |
| e.blockedOn = null | |
| } | |
| function Gi(e) { | |
| if (e.blockedOn !== null) return !1; | |
| for (var t = e.targetContainers; 0 < t.length;) { | |
| var n = va(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); | |
| if (n === null) { | |
| n = e.nativeEvent; | |
| var r = new n.constructor(n.type, n); | |
| fa = r, n.target.dispatchEvent(r), fa = null | |
| } else return t = pi(n), t !== null && ku(t), e.blockedOn = n, !1; | |
| t.shift() | |
| } | |
| return !0 | |
| } | |
| function Vc(e, t, n) { | |
| Gi(e) && n.delete(t) | |
| } | |
| function Fy() { | |
| ya = !1, bn !== null && Gi(bn) && (bn = null), Nn !== null && Gi(Nn) && (Nn = null), Pn !== null && Gi(Pn) && (Pn = null), Vo.forEach(Vc), Ho.forEach(Vc) | |
| } | |
| function vo(e, t) { | |
| e.blockedOn === t && (e.blockedOn = null, ya || (ya = !0, Je.unstable_scheduleCallback(Je.unstable_NormalPriority, Fy))) | |
| } | |
| function Qo(e) { | |
| function t(o) { | |
| return vo(o, e) | |
| } | |
| if (0 < Ti.length) { | |
| vo(Ti[0], e); | |
| for (var n = 1; n < Ti.length; n++) { | |
| var r = Ti[n]; | |
| r.blockedOn === e && (r.blockedOn = null) | |
| } | |
| } | |
| for (bn !== null && vo(bn, e), Nn !== null && vo(Nn, e), Pn !== null && vo(Pn, e), Vo.forEach(t), Ho.forEach(t), n = 0; n < mn.length; n++) r = mn[n], r.blockedOn === e && (r.blockedOn = null); | |
| for (; 0 < mn.length && (n = mn[0], n.blockedOn === null);) kp(n), n.blockedOn === null && mn.shift() | |
| } | |
| var Ir = tn.ReactCurrentBatchConfig, | |
| fs = !0; | |
| function zy(e, t, n, r) { | |
| var o = ee, | |
| i = Ir.transition; | |
| Ir.transition = null; | |
| try { | |
| ee = 1, Cu(e, t, n, r) | |
| } finally { | |
| ee = o, Ir.transition = i | |
| } | |
| } | |
| function $y(e, t, n, r) { | |
| var o = ee, | |
| i = Ir.transition; | |
| Ir.transition = null; | |
| try { | |
| ee = 4, Cu(e, t, n, r) | |
| } finally { | |
| ee = o, Ir.transition = i | |
| } | |
| } | |
| function Cu(e, t, n, r) { | |
| if (fs) { | |
| var o = va(e, t, n, r); | |
| if (o === null) Ll(e, t, r, ps, n), Wc(e, r); | |
| else if (Iy(o, e, t, n, r)) r.stopPropagation(); | |
| else if (Wc(e, r), t & 4 && -1 < Dy.indexOf(e)) { | |
| for (; o !== null;) { | |
| var i = pi(o); | |
| if (i !== null && vp(i), i = va(e, t, n, r), i === null && Ll(e, t, r, ps, n), i === o) break; | |
| o = i | |
| } | |
| o !== null && r.stopPropagation() | |
| } else Ll(e, t, r, null, n) | |
| } | |
| } | |
| var ps = null; | |
| function va(e, t, n, r) { | |
| if (ps = null, e = xu(r), e = Gn(e), e !== null) | |
| if (t = fr(e), t === null) e = null; | |
| else if (n = t.tag, n === 13) { | |
| if (e = cp(t), e !== null) return e; | |
| e = null | |
| } else if (n === 3) { | |
| if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null; | |
| e = null | |
| } else t !== e && (e = null); | |
| return ps = e, null | |
| } | |
| function Cp(e) { | |
| switch (e) { | |
| case "cancel": | |
| case "click": | |
| case "close": | |
| case "contextmenu": | |
| case "copy": | |
| case "cut": | |
| case "auxclick": | |
| case "dblclick": | |
| case "dragend": | |
| case "dragstart": | |
| case "drop": | |
| case "focusin": | |
| case "focusout": | |
| case "input": | |
| case "invalid": | |
| case "keydown": | |
| case "keypress": | |
| case "keyup": | |
| case "mousedown": | |
| case "mouseup": | |
| case "paste": | |
| case "pause": | |
| case "play": | |
| case "pointercancel": | |
| case "pointerdown": | |
| case "pointerup": | |
| case "ratechange": | |
| case "reset": | |
| case "resize": | |
| case "seeked": | |
| case "submit": | |
| case "touchcancel": | |
| case "touchend": | |
| case "touchstart": | |
| case "volumechange": | |
| case "change": | |
| case "selectionchange": | |
| case "textInput": | |
| case "compositionstart": | |
| case "compositionend": | |
| case "compositionupdate": | |
| case "beforeblur": | |
| case "afterblur": | |
| case "beforeinput": | |
| case "blur": | |
| case "fullscreenchange": | |
| case "focus": | |
| case "hashchange": | |
| case "popstate": | |
| case "select": | |
| case "selectstart": | |
| return 1; | |
| case "drag": | |
| case "dragenter": | |
| case "dragexit": | |
| case "dragleave": | |
| case "dragover": | |
| case "mousemove": | |
| case "mouseout": | |
| case "mouseover": | |
| case "pointermove": | |
| case "pointerout": | |
| case "pointerover": | |
| case "scroll": | |
| case "toggle": | |
| case "touchmove": | |
| case "wheel": | |
| case "mouseenter": | |
| case "mouseleave": | |
| case "pointerenter": | |
| case "pointerleave": | |
| return 4; | |
| case "message": | |
| switch (Py()) { | |
| case wu: | |
| return 1; | |
| case hp: | |
| return 4; | |
| case cs: | |
| case Ty: | |
| return 16; | |
| case mp: | |
| return 536870912; | |
| default: | |
| return 16 | |
| } | |
| default: | |
| return 16 | |
| } | |
| } | |
| var kn = null, | |
| Eu = null, | |
| Yi = null; | |
| function Ep() { | |
| if (Yi) return Yi; | |
| var e, t = Eu, | |
| n = t.length, | |
| r, o = "value" in kn ? kn.value : kn.textContent, | |
| i = o.length; | |
| for (e = 0; e < n && t[e] === o[e]; e++); | |
| var s = n - e; | |
| for (r = 1; r <= s && t[n - r] === o[i - r]; r++); | |
| return Yi = o.slice(e, 1 < r ? 1 - r : void 0) | |
| } | |
| function Xi(e) { | |
| var t = e.keyCode; | |
| return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0 | |
| } | |
| function Ri() { | |
| return !0 | |
| } | |
| function Hc() { | |
| return !1 | |
| } | |
| function tt(e) { | |
| function t(n, r, o, i, s) { | |
| this._reactName = n, this._targetInst = o, this.type = r, this.nativeEvent = i, this.target = s, this.currentTarget = null; | |
| for (var l in e) e.hasOwnProperty(l) && (n = e[l], this[l] = n ? n(i) : i[l]); | |
| return this.isDefaultPrevented = (i.defaultPrevented != null ? i.defaultPrevented : i.returnValue === !1) ? Ri : Hc, this.isPropagationStopped = Hc, this | |
| } | |
| return ce(t.prototype, { | |
| preventDefault: function() { | |
| this.defaultPrevented = !0; | |
| var n = this.nativeEvent; | |
| n && (n.preventDefault ? n.preventDefault() : typeof n.returnValue != "unknown" && (n.returnValue = !1), this.isDefaultPrevented = Ri) | |
| }, | |
| stopPropagation: function() { | |
| var n = this.nativeEvent; | |
| n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0), this.isPropagationStopped = Ri) | |
| }, | |
| persist: function() {}, | |
| isPersistent: Ri | |
| }), t | |
| } | |
| var lo = { | |
| eventPhase: 0, | |
| bubbles: 0, | |
| cancelable: 0, | |
| timeStamp: function(e) { | |
| return e.timeStamp || Date.now() | |
| }, | |
| defaultPrevented: 0, | |
| isTrusted: 0 | |
| }, | |
| bu = tt(lo), | |
| fi = ce({}, lo, { | |
| view: 0, | |
| detail: 0 | |
| }), | |
| Uy = tt(fi), | |
| Nl, Pl, xo, Us = ce({}, fi, { | |
| screenX: 0, | |
| screenY: 0, | |
| clientX: 0, | |
| clientY: 0, | |
| pageX: 0, | |
| pageY: 0, | |
| ctrlKey: 0, | |
| shiftKey: 0, | |
| altKey: 0, | |
| metaKey: 0, | |
| getModifierState: Nu, | |
| button: 0, | |
| buttons: 0, | |
| relatedTarget: function(e) { | |
| return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget | |
| }, | |
| movementX: function(e) { | |
| return "movementX" in e ? e.movementX : (e !== xo && (xo && e.type === "mousemove" ? (Nl = e.screenX - xo.screenX, Pl = e.screenY - xo.screenY) : Pl = Nl = 0, xo = e), Nl) | |
| }, | |
| movementY: function(e) { | |
| return "movementY" in e ? e.movementY : Pl | |
| } | |
| }), | |
| Qc = tt(Us), | |
| By = ce({}, Us, { | |
| dataTransfer: 0 | |
| }), | |
| Wy = tt(By), | |
| Vy = ce({}, fi, { | |
| relatedTarget: 0 | |
| }), | |
| Tl = tt(Vy), | |
| Hy = ce({}, lo, { | |
| animationName: 0, | |
| elapsedTime: 0, | |
| pseudoElement: 0 | |
| }), | |
| Qy = tt(Hy), | |
| Ky = ce({}, lo, { | |
| clipboardData: function(e) { | |
| return "clipboardData" in e ? e.clipboardData : window.clipboardData | |
| } | |
| }), | |
| Gy = tt(Ky), | |
| Yy = ce({}, lo, { | |
| data: 0 | |
| }), | |
| Kc = tt(Yy), | |
| Xy = { | |
| Esc: "Escape", | |
| Spacebar: " ", | |
| Left: "ArrowLeft", | |
| Up: "ArrowUp", | |
| Right: "ArrowRight", | |
| Down: "ArrowDown", | |
| Del: "Delete", | |
| Win: "OS", | |
| Menu: "ContextMenu", | |
| Apps: "ContextMenu", | |
| Scroll: "ScrollLock", | |
| MozPrintableKey: "Unidentified" | |
| }, | |
| qy = { | |
| 8: "Backspace", | |
| 9: "Tab", | |
| 12: "Clear", | |
| 13: "Enter", | |
| 16: "Shift", | |
| 17: "Control", | |
| 18: "Alt", | |
| 19: "Pause", | |
| 20: "CapsLock", | |
| 27: "Escape", | |
| 32: " ", | |
| 33: "PageUp", | |
| 34: "PageDown", | |
| 35: "End", | |
| 36: "Home", | |
| 37: "ArrowLeft", | |
| 38: "ArrowUp", | |
| 39: "ArrowRight", | |
| 40: "ArrowDown", | |
| 45: "Insert", | |
| 46: "Delete", | |
| 112: "F1", | |
| 113: "F2", | |
| 114: "F3", | |
| 115: "F4", | |
| 116: "F5", | |
| 117: "F6", | |
| 118: "F7", | |
| 119: "F8", | |
| 120: "F9", | |
| 121: "F10", | |
| 122: "F11", | |
| 123: "F12", | |
| 144: "NumLock", | |
| 145: "ScrollLock", | |
| 224: "Meta" | |
| }, | |
| Zy = { | |
| Alt: "altKey", | |
| Control: "ctrlKey", | |
| Meta: "metaKey", | |
| Shift: "shiftKey" | |
| }; | |
| function Jy(e) { | |
| var t = this.nativeEvent; | |
| return t.getModifierState ? t.getModifierState(e) : (e = Zy[e]) ? !!t[e] : !1 | |
| } | |
| function Nu() { | |
| return Jy | |
| } | |
| var ev = ce({}, fi, { | |
| key: function(e) { | |
| if (e.key) { | |
| var t = Xy[e.key] || e.key; | |
| if (t !== "Unidentified") return t | |
| } | |
| return e.type === "keypress" ? (e = Xi(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? qy[e.keyCode] || "Unidentified" : "" | |
| }, | |
| code: 0, | |
| location: 0, | |
| ctrlKey: 0, | |
| shiftKey: 0, | |
| altKey: 0, | |
| metaKey: 0, | |
| repeat: 0, | |
| locale: 0, | |
| getModifierState: Nu, | |
| charCode: function(e) { | |
| return e.type === "keypress" ? Xi(e) : 0 | |
| }, | |
| keyCode: function(e) { | |
| return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0 | |
| }, | |
| which: function(e) { | |
| return e.type === "keypress" ? Xi(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0 | |
| } | |
| }), | |
| tv = tt(ev), | |
| nv = ce({}, Us, { | |
| pointerId: 0, | |
| width: 0, | |
| height: 0, | |
| pressure: 0, | |
| tangentialPressure: 0, | |
| tiltX: 0, | |
| tiltY: 0, | |
| twist: 0, | |
| pointerType: 0, | |
| isPrimary: 0 | |
| }), | |
| Gc = tt(nv), | |
| rv = ce({}, fi, { | |
| touches: 0, | |
| targetTouches: 0, | |
| changedTouches: 0, | |
| altKey: 0, | |
| metaKey: 0, | |
| ctrlKey: 0, | |
| shiftKey: 0, | |
| getModifierState: Nu | |
| }), | |
| ov = tt(rv), | |
| iv = ce({}, lo, { | |
| propertyName: 0, | |
| elapsedTime: 0, | |
| pseudoElement: 0 | |
| }), | |
| sv = tt(iv), | |
| lv = ce({}, Us, { | |
| deltaX: function(e) { | |
| return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0 | |
| }, | |
| deltaY: function(e) { | |
| return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0 | |
| }, | |
| deltaZ: 0, | |
| deltaMode: 0 | |
| }), | |
| av = tt(lv), | |
| uv = [9, 13, 27, 32], | |
| Pu = Yt && "CompositionEvent" in window, | |
| Oo = null; | |
| Yt && "documentMode" in document && (Oo = document.documentMode); | |
| var cv = Yt && "TextEvent" in window && !Oo, | |
| bp = Yt && (!Pu || Oo && 8 < Oo && 11 >= Oo), | |
| Yc = " ", | |
| Xc = !1; | |
| function Np(e, t) { | |
| switch (e) { | |
| case "keyup": | |
| return uv.indexOf(t.keyCode) !== -1; | |
| case "keydown": | |
| return t.keyCode !== 229; | |
| case "keypress": | |
| case "mousedown": | |
| case "focusout": | |
| return !0; | |
| default: | |
| return !1 | |
| } | |
| } | |
| function Pp(e) { | |
| return e = e.detail, typeof e == "object" && "data" in e ? e.data : null | |
| } | |
| var Er = !1; | |
| function dv(e, t) { | |
| switch (e) { | |
| case "compositionend": | |
| return Pp(t); | |
| case "keypress": | |
| return t.which !== 32 ? null : (Xc = !0, Yc); | |
| case "textInput": | |
| return e = t.data, e === Yc && Xc ? null : e; | |
| default: | |
| return null | |
| } | |
| } | |
| function fv(e, t) { | |
| if (Er) return e === "compositionend" || !Pu && Np(e, t) ? (e = Ep(), Yi = Eu = kn = null, Er = !1, e) : null; | |
| switch (e) { | |
| case "paste": | |
| return null; | |
| case "keypress": | |
| if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) { | |
| if (t.char && 1 < t.char.length) return t.char; | |
| if (t.which) return String.fromCharCode(t.which) | |
| } | |
| return null; | |
| case "compositionend": | |
| return bp && t.locale !== "ko" ? null : t.data; | |
| default: | |
| return null | |
| } | |
| } | |
| var pv = { | |
| color: !0, | |
| date: !0, | |
| datetime: !0, | |
| "datetime-local": !0, | |
| email: !0, | |
| month: !0, | |
| number: !0, | |
| password: !0, | |
| range: !0, | |
| search: !0, | |
| tel: !0, | |
| text: !0, | |
| time: !0, | |
| url: !0, | |
| week: !0 | |
| }; | |
| function qc(e) { | |
| var t = e && e.nodeName && e.nodeName.toLowerCase(); | |
| return t === "input" ? !!pv[e.type] : t === "textarea" | |
| } | |
| function Tp(e, t, n, r) { | |
| ip(r), t = hs(t, "onChange"), 0 < t.length && (n = new bu("onChange", "change", null, n, r), e.push({ | |
| event: n, | |
| listeners: t | |
| })) | |
| } | |
| var Mo = null, | |
| Ko = null; | |
| function hv(e) { | |
| zp(e, 0) | |
| } | |
| function Bs(e) { | |
| var t = Pr(e); | |
| if (Zf(t)) return e | |
| } | |
| function mv(e, t) { | |
| if (e === "change") return t | |
| } | |
| var Rp = !1; | |
| if (Yt) { | |
| var Rl; | |
| if (Yt) { | |
| var jl = "oninput" in document; | |
| if (!jl) { | |
| var Zc = document.createElement("div"); | |
| Zc.setAttribute("oninput", "return;"), jl = typeof Zc.oninput == "function" | |
| } | |
| Rl = jl | |
| } else Rl = !1; | |
| Rp = Rl && (!document.documentMode || 9 < document.documentMode) | |
| } | |
| function Jc() { | |
| Mo && (Mo.detachEvent("onpropertychange", jp), Ko = Mo = null) | |
| } | |
| function jp(e) { | |
| if (e.propertyName === "value" && Bs(Ko)) { | |
| var t = []; | |
| Tp(t, Ko, e, xu(e)), up(hv, t) | |
| } | |
| } | |
| function gv(e, t, n) { | |
| e === "focusin" ? (Jc(), Mo = t, Ko = n, Mo.attachEvent("onpropertychange", jp)) : e === "focusout" && Jc() | |
| } | |
| function yv(e) { | |
| if (e === "selectionchange" || e === "keyup" || e === "keydown") return Bs(Ko) | |
| } | |
| function vv(e, t) { | |
| if (e === "click") return Bs(t) | |
| } | |
| function xv(e, t) { | |
| if (e === "input" || e === "change") return Bs(t) | |
| } | |
| function wv(e, t) { | |
| return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t | |
| } | |
| var Et = typeof Object.is == "function" ? Object.is : wv; | |
| function Go(e, t) { | |
| if (Et(e, t)) return !0; | |
| if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1; | |
| var n = Object.keys(e), | |
| r = Object.keys(t); | |
| if (n.length !== r.length) return !1; | |
| for (r = 0; r < n.length; r++) { | |
| var o = n[r]; | |
| if (!ea.call(t, o) || !Et(e[o], t[o])) return !1 | |
| } | |
| return !0 | |
| } | |
| function ed(e) { | |
| for (; e && e.firstChild;) e = e.firstChild; | |
| return e | |
| } | |
| function td(e, t) { | |
| var n = ed(e); | |
| e = 0; | |
| for (var r; n;) { | |
| if (n.nodeType === 3) { | |
| if (r = e + n.textContent.length, e <= t && r >= t) return { | |
| node: n, | |
| offset: t - e | |
| }; | |
| e = r | |
| } | |
| e: { | |
| for (; n;) { | |
| if (n.nextSibling) { | |
| n = n.nextSibling; | |
| break e | |
| } | |
| n = n.parentNode | |
| } | |
| n = void 0 | |
| } | |
| n = ed(n) | |
| } | |
| } | |
| function _p(e, t) { | |
| return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? _p(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1 | |
| } | |
| function Ap() { | |
| for (var e = window, t = ls(); t instanceof e.HTMLIFrameElement;) { | |
| try { | |
| var n = typeof t.contentWindow.location.href == "string" | |
| } catch { | |
| n = !1 | |
| } | |
| if (n) e = t.contentWindow; | |
| else break; | |
| t = ls(e.document) | |
| } | |
| return t | |
| } | |
| function Tu(e) { | |
| var t = e && e.nodeName && e.nodeName.toLowerCase(); | |
| return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true") | |
| } | |
| function Sv(e) { | |
| var t = Ap(), | |
| n = e.focusedElem, | |
| r = e.selectionRange; | |
| if (t !== n && n && n.ownerDocument && _p(n.ownerDocument.documentElement, n)) { | |
| if (r !== null && Tu(n)) { | |
| if (t = r.start, e = r.end, e === void 0 && (e = t), "selectionStart" in n) n.selectionStart = t, n.selectionEnd = Math.min(e, n.value.length); | |
| else if (e = (t = n.ownerDocument || document) && t.defaultView || window, e.getSelection) { | |
| e = e.getSelection(); | |
| var o = n.textContent.length, | |
| i = Math.min(r.start, o); | |
| r = r.end === void 0 ? i : Math.min(r.end, o), !e.extend && i > r && (o = r, r = i, i = o), o = td(n, i); | |
| var s = td(n, r); | |
| o && s && (e.rangeCount !== 1 || e.anchorNode !== o.node || e.anchorOffset !== o.offset || e.focusNode !== s.node || e.focusOffset !== s.offset) && (t = t.createRange(), t.setStart(o.node, o.offset), e.removeAllRanges(), i > r ? (e.addRange(t), e.extend(s.node, s.offset)) : (t.setEnd(s.node, s.offset), e.addRange(t))) | |
| } | |
| } | |
| for (t = [], e = n; e = e.parentNode;) e.nodeType === 1 && t.push({ | |
| element: e, | |
| left: e.scrollLeft, | |
| top: e.scrollTop | |
| }); | |
| for (typeof n.focus == "function" && n.focus(), n = 0; n < t.length; n++) e = t[n], e.element.scrollLeft = e.left, e.element.scrollTop = e.top | |
| } | |
| } | |
| var kv = Yt && "documentMode" in document && 11 >= document.documentMode, | |
| br = null, | |
| xa = null, | |
| Lo = null, | |
| wa = !1; | |
| function nd(e, t, n) { | |
| var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument; | |
| wa || br == null || br !== ls(r) || (r = br, "selectionStart" in r && Tu(r) ? r = { | |
| start: r.selectionStart, | |
| end: r.selectionEnd | |
| } : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = { | |
| anchorNode: r.anchorNode, | |
| anchorOffset: r.anchorOffset, | |
| focusNode: r.focusNode, | |
| focusOffset: r.focusOffset | |
| }), Lo && Go(Lo, r) || (Lo = r, r = hs(xa, "onSelect"), 0 < r.length && (t = new bu("onSelect", "select", null, t, n), e.push({ | |
| event: t, | |
| listeners: r | |
| }), t.target = br))) | |
| } | |
| function ji(e, t) { | |
| var n = {}; | |
| return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n | |
| } | |
| var Nr = { | |
| animationend: ji("Animation", "AnimationEnd"), | |
| animationiteration: ji("Animation", "AnimationIteration"), | |
| animationstart: ji("Animation", "AnimationStart"), | |
| transitionend: ji("Transition", "TransitionEnd") | |
| }, | |
| _l = {}, | |
| Op = {}; | |
| Yt && (Op = document.createElement("div").style, "AnimationEvent" in window || (delete Nr.animationend.animation, delete Nr.animationiteration.animation, delete Nr.animationstart.animation), "TransitionEvent" in window || delete Nr.transitionend.transition); | |
| function Ws(e) { | |
| if (_l[e]) return _l[e]; | |
| if (!Nr[e]) return e; | |
| var t = Nr[e], | |
| n; | |
| for (n in t) | |
| if (t.hasOwnProperty(n) && n in Op) return _l[e] = t[n]; | |
| return e | |
| } | |
| var Mp = Ws("animationend"), | |
| Lp = Ws("animationiteration"), | |
| Dp = Ws("animationstart"), | |
| Ip = Ws("transitionend"), | |
| Fp = new Map, | |
| rd = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); | |
| function zn(e, t) { | |
| Fp.set(e, t), dr(t, [e]) | |
| } | |
| for (var Al = 0; Al < rd.length; Al++) { | |
| var Ol = rd[Al], | |
| Cv = Ol.toLowerCase(), | |
| Ev = Ol[0].toUpperCase() + Ol.slice(1); | |
| zn(Cv, "on" + Ev) | |
| } | |
| zn(Mp, "onAnimationEnd"); | |
| zn(Lp, "onAnimationIteration"); | |
| zn(Dp, "onAnimationStart"); | |
| zn("dblclick", "onDoubleClick"); | |
| zn("focusin", "onFocus"); | |
| zn("focusout", "onBlur"); | |
| zn(Ip, "onTransitionEnd"); | |
| qr("onMouseEnter", ["mouseout", "mouseover"]); | |
| qr("onMouseLeave", ["mouseout", "mouseover"]); | |
| qr("onPointerEnter", ["pointerout", "pointerover"]); | |
| qr("onPointerLeave", ["pointerout", "pointerover"]); | |
| dr("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); | |
| dr("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); | |
| dr("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); | |
| dr("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); | |
| dr("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); | |
| dr("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); | |
| var To = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), | |
| bv = new Set("cancel close invalid load scroll toggle".split(" ").concat(To)); | |
| function od(e, t, n) { | |
| var r = e.type || "unknown-event"; | |
| e.currentTarget = n, Cy(r, t, void 0, e), e.currentTarget = null | |
| } | |
| function zp(e, t) { | |
| t = (t & 4) !== 0; | |
| for (var n = 0; n < e.length; n++) { | |
| var r = e[n], | |
| o = r.event; | |
| r = r.listeners; | |
| e: { | |
| var i = void 0; | |
| if (t) | |
| for (var s = r.length - 1; 0 <= s; s--) { | |
| var l = r[s], | |
| a = l.instance, | |
| u = l.currentTarget; | |
| if (l = l.listener, a !== i && o.isPropagationStopped()) break e; | |
| od(o, l, u), i = a | |
| } else | |
| for (s = 0; s < r.length; s++) { | |
| if (l = r[s], a = l.instance, u = l.currentTarget, l = l.listener, a !== i && o.isPropagationStopped()) break e; | |
| od(o, l, u), i = a | |
| } | |
| } | |
| } | |
| if (us) throw e = ma, us = !1, ma = null, e | |
| } | |
| function oe(e, t) { | |
| var n = t[ba]; | |
| n === void 0 && (n = t[ba] = new Set); | |
| var r = e + "__bubble"; | |
| n.has(r) || ($p(t, e, 2, !1), n.add(r)) | |
| } | |
| function Ml(e, t, n) { | |
| var r = 0; | |
| t && (r |= 4), $p(n, e, r, t) | |
| } | |
| var _i = "_reactListening" + Math.random().toString(36).slice(2); | |
| function Yo(e) { | |
| if (!e[_i]) { | |
| e[_i] = !0, Kf.forEach(function(n) { | |
| n !== "selectionchange" && (bv.has(n) || Ml(n, !1, e), Ml(n, !0, e)) | |
| }); | |
| var t = e.nodeType === 9 ? e : e.ownerDocument; | |
| t === null || t[_i] || (t[_i] = !0, Ml("selectionchange", !1, t)) | |
| } | |
| } | |
| function $p(e, t, n, r) { | |
| switch (Cp(t)) { | |
| case 1: | |
| var o = zy; | |
| break; | |
| case 4: | |
| o = $y; | |
| break; | |
| default: | |
| o = Cu | |
| } | |
| n = o.bind(null, t, n, e), o = void 0, !ha || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (o = !0), r ? o !== void 0 ? e.addEventListener(t, n, { | |
| capture: !0, | |
| passive: o | |
| }) : e.addEventListener(t, n, !0) : o !== void 0 ? e.addEventListener(t, n, { | |
| passive: o | |
| }) : e.addEventListener(t, n, !1) | |
| } | |
| function Ll(e, t, n, r, o) { | |
| var i = r; | |
| if (!(t & 1) && !(t & 2) && r !== null) e: for (;;) { | |
| if (r === null) return; | |
| var s = r.tag; | |
| if (s === 3 || s === 4) { | |
| var l = r.stateNode.containerInfo; | |
| if (l === o || l.nodeType === 8 && l.parentNode === o) break; | |
| if (s === 4) | |
| for (s = r.return; s !== null;) { | |
| var a = s.tag; | |
| if ((a === 3 || a === 4) && (a = s.stateNode.containerInfo, a === o || a.nodeType === 8 && a.parentNode === o)) return; | |
| s = s.return | |
| } | |
| for (; l !== null;) { | |
| if (s = Gn(l), s === null) return; | |
| if (a = s.tag, a === 5 || a === 6) { | |
| r = i = s; | |
| continue e | |
| } | |
| l = l.parentNode | |
| } | |
| } | |
| r = r.return | |
| } | |
| up(function() { | |
| var u = i, | |
| c = xu(n), | |
| f = []; | |
| e: { | |
| var m = Fp.get(e); | |
| if (m !== void 0) { | |
| var d = bu, | |
| x = e; | |
| switch (e) { | |
| case "keypress": | |
| if (Xi(n) === 0) break e; | |
| case "keydown": | |
| case "keyup": | |
| d = tv; | |
| break; | |
| case "focusin": | |
| x = "focus", d = Tl; | |
| break; | |
| case "focusout": | |
| x = "blur", d = Tl; | |
| break; | |
| case "beforeblur": | |
| case "afterblur": | |
| d = Tl; | |
| break; | |
| case "click": | |
| if (n.button === 2) break e; | |
| case "auxclick": | |
| case "dblclick": | |
| case "mousedown": | |
| case "mousemove": | |
| case "mouseup": | |
| case "mouseout": | |
| case "mouseover": | |
| case "contextmenu": | |
| d = Qc; | |
| break; | |
| case "drag": | |
| case "dragend": | |
| case "dragenter": | |
| case "dragexit": | |
| case "dragleave": | |
| case "dragover": | |
| case "dragstart": | |
| case "drop": | |
| d = Wy; | |
| break; | |
| case "touchcancel": | |
| case "touchend": | |
| case "touchmove": | |
| case "touchstart": | |
| d = ov; | |
| break; | |
| case Mp: | |
| case Lp: | |
| case Dp: | |
| d = Qy; | |
| break; | |
| case Ip: | |
| d = sv; | |
| break; | |
| case "scroll": | |
| d = Uy; | |
| break; | |
| case "wheel": | |
| d = av; | |
| break; | |
| case "copy": | |
| case "cut": | |
| case "paste": | |
| d = Gy; | |
| break; | |
| case "gotpointercapture": | |
| case "lostpointercapture": | |
| case "pointercancel": | |
| case "pointerdown": | |
| case "pointermove": | |
| case "pointerout": | |
| case "pointerover": | |
| case "pointerup": | |
| d = Gc | |
| } | |
| var y = (t & 4) !== 0, | |
| w = !y && e === "scroll", | |
| h = y ? m !== null ? m + "Capture" : null : m; | |
| y = []; | |
| for (var p = u, v; p !== null;) { | |
| v = p; | |
| var k = v.stateNode; | |
| if (v.tag === 5 && k !== null && (v = k, h !== null && (k = Wo(p, h), k != null && y.push(Xo(p, k, v)))), w) break; | |
| p = p.return | |
| } | |
| 0 < y.length && (m = new d(m, x, null, n, c), f.push({ | |
| event: m, | |
| listeners: y | |
| })) | |
| } | |
| } | |
| if (!(t & 7)) { | |
| e: { | |
| if (m = e === "mouseover" || e === "pointerover", d = e === "mouseout" || e === "pointerout", m && n !== fa && (x = n.relatedTarget || n.fromElement) && (Gn(x) || x[Xt])) break e; | |
| if ((d || m) && (m = c.window === c ? c : (m = c.ownerDocument) ? m.defaultView || m.parentWindow : window, d ? (x = n.relatedTarget || n.toElement, d = u, x = x ? Gn(x) : null, x !== null && (w = fr(x), x !== w || x.tag !== 5 && x.tag !== 6) && (x = null)) : (d = null, x = u), d !== x)) { | |
| if (y = Qc, k = "onMouseLeave", h = "onMouseEnter", p = "mouse", (e === "pointerout" || e === "pointerover") && (y = Gc, k = "onPointerLeave", h = "onPointerEnter", p = "pointer"), w = d == null ? m : Pr(d), v = x == null ? m : Pr(x), m = new y(k, p + "leave", d, n, c), m.target = w, m.relatedTarget = v, k = null, Gn(c) === u && (y = new y(h, p + "enter", x, n, c), y.target = v, y.relatedTarget = w, k = y), w = k, d && x) t: { | |
| for (y = d, h = x, p = 0, v = y; v; v = wr(v)) p++; | |
| for (v = 0, k = h; k; k = wr(k)) v++; | |
| for (; 0 < p - v;) y = wr(y), | |
| p--; | |
| for (; 0 < v - p;) h = wr(h), | |
| v--; | |
| for (; p--;) { | |
| if (y === h || h !== null && y === h.alternate) break t; | |
| y = wr(y), h = wr(h) | |
| } | |
| y = null | |
| } | |
| else y = null; | |
| d !== null && id(f, m, d, y, !1), x !== null && w !== null && id(f, w, x, y, !0) | |
| } | |
| } | |
| e: { | |
| if (m = u ? Pr(u) : window, d = m.nodeName && m.nodeName.toLowerCase(), d === "select" || d === "input" && m.type === "file") var C = mv; | |
| else if (qc(m)) | |
| if (Rp) C = xv; | |
| else { | |
| C = yv; | |
| var E = gv | |
| } | |
| else(d = m.nodeName) && d.toLowerCase() === "input" && (m.type === "checkbox" || m.type === "radio") && (C = vv); | |
| if (C && (C = C(e, u))) { | |
| Tp(f, C, n, c); | |
| break e | |
| } | |
| E && E(e, m, u), | |
| e === "focusout" && (E = m._wrapperState) && E.controlled && m.type === "number" && la(m, "number", m.value) | |
| } | |
| switch (E = u ? Pr(u) : window, e) { | |
| case "focusin": | |
| (qc(E) || E.contentEditable === "true") && (br = E, xa = u, Lo = null); | |
| break; | |
| case "focusout": | |
| Lo = xa = br = null; | |
| break; | |
| case "mousedown": | |
| wa = !0; | |
| break; | |
| case "contextmenu": | |
| case "mouseup": | |
| case "dragend": | |
| wa = !1, nd(f, n, c); | |
| break; | |
| case "selectionchange": | |
| if (kv) break; | |
| case "keydown": | |
| case "keyup": | |
| nd(f, n, c) | |
| } | |
| var b; | |
| if (Pu) e: { | |
| switch (e) { | |
| case "compositionstart": | |
| var R = "onCompositionStart"; | |
| break e; | |
| case "compositionend": | |
| R = "onCompositionEnd"; | |
| break e; | |
| case "compositionupdate": | |
| R = "onCompositionUpdate"; | |
| break e | |
| } | |
| R = void 0 | |
| } | |
| else Er ? Np(e, n) && (R = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (R = "onCompositionStart");R && (bp && n.locale !== "ko" && (Er || R !== "onCompositionStart" ? R === "onCompositionEnd" && Er && (b = Ep()) : (kn = c, Eu = "value" in kn ? kn.value : kn.textContent, Er = !0)), E = hs(u, R), 0 < E.length && (R = new Kc(R, e, null, n, c), f.push({ | |
| event: R, | |
| listeners: E | |
| }), b ? R.data = b : (b = Pp(n), b !== null && (R.data = b)))), | |
| (b = cv ? dv(e, n) : fv(e, n)) && (u = hs(u, "onBeforeInput"), 0 < u.length && (c = new Kc("onBeforeInput", "beforeinput", null, n, c), f.push({ | |
| event: c, | |
| listeners: u | |
| }), c.data = b)) | |
| } | |
| zp(f, t) | |
| }) | |
| } | |
| function Xo(e, t, n) { | |
| return { | |
| instance: e, | |
| listener: t, | |
| currentTarget: n | |
| } | |
| } | |
| function hs(e, t) { | |
| for (var n = t + "Capture", r = []; e !== null;) { | |
| var o = e, | |
| i = o.stateNode; | |
| o.tag === 5 && i !== null && (o = i, i = Wo(e, n), i != null && r.unshift(Xo(e, i, o)), i = Wo(e, t), i != null && r.push(Xo(e, i, o))), e = e.return | |
| } | |
| return r | |
| } | |
| function wr(e) { | |
| if (e === null) return null; | |
| do e = e.return; while (e && e.tag !== 5); | |
| return e || null | |
| } | |
| function id(e, t, n, r, o) { | |
| for (var i = t._reactName, s = []; n !== null && n !== r;) { | |
| var l = n, | |
| a = l.alternate, | |
| u = l.stateNode; | |
| if (a !== null && a === r) break; | |
| l.tag === 5 && u !== null && (l = u, o ? (a = Wo(n, i), a != null && s.unshift(Xo(n, a, l))) : o || (a = Wo(n, i), a != null && s.push(Xo(n, a, l)))), n = n.return | |
| } | |
| s.length !== 0 && e.push({ | |
| event: t, | |
| listeners: s | |
| }) | |
| } | |
| var Nv = /\r\n?/g, | |
| Pv = /\u0000|\uFFFD/g; | |
| function sd(e) { | |
| return (typeof e == "string" ? e : "" + e).replace(Nv, ` | |
| `).replace(Pv, "") | |
| } | |
| function Ai(e, t, n) { | |
| if (t = sd(t), sd(e) !== t && n) throw Error(j(425)) | |
| } | |
| function ms() {} | |
| var Sa = null, | |
| ka = null; | |
| function Ca(e, t) { | |
| return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null | |
| } | |
| var Ea = typeof setTimeout == "function" ? setTimeout : void 0, | |
| Tv = typeof clearTimeout == "function" ? clearTimeout : void 0, | |
| ld = typeof Promise == "function" ? Promise : void 0, | |
| Rv = typeof queueMicrotask == "function" ? queueMicrotask : typeof ld < "u" ? function(e) { | |
| return ld.resolve(null).then(e).catch(jv) | |
| } : Ea; | |
| function jv(e) { | |
| setTimeout(function() { | |
| throw e | |
| }) | |
| } | |
| function Dl(e, t) { | |
| var n = t, | |
| r = 0; | |
| do { | |
| var o = n.nextSibling; | |
| if (e.removeChild(n), o && o.nodeType === 8) | |
| if (n = o.data, n === "/$") { | |
| if (r === 0) { | |
| e.removeChild(o), Qo(t); | |
| return | |
| } | |
| r-- | |
| } else n !== "$" && n !== "$?" && n !== "$!" || r++; | |
| n = o | |
| } while (n); | |
| Qo(t) | |
| } | |
| function Tn(e) { | |
| for (; e != null; e = e.nextSibling) { | |
| var t = e.nodeType; | |
| if (t === 1 || t === 3) break; | |
| if (t === 8) { | |
| if (t = e.data, t === "$" || t === "$!" || t === "$?") break; | |
| if (t === "/$") return null | |
| } | |
| } | |
| return e | |
| } | |
| function ad(e) { | |
| e = e.previousSibling; | |
| for (var t = 0; e;) { | |
| if (e.nodeType === 8) { | |
| var n = e.data; | |
| if (n === "$" || n === "$!" || n === "$?") { | |
| if (t === 0) return e; | |
| t-- | |
| } else n === "/$" && t++ | |
| } | |
| e = e.previousSibling | |
| } | |
| return null | |
| } | |
| var ao = Math.random().toString(36).slice(2), | |
| Mt = "__reactFiber$" + ao, | |
| qo = "__reactProps$" + ao, | |
| Xt = "__reactContainer$" + ao, | |
| ba = "__reactEvents$" + ao, | |
| _v = "__reactListeners$" + ao, | |
| Av = "__reactHandles$" + ao; | |
| function Gn(e) { | |
| var t = e[Mt]; | |
| if (t) return t; | |
| for (var n = e.parentNode; n;) { | |
| if (t = n[Xt] || n[Mt]) { | |
| if (n = t.alternate, t.child !== null || n !== null && n.child !== null) | |
| for (e = ad(e); e !== null;) { | |
| if (n = e[Mt]) return n; | |
| e = ad(e) | |
| } | |
| return t | |
| } | |
| e = n, n = e.parentNode | |
| } | |
| return null | |
| } | |
| function pi(e) { | |
| return e = e[Mt] || e[Xt], !e || e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3 ? null : e | |
| } | |
| function Pr(e) { | |
| if (e.tag === 5 || e.tag === 6) return e.stateNode; | |
| throw Error(j(33)) | |
| } | |
| function Vs(e) { | |
| return e[qo] || null | |
| } | |
| var Na = [], | |
| Tr = -1; | |
| function $n(e) { | |
| return { | |
| current: e | |
| } | |
| } | |
| function ie(e) { | |
| 0 > Tr || (e.current = Na[Tr], Na[Tr] = null, Tr--) | |
| } | |
| function ne(e, t) { | |
| Tr++, Na[Tr] = e.current, e.current = t | |
| } | |
| var Mn = {}, | |
| Ae = $n(Mn), | |
| We = $n(!1), | |
| ir = Mn; | |
| function Zr(e, t) { | |
| var n = e.type.contextTypes; | |
| if (!n) return Mn; | |
| var r = e.stateNode; | |
| if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; | |
| var o = {}, | |
| i; | |
| for (i in n) o[i] = t[i]; | |
| return r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = o), o | |
| } | |
| function Ve(e) { | |
| return e = e.childContextTypes, e != null | |
| } | |
| function gs() { | |
| ie(We), ie(Ae) | |
| } | |
| function ud(e, t, n) { | |
| if (Ae.current !== Mn) throw Error(j(168)); | |
| ne(Ae, t), ne(We, n) | |
| } | |
| function Up(e, t, n) { | |
| var r = e.stateNode; | |
| if (t = t.childContextTypes, typeof r.getChildContext != "function") return n; | |
| r = r.getChildContext(); | |
| for (var o in r) | |
| if (!(o in t)) throw Error(j(108, gy(e) || "Unknown", o)); | |
| return ce({}, n, r) | |
| } | |
| function ys(e) { | |
| return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Mn, ir = Ae.current, ne(Ae, e), ne(We, We.current), !0 | |
| } | |
| function cd(e, t, n) { | |
| var r = e.stateNode; | |
| if (!r) throw Error(j(169)); | |
| n ? (e = Up(e, t, ir), r.__reactInternalMemoizedMergedChildContext = e, ie(We), ie(Ae), ne(Ae, e)) : ie(We), ne(We, n) | |
| } | |
| var Vt = null, | |
| Hs = !1, | |
| Il = !1; | |
| function Bp(e) { | |
| Vt === null ? Vt = [e] : Vt.push(e) | |
| } | |
| function Ov(e) { | |
| Hs = !0, Bp(e) | |
| } | |
| function Un() { | |
| if (!Il && Vt !== null) { | |
| Il = !0; | |
| var e = 0, | |
| t = ee; | |
| try { | |
| var n = Vt; | |
| for (ee = 1; e < n.length; e++) { | |
| var r = n[e]; | |
| do r = r(!0); while (r !== null) | |
| } | |
| Vt = null, Hs = !1 | |
| } catch (o) { | |
| throw Vt !== null && (Vt = Vt.slice(e + 1)), pp(wu, Un), o | |
| } finally { | |
| ee = t, Il = !1 | |
| } | |
| } | |
| return null | |
| } | |
| var Rr = [], | |
| jr = 0, | |
| vs = null, | |
| xs = 0, | |
| ot = [], | |
| it = 0, | |
| sr = null, | |
| Qt = 1, | |
| Kt = ""; | |
| function Hn(e, t) { | |
| Rr[jr++] = xs, Rr[jr++] = vs, vs = e, xs = t | |
| } | |
| function Wp(e, t, n) { | |
| ot[it++] = Qt, ot[it++] = Kt, ot[it++] = sr, sr = e; | |
| var r = Qt; | |
| e = Kt; | |
| var o = 32 - kt(r) - 1; | |
| r &= ~(1 << o), n += 1; | |
| var i = 32 - kt(t) + o; | |
| if (30 < i) { | |
| var s = o - o % 5; | |
| i = (r & (1 << s) - 1).toString(32), r >>= s, o -= s, Qt = 1 << 32 - kt(t) + o | n << o | r, Kt = i + e | |
| } else Qt = 1 << i | n << o | r, Kt = e | |
| } | |
| function Ru(e) { | |
| e.return !== null && (Hn(e, 1), Wp(e, 1, 0)) | |
| } | |
| function ju(e) { | |
| for (; e === vs;) vs = Rr[--jr], Rr[jr] = null, xs = Rr[--jr], Rr[jr] = null; | |
| for (; e === sr;) sr = ot[--it], ot[it] = null, Kt = ot[--it], ot[it] = null, Qt = ot[--it], ot[it] = null | |
| } | |
| var qe = null, | |
| Xe = null, | |
| le = !1, | |
| St = null; | |
| function Vp(e, t) { | |
| var n = st(5, null, null, 0); | |
| n.elementType = "DELETED", n.stateNode = t, n.return = e, t = e.deletions, t === null ? (e.deletions = [n], e.flags |= 16) : t.push(n) | |
| } | |
| function dd(e, t) { | |
| switch (e.tag) { | |
| case 5: | |
| var n = e.type; | |
| return t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t, t !== null ? (e.stateNode = t, qe = e, Xe = Tn(t.firstChild), !0) : !1; | |
| case 6: | |
| return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, t !== null ? (e.stateNode = t, qe = e, Xe = null, !0) : !1; | |
| case 13: | |
| return t = t.nodeType !== 8 ? null : t, t !== null ? (n = sr !== null ? { | |
| id: Qt, | |
| overflow: Kt | |
| } : null, e.memoizedState = { | |
| dehydrated: t, | |
| treeContext: n, | |
| retryLane: 1073741824 | |
| }, n = st(18, null, null, 0), n.stateNode = t, n.return = e, e.child = n, qe = e, Xe = null, !0) : !1; | |
| default: | |
| return !1 | |
| } | |
| } | |
| function Pa(e) { | |
| return (e.mode & 1) !== 0 && (e.flags & 128) === 0 | |
| } | |
| function Ta(e) { | |
| if (le) { | |
| var t = Xe; | |
| if (t) { | |
| var n = t; | |
| if (!dd(e, t)) { | |
| if (Pa(e)) throw Error(j(418)); | |
| t = Tn(n.nextSibling); | |
| var r = qe; | |
| t && dd(e, t) ? Vp(r, n) : (e.flags = e.flags & -4097 | 2, le = !1, qe = e) | |
| } | |
| } else { | |
| if (Pa(e)) throw Error(j(418)); | |
| e.flags = e.flags & -4097 | 2, le = !1, qe = e | |
| } | |
| } | |
| } | |
| function fd(e) { | |
| for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13;) e = e.return; | |
| qe = e | |
| } | |
| function Oi(e) { | |
| if (e !== qe) return !1; | |
| if (!le) return fd(e), le = !0, !1; | |
| var t; | |
| if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, t = t !== "head" && t !== "body" && !Ca(e.type, e.memoizedProps)), t && (t = Xe)) { | |
| if (Pa(e)) throw Hp(), Error(j(418)); | |
| for (; t;) Vp(e, t), t = Tn(t.nextSibling) | |
| } | |
| if (fd(e), e.tag === 13) { | |
| if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(j(317)); | |
| e: { | |
| for (e = e.nextSibling, t = 0; e;) { | |
| if (e.nodeType === 8) { | |
| var n = e.data; | |
| if (n === "/$") { | |
| if (t === 0) { | |
| Xe = Tn(e.nextSibling); | |
| break e | |
| } | |
| t-- | |
| } else n !== "$" && n !== "$!" && n !== "$?" || t++ | |
| } | |
| e = e.nextSibling | |
| } | |
| Xe = null | |
| } | |
| } else Xe = qe ? Tn(e.stateNode.nextSibling) : null; | |
| return !0 | |
| } | |
| function Hp() { | |
| for (var e = Xe; e;) e = Tn(e.nextSibling) | |
| } | |
| function Jr() { | |
| Xe = qe = null, le = !1 | |
| } | |
| function _u(e) { | |
| St === null ? St = [e] : St.push(e) | |
| } | |
| var Mv = tn.ReactCurrentBatchConfig; | |
| function wo(e, t, n) { | |
| if (e = n.ref, e !== null && typeof e != "function" && typeof e != "object") { | |
| if (n._owner) { | |
| if (n = n._owner, n) { | |
| if (n.tag !== 1) throw Error(j(309)); | |
| var r = n.stateNode | |
| } | |
| if (!r) throw Error(j(147, e)); | |
| var o = r, | |
| i = "" + e; | |
| return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === i ? t.ref : (t = function(s) { | |
| var l = o.refs; | |
| s === null ? delete l[i] : l[i] = s | |
| }, t._stringRef = i, t) | |
| } | |
| if (typeof e != "string") throw Error(j(284)); | |
| if (!n._owner) throw Error(j(290, e)) | |
| } | |
| return e | |
| } | |
| function Mi(e, t) { | |
| throw e = Object.prototype.toString.call(t), Error(j(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)) | |
| } | |
| function pd(e) { | |
| var t = e._init; | |
| return t(e._payload) | |
| } | |
| function Qp(e) { | |
| function t(h, p) { | |
| if (e) { | |
| var v = h.deletions; | |
| v === null ? (h.deletions = [p], h.flags |= 16) : v.push(p) | |
| } | |
| } | |
| function n(h, p) { | |
| if (!e) return null; | |
| for (; p !== null;) t(h, p), p = p.sibling; | |
| return null | |
| } | |
| function r(h, p) { | |
| for (h = new Map; p !== null;) p.key !== null ? h.set(p.key, p) : h.set(p.index, p), p = p.sibling; | |
| return h | |
| } | |
| function o(h, p) { | |
| return h = An(h, p), h.index = 0, h.sibling = null, h | |
| } | |
| function i(h, p, v) { | |
| return h.index = v, e ? (v = h.alternate, v !== null ? (v = v.index, v < p ? (h.flags |= 2, p) : v) : (h.flags |= 2, p)) : (h.flags |= 1048576, p) | |
| } | |
| function s(h) { | |
| return e && h.alternate === null && (h.flags |= 2), h | |
| } | |
| function l(h, p, v, k) { | |
| return p === null || p.tag !== 6 ? (p = Vl(v, h.mode, k), p.return = h, p) : (p = o(p, v), p.return = h, p) | |
| } | |
| function a(h, p, v, k) { | |
| var C = v.type; | |
| return C === Cr ? c(h, p, v.props.children, k, v.key) : p !== null && (p.elementType === C || typeof C == "object" && C !== null && C.$$typeof === pn && pd(C) === p.type) ? (k = o(p, v.props), k.ref = wo(h, p, v), k.return = h, k) : (k = rs(v.type, v.key, v.props, null, h.mode, k), k.ref = wo(h, p, v), k.return = h, k) | |
| } | |
| function u(h, p, v, k) { | |
| return p === null || p.tag !== 4 || p.stateNode.containerInfo !== v.containerInfo || p.stateNode.implementation !== v.implementation ? (p = Hl(v, h.mode, k), p.return = h, p) : (p = o(p, v.children || []), p.return = h, p) | |
| } | |
| function c(h, p, v, k, C) { | |
| return p === null || p.tag !== 7 ? (p = or(v, h.mode, k, C), p.return = h, p) : (p = o(p, v), p.return = h, p) | |
| } | |
| function f(h, p, v) { | |
| if (typeof p == "string" && p !== "" || typeof p == "number") return p = Vl("" + p, h.mode, v), p.return = h, p; | |
| if (typeof p == "object" && p !== null) { | |
| switch (p.$$typeof) { | |
| case Ci: | |
| return v = rs(p.type, p.key, p.props, null, h.mode, v), v.ref = wo(h, null, p), v.return = h, v; | |
| case kr: | |
| return p = Hl(p, h.mode, v), p.return = h, p; | |
| case pn: | |
| var k = p._init; | |
| return f(h, k(p._payload), v) | |
| } | |
| if (No(p) || mo(p)) return p = or(p, h.mode, v, null), p.return = h, p; | |
| Mi(h, p) | |
| } | |
| return null | |
| } | |
| function m(h, p, v, k) { | |
| var C = p !== null ? p.key : null; | |
| if (typeof v == "string" && v !== "" || typeof v == "number") return C !== null ? null : l(h, p, "" + v, k); | |
| if (typeof v == "object" && v !== null) { | |
| switch (v.$$typeof) { | |
| case Ci: | |
| return v.key === C ? a(h, p, v, k) : null; | |
| case kr: | |
| return v.key === C ? u(h, p, v, k) : null; | |
| case pn: | |
| return C = v._init, m(h, p, C(v._payload), k) | |
| } | |
| if (No(v) || mo(v)) return C !== null ? null : c(h, p, v, k, null); | |
| Mi(h, v) | |
| } | |
| return null | |
| } | |
| function d(h, p, v, k, C) { | |
| if (typeof k == "string" && k !== "" || typeof k == "number") return h = h.get(v) || null, l(p, h, "" + k, C); | |
| if (typeof k == "object" && k !== null) { | |
| switch (k.$$typeof) { | |
| case Ci: | |
| return h = h.get(k.key === null ? v : k.key) || null, a(p, h, k, C); | |
| case kr: | |
| return h = h.get(k.key === null ? v : k.key) || null, u(p, h, k, C); | |
| case pn: | |
| var E = k._init; | |
| return d(h, p, v, E(k._payload), C) | |
| } | |
| if (No(k) || mo(k)) return h = h.get(v) || null, c(p, h, k, C, null); | |
| Mi(p, k) | |
| } | |
| return null | |
| } | |
| function x(h, p, v, k) { | |
| for (var C = null, E = null, b = p, R = p = 0, O = null; b !== null && R < v.length; R++) { | |
| b.index > R ? (O = b, b = null) : O = b.sibling; | |
| var A = m(h, b, v[R], k); | |
| if (A === null) { | |
| b === null && (b = O); | |
| break | |
| } | |
| e && b && A.alternate === null && t(h, b), p = i(A, p, R), E === null ? C = A : E.sibling = A, E = A, b = O | |
| } | |
| if (R === v.length) return n(h, b), le && Hn(h, R), C; | |
| if (b === null) { | |
| for (; R < v.length; R++) b = f(h, v[R], k), b !== null && (p = i(b, p, R), E === null ? C = b : E.sibling = b, E = b); | |
| return le && Hn(h, R), C | |
| } | |
| for (b = r(h, b); R < v.length; R++) O = d(b, h, R, v[R], k), O !== null && (e && O.alternate !== null && b.delete(O.key === null ? R : O.key), p = i(O, p, R), E === null ? C = O : E.sibling = O, E = O); | |
| return e && b.forEach(function(z) { | |
| return t(h, z) | |
| }), le && Hn(h, R), C | |
| } | |
| function y(h, p, v, k) { | |
| var C = mo(v); | |
| if (typeof C != "function") throw Error(j(150)); | |
| if (v = C.call(v), v == null) throw Error(j(151)); | |
| for (var E = C = null, b = p, R = p = 0, O = null, A = v.next(); b !== null && !A.done; R++, A = v.next()) { | |
| b.index > R ? (O = b, b = null) : O = b.sibling; | |
| var z = m(h, b, A.value, k); | |
| if (z === null) { | |
| b === null && (b = O); | |
| break | |
| } | |
| e && b && z.alternate === null && t(h, b), p = i(z, p, R), E === null ? C = z : E.sibling = z, E = z, b = O | |
| } | |
| if (A.done) return n(h, b), le && Hn(h, R), C; | |
| if (b === null) { | |
| for (; !A.done; R++, A = v.next()) A = f(h, A.value, k), A !== null && (p = i(A, p, R), E === null ? C = A : E.sibling = A, E = A); | |
| return le && Hn(h, R), C | |
| } | |
| for (b = r(h, b); !A.done; R++, A = v.next()) A = d(b, h, R, A.value, k), A !== null && (e && A.alternate !== null && b.delete(A.key === null ? R : A.key), p = i(A, p, R), E === null ? C = A : E.sibling = A, E = A); | |
| return e && b.forEach(function(I) { | |
| return t(h, I) | |
| }), le && Hn(h, R), C | |
| } | |
| function w(h, p, v, k) { | |
| if (typeof v == "object" && v !== null && v.type === Cr && v.key === null && (v = v.props.children), typeof v == "object" && v !== null) { | |
| switch (v.$$typeof) { | |
| case Ci: | |
| e: { | |
| for (var C = v.key, E = p; E !== null;) { | |
| if (E.key === C) { | |
| if (C = v.type, C === Cr) { | |
| if (E.tag === 7) { | |
| n(h, E.sibling), p = o(E, v.props.children), p.return = h, h = p; | |
| break e | |
| } | |
| } else if (E.elementType === C || typeof C == "object" && C !== null && C.$$typeof === pn && pd(C) === E.type) { | |
| n(h, E.sibling), p = o(E, v.props), p.ref = wo(h, E, v), p.return = h, h = p; | |
| break e | |
| } | |
| n(h, E); | |
| break | |
| } else t(h, E); | |
| E = E.sibling | |
| } | |
| v.type === Cr ? (p = or(v.props.children, h.mode, k, v.key), p.return = h, h = p) : (k = rs(v.type, v.key, v.props, null, h.mode, k), k.ref = wo(h, p, v), k.return = h, h = k) | |
| } | |
| return s(h); | |
| case kr: | |
| e: { | |
| for (E = v.key; p !== null;) { | |
| if (p.key === E) | |
| if (p.tag === 4 && p.stateNode.containerInfo === v.containerInfo && p.stateNode.implementation === v.implementation) { | |
| n(h, p.sibling), p = o(p, v.children || []), p.return = h, h = p; | |
| break e | |
| } else { | |
| n(h, p); | |
| break | |
| } | |
| else t(h, p); | |
| p = p.sibling | |
| } | |
| p = Hl(v, h.mode, k), | |
| p.return = h, | |
| h = p | |
| } | |
| return s(h); | |
| case pn: | |
| return E = v._init, w(h, p, E(v._payload), k) | |
| } | |
| if (No(v)) return x(h, p, v, k); | |
| if (mo(v)) return y(h, p, v, k); | |
| Mi(h, v) | |
| } | |
| return typeof v == "string" && v !== "" || typeof v == "number" ? (v = "" + v, p !== null && p.tag === 6 ? (n(h, p.sibling), p = o(p, v), p.return = h, h = p) : (n(h, p), p = Vl(v, h.mode, k), p.return = h, h = p), s(h)) : n(h, p) | |
| } | |
| return w | |
| } | |
| var eo = Qp(!0), | |
| Kp = Qp(!1), | |
| ws = $n(null), | |
| Ss = null, | |
| _r = null, | |
| Au = null; | |
| function Ou() { | |
| Au = _r = Ss = null | |
| } | |
| function Mu(e) { | |
| var t = ws.current; | |
| ie(ws), e._currentValue = t | |
| } | |
| function Ra(e, t, n) { | |
| for (; e !== null;) { | |
| var r = e.alternate; | |
| if ((e.childLanes & t) !== t ? (e.childLanes |= t, r !== null && (r.childLanes |= t)) : r !== null && (r.childLanes & t) !== t && (r.childLanes |= t), e === n) break; | |
| e = e.return | |
| } | |
| } | |
| function Fr(e, t) { | |
| Ss = e, Au = _r = null, e = e.dependencies, e !== null && e.firstContext !== null && (e.lanes & t && (Be = !0), e.firstContext = null) | |
| } | |
| function at(e) { | |
| var t = e._currentValue; | |
| if (Au !== e) | |
| if (e = { | |
| context: e, | |
| memoizedValue: t, | |
| next: null | |
| }, _r === null) { | |
| if (Ss === null) throw Error(j(308)); | |
| _r = e, Ss.dependencies = { | |
| lanes: 0, | |
| firstContext: e | |
| } | |
| } else _r = _r.next = e; | |
| return t | |
| } | |
| var Yn = null; | |
| function Lu(e) { | |
| Yn === null ? Yn = [e] : Yn.push(e) | |
| } | |
| function Gp(e, t, n, r) { | |
| var o = t.interleaved; | |
| return o === null ? (n.next = n, Lu(t)) : (n.next = o.next, o.next = n), t.interleaved = n, qt(e, r) | |
| } | |
| function qt(e, t) { | |
| e.lanes |= t; | |
| var n = e.alternate; | |
| for (n !== null && (n.lanes |= t), n = e, e = e.return; e !== null;) e.childLanes |= t, n = e.alternate, n !== null && (n.childLanes |= t), n = e, e = e.return; | |
| return n.tag === 3 ? n.stateNode : null | |
| } | |
| var hn = !1; | |
| function Du(e) { | |
| e.updateQueue = { | |
| baseState: e.memoizedState, | |
| firstBaseUpdate: null, | |
| lastBaseUpdate: null, | |
| shared: { | |
| pending: null, | |
| interleaved: null, | |
| lanes: 0 | |
| }, | |
| effects: null | |
| } | |
| } | |
| function Yp(e, t) { | |
| e = e.updateQueue, t.updateQueue === e && (t.updateQueue = { | |
| baseState: e.baseState, | |
| firstBaseUpdate: e.firstBaseUpdate, | |
| lastBaseUpdate: e.lastBaseUpdate, | |
| shared: e.shared, | |
| effects: e.effects | |
| }) | |
| } | |
| function Gt(e, t) { | |
| return { | |
| eventTime: e, | |
| lane: t, | |
| tag: 0, | |
| payload: null, | |
| callback: null, | |
| next: null | |
| } | |
| } | |
| function Rn(e, t, n) { | |
| var r = e.updateQueue; | |
| if (r === null) return null; | |
| if (r = r.shared, q & 2) { | |
| var o = r.pending; | |
| return o === null ? t.next = t : (t.next = o.next, o.next = t), r.pending = t, qt(e, n) | |
| } | |
| return o = r.interleaved, o === null ? (t.next = t, Lu(r)) : (t.next = o.next, o.next = t), r.interleaved = t, qt(e, n) | |
| } | |
| function qi(e, t, n) { | |
| if (t = t.updateQueue, t !== null && (t = t.shared, (n & 4194240) !== 0)) { | |
| var r = t.lanes; | |
| r &= e.pendingLanes, n |= r, t.lanes = n, Su(e, n) | |
| } | |
| } | |
| function hd(e, t) { | |
| var n = e.updateQueue, | |
| r = e.alternate; | |
| if (r !== null && (r = r.updateQueue, n === r)) { | |
| var o = null, | |
| i = null; | |
| if (n = n.firstBaseUpdate, n !== null) { | |
| do { | |
| var s = { | |
| eventTime: n.eventTime, | |
| lane: n.lane, | |
| tag: n.tag, | |
| payload: n.payload, | |
| callback: n.callback, | |
| next: null | |
| }; | |
| i === null ? o = i = s : i = i.next = s, n = n.next | |
| } while (n !== null); | |
| i === null ? o = i = t : i = i.next = t | |
| } else o = i = t; | |
| n = { | |
| baseState: r.baseState, | |
| firstBaseUpdate: o, | |
| lastBaseUpdate: i, | |
| shared: r.shared, | |
| effects: r.effects | |
| }, e.updateQueue = n; | |
| return | |
| } | |
| e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t | |
| } | |
| function ks(e, t, n, r) { | |
| var o = e.updateQueue; | |
| hn = !1; | |
| var i = o.firstBaseUpdate, | |
| s = o.lastBaseUpdate, | |
| l = o.shared.pending; | |
| if (l !== null) { | |
| o.shared.pending = null; | |
| var a = l, | |
| u = a.next; | |
| a.next = null, s === null ? i = u : s.next = u, s = a; | |
| var c = e.alternate; | |
| c !== null && (c = c.updateQueue, l = c.lastBaseUpdate, l !== s && (l === null ? c.firstBaseUpdate = u : l.next = u, c.lastBaseUpdate = a)) | |
| } | |
| if (i !== null) { | |
| var f = o.baseState; | |
| s = 0, c = u = a = null, l = i; | |
| do { | |
| var m = l.lane, | |
| d = l.eventTime; | |
| if ((r & m) === m) { | |
| c !== null && (c = c.next = { | |
| eventTime: d, | |
| lane: 0, | |
| tag: l.tag, | |
| payload: l.payload, | |
| callback: l.callback, | |
| next: null | |
| }); | |
| e: { | |
| var x = e, | |
| y = l; | |
| switch (m = t, d = n, y.tag) { | |
| case 1: | |
| if (x = y.payload, typeof x == "function") { | |
| f = x.call(d, f, m); | |
| break e | |
| } | |
| f = x; | |
| break e; | |
| case 3: | |
| x.flags = x.flags & -65537 | 128; | |
| case 0: | |
| if (x = y.payload, m = typeof x == "function" ? x.call(d, f, m) : x, m == null) break e; | |
| f = ce({}, f, m); | |
| break e; | |
| case 2: | |
| hn = !0 | |
| } | |
| } | |
| l.callback !== null && l.lane !== 0 && (e.flags |= 64, m = o.effects, m === null ? o.effects = [l] : m.push(l)) | |
| } else d = { | |
| eventTime: d, | |
| lane: m, | |
| tag: l.tag, | |
| payload: l.payload, | |
| callback: l.callback, | |
| next: null | |
| }, c === null ? (u = c = d, a = f) : c = c.next = d, s |= m; | |
| if (l = l.next, l === null) { | |
| if (l = o.shared.pending, l === null) break; | |
| m = l, l = m.next, m.next = null, o.lastBaseUpdate = m, o.shared.pending = null | |
| } | |
| } while (!0); | |
| if (c === null && (a = f), o.baseState = a, o.firstBaseUpdate = u, o.lastBaseUpdate = c, t = o.shared.interleaved, t !== null) { | |
| o = t; | |
| do s |= o.lane, o = o.next; while (o !== t) | |
| } else i === null && (o.shared.lanes = 0); | |
| ar |= s, e.lanes = s, e.memoizedState = f | |
| } | |
| } | |
| function md(e, t, n) { | |
| if (e = t.effects, t.effects = null, e !== null) | |
| for (t = 0; t < e.length; t++) { | |
| var r = e[t], | |
| o = r.callback; | |
| if (o !== null) { | |
| if (r.callback = null, r = n, typeof o != "function") throw Error(j(191, o)); | |
| o.call(r) | |
| } | |
| } | |
| } | |
| var hi = {}, | |
| It = $n(hi), | |
| Zo = $n(hi), | |
| Jo = $n(hi); | |
| function Xn(e) { | |
| if (e === hi) throw Error(j(174)); | |
| return e | |
| } | |
| function Iu(e, t) { | |
| switch (ne(Jo, t), ne(Zo, e), ne(It, hi), e = t.nodeType, e) { | |
| case 9: | |
| case 11: | |
| t = (t = t.documentElement) ? t.namespaceURI : ua(null, ""); | |
| break; | |
| default: | |
| e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = ua(t, e) | |
| } | |
| ie(It), ne(It, t) | |
| } | |
| function to() { | |
| ie(It), ie(Zo), ie(Jo) | |
| } | |
| function Xp(e) { | |
| Xn(Jo.current); | |
| var t = Xn(It.current), | |
| n = ua(t, e.type); | |
| t !== n && (ne(Zo, e), ne(It, n)) | |
| } | |
| function Fu(e) { | |
| Zo.current === e && (ie(It), ie(Zo)) | |
| } | |
| var ae = $n(0); | |
| function Cs(e) { | |
| for (var t = e; t !== null;) { | |
| if (t.tag === 13) { | |
| var n = t.memoizedState; | |
| if (n !== null && (n = n.dehydrated, n === null || n.data === "$?" || n.data === "$!")) return t | |
| } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) { | |
| if (t.flags & 128) return t | |
| } else if (t.child !== null) { | |
| t.child.return = t, t = t.child; | |
| continue | |
| } | |
| if (t === e) break; | |
| for (; t.sibling === null;) { | |
| if (t.return === null || t.return === e) return null; | |
| t = t.return | |
| } | |
| t.sibling.return = t.return, t = t.sibling | |
| } | |
| return null | |
| } | |
| var Fl = []; | |
| function zu() { | |
| for (var e = 0; e < Fl.length; e++) Fl[e]._workInProgressVersionPrimary = null; | |
| Fl.length = 0 | |
| } | |
| var Zi = tn.ReactCurrentDispatcher, | |
| zl = tn.ReactCurrentBatchConfig, | |
| lr = 0, | |
| ue = null, | |
| ge = null, | |
| we = null, | |
| Es = !1, | |
| Do = !1, | |
| ei = 0, | |
| Lv = 0; | |
| function Te() { | |
| throw Error(j(321)) | |
| } | |
| function $u(e, t) { | |
| if (t === null) return !1; | |
| for (var n = 0; n < t.length && n < e.length; n++) | |
| if (!Et(e[n], t[n])) return !1; | |
| return !0 | |
| } | |
| function Uu(e, t, n, r, o, i) { | |
| if (lr = i, ue = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, Zi.current = e === null || e.memoizedState === null ? zv : $v, e = n(r, o), Do) { | |
| i = 0; | |
| do { | |
| if (Do = !1, ei = 0, 25 <= i) throw Error(j(301)); | |
| i += 1, we = ge = null, t.updateQueue = null, Zi.current = Uv, e = n(r, o) | |
| } while (Do) | |
| } | |
| if (Zi.current = bs, t = ge !== null && ge.next !== null, lr = 0, we = ge = ue = null, Es = !1, t) throw Error(j(300)); | |
| return e | |
| } | |
| function Bu() { | |
| var e = ei !== 0; | |
| return ei = 0, e | |
| } | |
| function Rt() { | |
| var e = { | |
| memoizedState: null, | |
| baseState: null, | |
| baseQueue: null, | |
| queue: null, | |
| next: null | |
| }; | |
| return we === null ? ue.memoizedState = we = e : we = we.next = e, we | |
| } | |
| function ut() { | |
| if (ge === null) { | |
| var e = ue.alternate; | |
| e = e !== null ? e.memoizedState : null | |
| } else e = ge.next; | |
| var t = we === null ? ue.memoizedState : we.next; | |
| if (t !== null) we = t, ge = e; | |
| else { | |
| if (e === null) throw Error(j(310)); | |
| ge = e, e = { | |
| memoizedState: ge.memoizedState, | |
| baseState: ge.baseState, | |
| baseQueue: ge.baseQueue, | |
| queue: ge.queue, | |
| next: null | |
| }, we === null ? ue.memoizedState = we = e : we = we.next = e | |
| } | |
| return we | |
| } | |
| function ti(e, t) { | |
| return typeof t == "function" ? t(e) : t | |
| } | |
| function $l(e) { | |
| var t = ut(), | |
| n = t.queue; | |
| if (n === null) throw Error(j(311)); | |
| n.lastRenderedReducer = e; | |
| var r = ge, | |
| o = r.baseQueue, | |
| i = n.pending; | |
| if (i !== null) { | |
| if (o !== null) { | |
| var s = o.next; | |
| o.next = i.next, i.next = s | |
| } | |
| r.baseQueue = o = i, n.pending = null | |
| } | |
| if (o !== null) { | |
| i = o.next, r = r.baseState; | |
| var l = s = null, | |
| a = null, | |
| u = i; | |
| do { | |
| var c = u.lane; | |
| if ((lr & c) === c) a !== null && (a = a.next = { | |
| lane: 0, | |
| action: u.action, | |
| hasEagerState: u.hasEagerState, | |
| eagerState: u.eagerState, | |
| next: null | |
| }), r = u.hasEagerState ? u.eagerState : e(r, u.action); | |
| else { | |
| var f = { | |
| lane: c, | |
| action: u.action, | |
| hasEagerState: u.hasEagerState, | |
| eagerState: u.eagerState, | |
| next: null | |
| }; | |
| a === null ? (l = a = f, s = r) : a = a.next = f, ue.lanes |= c, ar |= c | |
| } | |
| u = u.next | |
| } while (u !== null && u !== i); | |
| a === null ? s = r : a.next = l, Et(r, t.memoizedState) || (Be = !0), t.memoizedState = r, t.baseState = s, t.baseQueue = a, n.lastRenderedState = r | |
| } | |
| if (e = n.interleaved, e !== null) { | |
| o = e; | |
| do i = o.lane, ue.lanes |= i, ar |= i, o = o.next; while (o !== e) | |
| } else o === null && (n.lanes = 0); | |
| return [t.memoizedState, n.dispatch] | |
| } | |
| function Ul(e) { | |
| var t = ut(), | |
| n = t.queue; | |
| if (n === null) throw Error(j(311)); | |
| n.lastRenderedReducer = e; | |
| var r = n.dispatch, | |
| o = n.pending, | |
| i = t.memoizedState; | |
| if (o !== null) { | |
| n.pending = null; | |
| var s = o = o.next; | |
| do i = e(i, s.action), s = s.next; while (s !== o); | |
| Et(i, t.memoizedState) || (Be = !0), t.memoizedState = i, t.baseQueue === null && (t.baseState = i), n.lastRenderedState = i | |
| } | |
| return [i, r] | |
| } | |
| function qp() {} | |
| function Zp(e, t) { | |
| var n = ue, | |
| r = ut(), | |
| o = t(), | |
| i = !Et(r.memoizedState, o); | |
| if (i && (r.memoizedState = o, Be = !0), r = r.queue, Wu(th.bind(null, n, r, e), [e]), r.getSnapshot !== t || i || we !== null && we.memoizedState.tag & 1) { | |
| if (n.flags |= 2048, ni(9, eh.bind(null, n, r, o, t), void 0, null), Se === null) throw Error(j(349)); | |
| lr & 30 || Jp(n, t, o) | |
| } | |
| return o | |
| } | |
| function Jp(e, t, n) { | |
| e.flags |= 16384, e = { | |
| getSnapshot: t, | |
| value: n | |
| }, t = ue.updateQueue, t === null ? (t = { | |
| lastEffect: null, | |
| stores: null | |
| }, ue.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e)) | |
| } | |
| function eh(e, t, n, r) { | |
| t.value = n, t.getSnapshot = r, nh(t) && rh(e) | |
| } | |
| function th(e, t, n) { | |
| return n(function() { | |
| nh(t) && rh(e) | |
| }) | |
| } | |
| function nh(e) { | |
| var t = e.getSnapshot; | |
| e = e.value; | |
| try { | |
| var n = t(); | |
| return !Et(e, n) | |
| } catch { | |
| return !0 | |
| } | |
| } | |
| function rh(e) { | |
| var t = qt(e, 1); | |
| t !== null && Ct(t, e, 1, -1) | |
| } | |
| function gd(e) { | |
| var t = Rt(); | |
| return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = { | |
| pending: null, | |
| interleaved: null, | |
| lanes: 0, | |
| dispatch: null, | |
| lastRenderedReducer: ti, | |
| lastRenderedState: e | |
| }, t.queue = e, e = e.dispatch = Fv.bind(null, ue, e), [t.memoizedState, e] | |
| } | |
| function ni(e, t, n, r) { | |
| return e = { | |
| tag: e, | |
| create: t, | |
| destroy: n, | |
| deps: r, | |
| next: null | |
| }, t = ue.updateQueue, t === null ? (t = { | |
| lastEffect: null, | |
| stores: null | |
| }, ue.updateQueue = t, t.lastEffect = e.next = e) : (n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e)), e | |
| } | |
| function oh() { | |
| return ut().memoizedState | |
| } | |
| function Ji(e, t, n, r) { | |
| var o = Rt(); | |
| ue.flags |= e, o.memoizedState = ni(1 | t, n, void 0, r === void 0 ? null : r) | |
| } | |
| function Qs(e, t, n, r) { | |
| var o = ut(); | |
| r = r === void 0 ? null : r; | |
| var i = void 0; | |
| if (ge !== null) { | |
| var s = ge.memoizedState; | |
| if (i = s.destroy, r !== null && $u(r, s.deps)) { | |
| o.memoizedState = ni(t, n, i, r); | |
| return | |
| } | |
| } | |
| ue.flags |= e, o.memoizedState = ni(1 | t, n, i, r) | |
| } | |
| function yd(e, t) { | |
| return Ji(8390656, 8, e, t) | |
| } | |
| function Wu(e, t) { | |
| return Qs(2048, 8, e, t) | |
| } | |
| function ih(e, t) { | |
| return Qs(4, 2, e, t) | |
| } | |
| function sh(e, t) { | |
| return Qs(4, 4, e, t) | |
| } | |
| function lh(e, t) { | |
| if (typeof t == "function") return e = e(), t(e), | |
| function() { | |
| t(null) | |
| }; | |
| if (t != null) return e = e(), t.current = e, | |
| function() { | |
| t.current = null | |
| } | |
| } | |
| function ah(e, t, n) { | |
| return n = n != null ? n.concat([e]) : null, Qs(4, 4, lh.bind(null, t, e), n) | |
| } | |
| function Vu() {} | |
| function uh(e, t) { | |
| var n = ut(); | |
| t = t === void 0 ? null : t; | |
| var r = n.memoizedState; | |
| return r !== null && t !== null && $u(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e) | |
| } | |
| function ch(e, t) { | |
| var n = ut(); | |
| t = t === void 0 ? null : t; | |
| var r = n.memoizedState; | |
| return r !== null && t !== null && $u(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e) | |
| } | |
| function dh(e, t, n) { | |
| return lr & 21 ? (Et(n, t) || (n = gp(), ue.lanes |= n, ar |= n, e.baseState = !0), t) : (e.baseState && (e.baseState = !1, Be = !0), e.memoizedState = n) | |
| } | |
| function Dv(e, t) { | |
| var n = ee; | |
| ee = n !== 0 && 4 > n ? n : 4, e(!0); | |
| var r = zl.transition; | |
| zl.transition = {}; | |
| try { | |
| e(!1), t() | |
| } finally { | |
| ee = n, zl.transition = r | |
| } | |
| } | |
| function fh() { | |
| return ut().memoizedState | |
| } | |
| function Iv(e, t, n) { | |
| var r = _n(e); | |
| if (n = { | |
| lane: r, | |
| action: n, | |
| hasEagerState: !1, | |
| eagerState: null, | |
| next: null | |
| }, ph(e)) hh(t, n); | |
| else if (n = Gp(e, t, n, r), n !== null) { | |
| var o = De(); | |
| Ct(n, e, r, o), mh(n, t, r) | |
| } | |
| } | |
| function Fv(e, t, n) { | |
| var r = _n(e), | |
| o = { | |
| lane: r, | |
| action: n, | |
| hasEagerState: !1, | |
| eagerState: null, | |
| next: null | |
| }; | |
| if (ph(e)) hh(t, o); | |
| else { | |
| var i = e.alternate; | |
| if (e.lanes === 0 && (i === null || i.lanes === 0) && (i = t.lastRenderedReducer, i !== null)) try { | |
| var s = t.lastRenderedState, | |
| l = i(s, n); | |
| if (o.hasEagerState = !0, o.eagerState = l, Et(l, s)) { | |
| var a = t.interleaved; | |
| a === null ? (o.next = o, Lu(t)) : (o.next = a.next, a.next = o), t.interleaved = o; | |
| return | |
| } | |
| } catch {} finally {} | |
| n = Gp(e, t, o, r), n !== null && (o = De(), Ct(n, e, r, o), mh(n, t, r)) | |
| } | |
| } | |
| function ph(e) { | |
| var t = e.alternate; | |
| return e === ue || t !== null && t === ue | |
| } | |
| function hh(e, t) { | |
| Do = Es = !0; | |
| var n = e.pending; | |
| n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t | |
| } | |
| function mh(e, t, n) { | |
| if (n & 4194240) { | |
| var r = t.lanes; | |
| r &= e.pendingLanes, n |= r, t.lanes = n, Su(e, n) | |
| } | |
| } | |
| var bs = { | |
| readContext: at, | |
| useCallback: Te, | |
| useContext: Te, | |
| useEffect: Te, | |
| useImperativeHandle: Te, | |
| useInsertionEffect: Te, | |
| useLayoutEffect: Te, | |
| useMemo: Te, | |
| useReducer: Te, | |
| useRef: Te, | |
| useState: Te, | |
| useDebugValue: Te, | |
| useDeferredValue: Te, | |
| useTransition: Te, | |
| useMutableSource: Te, | |
| useSyncExternalStore: Te, | |
| useId: Te, | |
| unstable_isNewReconciler: !1 | |
| }, | |
| zv = { | |
| readContext: at, | |
| useCallback: function(e, t) { | |
| return Rt().memoizedState = [e, t === void 0 ? null : t], e | |
| }, | |
| useContext: at, | |
| useEffect: yd, | |
| useImperativeHandle: function(e, t, n) { | |
| return n = n != null ? n.concat([e]) : null, Ji(4194308, 4, lh.bind(null, t, e), n) | |
| }, | |
| useLayoutEffect: function(e, t) { | |
| return Ji(4194308, 4, e, t) | |
| }, | |
| useInsertionEffect: function(e, t) { | |
| return Ji(4, 2, e, t) | |
| }, | |
| useMemo: function(e, t) { | |
| var n = Rt(); | |
| return t = t === void 0 ? null : t, e = e(), n.memoizedState = [e, t], e | |
| }, | |
| useReducer: function(e, t, n) { | |
| var r = Rt(); | |
| return t = n !== void 0 ? n(t) : t, r.memoizedState = r.baseState = t, e = { | |
| pending: null, | |
| interleaved: null, | |
| lanes: 0, | |
| dispatch: null, | |
| lastRenderedReducer: e, | |
| lastRenderedState: t | |
| }, r.queue = e, e = e.dispatch = Iv.bind(null, ue, e), [r.memoizedState, e] | |
| }, | |
| useRef: function(e) { | |
| var t = Rt(); | |
| return e = { | |
| current: e | |
| }, t.memoizedState = e | |
| }, | |
| useState: gd, | |
| useDebugValue: Vu, | |
| useDeferredValue: function(e) { | |
| return Rt().memoizedState = e | |
| }, | |
| useTransition: function() { | |
| var e = gd(!1), | |
| t = e[0]; | |
| return e = Dv.bind(null, e[1]), Rt().memoizedState = e, [t, e] | |
| }, | |
| useMutableSource: function() {}, | |
| useSyncExternalStore: function(e, t, n) { | |
| var r = ue, | |
| o = Rt(); | |
| if (le) { | |
| if (n === void 0) throw Error(j(407)); | |
| n = n() | |
| } else { | |
| if (n = t(), Se === null) throw Error(j(349)); | |
| lr & 30 || Jp(r, t, n) | |
| } | |
| o.memoizedState = n; | |
| var i = { | |
| value: n, | |
| getSnapshot: t | |
| }; | |
| return o.queue = i, yd(th.bind(null, r, i, e), [e]), r.flags |= 2048, ni(9, eh.bind(null, r, i, n, t), void 0, null), n | |
| }, | |
| useId: function() { | |
| var e = Rt(), | |
| t = Se.identifierPrefix; | |
| if (le) { | |
| var n = Kt, | |
| r = Qt; | |
| n = (r & ~(1 << 32 - kt(r) - 1)).toString(32) + n, t = ":" + t + "R" + n, n = ei++, 0 < n && (t += "H" + n.toString(32)), t += ":" | |
| } else n = Lv++, t = ":" + t + "r" + n.toString(32) + ":"; | |
| return e.memoizedState = t | |
| }, | |
| unstable_isNewReconciler: !1 | |
| }, | |
| $v = { | |
| readContext: at, | |
| useCallback: uh, | |
| useContext: at, | |
| useEffect: Wu, | |
| useImperativeHandle: ah, | |
| useInsertionEffect: ih, | |
| useLayoutEffect: sh, | |
| useMemo: ch, | |
| useReducer: $l, | |
| useRef: oh, | |
| useState: function() { | |
| return $l(ti) | |
| }, | |
| useDebugValue: Vu, | |
| useDeferredValue: function(e) { | |
| var t = ut(); | |
| return dh(t, ge.memoizedState, e) | |
| }, | |
| useTransition: function() { | |
| var e = $l(ti)[0], | |
| t = ut().memoizedState; | |
| return [e, t] | |
| }, | |
| useMutableSource: qp, | |
| useSyncExternalStore: Zp, | |
| useId: fh, | |
| unstable_isNewReconciler: !1 | |
| }, | |
| Uv = { | |
| readContext: at, | |
| useCallback: uh, | |
| useContext: at, | |
| useEffect: Wu, | |
| useImperativeHandle: ah, | |
| useInsertionEffect: ih, | |
| useLayoutEffect: sh, | |
| useMemo: ch, | |
| useReducer: Ul, | |
| useRef: oh, | |
| useState: function() { | |
| return Ul(ti) | |
| }, | |
| useDebugValue: Vu, | |
| useDeferredValue: function(e) { | |
| var t = ut(); | |
| return ge === null ? t.memoizedState = e : dh(t, ge.memoizedState, e) | |
| }, | |
| useTransition: function() { | |
| var e = Ul(ti)[0], | |
| t = ut().memoizedState; | |
| return [e, t] | |
| }, | |
| useMutableSource: qp, | |
| useSyncExternalStore: Zp, | |
| useId: fh, | |
| unstable_isNewReconciler: !1 | |
| }; | |
| function mt(e, t) { | |
| if (e && e.defaultProps) { | |
| t = ce({}, t), e = e.defaultProps; | |
| for (var n in e) t[n] === void 0 && (t[n] = e[n]); | |
| return t | |
| } | |
| return t | |
| } | |
| function ja(e, t, n, r) { | |
| t = e.memoizedState, n = n(r, t), n = n == null ? t : ce({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n) | |
| } | |
| var Ks = { | |
| isMounted: function(e) { | |
| return (e = e._reactInternals) ? fr(e) === e : !1 | |
| }, | |
| enqueueSetState: function(e, t, n) { | |
| e = e._reactInternals; | |
| var r = De(), | |
| o = _n(e), | |
| i = Gt(r, o); | |
| i.payload = t, n != null && (i.callback = n), t = Rn(e, i, o), t !== null && (Ct(t, e, o, r), qi(t, e, o)) | |
| }, | |
| enqueueReplaceState: function(e, t, n) { | |
| e = e._reactInternals; | |
| var r = De(), | |
| o = _n(e), | |
| i = Gt(r, o); | |
| i.tag = 1, i.payload = t, n != null && (i.callback = n), t = Rn(e, i, o), t !== null && (Ct(t, e, o, r), qi(t, e, o)) | |
| }, | |
| enqueueForceUpdate: function(e, t) { | |
| e = e._reactInternals; | |
| var n = De(), | |
| r = _n(e), | |
| o = Gt(n, r); | |
| o.tag = 2, t != null && (o.callback = t), t = Rn(e, o, r), t !== null && (Ct(t, e, r, n), qi(t, e, r)) | |
| } | |
| }; | |
| function vd(e, t, n, r, o, i, s) { | |
| return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, i, s) : t.prototype && t.prototype.isPureReactComponent ? !Go(n, r) || !Go(o, i) : !0 | |
| } | |
| function gh(e, t, n) { | |
| var r = !1, | |
| o = Mn, | |
| i = t.contextType; | |
| return typeof i == "object" && i !== null ? i = at(i) : (o = Ve(t) ? ir : Ae.current, r = t.contextTypes, i = (r = r != null) ? Zr(e, o) : Mn), t = new t(n, i), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = Ks, e.stateNode = t, t._reactInternals = e, r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = o, e.__reactInternalMemoizedMaskedChildContext = i), t | |
| } | |
| function xd(e, t, n, r) { | |
| e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Ks.enqueueReplaceState(t, t.state, null) | |
| } | |
| function _a(e, t, n, r) { | |
| var o = e.stateNode; | |
| o.props = n, o.state = e.memoizedState, o.refs = {}, Du(e); | |
| var i = t.contextType; | |
| typeof i == "object" && i !== null ? o.context = at(i) : (i = Ve(t) ? ir : Ae.current, o.context = Zr(e, i)), o.state = e.memoizedState, i = t.getDerivedStateFromProps, typeof i == "function" && (ja(e, t, i, n), o.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof o.getSnapshotBeforeUpdate == "function" || typeof o.UNSAFE_componentWillMount != "function" && typeof o.componentWillMount != "function" || (t = o.state, typeof o.componentWillMount == "function" && o.componentWillMount(), typeof o.UNSAFE_componentWillMount == "function" && o.UNSAFE_componentWillMount(), t !== o.state && Ks.enqueueReplaceState(o, o.state, null), ks(e, n, o, r), o.state = e.memoizedState), typeof o.componentDidMount == "function" && (e.flags |= 4194308) | |
| } | |
| function no(e, t) { | |
| try { | |
| var n = "", | |
| r = t; | |
| do n += my(r), r = r.return; while (r); | |
| var o = n | |
| } catch (i) { | |
| o = ` | |
| Error generating stack: ` + i.message + ` | |
| ` + i.stack | |
| } | |
| return { | |
| value: e, | |
| source: t, | |
| stack: o, | |
| digest: null | |
| } | |
| } | |
| function Bl(e, t, n) { | |
| return { | |
| value: e, | |
| source: null, | |
| stack: n ?? null, | |
| digest: t ?? null | |
| } | |
| } | |
| function Aa(e, t) { | |
| try { | |
| console.error(t.value) | |
| } catch (n) { | |
| setTimeout(function() { | |
| throw n | |
| }) | |
| } | |
| } | |
| var Bv = typeof WeakMap == "function" ? WeakMap : Map; | |
| function yh(e, t, n) { | |
| n = Gt(-1, n), n.tag = 3, n.payload = { | |
| element: null | |
| }; | |
| var r = t.value; | |
| return n.callback = function() { | |
| Ps || (Ps = !0, Ba = r), Aa(e, t) | |
| }, n | |
| } | |
| function vh(e, t, n) { | |
| n = Gt(-1, n), n.tag = 3; | |
| var r = e.type.getDerivedStateFromError; | |
| if (typeof r == "function") { | |
| var o = t.value; | |
| n.payload = function() { | |
| return r(o) | |
| }, n.callback = function() { | |
| Aa(e, t) | |
| } | |
| } | |
| var i = e.stateNode; | |
| return i !== null && typeof i.componentDidCatch == "function" && (n.callback = function() { | |
| Aa(e, t), typeof r != "function" && (jn === null ? jn = new Set([this]) : jn.add(this)); | |
| var s = t.stack; | |
| this.componentDidCatch(t.value, { | |
| componentStack: s !== null ? s : "" | |
| }) | |
| }), n | |
| } | |
| function wd(e, t, n) { | |
| var r = e.pingCache; | |
| if (r === null) { | |
| r = e.pingCache = new Bv; | |
| var o = new Set; | |
| r.set(t, o) | |
| } else o = r.get(t), o === void 0 && (o = new Set, r.set(t, o)); | |
| o.has(n) || (o.add(n), e = n0.bind(null, e, t, n), t.then(e, e)) | |
| } | |
| function Sd(e) { | |
| do { | |
| var t; | |
| if ((t = e.tag === 13) && (t = e.memoizedState, t = t !== null ? t.dehydrated !== null : !0), t) return e; | |
| e = e.return | |
| } while (e !== null); | |
| return null | |
| } | |
| function kd(e, t, n, r, o) { | |
| return e.mode & 1 ? (e.flags |= 65536, e.lanes = o, e) : (e === t ? e.flags |= 65536 : (e.flags |= 128, n.flags |= 131072, n.flags &= -52805, n.tag === 1 && (n.alternate === null ? n.tag = 17 : (t = Gt(-1, 1), t.tag = 2, Rn(n, t, 1))), n.lanes |= 1), e) | |
| } | |
| var Wv = tn.ReactCurrentOwner, | |
| Be = !1; | |
| function Me(e, t, n, r) { | |
| t.child = e === null ? Kp(t, null, n, r) : eo(t, e.child, n, r) | |
| } | |
| function Cd(e, t, n, r, o) { | |
| n = n.render; | |
| var i = t.ref; | |
| return Fr(t, o), r = Uu(e, t, n, r, i, o), n = Bu(), e !== null && !Be ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, Zt(e, t, o)) : (le && n && Ru(t), t.flags |= 1, Me(e, t, r, o), t.child) | |
| } | |
| function Ed(e, t, n, r, o) { | |
| if (e === null) { | |
| var i = n.type; | |
| return typeof i == "function" && !Zu(i) && i.defaultProps === void 0 && n.compare === null && n.defaultProps === void 0 ? (t.tag = 15, t.type = i, xh(e, t, i, r, o)) : (e = rs(n.type, null, r, t, t.mode, o), e.ref = t.ref, e.return = t, t.child = e) | |
| } | |
| if (i = e.child, !(e.lanes & o)) { | |
| var s = i.memoizedProps; | |
| if (n = n.compare, n = n !== null ? n : Go, n(s, r) && e.ref === t.ref) return Zt(e, t, o) | |
| } | |
| return t.flags |= 1, e = An(i, r), e.ref = t.ref, e.return = t, t.child = e | |
| } | |
| function xh(e, t, n, r, o) { | |
| if (e !== null) { | |
| var i = e.memoizedProps; | |
| if (Go(i, r) && e.ref === t.ref) | |
| if (Be = !1, t.pendingProps = r = i, (e.lanes & o) !== 0) e.flags & 131072 && (Be = !0); | |
| else return t.lanes = e.lanes, Zt(e, t, o) | |
| } | |
| return Oa(e, t, n, r, o) | |
| } | |
| function wh(e, t, n) { | |
| var r = t.pendingProps, | |
| o = r.children, | |
| i = e !== null ? e.memoizedState : null; | |
| if (r.mode === "hidden") | |
| if (!(t.mode & 1)) t.memoizedState = { | |
| baseLanes: 0, | |
| cachePool: null, | |
| transitions: null | |
| }, ne(Or, Ke), Ke |= n; | |
| else { | |
| if (!(n & 1073741824)) return e = i !== null ? i.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { | |
| baseLanes: e, | |
| cachePool: null, | |
| transitions: null | |
| }, t.updateQueue = null, ne(Or, Ke), Ke |= e, null; | |
| t.memoizedState = { | |
| baseLanes: 0, | |
| cachePool: null, | |
| transitions: null | |
| }, r = i !== null ? i.baseLanes : n, ne(Or, Ke), Ke |= r | |
| } | |
| else i !== null ? (r = i.baseLanes | n, t.memoizedState = null) : r = n, ne(Or, Ke), Ke |= r; | |
| return Me(e, t, o, n), t.child | |
| } | |
| function Sh(e, t) { | |
| var n = t.ref; | |
| (e === null && n !== null || e !== null && e.ref !== n) && (t.flags |= 512, t.flags |= 2097152) | |
| } | |
| function Oa(e, t, n, r, o) { | |
| var i = Ve(n) ? ir : Ae.current; | |
| return i = Zr(t, i), Fr(t, o), n = Uu(e, t, n, r, i, o), r = Bu(), e !== null && !Be ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, Zt(e, t, o)) : (le && r && Ru(t), t.flags |= 1, Me(e, t, n, o), t.child) | |
| } | |
| function bd(e, t, n, r, o) { | |
| if (Ve(n)) { | |
| var i = !0; | |
| ys(t) | |
| } else i = !1; | |
| if (Fr(t, o), t.stateNode === null) es(e, t), gh(t, n, r), _a(t, n, r, o), r = !0; | |
| else if (e === null) { | |
| var s = t.stateNode, | |
| l = t.memoizedProps; | |
| s.props = l; | |
| var a = s.context, | |
| u = n.contextType; | |
| typeof u == "object" && u !== null ? u = at(u) : (u = Ve(n) ? ir : Ae.current, u = Zr(t, u)); | |
| var c = n.getDerivedStateFromProps, | |
| f = typeof c == "function" || typeof s.getSnapshotBeforeUpdate == "function"; | |
| f || typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function" || (l !== r || a !== u) && xd(t, s, r, u), hn = !1; | |
| var m = t.memoizedState; | |
| s.state = m, ks(t, r, s, o), a = t.memoizedState, l !== r || m !== a || We.current || hn ? (typeof c == "function" && (ja(t, n, c, r), a = t.memoizedState), (l = hn || vd(t, n, l, r, m, a, u)) ? (f || typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function" || (typeof s.componentWillMount == "function" && s.componentWillMount(), typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount()), typeof s.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = a), s.props = r, s.state = a, s.context = u, r = l) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), r = !1) | |
| } else { | |
| s = t.stateNode, Yp(e, t), l = t.memoizedProps, u = t.type === t.elementType ? l : mt(t.type, l), s.props = u, f = t.pendingProps, m = s.context, a = n.contextType, typeof a == "object" && a !== null ? a = at(a) : (a = Ve(n) ? ir : Ae.current, a = Zr(t, a)); | |
| var d = n.getDerivedStateFromProps; | |
| (c = typeof d == "function" || typeof s.getSnapshotBeforeUpdate == "function") || typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function" || (l !== f || m !== a) && xd(t, s, r, a), hn = !1, m = t.memoizedState, s.state = m, ks(t, r, s, o); | |
| var x = t.memoizedState; | |
| l !== f || m !== x || We.current || hn ? (typeof d == "function" && (ja(t, n, d, r), x = t.memoizedState), (u = hn || vd(t, n, u, r, m, x, a) || !1) ? (c || typeof s.UNSAFE_componentWillUpdate != "function" && typeof s.componentWillUpdate != "function" || (typeof s.componentWillUpdate == "function" && s.componentWillUpdate(r, x, a), typeof s.UNSAFE_componentWillUpdate == "function" && s.UNSAFE_componentWillUpdate(r, x, a)), typeof s.componentDidUpdate == "function" && (t.flags |= 4), typeof s.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof s.componentDidUpdate != "function" || l === e.memoizedProps && m === e.memoizedState || (t.flags |= 4), typeof s.getSnapshotBeforeUpdate != "function" || l === e.memoizedProps && m === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = x), s.props = r, s.state = x, s.context = a, r = u) : (typeof s.componentDidUpdate != "function" || l === e.memoizedProps && m === e.memoizedState || (t.flags |= 4), typeof s.getSnapshotBeforeUpdate != "function" || l === e.memoizedProps && m === e.memoizedState || (t.flags |= 1024), r = !1) | |
| } | |
| return Ma(e, t, n, r, i, o) | |
| } | |
| function Ma(e, t, n, r, o, i) { | |
| Sh(e, t); | |
| var s = (t.flags & 128) !== 0; | |
| if (!r && !s) return o && cd(t, n, !1), Zt(e, t, i); | |
| r = t.stateNode, Wv.current = t; | |
| var l = s && typeof n.getDerivedStateFromError != "function" ? null : r.render(); | |
| return t.flags |= 1, e !== null && s ? (t.child = eo(t, e.child, null, i), t.child = eo(t, null, l, i)) : Me(e, t, l, i), t.memoizedState = r.state, o && cd(t, n, !0), t.child | |
| } | |
| function kh(e) { | |
| var t = e.stateNode; | |
| t.pendingContext ? ud(e, t.pendingContext, t.pendingContext !== t.context) : t.context && ud(e, t.context, !1), Iu(e, t.containerInfo) | |
| } | |
| function Nd(e, t, n, r, o) { | |
| return Jr(), _u(o), t.flags |= 256, Me(e, t, n, r), t.child | |
| } | |
| var La = { | |
| dehydrated: null, | |
| treeContext: null, | |
| retryLane: 0 | |
| }; | |
| function Da(e) { | |
| return { | |
| baseLanes: e, | |
| cachePool: null, | |
| transitions: null | |
| } | |
| } | |
| function Ch(e, t, n) { | |
| var r = t.pendingProps, | |
| o = ae.current, | |
| i = !1, | |
| s = (t.flags & 128) !== 0, | |
| l; | |
| if ((l = s) || (l = e !== null && e.memoizedState === null ? !1 : (o & 2) !== 0), l ? (i = !0, t.flags &= -129) : (e === null || e.memoizedState !== null) && (o |= 1), ne(ae, o & 1), e === null) return Ta(t), e = t.memoizedState, e !== null && (e = e.dehydrated, e !== null) ? (t.mode & 1 ? e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824 : t.lanes = 1, null) : (s = r.children, e = r.fallback, i ? (r = t.mode, i = t.child, s = { | |
| mode: "hidden", | |
| children: s | |
| }, !(r & 1) && i !== null ? (i.childLanes = 0, i.pendingProps = s) : i = Xs(s, r, 0, null), e = or(e, r, n, null), i.return = t, e.return = t, i.sibling = e, t.child = i, t.child.memoizedState = Da(n), t.memoizedState = La, e) : Hu(t, s)); | |
| if (o = e.memoizedState, o !== null && (l = o.dehydrated, l !== null)) return Vv(e, t, s, r, l, o, n); | |
| if (i) { | |
| i = r.fallback, s = t.mode, o = e.child, l = o.sibling; | |
| var a = { | |
| mode: "hidden", | |
| children: r.children | |
| }; | |
| return !(s & 1) && t.child !== o ? (r = t.child, r.childLanes = 0, r.pendingProps = a, t.deletions = null) : (r = An(o, a), r.subtreeFlags = o.subtreeFlags & 14680064), l !== null ? i = An(l, i) : (i = or(i, s, n, null), i.flags |= 2), i.return = t, r.return = t, r.sibling = i, t.child = r, r = i, i = t.child, s = e.child.memoizedState, s = s === null ? Da(n) : { | |
| baseLanes: s.baseLanes | n, | |
| cachePool: null, | |
| transitions: s.transitions | |
| }, i.memoizedState = s, i.childLanes = e.childLanes & ~n, t.memoizedState = La, r | |
| } | |
| return i = e.child, e = i.sibling, r = An(i, { | |
| mode: "visible", | |
| children: r.children | |
| }), !(t.mode & 1) && (r.lanes = n), r.return = t, r.sibling = null, e !== null && (n = t.deletions, n === null ? (t.deletions = [e], t.flags |= 16) : n.push(e)), t.child = r, t.memoizedState = null, r | |
| } | |
| function Hu(e, t) { | |
| return t = Xs({ | |
| mode: "visible", | |
| children: t | |
| }, e.mode, 0, null), t.return = e, e.child = t | |
| } | |
| function Li(e, t, n, r) { | |
| return r !== null && _u(r), eo(t, e.child, null, n), e = Hu(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e | |
| } | |
| function Vv(e, t, n, r, o, i, s) { | |
| if (n) return t.flags & 256 ? (t.flags &= -257, r = Bl(Error(j(422))), Li(e, t, s, r)) : t.memoizedState !== null ? (t.child = e.child, t.flags |= 128, null) : (i = r.fallback, o = t.mode, r = Xs({ | |
| mode: "visible", | |
| children: r.children | |
| }, o, 0, null), i = or(i, o, s, null), i.flags |= 2, r.return = t, i.return = t, r.sibling = i, t.child = r, t.mode & 1 && eo(t, e.child, null, s), t.child.memoizedState = Da(s), t.memoizedState = La, i); | |
| if (!(t.mode & 1)) return Li(e, t, s, null); | |
| if (o.data === "$!") { | |
| if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst; | |
| return r = l, i = Error(j(419)), r = Bl(i, r, void 0), Li(e, t, s, r) | |
| } | |
| if (l = (s & e.childLanes) !== 0, Be || l) { | |
| if (r = Se, r !== null) { | |
| switch (s & -s) { | |
| case 4: | |
| o = 2; | |
| break; | |
| case 16: | |
| o = 8; | |
| break; | |
| case 64: | |
| case 128: | |
| case 256: | |
| case 512: | |
| case 1024: | |
| case 2048: | |
| case 4096: | |
| case 8192: | |
| case 16384: | |
| case 32768: | |
| case 65536: | |
| case 131072: | |
| case 262144: | |
| case 524288: | |
| case 1048576: | |
| case 2097152: | |
| case 4194304: | |
| case 8388608: | |
| case 16777216: | |
| case 33554432: | |
| case 67108864: | |
| o = 32; | |
| break; | |
| case 536870912: | |
| o = 268435456; | |
| break; | |
| default: | |
| o = 0 | |
| } | |
| o = o & (r.suspendedLanes | s) ? 0 : o, o !== 0 && o !== i.retryLane && (i.retryLane = o, qt(e, o), Ct(r, e, o, -1)) | |
| } | |
| return qu(), r = Bl(Error(j(421))), Li(e, t, s, r) | |
| } | |
| return o.data === "$?" ? (t.flags |= 128, t.child = e.child, t = r0.bind(null, e), o._reactRetry = t, null) : (e = i.treeContext, Xe = Tn(o.nextSibling), qe = t, le = !0, St = null, e !== null && (ot[it++] = Qt, ot[it++] = Kt, ot[it++] = sr, Qt = e.id, Kt = e.overflow, sr = t), t = Hu(t, r.children), t.flags |= 4096, t) | |
| } | |
| function Pd(e, t, n) { | |
| e.lanes |= t; | |
| var r = e.alternate; | |
| r !== null && (r.lanes |= t), Ra(e.return, t, n) | |
| } | |
| function Wl(e, t, n, r, o) { | |
| var i = e.memoizedState; | |
| i === null ? e.memoizedState = { | |
| isBackwards: t, | |
| rendering: null, | |
| renderingStartTime: 0, | |
| last: r, | |
| tail: n, | |
| tailMode: o | |
| } : (i.isBackwards = t, i.rendering = null, i.renderingStartTime = 0, i.last = r, i.tail = n, i.tailMode = o) | |
| } | |
| function Eh(e, t, n) { | |
| var r = t.pendingProps, | |
| o = r.revealOrder, | |
| i = r.tail; | |
| if (Me(e, t, r.children, n), r = ae.current, r & 2) r = r & 1 | 2, t.flags |= 128; | |
| else { | |
| if (e !== null && e.flags & 128) e: for (e = t.child; e !== null;) { | |
| if (e.tag === 13) e.memoizedState !== null && Pd(e, n, t); | |
| else if (e.tag === 19) Pd(e, n, t); | |
| else if (e.child !== null) { | |
| e.child.return = e, e = e.child; | |
| continue | |
| } | |
| if (e === t) break e; | |
| for (; e.sibling === null;) { | |
| if (e.return === null || e.return === t) break e; | |
| e = e.return | |
| } | |
| e.sibling.return = e.return, e = e.sibling | |
| } | |
| r &= 1 | |
| } | |
| if (ne(ae, r), !(t.mode & 1)) t.memoizedState = null; | |
| else switch (o) { | |
| case "forwards": | |
| for (n = t.child, o = null; n !== null;) e = n.alternate, e !== null && Cs(e) === null && (o = n), n = n.sibling; | |
| n = o, n === null ? (o = t.child, t.child = null) : (o = n.sibling, n.sibling = null), Wl(t, !1, o, n, i); | |
| break; | |
| case "backwards": | |
| for (n = null, o = t.child, t.child = null; o !== null;) { | |
| if (e = o.alternate, e !== null && Cs(e) === null) { | |
| t.child = o; | |
| break | |
| } | |
| e = o.sibling, o.sibling = n, n = o, o = e | |
| } | |
| Wl(t, !0, n, null, i); | |
| break; | |
| case "together": | |
| Wl(t, !1, null, null, void 0); | |
| break; | |
| default: | |
| t.memoizedState = null | |
| } | |
| return t.child | |
| } | |
| function es(e, t) { | |
| !(t.mode & 1) && e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2) | |
| } | |
| function Zt(e, t, n) { | |
| if (e !== null && (t.dependencies = e.dependencies), ar |= t.lanes, !(n & t.childLanes)) return null; | |
| if (e !== null && t.child !== e.child) throw Error(j(153)); | |
| if (t.child !== null) { | |
| for (e = t.child, n = An(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = An(e, e.pendingProps), n.return = t; | |
| n.sibling = null | |
| } | |
| return t.child | |
| } | |
| function Hv(e, t, n) { | |
| switch (t.tag) { | |
| case 3: | |
| kh(t), Jr(); | |
| break; | |
| case 5: | |
| Xp(t); | |
| break; | |
| case 1: | |
| Ve(t.type) && ys(t); | |
| break; | |
| case 4: | |
| Iu(t, t.stateNode.containerInfo); | |
| break; | |
| case 10: | |
| var r = t.type._context, | |
| o = t.memoizedProps.value; | |
| ne(ws, r._currentValue), r._currentValue = o; | |
| break; | |
| case 13: | |
| if (r = t.memoizedState, r !== null) return r.dehydrated !== null ? (ne(ae, ae.current & 1), t.flags |= 128, null) : n & t.child.childLanes ? Ch(e, t, n) : (ne(ae, ae.current & 1), e = Zt(e, t, n), e !== null ? e.sibling : null); | |
| ne(ae, ae.current & 1); | |
| break; | |
| case 19: | |
| if (r = (n & t.childLanes) !== 0, e.flags & 128) { | |
| if (r) return Eh(e, t, n); | |
| t.flags |= 128 | |
| } | |
| if (o = t.memoizedState, o !== null && (o.rendering = null, o.tail = null, o.lastEffect = null), ne(ae, ae.current), r) break; | |
| return null; | |
| case 22: | |
| case 23: | |
| return t.lanes = 0, wh(e, t, n) | |
| } | |
| return Zt(e, t, n) | |
| } | |
| var bh, Ia, Nh, Ph; | |
| bh = function(e, t) { | |
| for (var n = t.child; n !== null;) { | |
| if (n.tag === 5 || n.tag === 6) e.appendChild(n.stateNode); | |
| else if (n.tag !== 4 && n.child !== null) { | |
| n.child.return = n, n = n.child; | |
| continue | |
| } | |
| if (n === t) break; | |
| for (; n.sibling === null;) { | |
| if (n.return === null || n.return === t) return; | |
| n = n.return | |
| } | |
| n.sibling.return = n.return, n = n.sibling | |
| } | |
| }; | |
| Ia = function() {}; | |
| Nh = function(e, t, n, r) { | |
| var o = e.memoizedProps; | |
| if (o !== r) { | |
| e = t.stateNode, Xn(It.current); | |
| var i = null; | |
| switch (n) { | |
| case "input": | |
| o = ia(e, o), r = ia(e, r), i = []; | |
| break; | |
| case "select": | |
| o = ce({}, o, { | |
| value: void 0 | |
| }), r = ce({}, r, { | |
| value: void 0 | |
| }), i = []; | |
| break; | |
| case "textarea": | |
| o = aa(e, o), r = aa(e, r), i = []; | |
| break; | |
| default: | |
| typeof o.onClick != "function" && typeof r.onClick == "function" && (e.onclick = ms) | |
| } | |
| ca(n, r); | |
| var s; | |
| n = null; | |
| for (u in o) | |
| if (!r.hasOwnProperty(u) && o.hasOwnProperty(u) && o[u] != null) | |
| if (u === "style") { | |
| var l = o[u]; | |
| for (s in l) l.hasOwnProperty(s) && (n || (n = {}), n[s] = "") | |
| } else u !== "dangerouslySetInnerHTML" && u !== "children" && u !== "suppressContentEditableWarning" && u !== "suppressHydrationWarning" && u !== "autoFocus" && (Uo.hasOwnProperty(u) ? i || (i = []) : (i = i || []).push(u, null)); | |
| for (u in r) { | |
| var a = r[u]; | |
| if (l = o != null ? o[u] : void 0, r.hasOwnProperty(u) && a !== l && (a != null || l != null)) | |
| if (u === "style") | |
| if (l) { | |
| for (s in l) !l.hasOwnProperty(s) || a && a.hasOwnProperty(s) || (n || (n = {}), n[s] = ""); | |
| for (s in a) a.hasOwnProperty(s) && l[s] !== a[s] && (n || (n = {}), n[s] = a[s]) | |
| } else n || (i || (i = []), i.push(u, n)), n = a; | |
| else u === "dangerouslySetInnerHTML" ? (a = a ? a.__html : void 0, l = l ? l.__html : void 0, a != null && l !== a && (i = i || []).push(u, a)) : u === "children" ? typeof a != "string" && typeof a != "number" || (i = i || []).push(u, "" + a) : u !== "suppressContentEditableWarning" && u !== "suppressHydrationWarning" && (Uo.hasOwnProperty(u) ? (a != null && u === "onScroll" && oe("scroll", e), i || l === a || (i = [])) : (i = i || []).push(u, a)) | |
| } | |
| n && (i = i || []).push("style", n); | |
| var u = i; | |
| (t.updateQueue = u) && (t.flags |= 4) | |
| } | |
| }; | |
| Ph = function(e, t, n, r) { | |
| n !== r && (t.flags |= 4) | |
| }; | |
| function So(e, t) { | |
| if (!le) switch (e.tailMode) { | |
| case "hidden": | |
| t = e.tail; | |
| for (var n = null; t !== null;) t.alternate !== null && (n = t), t = t.sibling; | |
| n === null ? e.tail = null : n.sibling = null; | |
| break; | |
| case "collapsed": | |
| n = e.tail; | |
| for (var r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling; | |
| r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null | |
| } | |
| } | |
| function Re(e) { | |
| var t = e.alternate !== null && e.alternate.child === e.child, | |
| n = 0, | |
| r = 0; | |
| if (t) | |
| for (var o = e.child; o !== null;) n |= o.lanes | o.childLanes, r |= o.subtreeFlags & 14680064, r |= o.flags & 14680064, o.return = e, o = o.sibling; | |
| else | |
| for (o = e.child; o !== null;) n |= o.lanes | o.childLanes, r |= o.subtreeFlags, r |= o.flags, o.return = e, o = o.sibling; | |
| return e.subtreeFlags |= r, e.childLanes = n, t | |
| } | |
| function Qv(e, t, n) { | |
| var r = t.pendingProps; | |
| switch (ju(t), t.tag) { | |
| case 2: | |
| case 16: | |
| case 15: | |
| case 0: | |
| case 11: | |
| case 7: | |
| case 8: | |
| case 12: | |
| case 9: | |
| case 14: | |
| return Re(t), null; | |
| case 1: | |
| return Ve(t.type) && gs(), Re(t), null; | |
| case 3: | |
| return r = t.stateNode, to(), ie(We), ie(Ae), zu(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (Oi(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, St !== null && (Ha(St), St = null))), Ia(e, t), Re(t), null; | |
| case 5: | |
| Fu(t); | |
| var o = Xn(Jo.current); | |
| if (n = t.type, e !== null && t.stateNode != null) Nh(e, t, n, r, o), e.ref !== t.ref && (t.flags |= 512, t.flags |= 2097152); | |
| else { | |
| if (!r) { | |
| if (t.stateNode === null) throw Error(j(166)); | |
| return Re(t), null | |
| } | |
| if (e = Xn(It.current), Oi(t)) { | |
| r = t.stateNode, n = t.type; | |
| var i = t.memoizedProps; | |
| switch (r[Mt] = t, r[qo] = i, e = (t.mode & 1) !== 0, n) { | |
| case "dialog": | |
| oe("cancel", r), oe("close", r); | |
| break; | |
| case "iframe": | |
| case "object": | |
| case "embed": | |
| oe("load", r); | |
| break; | |
| case "video": | |
| case "audio": | |
| for (o = 0; o < To.length; o++) oe(To[o], r); | |
| break; | |
| case "source": | |
| oe("error", r); | |
| break; | |
| case "img": | |
| case "image": | |
| case "link": | |
| oe("error", r), oe("load", r); | |
| break; | |
| case "details": | |
| oe("toggle", r); | |
| break; | |
| case "input": | |
| Dc(r, i), oe("invalid", r); | |
| break; | |
| case "select": | |
| r._wrapperState = { | |
| wasMultiple: !!i.multiple | |
| }, oe("invalid", r); | |
| break; | |
| case "textarea": | |
| Fc(r, i), oe("invalid", r) | |
| } | |
| ca(n, i), o = null; | |
| for (var s in i) | |
| if (i.hasOwnProperty(s)) { | |
| var l = i[s]; | |
| s === "children" ? typeof l == "string" ? r.textContent !== l && (i.suppressHydrationWarning !== !0 && Ai(r.textContent, l, e), o = ["children", l]) : typeof l == "number" && r.textContent !== "" + l && (i.suppressHydrationWarning !== !0 && Ai(r.textContent, l, e), o = ["children", "" + l]) : Uo.hasOwnProperty(s) && l != null && s === "onScroll" && oe("scroll", r) | |
| } | |
| switch (n) { | |
| case "input": | |
| Ei(r), Ic(r, i, !0); | |
| break; | |
| case "textarea": | |
| Ei(r), zc(r); | |
| break; | |
| case "select": | |
| case "option": | |
| break; | |
| default: | |
| typeof i.onClick == "function" && (r.onclick = ms) | |
| } | |
| r = o, t.updateQueue = r, r !== null && (t.flags |= 4) | |
| } else { | |
| s = o.nodeType === 9 ? o : o.ownerDocument, e === "http://www.w3.org/1999/xhtml" && (e = tp(n)), e === "http://www.w3.org/1999/xhtml" ? n === "script" ? (e = s.createElement("div"), e.innerHTML = "<script><\/script>", e = e.removeChild(e.firstChild)) : typeof r.is == "string" ? e = s.createElement(n, { | |
| is: r.is | |
| }) : (e = s.createElement(n), n === "select" && (s = e, r.multiple ? s.multiple = !0 : r.size && (s.size = r.size))) : e = s.createElementNS(e, n), e[Mt] = t, e[qo] = r, bh(e, t, !1, !1), t.stateNode = e; | |
| e: { | |
| switch (s = da(n, r), n) { | |
| case "dialog": | |
| oe("cancel", e), oe("close", e), o = r; | |
| break; | |
| case "iframe": | |
| case "object": | |
| case "embed": | |
| oe("load", e), o = r; | |
| break; | |
| case "video": | |
| case "audio": | |
| for (o = 0; o < To.length; o++) oe(To[o], e); | |
| o = r; | |
| break; | |
| case "source": | |
| oe("error", e), o = r; | |
| break; | |
| case "img": | |
| case "image": | |
| case "link": | |
| oe("error", e), oe("load", e), o = r; | |
| break; | |
| case "details": | |
| oe("toggle", e), o = r; | |
| break; | |
| case "input": | |
| Dc(e, r), o = ia(e, r), oe("invalid", e); | |
| break; | |
| case "option": | |
| o = r; | |
| break; | |
| case "select": | |
| e._wrapperState = { | |
| wasMultiple: !!r.multiple | |
| }, o = ce({}, r, { | |
| value: void 0 | |
| }), oe("invalid", e); | |
| break; | |
| case "textarea": | |
| Fc(e, r), o = aa(e, r), oe("invalid", e); | |
| break; | |
| default: | |
| o = r | |
| } | |
| ca(n, o), | |
| l = o; | |
| for (i in l) | |
| if (l.hasOwnProperty(i)) { | |
| var a = l[i]; | |
| i === "style" ? op(e, a) : i === "dangerouslySetInnerHTML" ? (a = a ? a.__html : void 0, a != null && np(e, a)) : i === "children" ? typeof a == "string" ? (n !== "textarea" || a !== "") && Bo(e, a) : typeof a == "number" && Bo(e, "" + a) : i !== "suppressContentEditableWarning" && i !== "suppressHydrationWarning" && i !== "autoFocus" && (Uo.hasOwnProperty(i) ? a != null && i === "onScroll" && oe("scroll", e) : a != null && mu(e, i, a, s)) | |
| } | |
| switch (n) { | |
| case "input": | |
| Ei(e), Ic(e, r, !1); | |
| break; | |
| case "textarea": | |
| Ei(e), zc(e); | |
| break; | |
| case "option": | |
| r.value != null && e.setAttribute("value", "" + On(r.value)); | |
| break; | |
| case "select": | |
| e.multiple = !!r.multiple, i = r.value, i != null ? Mr(e, !!r.multiple, i, !1) : r.defaultValue != null && Mr(e, !!r.multiple, r.defaultValue, !0); | |
| break; | |
| default: | |
| typeof o.onClick == "function" && (e.onclick = ms) | |
| } | |
| switch (n) { | |
| case "button": | |
| case "input": | |
| case "select": | |
| case "textarea": | |
| r = !!r.autoFocus; | |
| break e; | |
| case "img": | |
| r = !0; | |
| break e; | |
| default: | |
| r = !1 | |
| } | |
| } | |
| r && (t.flags |= 4) | |
| } | |
| t.ref !== null && (t.flags |= 512, t.flags |= 2097152) | |
| } | |
| return Re(t), null; | |
| case 6: | |
| if (e && t.stateNode != null) Ph(e, t, e.memoizedProps, r); | |
| else { | |
| if (typeof r != "string" && t.stateNode === null) throw Error(j(166)); | |
| if (n = Xn(Jo.current), Xn(It.current), Oi(t)) { | |
| if (r = t.stateNode, n = t.memoizedProps, r[Mt] = t, (i = r.nodeValue !== n) && (e = qe, e !== null)) switch (e.tag) { | |
| case 3: | |
| Ai(r.nodeValue, n, (e.mode & 1) !== 0); | |
| break; | |
| case 5: | |
| e.memoizedProps.suppressHydrationWarning !== !0 && Ai(r.nodeValue, n, (e.mode & 1) !== 0) | |
| } | |
| i && (t.flags |= 4) | |
| } else r = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r), r[Mt] = t, t.stateNode = r | |
| } | |
| return Re(t), null; | |
| case 13: | |
| if (ie(ae), r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) { | |
| if (le && Xe !== null && t.mode & 1 && !(t.flags & 128)) Hp(), Jr(), t.flags |= 98560, i = !1; | |
| else if (i = Oi(t), r !== null && r.dehydrated !== null) { | |
| if (e === null) { | |
| if (!i) throw Error(j(318)); | |
| if (i = t.memoizedState, i = i !== null ? i.dehydrated : null, !i) throw Error(j(317)); | |
| i[Mt] = t | |
| } else Jr(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4; | |
| Re(t), i = !1 | |
| } else St !== null && (Ha(St), St = null), i = !0; | |
| if (!i) return t.flags & 65536 ? t : null | |
| } | |
| return t.flags & 128 ? (t.lanes = n, t) : (r = r !== null, r !== (e !== null && e.memoizedState !== null) && r && (t.child.flags |= 8192, t.mode & 1 && (e === null || ae.current & 1 ? ve === 0 && (ve = 3) : qu())), t.updateQueue !== null && (t.flags |= 4), Re(t), null); | |
| case 4: | |
| return to(), Ia(e, t), e === null && Yo(t.stateNode.containerInfo), Re(t), null; | |
| case 10: | |
| return Mu(t.type._context), Re(t), null; | |
| case 17: | |
| return Ve(t.type) && gs(), Re(t), null; | |
| case 19: | |
| if (ie(ae), i = t.memoizedState, i === null) return Re(t), null; | |
| if (r = (t.flags & 128) !== 0, s = i.rendering, s === null) | |
| if (r) So(i, !1); | |
| else { | |
| if (ve !== 0 || e !== null && e.flags & 128) | |
| for (e = t.child; e !== null;) { | |
| if (s = Cs(e), s !== null) { | |
| for (t.flags |= 128, So(i, !1), r = s.updateQueue, r !== null && (t.updateQueue = r, t.flags |= 4), t.subtreeFlags = 0, r = n, n = t.child; n !== null;) i = n, e = r, i.flags &= 14680066, s = i.alternate, s === null ? (i.childLanes = 0, i.lanes = e, i.child = null, i.subtreeFlags = 0, i.memoizedProps = null, i.memoizedState = null, i.updateQueue = null, i.dependencies = null, i.stateNode = null) : (i.childLanes = s.childLanes, i.lanes = s.lanes, i.child = s.child, i.subtreeFlags = 0, i.deletions = null, i.memoizedProps = s.memoizedProps, i.memoizedState = s.memoizedState, i.updateQueue = s.updateQueue, i.type = s.type, e = s.dependencies, i.dependencies = e === null ? null : { | |
| lanes: e.lanes, | |
| firstContext: e.firstContext | |
| }), n = n.sibling; | |
| return ne(ae, ae.current & 1 | 2), t.child | |
| } | |
| e = e.sibling | |
| } | |
| i.tail !== null && pe() > ro && (t.flags |= 128, r = !0, So(i, !1), t.lanes = 4194304) | |
| } | |
| else { | |
| if (!r) | |
| if (e = Cs(s), e !== null) { | |
| if (t.flags |= 128, r = !0, n = e.updateQueue, n !== null && (t.updateQueue = n, t.flags |= 4), So(i, !0), i.tail === null && i.tailMode === "hidden" && !s.alternate && !le) return Re(t), null | |
| } else 2 * pe() - i.renderingStartTime > ro && n !== 1073741824 && (t.flags |= 128, r = !0, So(i, !1), t.lanes = 4194304); | |
| i.isBackwards ? (s.sibling = t.child, t.child = s) : (n = i.last, n !== null ? n.sibling = s : t.child = s, i.last = s) | |
| } | |
| return i.tail !== null ? (t = i.tail, i.rendering = t, i.tail = t.sibling, i.renderingStartTime = pe(), t.sibling = null, n = ae.current, ne(ae, r ? n & 1 | 2 : n & 1), t) : (Re(t), null); | |
| case 22: | |
| case 23: | |
| return Xu(), r = t.memoizedState !== null, e !== null && e.memoizedState !== null !== r && (t.flags |= 8192), r && t.mode & 1 ? Ke & 1073741824 && (Re(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Re(t), null; | |
| case 24: | |
| return null; | |
| case 25: | |
| return null | |
| } | |
| throw Error(j(156, t.tag)) | |
| } | |
| function Kv(e, t) { | |
| switch (ju(t), t.tag) { | |
| case 1: | |
| return Ve(t.type) && gs(), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null; | |
| case 3: | |
| return to(), ie(We), ie(Ae), zu(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null; | |
| case 5: | |
| return Fu(t), null; | |
| case 13: | |
| if (ie(ae), e = t.memoizedState, e !== null && e.dehydrated !== null) { | |
| if (t.alternate === null) throw Error(j(340)); | |
| Jr() | |
| } | |
| return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null; | |
| case 19: | |
| return ie(ae), null; | |
| case 4: | |
| return to(), null; | |
| case 10: | |
| return Mu(t.type._context), null; | |
| case 22: | |
| case 23: | |
| return Xu(), null; | |
| case 24: | |
| return null; | |
| default: | |
| return null | |
| } | |
| } | |
| var Di = !1, | |
| _e = !1, | |
| Gv = typeof WeakSet == "function" ? WeakSet : Set, | |
| D = null; | |
| function Ar(e, t) { | |
| var n = e.ref; | |
| if (n !== null) | |
| if (typeof n == "function") try { | |
| n(null) | |
| } catch (r) { | |
| fe(e, t, r) | |
| } else n.current = null | |
| } | |
| function Fa(e, t, n) { | |
| try { | |
| n() | |
| } catch (r) { | |
| fe(e, t, r) | |
| } | |
| } | |
| var Td = !1; | |
| function Yv(e, t) { | |
| if (Sa = fs, e = Ap(), Tu(e)) { | |
| if ("selectionStart" in e) var n = { | |
| start: e.selectionStart, | |
| end: e.selectionEnd | |
| }; | |
| else e: { | |
| n = (n = e.ownerDocument) && n.defaultView || window; | |
| var r = n.getSelection && n.getSelection(); | |
| if (r && r.rangeCount !== 0) { | |
| n = r.anchorNode; | |
| var o = r.anchorOffset, | |
| i = r.focusNode; | |
| r = r.focusOffset; | |
| try { | |
| n.nodeType, i.nodeType | |
| } catch { | |
| n = null; | |
| break e | |
| } | |
| var s = 0, | |
| l = -1, | |
| a = -1, | |
| u = 0, | |
| c = 0, | |
| f = e, | |
| m = null; | |
| t: for (;;) { | |
| for (var d; f !== n || o !== 0 && f.nodeType !== 3 || (l = s + o), f !== i || r !== 0 && f.nodeType !== 3 || (a = s + r), f.nodeType === 3 && (s += f.nodeValue.length), (d = f.firstChild) !== null;) m = f, f = d; | |
| for (;;) { | |
| if (f === e) break t; | |
| if (m === n && ++u === o && (l = s), m === i && ++c === r && (a = s), (d = f.nextSibling) !== null) break; | |
| f = m, m = f.parentNode | |
| } | |
| f = d | |
| } | |
| n = l === -1 || a === -1 ? null : { | |
| start: l, | |
| end: a | |
| } | |
| } else n = null | |
| } | |
| n = n || { | |
| start: 0, | |
| end: 0 | |
| } | |
| } else n = null; | |
| for (ka = { | |
| focusedElem: e, | |
| selectionRange: n | |
| }, fs = !1, D = t; D !== null;) | |
| if (t = D, e = t.child, (t.subtreeFlags & 1028) !== 0 && e !== null) e.return = t, D = e; | |
| else | |
| for (; D !== null;) { | |
| t = D; | |
| try { | |
| var x = t.alternate; | |
| if (t.flags & 1024) switch (t.tag) { | |
| case 0: | |
| case 11: | |
| case 15: | |
| break; | |
| case 1: | |
| if (x !== null) { | |
| var y = x.memoizedProps, | |
| w = x.memoizedState, | |
| h = t.stateNode, | |
| p = h.getSnapshotBeforeUpdate(t.elementType === t.type ? y : mt(t.type, y), w); | |
| h.__reactInternalSnapshotBeforeUpdate = p | |
| } | |
| break; | |
| case 3: | |
| var v = t.stateNode.containerInfo; | |
| v.nodeType === 1 ? v.textContent = "" : v.nodeType === 9 && v.documentElement && v.removeChild(v.documentElement); | |
| break; | |
| case 5: | |
| case 6: | |
| case 4: | |
| case 17: | |
| break; | |
| default: | |
| throw Error(j(163)) | |
| } | |
| } catch (k) { | |
| fe(t, t.return, k) | |
| } | |
| if (e = t.sibling, e !== null) { | |
| e.return = t.return, D = e; | |
| break | |
| } | |
| D = t.return | |
| } | |
| return x = Td, Td = !1, x | |
| } | |
| function Io(e, t, n) { | |
| var r = t.updateQueue; | |
| if (r = r !== null ? r.lastEffect : null, r !== null) { | |
| var o = r = r.next; | |
| do { | |
| if ((o.tag & e) === e) { | |
| var i = o.destroy; | |
| o.destroy = void 0, i !== void 0 && Fa(t, n, i) | |
| } | |
| o = o.next | |
| } while (o !== r) | |
| } | |
| } | |
| function Gs(e, t) { | |
| if (t = t.updateQueue, t = t !== null ? t.lastEffect : null, t !== null) { | |
| var n = t = t.next; | |
| do { | |
| if ((n.tag & e) === e) { | |
| var r = n.create; | |
| n.destroy = r() | |
| } | |
| n = n.next | |
| } while (n !== t) | |
| } | |
| } | |
| function za(e) { | |
| var t = e.ref; | |
| if (t !== null) { | |
| var n = e.stateNode; | |
| switch (e.tag) { | |
| case 5: | |
| e = n; | |
| break; | |
| default: | |
| e = n | |
| } | |
| typeof t == "function" ? t(e) : t.current = e | |
| } | |
| } | |
| function Th(e) { | |
| var t = e.alternate; | |
| t !== null && (e.alternate = null, Th(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && (delete t[Mt], delete t[qo], delete t[ba], delete t[_v], delete t[Av])), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null | |
| } | |
| function Rh(e) { | |
| return e.tag === 5 || e.tag === 3 || e.tag === 4 | |
| } | |
| function Rd(e) { | |
| e: for (;;) { | |
| for (; e.sibling === null;) { | |
| if (e.return === null || Rh(e.return)) return null; | |
| e = e.return | |
| } | |
| for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) { | |
| if (e.flags & 2 || e.child === null || e.tag === 4) continue e; | |
| e.child.return = e, e = e.child | |
| } | |
| if (!(e.flags & 2)) return e.stateNode | |
| } | |
| } | |
| function $a(e, t, n) { | |
| var r = e.tag; | |
| if (r === 5 || r === 6) e = e.stateNode, t ? n.nodeType === 8 ? n.parentNode.insertBefore(e, t) : n.insertBefore(e, t) : (n.nodeType === 8 ? (t = n.parentNode, t.insertBefore(e, n)) : (t = n, t.appendChild(e)), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = ms)); | |
| else if (r !== 4 && (e = e.child, e !== null)) | |
| for ($a(e, t, n), e = e.sibling; e !== null;) $a(e, t, n), e = e.sibling | |
| } | |
| function Ua(e, t, n) { | |
| var r = e.tag; | |
| if (r === 5 || r === 6) e = e.stateNode, t ? n.insertBefore(e, t) : n.appendChild(e); | |
| else if (r !== 4 && (e = e.child, e !== null)) | |
| for (Ua(e, t, n), e = e.sibling; e !== null;) Ua(e, t, n), e = e.sibling | |
| } | |
| var Ce = null, | |
| wt = !1; | |
| function un(e, t, n) { | |
| for (n = n.child; n !== null;) jh(e, t, n), n = n.sibling | |
| } | |
| function jh(e, t, n) { | |
| if (Dt && typeof Dt.onCommitFiberUnmount == "function") try { | |
| Dt.onCommitFiberUnmount($s, n) | |
| } catch {} | |
| switch (n.tag) { | |
| case 5: | |
| _e || Ar(n, t); | |
| case 6: | |
| var r = Ce, | |
| o = wt; | |
| Ce = null, un(e, t, n), Ce = r, wt = o, Ce !== null && (wt ? (e = Ce, n = n.stateNode, e.nodeType === 8 ? e.parentNode.removeChild(n) : e.removeChild(n)) : Ce.removeChild(n.stateNode)); | |
| break; | |
| case 18: | |
| Ce !== null && (wt ? (e = Ce, n = n.stateNode, e.nodeType === 8 ? Dl(e.parentNode, n) : e.nodeType === 1 && Dl(e, n), Qo(e)) : Dl(Ce, n.stateNode)); | |
| break; | |
| case 4: | |
| r = Ce, o = wt, Ce = n.stateNode.containerInfo, wt = !0, un(e, t, n), Ce = r, wt = o; | |
| break; | |
| case 0: | |
| case 11: | |
| case 14: | |
| case 15: | |
| if (!_e && (r = n.updateQueue, r !== null && (r = r.lastEffect, r !== null))) { | |
| o = r = r.next; | |
| do { | |
| var i = o, | |
| s = i.destroy; | |
| i = i.tag, s !== void 0 && (i & 2 || i & 4) && Fa(n, t, s), o = o.next | |
| } while (o !== r) | |
| } | |
| un(e, t, n); | |
| break; | |
| case 1: | |
| if (!_e && (Ar(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function")) try { | |
| r.props = n.memoizedProps, r.state = n.memoizedState, r.componentWillUnmount() | |
| } catch (l) { | |
| fe(n, t, l) | |
| } | |
| un(e, t, n); | |
| break; | |
| case 21: | |
| un(e, t, n); | |
| break; | |
| case 22: | |
| n.mode & 1 ? (_e = (r = _e) || n.memoizedState !== null, un(e, t, n), _e = r) : un(e, t, n); | |
| break; | |
| default: | |
| un(e, t, n) | |
| } | |
| } | |
| function jd(e) { | |
| var t = e.updateQueue; | |
| if (t !== null) { | |
| e.updateQueue = null; | |
| var n = e.stateNode; | |
| n === null && (n = e.stateNode = new Gv), t.forEach(function(r) { | |
| var o = o0.bind(null, e, r); | |
| n.has(r) || (n.add(r), r.then(o, o)) | |
| }) | |
| } | |
| } | |
| function pt(e, t) { | |
| var n = t.deletions; | |
| if (n !== null) | |
| for (var r = 0; r < n.length; r++) { | |
| var o = n[r]; | |
| try { | |
| var i = e, | |
| s = t, | |
| l = s; | |
| e: for (; l !== null;) { | |
| switch (l.tag) { | |
| case 5: | |
| Ce = l.stateNode, wt = !1; | |
| break e; | |
| case 3: | |
| Ce = l.stateNode.containerInfo, wt = !0; | |
| break e; | |
| case 4: | |
| Ce = l.stateNode.containerInfo, wt = !0; | |
| break e | |
| } | |
| l = l.return | |
| } | |
| if (Ce === null) throw Error(j(160)); | |
| jh(i, s, o), Ce = null, wt = !1; | |
| var a = o.alternate; | |
| a !== null && (a.return = null), o.return = null | |
| } catch (u) { | |
| fe(o, t, u) | |
| } | |
| } | |
| if (t.subtreeFlags & 12854) | |
| for (t = t.child; t !== null;) _h(t, e), t = t.sibling | |
| } | |
| function _h(e, t) { | |
| var n = e.alternate, | |
| r = e.flags; | |
| switch (e.tag) { | |
| case 0: | |
| case 11: | |
| case 14: | |
| case 15: | |
| if (pt(t, e), Tt(e), r & 4) { | |
| try { | |
| Io(3, e, e.return), Gs(3, e) | |
| } catch (y) { | |
| fe(e, e.return, y) | |
| } | |
| try { | |
| Io(5, e, e.return) | |
| } catch (y) { | |
| fe(e, e.return, y) | |
| } | |
| } | |
| break; | |
| case 1: | |
| pt(t, e), Tt(e), r & 512 && n !== null && Ar(n, n.return); | |
| break; | |
| case 5: | |
| if (pt(t, e), Tt(e), r & 512 && n !== null && Ar(n, n.return), e.flags & 32) { | |
| var o = e.stateNode; | |
| try { | |
| Bo(o, "") | |
| } catch (y) { | |
| fe(e, e.return, y) | |
| } | |
| } | |
| if (r & 4 && (o = e.stateNode, o != null)) { | |
| var i = e.memoizedProps, | |
| s = n !== null ? n.memoizedProps : i, | |
| l = e.type, | |
| a = e.updateQueue; | |
| if (e.updateQueue = null, a !== null) try { | |
| l === "input" && i.type === "radio" && i.name != null && Jf(o, i), da(l, s); | |
| var u = da(l, i); | |
| for (s = 0; s < a.length; s += 2) { | |
| var c = a[s], | |
| f = a[s + 1]; | |
| c === "style" ? op(o, f) : c === "dangerouslySetInnerHTML" ? np(o, f) : c === "children" ? Bo(o, f) : mu(o, c, f, u) | |
| } | |
| switch (l) { | |
| case "input": | |
| sa(o, i); | |
| break; | |
| case "textarea": | |
| ep(o, i); | |
| break; | |
| case "select": | |
| var m = o._wrapperState.wasMultiple; | |
| o._wrapperState.wasMultiple = !!i.multiple; | |
| var d = i.value; | |
| d != null ? Mr(o, !!i.multiple, d, !1) : m !== !!i.multiple && (i.defaultValue != null ? Mr(o, !!i.multiple, i.defaultValue, !0) : Mr(o, !!i.multiple, i.multiple ? [] : "", !1)) | |
| } | |
| o[qo] = i | |
| } catch (y) { | |
| fe(e, e.return, y) | |
| } | |
| } | |
| break; | |
| case 6: | |
| if (pt(t, e), Tt(e), r & 4) { | |
| if (e.stateNode === null) throw Error(j(162)); | |
| o = e.stateNode, i = e.memoizedProps; | |
| try { | |
| o.nodeValue = i | |
| } catch (y) { | |
| fe(e, e.return, y) | |
| } | |
| } | |
| break; | |
| case 3: | |
| if (pt(t, e), Tt(e), r & 4 && n !== null && n.memoizedState.isDehydrated) try { | |
| Qo(t.containerInfo) | |
| } catch (y) { | |
| fe(e, e.return, y) | |
| } | |
| break; | |
| case 4: | |
| pt(t, e), Tt(e); | |
| break; | |
| case 13: | |
| pt(t, e), Tt(e), o = e.child, o.flags & 8192 && (i = o.memoizedState !== null, o.stateNode.isHidden = i, !i || o.alternate !== null && o.alternate.memoizedState !== null || (Gu = pe())), r & 4 && jd(e); | |
| break; | |
| case 22: | |
| if (c = n !== null && n.memoizedState !== null, e.mode & 1 ? (_e = (u = _e) || c, pt(t, e), _e = u) : pt(t, e), Tt(e), r & 8192) { | |
| if (u = e.memoizedState !== null, (e.stateNode.isHidden = u) && !c && e.mode & 1) | |
| for (D = e, c = e.child; c !== null;) { | |
| for (f = D = c; D !== null;) { | |
| switch (m = D, d = m.child, m.tag) { | |
| case 0: | |
| case 11: | |
| case 14: | |
| case 15: | |
| Io(4, m, m.return); | |
| break; | |
| case 1: | |
| Ar(m, m.return); | |
| var x = m.stateNode; | |
| if (typeof x.componentWillUnmount == "function") { | |
| r = m, n = m.return; | |
| try { | |
| t = r, x.props = t.memoizedProps, x.state = t.memoizedState, x.componentWillUnmount() | |
| } catch (y) { | |
| fe(r, n, y) | |
| } | |
| } | |
| break; | |
| case 5: | |
| Ar(m, m.return); | |
| break; | |
| case 22: | |
| if (m.memoizedState !== null) { | |
| Ad(f); | |
| continue | |
| } | |
| } | |
| d !== null ? (d.return = m, D = d) : Ad(f) | |
| } | |
| c = c.sibling | |
| } | |
| e: for (c = null, f = e;;) { | |
| if (f.tag === 5) { | |
| if (c === null) { | |
| c = f; | |
| try { | |
| o = f.stateNode, u ? (i = o.style, typeof i.setProperty == "function" ? i.setProperty("display", "none", "important") : i.display = "none") : (l = f.stateNode, a = f.memoizedProps.style, s = a != null && a.hasOwnProperty("display") ? a.display : null, l.style.display = rp("display", s)) | |
| } catch (y) { | |
| fe(e, e.return, y) | |
| } | |
| } | |
| } else if (f.tag === 6) { | |
| if (c === null) try { | |
| f.stateNode.nodeValue = u ? "" : f.memoizedProps | |
| } catch (y) { | |
| fe(e, e.return, y) | |
| } | |
| } else if ((f.tag !== 22 && f.tag !== 23 || f.memoizedState === null || f === e) && f.child !== null) { | |
| f.child.return = f, f = f.child; | |
| continue | |
| } | |
| if (f === e) break e; | |
| for (; f.sibling === null;) { | |
| if (f.return === null || f.return === e) break e; | |
| c === f && (c = null), f = f.return | |
| } | |
| c === f && (c = null), f.sibling.return = f.return, f = f.sibling | |
| } | |
| } | |
| break; | |
| case 19: | |
| pt(t, e), Tt(e), r & 4 && jd(e); | |
| break; | |
| case 21: | |
| break; | |
| default: | |
| pt(t, e), Tt(e) | |
| } | |
| } | |
| function Tt(e) { | |
| var t = e.flags; | |
| if (t & 2) { | |
| try { | |
| e: { | |
| for (var n = e.return; n !== null;) { | |
| if (Rh(n)) { | |
| var r = n; | |
| break e | |
| } | |
| n = n.return | |
| } | |
| throw Error(j(160)) | |
| } | |
| switch (r.tag) { | |
| case 5: | |
| var o = r.stateNode; | |
| r.flags & 32 && (Bo(o, ""), r.flags &= -33); | |
| var i = Rd(e); | |
| Ua(e, i, o); | |
| break; | |
| case 3: | |
| case 4: | |
| var s = r.stateNode.containerInfo, | |
| l = Rd(e); | |
| $a(e, l, s); | |
| break; | |
| default: | |
| throw Error(j(161)) | |
| } | |
| } | |
| catch (a) { | |
| fe(e, e.return, a) | |
| } | |
| e.flags &= -3 | |
| } | |
| t & 4096 && (e.flags &= -4097) | |
| } | |
| function Xv(e, t, n) { | |
| D = e, Ah(e) | |
| } | |
| function Ah(e, t, n) { | |
| for (var r = (e.mode & 1) !== 0; D !== null;) { | |
| var o = D, | |
| i = o.child; | |
| if (o.tag === 22 && r) { | |
| var s = o.memoizedState !== null || Di; | |
| if (!s) { | |
| var l = o.alternate, | |
| a = l !== null && l.memoizedState !== null || _e; | |
| l = Di; | |
| var u = _e; | |
| if (Di = s, (_e = a) && !u) | |
| for (D = o; D !== null;) s = D, a = s.child, s.tag === 22 && s.memoizedState !== null ? Od(o) : a !== null ? (a.return = s, D = a) : Od(o); | |
| for (; i !== null;) D = i, Ah(i), i = i.sibling; | |
| D = o, Di = l, _e = u | |
| } | |
| _d(e) | |
| } else o.subtreeFlags & 8772 && i !== null ? (i.return = o, D = i) : _d(e) | |
| } | |
| } | |
| function _d(e) { | |
| for (; D !== null;) { | |
| var t = D; | |
| if (t.flags & 8772) { | |
| var n = t.alternate; | |
| try { | |
| if (t.flags & 8772) switch (t.tag) { | |
| case 0: | |
| case 11: | |
| case 15: | |
| _e || Gs(5, t); | |
| break; | |
| case 1: | |
| var r = t.stateNode; | |
| if (t.flags & 4 && !_e) | |
| if (n === null) r.componentDidMount(); | |
| else { | |
| var o = t.elementType === t.type ? n.memoizedProps : mt(t.type, n.memoizedProps); | |
| r.componentDidUpdate(o, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate) | |
| } | |
| var i = t.updateQueue; | |
| i !== null && md(t, i, r); | |
| break; | |
| case 3: | |
| var s = t.updateQueue; | |
| if (s !== null) { | |
| if (n = null, t.child !== null) switch (t.child.tag) { | |
| case 5: | |
| n = t.child.stateNode; | |
| break; | |
| case 1: | |
| n = t.child.stateNode | |
| } | |
| md(t, s, n) | |
| } | |
| break; | |
| case 5: | |
| var l = t.stateNode; | |
| if (n === null && t.flags & 4) { | |
| n = l; | |
| var a = t.memoizedProps; | |
| switch (t.type) { | |
| case "button": | |
| case "input": | |
| case "select": | |
| case "textarea": | |
| a.autoFocus && n.focus(); | |
| break; | |
| case "img": | |
| a.src && (n.src = a.src) | |
| } | |
| } | |
| break; | |
| case 6: | |
| break; | |
| case 4: | |
| break; | |
| case 12: | |
| break; | |
| case 13: | |
| if (t.memoizedState === null) { | |
| var u = t.alternate; | |
| if (u !== null) { | |
| var c = u.memoizedState; | |
| if (c !== null) { | |
| var f = c.dehydrated; | |
| f !== null && Qo(f) | |
| } | |
| } | |
| } | |
| break; | |
| case 19: | |
| case 17: | |
| case 21: | |
| case 22: | |
| case 23: | |
| case 25: | |
| break; | |
| default: | |
| throw Error(j(163)) | |
| } | |
| _e || t.flags & 512 && za(t) | |
| } catch (m) { | |
| fe(t, t.return, m) | |
| } | |
| } | |
| if (t === e) { | |
| D = null; | |
| break | |
| } | |
| if (n = t.sibling, n !== null) { | |
| n.return = t.return, D = n; | |
| break | |
| } | |
| D = t.return | |
| } | |
| } | |
| function Ad(e) { | |
| for (; D !== null;) { | |
| var t = D; | |
| if (t === e) { | |
| D = null; | |
| break | |
| } | |
| var n = t.sibling; | |
| if (n !== null) { | |
| n.return = t.return, D = n; | |
| break | |
| } | |
| D = t.return | |
| } | |
| } | |
| function Od(e) { | |
| for (; D !== null;) { | |
| var t = D; | |
| try { | |
| switch (t.tag) { | |
| case 0: | |
| case 11: | |
| case 15: | |
| var n = t.return; | |
| try { | |
| Gs(4, t) | |
| } catch (a) { | |
| fe(t, n, a) | |
| } | |
| break; | |
| case 1: | |
| var r = t.stateNode; | |
| if (typeof r.componentDidMount == "function") { | |
| var o = t.return; | |
| try { | |
| r.componentDidMount() | |
| } catch (a) { | |
| fe(t, o, a) | |
| } | |
| } | |
| var i = t.return; | |
| try { | |
| za(t) | |
| } catch (a) { | |
| fe(t, i, a) | |
| } | |
| break; | |
| case 5: | |
| var s = t.return; | |
| try { | |
| za(t) | |
| } catch (a) { | |
| fe(t, s, a) | |
| } | |
| } | |
| } catch (a) { | |
| fe(t, t.return, a) | |
| } | |
| if (t === e) { | |
| D = null; | |
| break | |
| } | |
| var l = t.sibling; | |
| if (l !== null) { | |
| l.return = t.return, D = l; | |
| break | |
| } | |
| D = t.return | |
| } | |
| } | |
| var qv = Math.ceil, | |
| Ns = tn.ReactCurrentDispatcher, | |
| Qu = tn.ReactCurrentOwner, | |
| lt = tn.ReactCurrentBatchConfig, | |
| q = 0, | |
| Se = null, | |
| me = null, | |
| Ee = 0, | |
| Ke = 0, | |
| Or = $n(0), | |
| ve = 0, | |
| ri = null, | |
| ar = 0, | |
| Ys = 0, | |
| Ku = 0, | |
| Fo = null, | |
| Ue = null, | |
| Gu = 0, | |
| ro = 1 / 0, | |
| Wt = null, | |
| Ps = !1, | |
| Ba = null, | |
| jn = null, | |
| Ii = !1, | |
| Cn = null, | |
| Ts = 0, | |
| zo = 0, | |
| Wa = null, | |
| ts = -1, | |
| ns = 0; | |
| function De() { | |
| return q & 6 ? pe() : ts !== -1 ? ts : ts = pe() | |
| } | |
| function _n(e) { | |
| return e.mode & 1 ? q & 2 && Ee !== 0 ? Ee & -Ee : Mv.transition !== null ? (ns === 0 && (ns = gp()), ns) : (e = ee, e !== 0 || (e = window.event, e = e === void 0 ? 16 : Cp(e.type)), e) : 1 | |
| } | |
| function Ct(e, t, n, r) { | |
| if (50 < zo) throw zo = 0, Wa = null, Error(j(185)); | |
| di(e, n, r), (!(q & 2) || e !== Se) && (e === Se && (!(q & 2) && (Ys |= n), ve === 4 && gn(e, Ee)), He(e, r), n === 1 && q === 0 && !(t.mode & 1) && (ro = pe() + 500, Hs && Un())) | |
| } | |
| function He(e, t) { | |
| var n = e.callbackNode; | |
| My(e, t); | |
| var r = ds(e, e === Se ? Ee : 0); | |
| if (r === 0) n !== null && Bc(n), e.callbackNode = null, e.callbackPriority = 0; | |
| else if (t = r & -r, e.callbackPriority !== t) { | |
| if (n != null && Bc(n), t === 1) e.tag === 0 ? Ov(Md.bind(null, e)) : Bp(Md.bind(null, e)), Rv(function() { | |
| !(q & 6) && Un() | |
| }), n = null; | |
| else { | |
| switch (yp(r)) { | |
| case 1: | |
| n = wu; | |
| break; | |
| case 4: | |
| n = hp; | |
| break; | |
| case 16: | |
| n = cs; | |
| break; | |
| case 536870912: | |
| n = mp; | |
| break; | |
| default: | |
| n = cs | |
| } | |
| n = $h(n, Oh.bind(null, e)) | |
| } | |
| e.callbackPriority = t, e.callbackNode = n | |
| } | |
| } | |
| function Oh(e, t) { | |
| if (ts = -1, ns = 0, q & 6) throw Error(j(327)); | |
| var n = e.callbackNode; | |
| if (zr() && e.callbackNode !== n) return null; | |
| var r = ds(e, e === Se ? Ee : 0); | |
| if (r === 0) return null; | |
| if (r & 30 || r & e.expiredLanes || t) t = Rs(e, r); | |
| else { | |
| t = r; | |
| var o = q; | |
| q |= 2; | |
| var i = Lh(); | |
| (Se !== e || Ee !== t) && (Wt = null, ro = pe() + 500, rr(e, t)); | |
| do try { | |
| e0(); | |
| break | |
| } catch (l) { | |
| Mh(e, l) | |
| } | |
| while (!0); | |
| Ou(), Ns.current = i, q = o, me !== null ? t = 0 : (Se = null, Ee = 0, t = ve) | |
| } | |
| if (t !== 0) { | |
| if (t === 2 && (o = ga(e), o !== 0 && (r = o, t = Va(e, o))), t === 1) throw n = ri, rr(e, 0), gn(e, r), He(e, pe()), n; | |
| if (t === 6) gn(e, r); | |
| else { | |
| if (o = e.current.alternate, !(r & 30) && !Zv(o) && (t = Rs(e, r), t === 2 && (i = ga(e), i !== 0 && (r = i, t = Va(e, i))), t === 1)) throw n = ri, rr(e, 0), gn(e, r), He(e, pe()), n; | |
| switch (e.finishedWork = o, e.finishedLanes = r, t) { | |
| case 0: | |
| case 1: | |
| throw Error(j(345)); | |
| case 2: | |
| Qn(e, Ue, Wt); | |
| break; | |
| case 3: | |
| if (gn(e, r), (r & 130023424) === r && (t = Gu + 500 - pe(), 10 < t)) { | |
| if (ds(e, 0) !== 0) break; | |
| if (o = e.suspendedLanes, (o & r) !== r) { | |
| De(), e.pingedLanes |= e.suspendedLanes & o; | |
| break | |
| } | |
| e.timeoutHandle = Ea(Qn.bind(null, e, Ue, Wt), t); | |
| break | |
| } | |
| Qn(e, Ue, Wt); | |
| break; | |
| case 4: | |
| if (gn(e, r), (r & 4194240) === r) break; | |
| for (t = e.eventTimes, o = -1; 0 < r;) { | |
| var s = 31 - kt(r); | |
| i = 1 << s, s = t[s], s > o && (o = s), r &= ~i | |
| } | |
| if (r = o, r = pe() - r, r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * qv(r / 1960)) - r, 10 < r) { | |
| e.timeoutHandle = Ea(Qn.bind(null, e, Ue, Wt), r); | |
| break | |
| } | |
| Qn(e, Ue, Wt); | |
| break; | |
| case 5: | |
| Qn(e, Ue, Wt); | |
| break; | |
| default: | |
| throw Error(j(329)) | |
| } | |
| } | |
| } | |
| return He(e, pe()), e.callbackNode === n ? Oh.bind(null, e) : null | |
| } | |
| function Va(e, t) { | |
| var n = Fo; | |
| return e.current.memoizedState.isDehydrated && (rr(e, t).flags |= 256), e = Rs(e, t), e !== 2 && (t = Ue, Ue = n, t !== null && Ha(t)), e | |
| } | |
| function Ha(e) { | |
| Ue === null ? Ue = e : Ue.push.apply(Ue, e) | |
| } | |
| function Zv(e) { | |
| for (var t = e;;) { | |
| if (t.flags & 16384) { | |
| var n = t.updateQueue; | |
| if (n !== null && (n = n.stores, n !== null)) | |
| for (var r = 0; r < n.length; r++) { | |
| var o = n[r], | |
| i = o.getSnapshot; | |
| o = o.value; | |
| try { | |
| if (!Et(i(), o)) return !1 | |
| } catch { | |
| return !1 | |
| } | |
| } | |
| } | |
| if (n = t.child, t.subtreeFlags & 16384 && n !== null) n.return = t, t = n; | |
| else { | |
| if (t === e) break; | |
| for (; t.sibling === null;) { | |
| if (t.return === null || t.return === e) return !0; | |
| t = t.return | |
| } | |
| t.sibling.return = t.return, t = t.sibling | |
| } | |
| } | |
| return !0 | |
| } | |
| function gn(e, t) { | |
| for (t &= ~Ku, t &= ~Ys, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t;) { | |
| var n = 31 - kt(t), | |
| r = 1 << n; | |
| e[n] = -1, t &= ~r | |
| } | |
| } | |
| function Md(e) { | |
| if (q & 6) throw Error(j(327)); | |
| zr(); | |
| var t = ds(e, 0); | |
| if (!(t & 1)) return He(e, pe()), null; | |
| var n = Rs(e, t); | |
| if (e.tag !== 0 && n === 2) { | |
| var r = ga(e); | |
| r !== 0 && (t = r, n = Va(e, r)) | |
| } | |
| if (n === 1) throw n = ri, rr(e, 0), gn(e, t), He(e, pe()), n; | |
| if (n === 6) throw Error(j(345)); | |
| return e.finishedWork = e.current.alternate, e.finishedLanes = t, Qn(e, Ue, Wt), He(e, pe()), null | |
| } | |
| function Yu(e, t) { | |
| var n = q; | |
| q |= 1; | |
| try { | |
| return e(t) | |
| } finally { | |
| q = n, q === 0 && (ro = pe() + 500, Hs && Un()) | |
| } | |
| } | |
| function ur(e) { | |
| Cn !== null && Cn.tag === 0 && !(q & 6) && zr(); | |
| var t = q; | |
| q |= 1; | |
| var n = lt.transition, | |
| r = ee; | |
| try { | |
| if (lt.transition = null, ee = 1, e) return e() | |
| } finally { | |
| ee = r, lt.transition = n, q = t, !(q & 6) && Un() | |
| } | |
| } | |
| function Xu() { | |
| Ke = Or.current, ie(Or) | |
| } | |
| function rr(e, t) { | |
| e.finishedWork = null, e.finishedLanes = 0; | |
| var n = e.timeoutHandle; | |
| if (n !== -1 && (e.timeoutHandle = -1, Tv(n)), me !== null) | |
| for (n = me.return; n !== null;) { | |
| var r = n; | |
| switch (ju(r), r.tag) { | |
| case 1: | |
| r = r.type.childContextTypes, r != null && gs(); | |
| break; | |
| case 3: | |
| to(), ie(We), ie(Ae), zu(); | |
| break; | |
| case 5: | |
| Fu(r); | |
| break; | |
| case 4: | |
| to(); | |
| break; | |
| case 13: | |
| ie(ae); | |
| break; | |
| case 19: | |
| ie(ae); | |
| break; | |
| case 10: | |
| Mu(r.type._context); | |
| break; | |
| case 22: | |
| case 23: | |
| Xu() | |
| } | |
| n = n.return | |
| } | |
| if (Se = e, me = e = An(e.current, null), Ee = Ke = t, ve = 0, ri = null, Ku = Ys = ar = 0, Ue = Fo = null, Yn !== null) { | |
| for (t = 0; t < Yn.length; t++) | |
| if (n = Yn[t], r = n.interleaved, r !== null) { | |
| n.interleaved = null; | |
| var o = r.next, | |
| i = n.pending; | |
| if (i !== null) { | |
| var s = i.next; | |
| i.next = o, r.next = s | |
| } | |
| n.pending = r | |
| } | |
| Yn = null | |
| } | |
| return e | |
| } | |
| function Mh(e, t) { | |
| do { | |
| var n = me; | |
| try { | |
| if (Ou(), Zi.current = bs, Es) { | |
| for (var r = ue.memoizedState; r !== null;) { | |
| var o = r.queue; | |
| o !== null && (o.pending = null), r = r.next | |
| } | |
| Es = !1 | |
| } | |
| if (lr = 0, we = ge = ue = null, Do = !1, ei = 0, Qu.current = null, n === null || n.return === null) { | |
| ve = 1, ri = t, me = null; | |
| break | |
| } | |
| e: { | |
| var i = e, | |
| s = n.return, | |
| l = n, | |
| a = t; | |
| if (t = Ee, l.flags |= 32768, a !== null && typeof a == "object" && typeof a.then == "function") { | |
| var u = a, | |
| c = l, | |
| f = c.tag; | |
| if (!(c.mode & 1) && (f === 0 || f === 11 || f === 15)) { | |
| var m = c.alternate; | |
| m ? (c.updateQueue = m.updateQueue, c.memoizedState = m.memoizedState, c.lanes = m.lanes) : (c.updateQueue = null, c.memoizedState = null) | |
| } | |
| var d = Sd(s); | |
| if (d !== null) { | |
| d.flags &= -257, kd(d, s, l, i, t), d.mode & 1 && wd(i, u, t), t = d, a = u; | |
| var x = t.updateQueue; | |
| if (x === null) { | |
| var y = new Set; | |
| y.add(a), t.updateQueue = y | |
| } else x.add(a); | |
| break e | |
| } else { | |
| if (!(t & 1)) { | |
| wd(i, u, t), qu(); | |
| break e | |
| } | |
| a = Error(j(426)) | |
| } | |
| } else if (le && l.mode & 1) { | |
| var w = Sd(s); | |
| if (w !== null) { | |
| !(w.flags & 65536) && (w.flags |= 256), kd(w, s, l, i, t), _u(no(a, l)); | |
| break e | |
| } | |
| } | |
| i = a = no(a, l), | |
| ve !== 4 && (ve = 2), | |
| Fo === null ? Fo = [i] : Fo.push(i), | |
| i = s;do { | |
| switch (i.tag) { | |
| case 3: | |
| i.flags |= 65536, t &= -t, i.lanes |= t; | |
| var h = yh(i, a, t); | |
| hd(i, h); | |
| break e; | |
| case 1: | |
| l = a; | |
| var p = i.type, | |
| v = i.stateNode; | |
| if (!(i.flags & 128) && (typeof p.getDerivedStateFromError == "function" || v !== null && typeof v.componentDidCatch == "function" && (jn === null || !jn.has(v)))) { | |
| i.flags |= 65536, t &= -t, i.lanes |= t; | |
| var k = vh(i, l, t); | |
| hd(i, k); | |
| break e | |
| } | |
| } | |
| i = i.return | |
| } while (i !== null) | |
| } | |
| Ih(n) | |
| } catch (C) { | |
| t = C, me === n && n !== null && (me = n = n.return); | |
| continue | |
| } | |
| break | |
| } while (!0) | |
| } | |
| function Lh() { | |
| var e = Ns.current; | |
| return Ns.current = bs, e === null ? bs : e | |
| } | |
| function qu() { | |
| (ve === 0 || ve === 3 || ve === 2) && (ve = 4), Se === null || !(ar & 268435455) && !(Ys & 268435455) || gn(Se, Ee) | |
| } | |
| function Rs(e, t) { | |
| var n = q; | |
| q |= 2; | |
| var r = Lh(); | |
| (Se !== e || Ee !== t) && (Wt = null, rr(e, t)); | |
| do try { | |
| Jv(); | |
| break | |
| } catch (o) { | |
| Mh(e, o) | |
| } | |
| while (!0); | |
| if (Ou(), q = n, Ns.current = r, me !== null) throw Error(j(261)); | |
| return Se = null, Ee = 0, ve | |
| } | |
| function Jv() { | |
| for (; me !== null;) Dh(me) | |
| } | |
| function e0() { | |
| for (; me !== null && !by();) Dh(me) | |
| } | |
| function Dh(e) { | |
| var t = zh(e.alternate, e, Ke); | |
| e.memoizedProps = e.pendingProps, t === null ? Ih(e) : me = t, Qu.current = null | |
| } | |
| function Ih(e) { | |
| var t = e; | |
| do { | |
| var n = t.alternate; | |
| if (e = t.return, t.flags & 32768) { | |
| if (n = Kv(n, t), n !== null) { | |
| n.flags &= 32767, me = n; | |
| return | |
| } | |
| if (e !== null) e.flags |= 32768, e.subtreeFlags = 0, e.deletions = null; | |
| else { | |
| ve = 6, me = null; | |
| return | |
| } | |
| } else if (n = Qv(n, t, Ke), n !== null) { | |
| me = n; | |
| return | |
| } | |
| if (t = t.sibling, t !== null) { | |
| me = t; | |
| return | |
| } | |
| me = t = e | |
| } while (t !== null); | |
| ve === 0 && (ve = 5) | |
| } | |
| function Qn(e, t, n) { | |
| var r = ee, | |
| o = lt.transition; | |
| try { | |
| lt.transition = null, ee = 1, t0(e, t, n, r) | |
| } finally { | |
| lt.transition = o, ee = r | |
| } | |
| return null | |
| } | |
| function t0(e, t, n, r) { | |
| do zr(); while (Cn !== null); | |
| if (q & 6) throw Error(j(327)); | |
| n = e.finishedWork; | |
| var o = e.finishedLanes; | |
| if (n === null) return null; | |
| if (e.finishedWork = null, e.finishedLanes = 0, n === e.current) throw Error(j(177)); | |
| e.callbackNode = null, e.callbackPriority = 0; | |
| var i = n.lanes | n.childLanes; | |
| if (Ly(e, i), e === Se && (me = Se = null, Ee = 0), !(n.subtreeFlags & 2064) && !(n.flags & 2064) || Ii || (Ii = !0, $h(cs, function() { | |
| return zr(), null | |
| })), i = (n.flags & 15990) !== 0, n.subtreeFlags & 15990 || i) { | |
| i = lt.transition, lt.transition = null; | |
| var s = ee; | |
| ee = 1; | |
| var l = q; | |
| q |= 4, Qu.current = null, Yv(e, n), _h(n, e), Sv(ka), fs = !!Sa, ka = Sa = null, e.current = n, Xv(n), Ny(), q = l, ee = s, lt.transition = i | |
| } else e.current = n; | |
| if (Ii && (Ii = !1, Cn = e, Ts = o), i = e.pendingLanes, i === 0 && (jn = null), Ry(n.stateNode), He(e, pe()), t !== null) | |
| for (r = e.onRecoverableError, n = 0; n < t.length; n++) o = t[n], r(o.value, { | |
| componentStack: o.stack, | |
| digest: o.digest | |
| }); | |
| if (Ps) throw Ps = !1, e = Ba, Ba = null, e; | |
| return Ts & 1 && e.tag !== 0 && zr(), i = e.pendingLanes, i & 1 ? e === Wa ? zo++ : (zo = 0, Wa = e) : zo = 0, Un(), null | |
| } | |
| function zr() { | |
| if (Cn !== null) { | |
| var e = yp(Ts), | |
| t = lt.transition, | |
| n = ee; | |
| try { | |
| if (lt.transition = null, ee = 16 > e ? 16 : e, Cn === null) var r = !1; | |
| else { | |
| if (e = Cn, Cn = null, Ts = 0, q & 6) throw Error(j(331)); | |
| var o = q; | |
| for (q |= 4, D = e.current; D !== null;) { | |
| var i = D, | |
| s = i.child; | |
| if (D.flags & 16) { | |
| var l = i.deletions; | |
| if (l !== null) { | |
| for (var a = 0; a < l.length; a++) { | |
| var u = l[a]; | |
| for (D = u; D !== null;) { | |
| var c = D; | |
| switch (c.tag) { | |
| case 0: | |
| case 11: | |
| case 15: | |
| Io(8, c, i) | |
| } | |
| var f = c.child; | |
| if (f !== null) f.return = c, D = f; | |
| else | |
| for (; D !== null;) { | |
| c = D; | |
| var m = c.sibling, | |
| d = c.return; | |
| if (Th(c), c === u) { | |
| D = null; | |
| break | |
| } | |
| if (m !== null) { | |
| m.return = d, D = m; | |
| break | |
| } | |
| D = d | |
| } | |
| } | |
| } | |
| var x = i.alternate; | |
| if (x !== null) { | |
| var y = x.child; | |
| if (y !== null) { | |
| x.child = null; | |
| do { | |
| var w = y.sibling; | |
| y.sibling = null, y = w | |
| } while (y !== null) | |
| } | |
| } | |
| D = i | |
| } | |
| } | |
| if (i.subtreeFlags & 2064 && s !== null) s.return = i, D = s; | |
| else e: for (; D !== null;) { | |
| if (i = D, i.flags & 2048) switch (i.tag) { | |
| case 0: | |
| case 11: | |
| case 15: | |
| Io(9, i, i.return) | |
| } | |
| var h = i.sibling; | |
| if (h !== null) { | |
| h.return = i.return, D = h; | |
| break e | |
| } | |
| D = i.return | |
| } | |
| } | |
| var p = e.current; | |
| for (D = p; D !== null;) { | |
| s = D; | |
| var v = s.child; | |
| if (s.subtreeFlags & 2064 && v !== null) v.return = s, D = v; | |
| else e: for (s = p; D !== null;) { | |
| if (l = D, l.flags & 2048) try { | |
| switch (l.tag) { | |
| case 0: | |
| case 11: | |
| case 15: | |
| Gs(9, l) | |
| } | |
| } catch (C) { | |
| fe(l, l.return, C) | |
| } | |
| if (l === s) { | |
| D = null; | |
| break e | |
| } | |
| var k = l.sibling; | |
| if (k !== null) { | |
| k.return = l.return, D = k; | |
| break e | |
| } | |
| D = l.return | |
| } | |
| } | |
| if (q = o, Un(), Dt && typeof Dt.onPostCommitFiberRoot == "function") try { | |
| Dt.onPostCommitFiberRoot($s, e) | |
| } catch {} | |
| r = !0 | |
| } | |
| return r | |
| } finally { | |
| ee = n, lt.transition = t | |
| } | |
| } | |
| return !1 | |
| } | |
| function Ld(e, t, n) { | |
| t = no(n, t), t = yh(e, t, 1), e = Rn(e, t, 1), t = De(), e !== null && (di(e, 1, t), He(e, t)) | |
| } | |
| function fe(e, t, n) { | |
| if (e.tag === 3) Ld(e, e, n); | |
| else | |
| for (; t !== null;) { | |
| if (t.tag === 3) { | |
| Ld(t, e, n); | |
| break | |
| } else if (t.tag === 1) { | |
| var r = t.stateNode; | |
| if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (jn === null || !jn.has(r))) { | |
| e = no(n, e), e = vh(t, e, 1), t = Rn(t, e, 1), e = De(), t !== null && (di(t, 1, e), He(t, e)); | |
| break | |
| } | |
| } | |
| t = t.return | |
| } | |
| } | |
| function n0(e, t, n) { | |
| var r = e.pingCache; | |
| r !== null && r.delete(t), t = De(), e.pingedLanes |= e.suspendedLanes & n, Se === e && (Ee & n) === n && (ve === 4 || ve === 3 && (Ee & 130023424) === Ee && 500 > pe() - Gu ? rr(e, 0) : Ku |= n), He(e, t) | |
| } | |
| function Fh(e, t) { | |
| t === 0 && (e.mode & 1 ? (t = Pi, Pi <<= 1, !(Pi & 130023424) && (Pi = 4194304)) : t = 1); | |
| var n = De(); | |
| e = qt(e, t), e !== null && (di(e, t, n), He(e, n)) | |
| } | |
| function r0(e) { | |
| var t = e.memoizedState, | |
| n = 0; | |
| t !== null && (n = t.retryLane), Fh(e, n) | |
| } | |
| function o0(e, t) { | |
| var n = 0; | |
| switch (e.tag) { | |
| case 13: | |
| var r = e.stateNode, | |
| o = e.memoizedState; | |
| o !== null && (n = o.retryLane); | |
| break; | |
| case 19: | |
| r = e.stateNode; | |
| break; | |
| default: | |
| throw Error(j(314)) | |
| } | |
| r !== null && r.delete(t), Fh(e, n) | |
| } | |
| var zh; | |
| zh = function(e, t, n) { | |
| if (e !== null) | |
| if (e.memoizedProps !== t.pendingProps || We.current) Be = !0; | |
| else { | |
| if (!(e.lanes & n) && !(t.flags & 128)) return Be = !1, Hv(e, t, n); | |
| Be = !!(e.flags & 131072) | |
| } | |
| else Be = !1, le && t.flags & 1048576 && Wp(t, xs, t.index); | |
| switch (t.lanes = 0, t.tag) { | |
| case 2: | |
| var r = t.type; | |
| es(e, t), e = t.pendingProps; | |
| var o = Zr(t, Ae.current); | |
| Fr(t, n), o = Uu(null, t, r, e, o, n); | |
| var i = Bu(); | |
| return t.flags |= 1, typeof o == "object" && o !== null && typeof o.render == "function" && o.$$typeof === void 0 ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Ve(r) ? (i = !0, ys(t)) : i = !1, t.memoizedState = o.state !== null && o.state !== void 0 ? o.state : null, Du(t), o.updater = Ks, t.stateNode = o, o._reactInternals = t, _a(t, r, e, n), t = Ma(null, t, r, !0, i, n)) : (t.tag = 0, le && i && Ru(t), Me(null, t, o, n), t = t.child), t; | |
| case 16: | |
| r = t.elementType; | |
| e: { | |
| switch (es(e, t), e = t.pendingProps, o = r._init, r = o(r._payload), t.type = r, o = t.tag = s0(r), e = mt(r, e), o) { | |
| case 0: | |
| t = Oa(null, t, r, e, n); | |
| break e; | |
| case 1: | |
| t = bd(null, t, r, e, n); | |
| break e; | |
| case 11: | |
| t = Cd(null, t, r, e, n); | |
| break e; | |
| case 14: | |
| t = Ed(null, t, r, mt(r.type, e), n); | |
| break e | |
| } | |
| throw Error(j(306, r, "")) | |
| } | |
| return t; | |
| case 0: | |
| return r = t.type, o = t.pendingProps, o = t.elementType === r ? o : mt(r, o), Oa(e, t, r, o, n); | |
| case 1: | |
| return r = t.type, o = t.pendingProps, o = t.elementType === r ? o : mt(r, o), bd(e, t, r, o, n); | |
| case 3: | |
| e: { | |
| if (kh(t), e === null) throw Error(j(387));r = t.pendingProps, | |
| i = t.memoizedState, | |
| o = i.element, | |
| Yp(e, t), | |
| ks(t, r, null, n); | |
| var s = t.memoizedState; | |
| if (r = s.element, i.isDehydrated) | |
| if (i = { | |
| element: r, | |
| isDehydrated: !1, | |
| cache: s.cache, | |
| pendingSuspenseBoundaries: s.pendingSuspenseBoundaries, | |
| transitions: s.transitions | |
| }, t.updateQueue.baseState = i, t.memoizedState = i, t.flags & 256) { | |
| o = no(Error(j(423)), t), t = Nd(e, t, r, n, o); | |
| break e | |
| } else if (r !== o) { | |
| o = no(Error(j(424)), t), t = Nd(e, t, r, n, o); | |
| break e | |
| } else | |
| for (Xe = Tn(t.stateNode.containerInfo.firstChild), qe = t, le = !0, St = null, n = Kp(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 4096, n = n.sibling; | |
| else { | |
| if (Jr(), r === o) { | |
| t = Zt(e, t, n); | |
| break e | |
| } | |
| Me(e, t, r, n) | |
| } | |
| t = t.child | |
| } | |
| return t; | |
| case 5: | |
| return Xp(t), e === null && Ta(t), r = t.type, o = t.pendingProps, i = e !== null ? e.memoizedProps : null, s = o.children, Ca(r, o) ? s = null : i !== null && Ca(r, i) && (t.flags |= 32), Sh(e, t), Me(e, t, s, n), t.child; | |
| case 6: | |
| return e === null && Ta(t), null; | |
| case 13: | |
| return Ch(e, t, n); | |
| case 4: | |
| return Iu(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = eo(t, null, r, n) : Me(e, t, r, n), t.child; | |
| case 11: | |
| return r = t.type, o = t.pendingProps, o = t.elementType === r ? o : mt(r, o), Cd(e, t, r, o, n); | |
| case 7: | |
| return Me(e, t, t.pendingProps, n), t.child; | |
| case 8: | |
| return Me(e, t, t.pendingProps.children, n), t.child; | |
| case 12: | |
| return Me(e, t, t.pendingProps.children, n), t.child; | |
| case 10: | |
| e: { | |
| if (r = t.type._context, o = t.pendingProps, i = t.memoizedProps, s = o.value, ne(ws, r._currentValue), r._currentValue = s, i !== null) | |
| if (Et(i.value, s)) { | |
| if (i.children === o.children && !We.current) { | |
| t = Zt(e, t, n); | |
| break e | |
| } | |
| } else | |
| for (i = t.child, i !== null && (i.return = t); i !== null;) { | |
| var l = i.dependencies; | |
| if (l !== null) { | |
| s = i.child; | |
| for (var a = l.firstContext; a !== null;) { | |
| if (a.context === r) { | |
| if (i.tag === 1) { | |
| a = Gt(-1, n & -n), a.tag = 2; | |
| var u = i.updateQueue; | |
| if (u !== null) { | |
| u = u.shared; | |
| var c = u.pending; | |
| c === null ? a.next = a : (a.next = c.next, c.next = a), u.pending = a | |
| } | |
| } | |
| i.lanes |= n, a = i.alternate, a !== null && (a.lanes |= n), Ra(i.return, n, t), l.lanes |= n; | |
| break | |
| } | |
| a = a.next | |
| } | |
| } else if (i.tag === 10) s = i.type === t.type ? null : i.child; | |
| else if (i.tag === 18) { | |
| if (s = i.return, s === null) throw Error(j(341)); | |
| s.lanes |= n, l = s.alternate, l !== null && (l.lanes |= n), Ra(s, n, t), s = i.sibling | |
| } else s = i.child; | |
| if (s !== null) s.return = i; | |
| else | |
| for (s = i; s !== null;) { | |
| if (s === t) { | |
| s = null; | |
| break | |
| } | |
| if (i = s.sibling, i !== null) { | |
| i.return = s.return, s = i; | |
| break | |
| } | |
| s = s.return | |
| } | |
| i = s | |
| } | |
| Me(e, t, o.children, n), | |
| t = t.child | |
| } | |
| return t; | |
| case 9: | |
| return o = t.type, r = t.pendingProps.children, Fr(t, n), o = at(o), r = r(o), t.flags |= 1, Me(e, t, r, n), t.child; | |
| case 14: | |
| return r = t.type, o = mt(r, t.pendingProps), o = mt(r.type, o), Ed(e, t, r, o, n); | |
| case 15: | |
| return xh(e, t, t.type, t.pendingProps, n); | |
| case 17: | |
| return r = t.type, o = t.pendingProps, o = t.elementType === r ? o : mt(r, o), es(e, t), t.tag = 1, Ve(r) ? (e = !0, ys(t)) : e = !1, Fr(t, n), gh(t, r, o), _a(t, r, o, n), Ma(null, t, r, !0, e, n); | |
| case 19: | |
| return Eh(e, t, n); | |
| case 22: | |
| return wh(e, t, n) | |
| } | |
| throw Error(j(156, t.tag)) | |
| }; | |
| function $h(e, t) { | |
| return pp(e, t) | |
| } | |
| function i0(e, t, n, r) { | |
| this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null | |
| } | |
| function st(e, t, n, r) { | |
| return new i0(e, t, n, r) | |
| } | |
| function Zu(e) { | |
| return e = e.prototype, !(!e || !e.isReactComponent) | |
| } | |
| function s0(e) { | |
| if (typeof e == "function") return Zu(e) ? 1 : 0; | |
| if (e != null) { | |
| if (e = e.$$typeof, e === yu) return 11; | |
| if (e === vu) return 14 | |
| } | |
| return 2 | |
| } | |
| function An(e, t) { | |
| var n = e.alternate; | |
| return n === null ? (n = st(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 14680064, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : { | |
| lanes: t.lanes, | |
| firstContext: t.firstContext | |
| }, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n | |
| } | |
| function rs(e, t, n, r, o, i) { | |
| var s = 2; | |
| if (r = e, typeof e == "function") Zu(e) && (s = 1); | |
| else if (typeof e == "string") s = 5; | |
| else e: switch (e) { | |
| case Cr: | |
| return or(n.children, o, i, t); | |
| case gu: | |
| s = 8, o |= 8; | |
| break; | |
| case ta: | |
| return e = st(12, n, t, o | 2), e.elementType = ta, e.lanes = i, e; | |
| case na: | |
| return e = st(13, n, t, o), e.elementType = na, e.lanes = i, e; | |
| case ra: | |
| return e = st(19, n, t, o), e.elementType = ra, e.lanes = i, e; | |
| case Xf: | |
| return Xs(n, o, i, t); | |
| default: | |
| if (typeof e == "object" && e !== null) switch (e.$$typeof) { | |
| case Gf: | |
| s = 10; | |
| break e; | |
| case Yf: | |
| s = 9; | |
| break e; | |
| case yu: | |
| s = 11; | |
| break e; | |
| case vu: | |
| s = 14; | |
| break e; | |
| case pn: | |
| s = 16, r = null; | |
| break e | |
| } | |
| throw Error(j(130, e == null ? e : typeof e, "")) | |
| } | |
| return t = st(s, n, t, o), t.elementType = e, t.type = r, t.lanes = i, t | |
| } | |
| function or(e, t, n, r) { | |
| return e = st(7, e, r, t), e.lanes = n, e | |
| } | |
| function Xs(e, t, n, r) { | |
| return e = st(22, e, r, t), e.elementType = Xf, e.lanes = n, e.stateNode = { | |
| isHidden: !1 | |
| }, e | |
| } | |
| function Vl(e, t, n) { | |
| return e = st(6, e, null, t), e.lanes = n, e | |
| } | |
| function Hl(e, t, n) { | |
| return t = st(4, e.children !== null ? e.children : [], e.key, t), t.lanes = n, t.stateNode = { | |
| containerInfo: e.containerInfo, | |
| pendingChildren: null, | |
| implementation: e.implementation | |
| }, t | |
| } | |
| function l0(e, t, n, r, o) { | |
| this.tag = t, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = bl(0), this.expirationTimes = bl(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = bl(0), this.identifierPrefix = r, this.onRecoverableError = o, this.mutableSourceEagerHydrationData = null | |
| } | |
| function Ju(e, t, n, r, o, i, s, l, a) { | |
| return e = new l0(e, t, n, l, a), t === 1 ? (t = 1, i === !0 && (t |= 8)) : t = 0, i = st(3, null, null, t), e.current = i, i.stateNode = e, i.memoizedState = { | |
| element: r, | |
| isDehydrated: n, | |
| cache: null, | |
| transitions: null, | |
| pendingSuspenseBoundaries: null | |
| }, Du(i), e | |
| } | |
| function a0(e, t, n) { | |
| var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; | |
| return { | |
| $$typeof: kr, | |
| key: r == null ? null : "" + r, | |
| children: e, | |
| containerInfo: t, | |
| implementation: n | |
| } | |
| } | |
| function Uh(e) { | |
| if (!e) return Mn; | |
| e = e._reactInternals; | |
| e: { | |
| if (fr(e) !== e || e.tag !== 1) throw Error(j(170)); | |
| var t = e;do { | |
| switch (t.tag) { | |
| case 3: | |
| t = t.stateNode.context; | |
| break e; | |
| case 1: | |
| if (Ve(t.type)) { | |
| t = t.stateNode.__reactInternalMemoizedMergedChildContext; | |
| break e | |
| } | |
| } | |
| t = t.return | |
| } while (t !== null); | |
| throw Error(j(171)) | |
| } | |
| if (e.tag === 1) { | |
| var n = e.type; | |
| if (Ve(n)) return Up(e, n, t) | |
| } | |
| return t | |
| } | |
| function Bh(e, t, n, r, o, i, s, l, a) { | |
| return e = Ju(n, r, !0, e, o, i, s, l, a), e.context = Uh(null), n = e.current, r = De(), o = _n(n), i = Gt(r, o), i.callback = t ?? null, Rn(n, i, o), e.current.lanes = o, di(e, o, r), He(e, r), e | |
| } | |
| function qs(e, t, n, r) { | |
| var o = t.current, | |
| i = De(), | |
| s = _n(o); | |
| return n = Uh(n), t.context === null ? t.context = n : t.pendingContext = n, t = Gt(i, s), t.payload = { | |
| element: e | |
| }, r = r === void 0 ? null : r, r !== null && (t.callback = r), e = Rn(o, t, s), e !== null && (Ct(e, o, s, i), qi(e, o, s)), s | |
| } | |
| function js(e) { | |
| if (e = e.current, !e.child) return null; | |
| switch (e.child.tag) { | |
| case 5: | |
| return e.child.stateNode; | |
| default: | |
| return e.child.stateNode | |
| } | |
| } | |
| function Dd(e, t) { | |
| if (e = e.memoizedState, e !== null && e.dehydrated !== null) { | |
| var n = e.retryLane; | |
| e.retryLane = n !== 0 && n < t ? n : t | |
| } | |
| } | |
| function ec(e, t) { | |
| Dd(e, t), (e = e.alternate) && Dd(e, t) | |
| } | |
| function u0() { | |
| return null | |
| } | |
| var Wh = typeof reportError == "function" ? reportError : function(e) { | |
| console.error(e) | |
| }; | |
| function tc(e) { | |
| this._internalRoot = e | |
| } | |
| Zs.prototype.render = tc.prototype.render = function(e) { | |
| var t = this._internalRoot; | |
| if (t === null) throw Error(j(409)); | |
| qs(e, t, null, null) | |
| }; | |
| Zs.prototype.unmount = tc.prototype.unmount = function() { | |
| var e = this._internalRoot; | |
| if (e !== null) { | |
| this._internalRoot = null; | |
| var t = e.containerInfo; | |
| ur(function() { | |
| qs(null, e, null, null) | |
| }), t[Xt] = null | |
| } | |
| }; | |
| function Zs(e) { | |
| this._internalRoot = e | |
| } | |
| Zs.prototype.unstable_scheduleHydration = function(e) { | |
| if (e) { | |
| var t = wp(); | |
| e = { | |
| blockedOn: null, | |
| target: e, | |
| priority: t | |
| }; | |
| for (var n = 0; n < mn.length && t !== 0 && t < mn[n].priority; n++); | |
| mn.splice(n, 0, e), n === 0 && kp(e) | |
| } | |
| }; | |
| function nc(e) { | |
| return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11) | |
| } | |
| function Js(e) { | |
| return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11 && (e.nodeType !== 8 || e.nodeValue !== " react-mount-point-unstable ")) | |
| } | |
| function Id() {} | |
| function c0(e, t, n, r, o) { | |
| if (o) { | |
| if (typeof r == "function") { | |
| var i = r; | |
| r = function() { | |
| var u = js(s); | |
| i.call(u) | |
| } | |
| } | |
| var s = Bh(t, r, e, 0, null, !1, !1, "", Id); | |
| return e._reactRootContainer = s, e[Xt] = s.current, Yo(e.nodeType === 8 ? e.parentNode : e), ur(), s | |
| } | |
| for (; o = e.lastChild;) e.removeChild(o); | |
| if (typeof r == "function") { | |
| var l = r; | |
| r = function() { | |
| var u = js(a); | |
| l.call(u) | |
| } | |
| } | |
| var a = Ju(e, 0, !1, null, null, !1, !1, "", Id); | |
| return e._reactRootContainer = a, e[Xt] = a.current, Yo(e.nodeType === 8 ? e.parentNode : e), ur(function() { | |
| qs(t, a, n, r) | |
| }), a | |
| } | |
| function el(e, t, n, r, o) { | |
| var i = n._reactRootContainer; | |
| if (i) { | |
| var s = i; | |
| if (typeof o == "function") { | |
| var l = o; | |
| o = function() { | |
| var a = js(s); | |
| l.call(a) | |
| } | |
| } | |
| qs(t, s, e, o) | |
| } else s = c0(n, t, e, o, r); | |
| return js(s) | |
| } | |
| vp = function(e) { | |
| switch (e.tag) { | |
| case 3: | |
| var t = e.stateNode; | |
| if (t.current.memoizedState.isDehydrated) { | |
| var n = Po(t.pendingLanes); | |
| n !== 0 && (Su(t, n | 1), He(t, pe()), !(q & 6) && (ro = pe() + 500, Un())) | |
| } | |
| break; | |
| case 13: | |
| ur(function() { | |
| var r = qt(e, 1); | |
| if (r !== null) { | |
| var o = De(); | |
| Ct(r, e, 1, o) | |
| } | |
| }), ec(e, 1) | |
| } | |
| }; | |
| ku = function(e) { | |
| if (e.tag === 13) { | |
| var t = qt(e, 134217728); | |
| if (t !== null) { | |
| var n = De(); | |
| Ct(t, e, 134217728, n) | |
| } | |
| ec(e, 134217728) | |
| } | |
| }; | |
| xp = function(e) { | |
| if (e.tag === 13) { | |
| var t = _n(e), | |
| n = qt(e, t); | |
| if (n !== null) { | |
| var r = De(); | |
| Ct(n, e, t, r) | |
| } | |
| ec(e, t) | |
| } | |
| }; | |
| wp = function() { | |
| return ee | |
| }; | |
| Sp = function(e, t) { | |
| var n = ee; | |
| try { | |
| return ee = e, t() | |
| } finally { | |
| ee = n | |
| } | |
| }; | |
| pa = function(e, t, n) { | |
| switch (t) { | |
| case "input": | |
| if (sa(e, n), t = n.name, n.type === "radio" && t != null) { | |
| for (n = e; n.parentNode;) n = n.parentNode; | |
| for (n = n.querySelectorAll("input[name=" + JSON.stringify("" + t) + '][type="radio"]'), t = 0; t < n.length; t++) { | |
| var r = n[t]; | |
| if (r !== e && r.form === e.form) { | |
| var o = Vs(r); | |
| if (!o) throw Error(j(90)); | |
| Zf(r), sa(r, o) | |
| } | |
| } | |
| } | |
| break; | |
| case "textarea": | |
| ep(e, n); | |
| break; | |
| case "select": | |
| t = n.value, t != null && Mr(e, !!n.multiple, t, !1) | |
| } | |
| }; | |
| lp = Yu; | |
| ap = ur; | |
| var d0 = { | |
| usingClientEntryPoint: !1, | |
| Events: [pi, Pr, Vs, ip, sp, Yu] | |
| }, | |
| ko = { | |
| findFiberByHostInstance: Gn, | |
| bundleType: 0, | |
| version: "18.3.1", | |
| rendererPackageName: "react-dom" | |
| }, | |
| f0 = { | |
| bundleType: ko.bundleType, | |
| version: ko.version, | |
| rendererPackageName: ko.rendererPackageName, | |
| rendererConfig: ko.rendererConfig, | |
| overrideHookState: null, | |
| overrideHookStateDeletePath: null, | |
| overrideHookStateRenamePath: null, | |
| overrideProps: null, | |
| overridePropsDeletePath: null, | |
| overridePropsRenamePath: null, | |
| setErrorHandler: null, | |
| setSuspenseHandler: null, | |
| scheduleUpdate: null, | |
| currentDispatcherRef: tn.ReactCurrentDispatcher, | |
| findHostInstanceByFiber: function(e) { | |
| return e = dp(e), e === null ? null : e.stateNode | |
| }, | |
| findFiberByHostInstance: ko.findFiberByHostInstance || u0, | |
| findHostInstancesForRefresh: null, | |
| scheduleRefresh: null, | |
| scheduleRoot: null, | |
| setRefreshHandler: null, | |
| getCurrentFiber: null, | |
| reconcilerVersion: "18.3.1-next-f1338f8080-20240426" | |
| }; | |
| if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") { | |
| var Fi = __REACT_DEVTOOLS_GLOBAL_HOOK__; | |
| if (!Fi.isDisabled && Fi.supportsFiber) try { | |
| $s = Fi.inject(f0), Dt = Fi | |
| } catch {} | |
| } | |
| et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = d0; | |
| et.createPortal = function(e, t) { | |
| var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; | |
| if (!nc(t)) throw Error(j(200)); | |
| return a0(e, t, null, n) | |
| }; | |
| et.createRoot = function(e, t) { | |
| if (!nc(e)) throw Error(j(299)); | |
| var n = !1, | |
| r = "", | |
| o = Wh; | |
| return t != null && (t.unstable_strictMode === !0 && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onRecoverableError !== void 0 && (o = t.onRecoverableError)), t = Ju(e, 1, !1, null, null, n, !1, r, o), e[Xt] = t.current, Yo(e.nodeType === 8 ? e.parentNode : e), new tc(t) | |
| }; | |
| et.findDOMNode = function(e) { | |
| if (e == null) return null; | |
| if (e.nodeType === 1) return e; | |
| var t = e._reactInternals; | |
| if (t === void 0) throw typeof e.render == "function" ? Error(j(188)) : (e = Object.keys(e).join(","), Error(j(268, e))); | |
| return e = dp(t), e = e === null ? null : e.stateNode, e | |
| }; | |
| et.flushSync = function(e) { | |
| return ur(e) | |
| }; | |
| et.hydrate = function(e, t, n) { | |
| if (!Js(t)) throw Error(j(200)); | |
| return el(null, e, t, !0, n) | |
| }; | |
| et.hydrateRoot = function(e, t, n) { | |
| if (!nc(e)) throw Error(j(405)); | |
| var r = n != null && n.hydratedSources || null, | |
| o = !1, | |
| i = "", | |
| s = Wh; | |
| if (n != null && (n.unstable_strictMode === !0 && (o = !0), n.identifierPrefix !== void 0 && (i = n.identifierPrefix), n.onRecoverableError !== void 0 && (s = n.onRecoverableError)), t = Bh(t, null, e, 1, n ?? null, o, !1, i, s), e[Xt] = t.current, Yo(e), r) | |
| for (e = 0; e < r.length; e++) n = r[e], o = n._getVersion, o = o(n._source), t.mutableSourceEagerHydrationData == null ? t.mutableSourceEagerHydrationData = [n, o] : t.mutableSourceEagerHydrationData.push(n, o); | |
| return new Zs(t) | |
| }; | |
| et.render = function(e, t, n) { | |
| if (!Js(t)) throw Error(j(200)); | |
| return el(null, e, t, !1, n) | |
| }; | |
| et.unmountComponentAtNode = function(e) { | |
| if (!Js(e)) throw Error(j(40)); | |
| return e._reactRootContainer ? (ur(function() { | |
| el(null, null, e, !1, function() { | |
| e._reactRootContainer = null, e[Xt] = null | |
| }) | |
| }), !0) : !1 | |
| }; | |
| et.unstable_batchedUpdates = Yu; | |
| et.unstable_renderSubtreeIntoContainer = function(e, t, n, r) { | |
| if (!Js(n)) throw Error(j(200)); | |
| if (e == null || e._reactInternals === void 0) throw Error(j(38)); | |
| return el(e, t, n, !1, r) | |
| }; | |
| et.version = "18.3.1-next-f1338f8080-20240426"; | |
| function Vh() { | |
| if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { | |
| __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vh) | |
| } catch (e) { | |
| console.error(e) | |
| } | |
| } | |
| Vh(), Vf.exports = et; | |
| var mi = Vf.exports; | |
| const Hh = _f(mi); | |
| var Qh, Fd = mi; | |
| Qh = Fd.createRoot, Fd.hydrateRoot; | |
| const p0 = 1, | |
| h0 = 1e6; | |
| let Ql = 0; | |
| function m0() { | |
| return Ql = (Ql + 1) % Number.MAX_SAFE_INTEGER, Ql.toString() | |
| } | |
| const Kl = new Map, | |
| zd = e => { | |
| if (Kl.has(e)) return; | |
| const t = setTimeout(() => { | |
| Kl.delete(e), $o({ | |
| type: "REMOVE_TOAST", | |
| toastId: e | |
| }) | |
| }, h0); | |
| Kl.set(e, t) | |
| }, | |
| g0 = (e, t) => { | |
| switch (t.type) { | |
| case "ADD_TOAST": | |
| return { ...e, | |
| toasts: [t.toast, ...e.toasts].slice(0, p0) | |
| }; | |
| case "UPDATE_TOAST": | |
| return { ...e, | |
| toasts: e.toasts.map(n => n.id === t.toast.id ? { ...n, | |
| ...t.toast | |
| } : n) | |
| }; | |
| case "DISMISS_TOAST": | |
| { | |
| const { | |
| toastId: n | |
| } = t; | |
| return n ? zd(n) : e.toasts.forEach(r => { | |
| zd(r.id) | |
| }), | |
| { ...e, | |
| toasts: e.toasts.map(r => r.id === n || n === void 0 ? { ...r, | |
| open: !1 | |
| } : r) | |
| } | |
| } | |
| case "REMOVE_TOAST": | |
| return t.toastId === void 0 ? { ...e, | |
| toasts: [] | |
| } : { ...e, | |
| toasts: e.toasts.filter(n => n.id !== t.toastId) | |
| } | |
| } | |
| }, | |
| os = []; | |
| let is = { | |
| toasts: [] | |
| }; | |
| function $o(e) { | |
| is = g0(is, e), os.forEach(t => { | |
| t(is) | |
| }) | |
| } | |
| function y0({ ...e | |
| }) { | |
| const t = m0(), | |
| n = o => $o({ | |
| type: "UPDATE_TOAST", | |
| toast: { ...o, | |
| id: t | |
| } | |
| }), | |
| r = () => $o({ | |
| type: "DISMISS_TOAST", | |
| toastId: t | |
| }); | |
| return $o({ | |
| type: "ADD_TOAST", | |
| toast: { ...e, | |
| id: t, | |
| open: !0, | |
| onOpenChange: o => { | |
| o || r() | |
| } | |
| } | |
| }), { | |
| id: t, | |
| dismiss: r, | |
| update: n | |
| } | |
| } | |
| function v0() { | |
| const [e, t] = S.useState(is); | |
| return S.useEffect(() => (os.push(t), () => { | |
| const n = os.indexOf(t); | |
| n > -1 && os.splice(n, 1) | |
| }), [e]), { ...e, | |
| toast: y0, | |
| dismiss: n => $o({ | |
| type: "DISMISS_TOAST", | |
| toastId: n | |
| }) | |
| } | |
| } | |
| function ye(e, t, { | |
| checkForDefaultPrevented: n = !0 | |
| } = {}) { | |
| return function(o) { | |
| if (e == null || e(o), n === !1 || !o.defaultPrevented) return t == null ? void 0 : t(o) | |
| } | |
| } | |
| function $d(e, t) { | |
| if (typeof e == "function") return e(t); | |
| e != null && (e.current = t) | |
| } | |
| function Kh(...e) { | |
| return t => { | |
| let n = !1; | |
| const r = e.map(o => { | |
| const i = $d(o, t); | |
| return !n && typeof i == "function" && (n = !0), i | |
| }); | |
| if (n) return () => { | |
| for (let o = 0; o < r.length; o++) { | |
| const i = r[o]; | |
| typeof i == "function" ? i() : $d(e[o], null) | |
| } | |
| } | |
| } | |
| } | |
| function bt(...e) { | |
| return S.useCallback(Kh(...e), e) | |
| } | |
| function tl(e, t = []) { | |
| let n = []; | |
| function r(i, s) { | |
| const l = S.createContext(s), | |
| a = n.length; | |
| n = [...n, s]; | |
| const u = f => { | |
| var h; | |
| const { | |
| scope: m, | |
| children: d, | |
| ...x | |
| } = f, y = ((h = m == null ? void 0 : m[e]) == null ? void 0 : h[a]) || l, w = S.useMemo(() => x, Object.values(x)); | |
| return g.jsx(y.Provider, { | |
| value: w, | |
| children: d | |
| }) | |
| }; | |
| u.displayName = i + "Provider"; | |
| function c(f, m) { | |
| var y; | |
| const d = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[a]) || l, | |
| x = S.useContext(d); | |
| if (x) return x; | |
| if (s !== void 0) return s; | |
| throw new Error(`\`${f}\` must be used within \`${i}\``) | |
| } | |
| return [u, c] | |
| } | |
| const o = () => { | |
| const i = n.map(s => S.createContext(s)); | |
| return function(l) { | |
| const a = (l == null ? void 0 : l[e]) || i; | |
| return S.useMemo(() => ({ | |
| [`__scope${e}`]: { ...l, | |
| [e]: a | |
| } | |
| }), [l, a]) | |
| } | |
| }; | |
| return o.scopeName = e, [r, x0(o, ...t)] | |
| } | |
| function x0(...e) { | |
| const t = e[0]; | |
| if (e.length === 1) return t; | |
| const n = () => { | |
| const r = e.map(o => ({ | |
| useScope: o(), | |
| scopeName: o.scopeName | |
| })); | |
| return function(i) { | |
| const s = r.reduce((l, { | |
| useScope: a, | |
| scopeName: u | |
| }) => { | |
| const f = a(i)[`__scope${u}`]; | |
| return { ...l, | |
| ...f | |
| } | |
| }, {}); | |
| return S.useMemo(() => ({ | |
| [`__scope${t.scopeName}`]: s | |
| }), [s]) | |
| } | |
| }; | |
| return n.scopeName = t.scopeName, n | |
| } | |
| function _s(e) { | |
| const t = S0(e), | |
| n = S.forwardRef((r, o) => { | |
| const { | |
| children: i, | |
| ...s | |
| } = r, l = S.Children.toArray(i), a = l.find(C0); | |
| if (a) { | |
| const u = a.props.children, | |
| c = l.map(f => f === a ? S.Children.count(u) > 1 ? S.Children.only(null) : S.isValidElement(u) ? u.props.children : null : f); | |
| return g.jsx(t, { ...s, | |
| ref: o, | |
| children: S.isValidElement(u) ? S.cloneElement(u, void 0, c) : null | |
| }) | |
| } | |
| return g.jsx(t, { ...s, | |
| ref: o, | |
| children: i | |
| }) | |
| }); | |
| return n.displayName = `${e}.Slot`, n | |
| } | |
| var w0 = _s("Slot"); | |
| function S0(e) { | |
| const t = S.forwardRef((n, r) => { | |
| const { | |
| children: o, | |
| ...i | |
| } = n; | |
| if (S.isValidElement(o)) { | |
| const s = b0(o), | |
| l = E0(i, o.props); | |
| return o.type !== S.Fragment && (l.ref = r ? Kh(r, s) : s), S.cloneElement(o, l) | |
| } | |
| return S.Children.count(o) > 1 ? S.Children.only(null) : null | |
| }); | |
| return t.displayName = `${e}.SlotClone`, t | |
| } | |
| var Gh = Symbol("radix.slottable"); | |
| function k0(e) { | |
| const t = ({ | |
| children: n | |
| }) => g.jsx(g.Fragment, { | |
| children: n | |
| }); | |
| return t.displayName = `${e}.Slottable`, t.__radixId = Gh, t | |
| } | |
| function C0(e) { | |
| return S.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Gh | |
| } | |
| function E0(e, t) { | |
| const n = { ...t | |
| }; | |
| for (const r in t) { | |
| const o = e[r], | |
| i = t[r]; | |
| /^on[A-Z]/.test(r) ? o && i ? n[r] = (...l) => { | |
| const a = i(...l); | |
| return o(...l), a | |
| } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, | |
| ...i | |
| } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" ")) | |
| } | |
| return { ...e, | |
| ...n | |
| } | |
| } | |
| function b0(e) { | |
| var r, o; | |
| let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, | |
| n = t && "isReactWarning" in t && t.isReactWarning; | |
| return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref) | |
| } | |
| function N0(e) { | |
| const t = e + "CollectionProvider", | |
| [n, r] = tl(t), | |
| [o, i] = n(t, { | |
| collectionRef: { | |
| current: null | |
| }, | |
| itemMap: new Map | |
| }), | |
| s = y => { | |
| const { | |
| scope: w, | |
| children: h | |
| } = y, p = _.useRef(null), v = _.useRef(new Map).current; | |
| return g.jsx(o, { | |
| scope: w, | |
| itemMap: v, | |
| collectionRef: p, | |
| children: h | |
| }) | |
| }; | |
| s.displayName = t; | |
| const l = e + "CollectionSlot", | |
| a = _s(l), | |
| u = _.forwardRef((y, w) => { | |
| const { | |
| scope: h, | |
| children: p | |
| } = y, v = i(l, h), k = bt(w, v.collectionRef); | |
| return g.jsx(a, { | |
| ref: k, | |
| children: p | |
| }) | |
| }); | |
| u.displayName = l; | |
| const c = e + "CollectionItemSlot", | |
| f = "data-radix-collection-item", | |
| m = _s(c), | |
| d = _.forwardRef((y, w) => { | |
| const { | |
| scope: h, | |
| children: p, | |
| ...v | |
| } = y, k = _.useRef(null), C = bt(w, k), E = i(c, h); | |
| return _.useEffect(() => (E.itemMap.set(k, { | |
| ref: k, | |
| ...v | |
| }), () => void E.itemMap.delete(k))), g.jsx(m, { | |
| [f]: "", | |
| ref: C, | |
| children: p | |
| }) | |
| }); | |
| d.displayName = c; | |
| function x(y) { | |
| const w = i(e + "CollectionConsumer", y); | |
| return _.useCallback(() => { | |
| const p = w.collectionRef.current; | |
| if (!p) return []; | |
| const v = Array.from(p.querySelectorAll(`[${f}]`)); | |
| return Array.from(w.itemMap.values()).sort((E, b) => v.indexOf(E.ref.current) - v.indexOf(b.ref.current)) | |
| }, [w.collectionRef, w.itemMap]) | |
| } | |
| return [{ | |
| Provider: s, | |
| Slot: u, | |
| ItemSlot: d | |
| }, x, r] | |
| } | |
| var P0 = ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "select", "span", "svg", "ul"], | |
| ze = P0.reduce((e, t) => { | |
| const n = _s(`Primitive.${t}`), | |
| r = S.forwardRef((o, i) => { | |
| const { | |
| asChild: s, | |
| ...l | |
| } = o, a = s ? n : t; | |
| return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), g.jsx(a, { ...l, | |
| ref: i | |
| }) | |
| }); | |
| return r.displayName = `Primitive.${t}`, { ...e, | |
| [t]: r | |
| } | |
| }, {}); | |
| function Yh(e, t) { | |
| e && mi.flushSync(() => e.dispatchEvent(t)) | |
| } | |
| function Ln(e) { | |
| const t = S.useRef(e); | |
| return S.useEffect(() => { | |
| t.current = e | |
| }), S.useMemo(() => (...n) => { | |
| var r; | |
| return (r = t.current) == null ? void 0 : r.call(t, ...n) | |
| }, []) | |
| } | |
| function T0(e, t = globalThis == null ? void 0 : globalThis.document) { | |
| const n = Ln(e); | |
| S.useEffect(() => { | |
| const r = o => { | |
| o.key === "Escape" && n(o) | |
| }; | |
| return t.addEventListener("keydown", r, { | |
| capture: !0 | |
| }), () => t.removeEventListener("keydown", r, { | |
| capture: !0 | |
| }) | |
| }, [n, t]) | |
| } | |
| var R0 = "DismissableLayer", | |
| Qa = "dismissableLayer.update", | |
| j0 = "dismissableLayer.pointerDownOutside", | |
| _0 = "dismissableLayer.focusOutside", | |
| Ud, Xh = S.createContext({ | |
| layers: new Set, | |
| layersWithOutsidePointerEventsDisabled: new Set, | |
| branches: new Set | |
| }), | |
| rc = S.forwardRef((e, t) => { | |
| const { | |
| disableOutsidePointerEvents: n = !1, | |
| onEscapeKeyDown: r, | |
| onPointerDownOutside: o, | |
| onFocusOutside: i, | |
| onInteractOutside: s, | |
| onDismiss: l, | |
| ...a | |
| } = e, u = S.useContext(Xh), [c, f] = S.useState(null), m = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = S.useState({}), x = bt(t, b => f(b)), y = Array.from(u.layers), [w] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), h = y.indexOf(w), p = c ? y.indexOf(c) : -1, v = u.layersWithOutsidePointerEventsDisabled.size > 0, k = p >= h, C = O0(b => { | |
| const R = b.target, | |
| O = [...u.branches].some(A => A.contains(R)); | |
| !k || O || (o == null || o(b), s == null || s(b), b.defaultPrevented || l == null || l()) | |
| }, m), E = M0(b => { | |
| const R = b.target; | |
| [...u.branches].some(A => A.contains(R)) || (i == null || i(b), s == null || s(b), b.defaultPrevented || l == null || l()) | |
| }, m); | |
| return T0(b => { | |
| p === u.layers.size - 1 && (r == null || r(b), !b.defaultPrevented && l && (b.preventDefault(), l())) | |
| }, m), S.useEffect(() => { | |
| if (c) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Ud = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(c)), u.layers.add(c), Bd(), () => { | |
| n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Ud) | |
| } | |
| }, [c, m, n, u]), S.useEffect(() => () => { | |
| c && (u.layers.delete(c), u.layersWithOutsidePointerEventsDisabled.delete(c), Bd()) | |
| }, [c, u]), S.useEffect(() => { | |
| const b = () => d({}); | |
| return document.addEventListener(Qa, b), () => document.removeEventListener(Qa, b) | |
| }, []), g.jsx(ze.div, { ...a, | |
| ref: x, | |
| style: { | |
| pointerEvents: v ? k ? "auto" : "none" : void 0, | |
| ...e.style | |
| }, | |
| onFocusCapture: ye(e.onFocusCapture, E.onFocusCapture), | |
| onBlurCapture: ye(e.onBlurCapture, E.onBlurCapture), | |
| onPointerDownCapture: ye(e.onPointerDownCapture, C.onPointerDownCapture) | |
| }) | |
| }); | |
| rc.displayName = R0; | |
| var A0 = "DismissableLayerBranch", | |
| qh = S.forwardRef((e, t) => { | |
| const n = S.useContext(Xh), | |
| r = S.useRef(null), | |
| o = bt(t, r); | |
| return S.useEffect(() => { | |
| const i = r.current; | |
| if (i) return n.branches.add(i), () => { | |
| n.branches.delete(i) | |
| } | |
| }, [n.branches]), g.jsx(ze.div, { ...e, | |
| ref: o | |
| }) | |
| }); | |
| qh.displayName = A0; | |
| function O0(e, t = globalThis == null ? void 0 : globalThis.document) { | |
| const n = Ln(e), | |
| r = S.useRef(!1), | |
| o = S.useRef(() => {}); | |
| return S.useEffect(() => { | |
| const i = l => { | |
| if (l.target && !r.current) { | |
| let a = function() { | |
| Zh(j0, n, u, { | |
| discrete: !0 | |
| }) | |
| }; | |
| const u = { | |
| originalEvent: l | |
| }; | |
| l.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = a, t.addEventListener("click", o.current, { | |
| once: !0 | |
| })) : a() | |
| } else t.removeEventListener("click", o.current); | |
| r.current = !1 | |
| }, | |
| s = window.setTimeout(() => { | |
| t.addEventListener("pointerdown", i) | |
| }, 0); | |
| return () => { | |
| window.clearTimeout(s), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current) | |
| } | |
| }, [t, n]), { | |
| onPointerDownCapture: () => r.current = !0 | |
| } | |
| } | |
| function M0(e, t = globalThis == null ? void 0 : globalThis.document) { | |
| const n = Ln(e), | |
| r = S.useRef(!1); | |
| return S.useEffect(() => { | |
| const o = i => { | |
| i.target && !r.current && Zh(_0, n, { | |
| originalEvent: i | |
| }, { | |
| discrete: !1 | |
| }) | |
| }; | |
| return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o) | |
| }, [t, n]), { | |
| onFocusCapture: () => r.current = !0, | |
| onBlurCapture: () => r.current = !1 | |
| } | |
| } | |
| function Bd() { | |
| const e = new CustomEvent(Qa); | |
| document.dispatchEvent(e) | |
| } | |
| function Zh(e, t, n, { | |
| discrete: r | |
| }) { | |
| const o = n.originalEvent.target, | |
| i = new CustomEvent(e, { | |
| bubbles: !1, | |
| cancelable: !0, | |
| detail: n | |
| }); | |
| t && o.addEventListener(e, t, { | |
| once: !0 | |
| }), r ? Yh(o, i) : o.dispatchEvent(i) | |
| } | |
| var L0 = rc, | |
| D0 = qh, | |
| Dn = globalThis != null && globalThis.document ? S.useLayoutEffect : () => {}, | |
| I0 = "Portal", | |
| Jh = S.forwardRef((e, t) => { | |
| var l; | |
| const { | |
| container: n, | |
| ...r | |
| } = e, [o, i] = S.useState(!1); | |
| Dn(() => i(!0), []); | |
| const s = n || o && ((l = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : l.body); | |
| return s ? Hh.createPortal(g.jsx(ze.div, { ...r, | |
| ref: t | |
| }), s) : null | |
| }); | |
| Jh.displayName = I0; | |
| function F0(e, t) { | |
| return S.useReducer((n, r) => t[n][r] ?? n, e) | |
| } | |
| var oc = e => { | |
| const { | |
| present: t, | |
| children: n | |
| } = e, r = z0(t), o = typeof n == "function" ? n({ | |
| present: r.isPresent | |
| }) : S.Children.only(n), i = bt(r.ref, $0(o)); | |
| return typeof n == "function" || r.isPresent ? S.cloneElement(o, { | |
| ref: i | |
| }) : null | |
| }; | |
| oc.displayName = "Presence"; | |
| function z0(e) { | |
| const [t, n] = S.useState(), r = S.useRef(null), o = S.useRef(e), i = S.useRef("none"), s = e ? "mounted" : "unmounted", [l, a] = F0(s, { | |
| mounted: { | |
| UNMOUNT: "unmounted", | |
| ANIMATION_OUT: "unmountSuspended" | |
| }, | |
| unmountSuspended: { | |
| MOUNT: "mounted", | |
| ANIMATION_END: "unmounted" | |
| }, | |
| unmounted: { | |
| MOUNT: "mounted" | |
| } | |
| }); | |
| return S.useEffect(() => { | |
| const u = zi(r.current); | |
| i.current = l === "mounted" ? u : "none" | |
| }, [l]), Dn(() => { | |
| const u = r.current, | |
| c = o.current; | |
| if (c !== e) { | |
| const m = i.current, | |
| d = zi(u); | |
| e ? a("MOUNT") : d === "none" || (u == null ? void 0 : u.display) === "none" ? a("UNMOUNT") : a(c && m !== d ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e | |
| } | |
| }, [e, a]), Dn(() => { | |
| if (t) { | |
| let u; | |
| const c = t.ownerDocument.defaultView ?? window, | |
| f = d => { | |
| const y = zi(r.current).includes(d.animationName); | |
| if (d.target === t && y && (a("ANIMATION_END"), !o.current)) { | |
| const w = t.style.animationFillMode; | |
| t.style.animationFillMode = "forwards", u = c.setTimeout(() => { | |
| t.style.animationFillMode === "forwards" && (t.style.animationFillMode = w) | |
| }) | |
| } | |
| }, | |
| m = d => { | |
| d.target === t && (i.current = zi(r.current)) | |
| }; | |
| return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => { | |
| c.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f) | |
| } | |
| } else a("ANIMATION_END") | |
| }, [t, a]), { | |
| isPresent: ["mounted", "unmountSuspended"].includes(l), | |
| ref: S.useCallback(u => { | |
| r.current = u ? getComputedStyle(u) : null, n(u) | |
| }, []) | |
| } | |
| } | |
| function zi(e) { | |
| return (e == null ? void 0 : e.animationName) || "none" | |
| } | |
| function $0(e) { | |
| var r, o; | |
| let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, | |
| n = t && "isReactWarning" in t && t.isReactWarning; | |
| return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref) | |
| } | |
| var U0 = Bf[" useInsertionEffect ".trim().toString()] || Dn; | |
| function B0({ | |
| prop: e, | |
| defaultProp: t, | |
| onChange: n = () => {}, | |
| caller: r | |
| }) { | |
| const [o, i, s] = W0({ | |
| defaultProp: t, | |
| onChange: n | |
| }), l = e !== void 0, a = l ? e : o; { | |
| const c = S.useRef(e !== void 0); | |
| S.useEffect(() => { | |
| const f = c.current; | |
| f !== l && console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), c.current = l | |
| }, [l, r]) | |
| } | |
| const u = S.useCallback(c => { | |
| var f; | |
| if (l) { | |
| const m = V0(c) ? c(e) : c; | |
| m !== e && ((f = s.current) == null || f.call(s, m)) | |
| } else i(c) | |
| }, [l, e, i, s]); | |
| return [a, u] | |
| } | |
| function W0({ | |
| defaultProp: e, | |
| onChange: t | |
| }) { | |
| const [n, r] = S.useState(e), o = S.useRef(n), i = S.useRef(t); | |
| return U0(() => { | |
| i.current = t | |
| }, [t]), S.useEffect(() => { | |
| var s; | |
| o.current !== n && ((s = i.current) == null || s.call(i, n), o.current = n) | |
| }, [n, o]), [n, r, i] | |
| } | |
| function V0(e) { | |
| return typeof e == "function" | |
| } | |
| var H0 = Object.freeze({ | |
| position: "absolute", | |
| border: 0, | |
| width: 1, | |
| height: 1, | |
| padding: 0, | |
| margin: -1, | |
| overflow: "hidden", | |
| clip: "rect(0, 0, 0, 0)", | |
| whiteSpace: "nowrap", | |
| wordWrap: "normal" | |
| }), | |
| Q0 = "VisuallyHidden", | |
| nl = S.forwardRef((e, t) => g.jsx(ze.span, { ...e, | |
| ref: t, | |
| style: { ...H0, | |
| ...e.style | |
| } | |
| })); | |
| nl.displayName = Q0; | |
| var K0 = nl, | |
| ic = "ToastProvider", | |
| [sc, G0, Y0] = N0("Toast"), | |
| [em, uC] = tl("Toast", [Y0]), | |
| [X0, rl] = em(ic), | |
| tm = e => { | |
| const { | |
| __scopeToast: t, | |
| label: n = "Notification", | |
| duration: r = 5e3, | |
| swipeDirection: o = "right", | |
| swipeThreshold: i = 50, | |
| children: s | |
| } = e, [l, a] = S.useState(null), [u, c] = S.useState(0), f = S.useRef(!1), m = S.useRef(!1); | |
| return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${ic}\`. Expected non-empty \`string\`.`), g.jsx(sc.Provider, { | |
| scope: t, | |
| children: g.jsx(X0, { | |
| scope: t, | |
| label: n, | |
| duration: r, | |
| swipeDirection: o, | |
| swipeThreshold: i, | |
| toastCount: u, | |
| viewport: l, | |
| onViewportChange: a, | |
| onToastAdd: S.useCallback(() => c(d => d + 1), []), | |
| onToastRemove: S.useCallback(() => c(d => d - 1), []), | |
| isFocusedToastEscapeKeyDownRef: f, | |
| isClosePausedRef: m, | |
| children: s | |
| }) | |
| }) | |
| }; | |
| tm.displayName = ic; | |
| var nm = "ToastViewport", | |
| q0 = ["F8"], | |
| Ka = "toast.viewportPause", | |
| Ga = "toast.viewportResume", | |
| rm = S.forwardRef((e, t) => { | |
| const { | |
| __scopeToast: n, | |
| hotkey: r = q0, | |
| label: o = "Notifications ({hotkey})", | |
| ...i | |
| } = e, s = rl(nm, n), l = G0(n), a = S.useRef(null), u = S.useRef(null), c = S.useRef(null), f = S.useRef(null), m = bt(t, f, s.onViewportChange), d = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), x = s.toastCount > 0; | |
| S.useEffect(() => { | |
| const w = h => { | |
| var v; | |
| r.length !== 0 && r.every(k => h[k] || h.code === k) && ((v = f.current) == null || v.focus()) | |
| }; | |
| return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w) | |
| }, [r]), S.useEffect(() => { | |
| const w = a.current, | |
| h = f.current; | |
| if (x && w && h) { | |
| const p = () => { | |
| if (!s.isClosePausedRef.current) { | |
| const E = new CustomEvent(Ka); | |
| h.dispatchEvent(E), s.isClosePausedRef.current = !0 | |
| } | |
| }, | |
| v = () => { | |
| if (s.isClosePausedRef.current) { | |
| const E = new CustomEvent(Ga); | |
| h.dispatchEvent(E), s.isClosePausedRef.current = !1 | |
| } | |
| }, | |
| k = E => { | |
| !w.contains(E.relatedTarget) && v() | |
| }, | |
| C = () => { | |
| w.contains(document.activeElement) || v() | |
| }; | |
| return w.addEventListener("focusin", p), w.addEventListener("focusout", k), w.addEventListener("pointermove", p), w.addEventListener("pointerleave", C), window.addEventListener("blur", p), window.addEventListener("focus", v), () => { | |
| w.removeEventListener("focusin", p), w.removeEventListener("focusout", k), w.removeEventListener("pointermove", p), w.removeEventListener("pointerleave", C), window.removeEventListener("blur", p), window.removeEventListener("focus", v) | |
| } | |
| } | |
| }, [x, s.isClosePausedRef]); | |
| const y = S.useCallback(({ | |
| tabbingDirection: w | |
| }) => { | |
| const p = l().map(v => { | |
| const k = v.ref.current, | |
| C = [k, ...c1(k)]; | |
| return w === "forwards" ? C : C.reverse() | |
| }); | |
| return (w === "forwards" ? p.reverse() : p).flat() | |
| }, [l]); | |
| return S.useEffect(() => { | |
| const w = f.current; | |
| if (w) { | |
| const h = p => { | |
| var C, E, b; | |
| const v = p.altKey || p.ctrlKey || p.metaKey; | |
| if (p.key === "Tab" && !v) { | |
| const R = document.activeElement, | |
| O = p.shiftKey; | |
| if (p.target === w && O) { | |
| (C = u.current) == null || C.focus(); | |
| return | |
| } | |
| const I = y({ | |
| tabbingDirection: O ? "backwards" : "forwards" | |
| }), | |
| Q = I.findIndex(M => M === R); | |
| Gl(I.slice(Q + 1)) ? p.preventDefault() : O ? (E = u.current) == null || E.focus() : (b = c.current) == null || b.focus() | |
| } | |
| }; | |
| return w.addEventListener("keydown", h), () => w.removeEventListener("keydown", h) | |
| } | |
| }, [l, y]), g.jsxs(D0, { | |
| ref: a, | |
| role: "region", | |
| "aria-label": o.replace("{hotkey}", d), | |
| tabIndex: -1, | |
| style: { | |
| pointerEvents: x ? void 0 : "none" | |
| }, | |
| children: [x && g.jsx(Ya, { | |
| ref: u, | |
| onFocusFromOutsideViewport: () => { | |
| const w = y({ | |
| tabbingDirection: "forwards" | |
| }); | |
| Gl(w) | |
| } | |
| }), g.jsx(sc.Slot, { | |
| scope: n, | |
| children: g.jsx(ze.ol, { | |
| tabIndex: -1, | |
| ...i, | |
| ref: m | |
| }) | |
| }), x && g.jsx(Ya, { | |
| ref: c, | |
| onFocusFromOutsideViewport: () => { | |
| const w = y({ | |
| tabbingDirection: "backwards" | |
| }); | |
| Gl(w) | |
| } | |
| })] | |
| }) | |
| }); | |
| rm.displayName = nm; | |
| var om = "ToastFocusProxy", | |
| Ya = S.forwardRef((e, t) => { | |
| const { | |
| __scopeToast: n, | |
| onFocusFromOutsideViewport: r, | |
| ...o | |
| } = e, i = rl(om, n); | |
| return g.jsx(nl, { | |
| "aria-hidden": !0, | |
| tabIndex: 0, | |
| ...o, | |
| ref: t, | |
| style: { | |
| position: "fixed" | |
| }, | |
| onFocus: s => { | |
| var u; | |
| const l = s.relatedTarget; | |
| !((u = i.viewport) != null && u.contains(l)) && r() | |
| } | |
| }) | |
| }); | |
| Ya.displayName = om; | |
| var gi = "Toast", | |
| Z0 = "toast.swipeStart", | |
| J0 = "toast.swipeMove", | |
| e1 = "toast.swipeCancel", | |
| t1 = "toast.swipeEnd", | |
| im = S.forwardRef((e, t) => { | |
| const { | |
| forceMount: n, | |
| open: r, | |
| defaultOpen: o, | |
| onOpenChange: i, | |
| ...s | |
| } = e, [l, a] = B0({ | |
| prop: r, | |
| defaultProp: o ?? !0, | |
| onChange: i, | |
| caller: gi | |
| }); | |
| return g.jsx(oc, { | |
| present: n || l, | |
| children: g.jsx(o1, { | |
| open: l, | |
| ...s, | |
| ref: t, | |
| onClose: () => a(!1), | |
| onPause: Ln(e.onPause), | |
| onResume: Ln(e.onResume), | |
| onSwipeStart: ye(e.onSwipeStart, u => { | |
| u.currentTarget.setAttribute("data-swipe", "start") | |
| }), | |
| onSwipeMove: ye(e.onSwipeMove, u => { | |
| const { | |
| x: c, | |
| y: f | |
| } = u.detail.delta; | |
| u.currentTarget.setAttribute("data-swipe", "move"), u.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${c}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${f}px`) | |
| }), | |
| onSwipeCancel: ye(e.onSwipeCancel, u => { | |
| u.currentTarget.setAttribute("data-swipe", "cancel"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y") | |
| }), | |
| onSwipeEnd: ye(e.onSwipeEnd, u => { | |
| const { | |
| x: c, | |
| y: f | |
| } = u.detail.delta; | |
| u.currentTarget.setAttribute("data-swipe", "end"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${c}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${f}px`), a(!1) | |
| }) | |
| }) | |
| }) | |
| }); | |
| im.displayName = gi; | |
| var [n1, r1] = em(gi, { | |
| onClose() {} | |
| }), o1 = S.forwardRef((e, t) => { | |
| const { | |
| __scopeToast: n, | |
| type: r = "foreground", | |
| duration: o, | |
| open: i, | |
| onClose: s, | |
| onEscapeKeyDown: l, | |
| onPause: a, | |
| onResume: u, | |
| onSwipeStart: c, | |
| onSwipeMove: f, | |
| onSwipeCancel: m, | |
| onSwipeEnd: d, | |
| ...x | |
| } = e, y = rl(gi, n), [w, h] = S.useState(null), p = bt(t, M => h(M)), v = S.useRef(null), k = S.useRef(null), C = o || y.duration, E = S.useRef(0), b = S.useRef(C), R = S.useRef(0), { | |
| onToastAdd: O, | |
| onToastRemove: A | |
| } = y, z = Ln(() => { | |
| var Y; | |
| (w == null ? void 0 : w.contains(document.activeElement)) && ((Y = y.viewport) == null || Y.focus()), s() | |
| }), I = S.useCallback(M => { | |
| !M || M === 1 / 0 || (window.clearTimeout(R.current), E.current = new Date().getTime(), R.current = window.setTimeout(z, M)) | |
| }, [z]); | |
| S.useEffect(() => { | |
| const M = y.viewport; | |
| if (M) { | |
| const Y = () => { | |
| I(b.current), u == null || u() | |
| }, | |
| $ = () => { | |
| const W = new Date().getTime() - E.current; | |
| b.current = b.current - W, window.clearTimeout(R.current), a == null || a() | |
| }; | |
| return M.addEventListener(Ka, $), M.addEventListener(Ga, Y), () => { | |
| M.removeEventListener(Ka, $), M.removeEventListener(Ga, Y) | |
| } | |
| } | |
| }, [y.viewport, C, a, u, I]), S.useEffect(() => { | |
| i && !y.isClosePausedRef.current && I(C) | |
| }, [i, C, y.isClosePausedRef, I]), S.useEffect(() => (O(), () => A()), [O, A]); | |
| const Q = S.useMemo(() => w ? fm(w) : null, [w]); | |
| return y.viewport ? g.jsxs(g.Fragment, { | |
| children: [Q && g.jsx(i1, { | |
| __scopeToast: n, | |
| role: "status", | |
| "aria-live": r === "foreground" ? "assertive" : "polite", | |
| "aria-atomic": !0, | |
| children: Q | |
| }), g.jsx(n1, { | |
| scope: n, | |
| onClose: z, | |
| children: mi.createPortal(g.jsx(sc.ItemSlot, { | |
| scope: n, | |
| children: g.jsx(L0, { | |
| asChild: !0, | |
| onEscapeKeyDown: ye(l, () => { | |
| y.isFocusedToastEscapeKeyDownRef.current || z(), y.isFocusedToastEscapeKeyDownRef.current = !1 | |
| }), | |
| children: g.jsx(ze.li, { | |
| role: "status", | |
| "aria-live": "off", | |
| "aria-atomic": !0, | |
| tabIndex: 0, | |
| "data-state": i ? "open" : "closed", | |
| "data-swipe-direction": y.swipeDirection, | |
| ...x, | |
| ref: p, | |
| style: { | |
| userSelect: "none", | |
| touchAction: "none", | |
| ...e.style | |
| }, | |
| onKeyDown: ye(e.onKeyDown, M => { | |
| M.key === "Escape" && (l == null || l(M.nativeEvent), M.nativeEvent.defaultPrevented || (y.isFocusedToastEscapeKeyDownRef.current = !0, z())) | |
| }), | |
| onPointerDown: ye(e.onPointerDown, M => { | |
| M.button === 0 && (v.current = { | |
| x: M.clientX, | |
| y: M.clientY | |
| }) | |
| }), | |
| onPointerMove: ye(e.onPointerMove, M => { | |
| if (!v.current) return; | |
| const Y = M.clientX - v.current.x, | |
| $ = M.clientY - v.current.y, | |
| W = !!k.current, | |
| P = ["left", "right"].includes(y.swipeDirection), | |
| T = ["left", "up"].includes(y.swipeDirection) ? Math.min : Math.max, | |
| L = P ? T(0, Y) : 0, | |
| V = P ? 0 : T(0, $), | |
| F = M.pointerType === "touch" ? 10 : 2, | |
| K = { | |
| x: L, | |
| y: V | |
| }, | |
| X = { | |
| originalEvent: M, | |
| delta: K | |
| }; | |
| W ? (k.current = K, $i(J0, f, X, { | |
| discrete: !1 | |
| })) : Wd(K, y.swipeDirection, F) ? (k.current = K, $i(Z0, c, X, { | |
| discrete: !1 | |
| }), M.target.setPointerCapture(M.pointerId)) : (Math.abs(Y) > F || Math.abs($) > F) && (v.current = null) | |
| }), | |
| onPointerUp: ye(e.onPointerUp, M => { | |
| const Y = k.current, | |
| $ = M.target; | |
| if ($.hasPointerCapture(M.pointerId) && $.releasePointerCapture(M.pointerId), k.current = null, v.current = null, Y) { | |
| const W = M.currentTarget, | |
| P = { | |
| originalEvent: M, | |
| delta: Y | |
| }; | |
| Wd(Y, y.swipeDirection, y.swipeThreshold) ? $i(t1, d, P, { | |
| discrete: !0 | |
| }) : $i(e1, m, P, { | |
| discrete: !0 | |
| }), W.addEventListener("click", T => T.preventDefault(), { | |
| once: !0 | |
| }) | |
| } | |
| }) | |
| }) | |
| }) | |
| }), y.viewport) | |
| })] | |
| }) : null | |
| }), i1 = e => { | |
| const { | |
| __scopeToast: t, | |
| children: n, | |
| ...r | |
| } = e, o = rl(gi, t), [i, s] = S.useState(!1), [l, a] = S.useState(!1); | |
| return a1(() => s(!0)), S.useEffect(() => { | |
| const u = window.setTimeout(() => a(!0), 1e3); | |
| return () => window.clearTimeout(u) | |
| }, []), l ? null : g.jsx(Jh, { | |
| asChild: !0, | |
| children: g.jsx(nl, { ...r, | |
| children: i && g.jsxs(g.Fragment, { | |
| children: [o.label, " ", n] | |
| }) | |
| }) | |
| }) | |
| }, s1 = "ToastTitle", sm = S.forwardRef((e, t) => { | |
| const { | |
| __scopeToast: n, | |
| ...r | |
| } = e; | |
| return g.jsx(ze.div, { ...r, | |
| ref: t | |
| }) | |
| }); | |
| sm.displayName = s1; | |
| var l1 = "ToastDescription", | |
| lm = S.forwardRef((e, t) => { | |
| const { | |
| __scopeToast: n, | |
| ...r | |
| } = e; | |
| return g.jsx(ze.div, { ...r, | |
| ref: t | |
| }) | |
| }); | |
| lm.displayName = l1; | |
| var am = "ToastAction", | |
| um = S.forwardRef((e, t) => { | |
| const { | |
| altText: n, | |
| ...r | |
| } = e; | |
| return n.trim() ? g.jsx(dm, { | |
| altText: n, | |
| asChild: !0, | |
| children: g.jsx(lc, { ...r, | |
| ref: t | |
| }) | |
| }) : (console.error(`Invalid prop \`altText\` supplied to \`${am}\`. Expected non-empty \`string\`.`), null) | |
| }); | |
| um.displayName = am; | |
| var cm = "ToastClose", | |
| lc = S.forwardRef((e, t) => { | |
| const { | |
| __scopeToast: n, | |
| ...r | |
| } = e, o = r1(cm, n); | |
| return g.jsx(dm, { | |
| asChild: !0, | |
| children: g.jsx(ze.button, { | |
| type: "button", | |
| ...r, | |
| ref: t, | |
| onClick: ye(e.onClick, o.onClose) | |
| }) | |
| }) | |
| }); | |
| lc.displayName = cm; | |
| var dm = S.forwardRef((e, t) => { | |
| const { | |
| __scopeToast: n, | |
| altText: r, | |
| ...o | |
| } = e; | |
| return g.jsx(ze.div, { | |
| "data-radix-toast-announce-exclude": "", | |
| "data-radix-toast-announce-alt": r || void 0, | |
| ...o, | |
| ref: t | |
| }) | |
| }); | |
| function fm(e) { | |
| const t = []; | |
| return Array.from(e.childNodes).forEach(r => { | |
| if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), u1(r)) { | |
| const o = r.ariaHidden || r.hidden || r.style.display === "none", | |
| i = r.dataset.radixToastAnnounceExclude === ""; | |
| if (!o) | |
| if (i) { | |
| const s = r.dataset.radixToastAnnounceAlt; | |
| s && t.push(s) | |
| } else t.push(...fm(r)) | |
| } | |
| }), t | |
| } | |
| function $i(e, t, n, { | |
| discrete: r | |
| }) { | |
| const o = n.originalEvent.currentTarget, | |
| i = new CustomEvent(e, { | |
| bubbles: !0, | |
| cancelable: !0, | |
| detail: n | |
| }); | |
| t && o.addEventListener(e, t, { | |
| once: !0 | |
| }), r ? Yh(o, i) : o.dispatchEvent(i) | |
| } | |
| var Wd = (e, t, n = 0) => { | |
| const r = Math.abs(e.x), | |
| o = Math.abs(e.y), | |
| i = r > o; | |
| return t === "left" || t === "right" ? i && r > n : !i && o > n | |
| }; | |
| function a1(e = () => {}) { | |
| const t = Ln(e); | |
| Dn(() => { | |
| let n = 0, | |
| r = 0; | |
| return n = window.requestAnimationFrame(() => r = window.requestAnimationFrame(t)), () => { | |
| window.cancelAnimationFrame(n), window.cancelAnimationFrame(r) | |
| } | |
| }, [t]) | |
| } | |
| function u1(e) { | |
| return e.nodeType === e.ELEMENT_NODE | |
| } | |
| function c1(e) { | |
| const t = [], | |
| n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { | |
| acceptNode: r => { | |
| const o = r.tagName === "INPUT" && r.type === "hidden"; | |
| return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP | |
| } | |
| }); | |
| for (; n.nextNode();) t.push(n.currentNode); | |
| return t | |
| } | |
| function Gl(e) { | |
| const t = document.activeElement; | |
| return e.some(n => n === t ? !0 : (n.focus(), document.activeElement !== t)) | |
| } | |
| var d1 = tm, | |
| pm = rm, | |
| hm = im, | |
| mm = sm, | |
| gm = lm, | |
| ym = um, | |
| vm = lc; | |
| function xm(e) { | |
| var t, n, r = ""; | |
| if (typeof e == "string" || typeof e == "number") r += e; | |
| else if (typeof e == "object") | |
| if (Array.isArray(e)) { | |
| var o = e.length; | |
| for (t = 0; t < o; t++) e[t] && (n = xm(e[t])) && (r && (r += " "), r += n) | |
| } else | |
| for (n in e) e[n] && (r && (r += " "), r += n); | |
| return r | |
| } | |
| function wm() { | |
| for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++)(e = arguments[n]) && (t = xm(e)) && (r && (r += " "), r += t); | |
| return r | |
| } | |
| const Vd = e => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, | |
| Hd = wm, | |
| ol = (e, t) => n => { | |
| var r; | |
| if ((t == null ? void 0 : t.variants) == null) return Hd(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className); | |
| const { | |
| variants: o, | |
| defaultVariants: i | |
| } = t, s = Object.keys(o).map(u => { | |
| const c = n == null ? void 0 : n[u], | |
| f = i == null ? void 0 : i[u]; | |
| if (c === null) return null; | |
| const m = Vd(c) || Vd(f); | |
| return o[u][m] | |
| }), l = n && Object.entries(n).reduce((u, c) => { | |
| let [f, m] = c; | |
| return m === void 0 || (u[f] = m), u | |
| }, {}), a = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, c) => { | |
| let { | |
| class: f, | |
| className: m, | |
| ...d | |
| } = c; | |
| return Object.entries(d).every(x => { | |
| let [y, w] = x; | |
| return Array.isArray(w) ? w.includes({ ...i, | |
| ...l | |
| }[y]) : { ...i, | |
| ...l | |
| }[y] === w | |
| }) ? [...u, f, m] : u | |
| }, []); | |
| return Hd(e, s, a, n == null ? void 0 : n.class, n == null ? void 0 : n.className) | |
| }; | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const f1 = e => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), | |
| Sm = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| var p1 = { | |
| xmlns: "http://www.w3.org/2000/svg", | |
| width: 24, | |
| height: 24, | |
| viewBox: "0 0 24 24", | |
| fill: "none", | |
| stroke: "currentColor", | |
| strokeWidth: 2, | |
| strokeLinecap: "round", | |
| strokeLinejoin: "round" | |
| }; | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const h1 = S.forwardRef(({ | |
| color: e = "currentColor", | |
| size: t = 24, | |
| strokeWidth: n = 2, | |
| absoluteStrokeWidth: r, | |
| className: o = "", | |
| children: i, | |
| iconNode: s, | |
| ...l | |
| }, a) => S.createElement("svg", { | |
| ref: a, | |
| ...p1, | |
| width: t, | |
| height: t, | |
| stroke: e, | |
| strokeWidth: r ? Number(n) * 24 / Number(t) : n, | |
| className: Sm("lucide", o), | |
| ...l | |
| }, [...s.map(([u, c]) => S.createElement(u, c)), ...Array.isArray(i) ? i : [i]])); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const xe = (e, t) => { | |
| const n = S.forwardRef(({ | |
| className: r, | |
| ...o | |
| }, i) => S.createElement(h1, { | |
| ref: i, | |
| iconNode: t, | |
| className: Sm(`lucide-${f1(e)}`, r), | |
| ...o | |
| })); | |
| return n.displayName = `${e}`, n | |
| }; | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const m1 = xe("Calculator", [ | |
| ["rect", { | |
| width: "16", | |
| height: "20", | |
| x: "4", | |
| y: "2", | |
| rx: "2", | |
| key: "1nb95v" | |
| }], | |
| ["line", { | |
| x1: "8", | |
| x2: "16", | |
| y1: "6", | |
| y2: "6", | |
| key: "x4nwl0" | |
| }], | |
| ["line", { | |
| x1: "16", | |
| x2: "16", | |
| y1: "14", | |
| y2: "18", | |
| key: "wjye3r" | |
| }], | |
| ["path", { | |
| d: "M16 10h.01", | |
| key: "1m94wz" | |
| }], | |
| ["path", { | |
| d: "M12 10h.01", | |
| key: "1nrarc" | |
| }], | |
| ["path", { | |
| d: "M8 10h.01", | |
| key: "19clt8" | |
| }], | |
| ["path", { | |
| d: "M12 14h.01", | |
| key: "1etili" | |
| }], | |
| ["path", { | |
| d: "M8 14h.01", | |
| key: "6423bh" | |
| }], | |
| ["path", { | |
| d: "M12 18h.01", | |
| key: "mhygvu" | |
| }], | |
| ["path", { | |
| d: "M8 18h.01", | |
| key: "lrp35t" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const g1 = xe("ChartColumn", [ | |
| ["path", { | |
| d: "M3 3v16a2 2 0 0 0 2 2h16", | |
| key: "c24i48" | |
| }], | |
| ["path", { | |
| d: "M18 17V9", | |
| key: "2bz60n" | |
| }], | |
| ["path", { | |
| d: "M13 17V5", | |
| key: "1frdt8" | |
| }], | |
| ["path", { | |
| d: "M8 17v-3", | |
| key: "17ska0" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const y1 = xe("CircleAlert", [ | |
| ["circle", { | |
| cx: "12", | |
| cy: "12", | |
| r: "10", | |
| key: "1mglay" | |
| }], | |
| ["line", { | |
| x1: "12", | |
| x2: "12", | |
| y1: "8", | |
| y2: "12", | |
| key: "1pkeuh" | |
| }], | |
| ["line", { | |
| x1: "12", | |
| x2: "12.01", | |
| y1: "16", | |
| y2: "16", | |
| key: "4dfq90" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const v1 = xe("Copy", [ | |
| ["rect", { | |
| width: "14", | |
| height: "14", | |
| x: "8", | |
| y: "8", | |
| rx: "2", | |
| ry: "2", | |
| key: "17jyea" | |
| }], | |
| ["path", { | |
| d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", | |
| key: "zix9uf" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const x1 = xe("Crown", [ | |
| ["path", { | |
| d: "M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z", | |
| key: "1vdc57" | |
| }], | |
| ["path", { | |
| d: "M5 21h14", | |
| key: "11awu3" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const Ui = xe("DollarSign", [ | |
| ["line", { | |
| x1: "12", | |
| x2: "12", | |
| y1: "2", | |
| y2: "22", | |
| key: "7eqyqh" | |
| }], | |
| ["path", { | |
| d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", | |
| key: "1b0p4s" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const w1 = xe("Facebook", [ | |
| ["path", { | |
| d: "M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z", | |
| key: "1jg4f8" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const S1 = xe("Globe", [ | |
| ["circle", { | |
| cx: "12", | |
| cy: "12", | |
| r: "10", | |
| key: "1mglay" | |
| }], | |
| ["path", { | |
| d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", | |
| key: "13o1zl" | |
| }], | |
| ["path", { | |
| d: "M2 12h20", | |
| key: "9i4pu4" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const k1 = xe("Linkedin", [ | |
| ["path", { | |
| d: "M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z", | |
| key: "c2jq9f" | |
| }], | |
| ["rect", { | |
| width: "4", | |
| height: "12", | |
| x: "2", | |
| y: "9", | |
| key: "mk3on5" | |
| }], | |
| ["circle", { | |
| cx: "4", | |
| cy: "4", | |
| r: "2", | |
| key: "bt5ra8" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const C1 = xe("MessageCircle", [ | |
| ["path", { | |
| d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z", | |
| key: "vv11sd" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const E1 = xe("Moon", [ | |
| ["path", { | |
| d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", | |
| key: "a7tn18" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const b1 = xe("RefreshCw", [ | |
| ["path", { | |
| d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", | |
| key: "v9h5vc" | |
| }], | |
| ["path", { | |
| d: "M21 3v5h-5", | |
| key: "1q7to0" | |
| }], | |
| ["path", { | |
| d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", | |
| key: "3uifl3" | |
| }], | |
| ["path", { | |
| d: "M8 16H3v5", | |
| key: "1cv678" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const N1 = xe("Share2", [ | |
| ["circle", { | |
| cx: "18", | |
| cy: "5", | |
| r: "3", | |
| key: "gq8acd" | |
| }], | |
| ["circle", { | |
| cx: "6", | |
| cy: "12", | |
| r: "3", | |
| key: "w7nqdw" | |
| }], | |
| ["circle", { | |
| cx: "18", | |
| cy: "19", | |
| r: "3", | |
| key: "1xt0gg" | |
| }], | |
| ["line", { | |
| x1: "8.59", | |
| x2: "15.42", | |
| y1: "13.51", | |
| y2: "17.49", | |
| key: "47mynk" | |
| }], | |
| ["line", { | |
| x1: "15.41", | |
| x2: "8.59", | |
| y1: "6.51", | |
| y2: "10.49", | |
| key: "1n3mei" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const P1 = xe("Sun", [ | |
| ["circle", { | |
| cx: "12", | |
| cy: "12", | |
| r: "4", | |
| key: "4exip2" | |
| }], | |
| ["path", { | |
| d: "M12 2v2", | |
| key: "tus03m" | |
| }], | |
| ["path", { | |
| d: "M12 20v2", | |
| key: "1lh1kg" | |
| }], | |
| ["path", { | |
| d: "m4.93 4.93 1.41 1.41", | |
| key: "149t6j" | |
| }], | |
| ["path", { | |
| d: "m17.66 17.66 1.41 1.41", | |
| key: "ptbguv" | |
| }], | |
| ["path", { | |
| d: "M2 12h2", | |
| key: "1t8f8n" | |
| }], | |
| ["path", { | |
| d: "M20 12h2", | |
| key: "1q8mjw" | |
| }], | |
| ["path", { | |
| d: "m6.34 17.66-1.41 1.41", | |
| key: "1m8zz5" | |
| }], | |
| ["path", { | |
| d: "m19.07 4.93-1.41 1.41", | |
| key: "1shlcs" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const km = xe("TrendingDown", [ | |
| ["polyline", { | |
| points: "22 17 13.5 8.5 8.5 13.5 2 7", | |
| key: "1r2t7k" | |
| }], | |
| ["polyline", { | |
| points: "16 17 22 17 22 11", | |
| key: "11uiuu" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const ac = xe("TrendingUp", [ | |
| ["polyline", { | |
| points: "22 7 13.5 15.5 8.5 10.5 2 17", | |
| key: "126l90" | |
| }], | |
| ["polyline", { | |
| points: "16 7 22 7 22 13", | |
| key: "kwv8wd" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const T1 = xe("TriangleAlert", [ | |
| ["path", { | |
| d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3", | |
| key: "wmoenq" | |
| }], | |
| ["path", { | |
| d: "M12 9v4", | |
| key: "juzpu7" | |
| }], | |
| ["path", { | |
| d: "M12 17h.01", | |
| key: "p32p05" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const R1 = xe("Twitter", [ | |
| ["path", { | |
| d: "M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z", | |
| key: "pff0z6" | |
| }] | |
| ]); | |
| /** | |
| * @license lucide-react v0.462.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */ | |
| const Cm = xe("X", [ | |
| ["path", { | |
| d: "M18 6 6 18", | |
| key: "1bl5f8" | |
| }], | |
| ["path", { | |
| d: "m6 6 12 12", | |
| key: "d8bk6v" | |
| }] | |
| ]), | |
| uc = "-", | |
| j1 = e => { | |
| const t = A1(e), | |
| { | |
| conflictingClassGroups: n, | |
| conflictingClassGroupModifiers: r | |
| } = e; | |
| return { | |
| getClassGroupId: s => { | |
| const l = s.split(uc); | |
| return l[0] === "" && l.length !== 1 && l.shift(), Em(l, t) || _1(s) | |
| }, | |
| getConflictingClassGroupIds: (s, l) => { | |
| const a = n[s] || []; | |
| return l && r[s] ? [...a, ...r[s]] : a | |
| } | |
| } | |
| }, | |
| Em = (e, t) => { | |
| var s; | |
| if (e.length === 0) return t.classGroupId; | |
| const n = e[0], | |
| r = t.nextPart.get(n), | |
| o = r ? Em(e.slice(1), r) : void 0; | |
| if (o) return o; | |
| if (t.validators.length === 0) return; | |
| const i = e.join(uc); | |
| return (s = t.validators.find(({ | |
| validator: l | |
| }) => l(i))) == null ? void 0 : s.classGroupId | |
| }, | |
| Qd = /^\[(.+)\]$/, | |
| _1 = e => { | |
| if (Qd.test(e)) { | |
| const t = Qd.exec(e)[1], | |
| n = t == null ? void 0 : t.substring(0, t.indexOf(":")); | |
| if (n) return "arbitrary.." + n | |
| } | |
| }, | |
| A1 = e => { | |
| const { | |
| theme: t, | |
| prefix: n | |
| } = e, r = { | |
| nextPart: new Map, | |
| validators: [] | |
| }; | |
| return M1(Object.entries(e.classGroups), n).forEach(([i, s]) => { | |
| Xa(s, r, i, t) | |
| }), r | |
| }, | |
| Xa = (e, t, n, r) => { | |
| e.forEach(o => { | |
| if (typeof o == "string") { | |
| const i = o === "" ? t : Kd(t, o); | |
| i.classGroupId = n; | |
| return | |
| } | |
| if (typeof o == "function") { | |
| if (O1(o)) { | |
| Xa(o(r), t, n, r); | |
| return | |
| } | |
| t.validators.push({ | |
| validator: o, | |
| classGroupId: n | |
| }); | |
| return | |
| } | |
| Object.entries(o).forEach(([i, s]) => { | |
| Xa(s, Kd(t, i), n, r) | |
| }) | |
| }) | |
| }, | |
| Kd = (e, t) => { | |
| let n = e; | |
| return t.split(uc).forEach(r => { | |
| n.nextPart.has(r) || n.nextPart.set(r, { | |
| nextPart: new Map, | |
| validators: [] | |
| }), n = n.nextPart.get(r) | |
| }), n | |
| }, | |
| O1 = e => e.isThemeGetter, | |
| M1 = (e, t) => t ? e.map(([n, r]) => { | |
| const o = r.map(i => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([s, l]) => [t + s, l])) : i); | |
| return [n, o] | |
| }) : e, | |
| L1 = e => { | |
| if (e < 1) return { | |
| get: () => {}, | |
| set: () => {} | |
| }; | |
| let t = 0, | |
| n = new Map, | |
| r = new Map; | |
| const o = (i, s) => { | |
| n.set(i, s), t++, t > e && (t = 0, r = n, n = new Map) | |
| }; | |
| return { | |
| get(i) { | |
| let s = n.get(i); | |
| if (s !== void 0) return s; | |
| if ((s = r.get(i)) !== void 0) return o(i, s), s | |
| }, | |
| set(i, s) { | |
| n.has(i) ? n.set(i, s) : o(i, s) | |
| } | |
| } | |
| }, | |
| bm = "!", | |
| D1 = e => { | |
| const { | |
| separator: t, | |
| experimentalParseClassName: n | |
| } = e, r = t.length === 1, o = t[0], i = t.length, s = l => { | |
| const a = []; | |
| let u = 0, | |
| c = 0, | |
| f; | |
| for (let w = 0; w < l.length; w++) { | |
| let h = l[w]; | |
| if (u === 0) { | |
| if (h === o && (r || l.slice(w, w + i) === t)) { | |
| a.push(l.slice(c, w)), c = w + i; | |
| continue | |
| } | |
| if (h === "/") { | |
| f = w; | |
| continue | |
| } | |
| } | |
| h === "[" ? u++ : h === "]" && u-- | |
| } | |
| const m = a.length === 0 ? l : l.substring(c), | |
| d = m.startsWith(bm), | |
| x = d ? m.substring(1) : m, | |
| y = f && f > c ? f - c : void 0; | |
| return { | |
| modifiers: a, | |
| hasImportantModifier: d, | |
| baseClassName: x, | |
| maybePostfixModifierPosition: y | |
| } | |
| }; | |
| return n ? l => n({ | |
| className: l, | |
| parseClassName: s | |
| }) : s | |
| }, | |
| I1 = e => { | |
| if (e.length <= 1) return e; | |
| const t = []; | |
| let n = []; | |
| return e.forEach(r => { | |
| r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r) | |
| }), t.push(...n.sort()), t | |
| }, | |
| F1 = e => ({ | |
| cache: L1(e.cacheSize), | |
| parseClassName: D1(e), | |
| ...j1(e) | |
| }), | |
| z1 = /\s+/, | |
| $1 = (e, t) => { | |
| const { | |
| parseClassName: n, | |
| getClassGroupId: r, | |
| getConflictingClassGroupIds: o | |
| } = t, i = [], s = e.trim().split(z1); | |
| let l = ""; | |
| for (let a = s.length - 1; a >= 0; a -= 1) { | |
| const u = s[a], | |
| { | |
| modifiers: c, | |
| hasImportantModifier: f, | |
| baseClassName: m, | |
| maybePostfixModifierPosition: d | |
| } = n(u); | |
| let x = !!d, | |
| y = r(x ? m.substring(0, d) : m); | |
| if (!y) { | |
| if (!x) { | |
| l = u + (l.length > 0 ? " " + l : l); | |
| continue | |
| } | |
| if (y = r(m), !y) { | |
| l = u + (l.length > 0 ? " " + l : l); | |
| continue | |
| } | |
| x = !1 | |
| } | |
| const w = I1(c).join(":"), | |
| h = f ? w + bm : w, | |
| p = h + y; | |
| if (i.includes(p)) continue; | |
| i.push(p); | |
| const v = o(y, x); | |
| for (let k = 0; k < v.length; ++k) { | |
| const C = v[k]; | |
| i.push(h + C) | |
| } | |
| l = u + (l.length > 0 ? " " + l : l) | |
| } | |
| return l | |
| }; | |
| function U1() { | |
| let e = 0, | |
| t, n, r = ""; | |
| for (; e < arguments.length;)(t = arguments[e++]) && (n = Nm(t)) && (r && (r += " "), r += n); | |
| return r | |
| } | |
| const Nm = e => { | |
| if (typeof e == "string") return e; | |
| let t, n = ""; | |
| for (let r = 0; r < e.length; r++) e[r] && (t = Nm(e[r])) && (n && (n += " "), n += t); | |
| return n | |
| }; | |
| function B1(e, ...t) { | |
| let n, r, o, i = s; | |
| function s(a) { | |
| const u = t.reduce((c, f) => f(c), e()); | |
| return n = F1(u), r = n.cache.get, o = n.cache.set, i = l, l(a) | |
| } | |
| function l(a) { | |
| const u = r(a); | |
| if (u) return u; | |
| const c = $1(a, n); | |
| return o(a, c), c | |
| } | |
| return function() { | |
| return i(U1.apply(null, arguments)) | |
| } | |
| } | |
| const re = e => { | |
| const t = n => n[e] || []; | |
| return t.isThemeGetter = !0, t | |
| }, | |
| Pm = /^\[(?:([a-z-]+):)?(.+)\]$/i, | |
| W1 = /^\d+\/\d+$/, | |
| V1 = new Set(["px", "full", "screen"]), | |
| H1 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, | |
| Q1 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, | |
| K1 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, | |
| G1 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, | |
| Y1 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, | |
| Ut = e => $r(e) || V1.has(e) || W1.test(e), | |
| cn = e => uo(e, "length", rx), | |
| $r = e => !!e && !Number.isNaN(Number(e)), | |
| Yl = e => uo(e, "number", $r), | |
| Co = e => !!e && Number.isInteger(Number(e)), | |
| X1 = e => e.endsWith("%") && $r(e.slice(0, -1)), | |
| H = e => Pm.test(e), | |
| dn = e => H1.test(e), | |
| q1 = new Set(["length", "size", "percentage"]), | |
| Z1 = e => uo(e, q1, Tm), | |
| J1 = e => uo(e, "position", Tm), | |
| ex = new Set(["image", "url"]), | |
| tx = e => uo(e, ex, ix), | |
| nx = e => uo(e, "", ox), | |
| Eo = () => !0, | |
| uo = (e, t, n) => { | |
| const r = Pm.exec(e); | |
| return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1 | |
| }, | |
| rx = e => Q1.test(e) && !K1.test(e), | |
| Tm = () => !1, | |
| ox = e => G1.test(e), | |
| ix = e => Y1.test(e), | |
| sx = () => { | |
| const e = re("colors"), | |
| t = re("spacing"), | |
| n = re("blur"), | |
| r = re("brightness"), | |
| o = re("borderColor"), | |
| i = re("borderRadius"), | |
| s = re("borderSpacing"), | |
| l = re("borderWidth"), | |
| a = re("contrast"), | |
| u = re("grayscale"), | |
| c = re("hueRotate"), | |
| f = re("invert"), | |
| m = re("gap"), | |
| d = re("gradientColorStops"), | |
| x = re("gradientColorStopPositions"), | |
| y = re("inset"), | |
| w = re("margin"), | |
| h = re("opacity"), | |
| p = re("padding"), | |
| v = re("saturate"), | |
| k = re("scale"), | |
| C = re("sepia"), | |
| E = re("skew"), | |
| b = re("space"), | |
| R = re("translate"), | |
| O = () => ["auto", "contain", "none"], | |
| A = () => ["auto", "hidden", "clip", "visible", "scroll"], | |
| z = () => ["auto", H, t], | |
| I = () => [H, t], | |
| Q = () => ["", Ut, cn], | |
| M = () => ["auto", $r, H], | |
| Y = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], | |
| $ = () => ["solid", "dashed", "dotted", "double", "none"], | |
| W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], | |
| P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], | |
| T = () => ["", "0", H], | |
| L = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], | |
| V = () => [$r, H]; | |
| return { | |
| cacheSize: 500, | |
| separator: ":", | |
| theme: { | |
| colors: [Eo], | |
| spacing: [Ut, cn], | |
| blur: ["none", "", dn, H], | |
| brightness: V(), | |
| borderColor: [e], | |
| borderRadius: ["none", "", "full", dn, H], | |
| borderSpacing: I(), | |
| borderWidth: Q(), | |
| contrast: V(), | |
| grayscale: T(), | |
| hueRotate: V(), | |
| invert: T(), | |
| gap: I(), | |
| gradientColorStops: [e], | |
| gradientColorStopPositions: [X1, cn], | |
| inset: z(), | |
| margin: z(), | |
| opacity: V(), | |
| padding: I(), | |
| saturate: V(), | |
| scale: V(), | |
| sepia: T(), | |
| skew: V(), | |
| space: I(), | |
| translate: I() | |
| }, | |
| classGroups: { | |
| aspect: [{ | |
| aspect: ["auto", "square", "video", H] | |
| }], | |
| container: ["container"], | |
| columns: [{ | |
| columns: [dn] | |
| }], | |
| "break-after": [{ | |
| "break-after": L() | |
| }], | |
| "break-before": [{ | |
| "break-before": L() | |
| }], | |
| "break-inside": [{ | |
| "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] | |
| }], | |
| "box-decoration": [{ | |
| "box-decoration": ["slice", "clone"] | |
| }], | |
| box: [{ | |
| box: ["border", "content"] | |
| }], | |
| display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], | |
| float: [{ | |
| float: ["right", "left", "none", "start", "end"] | |
| }], | |
| clear: [{ | |
| clear: ["left", "right", "both", "none", "start", "end"] | |
| }], | |
| isolation: ["isolate", "isolation-auto"], | |
| "object-fit": [{ | |
| object: ["contain", "cover", "fill", "none", "scale-down"] | |
| }], | |
| "object-position": [{ | |
| object: [...Y(), H] | |
| }], | |
| overflow: [{ | |
| overflow: A() | |
| }], | |
| "overflow-x": [{ | |
| "overflow-x": A() | |
| }], | |
| "overflow-y": [{ | |
| "overflow-y": A() | |
| }], | |
| overscroll: [{ | |
| overscroll: O() | |
| }], | |
| "overscroll-x": [{ | |
| "overscroll-x": O() | |
| }], | |
| "overscroll-y": [{ | |
| "overscroll-y": O() | |
| }], | |
| position: ["static", "fixed", "absolute", "relative", "sticky"], | |
| inset: [{ | |
| inset: [y] | |
| }], | |
| "inset-x": [{ | |
| "inset-x": [y] | |
| }], | |
| "inset-y": [{ | |
| "inset-y": [y] | |
| }], | |
| start: [{ | |
| start: [y] | |
| }], | |
| end: [{ | |
| end: [y] | |
| }], | |
| top: [{ | |
| top: [y] | |
| }], | |
| right: [{ | |
| right: [y] | |
| }], | |
| bottom: [{ | |
| bottom: [y] | |
| }], | |
| left: [{ | |
| left: [y] | |
| }], | |
| visibility: ["visible", "invisible", "collapse"], | |
| z: [{ | |
| z: ["auto", Co, H] | |
| }], | |
| basis: [{ | |
| basis: z() | |
| }], | |
| "flex-direction": [{ | |
| flex: ["row", "row-reverse", "col", "col-reverse"] | |
| }], | |
| "flex-wrap": [{ | |
| flex: ["wrap", "wrap-reverse", "nowrap"] | |
| }], | |
| flex: [{ | |
| flex: ["1", "auto", "initial", "none", H] | |
| }], | |
| grow: [{ | |
| grow: T() | |
| }], | |
| shrink: [{ | |
| shrink: T() | |
| }], | |
| order: [{ | |
| order: ["first", "last", "none", Co, H] | |
| }], | |
| "grid-cols": [{ | |
| "grid-cols": [Eo] | |
| }], | |
| "col-start-end": [{ | |
| col: ["auto", { | |
| span: ["full", Co, H] | |
| }, H] | |
| }], | |
| "col-start": [{ | |
| "col-start": M() | |
| }], | |
| "col-end": [{ | |
| "col-end": M() | |
| }], | |
| "grid-rows": [{ | |
| "grid-rows": [Eo] | |
| }], | |
| "row-start-end": [{ | |
| row: ["auto", { | |
| span: [Co, H] | |
| }, H] | |
| }], | |
| "row-start": [{ | |
| "row-start": M() | |
| }], | |
| "row-end": [{ | |
| "row-end": M() | |
| }], | |
| "grid-flow": [{ | |
| "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] | |
| }], | |
| "auto-cols": [{ | |
| "auto-cols": ["auto", "min", "max", "fr", H] | |
| }], | |
| "auto-rows": [{ | |
| "auto-rows": ["auto", "min", "max", "fr", H] | |
| }], | |
| gap: [{ | |
| gap: [m] | |
| }], | |
| "gap-x": [{ | |
| "gap-x": [m] | |
| }], | |
| "gap-y": [{ | |
| "gap-y": [m] | |
| }], | |
| "justify-content": [{ | |
| justify: ["normal", ...P()] | |
| }], | |
| "justify-items": [{ | |
| "justify-items": ["start", "end", "center", "stretch"] | |
| }], | |
| "justify-self": [{ | |
| "justify-self": ["auto", "start", "end", "center", "stretch"] | |
| }], | |
| "align-content": [{ | |
| content: ["normal", ...P(), "baseline"] | |
| }], | |
| "align-items": [{ | |
| items: ["start", "end", "center", "baseline", "stretch"] | |
| }], | |
| "align-self": [{ | |
| self: ["auto", "start", "end", "center", "stretch", "baseline"] | |
| }], | |
| "place-content": [{ | |
| "place-content": [...P(), "baseline"] | |
| }], | |
| "place-items": [{ | |
| "place-items": ["start", "end", "center", "baseline", "stretch"] | |
| }], | |
| "place-self": [{ | |
| "place-self": ["auto", "start", "end", "center", "stretch"] | |
| }], | |
| p: [{ | |
| p: [p] | |
| }], | |
| px: [{ | |
| px: [p] | |
| }], | |
| py: [{ | |
| py: [p] | |
| }], | |
| ps: [{ | |
| ps: [p] | |
| }], | |
| pe: [{ | |
| pe: [p] | |
| }], | |
| pt: [{ | |
| pt: [p] | |
| }], | |
| pr: [{ | |
| pr: [p] | |
| }], | |
| pb: [{ | |
| pb: [p] | |
| }], | |
| pl: [{ | |
| pl: [p] | |
| }], | |
| m: [{ | |
| m: [w] | |
| }], | |
| mx: [{ | |
| mx: [w] | |
| }], | |
| my: [{ | |
| my: [w] | |
| }], | |
| ms: [{ | |
| ms: [w] | |
| }], | |
| me: [{ | |
| me: [w] | |
| }], | |
| mt: [{ | |
| mt: [w] | |
| }], | |
| mr: [{ | |
| mr: [w] | |
| }], | |
| mb: [{ | |
| mb: [w] | |
| }], | |
| ml: [{ | |
| ml: [w] | |
| }], | |
| "space-x": [{ | |
| "space-x": [b] | |
| }], | |
| "space-x-reverse": ["space-x-reverse"], | |
| "space-y": [{ | |
| "space-y": [b] | |
| }], | |
| "space-y-reverse": ["space-y-reverse"], | |
| w: [{ | |
| w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", H, t] | |
| }], | |
| "min-w": [{ | |
| "min-w": [H, t, "min", "max", "fit"] | |
| }], | |
| "max-w": [{ | |
| "max-w": [H, t, "none", "full", "min", "max", "fit", "prose", { | |
| screen: [dn] | |
| }, dn] | |
| }], | |
| h: [{ | |
| h: [H, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] | |
| }], | |
| "min-h": [{ | |
| "min-h": [H, t, "min", "max", "fit", "svh", "lvh", "dvh"] | |
| }], | |
| "max-h": [{ | |
| "max-h": [H, t, "min", "max", "fit", "svh", "lvh", "dvh"] | |
| }], | |
| size: [{ | |
| size: [H, t, "auto", "min", "max", "fit"] | |
| }], | |
| "font-size": [{ | |
| text: ["base", dn, cn] | |
| }], | |
| "font-smoothing": ["antialiased", "subpixel-antialiased"], | |
| "font-style": ["italic", "not-italic"], | |
| "font-weight": [{ | |
| font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Yl] | |
| }], | |
| "font-family": [{ | |
| font: [Eo] | |
| }], | |
| "fvn-normal": ["normal-nums"], | |
| "fvn-ordinal": ["ordinal"], | |
| "fvn-slashed-zero": ["slashed-zero"], | |
| "fvn-figure": ["lining-nums", "oldstyle-nums"], | |
| "fvn-spacing": ["proportional-nums", "tabular-nums"], | |
| "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], | |
| tracking: [{ | |
| tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", H] | |
| }], | |
| "line-clamp": [{ | |
| "line-clamp": ["none", $r, Yl] | |
| }], | |
| leading: [{ | |
| leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ut, H] | |
| }], | |
| "list-image": [{ | |
| "list-image": ["none", H] | |
| }], | |
| "list-style-type": [{ | |
| list: ["none", "disc", "decimal", H] | |
| }], | |
| "list-style-position": [{ | |
| list: ["inside", "outside"] | |
| }], | |
| "placeholder-color": [{ | |
| placeholder: [e] | |
| }], | |
| "placeholder-opacity": [{ | |
| "placeholder-opacity": [h] | |
| }], | |
| "text-alignment": [{ | |
| text: ["left", "center", "right", "justify", "start", "end"] | |
| }], | |
| "text-color": [{ | |
| text: [e] | |
| }], | |
| "text-opacity": [{ | |
| "text-opacity": [h] | |
| }], | |
| "text-decoration": ["underline", "overline", "line-through", "no-underline"], | |
| "text-decoration-style": [{ | |
| decoration: [...$(), "wavy"] | |
| }], | |
| "text-decoration-thickness": [{ | |
| decoration: ["auto", "from-font", Ut, cn] | |
| }], | |
| "underline-offset": [{ | |
| "underline-offset": ["auto", Ut, H] | |
| }], | |
| "text-decoration-color": [{ | |
| decoration: [e] | |
| }], | |
| "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], | |
| "text-overflow": ["truncate", "text-ellipsis", "text-clip"], | |
| "text-wrap": [{ | |
| text: ["wrap", "nowrap", "balance", "pretty"] | |
| }], | |
| indent: [{ | |
| indent: I() | |
| }], | |
| "vertical-align": [{ | |
| align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", H] | |
| }], | |
| whitespace: [{ | |
| whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] | |
| }], | |
| break: [{ | |
| break: ["normal", "words", "all", "keep"] | |
| }], | |
| hyphens: [{ | |
| hyphens: ["none", "manual", "auto"] | |
| }], | |
| content: [{ | |
| content: ["none", H] | |
| }], | |
| "bg-attachment": [{ | |
| bg: ["fixed", "local", "scroll"] | |
| }], | |
| "bg-clip": [{ | |
| "bg-clip": ["border", "padding", "content", "text"] | |
| }], | |
| "bg-opacity": [{ | |
| "bg-opacity": [h] | |
| }], | |
| "bg-origin": [{ | |
| "bg-origin": ["border", "padding", "content"] | |
| }], | |
| "bg-position": [{ | |
| bg: [...Y(), J1] | |
| }], | |
| "bg-repeat": [{ | |
| bg: ["no-repeat", { | |
| repeat: ["", "x", "y", "round", "space"] | |
| }] | |
| }], | |
| "bg-size": [{ | |
| bg: ["auto", "cover", "contain", Z1] | |
| }], | |
| "bg-image": [{ | |
| bg: ["none", { | |
| "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] | |
| }, tx] | |
| }], | |
| "bg-color": [{ | |
| bg: [e] | |
| }], | |
| "gradient-from-pos": [{ | |
| from: [x] | |
| }], | |
| "gradient-via-pos": [{ | |
| via: [x] | |
| }], | |
| "gradient-to-pos": [{ | |
| to: [x] | |
| }], | |
| "gradient-from": [{ | |
| from: [d] | |
| }], | |
| "gradient-via": [{ | |
| via: [d] | |
| }], | |
| "gradient-to": [{ | |
| to: [d] | |
| }], | |
| rounded: [{ | |
| rounded: [i] | |
| }], | |
| "rounded-s": [{ | |
| "rounded-s": [i] | |
| }], | |
| "rounded-e": [{ | |
| "rounded-e": [i] | |
| }], | |
| "rounded-t": [{ | |
| "rounded-t": [i] | |
| }], | |
| "rounded-r": [{ | |
| "rounded-r": [i] | |
| }], | |
| "rounded-b": [{ | |
| "rounded-b": [i] | |
| }], | |
| "rounded-l": [{ | |
| "rounded-l": [i] | |
| }], | |
| "rounded-ss": [{ | |
| "rounded-ss": [i] | |
| }], | |
| "rounded-se": [{ | |
| "rounded-se": [i] | |
| }], | |
| "rounded-ee": [{ | |
| "rounded-ee": [i] | |
| }], | |
| "rounded-es": [{ | |
| "rounded-es": [i] | |
| }], | |
| "rounded-tl": [{ | |
| "rounded-tl": [i] | |
| }], | |
| "rounded-tr": [{ | |
| "rounded-tr": [i] | |
| }], | |
| "rounded-br": [{ | |
| "rounded-br": [i] | |
| }], | |
| "rounded-bl": [{ | |
| "rounded-bl": [i] | |
| }], | |
| "border-w": [{ | |
| border: [l] | |
| }], | |
| "border-w-x": [{ | |
| "border-x": [l] | |
| }], | |
| "border-w-y": [{ | |
| "border-y": [l] | |
| }], | |
| "border-w-s": [{ | |
| "border-s": [l] | |
| }], | |
| "border-w-e": [{ | |
| "border-e": [l] | |
| }], | |
| "border-w-t": [{ | |
| "border-t": [l] | |
| }], | |
| "border-w-r": [{ | |
| "border-r": [l] | |
| }], | |
| "border-w-b": [{ | |
| "border-b": [l] | |
| }], | |
| "border-w-l": [{ | |
| "border-l": [l] | |
| }], | |
| "border-opacity": [{ | |
| "border-opacity": [h] | |
| }], | |
| "border-style": [{ | |
| border: [...$(), "hidden"] | |
| }], | |
| "divide-x": [{ | |
| "divide-x": [l] | |
| }], | |
| "divide-x-reverse": ["divide-x-reverse"], | |
| "divide-y": [{ | |
| "divide-y": [l] | |
| }], | |
| "divide-y-reverse": ["divide-y-reverse"], | |
| "divide-opacity": [{ | |
| "divide-opacity": [h] | |
| }], | |
| "divide-style": [{ | |
| divide: $() | |
| }], | |
| "border-color": [{ | |
| border: [o] | |
| }], | |
| "border-color-x": [{ | |
| "border-x": [o] | |
| }], | |
| "border-color-y": [{ | |
| "border-y": [o] | |
| }], | |
| "border-color-s": [{ | |
| "border-s": [o] | |
| }], | |
| "border-color-e": [{ | |
| "border-e": [o] | |
| }], | |
| "border-color-t": [{ | |
| "border-t": [o] | |
| }], | |
| "border-color-r": [{ | |
| "border-r": [o] | |
| }], | |
| "border-color-b": [{ | |
| "border-b": [o] | |
| }], | |
| "border-color-l": [{ | |
| "border-l": [o] | |
| }], | |
| "divide-color": [{ | |
| divide: [o] | |
| }], | |
| "outline-style": [{ | |
| outline: ["", ...$()] | |
| }], | |
| "outline-offset": [{ | |
| "outline-offset": [Ut, H] | |
| }], | |
| "outline-w": [{ | |
| outline: [Ut, cn] | |
| }], | |
| "outline-color": [{ | |
| outline: [e] | |
| }], | |
| "ring-w": [{ | |
| ring: Q() | |
| }], | |
| "ring-w-inset": ["ring-inset"], | |
| "ring-color": [{ | |
| ring: [e] | |
| }], | |
| "ring-opacity": [{ | |
| "ring-opacity": [h] | |
| }], | |
| "ring-offset-w": [{ | |
| "ring-offset": [Ut, cn] | |
| }], | |
| "ring-offset-color": [{ | |
| "ring-offset": [e] | |
| }], | |
| shadow: [{ | |
| shadow: ["", "inner", "none", dn, nx] | |
| }], | |
| "shadow-color": [{ | |
| shadow: [Eo] | |
| }], | |
| opacity: [{ | |
| opacity: [h] | |
| }], | |
| "mix-blend": [{ | |
| "mix-blend": [...W(), "plus-lighter", "plus-darker"] | |
| }], | |
| "bg-blend": [{ | |
| "bg-blend": W() | |
| }], | |
| filter: [{ | |
| filter: ["", "none"] | |
| }], | |
| blur: [{ | |
| blur: [n] | |
| }], | |
| brightness: [{ | |
| brightness: [r] | |
| }], | |
| contrast: [{ | |
| contrast: [a] | |
| }], | |
| "drop-shadow": [{ | |
| "drop-shadow": ["", "none", dn, H] | |
| }], | |
| grayscale: [{ | |
| grayscale: [u] | |
| }], | |
| "hue-rotate": [{ | |
| "hue-rotate": [c] | |
| }], | |
| invert: [{ | |
| invert: [f] | |
| }], | |
| saturate: [{ | |
| saturate: [v] | |
| }], | |
| sepia: [{ | |
| sepia: [C] | |
| }], | |
| "backdrop-filter": [{ | |
| "backdrop-filter": ["", "none"] | |
| }], | |
| "backdrop-blur": [{ | |
| "backdrop-blur": [n] | |
| }], | |
| "backdrop-brightness": [{ | |
| "backdrop-brightness": [r] | |
| }], | |
| "backdrop-contrast": [{ | |
| "backdrop-contrast": [a] | |
| }], | |
| "backdrop-grayscale": [{ | |
| "backdrop-grayscale": [u] | |
| }], | |
| "backdrop-hue-rotate": [{ | |
| "backdrop-hue-rotate": [c] | |
| }], | |
| "backdrop-invert": [{ | |
| "backdrop-invert": [f] | |
| }], | |
| "backdrop-opacity": [{ | |
| "backdrop-opacity": [h] | |
| }], | |
| "backdrop-saturate": [{ | |
| "backdrop-saturate": [v] | |
| }], | |
| "backdrop-sepia": [{ | |
| "backdrop-sepia": [C] | |
| }], | |
| "border-collapse": [{ | |
| border: ["collapse", "separate"] | |
| }], | |
| "border-spacing": [{ | |
| "border-spacing": [s] | |
| }], | |
| "border-spacing-x": [{ | |
| "border-spacing-x": [s] | |
| }], | |
| "border-spacing-y": [{ | |
| "border-spacing-y": [s] | |
| }], | |
| "table-layout": [{ | |
| table: ["auto", "fixed"] | |
| }], | |
| caption: [{ | |
| caption: ["top", "bottom"] | |
| }], | |
| transition: [{ | |
| transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", H] | |
| }], | |
| duration: [{ | |
| duration: V() | |
| }], | |
| ease: [{ | |
| ease: ["linear", "in", "out", "in-out", H] | |
| }], | |
| delay: [{ | |
| delay: V() | |
| }], | |
| animate: [{ | |
| animate: ["none", "spin", "ping", "pulse", "bounce", H] | |
| }], | |
| transform: [{ | |
| transform: ["", "gpu", "none"] | |
| }], | |
| scale: [{ | |
| scale: [k] | |
| }], | |
| "scale-x": [{ | |
| "scale-x": [k] | |
| }], | |
| "scale-y": [{ | |
| "scale-y": [k] | |
| }], | |
| rotate: [{ | |
| rotate: [Co, H] | |
| }], | |
| "translate-x": [{ | |
| "translate-x": [R] | |
| }], | |
| "translate-y": [{ | |
| "translate-y": [R] | |
| }], | |
| "skew-x": [{ | |
| "skew-x": [E] | |
| }], | |
| "skew-y": [{ | |
| "skew-y": [E] | |
| }], | |
| "transform-origin": [{ | |
| origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", H] | |
| }], | |
| accent: [{ | |
| accent: ["auto", e] | |
| }], | |
| appearance: [{ | |
| appearance: ["none", "auto"] | |
| }], | |
| cursor: [{ | |
| cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", H] | |
| }], | |
| "caret-color": [{ | |
| caret: [e] | |
| }], | |
| "pointer-events": [{ | |
| "pointer-events": ["none", "auto"] | |
| }], | |
| resize: [{ | |
| resize: ["none", "y", "x", ""] | |
| }], | |
| "scroll-behavior": [{ | |
| scroll: ["auto", "smooth"] | |
| }], | |
| "scroll-m": [{ | |
| "scroll-m": I() | |
| }], | |
| "scroll-mx": [{ | |
| "scroll-mx": I() | |
| }], | |
| "scroll-my": [{ | |
| "scroll-my": I() | |
| }], | |
| "scroll-ms": [{ | |
| "scroll-ms": I() | |
| }], | |
| "scroll-me": [{ | |
| "scroll-me": I() | |
| }], | |
| "scroll-mt": [{ | |
| "scroll-mt": I() | |
| }], | |
| "scroll-mr": [{ | |
| "scroll-mr": I() | |
| }], | |
| "scroll-mb": [{ | |
| "scroll-mb": I() | |
| }], | |
| "scroll-ml": [{ | |
| "scroll-ml": I() | |
| }], | |
| "scroll-p": [{ | |
| "scroll-p": I() | |
| }], | |
| "scroll-px": [{ | |
| "scroll-px": I() | |
| }], | |
| "scroll-py": [{ | |
| "scroll-py": I() | |
| }], | |
| "scroll-ps": [{ | |
| "scroll-ps": I() | |
| }], | |
| "scroll-pe": [{ | |
| "scroll-pe": I() | |
| }], | |
| "scroll-pt": [{ | |
| "scroll-pt": I() | |
| }], | |
| "scroll-pr": [{ | |
| "scroll-pr": I() | |
| }], | |
| "scroll-pb": [{ | |
| "scroll-pb": I() | |
| }], | |
| "scroll-pl": [{ | |
| "scroll-pl": I() | |
| }], | |
| "snap-align": [{ | |
| snap: ["start", "end", "center", "align-none"] | |
| }], | |
| "snap-stop": [{ | |
| snap: ["normal", "always"] | |
| }], | |
| "snap-type": [{ | |
| snap: ["none", "x", "y", "both"] | |
| }], | |
| "snap-strictness": [{ | |
| snap: ["mandatory", "proximity"] | |
| }], | |
| touch: [{ | |
| touch: ["auto", "none", "manipulation"] | |
| }], | |
| "touch-x": [{ | |
| "touch-pan": ["x", "left", "right"] | |
| }], | |
| "touch-y": [{ | |
| "touch-pan": ["y", "up", "down"] | |
| }], | |
| "touch-pz": ["touch-pinch-zoom"], | |
| select: [{ | |
| select: ["none", "text", "all", "auto"] | |
| }], | |
| "will-change": [{ | |
| "will-change": ["auto", "scroll", "contents", "transform", H] | |
| }], | |
| fill: [{ | |
| fill: [e, "none"] | |
| }], | |
| "stroke-w": [{ | |
| stroke: [Ut, cn, Yl] | |
| }], | |
| stroke: [{ | |
| stroke: [e, "none"] | |
| }], | |
| sr: ["sr-only", "not-sr-only"], | |
| "forced-color-adjust": [{ | |
| "forced-color-adjust": ["auto", "none"] | |
| }] | |
| }, | |
| conflictingClassGroups: { | |
| overflow: ["overflow-x", "overflow-y"], | |
| overscroll: ["overscroll-x", "overscroll-y"], | |
| inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], | |
| "inset-x": ["right", "left"], | |
| "inset-y": ["top", "bottom"], | |
| flex: ["basis", "grow", "shrink"], | |
| gap: ["gap-x", "gap-y"], | |
| p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], | |
| px: ["pr", "pl"], | |
| py: ["pt", "pb"], | |
| m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], | |
| mx: ["mr", "ml"], | |
| my: ["mt", "mb"], | |
| size: ["w", "h"], | |
| "font-size": ["leading"], | |
| "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], | |
| "fvn-ordinal": ["fvn-normal"], | |
| "fvn-slashed-zero": ["fvn-normal"], | |
| "fvn-figure": ["fvn-normal"], | |
| "fvn-spacing": ["fvn-normal"], | |
| "fvn-fraction": ["fvn-normal"], | |
| "line-clamp": ["display", "overflow"], | |
| rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], | |
| "rounded-s": ["rounded-ss", "rounded-es"], | |
| "rounded-e": ["rounded-se", "rounded-ee"], | |
| "rounded-t": ["rounded-tl", "rounded-tr"], | |
| "rounded-r": ["rounded-tr", "rounded-br"], | |
| "rounded-b": ["rounded-br", "rounded-bl"], | |
| "rounded-l": ["rounded-tl", "rounded-bl"], | |
| "border-spacing": ["border-spacing-x", "border-spacing-y"], | |
| "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], | |
| "border-w-x": ["border-w-r", "border-w-l"], | |
| "border-w-y": ["border-w-t", "border-w-b"], | |
| "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], | |
| "border-color-x": ["border-color-r", "border-color-l"], | |
| "border-color-y": ["border-color-t", "border-color-b"], | |
| "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], | |
| "scroll-mx": ["scroll-mr", "scroll-ml"], | |
| "scroll-my": ["scroll-mt", "scroll-mb"], | |
| "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], | |
| "scroll-px": ["scroll-pr", "scroll-pl"], | |
| "scroll-py": ["scroll-pt", "scroll-pb"], | |
| touch: ["touch-x", "touch-y", "touch-pz"], | |
| "touch-x": ["touch"], | |
| "touch-y": ["touch"], | |
| "touch-pz": ["touch"] | |
| }, | |
| conflictingClassGroupModifiers: { | |
| "font-size": ["leading"] | |
| } | |
| } | |
| }, | |
| lx = B1(sx); | |
| function ke(...e) { | |
| return lx(wm(e)) | |
| } | |
| const ax = d1, | |
| Rm = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx(pm, { | |
| ref: n, | |
| className: ke("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", e), | |
| ...t | |
| })); | |
| Rm.displayName = pm.displayName; | |
| const ux = ol("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", { | |
| variants: { | |
| variant: { | |
| default: "border bg-background text-foreground", | |
| destructive: "destructive group border-destructive bg-destructive text-destructive-foreground" | |
| } | |
| }, | |
| defaultVariants: { | |
| variant: "default" | |
| } | |
| }), | |
| jm = S.forwardRef(({ | |
| className: e, | |
| variant: t, | |
| ...n | |
| }, r) => g.jsx(hm, { | |
| ref: r, | |
| className: ke(ux({ | |
| variant: t | |
| }), e), | |
| ...n | |
| })); | |
| jm.displayName = hm.displayName; | |
| const cx = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx(ym, { | |
| ref: n, | |
| className: ke("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50", e), | |
| ...t | |
| })); | |
| cx.displayName = ym.displayName; | |
| const _m = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx(vm, { | |
| ref: n, | |
| className: ke("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", e), | |
| "toast-close": "", | |
| ...t, | |
| children: g.jsx(Cm, { | |
| className: "h-4 w-4" | |
| }) | |
| })); | |
| _m.displayName = vm.displayName; | |
| const Am = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx(mm, { | |
| ref: n, | |
| className: ke("text-sm font-semibold", e), | |
| ...t | |
| })); | |
| Am.displayName = mm.displayName; | |
| const Om = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx(gm, { | |
| ref: n, | |
| className: ke("text-sm opacity-90", e), | |
| ...t | |
| })); | |
| Om.displayName = gm.displayName; | |
| function dx() { | |
| const { | |
| toasts: e | |
| } = v0(); | |
| return g.jsxs(ax, { | |
| children: [e.map(function({ | |
| id: t, | |
| title: n, | |
| description: r, | |
| action: o, | |
| ...i | |
| }) { | |
| return g.jsxs(jm, { ...i, | |
| children: [g.jsxs("div", { | |
| className: "grid gap-1", | |
| children: [n && g.jsx(Am, { | |
| children: n | |
| }), r && g.jsx(Om, { | |
| children: r | |
| })] | |
| }), o, g.jsx(_m, {})] | |
| }, t) | |
| }), g.jsx(Rm, {})] | |
| }) | |
| } | |
| var Gd = ["light", "dark"], | |
| fx = "(prefers-color-scheme: dark)", | |
| px = S.createContext(void 0), | |
| hx = { | |
| setTheme: e => {}, | |
| themes: [] | |
| }, | |
| mx = () => { | |
| var e; | |
| return (e = S.useContext(px)) != null ? e : hx | |
| }; | |
| S.memo(({ | |
| forcedTheme: e, | |
| storageKey: t, | |
| attribute: n, | |
| enableSystem: r, | |
| enableColorScheme: o, | |
| defaultTheme: i, | |
| value: s, | |
| attrs: l, | |
| nonce: a | |
| }) => { | |
| let u = i === "system", | |
| c = n === "class" ? `var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};` : `var d=document.documentElement,n='${n}',s='setAttribute';`, | |
| f = o ? Gd.includes(i) && i ? `if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'` : "if(e==='light'||e==='dark')d.style.colorScheme=e" : "", | |
| m = (x, y = !1, w = !0) => { | |
| let h = s ? s[x] : x, | |
| p = y ? x + "|| ''" : `'${h}'`, | |
| v = ""; | |
| return o && w && !y && Gd.includes(x) && (v += `d.style.colorScheme = '${x}';`), n === "class" ? y || h ? v += `c.add(${p})` : v += "null" : h && (v += `d[s](n,${p})`), v | |
| }, | |
| d = e ? `!function(){${c}${m(e)}}()` : r ? `!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${fx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}${u?"":"else{"+m(i,!1,!1)+"}"}${f}}catch(e){}}()` : `!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}else{${m(i,!1,!1)};}${f}}catch(t){}}();`; | |
| return S.createElement("script", { | |
| nonce: a, | |
| dangerouslySetInnerHTML: { | |
| __html: d | |
| } | |
| }) | |
| }); | |
| var gx = e => { | |
| switch (e) { | |
| case "success": | |
| return xx; | |
| case "info": | |
| return Sx; | |
| case "warning": | |
| return wx; | |
| case "error": | |
| return kx; | |
| default: | |
| return null | |
| } | |
| }, | |
| yx = Array(12).fill(0), | |
| vx = ({ | |
| visible: e, | |
| className: t | |
| }) => _.createElement("div", { | |
| className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "), | |
| "data-visible": e | |
| }, _.createElement("div", { | |
| className: "sonner-spinner" | |
| }, yx.map((n, r) => _.createElement("div", { | |
| className: "sonner-loading-bar", | |
| key: `spinner-bar-${r}` | |
| })))), | |
| xx = _.createElement("svg", { | |
| xmlns: "http://www.w3.org/2000/svg", | |
| viewBox: "0 0 20 20", | |
| fill: "currentColor", | |
| height: "20", | |
| width: "20" | |
| }, _.createElement("path", { | |
| fillRule: "evenodd", | |
| d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", | |
| clipRule: "evenodd" | |
| })), | |
| wx = _.createElement("svg", { | |
| xmlns: "http://www.w3.org/2000/svg", | |
| viewBox: "0 0 24 24", | |
| fill: "currentColor", | |
| height: "20", | |
| width: "20" | |
| }, _.createElement("path", { | |
| fillRule: "evenodd", | |
| d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", | |
| clipRule: "evenodd" | |
| })), | |
| Sx = _.createElement("svg", { | |
| xmlns: "http://www.w3.org/2000/svg", | |
| viewBox: "0 0 20 20", | |
| fill: "currentColor", | |
| height: "20", | |
| width: "20" | |
| }, _.createElement("path", { | |
| fillRule: "evenodd", | |
| d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", | |
| clipRule: "evenodd" | |
| })), | |
| kx = _.createElement("svg", { | |
| xmlns: "http://www.w3.org/2000/svg", | |
| viewBox: "0 0 20 20", | |
| fill: "currentColor", | |
| height: "20", | |
| width: "20" | |
| }, _.createElement("path", { | |
| fillRule: "evenodd", | |
| d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", | |
| clipRule: "evenodd" | |
| })), | |
| Cx = _.createElement("svg", { | |
| xmlns: "http://www.w3.org/2000/svg", | |
| width: "12", | |
| height: "12", | |
| viewBox: "0 0 24 24", | |
| fill: "none", | |
| stroke: "currentColor", | |
| strokeWidth: "1.5", | |
| strokeLinecap: "round", | |
| strokeLinejoin: "round" | |
| }, _.createElement("line", { | |
| x1: "18", | |
| y1: "6", | |
| x2: "6", | |
| y2: "18" | |
| }), _.createElement("line", { | |
| x1: "6", | |
| y1: "6", | |
| x2: "18", | |
| y2: "18" | |
| })), | |
| Ex = () => { | |
| let [e, t] = _.useState(document.hidden); | |
| return _.useEffect(() => { | |
| let n = () => { | |
| t(document.hidden) | |
| }; | |
| return document.addEventListener("visibilitychange", n), () => window.removeEventListener("visibilitychange", n) | |
| }, []), e | |
| }, | |
| qa = 1, | |
| bx = class { | |
| constructor() { | |
| this.subscribe = e => (this.subscribers.push(e), () => { | |
| let t = this.subscribers.indexOf(e); | |
| this.subscribers.splice(t, 1) | |
| }), this.publish = e => { | |
| this.subscribers.forEach(t => t(e)) | |
| }, this.addToast = e => { | |
| this.publish(e), this.toasts = [...this.toasts, e] | |
| }, this.create = e => { | |
| var t; | |
| let { | |
| message: n, | |
| ...r | |
| } = e, o = typeof(e == null ? void 0 : e.id) == "number" || ((t = e.id) == null ? void 0 : t.length) > 0 ? e.id : qa++, i = this.toasts.find(l => l.id === o), s = e.dismissible === void 0 ? !0 : e.dismissible; | |
| return this.dismissedToasts.has(o) && this.dismissedToasts.delete(o), i ? this.toasts = this.toasts.map(l => l.id === o ? (this.publish({ ...l, | |
| ...e, | |
| id: o, | |
| title: n | |
| }), { ...l, | |
| ...e, | |
| id: o, | |
| dismissible: s, | |
| title: n | |
| }) : l) : this.addToast({ | |
| title: n, | |
| ...r, | |
| dismissible: s, | |
| id: o | |
| }), o | |
| }, this.dismiss = e => (this.dismissedToasts.add(e), e || this.toasts.forEach(t => { | |
| this.subscribers.forEach(n => n({ | |
| id: t.id, | |
| dismiss: !0 | |
| })) | |
| }), this.subscribers.forEach(t => t({ | |
| id: e, | |
| dismiss: !0 | |
| })), e), this.message = (e, t) => this.create({ ...t, | |
| message: e | |
| }), this.error = (e, t) => this.create({ ...t, | |
| message: e, | |
| type: "error" | |
| }), this.success = (e, t) => this.create({ ...t, | |
| type: "success", | |
| message: e | |
| }), this.info = (e, t) => this.create({ ...t, | |
| type: "info", | |
| message: e | |
| }), this.warning = (e, t) => this.create({ ...t, | |
| type: "warning", | |
| message: e | |
| }), this.loading = (e, t) => this.create({ ...t, | |
| type: "loading", | |
| message: e | |
| }), this.promise = (e, t) => { | |
| if (!t) return; | |
| let n; | |
| t.loading !== void 0 && (n = this.create({ ...t, | |
| promise: e, | |
| type: "loading", | |
| message: t.loading, | |
| description: typeof t.description != "function" ? t.description : void 0 | |
| })); | |
| let r = e instanceof Promise ? e : e(), | |
| o = n !== void 0, | |
| i, s = r.then(async a => { | |
| if (i = ["resolve", a], _.isValidElement(a)) o = !1, this.create({ | |
| id: n, | |
| type: "default", | |
| message: a | |
| }); | |
| else if (Px(a) && !a.ok) { | |
| o = !1; | |
| let u = typeof t.error == "function" ? await t.error(`HTTP error! status: ${a.status}`) : t.error, | |
| c = typeof t.description == "function" ? await t.description(`HTTP error! status: ${a.status}`) : t.description; | |
| this.create({ | |
| id: n, | |
| type: "error", | |
| message: u, | |
| description: c | |
| }) | |
| } else if (t.success !== void 0) { | |
| o = !1; | |
| let u = typeof t.success == "function" ? await t.success(a) : t.success, | |
| c = typeof t.description == "function" ? await t.description(a) : t.description; | |
| this.create({ | |
| id: n, | |
| type: "success", | |
| message: u, | |
| description: c | |
| }) | |
| } | |
| }).catch(async a => { | |
| if (i = ["reject", a], t.error !== void 0) { | |
| o = !1; | |
| let u = typeof t.error == "function" ? await t.error(a) : t.error, | |
| c = typeof t.description == "function" ? await t.description(a) : t.description; | |
| this.create({ | |
| id: n, | |
| type: "error", | |
| message: u, | |
| description: c | |
| }) | |
| } | |
| }).finally(() => { | |
| var a; | |
| o && (this.dismiss(n), n = void 0), (a = t.finally) == null || a.call(t) | |
| }), | |
| l = () => new Promise((a, u) => s.then(() => i[0] === "reject" ? u(i[1]) : a(i[1])).catch(u)); | |
| return typeof n != "string" && typeof n != "number" ? { | |
| unwrap: l | |
| } : Object.assign(n, { | |
| unwrap: l | |
| }) | |
| }, this.custom = (e, t) => { | |
| let n = (t == null ? void 0 : t.id) || qa++; | |
| return this.create({ | |
| jsx: e(n), | |
| id: n, | |
| ...t | |
| }), n | |
| }, this.getActiveToasts = () => this.toasts.filter(e => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = new Set | |
| } | |
| }, | |
| $e = new bx, | |
| Nx = (e, t) => { | |
| let n = (t == null ? void 0 : t.id) || qa++; | |
| return $e.addToast({ | |
| title: e, | |
| ...t, | |
| id: n | |
| }), n | |
| }, | |
| Px = e => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", | |
| Tx = Nx, | |
| Rx = () => $e.toasts, | |
| jx = () => $e.getActiveToasts(); | |
| Object.assign(Tx, { | |
| success: $e.success, | |
| info: $e.info, | |
| warning: $e.warning, | |
| error: $e.error, | |
| custom: $e.custom, | |
| message: $e.message, | |
| promise: $e.promise, | |
| dismiss: $e.dismiss, | |
| loading: $e.loading | |
| }, { | |
| getHistory: Rx, | |
| getToasts: jx | |
| }); | |
| function _x(e, { | |
| insertAt: t | |
| } = {}) { | |
| if (typeof document > "u") return; | |
| let n = document.head || document.getElementsByTagName("head")[0], | |
| r = document.createElement("style"); | |
| r.type = "text/css", t === "top" && n.firstChild ? n.insertBefore(r, n.firstChild) : n.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e)) | |
| } | |
| _x(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} | |
| `); | |
| function Bi(e) { | |
| return e.label !== void 0 | |
| } | |
| var Ax = 3, | |
| Ox = "32px", | |
| Mx = "16px", | |
| Yd = 4e3, | |
| Lx = 356, | |
| Dx = 14, | |
| Ix = 20, | |
| Fx = 200; | |
| function ht(...e) { | |
| return e.filter(Boolean).join(" ") | |
| } | |
| function zx(e) { | |
| let [t, n] = e.split("-"), r = []; | |
| return t && r.push(t), n && r.push(n), r | |
| } | |
| var $x = e => { | |
| var t, n, r, o, i, s, l, a, u, c, f; | |
| let { | |
| invert: m, | |
| toast: d, | |
| unstyled: x, | |
| interacting: y, | |
| setHeights: w, | |
| visibleToasts: h, | |
| heights: p, | |
| index: v, | |
| toasts: k, | |
| expanded: C, | |
| removeToast: E, | |
| defaultRichColors: b, | |
| closeButton: R, | |
| style: O, | |
| cancelButtonStyle: A, | |
| actionButtonStyle: z, | |
| className: I = "", | |
| descriptionClassName: Q = "", | |
| duration: M, | |
| position: Y, | |
| gap: $, | |
| loadingIcon: W, | |
| expandByDefault: P, | |
| classNames: T, | |
| icons: L, | |
| closeButtonAriaLabel: V = "Close toast", | |
| pauseWhenPageIsHidden: F | |
| } = e, [K, X] = _.useState(null), [he, Ne] = _.useState(null), [J, hr] = _.useState(!1), [nn, Bn] = _.useState(!1), [rn, mr] = _.useState(!1), [on, vi] = _.useState(!1), [ml, xi] = _.useState(!1), [gl, po] = _.useState(0), [gr, Cc] = _.useState(0), ho = _.useRef(d.duration || M || Yd), Ec = _.useRef(null), Wn = _.useRef(null), Ag = v === 0, Og = v + 1 <= h, nt = d.type, yr = d.dismissible !== !1, Mg = d.className || "", Lg = d.descriptionClassName || "", wi = _.useMemo(() => p.findIndex(U => U.toastId === d.id) || 0, [p, d.id]), Dg = _.useMemo(() => { | |
| var U; | |
| return (U = d.closeButton) != null ? U : R | |
| }, [d.closeButton, R]), bc = _.useMemo(() => d.duration || M || Yd, [d.duration, M]), yl = _.useRef(0), vr = _.useRef(0), Nc = _.useRef(0), xr = _.useRef(null), [Ig, Fg] = Y.split("-"), Pc = _.useMemo(() => p.reduce((U, te, se) => se >= wi ? U : U + te.height, 0), [p, wi]), Tc = Ex(), zg = d.invert || m, vl = nt === "loading"; | |
| vr.current = _.useMemo(() => wi * $ + Pc, [wi, Pc]), _.useEffect(() => { | |
| ho.current = bc | |
| }, [bc]), _.useEffect(() => { | |
| hr(!0) | |
| }, []), _.useEffect(() => { | |
| let U = Wn.current; | |
| if (U) { | |
| let te = U.getBoundingClientRect().height; | |
| return Cc(te), w(se => [{ | |
| toastId: d.id, | |
| height: te, | |
| position: d.position | |
| }, ...se]), () => w(se => se.filter(ct => ct.toastId !== d.id)) | |
| } | |
| }, [w, d.id]), _.useLayoutEffect(() => { | |
| if (!J) return; | |
| let U = Wn.current, | |
| te = U.style.height; | |
| U.style.height = "auto"; | |
| let se = U.getBoundingClientRect().height; | |
| U.style.height = te, Cc(se), w(ct => ct.find(dt => dt.toastId === d.id) ? ct.map(dt => dt.toastId === d.id ? { ...dt, | |
| height: se | |
| } : dt) : [{ | |
| toastId: d.id, | |
| height: se, | |
| position: d.position | |
| }, ...ct]) | |
| }, [J, d.title, d.description, w, d.id]); | |
| let sn = _.useCallback(() => { | |
| Bn(!0), po(vr.current), w(U => U.filter(te => te.toastId !== d.id)), setTimeout(() => { | |
| E(d) | |
| }, Fx) | |
| }, [d, E, w, vr]); | |
| _.useEffect(() => { | |
| if (d.promise && nt === "loading" || d.duration === 1 / 0 || d.type === "loading") return; | |
| let U; | |
| return C || y || F && Tc ? (() => { | |
| if (Nc.current < yl.current) { | |
| let te = new Date().getTime() - yl.current; | |
| ho.current = ho.current - te | |
| } | |
| Nc.current = new Date().getTime() | |
| })() : ho.current !== 1 / 0 && (yl.current = new Date().getTime(), U = setTimeout(() => { | |
| var te; | |
| (te = d.onAutoClose) == null || te.call(d, d), sn() | |
| }, ho.current)), () => clearTimeout(U) | |
| }, [C, y, d, nt, F, Tc, sn]), _.useEffect(() => { | |
| d.delete && sn() | |
| }, [sn, d.delete]); | |
| function $g() { | |
| var U, te, se; | |
| return L != null && L.loading ? _.createElement("div", { | |
| className: ht(T == null ? void 0 : T.loader, (U = d == null ? void 0 : d.classNames) == null ? void 0 : U.loader, "sonner-loader"), | |
| "data-visible": nt === "loading" | |
| }, L.loading) : W ? _.createElement("div", { | |
| className: ht(T == null ? void 0 : T.loader, (te = d == null ? void 0 : d.classNames) == null ? void 0 : te.loader, "sonner-loader"), | |
| "data-visible": nt === "loading" | |
| }, W) : _.createElement(vx, { | |
| className: ht(T == null ? void 0 : T.loader, (se = d == null ? void 0 : d.classNames) == null ? void 0 : se.loader), | |
| visible: nt === "loading" | |
| }) | |
| } | |
| return _.createElement("li", { | |
| tabIndex: 0, | |
| ref: Wn, | |
| className: ht(I, Mg, T == null ? void 0 : T.toast, (t = d == null ? void 0 : d.classNames) == null ? void 0 : t.toast, T == null ? void 0 : T.default, T == null ? void 0 : T[nt], (n = d == null ? void 0 : d.classNames) == null ? void 0 : n[nt]), | |
| "data-sonner-toast": "", | |
| "data-rich-colors": (r = d.richColors) != null ? r : b, | |
| "data-styled": !(d.jsx || d.unstyled || x), | |
| "data-mounted": J, | |
| "data-promise": !!d.promise, | |
| "data-swiped": ml, | |
| "data-removed": nn, | |
| "data-visible": Og, | |
| "data-y-position": Ig, | |
| "data-x-position": Fg, | |
| "data-index": v, | |
| "data-front": Ag, | |
| "data-swiping": rn, | |
| "data-dismissible": yr, | |
| "data-type": nt, | |
| "data-invert": zg, | |
| "data-swipe-out": on, | |
| "data-swipe-direction": he, | |
| "data-expanded": !!(C || P && J), | |
| style: { | |
| "--index": v, | |
| "--toasts-before": v, | |
| "--z-index": k.length - v, | |
| "--offset": `${nn?gl:vr.current}px`, | |
| "--initial-height": P ? "auto" : `${gr}px`, | |
| ...O, | |
| ...d.style | |
| }, | |
| onDragEnd: () => { | |
| mr(!1), X(null), xr.current = null | |
| }, | |
| onPointerDown: U => { | |
| vl || !yr || (Ec.current = new Date, po(vr.current), U.target.setPointerCapture(U.pointerId), U.target.tagName !== "BUTTON" && (mr(!0), xr.current = { | |
| x: U.clientX, | |
| y: U.clientY | |
| })) | |
| }, | |
| onPointerUp: () => { | |
| var U, te, se, ct; | |
| if (on || !yr) return; | |
| xr.current = null; | |
| let dt = Number(((U = Wn.current) == null ? void 0 : U.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), | |
| ln = Number(((te = Wn.current) == null ? void 0 : te.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), | |
| Vn = new Date().getTime() - ((se = Ec.current) == null ? void 0 : se.getTime()), | |
| ft = K === "x" ? dt : ln, | |
| an = Math.abs(ft) / Vn; | |
| if (Math.abs(ft) >= Ix || an > .11) { | |
| po(vr.current), (ct = d.onDismiss) == null || ct.call(d, d), Ne(K === "x" ? dt > 0 ? "right" : "left" : ln > 0 ? "down" : "up"), sn(), vi(!0), xi(!1); | |
| return | |
| } | |
| mr(!1), X(null) | |
| }, | |
| onPointerMove: U => { | |
| var te, se, ct, dt; | |
| if (!xr.current || !yr || ((te = window.getSelection()) == null ? void 0 : te.toString().length) > 0) return; | |
| let ln = U.clientY - xr.current.y, | |
| Vn = U.clientX - xr.current.x, | |
| ft = (se = e.swipeDirections) != null ? se : zx(Y); | |
| !K && (Math.abs(Vn) > 1 || Math.abs(ln) > 1) && X(Math.abs(Vn) > Math.abs(ln) ? "x" : "y"); | |
| let an = { | |
| x: 0, | |
| y: 0 | |
| }; | |
| K === "y" ? (ft.includes("top") || ft.includes("bottom")) && (ft.includes("top") && ln < 0 || ft.includes("bottom") && ln > 0) && (an.y = ln) : K === "x" && (ft.includes("left") || ft.includes("right")) && (ft.includes("left") && Vn < 0 || ft.includes("right") && Vn > 0) && (an.x = Vn), (Math.abs(an.x) > 0 || Math.abs(an.y) > 0) && xi(!0), (ct = Wn.current) == null || ct.style.setProperty("--swipe-amount-x", `${an.x}px`), (dt = Wn.current) == null || dt.style.setProperty("--swipe-amount-y", `${an.y}px`) | |
| } | |
| }, Dg && !d.jsx ? _.createElement("button", { | |
| "aria-label": V, | |
| "data-disabled": vl, | |
| "data-close-button": !0, | |
| onClick: vl || !yr ? () => {} : () => { | |
| var U; | |
| sn(), (U = d.onDismiss) == null || U.call(d, d) | |
| }, | |
| className: ht(T == null ? void 0 : T.closeButton, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.closeButton) | |
| }, (i = L == null ? void 0 : L.close) != null ? i : Cx) : null, d.jsx || S.isValidElement(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : _.createElement(_.Fragment, null, nt || d.icon || d.promise ? _.createElement("div", { | |
| "data-icon": "", | |
| className: ht(T == null ? void 0 : T.icon, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.icon) | |
| }, d.promise || d.type === "loading" && !d.icon ? d.icon || $g() : null, d.type !== "loading" ? d.icon || (L == null ? void 0 : L[nt]) || gx(nt) : null) : null, _.createElement("div", { | |
| "data-content": "", | |
| className: ht(T == null ? void 0 : T.content, (l = d == null ? void 0 : d.classNames) == null ? void 0 : l.content) | |
| }, _.createElement("div", { | |
| "data-title": "", | |
| className: ht(T == null ? void 0 : T.title, (a = d == null ? void 0 : d.classNames) == null ? void 0 : a.title) | |
| }, typeof d.title == "function" ? d.title() : d.title), d.description ? _.createElement("div", { | |
| "data-description": "", | |
| className: ht(Q, Lg, T == null ? void 0 : T.description, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.description) | |
| }, typeof d.description == "function" ? d.description() : d.description) : null), S.isValidElement(d.cancel) ? d.cancel : d.cancel && Bi(d.cancel) ? _.createElement("button", { | |
| "data-button": !0, | |
| "data-cancel": !0, | |
| style: d.cancelButtonStyle || A, | |
| onClick: U => { | |
| var te, se; | |
| Bi(d.cancel) && yr && ((se = (te = d.cancel).onClick) == null || se.call(te, U), sn()) | |
| }, | |
| className: ht(T == null ? void 0 : T.cancelButton, (c = d == null ? void 0 : d.classNames) == null ? void 0 : c.cancelButton) | |
| }, d.cancel.label) : null, S.isValidElement(d.action) ? d.action : d.action && Bi(d.action) ? _.createElement("button", { | |
| "data-button": !0, | |
| "data-action": !0, | |
| style: d.actionButtonStyle || z, | |
| onClick: U => { | |
| var te, se; | |
| Bi(d.action) && ((se = (te = d.action).onClick) == null || se.call(te, U), !U.defaultPrevented && sn()) | |
| }, | |
| className: ht(T == null ? void 0 : T.actionButton, (f = d == null ? void 0 : d.classNames) == null ? void 0 : f.actionButton) | |
| }, d.action.label) : null)) | |
| }; | |
| function Xd() { | |
| if (typeof window > "u" || typeof document > "u") return "ltr"; | |
| let e = document.documentElement.getAttribute("dir"); | |
| return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e | |
| } | |
| function Ux(e, t) { | |
| let n = {}; | |
| return [e, t].forEach((r, o) => { | |
| let i = o === 1, | |
| s = i ? "--mobile-offset" : "--offset", | |
| l = i ? Mx : Ox; | |
| function a(u) { | |
| ["top", "right", "bottom", "left"].forEach(c => { | |
| n[`${s}-${c}`] = typeof u == "number" ? `${u}px` : u | |
| }) | |
| } | |
| typeof r == "number" || typeof r == "string" ? a(r) : typeof r == "object" ? ["top", "right", "bottom", "left"].forEach(u => { | |
| r[u] === void 0 ? n[`${s}-${u}`] = l : n[`${s}-${u}`] = typeof r[u] == "number" ? `${r[u]}px` : r[u] | |
| }) : a(l) | |
| }), n | |
| } | |
| var Bx = S.forwardRef(function(e, t) { | |
| let { | |
| invert: n, | |
| position: r = "bottom-right", | |
| hotkey: o = ["altKey", "KeyT"], | |
| expand: i, | |
| closeButton: s, | |
| className: l, | |
| offset: a, | |
| mobileOffset: u, | |
| theme: c = "light", | |
| richColors: f, | |
| duration: m, | |
| style: d, | |
| visibleToasts: x = Ax, | |
| toastOptions: y, | |
| dir: w = Xd(), | |
| gap: h = Dx, | |
| loadingIcon: p, | |
| icons: v, | |
| containerAriaLabel: k = "Notifications", | |
| pauseWhenPageIsHidden: C | |
| } = e, [E, b] = _.useState([]), R = _.useMemo(() => Array.from(new Set([r].concat(E.filter(F => F.position).map(F => F.position)))), [E, r]), [O, A] = _.useState([]), [z, I] = _.useState(!1), [Q, M] = _.useState(!1), [Y, $] = _.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), W = _.useRef(null), P = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), T = _.useRef(null), L = _.useRef(!1), V = _.useCallback(F => { | |
| b(K => { | |
| var X; | |
| return (X = K.find(he => he.id === F.id)) != null && X.delete || $e.dismiss(F.id), K.filter(({ | |
| id: he | |
| }) => he !== F.id) | |
| }) | |
| }, []); | |
| return _.useEffect(() => $e.subscribe(F => { | |
| if (F.dismiss) { | |
| b(K => K.map(X => X.id === F.id ? { ...X, | |
| delete: !0 | |
| } : X)); | |
| return | |
| } | |
| setTimeout(() => { | |
| Hh.flushSync(() => { | |
| b(K => { | |
| let X = K.findIndex(he => he.id === F.id); | |
| return X !== -1 ? [...K.slice(0, X), { ...K[X], | |
| ...F | |
| }, ...K.slice(X + 1)] : [F, ...K] | |
| }) | |
| }) | |
| }) | |
| }), []), _.useEffect(() => { | |
| if (c !== "system") { | |
| $(c); | |
| return | |
| } | |
| if (c === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? $("dark") : $("light")), typeof window > "u") return; | |
| let F = window.matchMedia("(prefers-color-scheme: dark)"); | |
| try { | |
| F.addEventListener("change", ({ | |
| matches: K | |
| }) => { | |
| $(K ? "dark" : "light") | |
| }) | |
| } catch { | |
| F.addListener(({ | |
| matches: X | |
| }) => { | |
| try { | |
| $(X ? "dark" : "light") | |
| } catch (he) { | |
| console.error(he) | |
| } | |
| }) | |
| } | |
| }, [c]), _.useEffect(() => { | |
| E.length <= 1 && I(!1) | |
| }, [E]), _.useEffect(() => { | |
| let F = K => { | |
| var X, he; | |
| o.every(Ne => K[Ne] || K.code === Ne) && (I(!0), (X = W.current) == null || X.focus()), K.code === "Escape" && (document.activeElement === W.current || (he = W.current) != null && he.contains(document.activeElement)) && I(!1) | |
| }; | |
| return document.addEventListener("keydown", F), () => document.removeEventListener("keydown", F) | |
| }, [o]), _.useEffect(() => { | |
| if (W.current) return () => { | |
| T.current && (T.current.focus({ | |
| preventScroll: !0 | |
| }), T.current = null, L.current = !1) | |
| } | |
| }, [W.current]), _.createElement("section", { | |
| ref: t, | |
| "aria-label": `${k} ${P}`, | |
| tabIndex: -1, | |
| "aria-live": "polite", | |
| "aria-relevant": "additions text", | |
| "aria-atomic": "false", | |
| suppressHydrationWarning: !0 | |
| }, R.map((F, K) => { | |
| var X; | |
| let [he, Ne] = F.split("-"); | |
| return E.length ? _.createElement("ol", { | |
| key: F, | |
| dir: w === "auto" ? Xd() : w, | |
| tabIndex: -1, | |
| ref: W, | |
| className: l, | |
| "data-sonner-toaster": !0, | |
| "data-theme": Y, | |
| "data-y-position": he, | |
| "data-lifted": z && E.length > 1 && !i, | |
| "data-x-position": Ne, | |
| style: { | |
| "--front-toast-height": `${((X=O[0])==null?void 0:X.height)||0}px`, | |
| "--width": `${Lx}px`, | |
| "--gap": `${h}px`, | |
| ...d, | |
| ...Ux(a, u) | |
| }, | |
| onBlur: J => { | |
| L.current && !J.currentTarget.contains(J.relatedTarget) && (L.current = !1, T.current && (T.current.focus({ | |
| preventScroll: !0 | |
| }), T.current = null)) | |
| }, | |
| onFocus: J => { | |
| J.target instanceof HTMLElement && J.target.dataset.dismissible === "false" || L.current || (L.current = !0, T.current = J.relatedTarget) | |
| }, | |
| onMouseEnter: () => I(!0), | |
| onMouseMove: () => I(!0), | |
| onMouseLeave: () => { | |
| Q || I(!1) | |
| }, | |
| onDragEnd: () => I(!1), | |
| onPointerDown: J => { | |
| J.target instanceof HTMLElement && J.target.dataset.dismissible === "false" || M(!0) | |
| }, | |
| onPointerUp: () => M(!1) | |
| }, E.filter(J => !J.position && K === 0 || J.position === F).map((J, hr) => { | |
| var nn, Bn; | |
| return _.createElement($x, { | |
| key: J.id, | |
| icons: v, | |
| index: hr, | |
| toast: J, | |
| defaultRichColors: f, | |
| duration: (nn = y == null ? void 0 : y.duration) != null ? nn : m, | |
| className: y == null ? void 0 : y.className, | |
| descriptionClassName: y == null ? void 0 : y.descriptionClassName, | |
| invert: n, | |
| visibleToasts: x, | |
| closeButton: (Bn = y == null ? void 0 : y.closeButton) != null ? Bn : s, | |
| interacting: Q, | |
| position: F, | |
| style: y == null ? void 0 : y.style, | |
| unstyled: y == null ? void 0 : y.unstyled, | |
| classNames: y == null ? void 0 : y.classNames, | |
| cancelButtonStyle: y == null ? void 0 : y.cancelButtonStyle, | |
| actionButtonStyle: y == null ? void 0 : y.actionButtonStyle, | |
| removeToast: V, | |
| toasts: E.filter(rn => rn.position == J.position), | |
| heights: O.filter(rn => rn.position == J.position), | |
| setHeights: A, | |
| expandByDefault: i, | |
| gap: h, | |
| loadingIcon: p, | |
| expanded: z, | |
| pauseWhenPageIsHidden: C, | |
| swipeDirections: e.swipeDirections | |
| }) | |
| })) : null | |
| })) | |
| }); | |
| const Wx = ({ ...e | |
| }) => { | |
| const { | |
| theme: t = "system" | |
| } = mx(); | |
| return g.jsx(Bx, { | |
| theme: t, | |
| className: "toaster group", | |
| toastOptions: { | |
| classNames: { | |
| toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg", | |
| description: "group-[.toast]:text-muted-foreground", | |
| actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground", | |
| cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground" | |
| } | |
| }, | |
| ...e | |
| }) | |
| }, | |
| Vx = ["top", "right", "bottom", "left"], | |
| In = Math.min, | |
| Ge = Math.max, | |
| As = Math.round, | |
| Wi = Math.floor, | |
| Ft = e => ({ | |
| x: e, | |
| y: e | |
| }), | |
| Hx = { | |
| left: "right", | |
| right: "left", | |
| bottom: "top", | |
| top: "bottom" | |
| }, | |
| Qx = { | |
| start: "end", | |
| end: "start" | |
| }; | |
| function Za(e, t, n) { | |
| return Ge(e, In(t, n)) | |
| } | |
| function Jt(e, t) { | |
| return typeof e == "function" ? e(t) : e | |
| } | |
| function en(e) { | |
| return e.split("-")[0] | |
| } | |
| function co(e) { | |
| return e.split("-")[1] | |
| } | |
| function cc(e) { | |
| return e === "x" ? "y" : "x" | |
| } | |
| function dc(e) { | |
| return e === "y" ? "height" : "width" | |
| } | |
| const Kx = new Set(["top", "bottom"]); | |
| function Lt(e) { | |
| return Kx.has(en(e)) ? "y" : "x" | |
| } | |
| function fc(e) { | |
| return cc(Lt(e)) | |
| } | |
| function Gx(e, t, n) { | |
| n === void 0 && (n = !1); | |
| const r = co(e), | |
| o = fc(e), | |
| i = dc(o); | |
| let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top"; | |
| return t.reference[i] > t.floating[i] && (s = Os(s)), [s, Os(s)] | |
| } | |
| function Yx(e) { | |
| const t = Os(e); | |
| return [Ja(e), t, Ja(t)] | |
| } | |
| function Ja(e) { | |
| return e.replace(/start|end/g, t => Qx[t]) | |
| } | |
| const qd = ["left", "right"], | |
| Zd = ["right", "left"], | |
| Xx = ["top", "bottom"], | |
| qx = ["bottom", "top"]; | |
| function Zx(e, t, n) { | |
| switch (e) { | |
| case "top": | |
| case "bottom": | |
| return n ? t ? Zd : qd : t ? qd : Zd; | |
| case "left": | |
| case "right": | |
| return t ? Xx : qx; | |
| default: | |
| return [] | |
| } | |
| } | |
| function Jx(e, t, n, r) { | |
| const o = co(e); | |
| let i = Zx(en(e), n === "start", r); | |
| return o && (i = i.map(s => s + "-" + o), t && (i = i.concat(i.map(Ja)))), i | |
| } | |
| function Os(e) { | |
| return e.replace(/left|right|bottom|top/g, t => Hx[t]) | |
| } | |
| function ew(e) { | |
| return { | |
| top: 0, | |
| right: 0, | |
| bottom: 0, | |
| left: 0, | |
| ...e | |
| } | |
| } | |
| function Mm(e) { | |
| return typeof e != "number" ? ew(e) : { | |
| top: e, | |
| right: e, | |
| bottom: e, | |
| left: e | |
| } | |
| } | |
| function Ms(e) { | |
| const { | |
| x: t, | |
| y: n, | |
| width: r, | |
| height: o | |
| } = e; | |
| return { | |
| width: r, | |
| height: o, | |
| top: n, | |
| left: t, | |
| right: t + r, | |
| bottom: n + o, | |
| x: t, | |
| y: n | |
| } | |
| } | |
| function Jd(e, t, n) { | |
| let { | |
| reference: r, | |
| floating: o | |
| } = e; | |
| const i = Lt(t), | |
| s = fc(t), | |
| l = dc(s), | |
| a = en(t), | |
| u = i === "y", | |
| c = r.x + r.width / 2 - o.width / 2, | |
| f = r.y + r.height / 2 - o.height / 2, | |
| m = r[l] / 2 - o[l] / 2; | |
| let d; | |
| switch (a) { | |
| case "top": | |
| d = { | |
| x: c, | |
| y: r.y - o.height | |
| }; | |
| break; | |
| case "bottom": | |
| d = { | |
| x: c, | |
| y: r.y + r.height | |
| }; | |
| break; | |
| case "right": | |
| d = { | |
| x: r.x + r.width, | |
| y: f | |
| }; | |
| break; | |
| case "left": | |
| d = { | |
| x: r.x - o.width, | |
| y: f | |
| }; | |
| break; | |
| default: | |
| d = { | |
| x: r.x, | |
| y: r.y | |
| } | |
| } | |
| switch (co(t)) { | |
| case "start": | |
| d[s] -= m * (n && u ? -1 : 1); | |
| break; | |
| case "end": | |
| d[s] += m * (n && u ? -1 : 1); | |
| break | |
| } | |
| return d | |
| } | |
| const tw = async (e, t, n) => { | |
| const { | |
| placement: r = "bottom", | |
| strategy: o = "absolute", | |
| middleware: i = [], | |
| platform: s | |
| } = n, l = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t)); | |
| let u = await s.getElementRects({ | |
| reference: e, | |
| floating: t, | |
| strategy: o | |
| }), | |
| { | |
| x: c, | |
| y: f | |
| } = Jd(u, r, a), | |
| m = r, | |
| d = {}, | |
| x = 0; | |
| for (let y = 0; y < l.length; y++) { | |
| const { | |
| name: w, | |
| fn: h | |
| } = l[y], { | |
| x: p, | |
| y: v, | |
| data: k, | |
| reset: C | |
| } = await h({ | |
| x: c, | |
| y: f, | |
| initialPlacement: r, | |
| placement: m, | |
| strategy: o, | |
| middlewareData: d, | |
| rects: u, | |
| platform: s, | |
| elements: { | |
| reference: e, | |
| floating: t | |
| } | |
| }); | |
| c = p ?? c, f = v ?? f, d = { ...d, | |
| [w]: { ...d[w], | |
| ...k | |
| } | |
| }, C && x <= 50 && (x++, typeof C == "object" && (C.placement && (m = C.placement), C.rects && (u = C.rects === !0 ? await s.getElementRects({ | |
| reference: e, | |
| floating: t, | |
| strategy: o | |
| }) : C.rects), { | |
| x: c, | |
| y: f | |
| } = Jd(u, m, a)), y = -1) | |
| } | |
| return { | |
| x: c, | |
| y: f, | |
| placement: m, | |
| strategy: o, | |
| middlewareData: d | |
| } | |
| }; | |
| async function oi(e, t) { | |
| var n; | |
| t === void 0 && (t = {}); | |
| const { | |
| x: r, | |
| y: o, | |
| platform: i, | |
| rects: s, | |
| elements: l, | |
| strategy: a | |
| } = e, { | |
| boundary: u = "clippingAncestors", | |
| rootBoundary: c = "viewport", | |
| elementContext: f = "floating", | |
| altBoundary: m = !1, | |
| padding: d = 0 | |
| } = Jt(t, e), x = Mm(d), w = l[m ? f === "floating" ? "reference" : "floating" : f], h = Ms(await i.getClippingRect({ | |
| element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)), | |
| boundary: u, | |
| rootBoundary: c, | |
| strategy: a | |
| })), p = f === "floating" ? { | |
| x: r, | |
| y: o, | |
| width: s.floating.width, | |
| height: s.floating.height | |
| } : s.reference, v = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), k = await (i.isElement == null ? void 0 : i.isElement(v)) ? await (i.getScale == null ? void 0 : i.getScale(v)) || { | |
| x: 1, | |
| y: 1 | |
| } : { | |
| x: 1, | |
| y: 1 | |
| }, C = Ms(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({ | |
| elements: l, | |
| rect: p, | |
| offsetParent: v, | |
| strategy: a | |
| }) : p); | |
| return { | |
| top: (h.top - C.top + x.top) / k.y, | |
| bottom: (C.bottom - h.bottom + x.bottom) / k.y, | |
| left: (h.left - C.left + x.left) / k.x, | |
| right: (C.right - h.right + x.right) / k.x | |
| } | |
| } | |
| const nw = e => ({ | |
| name: "arrow", | |
| options: e, | |
| async fn(t) { | |
| const { | |
| x: n, | |
| y: r, | |
| placement: o, | |
| rects: i, | |
| platform: s, | |
| elements: l, | |
| middlewareData: a | |
| } = t, { | |
| element: u, | |
| padding: c = 0 | |
| } = Jt(e, t) || {}; | |
| if (u == null) return {}; | |
| const f = Mm(c), | |
| m = { | |
| x: n, | |
| y: r | |
| }, | |
| d = fc(o), | |
| x = dc(d), | |
| y = await s.getDimensions(u), | |
| w = d === "y", | |
| h = w ? "top" : "left", | |
| p = w ? "bottom" : "right", | |
| v = w ? "clientHeight" : "clientWidth", | |
| k = i.reference[x] + i.reference[d] - m[d] - i.floating[x], | |
| C = m[d] - i.reference[d], | |
| E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u)); | |
| let b = E ? E[v] : 0; | |
| (!b || !await (s.isElement == null ? void 0 : s.isElement(E))) && (b = l.floating[v] || i.floating[x]); | |
| const R = k / 2 - C / 2, | |
| O = b / 2 - y[x] / 2 - 1, | |
| A = In(f[h], O), | |
| z = In(f[p], O), | |
| I = A, | |
| Q = b - y[x] - z, | |
| M = b / 2 - y[x] / 2 + R, | |
| Y = Za(I, M, Q), | |
| $ = !a.arrow && co(o) != null && M !== Y && i.reference[x] / 2 - (M < I ? A : z) - y[x] / 2 < 0, | |
| W = $ ? M < I ? M - I : M - Q : 0; | |
| return { | |
| [d]: m[d] + W, | |
| data: { | |
| [d]: Y, | |
| centerOffset: M - Y - W, | |
| ...$ && { | |
| alignmentOffset: W | |
| } | |
| }, | |
| reset: $ | |
| } | |
| } | |
| }), | |
| rw = function(e) { | |
| return e === void 0 && (e = {}), { | |
| name: "flip", | |
| options: e, | |
| async fn(t) { | |
| var n, r; | |
| const { | |
| placement: o, | |
| middlewareData: i, | |
| rects: s, | |
| initialPlacement: l, | |
| platform: a, | |
| elements: u | |
| } = t, { | |
| mainAxis: c = !0, | |
| crossAxis: f = !0, | |
| fallbackPlacements: m, | |
| fallbackStrategy: d = "bestFit", | |
| fallbackAxisSideDirection: x = "none", | |
| flipAlignment: y = !0, | |
| ...w | |
| } = Jt(e, t); | |
| if ((n = i.arrow) != null && n.alignmentOffset) return {}; | |
| const h = en(o), | |
| p = Lt(l), | |
| v = en(l) === l, | |
| k = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), | |
| C = m || (v || !y ? [Os(l)] : Yx(l)), | |
| E = x !== "none"; | |
| !m && E && C.push(...Jx(l, y, x, k)); | |
| const b = [l, ...C], | |
| R = await oi(t, w), | |
| O = []; | |
| let A = ((r = i.flip) == null ? void 0 : r.overflows) || []; | |
| if (c && O.push(R[h]), f) { | |
| const M = Gx(o, s, k); | |
| O.push(R[M[0]], R[M[1]]) | |
| } | |
| if (A = [...A, { | |
| placement: o, | |
| overflows: O | |
| }], !O.every(M => M <= 0)) { | |
| var z, I; | |
| const M = (((z = i.flip) == null ? void 0 : z.index) || 0) + 1, | |
| Y = b[M]; | |
| if (Y && (!(f === "alignment" ? p !== Lt(Y) : !1) || A.every(P => P.overflows[0] > 0 && Lt(P.placement) === p))) return { | |
| data: { | |
| index: M, | |
| overflows: A | |
| }, | |
| reset: { | |
| placement: Y | |
| } | |
| }; | |
| let $ = (I = A.filter(W => W.overflows[0] <= 0).sort((W, P) => W.overflows[1] - P.overflows[1])[0]) == null ? void 0 : I.placement; | |
| if (!$) switch (d) { | |
| case "bestFit": | |
| { | |
| var Q; | |
| const W = (Q = A.filter(P => { | |
| if (E) { | |
| const T = Lt(P.placement); | |
| return T === p || T === "y" | |
| } | |
| return !0 | |
| }).map(P => [P.placement, P.overflows.filter(T => T > 0).reduce((T, L) => T + L, 0)]).sort((P, T) => P[1] - T[1])[0]) == null ? void 0 : Q[0];W && ($ = W); | |
| break | |
| } | |
| case "initialPlacement": | |
| $ = l; | |
| break | |
| } | |
| if (o !== $) return { | |
| reset: { | |
| placement: $ | |
| } | |
| } | |
| } | |
| return {} | |
| } | |
| } | |
| }; | |
| function ef(e, t) { | |
| return { | |
| top: e.top - t.height, | |
| right: e.right - t.width, | |
| bottom: e.bottom - t.height, | |
| left: e.left - t.width | |
| } | |
| } | |
| function tf(e) { | |
| return Vx.some(t => e[t] >= 0) | |
| } | |
| const ow = function(e) { | |
| return e === void 0 && (e = {}), { | |
| name: "hide", | |
| options: e, | |
| async fn(t) { | |
| const { | |
| rects: n | |
| } = t, { | |
| strategy: r = "referenceHidden", | |
| ...o | |
| } = Jt(e, t); | |
| switch (r) { | |
| case "referenceHidden": | |
| { | |
| const i = await oi(t, { ...o, | |
| elementContext: "reference" | |
| }), | |
| s = ef(i, n.reference); | |
| return { | |
| data: { | |
| referenceHiddenOffsets: s, | |
| referenceHidden: tf(s) | |
| } | |
| } | |
| } | |
| case "escaped": | |
| { | |
| const i = await oi(t, { ...o, | |
| altBoundary: !0 | |
| }), | |
| s = ef(i, n.floating); | |
| return { | |
| data: { | |
| escapedOffsets: s, | |
| escaped: tf(s) | |
| } | |
| } | |
| } | |
| default: | |
| return {} | |
| } | |
| } | |
| } | |
| }, | |
| Lm = new Set(["left", "top"]); | |
| async function iw(e, t) { | |
| const { | |
| placement: n, | |
| platform: r, | |
| elements: o | |
| } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = en(n), l = co(n), a = Lt(n) === "y", u = Lm.has(s) ? -1 : 1, c = i && a ? -1 : 1, f = Jt(t, e); | |
| let { | |
| mainAxis: m, | |
| crossAxis: d, | |
| alignmentAxis: x | |
| } = typeof f == "number" ? { | |
| mainAxis: f, | |
| crossAxis: 0, | |
| alignmentAxis: null | |
| } : { | |
| mainAxis: f.mainAxis || 0, | |
| crossAxis: f.crossAxis || 0, | |
| alignmentAxis: f.alignmentAxis | |
| }; | |
| return l && typeof x == "number" && (d = l === "end" ? x * -1 : x), a ? { | |
| x: d * c, | |
| y: m * u | |
| } : { | |
| x: m * u, | |
| y: d * c | |
| } | |
| } | |
| const sw = function(e) { | |
| return e === void 0 && (e = 0), { | |
| name: "offset", | |
| options: e, | |
| async fn(t) { | |
| var n, r; | |
| const { | |
| x: o, | |
| y: i, | |
| placement: s, | |
| middlewareData: l | |
| } = t, a = await iw(t, e); | |
| return s === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : { | |
| x: o + a.x, | |
| y: i + a.y, | |
| data: { ...a, | |
| placement: s | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| lw = function(e) { | |
| return e === void 0 && (e = {}), { | |
| name: "shift", | |
| options: e, | |
| async fn(t) { | |
| const { | |
| x: n, | |
| y: r, | |
| placement: o | |
| } = t, { | |
| mainAxis: i = !0, | |
| crossAxis: s = !1, | |
| limiter: l = { | |
| fn: w => { | |
| let { | |
| x: h, | |
| y: p | |
| } = w; | |
| return { | |
| x: h, | |
| y: p | |
| } | |
| } | |
| }, | |
| ...a | |
| } = Jt(e, t), u = { | |
| x: n, | |
| y: r | |
| }, c = await oi(t, a), f = Lt(en(o)), m = cc(f); | |
| let d = u[m], | |
| x = u[f]; | |
| if (i) { | |
| const w = m === "y" ? "top" : "left", | |
| h = m === "y" ? "bottom" : "right", | |
| p = d + c[w], | |
| v = d - c[h]; | |
| d = Za(p, d, v) | |
| } | |
| if (s) { | |
| const w = f === "y" ? "top" : "left", | |
| h = f === "y" ? "bottom" : "right", | |
| p = x + c[w], | |
| v = x - c[h]; | |
| x = Za(p, x, v) | |
| } | |
| const y = l.fn({ ...t, | |
| [m]: d, | |
| [f]: x | |
| }); | |
| return { ...y, | |
| data: { | |
| x: y.x - n, | |
| y: y.y - r, | |
| enabled: { | |
| [m]: i, | |
| [f]: s | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| aw = function(e) { | |
| return e === void 0 && (e = {}), { | |
| options: e, | |
| fn(t) { | |
| const { | |
| x: n, | |
| y: r, | |
| placement: o, | |
| rects: i, | |
| middlewareData: s | |
| } = t, { | |
| offset: l = 0, | |
| mainAxis: a = !0, | |
| crossAxis: u = !0 | |
| } = Jt(e, t), c = { | |
| x: n, | |
| y: r | |
| }, f = Lt(o), m = cc(f); | |
| let d = c[m], | |
| x = c[f]; | |
| const y = Jt(l, t), | |
| w = typeof y == "number" ? { | |
| mainAxis: y, | |
| crossAxis: 0 | |
| } : { | |
| mainAxis: 0, | |
| crossAxis: 0, | |
| ...y | |
| }; | |
| if (a) { | |
| const v = m === "y" ? "height" : "width", | |
| k = i.reference[m] - i.floating[v] + w.mainAxis, | |
| C = i.reference[m] + i.reference[v] - w.mainAxis; | |
| d < k ? d = k : d > C && (d = C) | |
| } | |
| if (u) { | |
| var h, p; | |
| const v = m === "y" ? "width" : "height", | |
| k = Lm.has(en(o)), | |
| C = i.reference[f] - i.floating[v] + (k && ((h = s.offset) == null ? void 0 : h[f]) || 0) + (k ? 0 : w.crossAxis), | |
| E = i.reference[f] + i.reference[v] + (k ? 0 : ((p = s.offset) == null ? void 0 : p[f]) || 0) - (k ? w.crossAxis : 0); | |
| x < C ? x = C : x > E && (x = E) | |
| } | |
| return { | |
| [m]: d, | |
| [f]: x | |
| } | |
| } | |
| } | |
| }, | |
| uw = function(e) { | |
| return e === void 0 && (e = {}), { | |
| name: "size", | |
| options: e, | |
| async fn(t) { | |
| var n, r; | |
| const { | |
| placement: o, | |
| rects: i, | |
| platform: s, | |
| elements: l | |
| } = t, { | |
| apply: a = () => {}, | |
| ...u | |
| } = Jt(e, t), c = await oi(t, u), f = en(o), m = co(o), d = Lt(o) === "y", { | |
| width: x, | |
| height: y | |
| } = i.floating; | |
| let w, h; | |
| f === "top" || f === "bottom" ? (w = f, h = m === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (h = f, w = m === "end" ? "top" : "bottom"); | |
| const p = y - c.top - c.bottom, | |
| v = x - c.left - c.right, | |
| k = In(y - c[w], p), | |
| C = In(x - c[h], v), | |
| E = !t.middlewareData.shift; | |
| let b = k, | |
| R = C; | |
| if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = v), (r = t.middlewareData.shift) != null && r.enabled.y && (b = p), E && !m) { | |
| const A = Ge(c.left, 0), | |
| z = Ge(c.right, 0), | |
| I = Ge(c.top, 0), | |
| Q = Ge(c.bottom, 0); | |
| d ? R = x - 2 * (A !== 0 || z !== 0 ? A + z : Ge(c.left, c.right)) : b = y - 2 * (I !== 0 || Q !== 0 ? I + Q : Ge(c.top, c.bottom)) | |
| } | |
| await a({ ...t, | |
| availableWidth: R, | |
| availableHeight: b | |
| }); | |
| const O = await s.getDimensions(l.floating); | |
| return x !== O.width || y !== O.height ? { | |
| reset: { | |
| rects: !0 | |
| } | |
| } : {} | |
| } | |
| } | |
| }; | |
| function il() { | |
| return typeof window < "u" | |
| } | |
| function fo(e) { | |
| return Dm(e) ? (e.nodeName || "").toLowerCase() : "#document" | |
| } | |
| function Ze(e) { | |
| var t; | |
| return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window | |
| } | |
| function $t(e) { | |
| var t; | |
| return (t = (Dm(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement | |
| } | |
| function Dm(e) { | |
| return il() ? e instanceof Node || e instanceof Ze(e).Node : !1 | |
| } | |
| function Nt(e) { | |
| return il() ? e instanceof Element || e instanceof Ze(e).Element : !1 | |
| } | |
| function zt(e) { | |
| return il() ? e instanceof HTMLElement || e instanceof Ze(e).HTMLElement : !1 | |
| } | |
| function nf(e) { | |
| return !il() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ze(e).ShadowRoot | |
| } | |
| const cw = new Set(["inline", "contents"]); | |
| function yi(e) { | |
| const { | |
| overflow: t, | |
| overflowX: n, | |
| overflowY: r, | |
| display: o | |
| } = Pt(e); | |
| return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !cw.has(o) | |
| } | |
| const dw = new Set(["table", "td", "th"]); | |
| function fw(e) { | |
| return dw.has(fo(e)) | |
| } | |
| const pw = [":popover-open", ":modal"]; | |
| function sl(e) { | |
| return pw.some(t => { | |
| try { | |
| return e.matches(t) | |
| } catch { | |
| return !1 | |
| } | |
| }) | |
| } | |
| const hw = ["transform", "translate", "scale", "rotate", "perspective"], | |
| mw = ["transform", "translate", "scale", "rotate", "perspective", "filter"], | |
| gw = ["paint", "layout", "strict", "content"]; | |
| function pc(e) { | |
| const t = hc(), | |
| n = Nt(e) ? Pt(e) : e; | |
| return hw.some(r => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || mw.some(r => (n.willChange || "").includes(r)) || gw.some(r => (n.contain || "").includes(r)) | |
| } | |
| function yw(e) { | |
| let t = Fn(e); | |
| for (; zt(t) && !oo(t);) { | |
| if (pc(t)) return t; | |
| if (sl(t)) return null; | |
| t = Fn(t) | |
| } | |
| return null | |
| } | |
| function hc() { | |
| return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none") | |
| } | |
| const vw = new Set(["html", "body", "#document"]); | |
| function oo(e) { | |
| return vw.has(fo(e)) | |
| } | |
| function Pt(e) { | |
| return Ze(e).getComputedStyle(e) | |
| } | |
| function ll(e) { | |
| return Nt(e) ? { | |
| scrollLeft: e.scrollLeft, | |
| scrollTop: e.scrollTop | |
| } : { | |
| scrollLeft: e.scrollX, | |
| scrollTop: e.scrollY | |
| } | |
| } | |
| function Fn(e) { | |
| if (fo(e) === "html") return e; | |
| const t = e.assignedSlot || e.parentNode || nf(e) && e.host || $t(e); | |
| return nf(t) ? t.host : t | |
| } | |
| function Im(e) { | |
| const t = Fn(e); | |
| return oo(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : zt(t) && yi(t) ? t : Im(t) | |
| } | |
| function ii(e, t, n) { | |
| var r; | |
| t === void 0 && (t = []), n === void 0 && (n = !0); | |
| const o = Im(e), | |
| i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), | |
| s = Ze(o); | |
| if (i) { | |
| const l = eu(s); | |
| return t.concat(s, s.visualViewport || [], yi(o) ? o : [], l && n ? ii(l) : []) | |
| } | |
| return t.concat(o, ii(o, [], n)) | |
| } | |
| function eu(e) { | |
| return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null | |
| } | |
| function Fm(e) { | |
| const t = Pt(e); | |
| let n = parseFloat(t.width) || 0, | |
| r = parseFloat(t.height) || 0; | |
| const o = zt(e), | |
| i = o ? e.offsetWidth : n, | |
| s = o ? e.offsetHeight : r, | |
| l = As(n) !== i || As(r) !== s; | |
| return l && (n = i, r = s), { | |
| width: n, | |
| height: r, | |
| $: l | |
| } | |
| } | |
| function mc(e) { | |
| return Nt(e) ? e : e.contextElement | |
| } | |
| function Ur(e) { | |
| const t = mc(e); | |
| if (!zt(t)) return Ft(1); | |
| const n = t.getBoundingClientRect(), | |
| { | |
| width: r, | |
| height: o, | |
| $: i | |
| } = Fm(t); | |
| let s = (i ? As(n.width) : n.width) / r, | |
| l = (i ? As(n.height) : n.height) / o; | |
| return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), { | |
| x: s, | |
| y: l | |
| } | |
| } | |
| const xw = Ft(0); | |
| function zm(e) { | |
| const t = Ze(e); | |
| return !hc() || !t.visualViewport ? xw : { | |
| x: t.visualViewport.offsetLeft, | |
| y: t.visualViewport.offsetTop | |
| } | |
| } | |
| function ww(e, t, n) { | |
| return t === void 0 && (t = !1), !n || t && n !== Ze(e) ? !1 : t | |
| } | |
| function cr(e, t, n, r) { | |
| t === void 0 && (t = !1), n === void 0 && (n = !1); | |
| const o = e.getBoundingClientRect(), | |
| i = mc(e); | |
| let s = Ft(1); | |
| t && (r ? Nt(r) && (s = Ur(r)) : s = Ur(e)); | |
| const l = ww(i, n, r) ? zm(i) : Ft(0); | |
| let a = (o.left + l.x) / s.x, | |
| u = (o.top + l.y) / s.y, | |
| c = o.width / s.x, | |
| f = o.height / s.y; | |
| if (i) { | |
| const m = Ze(i), | |
| d = r && Nt(r) ? Ze(r) : r; | |
| let x = m, | |
| y = eu(x); | |
| for (; y && r && d !== x;) { | |
| const w = Ur(y), | |
| h = y.getBoundingClientRect(), | |
| p = Pt(y), | |
| v = h.left + (y.clientLeft + parseFloat(p.paddingLeft)) * w.x, | |
| k = h.top + (y.clientTop + parseFloat(p.paddingTop)) * w.y; | |
| a *= w.x, u *= w.y, c *= w.x, f *= w.y, a += v, u += k, x = Ze(y), y = eu(x) | |
| } | |
| } | |
| return Ms({ | |
| width: c, | |
| height: f, | |
| x: a, | |
| y: u | |
| }) | |
| } | |
| function gc(e, t) { | |
| const n = ll(e).scrollLeft; | |
| return t ? t.left + n : cr($t(e)).left + n | |
| } | |
| function $m(e, t, n) { | |
| n === void 0 && (n = !1); | |
| const r = e.getBoundingClientRect(), | |
| o = r.left + t.scrollLeft - (n ? 0 : gc(e, r)), | |
| i = r.top + t.scrollTop; | |
| return { | |
| x: o, | |
| y: i | |
| } | |
| } | |
| function Sw(e) { | |
| let { | |
| elements: t, | |
| rect: n, | |
| offsetParent: r, | |
| strategy: o | |
| } = e; | |
| const i = o === "fixed", | |
| s = $t(r), | |
| l = t ? sl(t.floating) : !1; | |
| if (r === s || l && i) return n; | |
| let a = { | |
| scrollLeft: 0, | |
| scrollTop: 0 | |
| }, | |
| u = Ft(1); | |
| const c = Ft(0), | |
| f = zt(r); | |
| if ((f || !f && !i) && ((fo(r) !== "body" || yi(s)) && (a = ll(r)), zt(r))) { | |
| const d = cr(r); | |
| u = Ur(r), c.x = d.x + r.clientLeft, c.y = d.y + r.clientTop | |
| } | |
| const m = s && !f && !i ? $m(s, a, !0) : Ft(0); | |
| return { | |
| width: n.width * u.x, | |
| height: n.height * u.y, | |
| x: n.x * u.x - a.scrollLeft * u.x + c.x + m.x, | |
| y: n.y * u.y - a.scrollTop * u.y + c.y + m.y | |
| } | |
| } | |
| function kw(e) { | |
| return Array.from(e.getClientRects()) | |
| } | |
| function Cw(e) { | |
| const t = $t(e), | |
| n = ll(e), | |
| r = e.ownerDocument.body, | |
| o = Ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), | |
| i = Ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight); | |
| let s = -n.scrollLeft + gc(e); | |
| const l = -n.scrollTop; | |
| return Pt(r).direction === "rtl" && (s += Ge(t.clientWidth, r.clientWidth) - o), { | |
| width: o, | |
| height: i, | |
| x: s, | |
| y: l | |
| } | |
| } | |
| function Ew(e, t) { | |
| const n = Ze(e), | |
| r = $t(e), | |
| o = n.visualViewport; | |
| let i = r.clientWidth, | |
| s = r.clientHeight, | |
| l = 0, | |
| a = 0; | |
| if (o) { | |
| i = o.width, s = o.height; | |
| const u = hc(); | |
| (!u || u && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop) | |
| } | |
| return { | |
| width: i, | |
| height: s, | |
| x: l, | |
| y: a | |
| } | |
| } | |
| const bw = new Set(["absolute", "fixed"]); | |
| function Nw(e, t) { | |
| const n = cr(e, !0, t === "fixed"), | |
| r = n.top + e.clientTop, | |
| o = n.left + e.clientLeft, | |
| i = zt(e) ? Ur(e) : Ft(1), | |
| s = e.clientWidth * i.x, | |
| l = e.clientHeight * i.y, | |
| a = o * i.x, | |
| u = r * i.y; | |
| return { | |
| width: s, | |
| height: l, | |
| x: a, | |
| y: u | |
| } | |
| } | |
| function rf(e, t, n) { | |
| let r; | |
| if (t === "viewport") r = Ew(e, n); | |
| else if (t === "document") r = Cw($t(e)); | |
| else if (Nt(t)) r = Nw(t, n); | |
| else { | |
| const o = zm(e); | |
| r = { | |
| x: t.x - o.x, | |
| y: t.y - o.y, | |
| width: t.width, | |
| height: t.height | |
| } | |
| } | |
| return Ms(r) | |
| } | |
| function Um(e, t) { | |
| const n = Fn(e); | |
| return n === t || !Nt(n) || oo(n) ? !1 : Pt(n).position === "fixed" || Um(n, t) | |
| } | |
| function Pw(e, t) { | |
| const n = t.get(e); | |
| if (n) return n; | |
| let r = ii(e, [], !1).filter(l => Nt(l) && fo(l) !== "body"), | |
| o = null; | |
| const i = Pt(e).position === "fixed"; | |
| let s = i ? Fn(e) : e; | |
| for (; Nt(s) && !oo(s);) { | |
| const l = Pt(s), | |
| a = pc(s); | |
| !a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && bw.has(o.position) || yi(s) && !a && Um(e, s)) ? r = r.filter(c => c !== s) : o = l, s = Fn(s) | |
| } | |
| return t.set(e, r), r | |
| } | |
| function Tw(e) { | |
| let { | |
| element: t, | |
| boundary: n, | |
| rootBoundary: r, | |
| strategy: o | |
| } = e; | |
| const s = [...n === "clippingAncestors" ? sl(t) ? [] : Pw(t, this._c) : [].concat(n), r], | |
| l = s[0], | |
| a = s.reduce((u, c) => { | |
| const f = rf(t, c, o); | |
| return u.top = Ge(f.top, u.top), u.right = In(f.right, u.right), u.bottom = In(f.bottom, u.bottom), u.left = Ge(f.left, u.left), u | |
| }, rf(t, l, o)); | |
| return { | |
| width: a.right - a.left, | |
| height: a.bottom - a.top, | |
| x: a.left, | |
| y: a.top | |
| } | |
| } | |
| function Rw(e) { | |
| const { | |
| width: t, | |
| height: n | |
| } = Fm(e); | |
| return { | |
| width: t, | |
| height: n | |
| } | |
| } | |
| function jw(e, t, n) { | |
| const r = zt(t), | |
| o = $t(t), | |
| i = n === "fixed", | |
| s = cr(e, !0, i, t); | |
| let l = { | |
| scrollLeft: 0, | |
| scrollTop: 0 | |
| }; | |
| const a = Ft(0); | |
| function u() { | |
| a.x = gc(o) | |
| } | |
| if (r || !r && !i) | |
| if ((fo(t) !== "body" || yi(o)) && (l = ll(t)), r) { | |
| const d = cr(t, !0, i, t); | |
| a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop | |
| } else o && u(); | |
| i && !r && o && u(); | |
| const c = o && !r && !i ? $m(o, l) : Ft(0), | |
| f = s.left + l.scrollLeft - a.x - c.x, | |
| m = s.top + l.scrollTop - a.y - c.y; | |
| return { | |
| x: f, | |
| y: m, | |
| width: s.width, | |
| height: s.height | |
| } | |
| } | |
| function Xl(e) { | |
| return Pt(e).position === "static" | |
| } | |
| function of (e, t) { | |
| if (!zt(e) || Pt(e).position === "fixed") return null; | |
| if (t) return t(e); | |
| let n = e.offsetParent; | |
| return $t(e) === n && (n = n.ownerDocument.body), n | |
| } | |
| function Bm(e, t) { | |
| const n = Ze(e); | |
| if (sl(e)) return n; | |
| if (!zt(e)) { | |
| let o = Fn(e); | |
| for (; o && !oo(o);) { | |
| if (Nt(o) && !Xl(o)) return o; | |
| o = Fn(o) | |
| } | |
| return n | |
| } | |
| let r = of (e, t); | |
| for (; r && fw(r) && Xl(r);) r = of (r, t); | |
| return r && oo(r) && Xl(r) && !pc(r) ? n : r || yw(e) || n | |
| } | |
| const _w = async function(e) { | |
| const t = this.getOffsetParent || Bm, | |
| n = this.getDimensions, | |
| r = await n(e.floating); | |
| return { | |
| reference: jw(e.reference, await t(e.floating), e.strategy), | |
| floating: { | |
| x: 0, | |
| y: 0, | |
| width: r.width, | |
| height: r.height | |
| } | |
| } | |
| }; | |
| function Aw(e) { | |
| return Pt(e).direction === "rtl" | |
| } | |
| const Ow = { | |
| convertOffsetParentRelativeRectToViewportRelativeRect: Sw, | |
| getDocumentElement: $t, | |
| getClippingRect: Tw, | |
| getOffsetParent: Bm, | |
| getElementRects: _w, | |
| getClientRects: kw, | |
| getDimensions: Rw, | |
| getScale: Ur, | |
| isElement: Nt, | |
| isRTL: Aw | |
| }; | |
| function Wm(e, t) { | |
| return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height | |
| } | |
| function Mw(e, t) { | |
| let n = null, | |
| r; | |
| const o = $t(e); | |
| function i() { | |
| var l; | |
| clearTimeout(r), (l = n) == null || l.disconnect(), n = null | |
| } | |
| function s(l, a) { | |
| l === void 0 && (l = !1), a === void 0 && (a = 1), i(); | |
| const u = e.getBoundingClientRect(), | |
| { | |
| left: c, | |
| top: f, | |
| width: m, | |
| height: d | |
| } = u; | |
| if (l || t(), !m || !d) return; | |
| const x = Wi(f), | |
| y = Wi(o.clientWidth - (c + m)), | |
| w = Wi(o.clientHeight - (f + d)), | |
| h = Wi(c), | |
| v = { | |
| rootMargin: -x + "px " + -y + "px " + -w + "px " + -h + "px", | |
| threshold: Ge(0, In(1, a)) || 1 | |
| }; | |
| let k = !0; | |
| function C(E) { | |
| const b = E[0].intersectionRatio; | |
| if (b !== a) { | |
| if (!k) return s(); | |
| b ? s(!1, b) : r = setTimeout(() => { | |
| s(!1, 1e-7) | |
| }, 1e3) | |
| } | |
| b === 1 && !Wm(u, e.getBoundingClientRect()) && s(), k = !1 | |
| } | |
| try { | |
| n = new IntersectionObserver(C, { ...v, | |
| root: o.ownerDocument | |
| }) | |
| } catch { | |
| n = new IntersectionObserver(C, v) | |
| } | |
| n.observe(e) | |
| } | |
| return s(!0), i | |
| } | |
| function Lw(e, t, n, r) { | |
| r === void 0 && (r = {}); | |
| const { | |
| ancestorScroll: o = !0, | |
| ancestorResize: i = !0, | |
| elementResize: s = typeof ResizeObserver == "function", | |
| layoutShift: l = typeof IntersectionObserver == "function", | |
| animationFrame: a = !1 | |
| } = r, u = mc(e), c = o || i ? [...u ? ii(u) : [], ...ii(t)] : []; | |
| c.forEach(h => { | |
| o && h.addEventListener("scroll", n, { | |
| passive: !0 | |
| }), i && h.addEventListener("resize", n) | |
| }); | |
| const f = u && l ? Mw(u, n) : null; | |
| let m = -1, | |
| d = null; | |
| s && (d = new ResizeObserver(h => { | |
| let [p] = h; | |
| p && p.target === u && d && (d.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => { | |
| var v; | |
| (v = d) == null || v.observe(t) | |
| })), n() | |
| }), u && !a && d.observe(u), d.observe(t)); | |
| let x, y = a ? cr(e) : null; | |
| a && w(); | |
| function w() { | |
| const h = cr(e); | |
| y && !Wm(y, h) && n(), y = h, x = requestAnimationFrame(w) | |
| } | |
| return n(), () => { | |
| var h; | |
| c.forEach(p => { | |
| o && p.removeEventListener("scroll", n), i && p.removeEventListener("resize", n) | |
| }), f == null || f(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(x) | |
| } | |
| } | |
| const Dw = sw, | |
| Iw = lw, | |
| Fw = rw, | |
| zw = uw, | |
| $w = ow, | |
| sf = nw, | |
| Uw = aw, | |
| Bw = (e, t, n) => { | |
| const r = new Map, | |
| o = { | |
| platform: Ow, | |
| ...n | |
| }, | |
| i = { ...o.platform, | |
| _c: r | |
| }; | |
| return tw(e, t, { ...o, | |
| platform: i | |
| }) | |
| }; | |
| var Ww = typeof document < "u", | |
| Vw = function() {}, | |
| ss = Ww ? S.useLayoutEffect : Vw; | |
| function Ls(e, t) { | |
| if (e === t) return !0; | |
| if (typeof e != typeof t) return !1; | |
| if (typeof e == "function" && e.toString() === t.toString()) return !0; | |
| let n, r, o; | |
| if (e && t && typeof e == "object") { | |
| if (Array.isArray(e)) { | |
| if (n = e.length, n !== t.length) return !1; | |
| for (r = n; r-- !== 0;) | |
| if (!Ls(e[r], t[r])) return !1; | |
| return !0 | |
| } | |
| if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length) return !1; | |
| for (r = n; r-- !== 0;) | |
| if (!{}.hasOwnProperty.call(t, o[r])) return !1; | |
| for (r = n; r-- !== 0;) { | |
| const i = o[r]; | |
| if (!(i === "_owner" && e.$$typeof) && !Ls(e[i], t[i])) return !1 | |
| } | |
| return !0 | |
| } | |
| return e !== e && t !== t | |
| } | |
| function Vm(e) { | |
| return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1 | |
| } | |
| function lf(e, t) { | |
| const n = Vm(e); | |
| return Math.round(t * n) / n | |
| } | |
| function ql(e) { | |
| const t = S.useRef(e); | |
| return ss(() => { | |
| t.current = e | |
| }), t | |
| } | |
| function Hw(e) { | |
| e === void 0 && (e = {}); | |
| const { | |
| placement: t = "bottom", | |
| strategy: n = "absolute", | |
| middleware: r = [], | |
| platform: o, | |
| elements: { | |
| reference: i, | |
| floating: s | |
| } = {}, | |
| transform: l = !0, | |
| whileElementsMounted: a, | |
| open: u | |
| } = e, [c, f] = S.useState({ | |
| x: 0, | |
| y: 0, | |
| strategy: n, | |
| placement: t, | |
| middlewareData: {}, | |
| isPositioned: !1 | |
| }), [m, d] = S.useState(r); | |
| Ls(m, r) || d(r); | |
| const [x, y] = S.useState(null), [w, h] = S.useState(null), p = S.useCallback(P => { | |
| P !== E.current && (E.current = P, y(P)) | |
| }, []), v = S.useCallback(P => { | |
| P !== b.current && (b.current = P, h(P)) | |
| }, []), k = i || x, C = s || w, E = S.useRef(null), b = S.useRef(null), R = S.useRef(c), O = a != null, A = ql(a), z = ql(o), I = ql(u), Q = S.useCallback(() => { | |
| if (!E.current || !b.current) return; | |
| const P = { | |
| placement: t, | |
| strategy: n, | |
| middleware: m | |
| }; | |
| z.current && (P.platform = z.current), Bw(E.current, b.current, P).then(T => { | |
| const L = { ...T, | |
| isPositioned: I.current !== !1 | |
| }; | |
| M.current && !Ls(R.current, L) && (R.current = L, mi.flushSync(() => { | |
| f(L) | |
| })) | |
| }) | |
| }, [m, t, n, z, I]); | |
| ss(() => { | |
| u === !1 && R.current.isPositioned && (R.current.isPositioned = !1, f(P => ({ ...P, | |
| isPositioned: !1 | |
| }))) | |
| }, [u]); | |
| const M = S.useRef(!1); | |
| ss(() => (M.current = !0, () => { | |
| M.current = !1 | |
| }), []), ss(() => { | |
| if (k && (E.current = k), C && (b.current = C), k && C) { | |
| if (A.current) return A.current(k, C, Q); | |
| Q() | |
| } | |
| }, [k, C, Q, A, O]); | |
| const Y = S.useMemo(() => ({ | |
| reference: E, | |
| floating: b, | |
| setReference: p, | |
| setFloating: v | |
| }), [p, v]), | |
| $ = S.useMemo(() => ({ | |
| reference: k, | |
| floating: C | |
| }), [k, C]), | |
| W = S.useMemo(() => { | |
| const P = { | |
| position: n, | |
| left: 0, | |
| top: 0 | |
| }; | |
| if (!$.floating) return P; | |
| const T = lf($.floating, c.x), | |
| L = lf($.floating, c.y); | |
| return l ? { ...P, | |
| transform: "translate(" + T + "px, " + L + "px)", | |
| ...Vm($.floating) >= 1.5 && { | |
| willChange: "transform" | |
| } | |
| } : { | |
| position: n, | |
| left: T, | |
| top: L | |
| } | |
| }, [n, l, $.floating, c.x, c.y]); | |
| return S.useMemo(() => ({ ...c, | |
| update: Q, | |
| refs: Y, | |
| elements: $, | |
| floatingStyles: W | |
| }), [c, Q, Y, $, W]) | |
| } | |
| const Qw = e => { | |
| function t(n) { | |
| return {}.hasOwnProperty.call(n, "current") | |
| } | |
| return { | |
| name: "arrow", | |
| options: e, | |
| fn(n) { | |
| const { | |
| element: r, | |
| padding: o | |
| } = typeof e == "function" ? e(n) : e; | |
| return r && t(r) ? r.current != null ? sf({ | |
| element: r.current, | |
| padding: o | |
| }).fn(n) : {} : r ? sf({ | |
| element: r, | |
| padding: o | |
| }).fn(n) : {} | |
| } | |
| } | |
| }, | |
| Kw = (e, t) => ({ ...Dw(e), | |
| options: [e, t] | |
| }), | |
| Gw = (e, t) => ({ ...Iw(e), | |
| options: [e, t] | |
| }), | |
| Yw = (e, t) => ({ ...Uw(e), | |
| options: [e, t] | |
| }), | |
| Xw = (e, t) => ({ ...Fw(e), | |
| options: [e, t] | |
| }), | |
| qw = (e, t) => ({ ...zw(e), | |
| options: [e, t] | |
| }), | |
| Zw = (e, t) => ({ ...$w(e), | |
| options: [e, t] | |
| }), | |
| Jw = (e, t) => ({ ...Qw(e), | |
| options: [e, t] | |
| }); | |
| var eS = "Arrow", | |
| Hm = S.forwardRef((e, t) => { | |
| const { | |
| children: n, | |
| width: r = 10, | |
| height: o = 5, | |
| ...i | |
| } = e; | |
| return g.jsx(ze.svg, { ...i, | |
| ref: t, | |
| width: r, | |
| height: o, | |
| viewBox: "0 0 30 10", | |
| preserveAspectRatio: "none", | |
| children: e.asChild ? n : g.jsx("polygon", { | |
| points: "0,0 30,0 15,10" | |
| }) | |
| }) | |
| }); | |
| Hm.displayName = eS; | |
| var tS = Hm; | |
| function nS(e) { | |
| const [t, n] = S.useState(void 0); | |
| return Dn(() => { | |
| if (e) { | |
| n({ | |
| width: e.offsetWidth, | |
| height: e.offsetHeight | |
| }); | |
| const r = new ResizeObserver(o => { | |
| if (!Array.isArray(o) || !o.length) return; | |
| const i = o[0]; | |
| let s, l; | |
| if ("borderBoxSize" in i) { | |
| const a = i.borderBoxSize, | |
| u = Array.isArray(a) ? a[0] : a; | |
| s = u.inlineSize, l = u.blockSize | |
| } else s = e.offsetWidth, l = e.offsetHeight; | |
| n({ | |
| width: s, | |
| height: l | |
| }) | |
| }); | |
| return r.observe(e, { | |
| box: "border-box" | |
| }), () => r.unobserve(e) | |
| } else n(void 0) | |
| }, [e]), t | |
| } | |
| var Qm = "Popper", | |
| [Km, Gm] = tl(Qm), | |
| [cC, Ym] = Km(Qm), | |
| Xm = "PopperAnchor", | |
| qm = S.forwardRef((e, t) => { | |
| const { | |
| __scopePopper: n, | |
| virtualRef: r, | |
| ...o | |
| } = e, i = Ym(Xm, n), s = S.useRef(null), l = bt(t, s); | |
| return S.useEffect(() => { | |
| i.onAnchorChange((r == null ? void 0 : r.current) || s.current) | |
| }), r ? null : g.jsx(ze.div, { ...o, | |
| ref: l | |
| }) | |
| }); | |
| qm.displayName = Xm; | |
| var yc = "PopperContent", | |
| [rS, oS] = Km(yc), | |
| Zm = S.forwardRef((e, t) => { | |
| var J, hr, nn, Bn, rn, mr; | |
| const { | |
| __scopePopper: n, | |
| side: r = "bottom", | |
| sideOffset: o = 0, | |
| align: i = "center", | |
| alignOffset: s = 0, | |
| arrowPadding: l = 0, | |
| avoidCollisions: a = !0, | |
| collisionBoundary: u = [], | |
| collisionPadding: c = 0, | |
| sticky: f = "partial", | |
| hideWhenDetached: m = !1, | |
| updatePositionStrategy: d = "optimized", | |
| onPlaced: x, | |
| ...y | |
| } = e, w = Ym(yc, n), [h, p] = S.useState(null), v = bt(t, on => p(on)), [k, C] = S.useState(null), E = nS(k), b = (E == null ? void 0 : E.width) ?? 0, R = (E == null ? void 0 : E.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), A = typeof c == "number" ? c : { | |
| top: 0, | |
| right: 0, | |
| bottom: 0, | |
| left: 0, | |
| ...c | |
| }, z = Array.isArray(u) ? u : [u], I = z.length > 0, Q = { | |
| padding: A, | |
| boundary: z.filter(sS), | |
| altBoundary: I | |
| }, { | |
| refs: M, | |
| floatingStyles: Y, | |
| placement: $, | |
| isPositioned: W, | |
| middlewareData: P | |
| } = Hw({ | |
| strategy: "fixed", | |
| placement: O, | |
| whileElementsMounted: (...on) => Lw(...on, { | |
| animationFrame: d === "always" | |
| }), | |
| elements: { | |
| reference: w.anchor | |
| }, | |
| middleware: [Kw({ | |
| mainAxis: o + R, | |
| alignmentAxis: s | |
| }), a && Gw({ | |
| mainAxis: !0, | |
| crossAxis: !1, | |
| limiter: f === "partial" ? Yw() : void 0, | |
| ...Q | |
| }), a && Xw({ ...Q | |
| }), qw({ ...Q, | |
| apply: ({ | |
| elements: on, | |
| rects: vi, | |
| availableWidth: ml, | |
| availableHeight: xi | |
| }) => { | |
| const { | |
| width: gl, | |
| height: po | |
| } = vi.reference, gr = on.floating.style; | |
| gr.setProperty("--radix-popper-available-width", `${ml}px`), gr.setProperty("--radix-popper-available-height", `${xi}px`), gr.setProperty("--radix-popper-anchor-width", `${gl}px`), gr.setProperty("--radix-popper-anchor-height", `${po}px`) | |
| } | |
| }), k && Jw({ | |
| element: k, | |
| padding: l | |
| }), lS({ | |
| arrowWidth: b, | |
| arrowHeight: R | |
| }), m && Zw({ | |
| strategy: "referenceHidden", | |
| ...Q | |
| })] | |
| }), [T, L] = tg($), V = Ln(x); | |
| Dn(() => { | |
| W && (V == null || V()) | |
| }, [W, V]); | |
| const F = (J = P.arrow) == null ? void 0 : J.x, | |
| K = (hr = P.arrow) == null ? void 0 : hr.y, | |
| X = ((nn = P.arrow) == null ? void 0 : nn.centerOffset) !== 0, | |
| [he, Ne] = S.useState(); | |
| return Dn(() => { | |
| h && Ne(window.getComputedStyle(h).zIndex) | |
| }, [h]), g.jsx("div", { | |
| ref: M.setFloating, | |
| "data-radix-popper-content-wrapper": "", | |
| style: { ...Y, | |
| transform: W ? Y.transform : "translate(0, -200%)", | |
| minWidth: "max-content", | |
| zIndex: he, | |
| "--radix-popper-transform-origin": [(Bn = P.transformOrigin) == null ? void 0 : Bn.x, (rn = P.transformOrigin) == null ? void 0 : rn.y].join(" "), | |
| ...((mr = P.hide) == null ? void 0 : mr.referenceHidden) && { | |
| visibility: "hidden", | |
| pointerEvents: "none" | |
| } | |
| }, | |
| dir: e.dir, | |
| children: g.jsx(rS, { | |
| scope: n, | |
| placedSide: T, | |
| onArrowChange: C, | |
| arrowX: F, | |
| arrowY: K, | |
| shouldHideArrow: X, | |
| children: g.jsx(ze.div, { | |
| "data-side": T, | |
| "data-align": L, | |
| ...y, | |
| ref: v, | |
| style: { ...y.style, | |
| animation: W ? void 0 : "none" | |
| } | |
| }) | |
| }) | |
| }) | |
| }); | |
| Zm.displayName = yc; | |
| var Jm = "PopperArrow", | |
| iS = { | |
| top: "bottom", | |
| right: "left", | |
| bottom: "top", | |
| left: "right" | |
| }, | |
| eg = S.forwardRef(function(t, n) { | |
| const { | |
| __scopePopper: r, | |
| ...o | |
| } = t, i = oS(Jm, r), s = iS[i.placedSide]; | |
| return g.jsx("span", { | |
| ref: i.onArrowChange, | |
| style: { | |
| position: "absolute", | |
| left: i.arrowX, | |
| top: i.arrowY, | |
| [s]: 0, | |
| transformOrigin: { | |
| top: "", | |
| right: "0 0", | |
| bottom: "center 0", | |
| left: "100% 0" | |
| }[i.placedSide], | |
| transform: { | |
| top: "translateY(100%)", | |
| right: "translateY(50%) rotate(90deg) translateX(-50%)", | |
| bottom: "rotate(180deg)", | |
| left: "translateY(50%) rotate(-90deg) translateX(50%)" | |
| }[i.placedSide], | |
| visibility: i.shouldHideArrow ? "hidden" : void 0 | |
| }, | |
| children: g.jsx(tS, { ...o, | |
| ref: n, | |
| style: { ...o.style, | |
| display: "block" | |
| } | |
| }) | |
| }) | |
| }); | |
| eg.displayName = Jm; | |
| function sS(e) { | |
| return e !== null | |
| } | |
| var lS = e => ({ | |
| name: "transformOrigin", | |
| options: e, | |
| fn(t) { | |
| var w, h, p; | |
| const { | |
| placement: n, | |
| rects: r, | |
| middlewareData: o | |
| } = t, s = ((w = o.arrow) == null ? void 0 : w.centerOffset) !== 0, l = s ? 0 : e.arrowWidth, a = s ? 0 : e.arrowHeight, [u, c] = tg(n), f = { | |
| start: "0%", | |
| center: "50%", | |
| end: "100%" | |
| }[c], m = (((h = o.arrow) == null ? void 0 : h.x) ?? 0) + l / 2, d = (((p = o.arrow) == null ? void 0 : p.y) ?? 0) + a / 2; | |
| let x = "", | |
| y = ""; | |
| return u === "bottom" ? (x = s ? f : `${m}px`, y = `${-a}px`) : u === "top" ? (x = s ? f : `${m}px`, y = `${r.floating.height+a}px`) : u === "right" ? (x = `${-a}px`, y = s ? f : `${d}px`) : u === "left" && (x = `${r.floating.width+a}px`, y = s ? f : `${d}px`), { | |
| data: { | |
| x, | |
| y | |
| } | |
| } | |
| } | |
| }); | |
| function tg(e) { | |
| const [t, n = "center"] = e.split("-"); | |
| return [t, n] | |
| } | |
| var aS = qm, | |
| uS = Zm, | |
| cS = eg, | |
| [al, dC] = tl("Tooltip", [Gm]), | |
| vc = Gm(), | |
| ng = "TooltipProvider", | |
| dS = 700, | |
| af = "tooltip.open", | |
| [fS, rg] = al(ng), | |
| og = e => { | |
| const { | |
| __scopeTooltip: t, | |
| delayDuration: n = dS, | |
| skipDelayDuration: r = 300, | |
| disableHoverableContent: o = !1, | |
| children: i | |
| } = e, s = S.useRef(!0), l = S.useRef(!1), a = S.useRef(0); | |
| return S.useEffect(() => { | |
| const u = a.current; | |
| return () => window.clearTimeout(u) | |
| }, []), g.jsx(fS, { | |
| scope: t, | |
| isOpenDelayedRef: s, | |
| delayDuration: n, | |
| onOpen: S.useCallback(() => { | |
| window.clearTimeout(a.current), s.current = !1 | |
| }, []), | |
| onClose: S.useCallback(() => { | |
| window.clearTimeout(a.current), a.current = window.setTimeout(() => s.current = !0, r) | |
| }, [r]), | |
| isPointerInTransitRef: l, | |
| onPointerInTransitChange: S.useCallback(u => { | |
| l.current = u | |
| }, []), | |
| disableHoverableContent: o, | |
| children: i | |
| }) | |
| }; | |
| og.displayName = ng; | |
| var ig = "Tooltip", | |
| [fC, ul] = al(ig), | |
| tu = "TooltipTrigger", | |
| pS = S.forwardRef((e, t) => { | |
| const { | |
| __scopeTooltip: n, | |
| ...r | |
| } = e, o = ul(tu, n), i = rg(tu, n), s = vc(n), l = S.useRef(null), a = bt(t, l, o.onTriggerChange), u = S.useRef(!1), c = S.useRef(!1), f = S.useCallback(() => u.current = !1, []); | |
| return S.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), g.jsx(aS, { | |
| asChild: !0, | |
| ...s, | |
| children: g.jsx(ze.button, { | |
| "aria-describedby": o.open ? o.contentId : void 0, | |
| "data-state": o.stateAttribute, | |
| ...r, | |
| ref: a, | |
| onPointerMove: ye(e.onPointerMove, m => { | |
| m.pointerType !== "touch" && !c.current && !i.isPointerInTransitRef.current && (o.onTriggerEnter(), c.current = !0) | |
| }), | |
| onPointerLeave: ye(e.onPointerLeave, () => { | |
| o.onTriggerLeave(), c.current = !1 | |
| }), | |
| onPointerDown: ye(e.onPointerDown, () => { | |
| o.open && o.onClose(), u.current = !0, document.addEventListener("pointerup", f, { | |
| once: !0 | |
| }) | |
| }), | |
| onFocus: ye(e.onFocus, () => { | |
| u.current || o.onOpen() | |
| }), | |
| onBlur: ye(e.onBlur, o.onClose), | |
| onClick: ye(e.onClick, o.onClose) | |
| }) | |
| }) | |
| }); | |
| pS.displayName = tu; | |
| var hS = "TooltipPortal", | |
| [pC, mS] = al(hS, { | |
| forceMount: void 0 | |
| }), | |
| io = "TooltipContent", | |
| sg = S.forwardRef((e, t) => { | |
| const n = mS(io, e.__scopeTooltip), | |
| { | |
| forceMount: r = n.forceMount, | |
| side: o = "top", | |
| ...i | |
| } = e, | |
| s = ul(io, e.__scopeTooltip); | |
| return g.jsx(oc, { | |
| present: r || s.open, | |
| children: s.disableHoverableContent ? g.jsx(lg, { | |
| side: o, | |
| ...i, | |
| ref: t | |
| }) : g.jsx(gS, { | |
| side: o, | |
| ...i, | |
| ref: t | |
| }) | |
| }) | |
| }), | |
| gS = S.forwardRef((e, t) => { | |
| const n = ul(io, e.__scopeTooltip), | |
| r = rg(io, e.__scopeTooltip), | |
| o = S.useRef(null), | |
| i = bt(t, o), | |
| [s, l] = S.useState(null), | |
| { | |
| trigger: a, | |
| onClose: u | |
| } = n, | |
| c = o.current, | |
| { | |
| onPointerInTransitChange: f | |
| } = r, | |
| m = S.useCallback(() => { | |
| l(null), f(!1) | |
| }, [f]), | |
| d = S.useCallback((x, y) => { | |
| const w = x.currentTarget, | |
| h = { | |
| x: x.clientX, | |
| y: x.clientY | |
| }, | |
| p = SS(h, w.getBoundingClientRect()), | |
| v = kS(h, p), | |
| k = CS(y.getBoundingClientRect()), | |
| C = bS([...v, ...k]); | |
| l(C), f(!0) | |
| }, [f]); | |
| return S.useEffect(() => () => m(), [m]), S.useEffect(() => { | |
| if (a && c) { | |
| const x = w => d(w, c), | |
| y = w => d(w, a); | |
| return a.addEventListener("pointerleave", x), c.addEventListener("pointerleave", y), () => { | |
| a.removeEventListener("pointerleave", x), c.removeEventListener("pointerleave", y) | |
| } | |
| } | |
| }, [a, c, d, m]), S.useEffect(() => { | |
| if (s) { | |
| const x = y => { | |
| const w = y.target, | |
| h = { | |
| x: y.clientX, | |
| y: y.clientY | |
| }, | |
| p = (a == null ? void 0 : a.contains(w)) || (c == null ? void 0 : c.contains(w)), | |
| v = !ES(h, s); | |
| p ? m() : v && (m(), u()) | |
| }; | |
| return document.addEventListener("pointermove", x), () => document.removeEventListener("pointermove", x) | |
| } | |
| }, [a, c, s, u, m]), g.jsx(lg, { ...e, | |
| ref: i | |
| }) | |
| }), | |
| [yS, vS] = al(ig, { | |
| isInside: !1 | |
| }), | |
| xS = k0("TooltipContent"), | |
| lg = S.forwardRef((e, t) => { | |
| const { | |
| __scopeTooltip: n, | |
| children: r, | |
| "aria-label": o, | |
| onEscapeKeyDown: i, | |
| onPointerDownOutside: s, | |
| ...l | |
| } = e, a = ul(io, n), u = vc(n), { | |
| onClose: c | |
| } = a; | |
| return S.useEffect(() => (document.addEventListener(af, c), () => document.removeEventListener(af, c)), [c]), S.useEffect(() => { | |
| if (a.trigger) { | |
| const f = m => { | |
| const d = m.target; | |
| d != null && d.contains(a.trigger) && c() | |
| }; | |
| return window.addEventListener("scroll", f, { | |
| capture: !0 | |
| }), () => window.removeEventListener("scroll", f, { | |
| capture: !0 | |
| }) | |
| } | |
| }, [a.trigger, c]), g.jsx(rc, { | |
| asChild: !0, | |
| disableOutsidePointerEvents: !1, | |
| onEscapeKeyDown: i, | |
| onPointerDownOutside: s, | |
| onFocusOutside: f => f.preventDefault(), | |
| onDismiss: c, | |
| children: g.jsxs(uS, { | |
| "data-state": a.stateAttribute, | |
| ...u, | |
| ...l, | |
| ref: t, | |
| style: { ...l.style, | |
| "--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)", | |
| "--radix-tooltip-content-available-width": "var(--radix-popper-available-width)", | |
| "--radix-tooltip-content-available-height": "var(--radix-popper-available-height)", | |
| "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)", | |
| "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)" | |
| }, | |
| children: [g.jsx(xS, { | |
| children: r | |
| }), g.jsx(yS, { | |
| scope: n, | |
| isInside: !0, | |
| children: g.jsx(K0, { | |
| id: a.contentId, | |
| role: "tooltip", | |
| children: o || r | |
| }) | |
| })] | |
| }) | |
| }) | |
| }); | |
| sg.displayName = io; | |
| var ag = "TooltipArrow", | |
| wS = S.forwardRef((e, t) => { | |
| const { | |
| __scopeTooltip: n, | |
| ...r | |
| } = e, o = vc(n); | |
| return vS(ag, n).isInside ? null : g.jsx(cS, { ...o, | |
| ...r, | |
| ref: t | |
| }) | |
| }); | |
| wS.displayName = ag; | |
| function SS(e, t) { | |
| const n = Math.abs(t.top - e.y), | |
| r = Math.abs(t.bottom - e.y), | |
| o = Math.abs(t.right - e.x), | |
| i = Math.abs(t.left - e.x); | |
| switch (Math.min(n, r, o, i)) { | |
| case i: | |
| return "left"; | |
| case o: | |
| return "right"; | |
| case n: | |
| return "top"; | |
| case r: | |
| return "bottom"; | |
| default: | |
| throw new Error("unreachable") | |
| } | |
| } | |
| function kS(e, t, n = 5) { | |
| const r = []; | |
| switch (t) { | |
| case "top": | |
| r.push({ | |
| x: e.x - n, | |
| y: e.y + n | |
| }, { | |
| x: e.x + n, | |
| y: e.y + n | |
| }); | |
| break; | |
| case "bottom": | |
| r.push({ | |
| x: e.x - n, | |
| y: e.y - n | |
| }, { | |
| x: e.x + n, | |
| y: e.y - n | |
| }); | |
| break; | |
| case "left": | |
| r.push({ | |
| x: e.x + n, | |
| y: e.y - n | |
| }, { | |
| x: e.x + n, | |
| y: e.y + n | |
| }); | |
| break; | |
| case "right": | |
| r.push({ | |
| x: e.x - n, | |
| y: e.y - n | |
| }, { | |
| x: e.x - n, | |
| y: e.y + n | |
| }); | |
| break | |
| } | |
| return r | |
| } | |
| function CS(e) { | |
| const { | |
| top: t, | |
| right: n, | |
| bottom: r, | |
| left: o | |
| } = e; | |
| return [{ | |
| x: o, | |
| y: t | |
| }, { | |
| x: n, | |
| y: t | |
| }, { | |
| x: n, | |
| y: r | |
| }, { | |
| x: o, | |
| y: r | |
| }] | |
| } | |
| function ES(e, t) { | |
| const { | |
| x: n, | |
| y: r | |
| } = e; | |
| let o = !1; | |
| for (let i = 0, s = t.length - 1; i < t.length; s = i++) { | |
| const l = t[i], | |
| a = t[s], | |
| u = l.x, | |
| c = l.y, | |
| f = a.x, | |
| m = a.y; | |
| c > r != m > r && n < (f - u) * (r - c) / (m - c) + u && (o = !o) | |
| } | |
| return o | |
| } | |
| function bS(e) { | |
| const t = e.slice(); | |
| return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), NS(t) | |
| } | |
| function NS(e) { | |
| if (e.length <= 1) return e.slice(); | |
| const t = []; | |
| for (let r = 0; r < e.length; r++) { | |
| const o = e[r]; | |
| for (; t.length >= 2;) { | |
| const i = t[t.length - 1], | |
| s = t[t.length - 2]; | |
| if ((i.x - s.x) * (o.y - s.y) >= (i.y - s.y) * (o.x - s.x)) t.pop(); | |
| else break | |
| } | |
| t.push(o) | |
| } | |
| t.pop(); | |
| const n = []; | |
| for (let r = e.length - 1; r >= 0; r--) { | |
| const o = e[r]; | |
| for (; n.length >= 2;) { | |
| const i = n[n.length - 1], | |
| s = n[n.length - 2]; | |
| if ((i.x - s.x) * (o.y - s.y) >= (i.y - s.y) * (o.x - s.x)) n.pop(); | |
| else break | |
| } | |
| n.push(o) | |
| } | |
| return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n) | |
| } | |
| var PS = og, | |
| ug = sg; | |
| const TS = PS, | |
| RS = S.forwardRef(({ | |
| className: e, | |
| sideOffset: t = 4, | |
| ...n | |
| }, r) => g.jsx(ug, { | |
| ref: r, | |
| sideOffset: t, | |
| className: ke("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", e), | |
| ...n | |
| })); | |
| RS.displayName = ug.displayName; | |
| var cl = class { | |
| constructor() { | |
| this.listeners = new Set, this.subscribe = this.subscribe.bind(this) | |
| } | |
| subscribe(e) { | |
| return this.listeners.add(e), this.onSubscribe(), () => { | |
| this.listeners.delete(e), this.onUnsubscribe() | |
| } | |
| } | |
| hasListeners() { | |
| return this.listeners.size > 0 | |
| } | |
| onSubscribe() {} | |
| onUnsubscribe() {} | |
| }, | |
| dl = typeof window > "u" || "Deno" in globalThis; | |
| function gt() {} | |
| function jS(e, t) { | |
| return typeof e == "function" ? e(t) : e | |
| } | |
| function _S(e) { | |
| return typeof e == "number" && e >= 0 && e !== 1 / 0 | |
| } | |
| function AS(e, t) { | |
| return Math.max(e + (t || 0) - Date.now(), 0) | |
| } | |
| function nu(e, t) { | |
| return typeof e == "function" ? e(t) : e | |
| } | |
| function OS(e, t) { | |
| return typeof e == "function" ? e(t) : e | |
| } | |
| function uf(e, t) { | |
| const { | |
| type: n = "all", | |
| exact: r, | |
| fetchStatus: o, | |
| predicate: i, | |
| queryKey: s, | |
| stale: l | |
| } = e; | |
| if (s) { | |
| if (r) { | |
| if (t.queryHash !== xc(s, t.options)) return !1 | |
| } else if (!li(t.queryKey, s)) return !1 | |
| } | |
| if (n !== "all") { | |
| const a = t.isActive(); | |
| if (n === "active" && !a || n === "inactive" && a) return !1 | |
| } | |
| return !(typeof l == "boolean" && t.isStale() !== l || o && o !== t.state.fetchStatus || i && !i(t)) | |
| } | |
| function cf(e, t) { | |
| const { | |
| exact: n, | |
| status: r, | |
| predicate: o, | |
| mutationKey: i | |
| } = e; | |
| if (i) { | |
| if (!t.options.mutationKey) return !1; | |
| if (n) { | |
| if (si(t.options.mutationKey) !== si(i)) return !1 | |
| } else if (!li(t.options.mutationKey, i)) return !1 | |
| } | |
| return !(r && t.state.status !== r || o && !o(t)) | |
| } | |
| function xc(e, t) { | |
| return ((t == null ? void 0 : t.queryKeyHashFn) || si)(e) | |
| } | |
| function si(e) { | |
| return JSON.stringify(e, (t, n) => ru(n) ? Object.keys(n).sort().reduce((r, o) => (r[o] = n[o], r), {}) : n) | |
| } | |
| function li(e, t) { | |
| return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every(n => li(e[n], t[n])) : !1 | |
| } | |
| function cg(e, t) { | |
| if (e === t) return e; | |
| const n = df(e) && df(t); | |
| if (n || ru(e) && ru(t)) { | |
| const r = n ? e : Object.keys(e), | |
| o = r.length, | |
| i = n ? t : Object.keys(t), | |
| s = i.length, | |
| l = n ? [] : {}, | |
| a = new Set(r); | |
| let u = 0; | |
| for (let c = 0; c < s; c++) { | |
| const f = n ? c : i[c]; | |
| (!n && a.has(f) || n) && e[f] === void 0 && t[f] === void 0 ? (l[f] = void 0, u++) : (l[f] = cg(e[f], t[f]), l[f] === e[f] && e[f] !== void 0 && u++) | |
| } | |
| return o === s && u === o ? e : l | |
| } | |
| return t | |
| } | |
| function df(e) { | |
| return Array.isArray(e) && e.length === Object.keys(e).length | |
| } | |
| function ru(e) { | |
| if (!ff(e)) return !1; | |
| const t = e.constructor; | |
| if (t === void 0) return !0; | |
| const n = t.prototype; | |
| return !(!ff(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype) | |
| } | |
| function ff(e) { | |
| return Object.prototype.toString.call(e) === "[object Object]" | |
| } | |
| function MS(e) { | |
| return new Promise(t => { | |
| setTimeout(t, e) | |
| }) | |
| } | |
| function LS(e, t, n) { | |
| return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? cg(e, t) : t | |
| } | |
| function DS(e, t, n = 0) { | |
| const r = [...e, t]; | |
| return n && r.length > n ? r.slice(1) : r | |
| } | |
| function IS(e, t, n = 0) { | |
| const r = [t, ...e]; | |
| return n && r.length > n ? r.slice(0, -1) : r | |
| } | |
| var wc = Symbol(); | |
| function dg(e, t) { | |
| return !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === wc ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn | |
| } | |
| var qn, yn, Wr, Cf, FS = (Cf = class extends cl { | |
| constructor() { | |
| super(); | |
| Z(this, qn); | |
| Z(this, yn); | |
| Z(this, Wr); | |
| B(this, Wr, t => { | |
| if (!dl && window.addEventListener) { | |
| const n = () => t(); | |
| return window.addEventListener("visibilitychange", n, !1), () => { | |
| window.removeEventListener("visibilitychange", n) | |
| } | |
| } | |
| }) | |
| } | |
| onSubscribe() { | |
| N(this, yn) || this.setEventListener(N(this, Wr)) | |
| } | |
| onUnsubscribe() { | |
| var t; | |
| this.hasListeners() || ((t = N(this, yn)) == null || t.call(this), B(this, yn, void 0)) | |
| } | |
| setEventListener(t) { | |
| var n; | |
| B(this, Wr, t), (n = N(this, yn)) == null || n.call(this), B(this, yn, t(r => { | |
| typeof r == "boolean" ? this.setFocused(r) : this.onFocus() | |
| })) | |
| } | |
| setFocused(t) { | |
| N(this, qn) !== t && (B(this, qn, t), this.onFocus()) | |
| } | |
| onFocus() { | |
| const t = this.isFocused(); | |
| this.listeners.forEach(n => { | |
| n(t) | |
| }) | |
| } | |
| isFocused() { | |
| var t; | |
| return typeof N(this, qn) == "boolean" ? N(this, qn) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden" | |
| } | |
| }, qn = new WeakMap, yn = new WeakMap, Wr = new WeakMap, Cf), | |
| fg = new FS, | |
| Vr, vn, Hr, Ef, zS = (Ef = class extends cl { | |
| constructor() { | |
| super(); | |
| Z(this, Vr, !0); | |
| Z(this, vn); | |
| Z(this, Hr); | |
| B(this, Hr, t => { | |
| if (!dl && window.addEventListener) { | |
| const n = () => t(!0), | |
| r = () => t(!1); | |
| return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => { | |
| window.removeEventListener("online", n), window.removeEventListener("offline", r) | |
| } | |
| } | |
| }) | |
| } | |
| onSubscribe() { | |
| N(this, vn) || this.setEventListener(N(this, Hr)) | |
| } | |
| onUnsubscribe() { | |
| var t; | |
| this.hasListeners() || ((t = N(this, vn)) == null || t.call(this), B(this, vn, void 0)) | |
| } | |
| setEventListener(t) { | |
| var n; | |
| B(this, Hr, t), (n = N(this, vn)) == null || n.call(this), B(this, vn, t(this.setOnline.bind(this))) | |
| } | |
| setOnline(t) { | |
| N(this, Vr) !== t && (B(this, Vr, t), this.listeners.forEach(r => { | |
| r(t) | |
| })) | |
| } | |
| isOnline() { | |
| return N(this, Vr) | |
| } | |
| }, Vr = new WeakMap, vn = new WeakMap, Hr = new WeakMap, Ef), | |
| Ds = new zS; | |
| function $S() { | |
| let e, t; | |
| const n = new Promise((o, i) => { | |
| e = o, t = i | |
| }); | |
| n.status = "pending", n.catch(() => {}); | |
| function r(o) { | |
| Object.assign(n, o), delete n.resolve, delete n.reject | |
| } | |
| return n.resolve = o => { | |
| r({ | |
| status: "fulfilled", | |
| value: o | |
| }), e(o) | |
| }, n.reject = o => { | |
| r({ | |
| status: "rejected", | |
| reason: o | |
| }), t(o) | |
| }, n | |
| } | |
| function US(e) { | |
| return Math.min(1e3 * 2 ** e, 3e4) | |
| } | |
| function pg(e) { | |
| return (e ?? "online") === "online" ? Ds.isOnline() : !0 | |
| } | |
| var hg = class extends Error { | |
| constructor(e) { | |
| super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent | |
| } | |
| }; | |
| function Zl(e) { | |
| return e instanceof hg | |
| } | |
| function mg(e) { | |
| let t = !1, | |
| n = 0, | |
| r = !1, | |
| o; | |
| const i = $S(), | |
| s = y => { | |
| var w; | |
| r || (m(new hg(y)), (w = e.abort) == null || w.call(e)) | |
| }, | |
| l = () => { | |
| t = !0 | |
| }, | |
| a = () => { | |
| t = !1 | |
| }, | |
| u = () => fg.isFocused() && (e.networkMode === "always" || Ds.isOnline()) && e.canRun(), | |
| c = () => pg(e.networkMode) && e.canRun(), | |
| f = y => { | |
| var w; | |
| r || (r = !0, (w = e.onSuccess) == null || w.call(e, y), o == null || o(), i.resolve(y)) | |
| }, | |
| m = y => { | |
| var w; | |
| r || (r = !0, (w = e.onError) == null || w.call(e, y), o == null || o(), i.reject(y)) | |
| }, | |
| d = () => new Promise(y => { | |
| var w; | |
| o = h => { | |
| (r || u()) && y(h) | |
| }, (w = e.onPause) == null || w.call(e) | |
| }).then(() => { | |
| var y; | |
| o = void 0, r || (y = e.onContinue) == null || y.call(e) | |
| }), | |
| x = () => { | |
| if (r) return; | |
| let y; | |
| const w = n === 0 ? e.initialPromise : void 0; | |
| try { | |
| y = w ?? e.fn() | |
| } catch (h) { | |
| y = Promise.reject(h) | |
| } | |
| Promise.resolve(y).then(f).catch(h => { | |
| var E; | |
| if (r) return; | |
| const p = e.retry ?? (dl ? 0 : 3), | |
| v = e.retryDelay ?? US, | |
| k = typeof v == "function" ? v(n, h) : v, | |
| C = p === !0 || typeof p == "number" && n < p || typeof p == "function" && p(n, h); | |
| if (t || !C) { | |
| m(h); | |
| return | |
| } | |
| n++, (E = e.onFail) == null || E.call(e, n, h), MS(k).then(() => u() ? void 0 : d()).then(() => { | |
| t ? m(h) : x() | |
| }) | |
| }) | |
| }; | |
| return { | |
| promise: i, | |
| cancel: s, | |
| continue: () => (o == null || o(), i), | |
| cancelRetry: l, | |
| continueRetry: a, | |
| canStart: c, | |
| start: () => (c() ? x() : d().then(x), i) | |
| } | |
| } | |
| var BS = e => setTimeout(e, 0); | |
| function WS() { | |
| let e = [], | |
| t = 0, | |
| n = l => { | |
| l() | |
| }, | |
| r = l => { | |
| l() | |
| }, | |
| o = BS; | |
| const i = l => { | |
| t ? e.push(l) : o(() => { | |
| n(l) | |
| }) | |
| }, | |
| s = () => { | |
| const l = e; | |
| e = [], l.length && o(() => { | |
| r(() => { | |
| l.forEach(a => { | |
| n(a) | |
| }) | |
| }) | |
| }) | |
| }; | |
| return { | |
| batch: l => { | |
| let a; | |
| t++; | |
| try { | |
| a = l() | |
| } finally { | |
| t--, t || s() | |
| } | |
| return a | |
| }, | |
| batchCalls: l => (...a) => { | |
| i(() => { | |
| l(...a) | |
| }) | |
| }, | |
| schedule: i, | |
| setNotifyFunction: l => { | |
| n = l | |
| }, | |
| setBatchNotifyFunction: l => { | |
| r = l | |
| }, | |
| setScheduler: l => { | |
| o = l | |
| } | |
| } | |
| } | |
| var Le = WS(), | |
| Zn, bf, gg = (bf = class { | |
| constructor() { | |
| Z(this, Zn) | |
| } | |
| destroy() { | |
| this.clearGcTimeout() | |
| } | |
| scheduleGc() { | |
| this.clearGcTimeout(), _S(this.gcTime) && B(this, Zn, setTimeout(() => { | |
| this.optionalRemove() | |
| }, this.gcTime)) | |
| } | |
| updateGcTime(e) { | |
| this.gcTime = Math.max(this.gcTime || 0, e ?? (dl ? 1 / 0 : 5 * 60 * 1e3)) | |
| } | |
| clearGcTimeout() { | |
| N(this, Zn) && (clearTimeout(N(this, Zn)), B(this, Zn, void 0)) | |
| } | |
| }, Zn = new WeakMap, bf), | |
| Qr, Jn, rt, er, je, ai, tr, vt, Bt, Nf, VS = (Nf = class extends gg { | |
| constructor(t) { | |
| super(); | |
| Z(this, vt); | |
| Z(this, Qr); | |
| Z(this, Jn); | |
| Z(this, rt); | |
| Z(this, er); | |
| Z(this, je); | |
| Z(this, ai); | |
| Z(this, tr); | |
| B(this, tr, !1), B(this, ai, t.defaultOptions), this.setOptions(t.options), this.observers = [], B(this, er, t.client), B(this, rt, N(this, er).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, B(this, Qr, QS(this.options)), this.state = t.state ?? N(this, Qr), this.scheduleGc() | |
| } | |
| get meta() { | |
| return this.options.meta | |
| } | |
| get promise() { | |
| var t; | |
| return (t = N(this, je)) == null ? void 0 : t.promise | |
| } | |
| setOptions(t) { | |
| this.options = { ...N(this, ai), | |
| ...t | |
| }, this.updateGcTime(this.options.gcTime) | |
| } | |
| optionalRemove() { | |
| !this.observers.length && this.state.fetchStatus === "idle" && N(this, rt).remove(this) | |
| } | |
| setData(t, n) { | |
| const r = LS(this.state.data, t, this.options); | |
| return Pe(this, vt, Bt).call(this, { | |
| data: r, | |
| type: "success", | |
| dataUpdatedAt: n == null ? void 0 : n.updatedAt, | |
| manual: n == null ? void 0 : n.manual | |
| }), r | |
| } | |
| setState(t, n) { | |
| Pe(this, vt, Bt).call(this, { | |
| type: "setState", | |
| state: t, | |
| setStateOptions: n | |
| }) | |
| } | |
| cancel(t) { | |
| var r, o; | |
| const n = (r = N(this, je)) == null ? void 0 : r.promise; | |
| return (o = N(this, je)) == null || o.cancel(t), n ? n.then(gt).catch(gt) : Promise.resolve() | |
| } | |
| destroy() { | |
| super.destroy(), this.cancel({ | |
| silent: !0 | |
| }) | |
| } | |
| reset() { | |
| this.destroy(), this.setState(N(this, Qr)) | |
| } | |
| isActive() { | |
| return this.observers.some(t => OS(t.options.enabled, this) !== !1) | |
| } | |
| isDisabled() { | |
| return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === wc || this.state.dataUpdateCount + this.state.errorUpdateCount === 0 | |
| } | |
| isStatic() { | |
| return this.getObserversCount() > 0 ? this.observers.some(t => nu(t.options.staleTime, this) === "static") : !1 | |
| } | |
| isStale() { | |
| return this.getObserversCount() > 0 ? this.observers.some(t => t.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated | |
| } | |
| isStaleByTime(t = 0) { | |
| return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !AS(this.state.dataUpdatedAt, t) | |
| } | |
| onFocus() { | |
| var n; | |
| const t = this.observers.find(r => r.shouldFetchOnWindowFocus()); | |
| t == null || t.refetch({ | |
| cancelRefetch: !1 | |
| }), (n = N(this, je)) == null || n.continue() | |
| } | |
| onOnline() { | |
| var n; | |
| const t = this.observers.find(r => r.shouldFetchOnReconnect()); | |
| t == null || t.refetch({ | |
| cancelRefetch: !1 | |
| }), (n = N(this, je)) == null || n.continue() | |
| } | |
| addObserver(t) { | |
| this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), N(this, rt).notify({ | |
| type: "observerAdded", | |
| query: this, | |
| observer: t | |
| })) | |
| } | |
| removeObserver(t) { | |
| this.observers.includes(t) && (this.observers = this.observers.filter(n => n !== t), this.observers.length || (N(this, je) && (N(this, tr) ? N(this, je).cancel({ | |
| revert: !0 | |
| }) : N(this, je).cancelRetry()), this.scheduleGc()), N(this, rt).notify({ | |
| type: "observerRemoved", | |
| query: this, | |
| observer: t | |
| })) | |
| } | |
| getObserversCount() { | |
| return this.observers.length | |
| } | |
| invalidate() { | |
| this.state.isInvalidated || Pe(this, vt, Bt).call(this, { | |
| type: "invalidate" | |
| }) | |
| } | |
| fetch(t, n) { | |
| var u, c, f; | |
| if (this.state.fetchStatus !== "idle") { | |
| if (this.state.data !== void 0 && (n != null && n.cancelRefetch)) this.cancel({ | |
| silent: !0 | |
| }); | |
| else if (N(this, je)) return N(this, je).continueRetry(), N(this, je).promise | |
| } | |
| if (t && this.setOptions(t), !this.options.queryFn) { | |
| const m = this.observers.find(d => d.options.queryFn); | |
| m && this.setOptions(m.options) | |
| } | |
| const r = new AbortController, | |
| o = m => { | |
| Object.defineProperty(m, "signal", { | |
| enumerable: !0, | |
| get: () => (B(this, tr, !0), r.signal) | |
| }) | |
| }, | |
| i = () => { | |
| const m = dg(this.options, n), | |
| x = (() => { | |
| const y = { | |
| client: N(this, er), | |
| queryKey: this.queryKey, | |
| meta: this.meta | |
| }; | |
| return o(y), y | |
| })(); | |
| return B(this, tr, !1), this.options.persister ? this.options.persister(m, x, this) : m(x) | |
| }, | |
| l = (() => { | |
| const m = { | |
| fetchOptions: n, | |
| options: this.options, | |
| queryKey: this.queryKey, | |
| client: N(this, er), | |
| state: this.state, | |
| fetchFn: i | |
| }; | |
| return o(m), m | |
| })(); | |
| (u = this.options.behavior) == null || u.onFetch(l, this), B(this, Jn, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((c = l.fetchOptions) == null ? void 0 : c.meta)) && Pe(this, vt, Bt).call(this, { | |
| type: "fetch", | |
| meta: (f = l.fetchOptions) == null ? void 0 : f.meta | |
| }); | |
| const a = m => { | |
| var d, x, y, w; | |
| Zl(m) && m.silent || Pe(this, vt, Bt).call(this, { | |
| type: "error", | |
| error: m | |
| }), Zl(m) || ((x = (d = N(this, rt).config).onError) == null || x.call(d, m, this), (w = (y = N(this, rt).config).onSettled) == null || w.call(y, this.state.data, m, this)), this.scheduleGc() | |
| }; | |
| return B(this, je, mg({ | |
| initialPromise: n == null ? void 0 : n.initialPromise, | |
| fn: l.fetchFn, | |
| abort: r.abort.bind(r), | |
| onSuccess: m => { | |
| var d, x, y, w; | |
| if (m === void 0) { | |
| a(new Error(`${this.queryHash} data is undefined`)); | |
| return | |
| } | |
| try { | |
| this.setData(m) | |
| } catch (h) { | |
| a(h); | |
| return | |
| }(x = (d = N(this, rt).config).onSuccess) == null || x.call(d, m, this), (w = (y = N(this, rt).config).onSettled) == null || w.call(y, m, this.state.error, this), this.scheduleGc() | |
| }, | |
| onError: a, | |
| onFail: (m, d) => { | |
| Pe(this, vt, Bt).call(this, { | |
| type: "failed", | |
| failureCount: m, | |
| error: d | |
| }) | |
| }, | |
| onPause: () => { | |
| Pe(this, vt, Bt).call(this, { | |
| type: "pause" | |
| }) | |
| }, | |
| onContinue: () => { | |
| Pe(this, vt, Bt).call(this, { | |
| type: "continue" | |
| }) | |
| }, | |
| retry: l.options.retry, | |
| retryDelay: l.options.retryDelay, | |
| networkMode: l.options.networkMode, | |
| canRun: () => !0 | |
| })), N(this, je).start() | |
| } | |
| }, Qr = new WeakMap, Jn = new WeakMap, rt = new WeakMap, er = new WeakMap, je = new WeakMap, ai = new WeakMap, tr = new WeakMap, vt = new WeakSet, Bt = function(t) { | |
| const n = r => { | |
| switch (t.type) { | |
| case "failed": | |
| return { ...r, | |
| fetchFailureCount: t.failureCount, | |
| fetchFailureReason: t.error | |
| }; | |
| case "pause": | |
| return { ...r, | |
| fetchStatus: "paused" | |
| }; | |
| case "continue": | |
| return { ...r, | |
| fetchStatus: "fetching" | |
| }; | |
| case "fetch": | |
| return { ...r, | |
| ...HS(r.data, this.options), | |
| fetchMeta: t.meta ?? null | |
| }; | |
| case "success": | |
| return B(this, Jn, void 0), { ...r, | |
| data: t.data, | |
| dataUpdateCount: r.dataUpdateCount + 1, | |
| dataUpdatedAt: t.dataUpdatedAt ?? Date.now(), | |
| error: null, | |
| isInvalidated: !1, | |
| status: "success", | |
| ...!t.manual && { | |
| fetchStatus: "idle", | |
| fetchFailureCount: 0, | |
| fetchFailureReason: null | |
| } | |
| }; | |
| case "error": | |
| const o = t.error; | |
| return Zl(o) && o.revert && N(this, Jn) ? { ...N(this, Jn), | |
| fetchStatus: "idle" | |
| } : { ...r, | |
| error: o, | |
| errorUpdateCount: r.errorUpdateCount + 1, | |
| errorUpdatedAt: Date.now(), | |
| fetchFailureCount: r.fetchFailureCount + 1, | |
| fetchFailureReason: o, | |
| fetchStatus: "idle", | |
| status: "error" | |
| }; | |
| case "invalidate": | |
| return { ...r, | |
| isInvalidated: !0 | |
| }; | |
| case "setState": | |
| return { ...r, | |
| ...t.state | |
| } | |
| } | |
| }; | |
| this.state = n(this.state), Le.batch(() => { | |
| this.observers.forEach(r => { | |
| r.onQueryUpdate() | |
| }), N(this, rt).notify({ | |
| query: this, | |
| type: "updated", | |
| action: t | |
| }) | |
| }) | |
| }, Nf); | |
| function HS(e, t) { | |
| return { | |
| fetchFailureCount: 0, | |
| fetchFailureReason: null, | |
| fetchStatus: pg(t.networkMode) ? "fetching" : "paused", | |
| ...e === void 0 && { | |
| error: null, | |
| status: "pending" | |
| } | |
| } | |
| } | |
| function QS(e) { | |
| const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, | |
| n = t !== void 0, | |
| r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0; | |
| return { | |
| data: t, | |
| dataUpdateCount: 0, | |
| dataUpdatedAt: n ? r ?? Date.now() : 0, | |
| error: null, | |
| errorUpdateCount: 0, | |
| errorUpdatedAt: 0, | |
| fetchFailureCount: 0, | |
| fetchFailureReason: null, | |
| fetchMeta: null, | |
| isInvalidated: !1, | |
| status: n ? "success" : "pending", | |
| fetchStatus: "idle" | |
| } | |
| } | |
| var _t, Pf, KS = (Pf = class extends cl { | |
| constructor(t = {}) { | |
| super(); | |
| Z(this, _t); | |
| this.config = t, B(this, _t, new Map) | |
| } | |
| build(t, n, r) { | |
| const o = n.queryKey, | |
| i = n.queryHash ?? xc(o, n); | |
| let s = this.get(i); | |
| return s || (s = new VS({ | |
| client: t, | |
| queryKey: o, | |
| queryHash: i, | |
| options: t.defaultQueryOptions(n), | |
| state: r, | |
| defaultOptions: t.getQueryDefaults(o) | |
| }), this.add(s)), s | |
| } | |
| add(t) { | |
| N(this, _t).has(t.queryHash) || (N(this, _t).set(t.queryHash, t), this.notify({ | |
| type: "added", | |
| query: t | |
| })) | |
| } | |
| remove(t) { | |
| const n = N(this, _t).get(t.queryHash); | |
| n && (t.destroy(), n === t && N(this, _t).delete(t.queryHash), this.notify({ | |
| type: "removed", | |
| query: t | |
| })) | |
| } | |
| clear() { | |
| Le.batch(() => { | |
| this.getAll().forEach(t => { | |
| this.remove(t) | |
| }) | |
| }) | |
| } | |
| get(t) { | |
| return N(this, _t).get(t) | |
| } | |
| getAll() { | |
| return [...N(this, _t).values()] | |
| } | |
| find(t) { | |
| const n = { | |
| exact: !0, | |
| ...t | |
| }; | |
| return this.getAll().find(r => uf(n, r)) | |
| } | |
| findAll(t = {}) { | |
| const n = this.getAll(); | |
| return Object.keys(t).length > 0 ? n.filter(r => uf(t, r)) : n | |
| } | |
| notify(t) { | |
| Le.batch(() => { | |
| this.listeners.forEach(n => { | |
| n(t) | |
| }) | |
| }) | |
| } | |
| onFocus() { | |
| Le.batch(() => { | |
| this.getAll().forEach(t => { | |
| t.onFocus() | |
| }) | |
| }) | |
| } | |
| onOnline() { | |
| Le.batch(() => { | |
| this.getAll().forEach(t => { | |
| t.onOnline() | |
| }) | |
| }) | |
| } | |
| }, _t = new WeakMap, Pf), | |
| At, Oe, nr, Ot, fn, Tf, GS = (Tf = class extends gg { | |
| constructor(t) { | |
| super(); | |
| Z(this, Ot); | |
| Z(this, At); | |
| Z(this, Oe); | |
| Z(this, nr); | |
| this.mutationId = t.mutationId, B(this, Oe, t.mutationCache), B(this, At, []), this.state = t.state || YS(), this.setOptions(t.options), this.scheduleGc() | |
| } | |
| setOptions(t) { | |
| this.options = t, this.updateGcTime(this.options.gcTime) | |
| } | |
| get meta() { | |
| return this.options.meta | |
| } | |
| addObserver(t) { | |
| N(this, At).includes(t) || (N(this, At).push(t), this.clearGcTimeout(), N(this, Oe).notify({ | |
| type: "observerAdded", | |
| mutation: this, | |
| observer: t | |
| })) | |
| } | |
| removeObserver(t) { | |
| B(this, At, N(this, At).filter(n => n !== t)), this.scheduleGc(), N(this, Oe).notify({ | |
| type: "observerRemoved", | |
| mutation: this, | |
| observer: t | |
| }) | |
| } | |
| optionalRemove() { | |
| N(this, At).length || (this.state.status === "pending" ? this.scheduleGc() : N(this, Oe).remove(this)) | |
| } | |
| continue () { | |
| var t; | |
| return ((t = N(this, nr)) == null ? void 0 : t.continue()) ?? this.execute(this.state.variables) | |
| } | |
| async execute(t) { | |
| var i, s, l, a, u, c, f, m, d, x, y, w, h, p, v, k, C, E, b, R; | |
| const n = () => { | |
| Pe(this, Ot, fn).call(this, { | |
| type: "continue" | |
| }) | |
| }; | |
| B(this, nr, mg({ | |
| fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")), | |
| onFail: (O, A) => { | |
| Pe(this, Ot, fn).call(this, { | |
| type: "failed", | |
| failureCount: O, | |
| error: A | |
| }) | |
| }, | |
| onPause: () => { | |
| Pe(this, Ot, fn).call(this, { | |
| type: "pause" | |
| }) | |
| }, | |
| onContinue: n, | |
| retry: this.options.retry ?? 0, | |
| retryDelay: this.options.retryDelay, | |
| networkMode: this.options.networkMode, | |
| canRun: () => N(this, Oe).canRun(this) | |
| })); | |
| const r = this.state.status === "pending", | |
| o = !N(this, nr).canStart(); | |
| try { | |
| if (r) n(); | |
| else { | |
| Pe(this, Ot, fn).call(this, { | |
| type: "pending", | |
| variables: t, | |
| isPaused: o | |
| }), await ((s = (i = N(this, Oe).config).onMutate) == null ? void 0 : s.call(i, t, this)); | |
| const A = await ((a = (l = this.options).onMutate) == null ? void 0 : a.call(l, t)); | |
| A !== this.state.context && Pe(this, Ot, fn).call(this, { | |
| type: "pending", | |
| context: A, | |
| variables: t, | |
| isPaused: o | |
| }) | |
| } | |
| const O = await N(this, nr).start(); | |
| return await ((c = (u = N(this, Oe).config).onSuccess) == null ? void 0 : c.call(u, O, t, this.state.context, this)), await ((m = (f = this.options).onSuccess) == null ? void 0 : m.call(f, O, t, this.state.context)), await ((x = (d = N(this, Oe).config).onSettled) == null ? void 0 : x.call(d, O, null, this.state.variables, this.state.context, this)), await ((w = (y = this.options).onSettled) == null ? void 0 : w.call(y, O, null, t, this.state.context)), Pe(this, Ot, fn).call(this, { | |
| type: "success", | |
| data: O | |
| }), O | |
| } catch (O) { | |
| try { | |
| throw await ((p = (h = N(this, Oe).config).onError) == null ? void 0 : p.call(h, O, t, this.state.context, this)), await ((k = (v = this.options).onError) == null ? void 0 : k.call(v, O, t, this.state.context)), await ((E = (C = N(this, Oe).config).onSettled) == null ? void 0 : E.call(C, void 0, O, this.state.variables, this.state.context, this)), await ((R = (b = this.options).onSettled) == null ? void 0 : R.call(b, void 0, O, t, this.state.context)), O | |
| } finally { | |
| Pe(this, Ot, fn).call(this, { | |
| type: "error", | |
| error: O | |
| }) | |
| } | |
| } finally { | |
| N(this, Oe).runNext(this) | |
| } | |
| } | |
| }, At = new WeakMap, Oe = new WeakMap, nr = new WeakMap, Ot = new WeakSet, fn = function(t) { | |
| const n = r => { | |
| switch (t.type) { | |
| case "failed": | |
| return { ...r, | |
| failureCount: t.failureCount, | |
| failureReason: t.error | |
| }; | |
| case "pause": | |
| return { ...r, | |
| isPaused: !0 | |
| }; | |
| case "continue": | |
| return { ...r, | |
| isPaused: !1 | |
| }; | |
| case "pending": | |
| return { ...r, | |
| context: t.context, | |
| data: void 0, | |
| failureCount: 0, | |
| failureReason: null, | |
| error: null, | |
| isPaused: t.isPaused, | |
| status: "pending", | |
| variables: t.variables, | |
| submittedAt: Date.now() | |
| }; | |
| case "success": | |
| return { ...r, | |
| data: t.data, | |
| failureCount: 0, | |
| failureReason: null, | |
| error: null, | |
| status: "success", | |
| isPaused: !1 | |
| }; | |
| case "error": | |
| return { ...r, | |
| data: void 0, | |
| error: t.error, | |
| failureCount: r.failureCount + 1, | |
| failureReason: t.error, | |
| isPaused: !1, | |
| status: "error" | |
| } | |
| } | |
| }; | |
| this.state = n(this.state), Le.batch(() => { | |
| N(this, At).forEach(r => { | |
| r.onMutationUpdate(t) | |
| }), N(this, Oe).notify({ | |
| mutation: this, | |
| type: "updated", | |
| action: t | |
| }) | |
| }) | |
| }, Tf); | |
| function YS() { | |
| return { | |
| context: void 0, | |
| data: void 0, | |
| error: null, | |
| failureCount: 0, | |
| failureReason: null, | |
| isPaused: !1, | |
| status: "idle", | |
| variables: void 0, | |
| submittedAt: 0 | |
| } | |
| } | |
| var Ht, xt, ui, Rf, XS = (Rf = class extends cl { | |
| constructor(t = {}) { | |
| super(); | |
| Z(this, Ht); | |
| Z(this, xt); | |
| Z(this, ui); | |
| this.config = t, B(this, Ht, new Set), B(this, xt, new Map), B(this, ui, 0) | |
| } | |
| build(t, n, r) { | |
| const o = new GS({ | |
| mutationCache: this, | |
| mutationId: ++Si(this, ui)._, | |
| options: t.defaultMutationOptions(n), | |
| state: r | |
| }); | |
| return this.add(o), o | |
| } | |
| add(t) { | |
| N(this, Ht).add(t); | |
| const n = Vi(t); | |
| if (typeof n == "string") { | |
| const r = N(this, xt).get(n); | |
| r ? r.push(t) : N(this, xt).set(n, [t]) | |
| } | |
| this.notify({ | |
| type: "added", | |
| mutation: t | |
| }) | |
| } | |
| remove(t) { | |
| if (N(this, Ht).delete(t)) { | |
| const n = Vi(t); | |
| if (typeof n == "string") { | |
| const r = N(this, xt).get(n); | |
| if (r) | |
| if (r.length > 1) { | |
| const o = r.indexOf(t); | |
| o !== -1 && r.splice(o, 1) | |
| } else r[0] === t && N(this, xt).delete(n) | |
| } | |
| } | |
| this.notify({ | |
| type: "removed", | |
| mutation: t | |
| }) | |
| } | |
| canRun(t) { | |
| const n = Vi(t); | |
| if (typeof n == "string") { | |
| const r = N(this, xt).get(n), | |
| o = r == null ? void 0 : r.find(i => i.state.status === "pending"); | |
| return !o || o === t | |
| } else return !0 | |
| } | |
| runNext(t) { | |
| var r; | |
| const n = Vi(t); | |
| if (typeof n == "string") { | |
| const o = (r = N(this, xt).get(n)) == null ? void 0 : r.find(i => i !== t && i.state.isPaused); | |
| return (o == null ? void 0 : o.continue()) ?? Promise.resolve() | |
| } else return Promise.resolve() | |
| } | |
| clear() { | |
| Le.batch(() => { | |
| N(this, Ht).forEach(t => { | |
| this.notify({ | |
| type: "removed", | |
| mutation: t | |
| }) | |
| }), N(this, Ht).clear(), N(this, xt).clear() | |
| }) | |
| } | |
| getAll() { | |
| return Array.from(N(this, Ht)) | |
| } | |
| find(t) { | |
| const n = { | |
| exact: !0, | |
| ...t | |
| }; | |
| return this.getAll().find(r => cf(n, r)) | |
| } | |
| findAll(t = {}) { | |
| return this.getAll().filter(n => cf(t, n)) | |
| } | |
| notify(t) { | |
| Le.batch(() => { | |
| this.listeners.forEach(n => { | |
| n(t) | |
| }) | |
| }) | |
| } | |
| resumePausedMutations() { | |
| const t = this.getAll().filter(n => n.state.isPaused); | |
| return Le.batch(() => Promise.all(t.map(n => n.continue().catch(gt)))) | |
| } | |
| }, Ht = new WeakMap, xt = new WeakMap, ui = new WeakMap, Rf); | |
| function Vi(e) { | |
| var t; | |
| return (t = e.options.scope) == null ? void 0 : t.id | |
| } | |
| function pf(e) { | |
| return { | |
| onFetch: (t, n) => { | |
| var c, f, m, d, x; | |
| const r = t.options, | |
| o = (m = (f = (c = t.fetchOptions) == null ? void 0 : c.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : m.direction, | |
| i = ((d = t.state.data) == null ? void 0 : d.pages) || [], | |
| s = ((x = t.state.data) == null ? void 0 : x.pageParams) || []; | |
| let l = { | |
| pages: [], | |
| pageParams: [] | |
| }, | |
| a = 0; | |
| const u = async () => { | |
| let y = !1; | |
| const w = v => { | |
| Object.defineProperty(v, "signal", { | |
| enumerable: !0, | |
| get: () => (t.signal.aborted ? y = !0 : t.signal.addEventListener("abort", () => { | |
| y = !0 | |
| }), t.signal) | |
| }) | |
| }, | |
| h = dg(t.options, t.fetchOptions), | |
| p = async (v, k, C) => { | |
| if (y) return Promise.reject(); | |
| if (k == null && v.pages.length) return Promise.resolve(v); | |
| const b = (() => { | |
| const z = { | |
| client: t.client, | |
| queryKey: t.queryKey, | |
| pageParam: k, | |
| direction: C ? "backward" : "forward", | |
| meta: t.options.meta | |
| }; | |
| return w(z), z | |
| })(), | |
| R = await h(b), | |
| { | |
| maxPages: O | |
| } = t.options, | |
| A = C ? IS : DS; | |
| return { | |
| pages: A(v.pages, R, O), | |
| pageParams: A(v.pageParams, k, O) | |
| } | |
| }; | |
| if (o && i.length) { | |
| const v = o === "backward", | |
| k = v ? qS : hf, | |
| C = { | |
| pages: i, | |
| pageParams: s | |
| }, | |
| E = k(r, C); | |
| l = await p(C, E, v) | |
| } else { | |
| const v = e ?? i.length; | |
| do { | |
| const k = a === 0 ? s[0] ?? r.initialPageParam : hf(r, l); | |
| if (a > 0 && k == null) break; | |
| l = await p(l, k), a++ | |
| } while (a < v) | |
| } | |
| return l | |
| }; | |
| t.options.persister ? t.fetchFn = () => { | |
| var y, w; | |
| return (w = (y = t.options).persister) == null ? void 0 : w.call(y, u, { | |
| client: t.client, | |
| queryKey: t.queryKey, | |
| meta: t.options.meta, | |
| signal: t.signal | |
| }, n) | |
| } : t.fetchFn = u | |
| } | |
| } | |
| } | |
| function hf(e, { | |
| pages: t, | |
| pageParams: n | |
| }) { | |
| const r = t.length - 1; | |
| return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0 | |
| } | |
| function qS(e, { | |
| pages: t, | |
| pageParams: n | |
| }) { | |
| var r; | |
| return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0 | |
| } | |
| var de, xn, wn, Kr, Gr, Sn, Yr, Xr, jf, ZS = (jf = class { | |
| constructor(e = {}) { | |
| Z(this, de); | |
| Z(this, xn); | |
| Z(this, wn); | |
| Z(this, Kr); | |
| Z(this, Gr); | |
| Z(this, Sn); | |
| Z(this, Yr); | |
| Z(this, Xr); | |
| B(this, de, e.queryCache || new KS), B(this, xn, e.mutationCache || new XS), B(this, wn, e.defaultOptions || {}), B(this, Kr, new Map), B(this, Gr, new Map), B(this, Sn, 0) | |
| } | |
| mount() { | |
| Si(this, Sn)._++, N(this, Sn) === 1 && (B(this, Yr, fg.subscribe(async e => { | |
| e && (await this.resumePausedMutations(), N(this, de).onFocus()) | |
| })), B(this, Xr, Ds.subscribe(async e => { | |
| e && (await this.resumePausedMutations(), N(this, de).onOnline()) | |
| }))) | |
| } | |
| unmount() { | |
| var e, t; | |
| Si(this, Sn)._--, N(this, Sn) === 0 && ((e = N(this, Yr)) == null || e.call(this), B(this, Yr, void 0), (t = N(this, Xr)) == null || t.call(this), B(this, Xr, void 0)) | |
| } | |
| isFetching(e) { | |
| return N(this, de).findAll({ ...e, | |
| fetchStatus: "fetching" | |
| }).length | |
| } | |
| isMutating(e) { | |
| return N(this, xn).findAll({ ...e, | |
| status: "pending" | |
| }).length | |
| } | |
| getQueryData(e) { | |
| var n; | |
| const t = this.defaultQueryOptions({ | |
| queryKey: e | |
| }); | |
| return (n = N(this, de).get(t.queryHash)) == null ? void 0 : n.state.data | |
| } | |
| ensureQueryData(e) { | |
| const t = this.defaultQueryOptions(e), | |
| n = N(this, de).build(this, t), | |
| r = n.state.data; | |
| return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(nu(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r)) | |
| } | |
| getQueriesData(e) { | |
| return N(this, de).findAll(e).map(({ | |
| queryKey: t, | |
| state: n | |
| }) => { | |
| const r = n.data; | |
| return [t, r] | |
| }) | |
| } | |
| setQueryData(e, t, n) { | |
| const r = this.defaultQueryOptions({ | |
| queryKey: e | |
| }), | |
| o = N(this, de).get(r.queryHash), | |
| i = o == null ? void 0 : o.state.data, | |
| s = jS(t, i); | |
| if (s !== void 0) return N(this, de).build(this, r).setData(s, { ...n, | |
| manual: !0 | |
| }) | |
| } | |
| setQueriesData(e, t, n) { | |
| return Le.batch(() => N(this, de).findAll(e).map(({ | |
| queryKey: r | |
| }) => [r, this.setQueryData(r, t, n)])) | |
| } | |
| getQueryState(e) { | |
| var n; | |
| const t = this.defaultQueryOptions({ | |
| queryKey: e | |
| }); | |
| return (n = N(this, de).get(t.queryHash)) == null ? void 0 : n.state | |
| } | |
| removeQueries(e) { | |
| const t = N(this, de); | |
| Le.batch(() => { | |
| t.findAll(e).forEach(n => { | |
| t.remove(n) | |
| }) | |
| }) | |
| } | |
| resetQueries(e, t) { | |
| const n = N(this, de); | |
| return Le.batch(() => (n.findAll(e).forEach(r => { | |
| r.reset() | |
| }), this.refetchQueries({ | |
| type: "active", | |
| ...e | |
| }, t))) | |
| } | |
| cancelQueries(e, t = {}) { | |
| const n = { | |
| revert: !0, | |
| ...t | |
| }, | |
| r = Le.batch(() => N(this, de).findAll(e).map(o => o.cancel(n))); | |
| return Promise.all(r).then(gt).catch(gt) | |
| } | |
| invalidateQueries(e, t = {}) { | |
| return Le.batch(() => (N(this, de).findAll(e).forEach(n => { | |
| n.invalidate() | |
| }), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries({ ...e, | |
| type: (e == null ? void 0 : e.refetchType) ?? (e == null ? void 0 : e.type) ?? "active" | |
| }, t))) | |
| } | |
| refetchQueries(e, t = {}) { | |
| const n = { ...t, | |
| cancelRefetch: t.cancelRefetch ?? !0 | |
| }, | |
| r = Le.batch(() => N(this, de).findAll(e).filter(o => !o.isDisabled() && !o.isStatic()).map(o => { | |
| let i = o.fetch(void 0, n); | |
| return n.throwOnError || (i = i.catch(gt)), o.state.fetchStatus === "paused" ? Promise.resolve() : i | |
| })); | |
| return Promise.all(r).then(gt) | |
| } | |
| fetchQuery(e) { | |
| const t = this.defaultQueryOptions(e); | |
| t.retry === void 0 && (t.retry = !1); | |
| const n = N(this, de).build(this, t); | |
| return n.isStaleByTime(nu(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data) | |
| } | |
| prefetchQuery(e) { | |
| return this.fetchQuery(e).then(gt).catch(gt) | |
| } | |
| fetchInfiniteQuery(e) { | |
| return e.behavior = pf(e.pages), this.fetchQuery(e) | |
| } | |
| prefetchInfiniteQuery(e) { | |
| return this.fetchInfiniteQuery(e).then(gt).catch(gt) | |
| } | |
| ensureInfiniteQueryData(e) { | |
| return e.behavior = pf(e.pages), this.ensureQueryData(e) | |
| } | |
| resumePausedMutations() { | |
| return Ds.isOnline() ? N(this, xn).resumePausedMutations() : Promise.resolve() | |
| } | |
| getQueryCache() { | |
| return N(this, de) | |
| } | |
| getMutationCache() { | |
| return N(this, xn) | |
| } | |
| getDefaultOptions() { | |
| return N(this, wn) | |
| } | |
| setDefaultOptions(e) { | |
| B(this, wn, e) | |
| } | |
| setQueryDefaults(e, t) { | |
| N(this, Kr).set(si(e), { | |
| queryKey: e, | |
| defaultOptions: t | |
| }) | |
| } | |
| getQueryDefaults(e) { | |
| const t = [...N(this, Kr).values()], | |
| n = {}; | |
| return t.forEach(r => { | |
| li(e, r.queryKey) && Object.assign(n, r.defaultOptions) | |
| }), n | |
| } | |
| setMutationDefaults(e, t) { | |
| N(this, Gr).set(si(e), { | |
| mutationKey: e, | |
| defaultOptions: t | |
| }) | |
| } | |
| getMutationDefaults(e) { | |
| const t = [...N(this, Gr).values()], | |
| n = {}; | |
| return t.forEach(r => { | |
| li(e, r.mutationKey) && Object.assign(n, r.defaultOptions) | |
| }), n | |
| } | |
| defaultQueryOptions(e) { | |
| if (e._defaulted) return e; | |
| const t = { ...N(this, wn).queries, | |
| ...this.getQueryDefaults(e.queryKey), | |
| ...e, | |
| _defaulted: !0 | |
| }; | |
| return t.queryHash || (t.queryHash = xc(t.queryKey, t)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === wc && (t.enabled = !1), t | |
| } | |
| defaultMutationOptions(e) { | |
| return e != null && e._defaulted ? e : { ...N(this, wn).mutations, | |
| ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey), | |
| ...e, | |
| _defaulted: !0 | |
| } | |
| } | |
| clear() { | |
| N(this, de).clear(), N(this, xn).clear() | |
| } | |
| }, de = new WeakMap, xn = new WeakMap, wn = new WeakMap, Kr = new WeakMap, Gr = new WeakMap, Sn = new WeakMap, Yr = new WeakMap, Xr = new WeakMap, jf), | |
| JS = S.createContext(void 0), | |
| ek = ({ | |
| client: e, | |
| children: t | |
| }) => (S.useEffect(() => (e.mount(), () => { | |
| e.unmount() | |
| }), [e]), g.jsx(JS.Provider, { | |
| value: e, | |
| children: t | |
| })); | |
| /** | |
| * @remix-run/router v1.23.0 | |
| * | |
| * Copyright (c) Remix Software Inc. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE.md file in the root directory of this source tree. | |
| * | |
| * @license MIT | |
| */ | |
| function Is() { | |
| return Is = Object.assign ? Object.assign.bind() : function(e) { | |
| for (var t = 1; t < arguments.length; t++) { | |
| var n = arguments[t]; | |
| for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) | |
| } | |
| return e | |
| }, Is.apply(this, arguments) | |
| } | |
| var En; | |
| (function(e) { | |
| e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE" | |
| })(En || (En = {})); | |
| const mf = "popstate"; | |
| function tk(e) { | |
| e === void 0 && (e = {}); | |
| function t(r, o) { | |
| let { | |
| pathname: i, | |
| search: s, | |
| hash: l | |
| } = r.location; | |
| return ou("", { | |
| pathname: i, | |
| search: s, | |
| hash: l | |
| }, o.state && o.state.usr || null, o.state && o.state.key || "default") | |
| } | |
| function n(r, o) { | |
| return typeof o == "string" ? o : vg(o) | |
| } | |
| return rk(t, n, null, e) | |
| } | |
| function Qe(e, t) { | |
| if (e === !1 || e === null || typeof e > "u") throw new Error(t) | |
| } | |
| function yg(e, t) { | |
| if (!e) { | |
| typeof console < "u" && console.warn(t); | |
| try { | |
| throw new Error(t) | |
| } catch {} | |
| } | |
| } | |
| function nk() { | |
| return Math.random().toString(36).substr(2, 8) | |
| } | |
| function gf(e, t) { | |
| return { | |
| usr: e.state, | |
| key: e.key, | |
| idx: t | |
| } | |
| } | |
| function ou(e, t, n, r) { | |
| return n === void 0 && (n = null), Is({ | |
| pathname: typeof e == "string" ? e : e.pathname, | |
| search: "", | |
| hash: "" | |
| }, typeof t == "string" ? fl(t) : t, { | |
| state: n, | |
| key: t && t.key || r || nk() | |
| }) | |
| } | |
| function vg(e) { | |
| let { | |
| pathname: t = "/", | |
| search: n = "", | |
| hash: r = "" | |
| } = e; | |
| return n && n !== "?" && (t += n.charAt(0) === "?" ? n : "?" + n), r && r !== "#" && (t += r.charAt(0) === "#" ? r : "#" + r), t | |
| } | |
| function fl(e) { | |
| let t = {}; | |
| if (e) { | |
| let n = e.indexOf("#"); | |
| n >= 0 && (t.hash = e.substr(n), e = e.substr(0, n)); | |
| let r = e.indexOf("?"); | |
| r >= 0 && (t.search = e.substr(r), e = e.substr(0, r)), e && (t.pathname = e) | |
| } | |
| return t | |
| } | |
| function rk(e, t, n, r) { | |
| r === void 0 && (r = {}); | |
| let { | |
| window: o = document.defaultView, | |
| v5Compat: i = !1 | |
| } = r, s = o.history, l = En.Pop, a = null, u = c(); | |
| u == null && (u = 0, s.replaceState(Is({}, s.state, { | |
| idx: u | |
| }), "")); | |
| function c() { | |
| return (s.state || { | |
| idx: null | |
| }).idx | |
| } | |
| function f() { | |
| l = En.Pop; | |
| let w = c(), | |
| h = w == null ? null : w - u; | |
| u = w, a && a({ | |
| action: l, | |
| location: y.location, | |
| delta: h | |
| }) | |
| } | |
| function m(w, h) { | |
| l = En.Push; | |
| let p = ou(y.location, w, h); | |
| u = c() + 1; | |
| let v = gf(p, u), | |
| k = y.createHref(p); | |
| try { | |
| s.pushState(v, "", k) | |
| } catch (C) { | |
| if (C instanceof DOMException && C.name === "DataCloneError") throw C; | |
| o.location.assign(k) | |
| } | |
| i && a && a({ | |
| action: l, | |
| location: y.location, | |
| delta: 1 | |
| }) | |
| } | |
| function d(w, h) { | |
| l = En.Replace; | |
| let p = ou(y.location, w, h); | |
| u = c(); | |
| let v = gf(p, u), | |
| k = y.createHref(p); | |
| s.replaceState(v, "", k), i && a && a({ | |
| action: l, | |
| location: y.location, | |
| delta: 0 | |
| }) | |
| } | |
| function x(w) { | |
| let h = o.location.origin !== "null" ? o.location.origin : o.location.href, | |
| p = typeof w == "string" ? w : vg(w); | |
| return p = p.replace(/ $/, "%20"), Qe(h, "No window.location.(origin|href) available to create URL for href: " + p), new URL(p, h) | |
| } | |
| let y = { | |
| get action() { | |
| return l | |
| }, | |
| get location() { | |
| return e(o, s) | |
| }, | |
| listen(w) { | |
| if (a) throw new Error("A history only accepts one active listener"); | |
| return o.addEventListener(mf, f), a = w, () => { | |
| o.removeEventListener(mf, f), a = null | |
| } | |
| }, | |
| createHref(w) { | |
| return t(o, w) | |
| }, | |
| createURL: x, | |
| encodeLocation(w) { | |
| let h = x(w); | |
| return { | |
| pathname: h.pathname, | |
| search: h.search, | |
| hash: h.hash | |
| } | |
| }, | |
| push: m, | |
| replace: d, | |
| go(w) { | |
| return s.go(w) | |
| } | |
| }; | |
| return y | |
| } | |
| var yf; | |
| (function(e) { | |
| e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error" | |
| })(yf || (yf = {})); | |
| function ok(e, t, n) { | |
| return n === void 0 && (n = "/"), ik(e, t, n, !1) | |
| } | |
| function ik(e, t, n, r) { | |
| let o = typeof t == "string" ? fl(t) : t, | |
| i = Sg(o.pathname || "/", n); | |
| if (i == null) return null; | |
| let s = xg(e); | |
| sk(s); | |
| let l = null; | |
| for (let a = 0; l == null && a < s.length; ++a) { | |
| let u = yk(i); | |
| l = mk(s[a], u, r) | |
| } | |
| return l | |
| } | |
| function xg(e, t, n, r) { | |
| t === void 0 && (t = []), n === void 0 && (n = []), r === void 0 && (r = ""); | |
| let o = (i, s, l) => { | |
| let a = { | |
| relativePath: l === void 0 ? i.path || "" : l, | |
| caseSensitive: i.caseSensitive === !0, | |
| childrenIndex: s, | |
| route: i | |
| }; | |
| a.relativePath.startsWith("/") && (Qe(a.relativePath.startsWith(r), 'Absolute route path "' + a.relativePath + '" nested under path ' + ('"' + r + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), a.relativePath = a.relativePath.slice(r.length)); | |
| let u = Br([r, a.relativePath]), | |
| c = n.concat(a); | |
| i.children && i.children.length > 0 && (Qe(i.index !== !0, "Index routes must not have child routes. Please remove " + ('all child routes from route path "' + u + '".')), xg(i.children, t, c, u)), !(i.path == null && !i.index) && t.push({ | |
| path: u, | |
| score: pk(u, i.index), | |
| routesMeta: c | |
| }) | |
| }; | |
| return e.forEach((i, s) => { | |
| var l; | |
| if (i.path === "" || !((l = i.path) != null && l.includes("?"))) o(i, s); | |
| else | |
| for (let a of wg(i.path)) o(i, s, a) | |
| }), t | |
| } | |
| function wg(e) { | |
| let t = e.split("/"); | |
| if (t.length === 0) return []; | |
| let [n, ...r] = t, o = n.endsWith("?"), i = n.replace(/\?$/, ""); | |
| if (r.length === 0) return o ? [i, ""] : [i]; | |
| let s = wg(r.join("/")), | |
| l = []; | |
| return l.push(...s.map(a => a === "" ? i : [i, a].join("/"))), o && l.push(...s), l.map(a => e.startsWith("/") && a === "" ? "/" : a) | |
| } | |
| function sk(e) { | |
| e.sort((t, n) => t.score !== n.score ? n.score - t.score : hk(t.routesMeta.map(r => r.childrenIndex), n.routesMeta.map(r => r.childrenIndex))) | |
| } | |
| const lk = /^:[\w-]+$/, | |
| ak = 3, | |
| uk = 2, | |
| ck = 1, | |
| dk = 10, | |
| fk = -2, | |
| vf = e => e === "*"; | |
| function pk(e, t) { | |
| let n = e.split("/"), | |
| r = n.length; | |
| return n.some(vf) && (r += fk), t && (r += uk), n.filter(o => !vf(o)).reduce((o, i) => o + (lk.test(i) ? ak : i === "" ? ck : dk), r) | |
| } | |
| function hk(e, t) { | |
| return e.length === t.length && e.slice(0, -1).every((r, o) => r === t[o]) ? e[e.length - 1] - t[t.length - 1] : 0 | |
| } | |
| function mk(e, t, n) { | |
| let { | |
| routesMeta: r | |
| } = e, o = {}, i = "/", s = []; | |
| for (let l = 0; l < r.length; ++l) { | |
| let a = r[l], | |
| u = l === r.length - 1, | |
| c = i === "/" ? t : t.slice(i.length) || "/", | |
| f = xf({ | |
| path: a.relativePath, | |
| caseSensitive: a.caseSensitive, | |
| end: u | |
| }, c), | |
| m = a.route; | |
| if (!f && u && n && !r[r.length - 1].route.index && (f = xf({ | |
| path: a.relativePath, | |
| caseSensitive: a.caseSensitive, | |
| end: !1 | |
| }, c)), !f) return null; | |
| Object.assign(o, f.params), s.push({ | |
| params: o, | |
| pathname: Br([i, f.pathname]), | |
| pathnameBase: vk(Br([i, f.pathnameBase])), | |
| route: m | |
| }), f.pathnameBase !== "/" && (i = Br([i, f.pathnameBase])) | |
| } | |
| return s | |
| } | |
| function xf(e, t) { | |
| typeof e == "string" && (e = { | |
| path: e, | |
| caseSensitive: !1, | |
| end: !0 | |
| }); | |
| let [n, r] = gk(e.path, e.caseSensitive, e.end), o = t.match(n); | |
| if (!o) return null; | |
| let i = o[0], | |
| s = i.replace(/(.)\/+$/, "$1"), | |
| l = o.slice(1); | |
| return { | |
| params: r.reduce((u, c, f) => { | |
| let { | |
| paramName: m, | |
| isOptional: d | |
| } = c; | |
| if (m === "*") { | |
| let y = l[f] || ""; | |
| s = i.slice(0, i.length - y.length).replace(/(.)\/+$/, "$1") | |
| } | |
| const x = l[f]; | |
| return d && !x ? u[m] = void 0 : u[m] = (x || "").replace(/%2F/g, "/"), u | |
| }, {}), | |
| pathname: i, | |
| pathnameBase: s, | |
| pattern: e | |
| } | |
| } | |
| function gk(e, t, n) { | |
| t === void 0 && (t = !1), n === void 0 && (n = !0), yg(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".')); | |
| let r = [], | |
| o = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (s, l, a) => (r.push({ | |
| paramName: l, | |
| isOptional: a != null | |
| }), a ? "/?([^\\/]+)?" : "/([^\\/]+)")); | |
| return e.endsWith("*") ? (r.push({ | |
| paramName: "*" | |
| }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, t ? void 0 : "i"), r] | |
| } | |
| function yk(e) { | |
| try { | |
| return e.split("/").map(t => decodeURIComponent(t).replace(/\//g, "%2F")).join("/") | |
| } catch (t) { | |
| return yg(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + t + ").")), e | |
| } | |
| } | |
| function Sg(e, t) { | |
| if (t === "/") return e; | |
| if (!e.toLowerCase().startsWith(t.toLowerCase())) return null; | |
| let n = t.endsWith("/") ? t.length - 1 : t.length, | |
| r = e.charAt(n); | |
| return r && r !== "/" ? null : e.slice(n) || "/" | |
| } | |
| const Br = e => e.join("/").replace(/\/\/+/g, "/"), | |
| vk = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"); | |
| function xk(e) { | |
| return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e | |
| } | |
| const kg = ["post", "put", "patch", "delete"]; | |
| new Set(kg); | |
| const wk = ["get", ...kg]; | |
| new Set(wk); | |
| /** | |
| * React Router v6.30.1 | |
| * | |
| * Copyright (c) Remix Software Inc. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE.md file in the root directory of this source tree. | |
| * | |
| * @license MIT | |
| */ | |
| function Fs() { | |
| return Fs = Object.assign ? Object.assign.bind() : function(e) { | |
| for (var t = 1; t < arguments.length; t++) { | |
| var n = arguments[t]; | |
| for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) | |
| } | |
| return e | |
| }, Fs.apply(this, arguments) | |
| } | |
| const Sk = S.createContext(null), | |
| kk = S.createContext(null), | |
| Cg = S.createContext(null), | |
| pl = S.createContext(null), | |
| hl = S.createContext({ | |
| outlet: null, | |
| matches: [], | |
| isDataRoute: !1 | |
| }), | |
| Eg = S.createContext(null); | |
| function Sc() { | |
| return S.useContext(pl) != null | |
| } | |
| function bg() { | |
| return Sc() || Qe(!1), S.useContext(pl).location | |
| } | |
| function Ck(e, t) { | |
| return Ek(e, t) | |
| } | |
| function Ek(e, t, n, r) { | |
| Sc() || Qe(!1); | |
| let { | |
| navigator: o | |
| } = S.useContext(Cg), { | |
| matches: i | |
| } = S.useContext(hl), s = i[i.length - 1], l = s ? s.params : {}; | |
| s && s.pathname; | |
| let a = s ? s.pathnameBase : "/"; | |
| s && s.route; | |
| let u = bg(), | |
| c; | |
| if (t) { | |
| var f; | |
| let w = typeof t == "string" ? fl(t) : t; | |
| a === "/" || (f = w.pathname) != null && f.startsWith(a) || Qe(!1), c = w | |
| } else c = u; | |
| let m = c.pathname || "/", | |
| d = m; | |
| if (a !== "/") { | |
| let w = a.replace(/^\//, "").split("/"); | |
| d = "/" + m.replace(/^\//, "").split("/").slice(w.length).join("/") | |
| } | |
| let x = ok(e, { | |
| pathname: d | |
| }), | |
| y = Rk(x && x.map(w => Object.assign({}, w, { | |
| params: Object.assign({}, l, w.params), | |
| pathname: Br([a, o.encodeLocation ? o.encodeLocation(w.pathname).pathname : w.pathname]), | |
| pathnameBase: w.pathnameBase === "/" ? a : Br([a, o.encodeLocation ? o.encodeLocation(w.pathnameBase).pathname : w.pathnameBase]) | |
| })), i, n, r); | |
| return t && y ? S.createElement(pl.Provider, { | |
| value: { | |
| location: Fs({ | |
| pathname: "/", | |
| search: "", | |
| hash: "", | |
| state: null, | |
| key: "default" | |
| }, c), | |
| navigationType: En.Pop | |
| } | |
| }, y) : y | |
| } | |
| function bk() { | |
| let e = Ok(), | |
| t = xk(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), | |
| n = e instanceof Error ? e.stack : null, | |
| o = { | |
| padding: "0.5rem", | |
| backgroundColor: "rgba(200,200,200, 0.5)" | |
| }; | |
| return S.createElement(S.Fragment, null, S.createElement("h2", null, "Unexpected Application Error!"), S.createElement("h3", { | |
| style: { | |
| fontStyle: "italic" | |
| } | |
| }, t), n ? S.createElement("pre", { | |
| style: o | |
| }, n) : null, null) | |
| } | |
| const Nk = S.createElement(bk, null); | |
| class Pk extends S.Component { | |
| constructor(t) { | |
| super(t), this.state = { | |
| location: t.location, | |
| revalidation: t.revalidation, | |
| error: t.error | |
| } | |
| } | |
| static getDerivedStateFromError(t) { | |
| return { | |
| error: t | |
| } | |
| } | |
| static getDerivedStateFromProps(t, n) { | |
| return n.location !== t.location || n.revalidation !== "idle" && t.revalidation === "idle" ? { | |
| error: t.error, | |
| location: t.location, | |
| revalidation: t.revalidation | |
| } : { | |
| error: t.error !== void 0 ? t.error : n.error, | |
| location: n.location, | |
| revalidation: t.revalidation || n.revalidation | |
| } | |
| } | |
| componentDidCatch(t, n) { | |
| console.error("React Router caught the following error during render", t, n) | |
| } | |
| render() { | |
| return this.state.error !== void 0 ? S.createElement(hl.Provider, { | |
| value: this.props.routeContext | |
| }, S.createElement(Eg.Provider, { | |
| value: this.state.error, | |
| children: this.props.component | |
| })) : this.props.children | |
| } | |
| } | |
| function Tk(e) { | |
| let { | |
| routeContext: t, | |
| match: n, | |
| children: r | |
| } = e, o = S.useContext(Sk); | |
| return o && o.static && o.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = n.route.id), S.createElement(hl.Provider, { | |
| value: t | |
| }, r) | |
| } | |
| function Rk(e, t, n, r) { | |
| var o; | |
| if (t === void 0 && (t = []), n === void 0 && (n = null), r === void 0 && (r = null), e == null) { | |
| var i; | |
| if (!n) return null; | |
| if (n.errors) e = n.matches; | |
| else if ((i = r) != null && i.v7_partialHydration && t.length === 0 && !n.initialized && n.matches.length > 0) e = n.matches; | |
| else return null | |
| } | |
| let s = e, | |
| l = (o = n) == null ? void 0 : o.errors; | |
| if (l != null) { | |
| let c = s.findIndex(f => f.route.id && (l == null ? void 0 : l[f.route.id]) !== void 0); | |
| c >= 0 || Qe(!1), s = s.slice(0, Math.min(s.length, c + 1)) | |
| } | |
| let a = !1, | |
| u = -1; | |
| if (n && r && r.v7_partialHydration) | |
| for (let c = 0; c < s.length; c++) { | |
| let f = s[c]; | |
| if ((f.route.HydrateFallback || f.route.hydrateFallbackElement) && (u = c), f.route.id) { | |
| let { | |
| loaderData: m, | |
| errors: d | |
| } = n, x = f.route.loader && m[f.route.id] === void 0 && (!d || d[f.route.id] === void 0); | |
| if (f.route.lazy || x) { | |
| a = !0, u >= 0 ? s = s.slice(0, u + 1) : s = [s[0]]; | |
| break | |
| } | |
| } | |
| } | |
| return s.reduceRight((c, f, m) => { | |
| let d, x = !1, | |
| y = null, | |
| w = null; | |
| n && (d = l && f.route.id ? l[f.route.id] : void 0, y = f.route.errorElement || Nk, a && (u < 0 && m === 0 ? (x = !0, w = null) : u === m && (x = !0, w = f.route.hydrateFallbackElement || null))); | |
| let h = t.concat(s.slice(0, m + 1)), | |
| p = () => { | |
| let v; | |
| return d ? v = y : x ? v = w : f.route.Component ? v = S.createElement(f.route.Component, null) : f.route.element ? v = f.route.element : v = c, S.createElement(Tk, { | |
| match: f, | |
| routeContext: { | |
| outlet: c, | |
| matches: h, | |
| isDataRoute: n != null | |
| }, | |
| children: v | |
| }) | |
| }; | |
| return n && (f.route.ErrorBoundary || f.route.errorElement || m === 0) ? S.createElement(Pk, { | |
| location: n.location, | |
| revalidation: n.revalidation, | |
| component: y, | |
| error: d, | |
| children: p(), | |
| routeContext: { | |
| outlet: null, | |
| matches: h, | |
| isDataRoute: !0 | |
| } | |
| }) : p() | |
| }, null) | |
| } | |
| var iu = function(e) { | |
| return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e | |
| }(iu || {}); | |
| function jk(e) { | |
| let t = S.useContext(kk); | |
| return t || Qe(!1), t | |
| } | |
| function _k(e) { | |
| let t = S.useContext(hl); | |
| return t || Qe(!1), t | |
| } | |
| function Ak(e) { | |
| let t = _k(), | |
| n = t.matches[t.matches.length - 1]; | |
| return n.route.id || Qe(!1), n.route.id | |
| } | |
| function Ok() { | |
| var e; | |
| let t = S.useContext(Eg), | |
| n = jk(iu.UseRouteError), | |
| r = Ak(iu.UseRouteError); | |
| return t !== void 0 ? t : (e = n.errors) == null ? void 0 : e[r] | |
| } | |
| function Mk(e, t) { | |
| e == null || e.v7_startTransition, e == null || e.v7_relativeSplatPath | |
| } | |
| function su(e) { | |
| Qe(!1) | |
| } | |
| function Lk(e) { | |
| let { | |
| basename: t = "/", | |
| children: n = null, | |
| location: r, | |
| navigationType: o = En.Pop, | |
| navigator: i, | |
| static: s = !1, | |
| future: l | |
| } = e; | |
| Sc() && Qe(!1); | |
| let a = t.replace(/^\/*/, "/"), | |
| u = S.useMemo(() => ({ | |
| basename: a, | |
| navigator: i, | |
| static: s, | |
| future: Fs({ | |
| v7_relativeSplatPath: !1 | |
| }, l) | |
| }), [a, l, i, s]); | |
| typeof r == "string" && (r = fl(r)); | |
| let { | |
| pathname: c = "/", | |
| search: f = "", | |
| hash: m = "", | |
| state: d = null, | |
| key: x = "default" | |
| } = r, y = S.useMemo(() => { | |
| let w = Sg(c, a); | |
| return w == null ? null : { | |
| location: { | |
| pathname: w, | |
| search: f, | |
| hash: m, | |
| state: d, | |
| key: x | |
| }, | |
| navigationType: o | |
| } | |
| }, [a, c, f, m, d, x, o]); | |
| return y == null ? null : S.createElement(Cg.Provider, { | |
| value: u | |
| }, S.createElement(pl.Provider, { | |
| children: n, | |
| value: y | |
| })) | |
| } | |
| function Dk(e) { | |
| let { | |
| children: t, | |
| location: n | |
| } = e; | |
| return Ck(lu(t), n) | |
| } | |
| new Promise(() => {}); | |
| function lu(e, t) { | |
| t === void 0 && (t = []); | |
| let n = []; | |
| return S.Children.forEach(e, (r, o) => { | |
| if (!S.isValidElement(r)) return; | |
| let i = [...t, o]; | |
| if (r.type === S.Fragment) { | |
| n.push.apply(n, lu(r.props.children, i)); | |
| return | |
| } | |
| r.type !== su && Qe(!1), !r.props.index || !r.props.children || Qe(!1); | |
| let s = { | |
| id: r.props.id || i.join("-"), | |
| caseSensitive: r.props.caseSensitive, | |
| element: r.props.element, | |
| Component: r.props.Component, | |
| index: r.props.index, | |
| path: r.props.path, | |
| loader: r.props.loader, | |
| action: r.props.action, | |
| errorElement: r.props.errorElement, | |
| ErrorBoundary: r.props.ErrorBoundary, | |
| hasErrorBoundary: r.props.ErrorBoundary != null || r.props.errorElement != null, | |
| shouldRevalidate: r.props.shouldRevalidate, | |
| handle: r.props.handle, | |
| lazy: r.props.lazy | |
| }; | |
| r.props.children && (s.children = lu(r.props.children, i)), n.push(s) | |
| }), n | |
| } | |
| /** | |
| * React Router DOM v6.30.1 | |
| * | |
| * Copyright (c) Remix Software Inc. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE.md file in the root directory of this source tree. | |
| * | |
| * @license MIT | |
| */ | |
| const Ik = "6"; | |
| try { | |
| window.__reactRouterVersion = Ik | |
| } catch {} | |
| const Fk = "startTransition", | |
| wf = Bf[Fk]; | |
| function zk(e) { | |
| let { | |
| basename: t, | |
| children: n, | |
| future: r, | |
| window: o | |
| } = e, i = S.useRef(); | |
| i.current == null && (i.current = tk({ | |
| window: o, | |
| v5Compat: !0 | |
| })); | |
| let s = i.current, | |
| [l, a] = S.useState({ | |
| action: s.action, | |
| location: s.location | |
| }), | |
| { | |
| v7_startTransition: u | |
| } = r || {}, | |
| c = S.useCallback(f => { | |
| u && wf ? wf(() => a(f)) : a(f) | |
| }, [a, u]); | |
| return S.useLayoutEffect(() => s.listen(c), [s, c]), S.useEffect(() => Mk(r), [r]), S.createElement(Lk, { | |
| basename: t, | |
| children: n, | |
| location: l.location, | |
| navigationType: l.action, | |
| navigator: s, | |
| future: r | |
| }) | |
| } | |
| var Sf; | |
| (function(e) { | |
| e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState" | |
| })(Sf || (Sf = {})); | |
| var kf; | |
| (function(e) { | |
| e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration" | |
| })(kf || (kf = {})); | |
| const $k = { | |
| theme: "system", | |
| setTheme: () => null | |
| }, | |
| Ng = S.createContext($k); | |
| function Uk({ | |
| children: e, | |
| defaultTheme: t = "system", | |
| storageKey: n = "vite-ui-theme", | |
| ...r | |
| }) { | |
| const [o, i] = S.useState(() => localStorage.getItem(n) || t); | |
| S.useEffect(() => { | |
| const l = window.document.documentElement; | |
| if (l.classList.remove("light", "dark"), o === "system") { | |
| const a = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; | |
| l.classList.add(a); | |
| return | |
| } | |
| l.classList.add(o) | |
| }, [o]); | |
| const s = { | |
| theme: o, | |
| setTheme: l => { | |
| localStorage.setItem(n, l), i(l) | |
| } | |
| }; | |
| return g.jsx(Ng.Provider, { ...r, | |
| value: s, | |
| children: e | |
| }) | |
| } | |
| const Bk = () => { | |
| const e = S.useContext(Ng); | |
| if (e === void 0) throw new Error("useTheme must be used within a ThemeProvider"); | |
| return e | |
| }; /*! js-cookie v3.0.5 | MIT */ | |
| function Hi(e) { | |
| for (var t = 1; t < arguments.length; t++) { | |
| var n = arguments[t]; | |
| for (var r in n) e[r] = n[r] | |
| } | |
| return e | |
| } | |
| var Wk = { | |
| read: function(e) { | |
| return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) | |
| }, | |
| write: function(e) { | |
| return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent) | |
| } | |
| }; | |
| function au(e, t) { | |
| function n(o, i, s) { | |
| if (!(typeof document > "u")) { | |
| s = Hi({}, t, s), typeof s.expires == "number" && (s.expires = new Date(Date.now() + s.expires * 864e5)), s.expires && (s.expires = s.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape); | |
| var l = ""; | |
| for (var a in s) s[a] && (l += "; " + a, s[a] !== !0 && (l += "=" + s[a].split(";")[0])); | |
| return document.cookie = o + "=" + e.write(i, o) + l | |
| } | |
| } | |
| function r(o) { | |
| if (!(typeof document > "u" || arguments.length && !o)) { | |
| for (var i = document.cookie ? document.cookie.split("; ") : [], s = {}, l = 0; l < i.length; l++) { | |
| var a = i[l].split("="), | |
| u = a.slice(1).join("="); | |
| try { | |
| var c = decodeURIComponent(a[0]); | |
| if (s[c] = e.read(u, c), o === c) break | |
| } catch {} | |
| } | |
| return o ? s[o] : s | |
| } | |
| } | |
| return Object.create({ | |
| set: n, | |
| get: r, | |
| remove: function(o, i) { | |
| n(o, "", Hi({}, i, { | |
| expires: -1 | |
| })) | |
| }, | |
| withAttributes: function(o) { | |
| return au(this.converter, Hi({}, this.attributes, o)) | |
| }, | |
| withConverter: function(o) { | |
| return au(Hi({}, this.converter, o), this.attributes) | |
| } | |
| }, { | |
| attributes: { | |
| value: Object.freeze(t) | |
| }, | |
| converter: { | |
| value: Object.freeze(e) | |
| } | |
| }) | |
| } | |
| var Jl = au(Wk, { | |
| path: "/" | |
| }); | |
| const Vk = ol("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", { | |
| variants: { | |
| variant: { | |
| default: "bg-primary text-primary-foreground hover:bg-primary/90", | |
| destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", | |
| outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground", | |
| secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", | |
| ghost: "hover:bg-accent hover:text-accent-foreground", | |
| link: "text-primary underline-offset-4 hover:underline", | |
| rich: "bg-gradient-rich text-rich-foreground hover:shadow-rich transform hover:scale-105 transition-all duration-300", | |
| broke: "bg-gradient-broke text-broke-foreground hover:shadow-broke transform hover:scale-105 transition-all duration-300", | |
| caution: "bg-gradient-caution text-caution-foreground hover:shadow-caution transform hover:scale-105 transition-all duration-300" | |
| }, | |
| size: { | |
| default: "h-10 px-4 py-2", | |
| sm: "h-9 rounded-md px-3", | |
| lg: "h-11 rounded-md px-8", | |
| icon: "h-10 w-10" | |
| } | |
| }, | |
| defaultVariants: { | |
| variant: "default", | |
| size: "default" | |
| } | |
| }), | |
| Ye = S.forwardRef(({ | |
| className: e, | |
| variant: t, | |
| size: n, | |
| asChild: r = !1, | |
| ...o | |
| }, i) => { | |
| const s = r ? w0 : "button"; | |
| return g.jsx(s, { | |
| className: ke(Vk({ | |
| variant: t, | |
| size: n, | |
| className: e | |
| })), | |
| ref: i, | |
| ...o | |
| }) | |
| }); | |
| Ye.displayName = "Button"; | |
| const pr = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx("div", { | |
| ref: n, | |
| className: ke("rounded-lg border bg-card text-card-foreground shadow-sm", e), | |
| ...t | |
| })); | |
| pr.displayName = "Card"; | |
| const Pg = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx("div", { | |
| ref: n, | |
| className: ke("flex flex-col space-y-1.5 p-6", e), | |
| ...t | |
| })); | |
| Pg.displayName = "CardHeader"; | |
| const Tg = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx("h3", { | |
| ref: n, | |
| className: ke("text-2xl font-semibold leading-none tracking-tight", e), | |
| ...t | |
| })); | |
| Tg.displayName = "CardTitle"; | |
| const Hk = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx("p", { | |
| ref: n, | |
| className: ke("text-sm text-muted-foreground", e), | |
| ...t | |
| })); | |
| Hk.displayName = "CardDescription"; | |
| const kc = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx("div", { | |
| ref: n, | |
| className: ke("p-6 pt-0", e), | |
| ...t | |
| })); | |
| kc.displayName = "CardContent"; | |
| const Qk = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx("div", { | |
| ref: n, | |
| className: ke("flex items-center p-6 pt-0", e), | |
| ...t | |
| })); | |
| Qk.displayName = "CardFooter"; | |
| const Kk = () => { | |
| const [e, t] = S.useState(!1); | |
| S.useEffect(() => { | |
| Jl.get("cookie-consent") || t(!0) | |
| }, []); | |
| const n = () => { | |
| Jl.set("cookie-consent", "accepted", { | |
| expires: 365 | |
| }), t(!1) | |
| }, | |
| r = () => { | |
| Jl.set("cookie-consent", "declined", { | |
| expires: 365 | |
| }), t(!1) | |
| }; | |
| return e ? g.jsx("div", { | |
| className: "fixed bottom-0 left-0 right-0 z-50 p-4", | |
| children: g.jsx(pr, { | |
| className: "mx-auto max-w-4xl border-border", | |
| children: g.jsx(kc, { | |
| className: "p-4", | |
| children: g.jsxs("div", { | |
| className: "flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4", | |
| children: [g.jsxs("div", { | |
| className: "flex-1", | |
| children: [g.jsx("h3", { | |
| className: "font-semibold text-foreground mb-2", | |
| children: "Cookie Consent" | |
| }), g.jsx("p", { | |
| className: "text-sm text-muted-foreground", | |
| children: 'We use cookies to enhance your browsing experience, serve personalized ads, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.' | |
| })] | |
| }), g.jsxs("div", { | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(Ye, { | |
| variant: "outline", | |
| size: "sm", | |
| onClick: r, | |
| className: "text-sm", | |
| children: "Decline" | |
| }), g.jsx(Ye, { | |
| size: "sm", | |
| onClick: n, | |
| className: "text-sm", | |
| children: "Accept All" | |
| }), g.jsx(Ye, { | |
| variant: "ghost", | |
| size: "icon", | |
| onClick: r, | |
| "aria-label": "Close cookie banner", | |
| className: "h-8 w-8", | |
| children: g.jsx(Cm, { | |
| className: "h-4 w-4" | |
| }) | |
| })] | |
| })] | |
| }) | |
| }) | |
| }) | |
| }) : null | |
| }, | |
| Gk = () => (S.useEffect(() => { | |
| const e = { | |
| "@context": "https://schema.org", | |
| "@type": "WebApplication", | |
| name: "Am I Rich or Broke? - Financial Calculator", | |
| description: "Calculate your financial status instantly. Find out if you're rich, broke, or somewhere in between with our free financial calculator.", | |
| url: "https://amirichorbrokeapp.lovable.app", | |
| applicationCategory: "FinanceApplication", | |
| operatingSystem: "Web Browser", | |
| offers: { | |
| "@type": "Offer", | |
| price: "0", | |
| priceCurrency: "USD" | |
| }, | |
| author: { | |
| "@type": "Organization", | |
| name: "Am I Rich or Broke" | |
| }, | |
| publisher: { | |
| "@type": "Organization", | |
| name: "Am I Rich or Broke" | |
| }, | |
| featureList: ["Financial status calculation", "Income vs expenses analysis", "Richest people leaderboard", "Financial advice and tips"], | |
| screenshot: "https://storage.googleapis.com/gpt-engineer-file-uploads/yd4rHBbzRwSswu5bnzFZnE72rA62/social-images/social-1757669969322-Screenshot 2025-09-12 213909.png" | |
| }, | |
| t = document.querySelector('script[type="application/ld+json"]'); | |
| t && t.remove(); | |
| const n = document.createElement("script"); | |
| return n.type = "application/ld+json", n.textContent = JSON.stringify(e), document.head.appendChild(n), () => { | |
| const r = document.querySelector('script[type="application/ld+json"]'); | |
| r && r.remove() | |
| } | |
| }, []), null), | |
| Ro = S.forwardRef(({ | |
| className: e, | |
| type: t, | |
| ...n | |
| }, r) => g.jsx("input", { | |
| type: t, | |
| className: ke("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e), | |
| ref: r, | |
| ...n | |
| })); | |
| Ro.displayName = "Input"; | |
| var Yk = "Label", | |
| Rg = S.forwardRef((e, t) => g.jsx(ze.label, { ...e, | |
| ref: t, | |
| onMouseDown: n => { | |
| var o; | |
| n.target.closest("button, input, select, textarea") || ((o = e.onMouseDown) == null || o.call(e, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault()) | |
| } | |
| })); | |
| Rg.displayName = Yk; | |
| var jg = Rg; | |
| const Xk = ol("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), | |
| jo = S.forwardRef(({ | |
| className: e, | |
| ...t | |
| }, n) => g.jsx(jg, { | |
| ref: n, | |
| className: ke(Xk(), e), | |
| ...t | |
| })); | |
| jo.displayName = jg.displayName; | |
| const qk = e => { | |
| const t = document.createElement("script"); | |
| t.async = !0, t.src = `https://www.googletagmanager.com/gtag/js?id=${e}`, document.head.appendChild(t); | |
| const n = document.createElement("script"); | |
| n.innerHTML = ` | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag(){dataLayer.push(arguments);} | |
| gtag('js', new Date()); | |
| gtag('config', '${e}'); | |
| `, document.head.appendChild(n) | |
| }, | |
| yt = (e, t, n, r) => { | |
| typeof window < "u" && window.gtag && window.gtag("event", e, { | |
| event_category: t, | |
| event_label: n, | |
| value: r | |
| }) | |
| }, | |
| jt = { | |
| inputChange: (e, t) => { | |
| yt("input_change", "calculator", `${e}_field`, parseFloat(t) || 0) | |
| }, | |
| calculate: (e, t, n, r, o) => { | |
| yt("calculate", "calculator", "net_worth_calculation", o), yt("calculate_details", "calculator", `income_${e}_expenses_${t}_assets_${n}_liabilities_${r}`) | |
| }, | |
| resultStatus: (e, t) => { | |
| yt("result_status", "calculator", e, t) | |
| }, | |
| socialShare: (e, t, n) => { | |
| yt("social_share", "engagement", `${e}_${n}`, t) | |
| }, | |
| buttonClick: e => { | |
| yt("button_click", "interaction", e) | |
| }, | |
| adView: e => { | |
| yt("ad_view", "monetization", e) | |
| }, | |
| pageView: e => { | |
| yt("page_view", "navigation", e) | |
| } | |
| }, | |
| Zk = ({ | |
| result: e, | |
| status: t | |
| }) => { | |
| const [n, r] = S.useState(!1), o = () => `I just calculated my net worth: ${e>=0?`+$${e.toLocaleString()}`:`-$${Math.abs(e).toLocaleString()}`} ${t==="rich"?"🎉":t==="broke"?"📊":"💪"} Check your financial status too!`, i = () => window.location.origin, s = o(), l = i(), a = `${s} ${l}`, u = m => { | |
| jt.socialShare(m, e, t); | |
| const d = encodeURIComponent(s), | |
| x = encodeURIComponent(l); | |
| let y = ""; | |
| switch (m) { | |
| case "twitter": | |
| y = `https://twitter.com/intent/tweet?text=${d}&url=${x}`; | |
| break; | |
| case "facebook": | |
| y = `https://www.facebook.com/sharer/sharer.php?u=${x}"e=${d}`; | |
| break; | |
| case "linkedin": | |
| y = `https://www.linkedin.com/sharing/share-offsite/?url=${x}&summary=${d}`; | |
| break; | |
| case "whatsapp": | |
| y = `https://wa.me/?text=${encodeURIComponent(a)}`; | |
| break; | |
| default: | |
| return | |
| } | |
| window.open(y, "_blank", "width=600,height=400") | |
| }, c = async () => { | |
| jt.socialShare("copy", e, t); | |
| try { | |
| await navigator.clipboard.writeText(a), r(!0), setTimeout(() => r(!1), 2e3) | |
| } catch (m) { | |
| console.error("Failed to copy:", m) | |
| } | |
| }, f = () => { | |
| const m = "transition-all duration-300"; | |
| return t === "rich" ? `${m} bg-rich-light border-rich-border` : t === "broke" ? `${m} bg-broke-light border-broke-border` : t === "caution" ? `${m} bg-caution-light border-caution-border` : `${m} bg-card border-border` | |
| }; | |
| return g.jsxs(pr, { | |
| className: `p-6 ${f()}`, | |
| children: [g.jsxs("div", { | |
| className: "flex items-center gap-3 mb-4", | |
| children: [g.jsx("div", { | |
| className: `p-2 rounded-full ${t==="rich"?"bg-rich text-rich-foreground":t==="broke"?"bg-broke text-broke-foreground":t==="caution"?"bg-caution text-caution-foreground":"bg-primary text-primary-foreground"}`, | |
| children: g.jsx(N1, { | |
| className: "h-5 w-5" | |
| }) | |
| }), g.jsxs("div", { | |
| children: [g.jsx("h3", { | |
| className: "text-lg font-semibold", | |
| children: "Share Your Results" | |
| }), g.jsx("p", { | |
| className: "text-sm text-muted-foreground", | |
| children: "Let others know about this financial calculator" | |
| })] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "grid grid-cols-2 md:grid-cols-5 gap-3", | |
| children: [g.jsxs(Ye, { | |
| variant: "outline", | |
| size: "sm", | |
| onClick: () => u("twitter"), | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(R1, { | |
| className: "h-4 w-4" | |
| }), g.jsx("span", { | |
| className: "hidden md:inline", | |
| children: "Twitter" | |
| })] | |
| }), g.jsxs(Ye, { | |
| variant: "outline", | |
| size: "sm", | |
| onClick: () => u("facebook"), | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(w1, { | |
| className: "h-4 w-4" | |
| }), g.jsx("span", { | |
| className: "hidden md:inline", | |
| children: "Facebook" | |
| })] | |
| }), g.jsxs(Ye, { | |
| variant: "outline", | |
| size: "sm", | |
| onClick: () => u("linkedin"), | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(k1, { | |
| className: "h-4 w-4" | |
| }), g.jsx("span", { | |
| className: "hidden md:inline", | |
| children: "LinkedIn" | |
| })] | |
| }), g.jsxs(Ye, { | |
| variant: "outline", | |
| size: "sm", | |
| onClick: () => u("whatsapp"), | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(C1, { | |
| className: "h-4 w-4" | |
| }), g.jsx("span", { | |
| className: "hidden md:inline", | |
| children: "WhatsApp" | |
| })] | |
| }), g.jsxs(Ye, { | |
| variant: "outline", | |
| size: "sm", | |
| onClick: c, | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(v1, { | |
| className: "h-4 w-4" | |
| }), g.jsx("span", { | |
| className: "hidden md:inline", | |
| children: n ? "Copied!" : "Copy" | |
| })] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "mt-4 p-3 bg-muted rounded-lg", | |
| children: [g.jsx("p", { | |
| className: "text-sm text-muted-foreground mb-1", | |
| children: "Preview:" | |
| }), g.jsx("p", { | |
| className: "text-sm font-medium", | |
| children: s | |
| })] | |
| })] | |
| }) | |
| }, | |
| Jk = ol("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", { | |
| variants: { | |
| variant: { | |
| default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", | |
| secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", | |
| destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", | |
| outline: "text-foreground" | |
| } | |
| }, | |
| defaultVariants: { | |
| variant: "default" | |
| } | |
| }); | |
| function _g({ | |
| className: e, | |
| variant: t, | |
| ...n | |
| }) { | |
| return g.jsx("div", { | |
| className: ke(Jk({ | |
| variant: t | |
| }), e), | |
| ...n | |
| }) | |
| } | |
| function Kn({ | |
| className: e, | |
| ...t | |
| }) { | |
| return g.jsx("div", { | |
| className: ke("animate-pulse rounded-md bg-muted", e), | |
| ...t | |
| }) | |
| } | |
| const eC = ({ | |
| income: e, | |
| liabilities: t, | |
| result: n | |
| }) => { | |
| const [r, o] = S.useState([]), [i, s] = S.useState(!0), [l, a] = S.useState(null), u = () => { | |
| const x = (parseFloat(e) || 0) * 12, | |
| y = parseFloat(t) || 0; | |
| return x === 0 ? 0 : y / x * 100 | |
| }; | |
| S.useEffect(() => { | |
| (async () => { | |
| try { | |
| s(!0), a(null); | |
| const y = await fetch("https://api.worldbank.org/v2/country/all/indicator/GC.DOD.TOTL.GD.ZS?format=json&date=2022:2023&per_page=300", { | |
| headers: { | |
| Accept: "application/json" | |
| } | |
| }); | |
| if (!y.ok) throw new Error(`HTTP error! status: ${y.status}`); | |
| const p = ((await y.json())[1] || []).filter(C => C.value !== null && C.value > 0).reduce((C, E) => { | |
| const b = E.country.id; | |
| return (!C[b] || E.date > C[b].date) && (C[b] = E), C | |
| }, {}), | |
| k = Object.values(p).sort((C, E) => (E.value || 0) - (C.value || 0)).slice(0, 20); | |
| o(k) | |
| } catch (y) { | |
| console.error("Error fetching country debt data:", y), a("Failed to load country debt data") | |
| } finally { | |
| s(!1) | |
| } | |
| })() | |
| }, []); | |
| const c = u(), | |
| f = x => x > 100 ? "text-broke" : x > 60 ? "text-caution" : "text-rich", | |
| m = x => x > 100 ? "High Risk" : x > 60 ? "Moderate Risk" : x > 30 ? "Low Risk" : "Excellent", | |
| d = x => x > 100 ? "destructive" : x > 60 ? "secondary" : "default"; | |
| return !e || !t || n === null ? null : g.jsxs(pr, { | |
| className: "p-6", | |
| children: [g.jsxs("div", { | |
| className: "flex items-center gap-3 mb-6", | |
| children: [g.jsx("div", { | |
| className: "bg-primary/10 p-2 rounded-lg", | |
| children: g.jsx(S1, { | |
| className: "h-6 w-6 text-primary" | |
| }) | |
| }), g.jsxs("div", { | |
| children: [g.jsx("h3", { | |
| className: "text-xl font-bold", | |
| children: "Debt-to-GDP Comparison" | |
| }), g.jsx("p", { | |
| className: "text-sm text-muted-foreground", | |
| children: "See how your debt ratio compares to countries worldwide" | |
| })] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "bg-muted/30 rounded-lg p-4 mb-6", | |
| children: [g.jsxs("div", { | |
| className: "flex items-center justify-between mb-2", | |
| children: [g.jsx("span", { | |
| className: "text-sm font-medium", | |
| children: "Your Personal Debt-to-GDP Ratio" | |
| }), g.jsx(_g, { | |
| variant: d(c), | |
| children: m(c) | |
| })] | |
| }), g.jsxs("div", { | |
| className: `text-3xl font-bold ${f(c)}`, | |
| children: [c.toFixed(1), "%"] | |
| }), g.jsxs("p", { | |
| className: "text-xs text-muted-foreground mt-1", | |
| children: ["Total debt ($", parseFloat(t).toLocaleString(), ") ÷ Annual income ($", (parseFloat(e) * 12).toLocaleString(), ")"] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "space-y-4", | |
| children: [g.jsxs("div", { | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(g1, { | |
| className: "h-5 w-5 text-muted-foreground" | |
| }), g.jsx("h4", { | |
| className: "font-semibold", | |
| children: "Country Government Debt-to-GDP Ratios" | |
| })] | |
| }), i ? g.jsx("div", { | |
| className: "space-y-3", | |
| children: [...Array(5)].map((x, y) => g.jsxs("div", { | |
| className: "flex items-center justify-between", | |
| children: [g.jsx(Kn, { | |
| className: "h-4 w-32" | |
| }), g.jsx(Kn, { | |
| className: "h-4 w-16" | |
| })] | |
| }, y)) | |
| }) : l ? g.jsxs("div", { | |
| className: "flex items-center gap-2 text-muted-foreground", | |
| children: [g.jsx(y1, { | |
| className: "h-4 w-4" | |
| }), g.jsx("span", { | |
| className: "text-sm", | |
| children: l | |
| })] | |
| }) : g.jsx("div", { | |
| className: "space-y-2 max-h-64 overflow-y-auto", | |
| children: r.map((x, y) => { | |
| var w; | |
| return g.jsxs("div", { | |
| className: "flex items-center justify-between py-2 px-3 rounded-lg hover:bg-muted/50 transition-colors", | |
| children: [g.jsxs("div", { | |
| className: "flex items-center gap-3", | |
| children: [g.jsxs("span", { | |
| className: "text-xs font-mono text-muted-foreground w-6", | |
| children: ["#", y + 1] | |
| }), g.jsx("span", { | |
| className: "font-medium text-sm", | |
| children: x.country.value | |
| })] | |
| }), g.jsxs("div", { | |
| className: "flex items-center gap-2", | |
| children: [g.jsxs("span", { | |
| className: "font-semibold text-sm", | |
| children: [(w = x.value) == null ? void 0 : w.toFixed(1), "%"] | |
| }), c > 0 && x.value && c > x.value && g.jsx(ac, { | |
| className: "h-3 w-3 text-orange-500" | |
| })] | |
| })] | |
| }, x.country.id) | |
| }) | |
| }), !i && !l && c > 0 && g.jsxs("div", { | |
| className: "text-xs text-muted-foreground mt-4 p-3 bg-muted/20 rounded-lg", | |
| children: [g.jsx("strong", { | |
| children: "Note:" | |
| }), " Your personal debt-to-GDP ratio compares your total debt to your annual income, while country ratios show government debt relative to their GDP. Higher personal ratios may indicate higher financial risk and reduced borrowing capacity."] | |
| })] | |
| })] | |
| }) | |
| }, | |
| tC = () => { | |
| const [e, t] = S.useState(""), [n, r] = S.useState(""), [o, i] = S.useState(""), [s, l] = S.useState(""), [a, u] = S.useState(null), [c, f] = S.useState(null); | |
| S.useEffect(() => { | |
| jt.pageView("net_worth_calculator") | |
| }, []); | |
| const m = () => { | |
| jt.buttonClick("calculate_net_worth"); | |
| const h = parseFloat(e) || 0, | |
| p = parseFloat(n) || 0, | |
| v = parseFloat(o) || 0, | |
| k = parseFloat(s) || 0, | |
| b = (h - p) * 12 + v - k; | |
| u(b), jt.calculate(h, p, v, k, b); | |
| let R; | |
| b > 5e4 ? R = "rich" : b < -1e4 ? R = "broke" : R = "caution", f(R), jt.resultStatus(R, b) | |
| }, | |
| d = () => c === "rich" ? "Amazing! You're building wealth - strong cash flow and assets 🎉" : c === "broke" ? "Time for a financial reset - your expenses and debts outweigh your assets 📊" : c === "caution" ? a && a >= 0 ? "You're on the right track, but there's room to grow your wealth! 💪" : "Your finances need attention - focus on increasing income or reducing expenses! ⚠️" : "", | |
| x = () => c === "rich" ? g.jsx(ac, { | |
| className: "h-8 w-8" | |
| }) : c === "broke" ? g.jsx(km, { | |
| className: "h-8 w-8" | |
| }) : c === "caution" ? g.jsx(T1, { | |
| className: "h-8 w-8" | |
| }) : g.jsx(m1, { | |
| className: "h-8 w-8" | |
| }), | |
| y = () => { | |
| const h = "transition-all duration-500 ease-in-out transform"; | |
| return c === "rich" ? `${h} bg-rich-light border-rich-border shadow-rich` : c === "broke" ? `${h} bg-broke-light border-broke-border shadow-broke` : c === "caution" ? `${h} bg-caution-light border-caution-border shadow-caution` : `${h} bg-card border-border` | |
| }, | |
| w = () => c === "rich" ? "rich" : c === "broke" ? "broke" : c === "caution" ? "caution" : "default"; | |
| return g.jsxs("div", { | |
| className: "w-full max-w-2xl mx-auto p-6", | |
| children: [g.jsxs(pr, { | |
| className: `p-8 ${y()}`, | |
| children: [g.jsxs("div", { | |
| className: "text-center mb-8", | |
| children: [g.jsx("div", { | |
| className: `inline-flex items-center justify-center w-16 h-16 rounded-full mb-4 transition-colors duration-500 ${c==="rich"?"bg-rich text-rich-foreground":c==="broke"?"bg-broke text-broke-foreground":c==="caution"?"bg-caution text-caution-foreground":"bg-primary text-primary-foreground"}`, | |
| children: x() | |
| }), g.jsx("h2", { | |
| className: "text-3xl font-bold mb-2", | |
| children: "Net Worth Calculator" | |
| }), g.jsx("p", { | |
| className: "text-muted-foreground", | |
| children: "Enter your monthly income, expenses, assets, and liabilities to see your true financial picture" | |
| })] | |
| }), g.jsxs("div", { | |
| className: "space-y-6", | |
| children: [g.jsxs("div", { | |
| className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6", | |
| children: [g.jsxs("div", { | |
| className: "space-y-2", | |
| children: [g.jsx(jo, { | |
| htmlFor: "income", | |
| className: "text-lg font-semibold", | |
| children: "Monthly Income" | |
| }), g.jsxs("div", { | |
| className: "relative", | |
| children: [g.jsx(Ui, { | |
| className: "absolute left-3 top-1/2 transform -translate-y-1/2 h-5 w-5 text-muted-foreground" | |
| }), g.jsx(Ro, { | |
| id: "income", | |
| type: "number", | |
| placeholder: "5000", | |
| value: e, | |
| onChange: h => { | |
| t(h.target.value), jt.inputChange("income", h.target.value) | |
| }, | |
| className: "pl-10 h-12 text-lg" | |
| })] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "space-y-2", | |
| children: [g.jsx(jo, { | |
| htmlFor: "expenses", | |
| className: "text-lg font-semibold", | |
| children: "Monthly Expenses" | |
| }), g.jsxs("div", { | |
| className: "relative", | |
| children: [g.jsx(Ui, { | |
| className: "absolute left-3 top-1/2 transform -translate-y-1/2 h-5 w-5 text-muted-foreground" | |
| }), g.jsx(Ro, { | |
| id: "expenses", | |
| type: "number", | |
| placeholder: "3000", | |
| value: n, | |
| onChange: h => { | |
| r(h.target.value), jt.inputChange("expenses", h.target.value) | |
| }, | |
| className: "pl-10 h-12 text-lg" | |
| })] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "space-y-2", | |
| children: [g.jsx(jo, { | |
| htmlFor: "assets", | |
| className: "text-lg font-semibold", | |
| children: "Total Assets" | |
| }), g.jsxs("div", { | |
| className: "relative", | |
| children: [g.jsx(Ui, { | |
| className: "absolute left-3 top-1/2 transform -translate-y-1/2 h-5 w-5 text-muted-foreground" | |
| }), g.jsx(Ro, { | |
| id: "assets", | |
| type: "number", | |
| placeholder: "100000", | |
| value: o, | |
| onChange: h => { | |
| i(h.target.value), jt.inputChange("assets", h.target.value) | |
| }, | |
| className: "pl-10 h-12 text-lg" | |
| })] | |
| }), g.jsx("p", { | |
| className: "text-xs text-muted-foreground", | |
| children: "Property, investments, business value, etc." | |
| })] | |
| }), g.jsxs("div", { | |
| className: "space-y-2", | |
| children: [g.jsx(jo, { | |
| htmlFor: "liabilities", | |
| className: "text-lg font-semibold", | |
| children: "Total Liabilities" | |
| }), g.jsxs("div", { | |
| className: "relative", | |
| children: [g.jsx(Ui, { | |
| className: "absolute left-3 top-1/2 transform -translate-y-1/2 h-5 w-5 text-muted-foreground" | |
| }), g.jsx(Ro, { | |
| id: "liabilities", | |
| type: "number", | |
| placeholder: "50000", | |
| value: s, | |
| onChange: h => { | |
| l(h.target.value), jt.inputChange("liabilities", h.target.value) | |
| }, | |
| className: "pl-10 h-12 text-lg" | |
| })] | |
| }), g.jsx("p", { | |
| className: "text-xs text-muted-foreground", | |
| children: "Mortgage, credit cards, loans, etc." | |
| })] | |
| })] | |
| }), g.jsx(Ye, { | |
| onClick: m, | |
| className: "w-full h-14 text-lg font-semibold", | |
| variant: w(), | |
| disabled: !e || !n, | |
| children: "Calculate My Net Worth" | |
| }), a !== null && g.jsxs("div", { | |
| className: "text-center space-y-4 animate-in fade-in duration-500", | |
| children: [g.jsxs("div", { | |
| className: `text-6xl font-bold transition-colors duration-500 ${c==="rich"?"text-rich":c==="broke"?"text-broke":"text-caution"}`, | |
| children: [a >= 0 ? "+" : "", "$", a.toLocaleString()] | |
| }), g.jsx("p", { | |
| className: `text-xl font-semibold transition-colors duration-500 ${c==="rich"?"text-rich":c==="broke"?"text-broke":"text-caution"}`, | |
| children: d() | |
| }), g.jsxs("div", { | |
| className: "bg-muted/50 rounded-lg p-6 space-y-3 text-left max-w-md mx-auto", | |
| children: [g.jsx("h3", { | |
| className: "text-lg font-semibold text-center mb-4", | |
| children: "How We Calculated This:" | |
| }), g.jsxs("div", { | |
| className: "space-y-2 text-sm", | |
| children: [g.jsxs("div", { | |
| className: "flex justify-between", | |
| children: [g.jsx("span", { | |
| children: "Monthly Income:" | |
| }), g.jsxs("span", { | |
| className: "font-medium", | |
| children: ["+$", parseFloat(e).toLocaleString()] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "flex justify-between", | |
| children: [g.jsx("span", { | |
| children: "Monthly Expenses:" | |
| }), g.jsxs("span", { | |
| className: "font-medium", | |
| children: ["-$", parseFloat(n).toLocaleString()] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "border-t pt-2 flex justify-between", | |
| children: [g.jsx("span", { | |
| children: "Monthly Cash Flow:" | |
| }), g.jsxs("span", { | |
| className: "font-medium", | |
| children: ["$", ((parseFloat(e) || 0) - (parseFloat(n) || 0)).toLocaleString()] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "flex justify-between", | |
| children: [g.jsx("span", { | |
| children: "Annual Cash Flow (×12):" | |
| }), g.jsxs("span", { | |
| className: "font-medium", | |
| children: ["$", (((parseFloat(e) || 0) - (parseFloat(n) || 0)) * 12).toLocaleString()] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "flex justify-between", | |
| children: [g.jsx("span", { | |
| children: "Total Assets:" | |
| }), g.jsxs("span", { | |
| className: "font-medium", | |
| children: ["+$", parseFloat(o || "0").toLocaleString()] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "flex justify-between", | |
| children: [g.jsx("span", { | |
| children: "Total Liabilities:" | |
| }), g.jsxs("span", { | |
| className: "font-medium", | |
| children: ["-$", parseFloat(s || "0").toLocaleString()] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "border-t-2 pt-2 flex justify-between text-base font-bold", | |
| children: [g.jsx("span", { | |
| children: "Net Worth:" | |
| }), g.jsxs("span", { | |
| className: c === "rich" ? "text-rich" : c === "broke" ? "text-broke" : "text-caution", | |
| children: ["$", a.toLocaleString()] | |
| })] | |
| })] | |
| })] | |
| }), g.jsx("div", { | |
| className: "pt-6 flex justify-center", | |
| children: g.jsx("div", { | |
| className: "w-full max-w-sm", | |
| children: g.jsxs("div", { | |
| className: "bg-ad-background border border-ad-border rounded-lg p-4 text-center", | |
| children: [g.jsx("div", { | |
| className: "text-xs uppercase tracking-wider text-ad-foreground opacity-60 mb-1", | |
| children: "Advertisement" | |
| }), g.jsx("div", { | |
| className: "text-sm text-ad-foreground opacity-40", | |
| children: "Post-Results Ad" | |
| })] | |
| }) | |
| }) | |
| }), g.jsx("div", { | |
| className: "pt-6", | |
| children: g.jsx(Zk, { | |
| result: a, | |
| status: c | |
| }) | |
| })] | |
| })] | |
| })] | |
| }), a !== null && g.jsx("div", { | |
| className: "mt-8", | |
| children: g.jsx(eC, { | |
| income: e, | |
| liabilities: s, | |
| result: a | |
| }) | |
| })] | |
| }) | |
| }, | |
| Sr = ({ | |
| size: e, | |
| position: t, | |
| className: n = "" | |
| }) => { | |
| const r = () => { | |
| switch (e) { | |
| case "banner": | |
| return "w-full h-24 md:h-32"; | |
| case "rectangle": | |
| return "w-full h-64 max-w-sm"; | |
| case "leaderboard": | |
| return "w-full h-24"; | |
| case "skyscraper": | |
| return "w-40 h-96"; | |
| default: | |
| return "w-full h-32" | |
| } | |
| }, | |
| o = () => { | |
| switch (t) { | |
| case "top": | |
| return "mb-6"; | |
| case "sidebar": | |
| return "sticky top-4"; | |
| case "content": | |
| return "my-8"; | |
| case "footer": | |
| return "mt-8"; | |
| default: | |
| return "" | |
| } | |
| }; | |
| return g.jsx("div", { | |
| className: `${o()} ${n}`, | |
| children: g.jsx(pr, { | |
| className: `${r()} bg-ad-background border-ad-border flex items-center justify-center transition-all duration-300 hover:shadow-ad`, | |
| children: g.jsxs("div", { | |
| className: "text-center text-ad-foreground", | |
| children: [g.jsx("div", { | |
| className: "text-xs uppercase tracking-wider opacity-60 mb-1", | |
| children: "Advertisement" | |
| }), g.jsx("div", { | |
| className: "text-sm opacity-40", | |
| children: "AdSense Placement" | |
| }), g.jsxs("div", { | |
| className: "text-xs opacity-30 mt-1", | |
| children: [e, " - ", t] | |
| })] | |
| }) | |
| }) | |
| }) | |
| }, | |
| nC = () => { | |
| const [e, t] = S.useState([]), [n, r] = S.useState(!0), [o, i] = S.useState(null), [s, l] = S.useState(null), a = [{ | |
| rank: 1, | |
| name: "Elon Musk", | |
| netWorth: 328.5, | |
| company: "Tesla, SpaceX", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: 2.1, | |
| source: "Tesla stock" | |
| }, { | |
| rank: 2, | |
| name: "Jeff Bezos", | |
| netWorth: 202.4, | |
| company: "Amazon", | |
| country: "USA", | |
| industry: "E-commerce", | |
| change24h: -.8, | |
| source: "Amazon stock" | |
| }, { | |
| rank: 3, | |
| name: "Mark Zuckerberg", | |
| netWorth: 195.3, | |
| company: "Meta", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: 1.5, | |
| source: "Meta stock" | |
| }, { | |
| rank: 4, | |
| name: "Bernard Arnault", | |
| netWorth: 190.2, | |
| company: "LVMH", | |
| country: "France", | |
| industry: "Luxury Goods", | |
| change24h: .3, | |
| source: "LVMH stock" | |
| }, { | |
| rank: 5, | |
| name: "Bill Gates", | |
| netWorth: 158.9, | |
| company: "Microsoft", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: .7, | |
| source: "Investments" | |
| }, { | |
| rank: 6, | |
| name: "Warren Buffett", | |
| netWorth: 142.8, | |
| company: "Berkshire Hathaway", | |
| country: "USA", | |
| industry: "Investments", | |
| change24h: -.2, | |
| source: "Berkshire stock" | |
| }, { | |
| rank: 7, | |
| name: "Larry Page", | |
| netWorth: 138.6, | |
| company: "Google", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: 1.2, | |
| source: "Alphabet stock" | |
| }, { | |
| rank: 8, | |
| name: "Sergey Brin", | |
| netWorth: 132.8, | |
| company: "Google", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: 1.1, | |
| source: "Alphabet stock" | |
| }, { | |
| rank: 9, | |
| name: "Larry Ellison", | |
| netWorth: 129.5, | |
| company: "Oracle", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: .9, | |
| source: "Oracle stock" | |
| }, { | |
| rank: 10, | |
| name: "Steve Ballmer", | |
| netWorth: 125.2, | |
| company: "Microsoft", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: .4, | |
| source: "Microsoft stock" | |
| }, { | |
| rank: 11, | |
| name: "Mukesh Ambani", | |
| netWorth: 118.7, | |
| company: "Reliance Industries", | |
| country: "India", | |
| industry: "Energy", | |
| change24h: -.6, | |
| source: "Reliance stock" | |
| }, { | |
| rank: 12, | |
| name: "Francoise Bettencourt Meyers", | |
| netWorth: 115.3, | |
| company: "L'Oréal", | |
| country: "France", | |
| industry: "Cosmetics", | |
| change24h: .2, | |
| source: "L'Oréal stock" | |
| }, { | |
| rank: 13, | |
| name: "Jensen Huang", | |
| netWorth: 112.9, | |
| company: "NVIDIA", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: 3.2, | |
| source: "NVIDIA stock" | |
| }, { | |
| rank: 14, | |
| name: "Michael Dell", | |
| netWorth: 108.4, | |
| company: "Dell Technologies", | |
| country: "USA", | |
| industry: "Technology", | |
| change24h: .1, | |
| source: "Dell stock" | |
| }, { | |
| rank: 15, | |
| name: "Gautam Adani", | |
| netWorth: 105.8, | |
| company: "Adani Group", | |
| country: "India", | |
| industry: "Infrastructure", | |
| change24h: -1.2, | |
| source: "Adani stocks" | |
| }, { | |
| rank: 16, | |
| name: "Alice Walton", | |
| netWorth: 102.6, | |
| company: "Walmart", | |
| country: "USA", | |
| industry: "Retail", | |
| change24h: .3, | |
| source: "Walmart stock" | |
| }, { | |
| rank: 17, | |
| name: "Rob Walton", | |
| netWorth: 101.4, | |
| company: "Walmart", | |
| country: "USA", | |
| industry: "Retail", | |
| change24h: .3, | |
| source: "Walmart stock" | |
| }, { | |
| rank: 18, | |
| name: "Jim Walton", | |
| netWorth: 100.9, | |
| company: "Walmart", | |
| country: "USA", | |
| industry: "Retail", | |
| change24h: .3, | |
| source: "Walmart stock" | |
| }, { | |
| rank: 19, | |
| name: "Carlos Slim Helu", | |
| netWorth: 98.7, | |
| company: "Grupo Carso", | |
| country: "Mexico", | |
| industry: "Telecommunications", | |
| change24h: -.4, | |
| source: "América Móvil" | |
| }, { | |
| rank: 20, | |
| name: "Jacqueline Mars", | |
| netWorth: 95.3, | |
| company: "Mars Inc.", | |
| country: "USA", | |
| industry: "Food", | |
| change24h: .1, | |
| source: "Mars candy" | |
| }], u = async () => { | |
| try { | |
| r(!0), i(null); | |
| const x = ["https://www.forbes.com/forbesapi/person/rtb/0/position/true.json", "https://api.allorigins.win/get?url=" + encodeURIComponent("https://www.forbes.com/real-time-billionaires/"), "https://real-time-billionaires.herokuapp.com/api/billionaires"]; | |
| let y = null, | |
| w = "mock"; | |
| for (const p of x) try { | |
| console.log(`Attempting to fetch from: ${p}`); | |
| const v = await fetch(p, { | |
| headers: { | |
| Accept: "application/json", | |
| "User-Agent": "Mozilla/5.0 (compatible; BillionairesTracker/1.0)" | |
| } | |
| }); | |
| if (v.ok) { | |
| const k = await v.json(); | |
| if (p.includes("forbesapi")) { | |
| if (k.personList && Array.isArray(k.personList)) { | |
| y = k.personList.slice(0, 20).map((C, E) => ({ | |
| rank: E + 1, | |
| name: C.name || "Unknown", | |
| netWorth: parseFloat(C.finalWorth) || 0, | |
| company: C.source || "Various", | |
| country: C.country || "Unknown", | |
| industry: C.industry || "Various", | |
| change24h: C.dailyChange || (Math.random() - .5) * 4, | |
| source: C.source || "Investment portfolio" | |
| })), w = "forbes"; | |
| break | |
| } | |
| } else if (p.includes("allorigins")) { | |
| const C = k.contents; | |
| if (C && C.includes("billionaire")) { | |
| const E = C.match(/\$[\d,.]+[B]/g); | |
| if (E && E.length >= 5) { | |
| w = "proxy"; | |
| break | |
| } | |
| } | |
| } else if (Array.isArray(k) && k.length > 0) { | |
| y = k.slice(0, 20).map((C, E) => ({ | |
| rank: E + 1, | |
| name: C.name || C.fullName || "Unknown", | |
| netWorth: parseFloat(C.netWorth || C.wealth) || 0, | |
| company: C.company || C.source || "Various", | |
| country: C.country || C.countryOfResidence || "Unknown", | |
| industry: C.industry || C.category || "Various", | |
| change24h: C.change24h || C.dailyChange || (Math.random() - .5) * 4, | |
| source: C.source || C.company || "Investment portfolio" | |
| })), w = "api"; | |
| break | |
| } | |
| } | |
| } catch (v) { | |
| console.log(`Failed to fetch from ${p}:`, v); | |
| continue | |
| } | |
| let h; | |
| y && y.length > 0 ? h = y : (h = a.map(p => ({ ...p, | |
| netWorth: p.netWorth + (Math.random() - .5) * 3, | |
| change24h: p.change24h + (Math.random() - .5) * 2 | |
| })), w = "mock_realtime"), t(h), l(new Date), yt("billionaires_fetched", "engagement", w, h.length), console.log(`Data loaded from: ${w}, ${h.length} records`) | |
| } catch (x) { | |
| console.error("Error fetching billionaires data:", x); | |
| const y = a.map(w => ({ ...w, | |
| netWorth: w.netWorth + (Math.random() - .5) * 2, | |
| change24h: w.change24h + (Math.random() - .5) * 1 | |
| })); | |
| t(y), l(new Date), i("Using cached data - real-time updates may be limited"), yt("billionaires_fetch_error", "error", "fallback_used") | |
| } finally { | |
| r(!1) | |
| } | |
| }; | |
| S.useEffect(() => { | |
| u(); | |
| const x = setInterval(u, 5 * 60 * 1e3); | |
| return () => clearInterval(x) | |
| }, []); | |
| const c = () => { | |
| yt("billionaires_refresh_clicked", "interaction", "refresh_button"), u() | |
| }, | |
| f = x => `$${x.toFixed(1)}B`, | |
| m = x => `${x>=0?"+":""}${x.toFixed(1)}%`, | |
| d = x => { | |
| const w = Math.floor((new Date().getTime() - x.getTime()) / (1e3 * 60)); | |
| if (w < 1) return "Just now"; | |
| if (w < 60) return `${w}m ago`; | |
| const h = Math.floor(w / 60); | |
| return h < 24 ? `${h}h ago` : x.toLocaleDateString() | |
| }; | |
| return g.jsxs(pr, { | |
| className: "w-full bg-card/50 backdrop-blur-sm border-border/50", | |
| children: [g.jsx(Pg, { | |
| className: "pb-4", | |
| children: g.jsxs("div", { | |
| className: "flex items-center justify-between", | |
| children: [g.jsxs("div", { | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(x1, { | |
| className: "h-5 w-5 text-primary" | |
| }), g.jsx(Tg, { | |
| className: "text-lg font-semibold", | |
| children: "World's Richest People" | |
| })] | |
| }), g.jsxs("div", { | |
| className: "flex items-center gap-2", | |
| children: [s && g.jsxs("span", { | |
| className: "text-xs text-muted-foreground", | |
| children: ["Updated ", d(s)] | |
| }), g.jsx(Ye, { | |
| variant: "ghost", | |
| size: "sm", | |
| onClick: c, | |
| disabled: n, | |
| className: "h-8 w-8 p-0", | |
| children: g.jsx(b1, { | |
| className: `h-4 w-4 ${n?"animate-spin":""}` | |
| }) | |
| })] | |
| })] | |
| }) | |
| }), g.jsxs(kc, { | |
| className: "space-y-3", | |
| children: [n && e.length === 0 ? Array.from({ | |
| length: 10 | |
| }).map((x, y) => g.jsxs("div", { | |
| className: "flex items-center justify-between p-3 rounded-lg border border-border/50", | |
| children: [g.jsxs("div", { | |
| className: "flex items-center gap-3", | |
| children: [g.jsx(Kn, { | |
| className: "h-6 w-8" | |
| }), g.jsxs("div", { | |
| className: "space-y-1", | |
| children: [g.jsx(Kn, { | |
| className: "h-4 w-24" | |
| }), g.jsx(Kn, { | |
| className: "h-3 w-20" | |
| })] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "text-right space-y-1", | |
| children: [g.jsx(Kn, { | |
| className: "h-4 w-16" | |
| }), g.jsx(Kn, { | |
| className: "h-3 w-12" | |
| })] | |
| })] | |
| }, y)) : o ? g.jsxs("div", { | |
| className: "text-center py-8 text-muted-foreground", | |
| children: [g.jsx("p", { | |
| children: o | |
| }), g.jsx(Ye, { | |
| variant: "outline", | |
| onClick: c, | |
| className: "mt-2", | |
| children: "Try Again" | |
| })] | |
| }) : e.length === 0 ? g.jsx("div", { | |
| className: "text-center py-8 text-muted-foreground", | |
| children: g.jsx("p", { | |
| children: "No billionaire data available at the moment" | |
| }) | |
| }) : g.jsx("div", { | |
| className: "space-y-2 max-h-96 overflow-y-auto", | |
| children: e.map(x => g.jsxs("div", { | |
| className: "flex items-center justify-between p-3 rounded-lg border border-border/50 hover:border-primary/20 bg-background/30 hover:bg-background/50 transition-all duration-200", | |
| children: [g.jsxs("div", { | |
| className: "flex items-center gap-3", | |
| children: [g.jsx("div", { | |
| className: "flex items-center justify-center w-8 h-8 rounded-full bg-primary/10 text-primary font-semibold text-sm", | |
| children: x.rank | |
| }), g.jsxs("div", { | |
| className: "space-y-1", | |
| children: [g.jsx("h3", { | |
| className: "font-medium text-sm text-foreground", | |
| children: x.name | |
| }), g.jsxs("div", { | |
| className: "flex items-center gap-2", | |
| children: [g.jsx(_g, { | |
| variant: "secondary", | |
| className: "text-xs", | |
| children: x.company | |
| }), g.jsx("span", { | |
| className: "text-xs text-muted-foreground", | |
| children: x.country | |
| })] | |
| })] | |
| })] | |
| }), g.jsxs("div", { | |
| className: "text-right space-y-1", | |
| children: [g.jsx("div", { | |
| className: "font-semibold text-sm text-foreground", | |
| children: f(x.netWorth) | |
| }), g.jsxs("div", { | |
| className: `flex items-center gap-1 text-xs ${x.change24h>=0?"text-green-600":"text-red-600"}`, | |
| children: [x.change24h >= 0 ? g.jsx(ac, { | |
| className: "h-3 w-3" | |
| }) : g.jsx(km, { | |
| className: "h-3 w-3" | |
| }), m(x.change24h)] | |
| })] | |
| })] | |
| }, x.rank)) | |
| }), g.jsx("div", { | |
| className: "text-center pt-2", | |
| children: g.jsx("p", { | |
| className: "text-xs text-muted-foreground", | |
| children: "Real-time net worth from Forbes API and market data sources" | |
| }) | |
| })] | |
| })] | |
| }) | |
| }; | |
| function rC() { | |
| const { | |
| theme: e, | |
| setTheme: t | |
| } = Bk(), n = () => { | |
| t(e === "light" ? "dark" : "light") | |
| }; | |
| return g.jsxs(Ye, { | |
| variant: "outline", | |
| size: "icon", | |
| onClick: n, | |
| className: "fixed top-4 right-4 z-50", | |
| "aria-label": "Toggle theme", | |
| children: [g.jsx(P1, { | |
| className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" | |
| }), g.jsx(E1, { | |
| className: "absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" | |
| })] | |
| }) | |
| } | |
| const oC = () => g.jsxs("div", { | |
| className: "min-h-screen bg-gradient-hero", | |
| children: [g.jsx(rC, {}), g.jsxs("div", { | |
| className: "container mx-auto px-4 py-12", | |
| children: [g.jsx(Sr, { | |
| size: "leaderboard", | |
| position: "top", | |
| className: "flex justify-center" | |
| }), g.jsxs("header", { | |
| className: "text-center mb-12", | |
| children: [g.jsx("h1", { | |
| className: "text-5xl md:text-7xl font-bold bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent mb-4", | |
| children: "Am I Rich or Broke?" | |
| }), g.jsx("p", { | |
| className: "text-xl md:text-2xl text-muted-foreground max-w-2xl mx-auto", | |
| children: "The ultimate financial reality check. Enter your numbers and discover your true financial status." | |
| })] | |
| }), g.jsxs("div", { | |
| className: "flex flex-col lg:flex-row gap-8", | |
| children: [g.jsx("div", { | |
| className: "hidden lg:block lg:w-48 flex-shrink-0", | |
| children: g.jsx(Sr, { | |
| size: "skyscraper", | |
| position: "sidebar" | |
| }) | |
| }), g.jsxs("main", { | |
| className: "flex-1 space-y-8", | |
| role: "main", | |
| children: [g.jsx(tC, {}), g.jsx("section", { | |
| "aria-labelledby": "richest-people-heading", | |
| children: g.jsx(nC, {}) | |
| }), g.jsx("div", { | |
| className: "flex justify-center", | |
| children: g.jsx(Sr, { | |
| size: "rectangle", | |
| position: "content" | |
| }) | |
| })] | |
| }), g.jsx("div", { | |
| className: "hidden lg:block lg:w-48 flex-shrink-0", | |
| children: g.jsx(Sr, { | |
| size: "skyscraper", | |
| position: "sidebar" | |
| }) | |
| })] | |
| }), g.jsx("div", { | |
| className: "lg:hidden flex justify-center", | |
| children: g.jsx(Sr, { | |
| size: "banner", | |
| position: "content" | |
| }) | |
| }), g.jsxs("footer", { | |
| className: "text-center mt-16 text-muted-foreground", | |
| role: "contentinfo", | |
| children: [g.jsx("p", { | |
| className: "text-sm", | |
| children: "* This tool is for educational purposes only and does not constitute financial advice." | |
| }), g.jsx(Sr, { | |
| size: "leaderboard", | |
| position: "footer", | |
| className: "flex justify-center" | |
| })] | |
| })] | |
| })] | |
| }), | |
| iC = () => { | |
| const e = bg(); | |
| return S.useEffect(() => { | |
| console.error("404 Error: User attempted to access non-existent route:", e.pathname) | |
| }, [e.pathname]), g.jsx("div", { | |
| className: "flex min-h-screen items-center justify-center bg-gray-100", | |
| children: g.jsxs("div", { | |
| className: "text-center", | |
| children: [g.jsx("h1", { | |
| className: "mb-4 text-4xl font-bold", | |
| children: "404" | |
| }), g.jsx("p", { | |
| className: "mb-4 text-xl text-gray-600", | |
| children: "Oops! Page not found" | |
| }), g.jsx("a", { | |
| href: "/", | |
| className: "text-blue-500 underline hover:text-blue-700", | |
| children: "Return to Home" | |
| })] | |
| }) | |
| }) | |
| }, | |
| sC = new ZS, | |
| lC = () => g.jsx(ek, { | |
| client: sC, | |
| children: g.jsx(Uk, { | |
| defaultTheme: "system", | |
| storageKey: "vite-ui-theme", | |
| children: g.jsxs(TS, { | |
| children: [g.jsx(Gk, {}), g.jsx(dx, {}), g.jsx(Wx, {}), g.jsx(zk, { | |
| children: g.jsxs(Dk, { | |
| children: [g.jsx(su, { | |
| path: "/", | |
| element: g.jsx(oC, {}) | |
| }), g.jsx(su, { | |
| path: "*", | |
| element: g.jsx(iC, {}) | |
| })] | |
| }) | |
| }), g.jsx(Kk, {})] | |
| }) | |
| }) | |
| }); | |
| qk("G-XXXXXXXXXX"); | |
| Qh(document.getElementById("root")).render(g.jsx(lC, {})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment