UNPKG

@rogieking/figui3

Version:

A lightweight web components library for building Figma plugin and widget UIs with native look and feel

1,629 lines 442 kB
var ou = { exports: {} }, zl = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var hs; function I0() { if (hs) return zl; hs = 1; var S = Symbol.for("react.transitional.element"), V = Symbol.for("react.fragment"); function N(s, re, ge) { var ze = null; if (ge !== void 0 && (ze = "" + ge), re.key !== void 0 && (ze = "" + re.key), "key" in re) { ge = {}; for (var Ee in re) Ee !== "key" && (ge[Ee] = re[Ee]); } else ge = re; return re = ge.ref, { $$typeof: S, type: s, key: ze, ref: re !== void 0 ? re : null, props: ge }; } return zl.Fragment = V, zl.jsx = N, zl.jsxs = N, zl; } var bs; function P0() { return bs || (bs = 1, ou.exports = I0()), ou.exports; } var Ke = P0(), uu = { exports: {} }, wl = {}, cu = { exports: {} }, fu = {}; /** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var vs; function ep() { return vs || (vs = 1, (function(S) { function V(v, k) { var U = v.length; v.push(k); e: for (; 0 < U; ) { var ee = U - 1 >>> 1, le = v[ee]; if (0 < re(le, k)) v[ee] = k, v[U] = le, U = ee; else break e; } } function N(v) { return v.length === 0 ? null : v[0]; } function s(v) { if (v.length === 0) return null; var k = v[0], U = v.pop(); if (U !== k) { v[0] = U; e: for (var ee = 0, le = v.length, f = le >>> 1; ee < f; ) { var z = 2 * (ee + 1) - 1, E = v[z], A = z + 1, j = v[A]; if (0 > re(E, U)) A < le && 0 > re(j, E) ? (v[ee] = j, v[A] = U, ee = A) : (v[ee] = E, v[z] = U, ee = z); else if (A < le && 0 > re(j, U)) v[ee] = j, v[A] = U, ee = A; else break e; } } return k; } function re(v, k) { var U = v.sortIndex - k.sortIndex; return U !== 0 ? U : v.id - k.id; } if (S.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") { var ge = performance; S.unstable_now = function() { return ge.now(); }; } else { var ze = Date, Ee = ze.now(); S.unstable_now = function() { return ze.now() - Ee; }; } var _ = [], w = [], K = 1, D = null, ce = 3, Je = !1, je = !1, Ue = !1, Ct = !1, We = typeof setTimeout == "function" ? setTimeout : null, Jt = typeof clearTimeout == "function" ? clearTimeout : null, Oe = typeof setImmediate < "u" ? setImmediate : null; function rt(v) { for (var k = N(w); k !== null; ) { if (k.callback === null) s(w); else if (k.startTime <= v) s(w), k.sortIndex = k.expirationTime, V(_, k); else break; k = N(w); } } function zt(v) { if (Ue = !1, rt(v), !je) if (N(_) !== null) je = !0, Re || (Re = !0, Be()); else { var k = N(w); k !== null && bt(zt, k.startTime - v); } } var Re = !1, Q = -1, qe = 5, wt = -1; function Ya() { return Ct ? !0 : !(S.unstable_now() - wt < qe); } function St() { if (Ct = !1, Re) { var v = S.unstable_now(); wt = v; var k = !0; try { e: { je = !1, Ue && (Ue = !1, Jt(Q), Q = -1), Je = !0; var U = ce; try { t: { for (rt(v), D = N(_); D !== null && !(D.expirationTime > v && Ya()); ) { var ee = D.callback; if (typeof ee == "function") { D.callback = null, ce = D.priorityLevel; var le = ee( D.expirationTime <= v ); if (v = S.unstable_now(), typeof le == "function") { D.callback = le, rt(v), k = !0; break t; } D === N(_) && s(_), rt(v); } else s(_); D = N(_); } if (D !== null) k = !0; else { var f = N(w); f !== null && bt( zt, f.startTime - v ), k = !1; } } break e; } finally { D = null, ce = U, Je = !1; } k = void 0; } } finally { k ? Be() : Re = !1; } } } var Be; if (typeof Oe == "function") Be = function() { Oe(St); }; else if (typeof MessageChannel < "u") { var xa = new MessageChannel(), _t = xa.port2; xa.port1.onmessage = St, Be = function() { _t.postMessage(null); }; } else Be = function() { We(St, 0); }; function bt(v, k) { Q = We(function() { v(S.unstable_now()); }, k); } S.unstable_IdlePriority = 5, S.unstable_ImmediatePriority = 1, S.unstable_LowPriority = 4, S.unstable_NormalPriority = 3, S.unstable_Profiling = null, S.unstable_UserBlockingPriority = 2, S.unstable_cancelCallback = function(v) { v.callback = null; }, S.unstable_forceFrameRate = function(v) { 0 > v || 125 < v ? console.error( "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" ) : qe = 0 < v ? Math.floor(1e3 / v) : 5; }, S.unstable_getCurrentPriorityLevel = function() { return ce; }, S.unstable_next = function(v) { switch (ce) { case 1: case 2: case 3: var k = 3; break; default: k = ce; } var U = ce; ce = k; try { return v(); } finally { ce = U; } }, S.unstable_requestPaint = function() { Ct = !0; }, S.unstable_runWithPriority = function(v, k) { switch (v) { case 1: case 2: case 3: case 4: case 5: break; default: v = 3; } var U = ce; ce = v; try { return k(); } finally { ce = U; } }, S.unstable_scheduleCallback = function(v, k, U) { var ee = S.unstable_now(); switch (typeof U == "object" && U !== null ? (U = U.delay, U = typeof U == "number" && 0 < U ? ee + U : ee) : U = ee, v) { case 1: var le = -1; break; case 2: le = 250; break; case 5: le = 1073741823; break; case 4: le = 1e4; break; default: le = 5e3; } return le = U + le, v = { id: K++, callback: k, priorityLevel: v, startTime: U, expirationTime: le, sortIndex: -1 }, U > ee ? (v.sortIndex = U, V(w, v), N(_) === null && v === N(w) && (Ue ? (Jt(Q), Q = -1) : Ue = !0, bt(zt, U - ee))) : (v.sortIndex = le, V(_, v), je || Je || (je = !0, Re || (Re = !0, Be()))), v; }, S.unstable_shouldYield = Ya, S.unstable_wrapCallback = function(v) { var k = ce; return function() { var U = ce; ce = k; try { return v.apply(this, arguments); } finally { ce = U; } }; }; })(fu)), fu; } var ys; function tp() { return ys || (ys = 1, cu.exports = ep()), cu.exports; } var du = { exports: {} }, H = {}; /** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var xs; function ap() { if (xs) return H; xs = 1; var S = Symbol.for("react.transitional.element"), V = Symbol.for("react.portal"), N = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), ge = Symbol.for("react.consumer"), ze = Symbol.for("react.context"), Ee = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), w = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), ce = Symbol.iterator; function Je(f) { return f === null || typeof f != "object" ? null : (f = ce && f[ce] || f["@@iterator"], typeof f == "function" ? f : null); } var je = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, Ue = Object.assign, Ct = {}; function We(f, z, E) { this.props = f, this.context = z, this.refs = Ct, this.updater = E || je; } We.prototype.isReactComponent = {}, We.prototype.setState = function(f, z) { if (typeof f != "object" && typeof f != "function" && f != null) throw Error( "takes an object of state variables to update or a function which returns an object of state variables." ); this.updater.enqueueSetState(this, f, z, "setState"); }, We.prototype.forceUpdate = function(f) { this.updater.enqueueForceUpdate(this, f, "forceUpdate"); }; function Jt() { } Jt.prototype = We.prototype; function Oe(f, z, E) { this.props = f, this.context = z, this.refs = Ct, this.updater = E || je; } var rt = Oe.prototype = new Jt(); rt.constructor = Oe, Ue(rt, We.prototype), rt.isPureReactComponent = !0; var zt = Array.isArray; function Re() { } var Q = { H: null, A: null, T: null, S: null }, qe = Object.prototype.hasOwnProperty; function wt(f, z, E) { var A = E.ref; return { $$typeof: S, type: f, key: z, ref: A !== void 0 ? A : null, props: E }; } function Ya(f, z) { return wt(f.type, z, f.props); } function St(f) { return typeof f == "object" && f !== null && f.$$typeof === S; } function Be(f) { var z = { "=": "=0", ":": "=2" }; return "$" + f.replace(/[=:]/g, function(E) { return z[E]; }); } var xa = /\/+/g; function _t(f, z) { return typeof f == "object" && f !== null && f.key != null ? Be("" + f.key) : z.toString(36); } function bt(f) { switch (f.status) { case "fulfilled": return f.value; case "rejected": throw f.reason; default: switch (typeof f.status == "string" ? f.then(Re, Re) : (f.status = "pending", f.then( function(z) { f.status === "pending" && (f.status = "fulfilled", f.value = z); }, function(z) { f.status === "pending" && (f.status = "rejected", f.reason = z); } )), f.status) { case "fulfilled": return f.value; case "rejected": throw f.reason; } } throw f; } function v(f, z, E, A, j) { var B = typeof f; (B === "undefined" || B === "boolean") && (f = null); var F = !1; if (f === null) F = !0; else switch (B) { case "bigint": case "string": case "number": F = !0; break; case "object": switch (f.$$typeof) { case S: case V: F = !0; break; case K: return F = f._init, v( F(f._payload), z, E, A, j ); } } if (F) return j = j(f), F = A === "" ? "." + _t(f, 0) : A, zt(j) ? (E = "", F != null && (E = F.replace(xa, "$&/") + "/"), v(j, z, E, "", function(Ci) { return Ci; })) : j != null && (St(j) && (j = Ya( j, E + (j.key == null || f && f.key === j.key ? "" : ("" + j.key).replace( xa, "$&/" ) + "/") + F )), z.push(j)), 1; F = 0; var He = A === "" ? "." : A + ":"; if (zt(f)) for (var pe = 0; pe < f.length; pe++) A = f[pe], B = He + _t(A, pe), F += v( A, z, E, B, j ); else if (pe = Je(f), typeof pe == "function") for (f = pe.call(f), pe = 0; !(A = f.next()).done; ) A = A.value, B = He + _t(A, pe++), F += v( A, z, E, B, j ); else if (B === "object") { if (typeof f.then == "function") return v( bt(f), z, E, A, j ); throw z = String(f), Error( "Objects are not valid as a React child (found: " + (z === "[object Object]" ? "object with keys {" + Object.keys(f).join(", ") + "}" : z) + "). If you meant to render a collection of children, use an array instead." ); } return F; } function k(f, z, E) { if (f == null) return f; var A = [], j = 0; return v(f, A, "", "", function(B) { return z.call(E, B, j++); }), A; } function U(f) { if (f._status === -1) { var z = f._result; z = z(), z.then( function(E) { (f._status === 0 || f._status === -1) && (f._status = 1, f._result = E); }, function(E) { (f._status === 0 || f._status === -1) && (f._status = 2, f._result = E); } ), f._status === -1 && (f._status = 0, f._result = z); } if (f._status === 1) return f._result.default; throw f._result; } var ee = typeof reportError == "function" ? reportError : function(f) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { var z = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: typeof f == "object" && f !== null && typeof f.message == "string" ? String(f.message) : String(f), error: f }); if (!window.dispatchEvent(z)) return; } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", f); return; } console.error(f); }, le = { map: k, forEach: function(f, z, E) { k( f, function() { z.apply(this, arguments); }, E ); }, count: function(f) { var z = 0; return k(f, function() { z++; }), z; }, toArray: function(f) { return k(f, function(z) { return z; }) || []; }, only: function(f) { if (!St(f)) throw Error( "React.Children.only expected to receive a single React element child." ); return f; } }; return H.Activity = D, H.Children = le, H.Component = We, H.Fragment = N, H.Profiler = re, H.PureComponent = Oe, H.StrictMode = s, H.Suspense = _, H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Q, H.__COMPILER_RUNTIME = { __proto__: null, c: function(f) { return Q.H.useMemoCache(f); } }, H.cache = function(f) { return function() { return f.apply(null, arguments); }; }, H.cacheSignal = function() { return null; }, H.cloneElement = function(f, z, E) { if (f == null) throw Error( "The argument must be a React element, but you passed " + f + "." ); var A = Ue({}, f.props), j = f.key; if (z != null) for (B in z.key !== void 0 && (j = "" + z.key), z) !qe.call(z, B) || B === "key" || B === "__self" || B === "__source" || B === "ref" && z.ref === void 0 || (A[B] = z[B]); var B = arguments.length - 2; if (B === 1) A.children = E; else if (1 < B) { for (var F = Array(B), He = 0; He < B; He++) F[He] = arguments[He + 2]; A.children = F; } return wt(f.type, j, A); }, H.createContext = function(f) { return f = { $$typeof: ze, _currentValue: f, _currentValue2: f, _threadCount: 0, Provider: null, Consumer: null }, f.Provider = f, f.Consumer = { $$typeof: ge, _context: f }, f; }, H.createElement = function(f, z, E) { var A, j = {}, B = null; if (z != null) for (A in z.key !== void 0 && (B = "" + z.key), z) qe.call(z, A) && A !== "key" && A !== "__self" && A !== "__source" && (j[A] = z[A]); var F = arguments.length - 2; if (F === 1) j.children = E; else if (1 < F) { for (var He = Array(F), pe = 0; pe < F; pe++) He[pe] = arguments[pe + 2]; j.children = He; } if (f && f.defaultProps) for (A in F = f.defaultProps, F) j[A] === void 0 && (j[A] = F[A]); return wt(f, B, j); }, H.createRef = function() { return { current: null }; }, H.forwardRef = function(f) { return { $$typeof: Ee, render: f }; }, H.isValidElement = St, H.lazy = function(f) { return { $$typeof: K, _payload: { _status: -1, _result: f }, _init: U }; }, H.memo = function(f, z) { return { $$typeof: w, type: f, compare: z === void 0 ? null : z }; }, H.startTransition = function(f) { var z = Q.T, E = {}; Q.T = E; try { var A = f(), j = Q.S; j !== null && j(E, A), typeof A == "object" && A !== null && typeof A.then == "function" && A.then(Re, ee); } catch (B) { ee(B); } finally { z !== null && E.types !== null && (z.types = E.types), Q.T = z; } }, H.unstable_useCacheRefresh = function() { return Q.H.useCacheRefresh(); }, H.use = function(f) { return Q.H.use(f); }, H.useActionState = function(f, z, E) { return Q.H.useActionState(f, z, E); }, H.useCallback = function(f, z) { return Q.H.useCallback(f, z); }, H.useContext = function(f) { return Q.H.useContext(f); }, H.useDebugValue = function() { }, H.useDeferredValue = function(f, z) { return Q.H.useDeferredValue(f, z); }, H.useEffect = function(f, z) { return Q.H.useEffect(f, z); }, H.useEffectEvent = function(f) { return Q.H.useEffectEvent(f); }, H.useId = function() { return Q.H.useId(); }, H.useImperativeHandle = function(f, z, E) { return Q.H.useImperativeHandle(f, z, E); }, H.useInsertionEffect = function(f, z) { return Q.H.useInsertionEffect(f, z); }, H.useLayoutEffect = function(f, z) { return Q.H.useLayoutEffect(f, z); }, H.useMemo = function(f, z) { return Q.H.useMemo(f, z); }, H.useOptimistic = function(f, z) { return Q.H.useOptimistic(f, z); }, H.useReducer = function(f, z, E) { return Q.H.useReducer(f, z, E); }, H.useRef = function(f) { return Q.H.useRef(f); }, H.useState = function(f) { return Q.H.useState(f); }, H.useSyncExternalStore = function(f, z, E) { return Q.H.useSyncExternalStore( f, z, E ); }, H.useTransition = function() { return Q.H.useTransition(); }, H.version = "19.2.4", H; } var zs; function gu() { return zs || (zs = 1, du.exports = ap()), du.exports; } var su = { exports: {} }, De = {}; /** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var ws; function ip() { if (ws) return De; ws = 1; var S = gu(); function V(_) { var w = "https://react.dev/errors/" + _; if (1 < arguments.length) { w += "?args[]=" + encodeURIComponent(arguments[1]); for (var K = 2; K < arguments.length; K++) w += "&args[]=" + encodeURIComponent(arguments[K]); } return "Minified React error #" + _ + "; visit " + w + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } function N() { } var s = { d: { f: N, r: function() { throw Error(V(522)); }, D: N, C: N, L: N, m: N, X: N, S: N, M: N }, p: 0, findDOMNode: null }, re = Symbol.for("react.portal"); function ge(_, w, K) { var D = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: re, key: D == null ? null : "" + D, children: _, containerInfo: w, implementation: K }; } var ze = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; function Ee(_, w) { if (_ === "font") return ""; if (typeof w == "string") return w === "use-credentials" ? w : ""; } return De.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, De.createPortal = function(_, w) { var K = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!w || w.nodeType !== 1 && w.nodeType !== 9 && w.nodeType !== 11) throw Error(V(299)); return ge(_, w, null, K); }, De.flushSync = function(_) { var w = ze.T, K = s.p; try { if (ze.T = null, s.p = 2, _) return _(); } finally { ze.T = w, s.p = K, s.d.f(); } }, De.preconnect = function(_, w) { typeof _ == "string" && (w ? (w = w.crossOrigin, w = typeof w == "string" ? w === "use-credentials" ? w : "" : void 0) : w = null, s.d.C(_, w)); }, De.prefetchDNS = function(_) { typeof _ == "string" && s.d.D(_); }, De.preinit = function(_, w) { if (typeof _ == "string" && w && typeof w.as == "string") { var K = w.as, D = Ee(K, w.crossOrigin), ce = typeof w.integrity == "string" ? w.integrity : void 0, Je = typeof w.fetchPriority == "string" ? w.fetchPriority : void 0; K === "style" ? s.d.S( _, typeof w.precedence == "string" ? w.precedence : void 0, { crossOrigin: D, integrity: ce, fetchPriority: Je } ) : K === "script" && s.d.X(_, { crossOrigin: D, integrity: ce, fetchPriority: Je, nonce: typeof w.nonce == "string" ? w.nonce : void 0 }); } }, De.preinitModule = function(_, w) { if (typeof _ == "string") if (typeof w == "object" && w !== null) { if (w.as == null || w.as === "script") { var K = Ee( w.as, w.crossOrigin ); s.d.M(_, { crossOrigin: K, integrity: typeof w.integrity == "string" ? w.integrity : void 0, nonce: typeof w.nonce == "string" ? w.nonce : void 0 }); } } else w == null && s.d.M(_); }, De.preload = function(_, w) { if (typeof _ == "string" && typeof w == "object" && w !== null && typeof w.as == "string") { var K = w.as, D = Ee(K, w.crossOrigin); s.d.L(_, K, { crossOrigin: D, integrity: typeof w.integrity == "string" ? w.integrity : void 0, nonce: typeof w.nonce == "string" ? w.nonce : void 0, type: typeof w.type == "string" ? w.type : void 0, fetchPriority: typeof w.fetchPriority == "string" ? w.fetchPriority : void 0, referrerPolicy: typeof w.referrerPolicy == "string" ? w.referrerPolicy : void 0, imageSrcSet: typeof w.imageSrcSet == "string" ? w.imageSrcSet : void 0, imageSizes: typeof w.imageSizes == "string" ? w.imageSizes : void 0, media: typeof w.media == "string" ? w.media : void 0 }); } }, De.preloadModule = function(_, w) { if (typeof _ == "string") if (w) { var K = Ee(w.as, w.crossOrigin); s.d.m(_, { as: typeof w.as == "string" && w.as !== "script" ? w.as : void 0, crossOrigin: K, integrity: typeof w.integrity == "string" ? w.integrity : void 0 }); } else s.d.m(_); }, De.requestFormReset = function(_) { s.d.r(_); }, De.unstable_batchedUpdates = function(_, w) { return _(w); }, De.useFormState = function(_, w, K) { return ze.H.useFormState(_, w, K); }, De.useFormStatus = function() { return ze.H.useHostTransitionStatus(); }, De.version = "19.2.4", De; } var Ss; function lp() { if (Ss) return su.exports; Ss = 1; function S() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S); } catch (V) { console.error(V); } } return S(), su.exports = ip(), su.exports; } /** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var ks; function np() { if (ks) return wl; ks = 1; var S = tp(), V = gu(), N = lp(); function s(e) { var t = "https://react.dev/errors/" + e; if (1 < arguments.length) { t += "?args[]=" + encodeURIComponent(arguments[1]); for (var a = 2; a < arguments.length; a++) t += "&args[]=" + encodeURIComponent(arguments[a]); } 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."; } function re(e) { return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11); } function ge(e) { var t = e, a = e; if (e.alternate) for (; t.return; ) t = t.return; else { e = t; do t = e, (t.flags & 4098) !== 0 && (a = t.return), e = t.return; while (e); } return t.tag === 3 ? a : null; } function ze(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 Ee(e) { if (e.tag === 31) { var t = e.memoizedState; if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated; } return null; } function _(e) { if (ge(e) !== e) throw Error(s(188)); } function w(e) { var t = e.alternate; if (!t) { if (t = ge(e), t === null) throw Error(s(188)); return t !== e ? null : e; } for (var a = e, i = t; ; ) { var l = a.return; if (l === null) break; var n = l.alternate; if (n === null) { if (i = l.return, i !== null) { a = i; continue; } break; } if (l.child === n.child) { for (n = l.child; n; ) { if (n === a) return _(l), e; if (n === i) return _(l), t; n = n.sibling; } throw Error(s(188)); } if (a.return !== i.return) a = l, i = n; else { for (var r = !1, o = l.child; o; ) { if (o === a) { r = !0, a = l, i = n; break; } if (o === i) { r = !0, i = l, a = n; break; } o = o.sibling; } if (!r) { for (o = n.child; o; ) { if (o === a) { r = !0, a = n, i = l; break; } if (o === i) { r = !0, i = n, a = l; break; } o = o.sibling; } if (!r) throw Error(s(189)); } } if (a.alternate !== i) throw Error(s(190)); } if (a.tag !== 3) throw Error(s(188)); return a.stateNode.current === a ? e : t; } function K(e) { var t = e.tag; if (t === 5 || t === 26 || t === 27 || t === 6) return e; for (e = e.child; e !== null; ) { if (t = K(e), t !== null) return t; e = e.sibling; } return null; } var D = Object.assign, ce = Symbol.for("react.element"), Je = Symbol.for("react.transitional.element"), je = Symbol.for("react.portal"), Ue = Symbol.for("react.fragment"), Ct = Symbol.for("react.strict_mode"), We = Symbol.for("react.profiler"), Jt = Symbol.for("react.consumer"), Oe = Symbol.for("react.context"), rt = Symbol.for("react.forward_ref"), zt = Symbol.for("react.suspense"), Re = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), qe = Symbol.for("react.lazy"), wt = Symbol.for("react.activity"), Ya = Symbol.for("react.memo_cache_sentinel"), St = Symbol.iterator; function Be(e) { return e === null || typeof e != "object" ? null : (e = St && e[St] || e["@@iterator"], typeof e == "function" ? e : null); } var xa = Symbol.for("react.client.reference"); function _t(e) { if (e == null) return null; if (typeof e == "function") return e.$$typeof === xa ? null : e.displayName || e.name || null; if (typeof e == "string") return e; switch (e) { case Ue: return "Fragment"; case We: return "Profiler"; case Ct: return "StrictMode"; case zt: return "Suspense"; case Re: return "SuspenseList"; case wt: return "Activity"; } if (typeof e == "object") switch (e.$$typeof) { case je: return "Portal"; case Oe: return e.displayName || "Context"; case Jt: return (e._context.displayName || "Context") + ".Consumer"; case rt: var t = e.render; return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e; case Q: return t = e.displayName || null, t !== null ? t : _t(e.type) || "Memo"; case qe: t = e._payload, e = e._init; try { return _t(e(t)); } catch { } } return null; } var bt = Array.isArray, v = V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = N.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = { pending: !1, data: null, method: null, action: null }, ee = [], le = -1; function f(e) { return { current: e }; } function z(e) { 0 > le || (e.current = ee[le], ee[le] = null, le--); } function E(e, t) { le++, ee[le] = e.current, e.current = t; } var A = f(null), j = f(null), B = f(null), F = f(null); function He(e, t) { switch (E(B, t), E(j, e), E(A, null), t.nodeType) { case 9: case 11: e = (e = t.documentElement) && (e = e.namespaceURI) ? Bd(e) : 0; break; default: if (e = t.tagName, t = t.namespaceURI) t = Bd(t), e = Yd(t, e); else switch (e) { case "svg": e = 1; break; case "math": e = 2; break; default: e = 0; } } z(A), E(A, e); } function pe() { z(A), z(j), z(B); } function Ci(e) { e.memoizedState !== null && E(F, e); var t = A.current, a = Yd(t, e.type); t !== a && (E(j, e), E(A, a)); } function Sl(e) { j.current === e && (z(A), z(j)), F.current === e && (z(F), bl._currentValue = U); } var Gn, pu; function za(e) { if (Gn === void 0) try { throw Error(); } catch (a) { var t = a.stack.trim().match(/\n( *(at )?)/); Gn = t && t[1] || "", pu = -1 < a.stack.indexOf(` at`) ? " (<anonymous>)" : -1 < a.stack.indexOf("@") ? "@unknown:0:0" : ""; } return ` ` + Gn + e + pu; } var Xn = !1; function Qn(e, t) { if (!e || Xn) return ""; Xn = !0; var a = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { var i = { DetermineComponentFrameRoot: function() { try { if (t) { var x = function() { throw Error(); }; if (Object.defineProperty(x.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(x, []); } catch (h) { var m = h; } Reflect.construct(e, [], x); } else { try { x.call(); } catch (h) { m = h; } e.call(x.prototype); } } else { try { throw Error(); } catch (h) { m = h; } (x = e()) && typeof x.catch == "function" && x.catch(function() { }); } } catch (h) { if (h && m && typeof h.stack == "string") return [h.stack, m.stack]; } return [null, null]; } }; i.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; var l = Object.getOwnPropertyDescriptor( i.DetermineComponentFrameRoot, "name" ); l && l.configurable && Object.defineProperty( i.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" } ); var n = i.DetermineComponentFrameRoot(), r = n[0], o = n[1]; if (r && o) { var u = r.split(` `), p = o.split(` `); for (l = i = 0; i < u.length && !u[i].includes("DetermineComponentFrameRoot"); ) i++; for (; l < p.length && !p[l].includes( "DetermineComponentFrameRoot" ); ) l++; if (i === u.length || l === p.length) for (i = u.length - 1, l = p.length - 1; 1 <= i && 0 <= l && u[i] !== p[l]; ) l--; for (; 1 <= i && 0 <= l; i--, l--) if (u[i] !== p[l]) { if (i !== 1 || l !== 1) do if (i--, l--, 0 > l || u[i] !== p[l]) { var b = ` ` + u[i].replace(" at new ", " at "); return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), b; } while (1 <= i && 0 <= l); break; } } } finally { Xn = !1, Error.prepareStackTrace = a; } return (a = e ? e.displayName || e.name : "") ? za(a) : ""; } function _s(e, t) { switch (e.tag) { case 26: case 27: case 5: return za(e.type); case 16: return za("Lazy"); case 13: return e.child !== t && t !== null ? za("Suspense Fallback") : za("Suspense"); case 19: return za("SuspenseList"); case 0: case 15: return Qn(e.type, !1); case 11: return Qn(e.type.render, !1); case 1: return Qn(e.type, !0); case 31: return za("Activity"); default: return ""; } } function mu(e) { try { var t = "", a = null; do t += _s(e, a), a = e, e = e.return; while (e); return t; } catch (i) { return ` Error generating stack: ` + i.message + ` ` + i.stack; } } var Zn = Object.prototype.hasOwnProperty, Vn = S.unstable_scheduleCallback, Kn = S.unstable_cancelCallback, Ms = S.unstable_shouldYield, Os = S.unstable_requestPaint, $e = S.unstable_now, Ds = S.unstable_getCurrentPriorityLevel, hu = S.unstable_ImmediatePriority, bu = S.unstable_UserBlockingPriority, kl = S.unstable_NormalPriority, Us = S.unstable_LowPriority, vu = S.unstable_IdlePriority, Hs = S.log, Ns = S.unstable_setDisableYieldValue, _i = null, Fe = null; function Wt(e) { if (typeof Hs == "function" && Ns(e), Fe && typeof Fe.setStrictMode == "function") try { Fe.setStrictMode(_i, e); } catch { } } var Ie = Math.clz32 ? Math.clz32 : qs, js = Math.log, Rs = Math.LN2; function qs(e) { return e >>>= 0, e === 0 ? 32 : 31 - (js(e) / Rs | 0) | 0; } var El = 256, Tl = 262144, Al = 4194304; function wa(e) { var t = e & 42; if (t !== 0) return t; 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: return 64; case 128: return 128; case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: return e & 261888; case 262144: case 524288: case 1048576: case 2097152: return e & 3932160; case 4194304: case 8388608: case 16777216: case 33554432: return e & 62914560; case 67108864: return 67108864; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 0; default: return e; } } function Cl(e, t, a) { var i = e.pendingLanes; if (i === 0) return 0; var l = 0, n = e.suspendedLanes, r = e.pingedLanes; e = e.warmLanes; var o = i & 134217727; return o !== 0 ? (i = o & ~n, i !== 0 ? l = wa(i) : (r &= o, r !== 0 ? l = wa(r) : a || (a = o & ~e, a !== 0 && (l = wa(a))))) : (o = i & ~n, o !== 0 ? l = wa(o) : r !== 0 ? l = wa(r) : a || (a = i & ~e, a !== 0 && (l = wa(a)))), l === 0 ? 0 : t !== 0 && t !== l && (t & n) === 0 && (n = l & -l, a = t & -t, n >= a || n === 32 && (a & 4194048) !== 0) ? t : l; } function Mi(e, t) { return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0; } function Bs(e, t) { switch (e) { case 1: case 2: case 4: case 8: case 64: return t + 250; case 16: case 32: 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: return -1; case 67108864: case 134217728: case 268435456: case 536870912: case 1073741824: return -1; default: return -1; } } function yu() { var e = Al; return Al <<= 1, (Al & 62914560) === 0 && (Al = 4194304), e; } function Jn(e) { for (var t = [], a = 0; 31 > a; a++) t.push(e); return t; } function Oi(e, t) { e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0); } function Ys(e, t, a, i, l, n) { var r = e.pendingLanes; e.pendingLanes = a, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= a, e.entangledLanes &= a, e.errorRecoveryDisabledLanes &= a, e.shellSuspendCounter = 0; var o = e.entanglements, u = e.expirationTimes, p = e.hiddenUpdates; for (a = r & ~a; 0 < a; ) { var b = 31 - Ie(a), x = 1 << b; o[b] = 0, u[b] = -1; var m = p[b]; if (m !== null) for (p[b] = null, b = 0; b < m.length; b++) { var h = m[b]; h !== null && (h.lane &= -536870913); } a &= ~x; } i !== 0 && xu(e, i, 0), n !== 0 && l === 0 && e.tag !== 0 && (e.suspendedLanes |= n & ~(r & ~t)); } function xu(e, t, a) { e.pendingLanes |= t, e.suspendedLanes &= ~t; var i = 31 - Ie(t); e.entangledLanes |= t, e.entanglements[i] = e.entanglements[i] | 1073741824 | a & 261930; } function zu(e, t) { var a = e.entangledLanes |= t; for (e = e.entanglements; a; ) { var i = 31 - Ie(a), l = 1 << i; l & t | e[i] & t && (e[i] |= t), a &= ~l; } } function wu(e, t) { var a = t & -t; return a = (a & 42) !== 0 ? 1 : Wn(a), (a & (e.suspendedLanes | t)) !== 0 ? 0 : a; } function Wn(e) { switch (e) { case 2: e = 1; break; case 8: e = 4; break; case 32: e = 16; break; 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: e = 128; break; case 268435456: e = 134217728; break; default: e = 0; } return e; } function $n(e) { return e &= -e, 2 < e ? 8 < e ? (e & 134217727) !== 0 ? 32 : 268435456 : 8 : 2; } function Su() { var e = k.p; return e !== 0 ? e : (e = window.event, e === void 0 ? 32 : cs(e.type)); } function ku(e, t) { var a = k.p; try { return k.p = e, t(); } finally { k.p = a; } } var $t = Math.random().toString(36).slice(2), Te = "__reactFiber$" + $t, Ye = "__reactProps$" + $t, La = "__reactContainer$" + $t, Fn = "__reactEvents$" + $t, Ls = "__reactListeners$" + $t, Gs = "__reactHandles$" + $t, Eu = "__reactResources$" + $t, Di = "__reactMarker$" + $t; function In(e) { delete e[Te], delete e[Ye], delete e[Fn], delete e[Ls], delete e[Gs]; } function Ga(e) { var t = e[Te]; if (t) return t; for (var a = e.parentNode; a; ) { if (t = a[La] || a[Te]) { if (a = t.alternate, t.child !== null || a !== null && a.child !== null) for (e = Kd(e); e !== null; ) { if (a = e[Te]) return a; e = Kd(e); } return t; } e = a, a = e.parentNode; } return null; } function Xa(e) { if (e = e[Te] || e[La]) { var t = e.tag; if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e; } return null; } function Ui(e) { var t = e.tag; if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode; throw Error(s(33)); } function Qa(e) { var t = e[Eu]; return t || (t = e[Eu] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), t; } function Se(e) { e[Di] = !0; } var Tu = /* @__PURE__ */ new Set(), Au = {}; function Sa(e, t) { Za(e, t), Za(e + "Capture", t); } function Za(e, t) { for (Au[e] = t, e = 0; e < t.length; e++) Tu.add(t[e]); } var Xs = RegExp( "^[: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]*$" ), Cu = {}, _u = {}; function Qs(e) { return Zn.call(_u, e) ? !0 : Zn.call(Cu, e) ? !1 : Xs.test(e) ? _u[e] = !0 : (Cu[e] = !0, !1); } function _l(e, t, a) { if (Qs(t)) if (a === null) e.removeAttribute(t); else { switch (typeof a) { case "undefined": case "function": case "symbol": e.removeAttribute(t); return; case "boolean": var i = t.toLowerCase().slice(0, 5); if (i !== "data-" && i !== "aria-") { e.removeAttribute(t); return; } } e.setAttribute(t, "" + a); } } function Ml(e, t, a) { if (a === null) e.removeAttribute(t); else { switch (typeof a) { case "undefined": case "function": case "symbol": case "boolean": e.removeAttribute(t); return; } e.setAttribute(t, "" + a); } } function Mt(e, t, a, i) { if (i === null) e.removeAttribute(a); else { switch (typeof i) { case "undefined": case "function": case "symbol": case "boolean": e.removeAttribute(a); return; } e.setAttributeNS(t, a, "" + i); } } function ot(e) { switch (typeof e) { case "bigint": case "boolean": case "number": case "string": case "undefined": return e; case "object": return e; default: return ""; } } function Mu(e) { var t = e.type; return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio"); } function Zs(e, t, a) { var i = Object.getOwnPropertyDescriptor( e.constructor.prototype, t ); if (!e.hasOwnProperty(t) && typeof i < "u" && typeof i.get == "function" && typeof i.set == "function") { var l = i.get, n = i.set; return Object.defineProperty(e, t, { configurable: !0, get: function() { return l.call(this); }, set: function(r) { a = "" + r, n.call(this, r); } }), Object.defineProperty(e, t, { enumerable: i.enumerable }), { getValue: function() { return a; }, setValue: function(r) { a = "" + r; }, stopTracking: function() { e._valueTracker = null, delete e[t]; } }; } } function Pn(e) { if (!e._valueTracker) { var t = Mu(e) ? "checked" : "value"; e._valueTracker = Zs( e, t, "" + e[t] ); } } function Ou(e) { if (!e) return !1; var t = e._valueTracker; if (!t) return !0; var a = t.getValue(), i = ""; return e && (i = Mu(e) ? e.checked ? "true" : "false" : e.value), e = i, e !== a ? (t.setValue(e), !0) : !1; } function Ol(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; } } var Vs = /[\n"\\]/g; function ut(e) { return e.replace( Vs, function(t) { return "\\" + t.charCodeAt(0).toString(16) + " "; } ); } function er(e, t, a, i, l, n, r, o) { e.name = "", r != null && typeof r != "function" && typeof r != "symbol" && typeof r != "boolean" ? e.type = r : e.removeAttribute("type"), t != null ? r === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + ot(t)) : e.value !== "" + ot(t) && (e.value = "" + ot(t)) : r !== "submit" && r !== "reset" || e.removeAttribute("value"), t != null ? tr(e, r, ot(t)) : a != null ? tr(e, r, ot(a)) : i != null && e.removeAttribute("value"), l == null && n != null && (e.defaultChecked = !!n), l != null && (e.checked = l && typeof l != "function" && typeof l != "symbol"), o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.name = "" + ot(o) : e.removeAttribute("name"); } function Du(e, t, a, i, l, n, r, o) { if (n != null && typeof n != "function" && typeof n != "symbol" && typeof n != "boolean" && (e.type = n), t != null || a != null) { if (!(n !== "submit" && n !== "reset" || t != null)) { Pn(e); return; } a = a != null ? "" + ot(a) : "", t = t != null ? "" + ot(t) : a, o || t === e.value || (e.value = t), e.defaultValue = t; } i = i ?? l, i = typeof i != "function" && typeof i != "symbol" && !!i, e.checked = o ? e.checked : !!i, e.defaultChecked = !!i, r != null && typeof r != "function" && typeof r != "symbol" && typeof r != "boolean" && (e.name = r), Pn(e); } function tr(e, t, a) { t === "number" && Ol(e.ownerDocument) === e || e.defaultValue === "" + a || (e.defaultValue = "" + a); } function Va(e, t, a, i) { if (e = e.options, t) { t = {}; for (var l = 0; l < a.length; l++) t["$" + a[l]] = !0; for (a = 0; a < e.length; a++) l = t.hasOwnProperty("$" + e[a].value), e[a].selected !== l && (e[a].selected = l), l && i && (e[a].defaultSelected = !0); } else { for (a = "" + ot(a), t = null, l = 0; l < e.length; l++) { if (e[l].value === a) { e[l].selected = !0, i && (e[l].defaultSelected = !0); return; } t !== null || e[l].disabled || (t = e[l]); } t !== null && (t.selected = !0); } } function Uu(e, t, a) { if (t != null && (t = "" + ot(t), t !== e.value && (e.value = t), a == null)) { e.defaultValue !== t && (e.defaultValue = t); return; } e.defaultValue = a != null ? "" + ot(a) : ""; } function Hu(e, t, a, i) { if (t == null) { if (i != null) { if (a != null) throw Error(s(92)); if (bt(i)) { if (1 < i.length) throw Error(s(93)); i = i[0]; } a = i; } a == null && (a = ""), t = a; } a = ot(t), e.defaultValue = a, i = e.textContent, i === a && i !== "" && i !== null && (e.value = i), Pn(e); } function Ka(e, t) { if (t) { var a = e.firstChild; if (a && a === e.lastChild && a.nodeType === 3) { a.nodeValue = t; return; } } e.textContent = t; } var Ks = new Set( "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGrou