function FF(A, t) { for (var a = 0; a < t.length; a++) { const S = t[a]; if (typeof S != "string" && !Array.isArray(S)) { for (const l in S) if (l !== "default" && !(l in A)) { const s = Object.getOwnPropertyDescriptor(S, l); s && Object.defineProperty(A, l, s.get ? s : { enumerable: !0, get: () => S[l] }) } } } return Object.freeze(Object.defineProperty(A, Symbol.toStringTag, { value: "Module" })) } (function() { const t = document.createElement("link").relList; if (t && t.supports && t.supports("modulepreload")) return; for (const l of document.querySelectorAll('link[rel="modulepreload"]')) S(l); new MutationObserver(l => { for (const s of l) if (s.type === "childList") for (const E of s.addedNodes) E.tagName === "LINK" && E.rel === "modulepreload" && S(E) } ).observe(document, { childList: !0, subtree: !0 }); function a(l) { const s = {}; return l.integrity && (s.integrity = l.integrity), l.referrerPolicy && (s.referrerPolicy = l.referrerPolicy), l.crossOrigin === "use-credentials" ? s.credentials = "include" : l.crossOrigin === "anonymous" ? s.credentials = "omit" : s.credentials = "same-origin", s } function S(l) { if (l.ep) return; l.ep = !0; const s = a(l); fetch(l.href, s) } } )(); function sY(A) { return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A } var wb = { exports: {} } , Wk = {}; /** * @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 gW; function xF() { if (gW) return Wk; gW = 1; var A = Symbol.for("react.transitional.element") , t = Symbol.for("react.fragment"); function a(S, l, s) { var E = null; if (s !== void 0 && (E = "" + s), l.key !== void 0 && (E = "" + l.key), "key" in l) { s = {}; for (var k in l) k !== "key" && (s[k] = l[k]) } else s = l; return l = s.ref, { $$typeof: A, type: S, key: E, ref: l !== void 0 ? l : null, props: s } } return Wk.Fragment = t, Wk.jsx = a, Wk.jsxs = a, Wk } var WW; function yF() { return WW || (WW = 1, wb.exports = xF()), wb.exports } var i = yF() , FI = class { constructor() { this.listeners = new Set, this.subscribe = this.subscribe.bind(this) } subscribe(A) { return this.listeners.add(A), this.onSubscribe(), () => { this.listeners.delete(A), this.onUnsubscribe() } } hasListeners() { return this.listeners.size > 0 } onSubscribe() {} onUnsubscribe() {} } , LF = class extends FI { #A; #t; #a; constructor() { super(), this.#a = A => { if (typeof window < "u" && window.addEventListener) { const t = () => A(); return window.addEventListener("visibilitychange", t, !1), () => { window.removeEventListener("visibilitychange", t) } } } } onSubscribe() { this.#t || this.setEventListener(this.#a) } onUnsubscribe() { this.hasListeners() || (this.#t?.(), this.#t = void 0) } setEventListener(A) { this.#a = A, this.#t?.(), this.#t = A(t => { typeof t == "boolean" ? this.setFocused(t) : this.onFocus() } ) } setFocused(A) { this.#A !== A && (this.#A = A, this.onFocus()) } onFocus() { const A = this.isFocused(); this.listeners.forEach(t => { t(A) } ) } isFocused() { return typeof this.#A == "boolean" ? this.#A : globalThis.document?.visibilityState !== "hidden" } } , YQ = new LF , wF = { setTimeout: (A, t) => setTimeout(A, t), clearTimeout: A => clearTimeout(A), setInterval: (A, t) => setInterval(A, t), clearInterval: A => clearInterval(A) } , zF = class { #A = wF; #t = !1; setTimeoutProvider(A) { this.#A = A } setTimeout(A, t) { return this.#A.setTimeout(A, t) } clearTimeout(A) { this.#A.clearTimeout(A) } setInterval(A, t) { return this.#A.setInterval(A, t) } clearInterval(A) { this.#A.clearInterval(A) } } , rI = new zF; function OF(A) { setTimeout(A, 0) } var VF = typeof window > "u" || "Deno" in globalThis; function Ya() {} function DF(A, t) { return typeof A == "function" ? A(t) : A } function Ah(A) { return typeof A == "number" && A >= 0 && A !== 1 / 0 } function IY(A, t) { return Math.max(A + (t || 0) - Date.now(), 0) } function ks(A, t) { return typeof A == "function" ? A(t) : A } function RS(A, t) { return typeof A == "function" ? A(t) : A } function cW(A, t) { const {type: a="all", exact: S, fetchStatus: l, predicate: s, queryKey: E, stale: k} = A; if (E) { if (S) { if (t.queryHash !== NQ(E, t.options)) return !1 } else if (!hp(t.queryKey, E)) return !1 } if (a !== "all") { const p = t.isActive(); if (a === "active" && !p || a === "inactive" && p) return !1 } return !(typeof k == "boolean" && t.isStale() !== k || l && l !== t.state.fetchStatus || s && !s(t)) } function KW(A, t) { const {exact: a, status: S, predicate: l, mutationKey: s} = A; if (s) { if (!t.options.mutationKey) return !1; if (a) { if (bs(t.options.mutationKey) !== bs(s)) return !1 } else if (!hp(t.options.mutationKey, s)) return !1 } return !(S && t.state.status !== S || l && !l(t)) } function NQ(A, t) { return (t?.queryKeyHashFn || bs)(A) } function bs(A) { return JSON.stringify(A, (t, a) => ah(a) ? Object.keys(a).sort().reduce( (S, l) => (S[l] = a[l], S), {}) : a) } function hp(A, t) { return A === t ? !0 : typeof A != typeof t ? !1 : A && t && typeof A == "object" && typeof t == "object" ? Object.keys(t).every(a => hp(A[a], t[a])) : !1 } var fF = Object.prototype.hasOwnProperty; function uQ(A, t, a=0) { if (A === t) return A; if (a > 500) return t; const S = GW(A) && GW(t); if (!S && !(ah(A) && ah(t))) return t; const s = (S ? A : Object.keys(A)).length , E = S ? t : Object.keys(t) , k = E.length , p = S ? new Array(k) : {}; let m = 0; for (let n = 0; n < k; n++) { const J = S ? n : E[n] , b = A[J] , h = t[J]; if (b === h) { p[J] = b, (S ? n < s : fF.call(A, J)) && m++; continue } if (b === null || h === null || typeof b != "object" || typeof h != "object") { p[J] = h; continue } const U = uQ(b, h, a + 1); p[J] = U, U === b && m++ } return s === k && m === s ? A : p } function Qp(A, t) { if (!t || Object.keys(A).length !== Object.keys(t).length) return !1; for (const a in A) if (A[a] !== t[a]) return !1; return !0 } function GW(A) { return Array.isArray(A) && A.length === Object.keys(A).length } function ah(A) { if (!YW(A)) return !1; const t = A.constructor; if (t === void 0) return !0; const a = t.prototype; return !(!YW(a) || !a.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(A) !== Object.prototype) } function YW(A) { return Object.prototype.toString.call(A) === "[object Object]" } function vF(A) { return new Promise(t => { rI.setTimeout(t, A) } ) } function Sh(A, t, a) { return typeof a.structuralSharing == "function" ? a.structuralSharing(A, t) : a.structuralSharing !== !1 ? uQ(A, t) : t } function XF(A, t, a=0) { const S = [...A, t]; return a && S.length > a ? S.slice(1) : S } function HF(A, t, a=0) { const S = [t, ...A]; return a && S.length > a ? S.slice(0, -1) : S } var ZS = Symbol(); function EY(A, t) { return !A.queryFn && t?.initialPromise ? () => t.initialPromise : !A.queryFn || A.queryFn === ZS ? () => Promise.reject(new Error(`Missing queryFn: '${A.queryHash}'`)) : A.queryFn } function MQ(A, t) { return typeof A == "function" ? A(...t) : !!A } function PF(A, t, a) { let S = !1, l; return Object.defineProperty(A, "signal", { enumerable: !0, get: () => (l ??= t(), S || (S = !0, l.aborted ? a() : l.addEventListener("abort", a, { once: !0 })), l) }), A } var Rp = ( () => { let A = () => VF; return { isServer() { return A() }, setIsServer(t) { A = t } } } )(); function ih() { let A, t; const a = new Promise( (l, s) => { A = l, t = s } ); a.status = "pending", a.catch( () => {} ); function S(l) { Object.assign(a, l), delete a.resolve, delete a.reject } return a.resolve = l => { S({ status: "fulfilled", value: l }), A(l) } , a.reject = l => { S({ status: "rejected", reason: l }), t(l) } , a } var _F = OF; function $F() { let A = [] , t = 0 , a = k => { k() } , S = k => { k() } , l = _F; const s = k => { t ? A.push(k) : l( () => { a(k) } ) } , E = () => { const k = A; A = [], k.length && l( () => { S( () => { k.forEach(p => { a(p) } ) } ) } ) } ; return { batch: k => { let p; t++; try { p = k() } finally { t--, t || E() } return p } , batchCalls: k => (...p) => { s( () => { k(...p) } ) } , schedule: s, setNotifyFunction: k => { a = k } , setBatchNotifyFunction: k => { S = k } , setScheduler: k => { l = k } } } var FA = $F() , tx = class extends FI { #A = !0; #t; #a; constructor() { super(), this.#a = A => { if (typeof window < "u" && window.addEventListener) { const t = () => A(!0) , a = () => A(!1); return window.addEventListener("online", t, !1), window.addEventListener("offline", a, !1), () => { window.removeEventListener("online", t), window.removeEventListener("offline", a) } } } } onSubscribe() { this.#t || this.setEventListener(this.#a) } onUnsubscribe() { this.hasListeners() || (this.#t?.(), this.#t = void 0) } setEventListener(A) { this.#a = A, this.#t?.(), this.#t = A(this.setOnline.bind(this)) } setOnline(A) { this.#A !== A && (this.#A = A, this.listeners.forEach(a => { a(A) } )) } isOnline() { return this.#A } } , TJ = new tx; function Ax(A) { return Math.min(1e3 * 2 ** A, 3e4) } function eY(A) { return (A ?? "online") === "online" ? TJ.isOnline() : !0 } var lh = class extends Error { constructor(A) { super("CancelledError"), this.revert = A?.revert, this.silent = A?.silent } } ; function kY(A) { let t = !1, a = 0, S; const l = ih() , s = () => l.status !== "pending" , E = R => { if (!s()) { const Z = new lh(R); b(Z), A.onCancel?.(Z) } } , k = () => { t = !0 } , p = () => { t = !1 } , m = () => YQ.isFocused() && (A.networkMode === "always" || TJ.isOnline()) && A.canRun() , n = () => eY(A.networkMode) && A.canRun() , J = R => { s() || (S?.(), l.resolve(R)) } , b = R => { s() || (S?.(), l.reject(R)) } , h = () => new Promise(R => { S = Z => { (s() || m()) && R(Z) } , A.onPause?.() } ).then( () => { S = void 0, s() || A.onContinue?.() } ) , U = () => { if (s()) return; let R; const Z = a === 0 ? A.initialPromise : void 0; try { R = Z ?? A.fn() } catch (g) { R = Promise.reject(g) } Promise.resolve(R).then(J).catch(g => { if (s()) return; const W = A.retry ?? (Rp.isServer() ? 0 : 3) , c = A.retryDelay ?? Ax , u = typeof c == "function" ? c(a, g) : c , Y = W === !0 || typeof W == "number" && a < W || typeof W == "function" && W(a, g); if (t || !Y) { b(g); return } a++, A.onFail?.(a, g), vF(u).then( () => m() ? void 0 : h()).then( () => { t ? b(g) : U() } ) } ) } ; return { promise: l, status: () => l.status, cancel: E, continue: () => (S?.(), l), cancelRetry: k, continueRetry: p, canStart: n, start: () => (n() ? U() : h().then(U), l) } } var pY = class { #A; destroy() { this.clearGcTimeout() } scheduleGc() { this.clearGcTimeout(), Ah(this.gcTime) && (this.#A = rI.setTimeout( () => { this.optionalRemove() } , this.gcTime)) } updateGcTime(A) { this.gcTime = Math.max(this.gcTime || 0, A ?? (Rp.isServer() ? 1 / 0 : 300 * 1e3)) } clearGcTimeout() { this.#A !== void 0 && (rI.clearTimeout(this.#A), this.#A = void 0) } } ; function ax(A) { return { onFetch: (t, a) => { const S = t.options , l = t.fetchOptions?.meta?.fetchMore?.direction , s = t.state.data?.pages || [] , E = t.state.data?.pageParams || []; let k = { pages: [], pageParams: [] } , p = 0; const m = async () => { let n = !1; const J = U => { PF(U, () => t.signal, () => n = !0) } , b = EY(t.options, t.fetchOptions) , h = async (U, R, Z) => { if (n) return Promise.reject(t.signal.reason); if (R == null && U.pages.length) return Promise.resolve(U); const W = ( () => { const B = { client: t.client, queryKey: t.queryKey, pageParam: R, direction: Z ? "backward" : "forward", meta: t.options.meta }; return J(B), B } )() , c = await b(W) , {maxPages: u} = t.options , Y = Z ? HF : XF; return { pages: Y(U.pages, c, u), pageParams: Y(U.pageParams, R, u) } } ; if (l && s.length) { const U = l === "backward" , R = U ? rY : sh , Z = { pages: s, pageParams: E } , g = R(S, Z); k = await h(Z, g, U) } else { const U = A ?? s.length; do { const R = p === 0 ? E[0] ?? S.initialPageParam : sh(S, k); if (p > 0 && R == null) break; k = await h(k, R), p++ } while (p < U) } return k } ; t.options.persister ? t.fetchFn = () => t.options.persister?.(m, { client: t.client, queryKey: t.queryKey, meta: t.options.meta, signal: t.signal }, a) : t.fetchFn = m } } } function sh(A, {pages: t, pageParams: a}) { const S = t.length - 1; return t.length > 0 ? A.getNextPageParam(t[S], t, a[S], a) : void 0 } function rY(A, {pages: t, pageParams: a}) { return t.length > 0 ? A.getPreviousPageParam?.(t[0], t, a[0], a) : void 0 } function Sx(A, t) { return t ? sh(A, t) != null : !1 } function ix(A, t) { return !t || !A.getPreviousPageParam ? !1 : rY(A, t) != null } var lx = class extends pY { #A; #t; #a; #S; #i; #l; #I; #s; constructor(A) { super(), this.#s = !1, this.#I = A.defaultOptions, this.setOptions(A.options), this.observers = [], this.#i = A.client, this.#S = this.#i.getQueryCache(), this.queryKey = A.queryKey, this.queryHash = A.queryHash, this.#t = uW(this.options), this.state = A.state ?? this.#t, this.scheduleGc() } get meta() { return this.options.meta } get queryType() { return this.#A } get promise() { return this.#l?.promise } setOptions(A) { if (this.options = { ...this.#I, ...A }, A?._type && (this.#A = A._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) { const t = uW(this.options); t.data !== void 0 && (this.setState(NW(t.data, t.dataUpdatedAt)), this.#t = t) } } optionalRemove() { !this.observers.length && this.state.fetchStatus === "idle" && this.#S.remove(this) } setData(A, t) { const a = Sh(this.state.data, A, this.options); return this.#E({ data: a, type: "success", dataUpdatedAt: t?.updatedAt, manual: t?.manual }), a } setState(A) { this.#E({ type: "setState", state: A }) } cancel(A) { const t = this.#l?.promise; return this.#l?.cancel(A), t ? t.then(Ya).catch(Ya) : Promise.resolve() } destroy() { super.destroy(), this.cancel({ silent: !0 }) } get resetState() { return this.#t } reset() { this.destroy(), this.setState(this.resetState) } isActive() { return this.observers.some(A => RS(A.options.enabled, this) !== !1) } isDisabled() { return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ZS || !this.isFetched() } isFetched() { return this.state.dataUpdateCount + this.state.errorUpdateCount > 0 } isStatic() { return this.getObserversCount() > 0 ? this.observers.some(A => ks(A.options.staleTime, this) === "static") : !1 } isStale() { return this.getObserversCount() > 0 ? this.observers.some(A => A.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated } isStaleByTime(A=0) { return this.state.data === void 0 ? !0 : A === "static" ? !1 : this.state.isInvalidated ? !0 : !IY(this.state.dataUpdatedAt, A) } onFocus() { this.observers.find(t => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#l?.continue() } onOnline() { this.observers.find(t => t.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#l?.continue() } addObserver(A) { this.observers.includes(A) || (this.observers.push(A), this.clearGcTimeout(), this.#S.notify({ type: "observerAdded", query: this, observer: A })) } removeObserver(A) { this.observers.includes(A) && (this.observers = this.observers.filter(t => t !== A), this.observers.length || (this.#l && (this.#s || this.#k() ? this.#l.cancel({ revert: !0 }) : this.#l.cancelRetry()), this.scheduleGc()), this.#S.notify({ type: "observerRemoved", query: this, observer: A })) } getObserversCount() { return this.observers.length } #k() { return this.state.fetchStatus === "paused" && this.state.status === "pending" } invalidate() { this.state.isInvalidated || this.#E({ type: "invalidate" }) } async fetch(A, t) { if (this.state.fetchStatus !== "idle" && this.#l?.status() !== "rejected") { if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 }); else if (this.#l) return this.#l.continueRetry(), this.#l.promise } if (A && this.setOptions(A), !this.options.queryFn) { const p = this.observers.find(m => m.options.queryFn); p && this.setOptions(p.options) } const a = new AbortController , S = p => { Object.defineProperty(p, "signal", { enumerable: !0, get: () => (this.#s = !0, a.signal) }) } , l = () => { const p = EY(this.options, t) , n = ( () => { const J = { client: this.#i, queryKey: this.queryKey, meta: this.meta }; return S(J), J } )(); return this.#s = !1, this.options.persister ? this.options.persister(p, n, this) : p(n) } , E = ( () => { const p = { fetchOptions: t, options: this.options, queryKey: this.queryKey, client: this.#i, state: this.state, fetchFn: l }; return S(p), p } )(); (this.#A === "infinite" ? ax(this.options.pages) : this.options.behavior)?.onFetch(E, this), this.#a = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== E.fetchOptions?.meta) && this.#E({ type: "fetch", meta: E.fetchOptions?.meta }), this.#l = kY({ initialPromise: t?.initialPromise, fn: E.fetchFn, onCancel: p => { p instanceof lh && p.revert && this.setState({ ...this.#a, fetchStatus: "idle" }), a.abort() } , onFail: (p, m) => { this.#E({ type: "failed", failureCount: p, error: m }) } , onPause: () => { this.#E({ type: "pause" }) } , onContinue: () => { this.#E({ type: "continue" }) } , retry: E.options.retry, retryDelay: E.options.retryDelay, networkMode: E.options.networkMode, canRun: () => !0 }); try { const p = await this.#l.start(); if (p === void 0) throw new Error(`${this.queryHash} data is undefined`); return this.setData(p), this.#S.config.onSuccess?.(p, this), this.#S.config.onSettled?.(p, this.state.error, this), p } catch (p) { if (p instanceof lh) { if (p.silent) return this.#l.promise; if (p.revert) { if (this.state.data === void 0) throw p; return this.state.data } } throw this.#E({ type: "error", error: p }), this.#S.config.onError?.(p, this), this.#S.config.onSettled?.(this.state.data, p, this), p } finally { this.scheduleGc() } } #E(A) { const t = a => { switch (A.type) { case "failed": return { ...a, fetchFailureCount: A.failureCount, fetchFailureReason: A.error }; case "pause": return { ...a, fetchStatus: "paused" }; case "continue": return { ...a, fetchStatus: "fetching" }; case "fetch": return { ...a, ...mY(a.data, this.options), fetchMeta: A.meta ?? null }; case "success": const S = { ...a, ...NW(A.data, A.dataUpdatedAt), dataUpdateCount: a.dataUpdateCount + 1, ...!A.manual && { fetchStatus: "idle", fetchFailureCount: 0, fetchFailureReason: null } }; return this.#a = A.manual ? S : void 0, S; case "error": const l = A.error; return { ...a, error: l, errorUpdateCount: a.errorUpdateCount + 1, errorUpdatedAt: Date.now(), fetchFailureCount: a.fetchFailureCount + 1, fetchFailureReason: l, fetchStatus: "idle", status: "error", isInvalidated: !0 }; case "invalidate": return { ...a, isInvalidated: !0 }; case "setState": return { ...a, ...A.state } } } ; this.state = t(this.state), FA.batch( () => { this.observers.forEach(a => { a.onQueryUpdate() } ), this.#S.notify({ query: this, type: "updated", action: A }) } ) } } ; function mY(A, t) { return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus: eY(t.networkMode) ? "fetching" : "paused", ...A === void 0 && { error: null, status: "pending" } } } function NW(A, t) { return { data: A, dataUpdatedAt: t ?? Date.now(), error: null, isInvalidated: !1, status: "success" } } function uW(A) { const t = typeof A.initialData == "function" ? A.initialData() : A.initialData , a = t !== void 0 , S = a ? typeof A.initialDataUpdatedAt == "function" ? A.initialDataUpdatedAt() : A.initialDataUpdatedAt : 0; return { data: t, dataUpdateCount: 0, dataUpdatedAt: a ? S ?? Date.now() : 0, error: null, errorUpdateCount: 0, errorUpdatedAt: 0, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: null, isInvalidated: !1, status: a ? "success" : "pending", fetchStatus: "idle" } } var vp = class extends FI { constructor(A, t) { super(), this.options = t, this.#A = A, this.#s = null, this.#I = ih(), this.bindMethods(), this.setOptions(t) } #A; #t = void 0; #a = void 0; #S = void 0; #i; #l; #I; #s; #k; #E; #m; #p; #J; #e; #C = new Set; bindMethods() { this.refetch = this.refetch.bind(this) } onSubscribe() { this.listeners.size === 1 && (this.#t.addObserver(this), MW(this.#t, this.options) ? this.#r() : this.updateResult(), this.#h()) } onUnsubscribe() { this.hasListeners() || this.destroy() } shouldFetchOnReconnect() { return Ih(this.#t, this.options, this.options.refetchOnReconnect) } shouldFetchOnWindowFocus() { return Ih(this.#t, this.options, this.options.refetchOnWindowFocus) } destroy() { this.listeners = new Set, this.#Q(), this.#R(), this.#t.removeObserver(this) } setOptions(A) { const t = this.options , a = this.#t; if (this.options = this.#A.defaultQueryOptions(A), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof RS(this.options.enabled, this.#t) != "boolean") throw new Error("Expected enabled to be a boolean or a callback that returns a boolean"); this.#U(), this.#t.setOptions(this.options), t._defaulted && !Qp(this.options, t) && this.#A.getQueryCache().notify({ type: "observerOptionsUpdated", query: this.#t, observer: this }); const S = this.hasListeners(); S && BW(this.#t, a, this.options, t) && this.#r(), this.updateResult(), S && (this.#t !== a || RS(this.options.enabled, this.#t) !== RS(t.enabled, this.#t) || ks(this.options.staleTime, this.#t) !== ks(t.staleTime, this.#t)) && this.#n(); const l = this.#b(); S && (this.#t !== a || RS(this.options.enabled, this.#t) !== RS(t.enabled, this.#t) || l !== this.#e) && this.#o(l) } getOptimisticResult(A) { const t = this.#A.getQueryCache().build(this.#A, A) , a = this.createResult(t, A); return Ix(this, a) && (this.#S = a, this.#l = this.options, this.#i = this.#t.state), a } getCurrentResult() { return this.#S } trackResult(A, t) { return new Proxy(A,{ get: (a, S) => (this.trackProp(S), t?.(S), S === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && this.#I.status === "pending" && this.#I.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))), Reflect.get(a, S)) }) } trackProp(A) { this.#C.add(A) } getCurrentQuery() { return this.#t } refetch({...A}={}) { return this.fetch({ ...A }) } fetchOptimistic(A) { const t = this.#A.defaultQueryOptions(A) , a = this.#A.getQueryCache().build(this.#A, t); return a.fetch().then( () => this.createResult(a, t)) } fetch(A) { return this.#r({ ...A, cancelRefetch: A.cancelRefetch ?? !0 }).then( () => (this.updateResult(), this.#S)) } #r(A) { this.#U(); let t = this.#t.fetch(this.options, A); return A?.throwOnError || (t = t.catch(Ya)), t } #n() { this.#Q(); const A = ks(this.options.staleTime, this.#t); if (Rp.isServer() || this.#S.isStale || !Ah(A)) return; const a = IY(this.#S.dataUpdatedAt, A) + 1; this.#p = rI.setTimeout( () => { this.#S.isStale || this.updateResult() } , a) } #b() { return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1 } #o(A) { this.#R(), this.#e = A, !(Rp.isServer() || RS(this.options.enabled, this.#t) === !1 || !Ah(this.#e) || this.#e === 0) && (this.#J = rI.setInterval( () => { (this.options.refetchIntervalInBackground || YQ.isFocused()) && this.#r() } , this.#e)) } #h() { this.#n(), this.#o(this.#b()) } #Q() { this.#p !== void 0 && (rI.clearTimeout(this.#p), this.#p = void 0) } #R() { this.#J !== void 0 && (rI.clearInterval(this.#J), this.#J = void 0) } createResult(A, t) { const a = this.#t , S = this.options , l = this.#S , s = this.#i , E = this.#l , p = A !== a ? A.state : this.#a , {state: m} = A; let n = { ...m }, J = !1, b; if (t._optimisticResults) { const M = this.hasListeners() , L = !M && MW(A, t) , v = M && BW(A, a, t, S); (L || v) && (n = { ...n, ...mY(m.data, A.options) }), t._optimisticResults === "isRestoring" && (n.fetchStatus = "idle") } let {error: h, errorUpdatedAt: U, status: R} = n; b = n.data; let Z = !1; if (t.placeholderData !== void 0 && b === void 0 && R === "pending") { let M; l?.isPlaceholderData && t.placeholderData === E?.placeholderData ? (M = l.data, Z = !0) : M = typeof t.placeholderData == "function" ? t.placeholderData(this.#m?.state.data, this.#m) : t.placeholderData, M !== void 0 && (R = "success", b = Sh(l?.data, M, t), J = !0) } if (t.select && b !== void 0 && !Z) if (l && b === s?.data && t.select === this.#k) b = this.#E; else try { this.#k = t.select, b = t.select(b), b = Sh(l?.data, b, t), this.#E = b, this.#s = null } catch (M) { this.#s = M } this.#s && (h = this.#s, b = this.#E, U = Date.now(), R = "error"); const g = n.fetchStatus === "fetching" , W = R === "pending" , c = R === "error" , u = W && g , Y = b !== void 0 , G = { status: R, fetchStatus: n.fetchStatus, isPending: W, isSuccess: R === "success", isError: c, isInitialLoading: u, isLoading: u, data: b, dataUpdatedAt: n.dataUpdatedAt, error: h, errorUpdatedAt: U, failureCount: n.fetchFailureCount, failureReason: n.fetchFailureReason, errorUpdateCount: n.errorUpdateCount, isFetched: A.isFetched(), isFetchedAfterMount: n.dataUpdateCount > p.dataUpdateCount || n.errorUpdateCount > p.errorUpdateCount, isFetching: g, isRefetching: g && !W, isLoadingError: c && !Y, isPaused: n.fetchStatus === "paused", isPlaceholderData: J, isRefetchError: c && Y, isStale: BQ(A, t), refetch: this.refetch, promise: this.#I, isEnabled: RS(t.enabled, A) !== !1 }; if (this.options.experimental_prefetchInRender) { const M = G.data !== void 0 , L = G.status === "error" && !M , v = y => { L ? y.reject(G.error) : M && y.resolve(G.data) } , at = () => { const y = this.#I = G.promise = ih(); v(y) } , tt = this.#I; switch (tt.status) { case "pending": A.queryHash === a.queryHash && v(tt); break; case "fulfilled": (L || G.data !== tt.value) && at(); break; case "rejected": (!L || G.error !== tt.reason) && at(); break } } return G } updateResult() { const A = this.#S , t = this.createResult(this.#t, this.options); if (this.#i = this.#t.state, this.#l = this.options, this.#i.data !== void 0 && (this.#m = this.#t), Qp(t, A)) return; this.#S = t; const a = () => { if (!A) return !0; const {notifyOnChangeProps: S} = this.options , l = typeof S == "function" ? S() : S; if (l === "all" || !l && !this.#C.size) return !0; const s = new Set(l ?? this.#C); return this.options.throwOnError && s.add("error"), Object.keys(this.#S).some(E => { const k = E; return this.#S[k] !== A[k] && s.has(k) } ) } ; this.#Z({ listeners: a() }) } #U() { const A = this.#A.getQueryCache().build(this.#A, this.options); if (A === this.#t) return; const t = this.#t; this.#t = A, this.#a = A.state, this.hasListeners() && (t?.removeObserver(this), A.addObserver(this)) } onQueryUpdate() { this.updateResult(), this.hasListeners() && this.#h() } #Z(A) { FA.batch( () => { A.listeners && this.listeners.forEach(t => { t(this.#S) } ), this.#A.getQueryCache().notify({ query: this.#t, type: "observerResultsUpdated" }) } ) } } ; function sx(A, t) { return RS(t.enabled, A) !== !1 && A.state.data === void 0 && !(A.state.status === "error" && RS(t.retryOnMount, A) === !1) } function MW(A, t) { return sx(A, t) || A.state.data !== void 0 && Ih(A, t, t.refetchOnMount) } function Ih(A, t, a) { if (RS(t.enabled, A) !== !1 && ks(t.staleTime, A) !== "static") { const S = typeof a == "function" ? a(A) : a; return S === "always" || S !== !1 && BQ(A, t) } return !1 } function BW(A, t, a, S) { return (A !== t || RS(S.enabled, A) === !1) && (!a.suspense || A.state.status !== "error") && BQ(A, a) } function BQ(A, t) { return RS(t.enabled, A) !== !1 && A.isStaleByTime(ks(t.staleTime, A)) } function Ix(A, t) { return !Qp(A.getCurrentResult(), t) } var JY = class extends vp { constructor(A, t) { super(A, t) } bindMethods() { super.bindMethods(), this.fetchNextPage = this.fetchNextPage.bind(this), this.fetchPreviousPage = this.fetchPreviousPage.bind(this) } setOptions(A) { A._type = "infinite", super.setOptions(A) } getOptimisticResult(A) { return A._type = "infinite", super.getOptimisticResult(A) } fetchNextPage(A) { return this.fetch({ ...A, meta: { fetchMore: { direction: "forward" } } }) } fetchPreviousPage(A) { return this.fetch({ ...A, meta: { fetchMore: { direction: "backward" } } }) } createResult(A, t) { const {state: a} = A , S = super.createResult(A, t) , {isFetching: l, isRefetching: s, isError: E, isRefetchError: k} = S , p = a.fetchMeta?.fetchMore?.direction , m = E && p === "forward" , n = l && p === "forward" , J = E && p === "backward" , b = l && p === "backward"; return { ...S, fetchNextPage: this.fetchNextPage, fetchPreviousPage: this.fetchPreviousPage, hasNextPage: Sx(t, a.data), hasPreviousPage: ix(t, a.data), isFetchNextPageError: m, isFetchingNextPage: n, isFetchPreviousPageError: J, isFetchingPreviousPage: b, isRefetchError: k && !m && !J, isRefetching: s && !n && !b } } } , Ex = class extends pY { #A; #t; #a; #S; constructor(A) { super(), this.#A = A.client, this.mutationId = A.mutationId, this.#a = A.mutationCache, this.#t = [], this.state = A.state || CY(), this.setOptions(A.options), this.scheduleGc() } setOptions(A) { this.options = A, this.updateGcTime(this.options.gcTime) } get meta() { return this.options.meta } addObserver(A) { this.#t.includes(A) || (this.#t.push(A), this.clearGcTimeout(), this.#a.notify({ type: "observerAdded", mutation: this, observer: A })) } removeObserver(A) { this.#t = this.#t.filter(t => t !== A), this.scheduleGc(), this.#a.notify({ type: "observerRemoved", mutation: this, observer: A }) } optionalRemove() { this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#a.remove(this)) } continue() { return this.#S?.continue() ?? this.execute(this.state.variables) } async execute(A) { const t = () => { this.#i({ type: "continue" }) } , a = { client: this.#A, meta: this.options.meta, mutationKey: this.options.mutationKey }; this.#S = kY({ fn: () => this.options.mutationFn ? this.options.mutationFn(A, a) : Promise.reject(new Error("No mutationFn found")), onFail: (s, E) => { this.#i({ type: "failed", failureCount: s, error: E }) } , onPause: () => { this.#i({ type: "pause" }) } , onContinue: t, retry: this.options.retry ?? 0, retryDelay: this.options.retryDelay, networkMode: this.options.networkMode, canRun: () => this.#a.canRun(this) }); const S = this.state.status === "pending" , l = !this.#S.canStart(); try { if (S) t(); else { this.#i({ type: "pending", variables: A, isPaused: l }), this.#a.config.onMutate && await this.#a.config.onMutate(A, this, a); const E = await this.options.onMutate?.(A, a); E !== this.state.context && this.#i({ type: "pending", context: E, variables: A, isPaused: l }) } const s = await this.#S.start(); return await this.#a.config.onSuccess?.(s, A, this.state.context, this, a), await this.options.onSuccess?.(s, A, this.state.context, a), await this.#a.config.onSettled?.(s, null, this.state.variables, this.state.context, this, a), await this.options.onSettled?.(s, null, A, this.state.context, a), this.#i({ type: "success", data: s }), s } catch (s) { try { await this.#a.config.onError?.(s, A, this.state.context, this, a) } catch (E) { Promise.reject(E) } try { await this.options.onError?.(s, A, this.state.context, a) } catch (E) { Promise.reject(E) } try { await this.#a.config.onSettled?.(void 0, s, this.state.variables, this.state.context, this, a) } catch (E) { Promise.reject(E) } try { await this.options.onSettled?.(void 0, s, A, this.state.context, a) } catch (E) { Promise.reject(E) } throw this.#i({ type: "error", error: s }), s } finally { this.#a.runNext(this) } } #i(A) { const t = a => { switch (A.type) { case "failed": return { ...a, failureCount: A.failureCount, failureReason: A.error }; case "pause": return { ...a, isPaused: !0 }; case "continue": return { ...a, isPaused: !1 }; case "pending": return { ...a, context: A.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: A.isPaused, status: "pending", variables: A.variables, submittedAt: Date.now() }; case "success": return { ...a, data: A.data, failureCount: 0, failureReason: null, error: null, status: "success", isPaused: !1 }; case "error": return { ...a, data: void 0, error: A.error, failureCount: a.failureCount + 1, failureReason: A.error, isPaused: !1, status: "error" } } } ; this.state = t(this.state), FA.batch( () => { this.#t.forEach(a => { a.onMutationUpdate(A) } ), this.#a.notify({ mutation: this, type: "updated", action: A }) } ) } } ; function CY() { return { context: void 0, data: void 0, error: null, failureCount: 0, failureReason: null, isPaused: !1, status: "idle", variables: void 0, submittedAt: 0 } } var ex = class extends FI { constructor(A={}) { super(), this.config = A, this.#A = new Set, this.#t = new Map, this.#a = 0 } #A; #t; #a; build(A, t, a) { const S = new Ex({ client: A, mutationCache: this, mutationId: ++this.#a, options: A.defaultMutationOptions(t), state: a }); return this.add(S), S } add(A) { this.#A.add(A); const t = Gm(A); if (typeof t == "string") { const a = this.#t.get(t); a ? a.push(A) : this.#t.set(t, [A]) } this.notify({ type: "added", mutation: A }) } remove(A) { if (this.#A.delete(A)) { const t = Gm(A); if (typeof t == "string") { const a = this.#t.get(t); if (a) if (a.length > 1) { const S = a.indexOf(A); S !== -1 && a.splice(S, 1) } else a[0] === A && this.#t.delete(t) } } this.notify({ type: "removed", mutation: A }) } canRun(A) { const t = Gm(A); if (typeof t == "string") { const S = this.#t.get(t)?.find(l => l.state.status === "pending"); return !S || S === A } else return !0 } runNext(A) { const t = Gm(A); return typeof t == "string" ? this.#t.get(t)?.find(S => S !== A && S.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve() } clear() { FA.batch( () => { this.#A.forEach(A => { this.notify({ type: "removed", mutation: A }) } ), this.#A.clear(), this.#t.clear() } ) } getAll() { return Array.from(this.#A) } find(A) { const t = { exact: !0, ...A }; return this.getAll().find(a => KW(t, a)) } findAll(A={}) { return this.getAll().filter(t => KW(A, t)) } notify(A) { FA.batch( () => { this.listeners.forEach(t => { t(A) } ) } ) } resumePausedMutations() { const A = this.getAll().filter(t => t.state.isPaused); return FA.batch( () => Promise.all(A.map(t => t.continue().catch(Ya)))) } } ; function Gm(A) { return A.options.scope?.id } var kx = class extends FI { #A; #t = void 0; #a; #S; constructor(t, a) { super(), this.#A = t, this.setOptions(a), this.bindMethods(), this.#i() } bindMethods() { this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this) } setOptions(t) { const a = this.options; this.options = this.#A.defaultMutationOptions(t), Qp(this.options, a) || this.#A.getMutationCache().notify({ type: "observerOptionsUpdated", mutation: this.#a, observer: this }), a?.mutationKey && this.options.mutationKey && bs(a.mutationKey) !== bs(this.options.mutationKey) ? this.reset() : this.#a?.state.status === "pending" && this.#a.setOptions(this.options) } onUnsubscribe() { this.hasListeners() || this.#a?.removeObserver(this) } onMutationUpdate(t) { this.#i(), this.#l(t) } getCurrentResult() { return this.#t } reset() { this.#a?.removeObserver(this), this.#a = void 0, this.#i(), this.#l() } mutate(t, a) { return this.#S = a, this.#a?.removeObserver(this), this.#a = this.#A.getMutationCache().build(this.#A, this.options), this.#a.addObserver(this), this.#a.execute(t) } #i() { const t = this.#a?.state ?? CY(); this.#t = { ...t, isPending: t.status === "pending", isSuccess: t.status === "success", isError: t.status === "error", isIdle: t.status === "idle", mutate: this.mutate, reset: this.reset } } #l(t) { FA.batch( () => { if (this.#S && this.hasListeners()) { const a = this.#t.variables , S = this.#t.context , l = { client: this.#A, meta: this.options.meta, mutationKey: this.options.mutationKey }; if (t?.type === "success") { try { this.#S.onSuccess?.(t.data, a, S, l) } catch (s) { Promise.reject(s) } try { this.#S.onSettled?.(t.data, null, a, S, l) } catch (s) { Promise.reject(s) } } else if (t?.type === "error") { try { this.#S.onError?.(t.error, a, S, l) } catch (s) { Promise.reject(s) } try { this.#S.onSettled?.(void 0, t.error, a, S, l) } catch (s) { Promise.reject(s) } } } this.listeners.forEach(a => { a(this.#t) } ) } ) } } ; function TW(A, t) { const a = new Set(t); return A.filter(S => !a.has(S)) } function px(A, t, a) { const S = A.slice(0); return S[t] = a, S } var rx = class extends FI { #A; #t; #a; #S; #i; #l; #I; #s; #k; #E = []; constructor(A, t, a) { super(), this.#A = A, this.#S = a, this.#a = [], this.#i = [], this.#t = [], this.setQueries(t) } onSubscribe() { this.listeners.size === 1 && this.#i.forEach(A => { A.subscribe(t => { this.#C(A, t) } ) } ) } onUnsubscribe() { this.listeners.size || this.destroy() } destroy() { this.listeners = new Set, this.#i.forEach(A => { A.destroy() } ) } setQueries(A, t) { this.#a = A, this.#S = t, FA.batch( () => { const a = this.#i , S = this.#e(this.#a); S.forEach(n => n.observer.setOptions(n.defaultedQueryOptions)); const l = S.map(n => n.observer) , s = l.map(n => n.getCurrentResult()) , E = a.length !== l.length , k = l.some( (n, J) => n !== a[J]) , p = E || k , m = p ? !0 : s.some( (n, J) => { const b = this.#t[J]; return !b || !Qp(n, b) } ); !p && !m || (p && (this.#E = S, this.#i = l), this.#t = s, this.hasListeners() && (p && (TW(a, l).forEach(n => { n.destroy() } ), TW(l, a).forEach(n => { n.subscribe(J => { this.#C(n, J) } ) } )), this.#r())) } ) } getCurrentResult() { return this.#t } getQueries() { return this.#i.map(A => A.getCurrentQuery()) } getObservers() { return this.#i } getOptimisticResult(A, t) { const a = this.#e(A) , S = a.map(s => s.observer.getOptimisticResult(s.defaultedQueryOptions)) , l = a.map(s => s.defaultedQueryOptions.queryHash); return [S, s => this.#p(s ?? S, t, l), () => this.#m(S, a)] } #m(A, t) { return t.map( (a, S) => { const l = A[S]; return a.defaultedQueryOptions.notifyOnChangeProps ? l : a.observer.trackResult(l, s => { t.forEach(E => { E.observer.trackProp(s) } ) } ) } ) } #p(A, t, a) { if (t) { const S = this.#k , l = a !== void 0 && S !== void 0 && (S.length !== a.length || a.some( (s, E) => s !== S[E])); return (!this.#l || this.#t !== this.#s || l || t !== this.#I) && (this.#I = t, this.#s = this.#t, a !== void 0 && (this.#k = a), this.#l = uQ(this.#l, t(A))), this.#l } return A } #J() { return this.#S?.combine !== void 0 && this.#i.some( (A, t) => A.options.suspense && this.#t[t]?.data === void 0) } #e(A) { const t = new Map; this.#i.forEach(S => { const l = S.options.queryHash; if (!l) return; const s = t.get(l); s ? s.push(S) : t.set(l, [S]) } ); const a = []; return A.forEach(S => { const l = this.#A.defaultQueryOptions(S) , E = t.get(l.queryHash)?.shift() ?? new vp(this.#A,l); a.push({ defaultedQueryOptions: l, observer: E }) } ), a } #C(A, t) { const a = this.#i.indexOf(A); a !== -1 && (this.#t = px(this.#t, a, t), this.#r()) } #r() { if (this.hasListeners()) { const A = this.#m(this.#t, this.#E) , t = this.#J() , a = this.#l , S = t ? a : this.#p(A, this.#S?.combine); (t || a !== S) && FA.batch( () => { this.listeners.forEach(l => { l(this.#t) } ) } ) } } } , mx = class extends FI { constructor(A={}) { super(), this.config = A, this.#A = new Map } #A; build(A, t, a) { const S = t.queryKey , l = t.queryHash ?? NQ(S, t); let s = this.get(l); return s || (s = new lx({ client: A, queryKey: S, queryHash: l, options: A.defaultQueryOptions(t), state: a, defaultOptions: A.getQueryDefaults(S) }), this.add(s)), s } add(A) { this.#A.has(A.queryHash) || (this.#A.set(A.queryHash, A), this.notify({ type: "added", query: A })) } remove(A) { const t = this.#A.get(A.queryHash); t && (A.destroy(), t === A && this.#A.delete(A.queryHash), this.notify({ type: "removed", query: A })) } clear() { FA.batch( () => { this.getAll().forEach(A => { this.remove(A) } ) } ) } get(A) { return this.#A.get(A) } getAll() { return [...this.#A.values()] } find(A) { const t = { exact: !0, ...A }; return this.getAll().find(a => cW(t, a)) } findAll(A={}) { const t = this.getAll(); return Object.keys(A).length > 0 ? t.filter(a => cW(A, a)) : t } notify(A) { FA.batch( () => { this.listeners.forEach(t => { t(A) } ) } ) } onFocus() { FA.batch( () => { this.getAll().forEach(A => { A.onFocus() } ) } ) } onOnline() { FA.batch( () => { this.getAll().forEach(A => { A.onOnline() } ) } ) } } , Jx = class { #A; #t; #a; #S; #i; #l; #I; #s; constructor(A={}) { this.#A = A.queryCache || new mx, this.#t = A.mutationCache || new ex, this.#a = A.defaultOptions || {}, this.#S = new Map, this.#i = new Map, this.#l = 0 } mount() { this.#l++, this.#l === 1 && (this.#I = YQ.subscribe(async A => { A && (await this.resumePausedMutations(), this.#A.onFocus()) } ), this.#s = TJ.subscribe(async A => { A && (await this.resumePausedMutations(), this.#A.onOnline()) } )) } unmount() { this.#l--, this.#l === 0 && (this.#I?.(), this.#I = void 0, this.#s?.(), this.#s = void 0) } isFetching(A) { return this.#A.findAll({ ...A, fetchStatus: "fetching" }).length } isMutating(A) { return this.#t.findAll({ ...A, status: "pending" }).length } getQueryData(A) { const t = this.defaultQueryOptions({ queryKey: A }); return this.#A.get(t.queryHash)?.state.data } ensureQueryData(A) { const t = this.defaultQueryOptions(A) , a = this.#A.build(this, t) , S = a.state.data; return S === void 0 ? this.fetchQuery(A) : (A.revalidateIfStale && a.isStaleByTime(ks(t.staleTime, a)) && this.prefetchQuery(t), Promise.resolve(S)) } getQueriesData(A) { return this.#A.findAll(A).map( ({queryKey: t, state: a}) => { const S = a.data; return [t, S] } ) } setQueryData(A, t, a) { const S = this.defaultQueryOptions({ queryKey: A }) , s = this.#A.get(S.queryHash)?.state.data , E = DF(t, s); if (E !== void 0) return this.#A.build(this, S).setData(E, { ...a, manual: !0 }) } setQueriesData(A, t, a) { return FA.batch( () => this.#A.findAll(A).map( ({queryKey: S}) => [S, this.setQueryData(S, t, a)])) } getQueryState(A) { const t = this.defaultQueryOptions({ queryKey: A }); return this.#A.get(t.queryHash)?.state } removeQueries(A) { const t = this.#A; FA.batch( () => { t.findAll(A).forEach(a => { t.remove(a) } ) } ) } resetQueries(A, t) { const a = this.#A; return FA.batch( () => (a.findAll(A).forEach(S => { S.reset() } ), this.refetchQueries({ type: "active", ...A }, t))) } cancelQueries(A, t={}) { const a = { revert: !0, ...t } , S = FA.batch( () => this.#A.findAll(A).map(l => l.cancel(a))); return Promise.all(S).then(Ya).catch(Ya) } invalidateQueries(A, t={}) { return FA.batch( () => (this.#A.findAll(A).forEach(a => { a.invalidate() } ), A?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({ ...A, type: A?.refetchType ?? A?.type ?? "active" }, t))) } refetchQueries(A, t={}) { const a = { ...t, cancelRefetch: t.cancelRefetch ?? !0 } , S = FA.batch( () => this.#A.findAll(A).filter(l => !l.isDisabled() && !l.isStatic()).map(l => { let s = l.fetch(void 0, a); return a.throwOnError || (s = s.catch(Ya)), l.state.fetchStatus === "paused" ? Promise.resolve() : s } )); return Promise.all(S).then(Ya) } fetchQuery(A) { const t = this.defaultQueryOptions(A); t.retry === void 0 && (t.retry = !1); const a = this.#A.build(this, t); return a.isStaleByTime(ks(t.staleTime, a)) ? a.fetch(t) : Promise.resolve(a.state.data) } prefetchQuery(A) { return this.fetchQuery(A).then(Ya).catch(Ya) } fetchInfiniteQuery(A) { return A._type = "infinite", this.fetchQuery(A) } prefetchInfiniteQuery(A) { return this.fetchInfiniteQuery(A).then(Ya).catch(Ya) } ensureInfiniteQueryData(A) { return A._type = "infinite", this.ensureQueryData(A) } resumePausedMutations() { return TJ.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve() } getQueryCache() { return this.#A } getMutationCache() { return this.#t } getDefaultOptions() { return this.#a } setDefaultOptions(A) { this.#a = A } setQueryDefaults(A, t) { this.#S.set(bs(A), { queryKey: A, defaultOptions: t }) } getQueryDefaults(A) { const t = [...this.#S.values()] , a = {}; return t.forEach(S => { hp(A, S.queryKey) && Object.assign(a, S.defaultOptions) } ), a } setMutationDefaults(A, t) { this.#i.set(bs(A), { mutationKey: A, defaultOptions: t }) } getMutationDefaults(A) { const t = [...this.#i.values()] , a = {}; return t.forEach(S => { hp(A, S.mutationKey) && Object.assign(a, S.defaultOptions) } ), a } defaultQueryOptions(A) { if (A._defaulted) return A; const t = { ...this.#a.queries, ...this.getQueryDefaults(A.queryKey), ...A, _defaulted: !0 }; return t.queryHash || (t.queryHash = NQ(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 === ZS && (t.enabled = !1), t } defaultMutationOptions(A) { return A?._defaulted ? A : { ...this.#a.mutations, ...A?.mutationKey && this.getMutationDefaults(A.mutationKey), ...A, _defaulted: !0 } } clear() { this.#A.clear(), this.#t.clear() } } , zb = { exports: {} } , Bt = {}; /** * @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 jW; function Cx() { if (jW) return Bt; jW = 1; var A = Symbol.for("react.transitional.element") , t = Symbol.for("react.portal") , a = Symbol.for("react.fragment") , S = Symbol.for("react.strict_mode") , l = Symbol.for("react.profiler") , s = Symbol.for("react.consumer") , E = Symbol.for("react.context") , k = Symbol.for("react.forward_ref") , p = Symbol.for("react.suspense") , m = Symbol.for("react.memo") , n = Symbol.for("react.lazy") , J = Symbol.for("react.activity") , b = Symbol.iterator; function h(j) { return j === null || typeof j != "object" ? null : (j = b && j[b] || j["@@iterator"], typeof j == "function" ? j : null) } var U = { isMounted: function() { return !1 }, enqueueForceUpdate: function() {}, enqueueReplaceState: function() {}, enqueueSetState: function() {} } , R = Object.assign , Z = {}; function g(j, H, V) { this.props = j, this.context = H, this.refs = Z, this.updater = V || U } g.prototype.isReactComponent = {}, g.prototype.setState = function(j, H) { if (typeof j != "object" && typeof j != "function" && j != 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, j, H, "setState") } , g.prototype.forceUpdate = function(j) { this.updater.enqueueForceUpdate(this, j, "forceUpdate") } ; function W() {} W.prototype = g.prototype; function c(j, H, V) { this.props = j, this.context = H, this.refs = Z, this.updater = V || U } var u = c.prototype = new W; u.constructor = c, R(u, g.prototype), u.isPureReactComponent = !0; var Y = Array.isArray; function B() {} var G = { H: null, A: null, T: null, S: null } , M = Object.prototype.hasOwnProperty; function L(j, H, V) { var P = V.ref; return { $$typeof: A, type: j, key: H, ref: P !== void 0 ? P : null, props: V } } function v(j, H) { return L(j.type, H, j.props) } function at(j) { return typeof j == "object" && j !== null && j.$$typeof === A } function tt(j) { var H = { "=": "=0", ":": "=2" }; return "$" + j.replace(/[=:]/g, function(V) { return H[V] }) } var y = /\/+/g; function St(j, H) { return typeof j == "object" && j !== null && j.key != null ? tt("" + j.key) : H.toString(36) } function It(j) { switch (j.status) { case "fulfilled": return j.value; case "rejected": throw j.reason; default: switch (typeof j.status == "string" ? j.then(B, B) : (j.status = "pending", j.then(function(H) { j.status === "pending" && (j.status = "fulfilled", j.value = H) }, function(H) { j.status === "pending" && (j.status = "rejected", j.reason = H) })), j.status) { case "fulfilled": return j.value; case "rejected": throw j.reason } } throw j } function T(j, H, V, P, et) { var Ct = typeof j; (Ct === "undefined" || Ct === "boolean") && (j = null); var lt = !1; if (j === null) lt = !0; else switch (Ct) { case "bigint": case "string": case "number": lt = !0; break; case "object": switch (j.$$typeof) { case A: case t: lt = !0; break; case n: return lt = j._init, T(lt(j._payload), H, V, P, et) } } if (lt) return et = et(j), lt = P === "" ? "." + St(j, 0) : P, Y(et) ? (V = "", lt != null && (V = lt.replace(y, "$&/") + "/"), T(et, H, V, "", function(qt) { return qt })) : et != null && (at(et) && (et = v(et, V + (et.key == null || j && j.key === et.key ? "" : ("" + et.key).replace(y, "$&/") + "/") + lt)), H.push(et)), 1; lt = 0; var nt = P === "" ? "." : P + ":"; if (Y(j)) for (var Gt = 0; Gt < j.length; Gt++) P = j[Gt], Ct = nt + St(P, Gt), lt += T(P, H, V, Ct, et); else if (Gt = h(j), typeof Gt == "function") for (j = Gt.call(j), Gt = 0; !(P = j.next()).done; ) P = P.value, Ct = nt + St(P, Gt++), lt += T(P, H, V, Ct, et); else if (Ct === "object") { if (typeof j.then == "function") return T(It(j), H, V, P, et); throw H = String(j), Error("Objects are not valid as a React child (found: " + (H === "[object Object]" ? "object with keys {" + Object.keys(j).join(", ") + "}" : H) + "). If you meant to render a collection of children, use an array instead.") } return lt } function z(j, H, V) { if (j == null) return j; var P = [] , et = 0; return T(j, P, "", "", function(Ct) { return H.call(V, Ct, et++) }), P } function q(j) { if (j._status === -1) { var H = j._result; H = H(), H.then(function(V) { (j._status === 0 || j._status === -1) && (j._status = 1, j._result = V) }, function(V) { (j._status === 0 || j._status === -1) && (j._status = 2, j._result = V) }), j._status === -1 && (j._status = 0, j._result = H) } if (j._status === 1) return j._result.default; throw j._result } var _ = typeof reportError == "function" ? reportError : function(j) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { var H = new window.ErrorEvent("error",{ bubbles: !0, cancelable: !0, message: typeof j == "object" && j !== null && typeof j.message == "string" ? String(j.message) : String(j), error: j }); if (!window.dispatchEvent(H)) return } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", j); return } console.error(j) } , rt = { map: z, forEach: function(j, H, V) { z(j, function() { H.apply(this, arguments) }, V) }, count: function(j) { var H = 0; return z(j, function() { H++ }), H }, toArray: function(j) { return z(j, function(H) { return H }) || [] }, only: function(j) { if (!at(j)) throw Error("React.Children.only expected to receive a single React element child."); return j } }; return Bt.Activity = J, Bt.Children = rt, Bt.Component = g, Bt.Fragment = a, Bt.Profiler = l, Bt.PureComponent = c, Bt.StrictMode = S, Bt.Suspense = p, Bt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = G, Bt.__COMPILER_RUNTIME = { __proto__: null, c: function(j) { return G.H.useMemoCache(j) } }, Bt.cache = function(j) { return function() { return j.apply(null, arguments) } } , Bt.cacheSignal = function() { return null } , Bt.cloneElement = function(j, H, V) { if (j == null) throw Error("The argument must be a React element, but you passed " + j + "."); var P = R({}, j.props) , et = j.key; if (H != null) for (Ct in H.key !== void 0 && (et = "" + H.key), H) !M.call(H, Ct) || Ct === "key" || Ct === "__self" || Ct === "__source" || Ct === "ref" && H.ref === void 0 || (P[Ct] = H[Ct]); var Ct = arguments.length - 2; if (Ct === 1) P.children = V; else if (1 < Ct) { for (var lt = Array(Ct), nt = 0; nt < Ct; nt++) lt[nt] = arguments[nt + 2]; P.children = lt } return L(j.type, et, P) } , Bt.createContext = function(j) { return j = { $$typeof: E, _currentValue: j, _currentValue2: j, _threadCount: 0, Provider: null, Consumer: null }, j.Provider = j, j.Consumer = { $$typeof: s, _context: j }, j } , Bt.createElement = function(j, H, V) { var P, et = {}, Ct = null; if (H != null) for (P in H.key !== void 0 && (Ct = "" + H.key), H) M.call(H, P) && P !== "key" && P !== "__self" && P !== "__source" && (et[P] = H[P]); var lt = arguments.length - 2; if (lt === 1) et.children = V; else if (1 < lt) { for (var nt = Array(lt), Gt = 0; Gt < lt; Gt++) nt[Gt] = arguments[Gt + 2]; et.children = nt } if (j && j.defaultProps) for (P in lt = j.defaultProps, lt) et[P] === void 0 && (et[P] = lt[P]); return L(j, Ct, et) } , Bt.createRef = function() { return { current: null } } , Bt.forwardRef = function(j) { return { $$typeof: k, render: j } } , Bt.isValidElement = at, Bt.lazy = function(j) { return { $$typeof: n, _payload: { _status: -1, _result: j }, _init: q } } , Bt.memo = function(j, H) { return { $$typeof: m, type: j, compare: H === void 0 ? null : H } } , Bt.startTransition = function(j) { var H = G.T , V = {}; G.T = V; try { var P = j() , et = G.S; et !== null && et(V, P), typeof P == "object" && P !== null && typeof P.then == "function" && P.then(B, _) } catch (Ct) { _(Ct) } finally { H !== null && V.types !== null && (H.types = V.types), G.T = H } } , Bt.unstable_useCacheRefresh = function() { return G.H.useCacheRefresh() } , Bt.use = function(j) { return G.H.use(j) } , Bt.useActionState = function(j, H, V) { return G.H.useActionState(j, H, V) } , Bt.useCallback = function(j, H) { return G.H.useCallback(j, H) } , Bt.useContext = function(j) { return G.H.useContext(j) } , Bt.useDebugValue = function() {} , Bt.useDeferredValue = function(j, H) { return G.H.useDeferredValue(j, H) } , Bt.useEffect = function(j, H) { return G.H.useEffect(j, H) } , Bt.useEffectEvent = function(j) { return G.H.useEffectEvent(j) } , Bt.useId = function() { return G.H.useId() } , Bt.useImperativeHandle = function(j, H, V) { return G.H.useImperativeHandle(j, H, V) } , Bt.useInsertionEffect = function(j, H) { return G.H.useInsertionEffect(j, H) } , Bt.useLayoutEffect = function(j, H) { return G.H.useLayoutEffect(j, H) } , Bt.useMemo = function(j, H) { return G.H.useMemo(j, H) } , Bt.useOptimistic = function(j, H) { return G.H.useOptimistic(j, H) } , Bt.useReducer = function(j, H, V) { return G.H.useReducer(j, H, V) } , Bt.useRef = function(j) { return G.H.useRef(j) } , Bt.useState = function(j) { return G.H.useState(j) } , Bt.useSyncExternalStore = function(j, H, V) { return G.H.useSyncExternalStore(j, H, V) } , Bt.useTransition = function() { return G.H.useTransition() } , Bt.version = "19.2.1", Bt } var qW; function Xp() { return qW || (qW = 1, zb.exports = Cx()), zb.exports } var d = Xp(); const O = sY(d) , TC = FF({ __proto__: null, default: O }, [d]); var nY = d.createContext(void 0) , Hp = A => { const t = d.useContext(nY); if (A) return A; if (!t) throw new Error("No QueryClient set, use QueryClientProvider to set one"); return t } , nx = ({client: A, children: t}) => (d.useEffect( () => (A.mount(), () => { A.unmount() } ), [A]), i.jsx(nY.Provider, { value: A, children: t })) , bY = d.createContext(!1) , oY = () => d.useContext(bY); bY.Provider; function bx() { let A = !1; return { clearReset: () => { A = !1 } , reset: () => { A = !0 } , isReset: () => A } } var ox = d.createContext(bx()) , hY = () => d.useContext(ox) , QY = (A, t, a) => { const S = a?.state.error && typeof A.throwOnError == "function" ? MQ(A.throwOnError, [a.state.error, a]) : A.throwOnError; (A.suspense || A.experimental_prefetchInRender || S) && (t.isReset() || (A.retryOnMount = !1)) } , RY = A => { d.useEffect( () => { A.clearReset() } , [A]) } , UY = ({result: A, errorResetBoundary: t, throwOnError: a, query: S, suspense: l}) => A.isError && !t.isReset() && !A.isFetching && S && (l && A.data === void 0 || MQ(a, [A.error, S])) , TQ = (A, t) => t.state.data === void 0 , ZY = A => { if (A.suspense) { const a = l => l === "static" ? l : Math.max(l ?? 1e3, 1e3) , S = A.staleTime; A.staleTime = typeof S == "function" ? (...l) => a(S(...l)) : a(S), typeof A.gcTime == "number" && (A.gcTime = Math.max(A.gcTime, 1e3)) } } , hx = (A, t) => A.isLoading && A.isFetching && !t , Eh = (A, t) => A?.suspense && t.isPending , eh = (A, t, a) => t.fetchOptimistic(A).catch( () => { a.clearReset() } ); function dY({queries: A, ...t}, a) { const S = Hp(a) , l = oY() , s = hY() , E = d.useMemo( () => A.map(R => { const Z = S.defaultQueryOptions(R); return Z._optimisticResults = l ? "isRestoring" : "optimistic", Z } ), [A, S, l]); E.forEach(R => { ZY(R); const Z = S.getQueryCache().get(R.queryHash); QY(R, s, Z) } ), RY(s); const [k] = d.useState( () => new rx(S,E,t)) , [p,m,n] = k.getOptimisticResult(E, t.combine) , J = !l && t.subscribed !== !1; d.useSyncExternalStore(d.useCallback(R => J ? k.subscribe(FA.batchCalls(R)) : Ya, [k, J]), () => k.getCurrentResult(), () => k.getCurrentResult()), d.useEffect( () => { k.setQueries(E, t) } , [E, t, k]); const h = p.some( (R, Z) => Eh(E[Z], R)) ? p.flatMap( (R, Z) => { const g = E[Z]; if (g && Eh(g, R)) { const W = new vp(S,g); return eh(g, W, s) } return [] } ) : []; if (h.length > 0) throw Promise.all(h); const U = p.find( (R, Z) => { const g = E[Z]; return g && UY({ result: R, errorResetBoundary: s, throwOnError: g.throwOnError, query: S.getQueryCache().get(g.queryHash), suspense: g.suspense }) } ); if (U?.error) throw U.error; return m(n()) } function jC(A, t, a) { const S = oY() , l = hY() , s = Hp(a) , E = s.defaultQueryOptions(A); s.getDefaultOptions().queries?._experimental_beforeQuery?.(E); const k = s.getQueryCache().get(E.queryHash); E._optimisticResults = S ? "isRestoring" : "optimistic", ZY(E), QY(E, l, k), RY(l); const p = !s.getQueryCache().get(E.queryHash) , [m] = d.useState( () => new t(s,E)) , n = m.getOptimisticResult(E) , J = !S && A.subscribed !== !1; if (d.useSyncExternalStore(d.useCallback(b => { const h = J ? m.subscribe(FA.batchCalls(b)) : Ya; return m.updateResult(), h } , [m, J]), () => m.getCurrentResult(), () => m.getCurrentResult()), d.useEffect( () => { m.setOptions(E) } , [E, m]), Eh(E, n)) throw eh(E, m, l); if (UY({ result: n, errorResetBoundary: l, throwOnError: E.throwOnError, query: k, suspense: E.suspense })) throw n.error; return s.getDefaultOptions().queries?._experimental_afterQuery?.(E, n), E.experimental_prefetchInRender && !Rp.isServer() && hx(n, S) && (p ? eh(E, m, l) : k?.promise)?.catch(Ya).finally( () => { m.updateResult() } ), E.notifyOnChangeProps ? n : m.trackResult(n) } function Qx(A, t) { return jC(A, vp, t) } function Rx(A, t) { return jC({ ...A, enabled: !0, suspense: !0, throwOnError: TQ, placeholderData: void 0 }, vp, t) } function Ux(A, t) { return jC({ ...A, enabled: !0, suspense: !0, throwOnError: TQ }, JY, t) } function Zx(A, t) { return dY({ ...A, queries: A.queries.map(a => ({ ...a, suspense: !0, throwOnError: TQ, enabled: !0, placeholderData: void 0 })) }, t) } function dx(A, t) { const a = Hp(t); a.getQueryState(A.queryKey) || a.prefetchQuery(A) } function gx(A, t) { const a = Hp(t); a.getQueryState(A.queryKey) || a.prefetchInfiniteQuery(A) } function Wx(A, t) { const a = Hp(t) , [S] = d.useState( () => new kx(a,A)); d.useEffect( () => { S.setOptions(A) } , [S, A]); const l = d.useSyncExternalStore(d.useCallback(E => S.subscribe(FA.batchCalls(E)), [S]), () => S.getCurrentResult(), () => S.getCurrentResult()) , s = d.useCallback( (E, k) => { S.mutate(E, k).catch(Ya) } , [S]); if (l.error && MQ(S.options.throwOnError, [l.error])) throw l.error; return { ...l, mutate: s, mutateAsync: l.mutate } } function cx(A, t) { return jC(A, JY, t) } function dI(A) { return !!A && !Array.isArray(A) && typeof A == "object" } function Kx() { return Object.create(null) } const Gx = typeof Symbol == "function" && !!Symbol.asyncIterator; function gY(A) { return Gx && dI(A) && Symbol.asyncIterator in A } var Yx = Object.create , WY = Object.defineProperty , Nx = Object.getOwnPropertyDescriptor , cY = Object.getOwnPropertyNames , ux = Object.getPrototypeOf , Mx = Object.prototype.hasOwnProperty , Pp = (A, t) => function() { return t || (0, A[cY(A)[0]])((t = { exports: {} }).exports, t), t.exports } , Bx = (A, t, a, S) => { if (t && typeof t == "object" || typeof t == "function") for (var l = cY(t), s = 0, E = l.length, k; s < E; s++) k = l[s], !Mx.call(A, k) && k !== a && WY(A, k, { get: (p => t[p]).bind(null, k), enumerable: !(S = Nx(t, k)) || S.enumerable }); return A } , qC = (A, t, a) => (a = A != null ? Yx(ux(A)) : {}, Bx(WY(a, "default", { value: A, enumerable: !0 }), A)); const KY = () => {} , FW = A => { Object.freeze && Object.freeze(A) } ; function GY(A, t, a) { var S; const l = t.join("."); return (S = a[l]) !== null && S !== void 0 || (a[l] = new Proxy(KY,{ get(s, E) { if (!(typeof E != "string" || E === "then")) return GY(A, [...t, E], a) }, apply(s, E, k) { const p = t[t.length - 1]; if (p === "valueOf" || p === "toString" || p === "toJSON") return `tRPC.proxy(${t.slice(0, -1).join(".")})`; let m = { args: k, path: t }; return p === "call" ? m = { args: k.length >= 2 ? [k[1]] : [], path: t.slice(0, -1) } : p === "apply" && (m = { args: k.length >= 2 ? k[1] : [], path: t.slice(0, -1) }), FW(m.args), FW(m.path), A(m) } })), a[l] } const FC = A => GY(A, [], Kx()) , jQ = A => new Proxy(KY,{ get(t, a) { if (a !== "then") return A(a) } }); var YY = Pp({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(A, t) { function a(S) { "@babel/helpers - typeof"; return t.exports = a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) { return typeof l } : function(l) { return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l } , t.exports.__esModule = !0, t.exports.default = t.exports, a(S) } t.exports = a, t.exports.__esModule = !0, t.exports.default = t.exports } }) , Tx = Pp({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(A, t) { var a = YY().default; function S(l, s) { if (a(l) != "object" || !l) return l; var E = l[Symbol.toPrimitive]; if (E !== void 0) { var k = E.call(l, s || "default"); if (a(k) != "object") return k; throw new TypeError("@@toPrimitive must return a primitive value.") } return (s === "string" ? String : Number)(l) } t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }) , jx = Pp({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(A, t) { var a = YY().default , S = Tx(); function l(s) { var E = S(s, "string"); return a(E) == "symbol" ? E : E + "" } t.exports = l, t.exports.__esModule = !0, t.exports.default = t.exports } }) , NY = Pp({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(A, t) { var a = jx(); function S(l, s, E) { return (s = a(s)) in l ? Object.defineProperty(l, s, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : l[s] = E, l } t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }) , qQ = Pp({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(A, t) { var a = NY(); function S(s, E) { var k = Object.keys(s); if (Object.getOwnPropertySymbols) { var p = Object.getOwnPropertySymbols(s); E && (p = p.filter(function(m) { return Object.getOwnPropertyDescriptor(s, m).enumerable })), k.push.apply(k, p) } return k } function l(s) { for (var E = 1; E < arguments.length; E++) { var k = arguments[E] != null ? arguments[E] : {}; E % 2 ? S(Object(k), !0).forEach(function(p) { a(s, p, k[p]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(k)) : S(Object(k)).forEach(function(p) { Object.defineProperty(s, p, Object.getOwnPropertyDescriptor(k, p)) }) } return s } t.exports = l, t.exports.__esModule = !0, t.exports.default = t.exports } }); qC(qQ()); qC(NY()); var Ym = qC(qQ()); function qx(A, t) { if ("error" in A) { const S = t.deserialize(A.error); return { ok: !1, error: (0, Ym.default)((0, Ym.default)({}, A), {}, { error: S }) } } return { ok: !0, result: (0, Ym.default)((0, Ym.default)({}, A.result), (!A.result.type || A.result.type === "data") && { type: "data", data: t.deserialize(A.result.data) }) } } var Ob = class extends Error { constructor() { super("Unable to transform response from server") } } ; function Fx(A, t) { let a; try { a = qx(A, t) } catch { throw new Ob } if (!a.ok && (!dI(a.error.error) || typeof a.error.error.code != "number")) throw new Ob; if (a.ok && !dI(a.result)) throw new Ob; return a } qC(qQ()); function xC(A) { const t = { subscribe(a) { let S = null , l = !1 , s = !1 , E = !1; function k() { if (S === null) { E = !0; return } s || (s = !0, typeof S == "function" ? S() : S && S.unsubscribe()) } return S = A({ next(p) { var m; l || (m = a.next) === null || m === void 0 || m.call(a, p) }, error(p) { var m; l || (l = !0, (m = a.error) === null || m === void 0 || m.call(a, p), k()) }, complete() { var p; l || (l = !0, (p = a.complete) === null || p === void 0 || p.call(a), k()) } }), E && k(), { unsubscribe: k } }, pipe(...a) { return a.reduce(xx, t) } }; return t } function xx(A, t) { return t(A) } function yx(A) { const t = new AbortController; return new Promise( (S, l) => { let s = !1; function E() { s || (s = !0, k.unsubscribe()) } t.signal.addEventListener("abort", () => { l(t.signal.reason) } ); const k = A.subscribe({ next(p) { s = !0, S(p), E() }, error(p) { l(p) }, complete() { t.abort(), E() } }) } ) } var Lx = Object.create , uY = Object.defineProperty , wx = Object.getOwnPropertyDescriptor , MY = Object.getOwnPropertyNames , zx = Object.getPrototypeOf , Ox = Object.prototype.hasOwnProperty , gs = (A, t) => function() { return t || (0, A[MY(A)[0]])((t = { exports: {} }).exports, t), t.exports } , Vx = (A, t, a, S) => { if (t && typeof t == "object" || typeof t == "function") for (var l = MY(t), s = 0, E = l.length, k; s < E; s++) k = l[s], !Ox.call(A, k) && k !== a && uY(A, k, { get: (p => t[p]).bind(null, k), enumerable: !(S = wx(t, k)) || S.enumerable }); return A } , xI = (A, t, a) => (a = A != null ? Lx(zx(A)) : {}, Vx(t || !A || !A.__esModule ? uY(a, "default", { value: A, enumerable: !0 }) : a, A)) , Dx = gs({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(A, t) { function a(S, l) { if (S == null) return {}; var s = {}; for (var E in S) if ({}.hasOwnProperty.call(S, E)) { if (l.includes(E)) continue; s[E] = S[E] } return s } t.exports = a, t.exports.__esModule = !0, t.exports.default = t.exports } }) , fx = gs({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(A, t) { var a = Dx(); function S(l, s) { if (l == null) return {}; var E, k, p = a(l, s); if (Object.getOwnPropertySymbols) { var m = Object.getOwnPropertySymbols(l); for (k = 0; k < m.length; k++) E = m[k], s.includes(E) || {}.propertyIsEnumerable.call(l, E) && (p[E] = l[E]) } return p } t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }) , BY = gs({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(A, t) { function a(S) { "@babel/helpers - typeof"; return t.exports = a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) { return typeof l } : function(l) { return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l } , t.exports.__esModule = !0, t.exports.default = t.exports, a(S) } t.exports = a, t.exports.__esModule = !0, t.exports.default = t.exports } }) , vx = gs({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(A, t) { var a = BY().default; function S(l, s) { if (a(l) != "object" || !l) return l; var E = l[Symbol.toPrimitive]; if (E !== void 0) { var k = E.call(l, s || "default"); if (a(k) != "object") return k; throw new TypeError("@@toPrimitive must return a primitive value.") } return (s === "string" ? String : Number)(l) } t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }) , Xx = gs({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(A, t) { var a = BY().default , S = vx(); function l(s) { var E = S(s, "string"); return a(E) == "symbol" ? E : E + "" } t.exports = l, t.exports.__esModule = !0, t.exports.default = t.exports } }) , Hx = gs({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(A, t) { var a = Xx(); function S(l, s, E) { return (s = a(s)) in l ? Object.defineProperty(l, s, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : l[s] = E, l } t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }) , _p = gs({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(A, t) { var a = Hx(); function S(s, E) { var k = Object.keys(s); if (Object.getOwnPropertySymbols) { var p = Object.getOwnPropertySymbols(s); E && (p = p.filter(function(m) { return Object.getOwnPropertyDescriptor(s, m).enumerable })), k.push.apply(k, p) } return k } function l(s) { for (var E = 1; E < arguments.length; E++) { var k = arguments[E] != null ? arguments[E] : {}; E % 2 ? S(Object(k), !0).forEach(function(p) { a(s, p, k[p]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(k)) : S(Object(k)).forEach(function(p) { Object.defineProperty(s, p, Object.getOwnPropertyDescriptor(k, p)) }) } return s } t.exports = l, t.exports.__esModule = !0, t.exports.default = t.exports } }) , Px = xI(fx(), 1) , xW = xI(_p(), 1); const _x = ["cursor", "direction"]; function Zi(A, t, a) { const S = A.flatMap(l => l.split(".")); if (!t && (!a || a === "any")) return S.length ? [S] : []; if (a === "infinite" && dI(t) && ("direction" in t || "cursor" in t)) { const {cursor: l, direction: s} = t , E = (0, Px.default)(t, _x); return [S, { input: E, type: "infinite" }] } return [S, (0, xW.default)((0, xW.default)({}, typeof t < "u" && t !== ZS && { input: t }), a && a !== "any" && { type: a })] } function bJ(A) { return Zi(A, void 0, "any") } var $x = Object.create , TY = Object.defineProperty , ty = Object.getOwnPropertyDescriptor , jY = Object.getOwnPropertyNames , Ay = Object.getPrototypeOf , ay = Object.prototype.hasOwnProperty , ji = (A, t) => function() { return t || (0, A[jY(A)[0]])((t = { exports: {} }).exports, t), t.exports } , Sy = (A, t, a, S) => { if (t && typeof t == "object" || typeof t == "function") for (var l = jY(t), s = 0, E = l.length, k; s < E; s++) k = l[s], !ay.call(A, k) && k !== a && TY(A, k, { get: (p => t[p]).bind(null, k), enumerable: !(S = ty(t, k)) || S.enumerable }); return A } , DA = (A, t, a) => (a = A != null ? $x(Ay(A)) : {}, Sy(TY(a, "default", { value: A, enumerable: !0 }), A)) , qY = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(A, t) { function a(S) { "@babel/helpers - typeof"; return t.exports = a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) { return typeof l } : function(l) { return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l } , t.exports.__esModule = !0, t.exports.default = t.exports, a(S) } t.exports = a, t.exports.__esModule = !0, t.exports.default = t.exports } }) , iy = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(A, t) { var a = qY().default; function S(l, s) { if (a(l) != "object" || !l) return l; var E = l[Symbol.toPrimitive]; if (E !== void 0) { var k = E.call(l, s || "default"); if (a(k) != "object") return k; throw new TypeError("@@toPrimitive must return a primitive value.") } return (s === "string" ? String : Number)(l) } t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }) , ly = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(A, t) { var a = qY().default , S = iy(); function l(s) { var E = S(s, "string"); return a(E) == "symbol" ? E : E + "" } t.exports = l, t.exports.__esModule = !0, t.exports.default = t.exports } }) , yI = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(A, t) { var a = ly(); function S(l, s, E) { return (s = a(s)) in l ? Object.defineProperty(l, s, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : l[s] = E, l } t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }) , Ei = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(A, t) { var a = yI(); function S(s, E) { var k = Object.keys(s); if (Object.getOwnPropertySymbols) { var p = Object.getOwnPropertySymbols(s); E && (p = p.filter(function(m) { return Object.getOwnPropertyDescriptor(s, m).enumerable })), k.push.apply(k, p) } return k } function l(s) { for (var E = 1; E < arguments.length; E++) { var k = arguments[E] != null ? arguments[E] : {}; E % 2 ? S(Object(k), !0).forEach(function(p) { a(s, p, k[p]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(k)) : S(Object(k)).forEach(function(p) { Object.defineProperty(s, p, Object.getOwnPropertyDescriptor(k, p)) }) } return s } t.exports = l, t.exports.__esModule = !0, t.exports.default = t.exports } }); function sy(A) { return t => { let a = 0 , S = null; const l = []; function s() { S || (S = t.subscribe({ next(k) { for (const m of l) { var p; (p = m.next) === null || p === void 0 || p.call(m, k) } }, error(k) { for (const m of l) { var p; (p = m.error) === null || p === void 0 || p.call(m, k) } }, complete() { for (const p of l) { var k; (k = p.complete) === null || k === void 0 || k.call(p) } } })) } function E() { if (a === 0 && S) { const k = S; S = null, k.unsubscribe() } } return xC(k => (a++, l.push(k), s(), { unsubscribe() { a--, E(); const p = l.findIndex(m => m === k); p > -1 && l.splice(p, 1) } })) } } function Iy(A) { let t = A; const a = [] , S = E => { t !== void 0 && E.next(t), a.push(E) } , l = E => { a.splice(a.indexOf(E), 1) } , s = xC(E => (S(E), () => { l(E) } )); return s.next = E => { if (t !== E) { t = E; for (const k of a) k.next(E) } } , s.get = () => t, s } function Ey(A) { return xC(t => { function a(l=0, s=A.op) { const E = A.links[l]; if (!E) throw new Error("No more links to execute - did you forget to add an ending link?"); return E({ op: s, next(p) { return a(l + 1, p) } }) } return a().subscribe(t) } ) } var Nm = DA(yI()) , qE = DA(Ei()); function ey(A) { return A instanceof le } function ky(A) { return dI(A) && dI(A.error) && typeof A.error.code == "number" && typeof A.error.message == "string" } function py(A, t) { return typeof A == "string" ? A : dI(A) && typeof A.message == "string" ? A.message : t } var le = class oJ extends Error { constructor(t, a) { var S, l; const s = a?.cause; super(t, { cause: s }), (0, Nm.default)(this, "cause", void 0), (0, Nm.default)(this, "shape", void 0), (0, Nm.default)(this, "data", void 0), (0, Nm.default)(this, "meta", void 0), this.meta = a?.meta, this.cause = s, this.shape = a == null || (S = a.result) === null || S === void 0 ? void 0 : S.error, this.data = a == null || (l = a.result) === null || l === void 0 ? void 0 : l.error.data, this.name = "TRPCClientError", Object.setPrototypeOf(this, oJ.prototype) } static from(t, a={}) { const S = t; return ey(S) ? (a.meta && (S.meta = (0, qE.default)((0, qE.default)({}, S.meta), a.meta)), S) : ky(S) ? new oJ(S.error.message,(0, qE.default)((0, qE.default)({}, a), {}, { result: S, cause: a.cause })) : new oJ(py(S, "Unknown error"),(0, qE.default)((0, qE.default)({}, a), {}, { cause: S })) } } ; function ry(A) { const t = A; return t ? "input" in t ? t : { input: t, output: t } : { input: { serialize: a => a, deserialize: a => a }, output: { serialize: a => a, deserialize: a => a } } } const yW = A => typeof A == "function"; function my(A) { if (A) return A; if (typeof window < "u" && yW(window.fetch)) return window.fetch; if (typeof globalThis < "u" && yW(globalThis.fetch)) return globalThis.fetch; throw new Error("No fetch implementation found") } var ip = DA(Ei()); function Jy(A) { return { url: A.url.toString(), fetch: A.fetch, transformer: ry(A.transformer), methodOverride: A.methodOverride } } function Cy(A) { const t = {}; for (let a = 0; a < A.length; a++) { const S = A[a]; t[a] = S } return t } const ny = { query: "GET", mutation: "POST", subscription: "PATCH" }; function FY(A) { return "input" in A ? A.transformer.input.serialize(A.input) : Cy(A.inputs.map(t => A.transformer.input.serialize(t))) } const xY = A => { const t = A.url.split("?"); let S = t[0].replace(/\/$/, "") + "/" + A.path; const l = []; if (t[1] && l.push(t[1]), "inputs" in A && l.push("batch=1"), A.type === "query" || A.type === "subscription") { const s = FY(A); s !== void 0 && A.methodOverride !== "POST" && l.push(`input=${encodeURIComponent(JSON.stringify(s))}`) } return l.length && (S += "?" + l.join("&")), S } , by = A => { if (A.type === "query" && A.methodOverride !== "POST") return; const t = FY(A); return t !== void 0 ? JSON.stringify(t) : void 0 } , oy = A => Uy((0, ip.default)((0, ip.default)({}, A), {}, { contentTypeHeader: "application/json", getUrl: xY, getBody: by })); var hy = class extends Error { constructor() { const A = "AbortError"; super(A), this.name = A, this.message = A } } ; const Qy = A => { var t; if (A?.aborted) throw (t = A.throwIfAborted) === null || t === void 0 || t.call(A), typeof DOMException < "u" ? new DOMException("AbortError","AbortError") : new hy } ; async function Ry(A) { var t, a; Qy(A.signal); const S = A.getUrl(A) , l = A.getBody(A) , s = (t = A.methodOverride) !== null && t !== void 0 ? t : ny[A.type] , E = await (async () => { const p = await A.headers(); return Symbol.iterator in p ? Object.fromEntries(p) : p } )() , k = (0, ip.default)((0, ip.default)((0, ip.default)({}, A.contentTypeHeader && s !== "GET" ? { "content-type": A.contentTypeHeader } : {}), A.trpcAcceptHeader ? { [(a = A.trpcAcceptHeaderKey) !== null && a !== void 0 ? a : "trpc-accept"]: A.trpcAcceptHeader } : void 0), E); return my(A.fetch)(S, { method: s, signal: A.signal, body: l, headers: k }) } async function Uy(A) { const t = {} , a = await Ry(A); t.response = a; const S = await a.json(); return t.responseJSON = S, { json: S, meta: t } } DA(Ei()); const LW = () => { throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new") } ; function wW(A) { let t = null , a = null; const S = () => { clearTimeout(a), a = null, t = null } ; function l(k) { const p = [[]]; let m = 0; for (; ; ) { const b = k[m]; if (!b) break; const h = p[p.length - 1]; if (b.aborted) { var n; (n = b.reject) === null || n === void 0 || n.call(b, new Error("Aborted")), m++; continue } if (A.validate(h.concat(b).map(R => R.key))) { h.push(b), m++; continue } if (h.length === 0) { var J; (J = b.reject) === null || J === void 0 || J.call(b, new Error("Input is too big for a single dispatch")), m++; continue } p.push([]) } return p } function s() { const k = l(t); S(); for (const p of k) { if (!p.length) continue; const m = { items: p }; for (const J of p) J.batch = m; A.fetch(m.items.map(J => J.key)).then(async J => { await Promise.all(J.map(async (h, U) => { const R = m.items[U]; try { var Z; const W = await Promise.resolve(h); (Z = R.resolve) === null || Z === void 0 || Z.call(R, W) } catch (W) { var g; (g = R.reject) === null || g === void 0 || g.call(R, W) } R.batch = null, R.reject = null, R.resolve = null } )); for (const h of m.items) { var b; (b = h.reject) === null || b === void 0 || b.call(h, new Error("Missing result")), h.batch = null } } ).catch(J => { for (const h of m.items) { var b; (b = h.reject) === null || b === void 0 || b.call(h, J), h.batch = null } } ) } } function E(k) { var p; const m = { aborted: !1, key: k, batch: null, resolve: LW, reject: LW } , n = new Promise( (J, b) => { var h; m.reject = b, m.resolve = J, (h = t) !== null && h !== void 0 || (t = []), t.push(m) } ); return (p = a) !== null && p !== void 0 || (a = setTimeout(s)), n } return { load: E } } function Zy(...A) { const t = new AbortController , a = A.length; let S = 0; const l = () => { ++S === a && t.abort() } ; for (const s of A) s?.aborted ? l() : s?.addEventListener("abort", l, { once: !0 }); return t.signal } var um = DA(Ei()); function dy(A) { var t, a; const S = Jy(A) , l = (t = A.maxURLLength) !== null && t !== void 0 ? t : 1 / 0 , s = (a = A.maxItems) !== null && a !== void 0 ? a : 1 / 0; return () => { const E = n => ({ validate(J) { if (l === 1 / 0 && s === 1 / 0) return !0; if (J.length > s) return !1; const b = J.map(R => R.path).join(",") , h = J.map(R => R.input); return xY((0, um.default)((0, um.default)({}, S), {}, { type: n, path: b, inputs: h, signal: null })).length <= l }, async fetch(J) { const b = J.map(W => W.path).join(",") , h = J.map(W => W.input) , U = Zy(...J.map(W => W.signal)) , R = await oy((0, um.default)((0, um.default)({}, S), {}, { path: b, inputs: h, type: n, headers() { return A.headers ? typeof A.headers == "function" ? A.headers({ opList: J }) : A.headers : {} }, signal: U })); return (Array.isArray(R.json) ? R.json : J.map( () => R.json)).map(W => ({ meta: R.meta, json: W })) } }) , k = wW(E("query")) , p = wW(E("mutation")) , m = { query: k, mutation: p }; return ({op: n}) => xC(J => { /* istanbul ignore if -- @preserve */ if (n.type === "subscription") throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`"); const h = m[n.type].load(n); let U; return h.then(R => { U = R; const Z = Fx(R.json, S.transformer.output); if (!Z.ok) { J.error(le.from(Z.error, { meta: R.meta })); return } J.next({ context: R.meta, result: Z.result }), J.complete() } ).catch(R => { J.error(le.from(R, { meta: U?.meta })) } ), () => {} } ) } } DA(Ei()); const yY = (A, ...t) => typeof A == "function" ? A(...t) : A; DA(yI()); function gy() { let A, t; return { promise: new Promise( (S, l) => { A = S, t = l } ), resolve: A, reject: t } } async function Wy(A) { const t = await yY(A.url); if (!A.connectionParams) return t; const S = `${t.includes("?") ? "&" : "?"}connectionParams=1`; return t + S } async function cy(A, t) { const a = { method: "connectionParams", data: await yY(A) }; return t.encode(a) } DA(yI()); var ts = DA(yI()); function Ky(A) { const {promise: t, resolve: a, reject: S} = gy(); return A.addEventListener("open", () => { A.removeEventListener("error", S), a() } ), A.addEventListener("error", S), t } function Gy(A, {intervalMs: t, pongTimeoutMs: a}) { let S, l; function s() { S = setTimeout( () => { A.send("PING"), l = setTimeout( () => { A.close() } , a) } , t) } function E() { clearTimeout(S), s() } function k() { clearTimeout(l), E() } A.addEventListener("open", s), A.addEventListener("message", ({data: p}) => { clearTimeout(S), s(), p === "PONG" && k() } ), A.addEventListener("close", () => { clearTimeout(S), clearTimeout(l) } ) } var Yy = class kh { constructor(t) { var a; if ((0, ts.default)(this, "id", ++kh.connectCount), (0, ts.default)(this, "WebSocketPonyfill", void 0), (0, ts.default)(this, "urlOptions", void 0), (0, ts.default)(this, "keepAliveOpts", void 0), (0, ts.default)(this, "encoder", void 0), (0, ts.default)(this, "wsObservable", Iy(null)), (0, ts.default)(this, "openPromise", null), this.WebSocketPonyfill = (a = t.WebSocketPonyfill) !== null && a !== void 0 ? a : WebSocket, !this.WebSocketPonyfill) throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill"); this.urlOptions = t.urlOptions, this.keepAliveOpts = t.keepAlive, this.encoder = t.encoder } get ws() { return this.wsObservable.get() } set ws(t) { this.wsObservable.next(t) } isOpen() { return !!this.ws && this.ws.readyState === this.WebSocketPonyfill.OPEN && !this.openPromise } isClosed() { return !!this.ws && (this.ws.readyState === this.WebSocketPonyfill.CLOSING || this.ws.readyState === this.WebSocketPonyfill.CLOSED) } async open() { var t = this; if (t.openPromise) return t.openPromise; t.id = ++kh.connectCount; const a = Wy(t.urlOptions).then(S => new t.WebSocketPonyfill(S)); t.openPromise = a.then(async S => { t.ws = S, S.binaryType = "arraybuffer", S.addEventListener("message", function({data: l}) { l === "PING" && this.send("PONG") }), t.keepAliveOpts.enabled && Gy(S, t.keepAliveOpts), S.addEventListener("close", () => { t.ws === S && (t.ws = null) } ), await Ky(S), t.urlOptions.connectionParams && S.send(await cy(t.urlOptions.connectionParams, t.encoder)) } ); try { await t.openPromise } finally { t.openPromise = null } } async close() { var t = this; try { await t.openPromise } finally { var a; (a = t.ws) === null || a === void 0 || a.close() } } } ; (0, ts.default)(Yy, "connectCount", 0); DA(yI()); DA(Ei()); var Vb = DA(yI()) , zW = DA(Ei()) , yC = class { constructor(A) { (0, Vb.default)(this, "links", void 0), (0, Vb.default)(this, "runtime", void 0), (0, Vb.default)(this, "requestId", void 0), this.requestId = 0, this.runtime = {}, this.links = A.links.map(t => t(this.runtime)) } $request(A) { var t; return Ey({ links: this.links, op: (0, zW.default)((0, zW.default)({}, A), {}, { context: (t = A.context) !== null && t !== void 0 ? t : {}, id: ++this.requestId }) }).pipe(sy()) } async requestAsPromise(A) { var t = this; try { const a = t.$request(A); return (await yx(a)).result.data } catch (a) { throw le.from(a) } } query(A, t, a) { return this.requestAsPromise({ type: "query", path: A, input: t, context: a?.context, signal: a?.signal }) } mutation(A, t, a) { return this.requestAsPromise({ type: "mutation", path: A, input: t, context: a?.context, signal: a?.signal }) } subscription(A, t, a) { return this.$request({ type: "subscription", path: A, input: t, context: a.context, signal: a.signal }).subscribe({ next(l) { switch (l.result.type) { case "state": { var s; (s = a.onConnectionStateChange) === null || s === void 0 || s.call(a, l.result); break } case "started": { var E; (E = a.onStarted) === null || E === void 0 || E.call(a, { context: l.context }); break } case "stopped": { var k; (k = a.onStopped) === null || k === void 0 || k.call(a); break } case "data": case void 0: { var p; (p = a.onData) === null || p === void 0 || p.call(a, l.result.data); break } } }, error(l) { var s; (s = a.onError) === null || s === void 0 || s.call(a, l) }, complete() { var l; (l = a.onComplete) === null || l === void 0 || l.call(a) } }) } } ; const LY = Symbol.for("trpc_untypedClient") , Ny = { query: "query", mutate: "mutation", subscribe: "subscription" } , uy = A => Ny[A]; function wY(A) { const t = FC( ({path: a, args: S}) => { const l = [...a] , s = uy(l.pop()) , E = l.join("."); return A[s](E, ...S) } ); return jQ(a => a === LY ? A : t[a]) } function My(A) { const t = new yC(A); return wY(t) } function FQ(A) { return A[LY] } DA(Ei()); DA(Ei()); var By = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(A, t) { function a(l) { var s, E, k, p = 2; for (typeof Symbol < "u" && (E = Symbol.asyncIterator, k = Symbol.iterator); p--; ) { if (E && (s = l[E]) != null) return s.call(l); if (k && (s = l[k]) != null) return new S(s.call(l)); E = "@@asyncIterator", k = "@@iterator" } throw new TypeError("Object is not async iterable") } function S(l) { function s(E) { if (Object(E) !== E) return Promise.reject(new TypeError(E + " is not an object.")); var k = E.done; return Promise.resolve(E.value).then(function(p) { return { value: p, done: k } }) } return S = function(k) { this.s = k, this.n = k.next } , S.prototype = { s: null, n: null, next: function() { return s(this.n.apply(this.s, arguments)) }, return: function(k) { var p = this.s.return; return p === void 0 ? Promise.resolve({ value: k, done: !0 }) : s(p.apply(this.s, arguments)) }, throw: function(k) { var p = this.s.return; return p === void 0 ? Promise.reject(k) : s(p.apply(this.s, arguments)) } }, new S(l) } t.exports = a, t.exports.__esModule = !0, t.exports.default = t.exports } }); DA(By()); DA(Ei()); var Ty = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(A, t) { function a() { var S = typeof SuppressedError == "function" ? SuppressedError : function(k, p) { var m = Error(); return m.name = "SuppressedError", m.error = k, m.suppressed = p, m } , l = {} , s = []; function E(k, p) { if (p != null) { if (Object(p) !== p) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); if (k) var m = p[Symbol.asyncDispose || Symbol.for("Symbol.asyncDispose")]; if (m === void 0 && (m = p[Symbol.dispose || Symbol.for("Symbol.dispose")], k)) var n = m; if (typeof m != "function") throw new TypeError("Object is not disposable."); n && (m = function() { try { n.call(p) } catch (b) { return Promise.reject(b) } } ), s.push({ v: p, d: m, a: k }) } else k && s.push({ d: p, a: k }); return p } return { e: l, u: E.bind(null, !1), a: E.bind(null, !0), d: function() { var p, m = this.e, n = 0; function J() { for (; p = s.pop(); ) try { if (!p.a && n === 1) return n = 0, s.push(p), Promise.resolve().then(J); if (p.d) { var h = p.d.call(p.v); if (p.a) return n |= 2, Promise.resolve(h).then(J, b) } else n |= 1 } catch (U) { return b(U) } if (n === 1) return m !== l ? Promise.reject(m) : Promise.resolve(); if (m !== l) throw m } function b(h) { return m = m !== l ? new S(h,m) : h, J() } return J() } } } t.exports = a, t.exports.__esModule = !0, t.exports.default = t.exports } }) , zY = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(A, t) { function a(S, l) { this.v = S, this.k = l } t.exports = a, t.exports.__esModule = !0, t.exports.default = t.exports } }) , jy = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(A, t) { var a = zY(); function S(l) { return new a(l,0) } t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }) , qy = ji({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(A, t) { var a = zY(); function S(s) { return function() { return new l(s.apply(this, arguments)) } } function l(s) { var E, k; function p(n, J) { try { var b = s[n](J) , h = b.value , U = h instanceof a; Promise.resolve(U ? h.v : h).then(function(R) { if (U) { var Z = n === "return" ? "return" : "next"; if (!h.k || R.done) return p(Z, R); R = s[Z](R).value } m(b.done ? "return" : "normal", R) }, function(R) { p("throw", R) }) } catch (R) { m("throw", R) } } function m(n, J) { switch (n) { case "return": E.resolve({ value: J, done: !0 }); break; case "throw": E.reject(J); break; default: E.resolve({ value: J, done: !1 }) } (E = E.next) ? p(E.key, E.arg) : k = null } this._invoke = function(n, J) { return new Promise(function(b, h) { var U = { key: n, arg: J, resolve: b, reject: h, next: null }; k ? k = k.next = U : (E = k = U, p(n, J)) } ) } , typeof s.return != "function" && (this.return = void 0) } l.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() { return this } , l.prototype.next = function(s) { return this._invoke("next", s) } , l.prototype.throw = function(s) { return this._invoke("throw", s) } , l.prototype.return = function(s) { return this._invoke("return", s) } , t.exports = S, t.exports.__esModule = !0, t.exports.default = t.exports } }); DA(Ty()); DA(jy()); DA(qy()); DA(Ei()); function Fy(A) { return FC( ({path: t, args: a}) => { var S; const l = [...t] , s = l.pop(); if (s === "useMutation") return A[s](l, ...a); if (s === "_def") return { path: l }; const [E,...k] = a , p = (S = k[0]) !== null && S !== void 0 ? S : {}; return A[s](l, E, p) } ) } var Db; const xy = ["client", "ssrContext", "ssrState", "abortOnUnmount"] , yy = (Db = d.createContext) === null || Db === void 0 ? void 0 : Db.call(TC, null) , Ly = A => { switch (A) { case "queryOptions": case "fetch": case "ensureData": case "prefetch": case "getData": case "setData": case "setQueriesData": return "query"; case "infiniteQueryOptions": case "fetchInfinite": case "prefetchInfinite": case "getInfiniteData": case "setInfiniteData": return "infinite"; case "setMutationDefaults": case "getMutationDefaults": case "isMutating": case "cancel": case "invalidate": case "refetch": case "reset": return "any" } } ; function wy(A) { return FC(t => { const a = [...t.path] , S = a.pop() , l = [...t.args] , s = l.shift() , E = Ly(S) , k = Zi(a, s, E); return { infiniteQueryOptions: () => A.infiniteQueryOptions(a, k, l[0]), queryOptions: () => A.queryOptions(a, k, ...l), fetch: () => A.fetchQuery(k, ...l), fetchInfinite: () => A.fetchInfiniteQuery(k, l[0]), prefetch: () => A.prefetchQuery(k, ...l), prefetchInfinite: () => A.prefetchInfiniteQuery(k, l[0]), ensureData: () => A.ensureQueryData(k, ...l), invalidate: () => A.invalidateQueries(k, ...l), reset: () => A.resetQueries(k, ...l), refetch: () => A.refetchQueries(k, ...l), cancel: () => A.cancelQuery(k, ...l), setData: () => { A.setQueryData(k, l[0], l[1]) } , setQueriesData: () => A.setQueriesData(k, l[0], l[1], l[2]), setInfiniteData: () => { A.setInfiniteQueryData(k, l[0], l[1]) } , getData: () => A.getQueryData(k), getInfiniteData: () => A.getInfiniteQueryData(k), setMutationDefaults: () => A.setMutationDefaults(bJ(a), s), getMutationDefaults: () => A.getMutationDefaults(bJ(a)), isMutating: () => A.isMutating({ mutationKey: bJ(a) }) }[S]() } ) } function zy(A) { const t = wY(A.client) , a = wy(A); return jQ(S => { const l = S; return l === "client" ? t : xy.includes(l) ? A[l] : a[S] } ) } var Oy = xI(_p(), 1); function OW(A) { const t = A instanceof yC ? A : FQ(A); return FC(a => { const S = a.path , l = S.join(".") , [s,E] = a.args; return (0, Oy.default)({ queryKey: Zi(S, s, "query"), queryFn: () => t.query(l, s, E?.trpc) }, E) } ) } var fb = xI(_p(), 1); function xa(A, t, a) { var S; const l = A[0]; let s = (S = A[1]) === null || S === void 0 ? void 0 : S.input; if (a) { var E; s = (0, fb.default)((0, fb.default)((0, fb.default)({}, (E = s) !== null && E !== void 0 ? E : {}), a.pageParam ? { cursor: a.pageParam } : {}), {}, { direction: a.direction }) } return [l.join("."), s, t?.trpc] } var Vy = gs({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(A, t) { function a(l) { var s, E, k, p = 2; for (typeof Symbol < "u" && (E = Symbol.asyncIterator, k = Symbol.iterator); p--; ) { if (E && (s = l[E]) != null) return s.call(l); if (k && (s = l[k]) != null) return new S(s.call(l)); E = "@@asyncIterator", k = "@@iterator" } throw new TypeError("Object is not async iterable") } function S(l) { function s(E) { if (Object(E) !== E) return Promise.reject(new TypeError(E + " is not an object.")); var k = E.done; return Promise.resolve(E.value).then(function(p) { return { value: p, done: k } }) } return S = function(k) { this.s = k, this.n = k.next } , S.prototype = { s: null, n: null, next: function() { return s(this.n.apply(this.s, arguments)) }, return: function(k) { var p = this.s.return; return p === void 0 ? Promise.resolve({ value: k, done: !0 }) : s(p.apply(this.s, arguments)) }, throw: function(k) { var p = this.s.return; return p === void 0 ? Promise.reject(k) : s(p.apply(this.s, arguments)) } }, new S(l) } t.exports = a, t.exports.__esModule = !0, t.exports.default = t.exports } }) , Dy = xI(Vy(), 1); function ph(A) { return { path: A.path.join(".") } } function ck(A) { const t = ph(A); return d.useMemo( () => t, [t]) } async function OY(A, t, a) { const l = t.getQueryCache().build(t, { queryKey: a }); l.setState({ data: [], status: "success" }); const s = []; var E = !1, k = !1, p; try { for (var m = (0, Dy.default)(A), n; E = !(n = await m.next()).done; E = !1) { const J = n.value; s.push(J), l.setState({ data: [...s] }) } } catch (J) { k = !0, p = J } finally { try { E && m.return != null && await m.return() } finally { if (k) throw p } } return s } var lA = xI(_p(), 1); function fy(A) { const {client: t, queryClient: a} = A , S = t instanceof yC ? t : FQ(t); return { infiniteQueryOptions: (l, s, E) => { var k, p; const m = ((k = s[1]) === null || k === void 0 ? void 0 : k.input) === ZS , n = async J => { var b; const h = (0, lA.default)((0, lA.default)({}, E), {}, { trpc: (0, lA.default)((0, lA.default)({}, E?.trpc), !(E == null || (b = E.trpc) === null || b === void 0) && b.abortOnUnmount ? { signal: J.signal } : { signal: null }) }); return await S.query(...xa(s, h, { direction: J.direction, pageParam: J.pageParam })) } ; return Object.assign((0, lA.default)((0, lA.default)({}, E), {}, { initialData: E?.initialData, queryKey: s, queryFn: m ? ZS : n, initialPageParam: (p = E?.initialCursor) !== null && p !== void 0 ? p : null }), { trpc: ph({ path: l }) }) } , queryOptions: (l, s, E) => { var k; const p = ((k = s[1]) === null || k === void 0 ? void 0 : k.input) === ZS , m = async n => { var J; const b = (0, lA.default)((0, lA.default)({}, E), {}, { trpc: (0, lA.default)((0, lA.default)({}, E?.trpc), !(E == null || (J = E.trpc) === null || J === void 0) && J.abortOnUnmount ? { signal: n.signal } : { signal: null }) }) , h = await S.query(...xa(s, b)); return gY(h) ? OY(h, a, s) : h } ; return Object.assign((0, lA.default)((0, lA.default)({}, E), {}, { initialData: E?.initialData, queryKey: s, queryFn: p ? ZS : m }), { trpc: ph({ path: l }) }) } , fetchQuery: (l, s) => a.fetchQuery((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l, queryFn: () => S.query(...xa(l, s)) })), fetchInfiniteQuery: (l, s) => { var E; return a.fetchInfiniteQuery((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l, queryFn: ({pageParam: k, direction: p}) => S.query(...xa(l, s, { pageParam: k, direction: p })), initialPageParam: (E = s?.initialCursor) !== null && E !== void 0 ? E : null })) } , prefetchQuery: (l, s) => a.prefetchQuery((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l, queryFn: () => S.query(...xa(l, s)) })), prefetchInfiniteQuery: (l, s) => { var E; return a.prefetchInfiniteQuery((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l, queryFn: ({pageParam: k, direction: p}) => S.query(...xa(l, s, { pageParam: k, direction: p })), initialPageParam: (E = s?.initialCursor) !== null && E !== void 0 ? E : null })) } , ensureQueryData: (l, s) => a.ensureQueryData((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l, queryFn: () => S.query(...xa(l, s)) })), invalidateQueries: (l, s, E) => a.invalidateQueries((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l }), E), resetQueries: (l, s, E) => a.resetQueries((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l }), E), refetchQueries: (l, s, E) => a.refetchQueries((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l }), E), cancelQuery: (l, s) => a.cancelQueries({ queryKey: l }, s), setQueryData: (l, s, E) => a.setQueryData(l, s, E), setQueriesData: (l, s, E, k) => a.setQueriesData((0, lA.default)((0, lA.default)({}, s), {}, { queryKey: l }), E, k), getQueryData: l => a.getQueryData(l), setInfiniteQueryData: (l, s, E) => a.setQueryData(l, s, E), getInfiniteQueryData: l => a.getQueryData(l), setMutationDefaults: (l, s) => { const E = l[0] , k = p => S.mutation(...xa([E, { input: p }], A)); return a.setMutationDefaults(l, typeof s == "function" ? s({ canonicalMutationFn: k }) : s) } , getMutationDefaults: l => a.getMutationDefaults(l), isMutating: l => a.isMutating((0, lA.default)((0, lA.default)({}, l), {}, { exact: !0 })) } } var bt = xI(_p()); const VW = (A, t) => new Proxy(A,{ get(S, l) { return t(l), S[l] } }); function vy(A) { var t, a; const S = (t = void 0) !== null && t !== void 0 ? t : Y => Y.originalFn() , l = (a = void 0) !== null && a !== void 0 ? a : yy , s = My , E = Y => { var B; const {abortOnUnmount: G=!1, queryClient: M, ssrContext: L} = Y , [v,at] = d.useState((B = Y.ssrState) !== null && B !== void 0 ? B : !1) , tt = Y.client instanceof yC ? Y.client : FQ(Y.client) , y = d.useMemo( () => fy({ client: tt, queryClient: M }), [tt, M]) , St = d.useMemo( () => (0, bt.default)({ abortOnUnmount: G, queryClient: M, client: tt, ssrContext: L ?? null, ssrState: v }, y), [G, tt, y, M, L, v]); return d.useEffect( () => { at(It => It ? "mounted" : !1) } , []), i.jsx(l.Provider, { value: St, children: Y.children }) } ; function k() { const Y = d.useContext(l); if (!Y) throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?"); return Y } function p(Y, B) { var G; const {queryClient: M, ssrState: L} = k(); return L && L !== "mounted" && ((G = M.getQueryCache().find({ queryKey: Y })) === null || G === void 0 ? void 0 : G.state.status) === "error" ? (0, bt.default)({ retryOnMount: !1 }, B) : B } function m(Y, B, G) { var M, L, v, at, tt; const y = k() , {abortOnUnmount: St, client: It, ssrState: T, queryClient: z, prefetchQuery: q} = y , _ = Zi(Y, B, "query") , rt = z.getQueryDefaults(_) , j = B === ZS; typeof window > "u" && T === "prepass" && (G == null || (M = G.trpc) === null || M === void 0 ? void 0 : M.ssr) !== !1 && ((L = G?.enabled) !== null && L !== void 0 ? L : rt?.enabled) !== !1 && !j && !z.getQueryCache().find({ queryKey: _ }) && q(_, G); const H = p(_, (0, bt.default)((0, bt.default)({}, rt), G)) , V = (v = (at = G == null || (tt = G.trpc) === null || tt === void 0 ? void 0 : tt.abortOnUnmount) !== null && at !== void 0 ? at : void 0) !== null && v !== void 0 ? v : St , P = Qx((0, bt.default)((0, bt.default)({}, H), {}, { queryKey: _, queryFn: j ? B : async et => { const Ct = (0, bt.default)((0, bt.default)({}, H), {}, { trpc: (0, bt.default)((0, bt.default)({}, H?.trpc), V ? { signal: et.signal } : { signal: null }) }) , lt = await It.query(...xa(_, Ct)); return gY(lt) ? OY(lt, z, _) : lt } }), z); return P.trpc = ck({ path: Y }), P } function n(Y, B, G) { var M, L, v; const at = k() , tt = Zi(Y, B, "query") , y = B === ZS , St = (M = (L = G == null || (v = G.trpc) === null || v === void 0 ? void 0 : v.abortOnUnmount) !== null && L !== void 0 ? L : void 0) !== null && M !== void 0 ? M : at.abortOnUnmount; dx((0, bt.default)((0, bt.default)({}, G), {}, { queryKey: tt, queryFn: y ? B : It => { const T = { trpc: (0, bt.default)((0, bt.default)({}, G?.trpc), St ? { signal: It.signal } : {}) }; return at.client.query(...xa(tt, T)) } })) } function J(Y, B, G) { var M, L, v; const at = k() , tt = Zi(Y, B, "query") , y = (M = (L = G == null || (v = G.trpc) === null || v === void 0 ? void 0 : v.abortOnUnmount) !== null && L !== void 0 ? L : void 0) !== null && M !== void 0 ? M : at.abortOnUnmount , St = Rx((0, bt.default)((0, bt.default)({}, G), {}, { queryKey: tt, queryFn: It => { const T = (0, bt.default)((0, bt.default)({}, G), {}, { trpc: (0, bt.default)((0, bt.default)({}, G?.trpc), y ? { signal: It.signal } : { signal: null }) }); return at.client.query(...xa(tt, T)) } }), at.queryClient); return St.trpc = ck({ path: Y }), [St.data, St] } function b(Y, B) { const {client: G, queryClient: M} = k() , L = bJ(Y) , v = M.defaultMutationOptions(M.getMutationDefaults(L)) , at = Wx((0, bt.default)((0, bt.default)({}, B), {}, { mutationKey: L, mutationFn: tt => G.mutation(...xa([Y, { input: tt }], B)), onSuccess(...tt) { var y, St; return S({ originalFn: () => { var T, z, q; return (T = B == null || (z = B.onSuccess) === null || z === void 0 ? void 0 : z.call(B, ...tt)) !== null && T !== void 0 ? T : v == null || (q = v.onSuccess) === null || q === void 0 ? void 0 : q.call(v, ...tt) } , queryClient: M, meta: (y = (St = B?.meta) !== null && St !== void 0 ? St : v?.meta) !== null && y !== void 0 ? y : {} }) } }), M); return at.trpc = ck({ path: Y }), at } const h = { data: void 0, error: null, status: "idle" } , U = { data: void 0, error: null, status: "connecting" }; /* istanbul ignore next -- @preserve */ function R(Y, B, G) { var M; const L = (M = G?.enabled) !== null && M !== void 0 ? M : B !== ZS , v = bs(Zi(Y, B, "any")) , {client: at} = k() , tt = d.useRef(G); d.useEffect( () => { tt.current = G } ); const [y] = d.useState(new Set([])) , St = d.useCallback(j => { y.add(j) } , [y]) , It = d.useRef(null) , T = d.useCallback(j => { const H = q.current , V = q.current = j(H); let P = !1; for (const et of y) if (H[et] !== V[et]) { P = !0; break } P && rt(VW(V, St)) } , [St, y]) , z = d.useCallback( () => { var j; if ((j = It.current) === null || j === void 0 || j.unsubscribe(), !L) { T( () => (0, bt.default)((0, bt.default)({}, h), {}, { reset: z })); return } T( () => (0, bt.default)((0, bt.default)({}, U), {}, { reset: z })); const H = at.subscription(Y.join("."), B ?? void 0, { onStarted: () => { var V, P; (V = (P = tt.current).onStarted) === null || V === void 0 || V.call(P), T(et => (0, bt.default)((0, bt.default)({}, et), {}, { status: "pending", error: null })) } , onData: V => { var P, et; (P = (et = tt.current).onData) === null || P === void 0 || P.call(et, V), T(Ct => (0, bt.default)((0, bt.default)({}, Ct), {}, { status: "pending", data: V, error: null })) } , onError: V => { var P, et; (P = (et = tt.current).onError) === null || P === void 0 || P.call(et, V), T(Ct => (0, bt.default)((0, bt.default)({}, Ct), {}, { status: "error", error: V })) } , onConnectionStateChange: V => { T(P => { switch (V.state) { case "idle": return (0, bt.default)((0, bt.default)({}, P), {}, { status: V.state, error: null, data: void 0 }); case "connecting": return (0, bt.default)((0, bt.default)({}, P), {}, { error: V.error, status: V.state }); case "pending": return P } } ) } , onComplete: () => { var V, P; (V = (P = tt.current).onComplete) === null || V === void 0 || V.call(P), T(et => (0, bt.default)((0, bt.default)({}, et), {}, { status: "idle", error: null, data: void 0 })) } }); It.current = H } , [at, v, L, T]); d.useEffect( () => (z(), () => { var j; (j = It.current) === null || j === void 0 || j.unsubscribe() } ), [z]); const q = d.useRef(L ? (0, bt.default)((0, bt.default)({}, U), {}, { reset: z }) : (0, bt.default)((0, bt.default)({}, h), {}, { reset: z })) , [_,rt] = d.useState(VW(q.current, St)); return _ } function Z(Y, B, G) { var M, L, v, at, tt; const {client: y, ssrState: St, prefetchInfiniteQuery: It, queryClient: T, abortOnUnmount: z} = k() , q = Zi(Y, B, "infinite") , _ = T.getQueryDefaults(q) , rt = B === ZS; typeof window > "u" && St === "prepass" && (G == null || (M = G.trpc) === null || M === void 0 ? void 0 : M.ssr) !== !1 && ((L = G?.enabled) !== null && L !== void 0 ? L : _?.enabled) !== !1 && !rt && !T.getQueryCache().find({ queryKey: q }) && It(q, (0, bt.default)((0, bt.default)({}, _), G)); const j = p(q, (0, bt.default)((0, bt.default)({}, _), G)) , H = (v = G == null || (at = G.trpc) === null || at === void 0 ? void 0 : at.abortOnUnmount) !== null && v !== void 0 ? v : z , V = cx((0, bt.default)((0, bt.default)({}, j), {}, { initialPageParam: (tt = G.initialCursor) !== null && tt !== void 0 ? tt : null, persister: G.persister, queryKey: q, queryFn: rt ? B : P => { var et; const Ct = (0, bt.default)((0, bt.default)({}, j), {}, { trpc: (0, bt.default)((0, bt.default)({}, j?.trpc), H ? { signal: P.signal } : { signal: null }) }); return y.query(...xa(q, Ct, { pageParam: (et = P.pageParam) !== null && et !== void 0 ? et : G.initialCursor, direction: P.direction })) } }), T); return V.trpc = ck({ path: Y }), V } function g(Y, B, G) { var M, L, v; const at = k() , tt = Zi(Y, B, "infinite") , y = at.queryClient.getQueryDefaults(tt) , St = B === ZS , It = p(tt, (0, bt.default)((0, bt.default)({}, y), G)) , T = (M = G == null || (L = G.trpc) === null || L === void 0 ? void 0 : L.abortOnUnmount) !== null && M !== void 0 ? M : at.abortOnUnmount; gx((0, bt.default)((0, bt.default)({}, G), {}, { initialPageParam: (v = G.initialCursor) !== null && v !== void 0 ? v : null, queryKey: tt, queryFn: St ? B : z => { var q; const _ = (0, bt.default)((0, bt.default)({}, It), {}, { trpc: (0, bt.default)((0, bt.default)({}, It?.trpc), T ? { signal: z.signal } : {}) }); return at.client.query(...xa(tt, _, { pageParam: (q = z.pageParam) !== null && q !== void 0 ? q : G.initialCursor, direction: z.direction })) } })) } function W(Y, B, G) { var M, L, v; const at = k() , tt = Zi(Y, B, "infinite") , y = at.queryClient.getQueryDefaults(tt) , St = p(tt, (0, bt.default)((0, bt.default)({}, y), G)) , It = (M = G == null || (L = G.trpc) === null || L === void 0 ? void 0 : L.abortOnUnmount) !== null && M !== void 0 ? M : at.abortOnUnmount , T = Ux((0, bt.default)((0, bt.default)({}, G), {}, { initialPageParam: (v = G.initialCursor) !== null && v !== void 0 ? v : null, queryKey: tt, queryFn: z => { var q; const _ = (0, bt.default)((0, bt.default)({}, St), {}, { trpc: (0, bt.default)((0, bt.default)({}, St?.trpc), It ? { signal: z.signal } : {}) }); return at.client.query(...xa(tt, _, { pageParam: (q = z.pageParam) !== null && q !== void 0 ? q : G.initialCursor, direction: z.direction })) } }), at.queryClient); return T.trpc = ck({ path: Y }), [T.data, T] } return { Provider: E, createClient: s, useContext: k, useUtils: k, useQuery: m, usePrefetchQuery: n, useSuspenseQuery: J, useQueries: (Y, B) => { const {ssrState: G, queryClient: M, prefetchQuery: L, client: v} = k() , at = OW(v) , tt = Y(at); if (typeof window > "u" && G === "prepass") for (const St of tt) { var y; const It = St; ((y = It.trpc) === null || y === void 0 ? void 0 : y.ssr) !== !1 && !M.getQueryCache().find({ queryKey: It.queryKey }) && L(It.queryKey, It) } return dY({ queries: tt.map(St => (0, bt.default)((0, bt.default)({}, St), {}, { queryKey: St.queryKey })), combine: B?.combine }, M) } , useSuspenseQueries: Y => { const {queryClient: B, client: G} = k() , M = OW(G) , L = Y(M) , v = Zx({ queries: L.map(at => (0, bt.default)((0, bt.default)({}, at), {}, { queryFn: at.queryFn, queryKey: at.queryKey })) }, B); return [v.map(at => at.data), v] } , useMutation: b, useSubscription: R, useInfiniteQuery: Z, usePrefetchInfiniteQuery: g, useSuspenseInfiniteQuery: W } } function Xy(A) { const t = Fy(A); return jQ(a => a === "useContext" || a === "useUtils" ? () => { const S = A.useUtils(); return d.useMemo( () => zy(S), [S]) } : A.hasOwnProperty(a) ? A[a] : t[a]) } function Hy(A) { const t = vy(); return Xy(t) } const ot = Hy() , Py = "Please login (10001)"; var vb = { exports: {} } , Kk = {} , Xb = { exports: {} } , Hb = {}; /** * @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 DW; function _y() { return DW || (DW = 1, (function(A) { function t(T, z) { var q = T.length; T.push(z); t: for (; 0 < q; ) { var _ = q - 1 >>> 1 , rt = T[_]; if (0 < l(rt, z)) T[_] = z, T[q] = rt, q = _; else break t } } function a(T) { return T.length === 0 ? null : T[0] } function S(T) { if (T.length === 0) return null; var z = T[0] , q = T.pop(); if (q !== z) { T[0] = q; t: for (var _ = 0, rt = T.length, j = rt >>> 1; _ < j; ) { var H = 2 * (_ + 1) - 1 , V = T[H] , P = H + 1 , et = T[P]; if (0 > l(V, q)) P < rt && 0 > l(et, V) ? (T[_] = et, T[P] = q, _ = P) : (T[_] = V, T[H] = q, _ = H); else if (P < rt && 0 > l(et, q)) T[_] = et, T[P] = q, _ = P; else break t } } return z } function l(T, z) { var q = T.sortIndex - z.sortIndex; return q !== 0 ? q : T.id - z.id } if (A.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") { var s = performance; A.unstable_now = function() { return s.now() } } else { var E = Date , k = E.now(); A.unstable_now = function() { return E.now() - k } } var p = [] , m = [] , n = 1 , J = null , b = 3 , h = !1 , U = !1 , R = !1 , Z = !1 , g = typeof setTimeout == "function" ? setTimeout : null , W = typeof clearTimeout == "function" ? clearTimeout : null , c = typeof setImmediate < "u" ? setImmediate : null; function u(T) { for (var z = a(m); z !== null; ) { if (z.callback === null) S(m); else if (z.startTime <= T) S(m), z.sortIndex = z.expirationTime, t(p, z); else break; z = a(m) } } function Y(T) { if (R = !1, u(T), !U) if (a(p) !== null) U = !0, B || (B = !0, tt()); else { var z = a(m); z !== null && It(Y, z.startTime - T) } } var B = !1 , G = -1 , M = 5 , L = -1; function v() { return Z ? !0 : !(A.unstable_now() - L < M) } function at() { if (Z = !1, B) { var T = A.unstable_now(); L = T; var z = !0; try { t: { U = !1, R && (R = !1, W(G), G = -1), h = !0; var q = b; try { A: { for (u(T), J = a(p); J !== null && !(J.expirationTime > T && v()); ) { var _ = J.callback; if (typeof _ == "function") { J.callback = null, b = J.priorityLevel; var rt = _(J.expirationTime <= T); if (T = A.unstable_now(), typeof rt == "function") { J.callback = rt, u(T), z = !0; break A } J === a(p) && S(p), u(T) } else S(p); J = a(p) } if (J !== null) z = !0; else { var j = a(m); j !== null && It(Y, j.startTime - T), z = !1 } } break t } finally { J = null, b = q, h = !1 } z = void 0 } } finally { z ? tt() : B = !1 } } } var tt; if (typeof c == "function") tt = function() { c(at) } ; else if (typeof MessageChannel < "u") { var y = new MessageChannel , St = y.port2; y.port1.onmessage = at, tt = function() { St.postMessage(null) } } else tt = function() { g(at, 0) } ; function It(T, z) { G = g(function() { T(A.unstable_now()) }, z) } A.unstable_IdlePriority = 5, A.unstable_ImmediatePriority = 1, A.unstable_LowPriority = 4, A.unstable_NormalPriority = 3, A.unstable_Profiling = null, A.unstable_UserBlockingPriority = 2, A.unstable_cancelCallback = function(T) { T.callback = null } , A.unstable_forceFrameRate = function(T) { 0 > T || 125 < T ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : M = 0 < T ? Math.floor(1e3 / T) : 5 } , A.unstable_getCurrentPriorityLevel = function() { return b } , A.unstable_next = function(T) { switch (b) { case 1: case 2: case 3: var z = 3; break; default: z = b } var q = b; b = z; try { return T() } finally { b = q } } , A.unstable_requestPaint = function() { Z = !0 } , A.unstable_runWithPriority = function(T, z) { switch (T) { case 1: case 2: case 3: case 4: case 5: break; default: T = 3 } var q = b; b = T; try { return z() } finally { b = q } } , A.unstable_scheduleCallback = function(T, z, q) { var _ = A.unstable_now(); switch (typeof q == "object" && q !== null ? (q = q.delay, q = typeof q == "number" && 0 < q ? _ + q : _) : q = _, T) { case 1: var rt = -1; break; case 2: rt = 250; break; case 5: rt = 1073741823; break; case 4: rt = 1e4; break; default: rt = 5e3 } return rt = q + rt, T = { id: n++, callback: z, priorityLevel: T, startTime: q, expirationTime: rt, sortIndex: -1 }, q > _ ? (T.sortIndex = q, t(m, T), a(p) === null && T === a(m) && (R ? (W(G), G = -1) : R = !0, It(Y, q - _))) : (T.sortIndex = rt, t(p, T), U || h || (U = !0, B || (B = !0, tt()))), T } , A.unstable_shouldYield = v, A.unstable_wrapCallback = function(T) { var z = b; return function() { var q = b; b = z; try { return T.apply(this, arguments) } finally { b = q } } } } )(Hb)), Hb } var fW; function $y() { return fW || (fW = 1, Xb.exports = _y()), Xb.exports } var Pb = { exports: {} } , ca = {}; /** * @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 vW; function tL() { if (vW) return ca; vW = 1; var A = Xp(); function t(p) { var m = "https://react.dev/errors/" + p; if (1 < arguments.length) { m += "?args[]=" + encodeURIComponent(arguments[1]); for (var n = 2; n < arguments.length; n++) m += "&args[]=" + encodeURIComponent(arguments[n]) } return "Minified React error #" + p + "; visit " + m + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." } function a() {} var S = { d: { f: a, r: function() { throw Error(t(522)) }, D: a, C: a, L: a, m: a, X: a, S: a, M: a }, p: 0, findDOMNode: null } , l = Symbol.for("react.portal"); function s(p, m, n) { var J = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: l, key: J == null ? null : "" + J, children: p, containerInfo: m, implementation: n } } var E = A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; function k(p, m) { if (p === "font") return ""; if (typeof m == "string") return m === "use-credentials" ? m : "" } return ca.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = S, ca.createPortal = function(p, m) { var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!m || m.nodeType !== 1 && m.nodeType !== 9 && m.nodeType !== 11) throw Error(t(299)); return s(p, m, null, n) } , ca.flushSync = function(p) { var m = E.T , n = S.p; try { if (E.T = null, S.p = 2, p) return p() } finally { E.T = m, S.p = n, S.d.f() } } , ca.preconnect = function(p, m) { typeof p == "string" && (m ? (m = m.crossOrigin, m = typeof m == "string" ? m === "use-credentials" ? m : "" : void 0) : m = null, S.d.C(p, m)) } , ca.prefetchDNS = function(p) { typeof p == "string" && S.d.D(p) } , ca.preinit = function(p, m) { if (typeof p == "string" && m && typeof m.as == "string") { var n = m.as , J = k(n, m.crossOrigin) , b = typeof m.integrity == "string" ? m.integrity : void 0 , h = typeof m.fetchPriority == "string" ? m.fetchPriority : void 0; n === "style" ? S.d.S(p, typeof m.precedence == "string" ? m.precedence : void 0, { crossOrigin: J, integrity: b, fetchPriority: h }) : n === "script" && S.d.X(p, { crossOrigin: J, integrity: b, fetchPriority: h, nonce: typeof m.nonce == "string" ? m.nonce : void 0 }) } } , ca.preinitModule = function(p, m) { if (typeof p == "string") if (typeof m == "object" && m !== null) { if (m.as == null || m.as === "script") { var n = k(m.as, m.crossOrigin); S.d.M(p, { crossOrigin: n, integrity: typeof m.integrity == "string" ? m.integrity : void 0, nonce: typeof m.nonce == "string" ? m.nonce : void 0 }) } } else m == null && S.d.M(p) } , ca.preload = function(p, m) { if (typeof p == "string" && typeof m == "object" && m !== null && typeof m.as == "string") { var n = m.as , J = k(n, m.crossOrigin); S.d.L(p, n, { crossOrigin: J, integrity: typeof m.integrity == "string" ? m.integrity : void 0, nonce: typeof m.nonce == "string" ? m.nonce : void 0, type: typeof m.type == "string" ? m.type : void 0, fetchPriority: typeof m.fetchPriority == "string" ? m.fetchPriority : void 0, referrerPolicy: typeof m.referrerPolicy == "string" ? m.referrerPolicy : void 0, imageSrcSet: typeof m.imageSrcSet == "string" ? m.imageSrcSet : void 0, imageSizes: typeof m.imageSizes == "string" ? m.imageSizes : void 0, media: typeof m.media == "string" ? m.media : void 0 }) } } , ca.preloadModule = function(p, m) { if (typeof p == "string") if (m) { var n = k(m.as, m.crossOrigin); S.d.m(p, { as: typeof m.as == "string" && m.as !== "script" ? m.as : void 0, crossOrigin: n, integrity: typeof m.integrity == "string" ? m.integrity : void 0 }) } else S.d.m(p) } , ca.requestFormReset = function(p) { S.d.r(p) } , ca.unstable_batchedUpdates = function(p, m) { return p(m) } , ca.useFormState = function(p, m, n) { return E.H.useFormState(p, m, n) } , ca.useFormStatus = function() { return E.H.useHostTransitionStatus() } , ca.version = "19.2.1", ca } var XW; function VY() { if (XW) return Pb.exports; XW = 1; function A() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A) } catch (t) { console.error(t) } } return A(), Pb.exports = tL(), Pb.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 HW; function AL() { if (HW) return Kk; HW = 1; var A = $y() , t = Xp() , a = VY(); function S(I) { var e = "https://react.dev/errors/" + I; if (1 < arguments.length) { e += "?args[]=" + encodeURIComponent(arguments[1]); for (var r = 2; r < arguments.length; r++) e += "&args[]=" + encodeURIComponent(arguments[r]) } return "Minified React error #" + I + "; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." } function l(I) { return !(!I || I.nodeType !== 1 && I.nodeType !== 9 && I.nodeType !== 11) } function s(I) { var e = I , r = I; if (I.alternate) for (; e.return; ) e = e.return; else { I = e; do e = I, (e.flags & 4098) !== 0 && (r = e.return), I = e.return; while (I) } return e.tag === 3 ? r : null } function E(I) { if (I.tag === 13) { var e = I.memoizedState; if (e === null && (I = I.alternate, I !== null && (e = I.memoizedState)), e !== null) return e.dehydrated } return null } function k(I) { if (I.tag === 31) { var e = I.memoizedState; if (e === null && (I = I.alternate, I !== null && (e = I.memoizedState)), e !== null) return e.dehydrated } return null } function p(I) { if (s(I) !== I) throw Error(S(188)) } function m(I) { var e = I.alternate; if (!e) { if (e = s(I), e === null) throw Error(S(188)); return e !== I ? null : I } for (var r = I, C = e; ; ) { var o = r.return; if (o === null) break; var Q = o.alternate; if (Q === null) { if (C = o.return, C !== null) { r = C; continue } break } if (o.child === Q.child) { for (Q = o.child; Q; ) { if (Q === r) return p(o), I; if (Q === C) return p(o), e; Q = Q.sibling } throw Error(S(188)) } if (r.return !== C.return) r = o, C = Q; else { for (var K = !1, N = o.child; N; ) { if (N === r) { K = !0, r = o, C = Q; break } if (N === C) { K = !0, C = o, r = Q; break } N = N.sibling } if (!K) { for (N = Q.child; N; ) { if (N === r) { K = !0, r = Q, C = o; break } if (N === C) { K = !0, C = Q, r = o; break } N = N.sibling } if (!K) throw Error(S(189)) } } if (r.alternate !== C) throw Error(S(190)) } if (r.tag !== 3) throw Error(S(188)); return r.stateNode.current === r ? I : e } function n(I) { var e = I.tag; if (e === 5 || e === 26 || e === 27 || e === 6) return I; for (I = I.child; I !== null; ) { if (e = n(I), e !== null) return e; I = I.sibling } return null } var J = Object.assign , b = Symbol.for("react.element") , h = Symbol.for("react.transitional.element") , U = Symbol.for("react.portal") , R = Symbol.for("react.fragment") , Z = Symbol.for("react.strict_mode") , g = Symbol.for("react.profiler") , W = Symbol.for("react.consumer") , c = Symbol.for("react.context") , u = Symbol.for("react.forward_ref") , Y = Symbol.for("react.suspense") , B = Symbol.for("react.suspense_list") , G = Symbol.for("react.memo") , M = Symbol.for("react.lazy") , L = Symbol.for("react.activity") , v = Symbol.for("react.memo_cache_sentinel") , at = Symbol.iterator; function tt(I) { return I === null || typeof I != "object" ? null : (I = at && I[at] || I["@@iterator"], typeof I == "function" ? I : null) } var y = Symbol.for("react.client.reference"); function St(I) { if (I == null) return null; if (typeof I == "function") return I.$$typeof === y ? null : I.displayName || I.name || null; if (typeof I == "string") return I; switch (I) { case R: return "Fragment"; case g: return "Profiler"; case Z: return "StrictMode"; case Y: return "Suspense"; case B: return "SuspenseList"; case L: return "Activity" } if (typeof I == "object") switch (I.$$typeof) { case U: return "Portal"; case c: return I.displayName || "Context"; case W: return (I._context.displayName || "Context") + ".Consumer"; case u: var e = I.render; return I = I.displayName, I || (I = e.displayName || e.name || "", I = I !== "" ? "ForwardRef(" + I + ")" : "ForwardRef"), I; case G: return e = I.displayName || null, e !== null ? e : St(I.type) || "Memo"; case M: e = I._payload, I = I._init; try { return St(I(e)) } catch {} } return null } var It = Array.isArray , T = t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE , z = a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE , q = { pending: !1, data: null, method: null, action: null } , _ = [] , rt = -1; function j(I) { return { current: I } } function H(I) { 0 > rt || (I.current = _[rt], _[rt] = null, rt--) } function V(I, e) { rt++, _[rt] = I.current, I.current = e } var P = j(null) , et = j(null) , Ct = j(null) , lt = j(null); function nt(I, e) { switch (V(Ct, e), V(et, I), V(P, null), e.nodeType) { case 9: case 11: I = (I = e.documentElement) && (I = I.namespaceURI) ? vg(I) : 0; break; default: if (I = e.tagName, e = e.namespaceURI) e = vg(e), I = Xg(e, I); else switch (I) { case "svg": I = 1; break; case "math": I = 2; break; default: I = 0 } } H(P), V(P, I) } function Gt() { H(P), H(et), H(Ct) } function qt(I) { I.memoizedState !== null && V(lt, I); var e = P.current , r = Xg(e, I.type); e !== r && (V(et, I), V(P, r)) } function zt(I) { et.current === I && (H(P), H(et)), lt.current === I && (H(lt), Uk._currentValue = q) } var ft, Sa; function MA(I) { if (ft === void 0) try { throw Error() } catch (r) { var e = r.stack.trim().match(/\n( *(at )?)/); ft = e && e[1] || "", Sa = -1 < r.stack.indexOf(` at`) ? " ()" : -1 < r.stack.indexOf("@") ? "@unknown:0:0" : "" } return ` ` + ft + I + Sa } var XS = !1; function cS(I, e) { if (!I || XS) return ""; XS = !0; var r = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { var C = { DetermineComponentFrameRoot: function() { try { if (e) { var Et = function() { throw Error() }; if (Object.defineProperty(Et.prototype, "props", { set: function() { throw Error() } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(Et, []) } catch (At) { var X = At } Reflect.construct(I, [], Et) } else { try { Et.call() } catch (At) { X = At } I.call(Et.prototype) } } else { try { throw Error() } catch (At) { X = At } (Et = I()) && typeof Et.catch == "function" && Et.catch(function() {}) } } catch (At) { if (At && X && typeof At.stack == "string") return [At.stack, X.stack] } return [null, null] } }; C.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; var o = Object.getOwnPropertyDescriptor(C.DetermineComponentFrameRoot, "name"); o && o.configurable && Object.defineProperty(C.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" }); var Q = C.DetermineComponentFrameRoot() , K = Q[0] , N = Q[1]; if (K && N) { var F = K.split(` `) , f = N.split(` `); for (o = C = 0; C < F.length && !F[C].includes("DetermineComponentFrameRoot"); ) C++; for (; o < f.length && !f[o].includes("DetermineComponentFrameRoot"); ) o++; if (C === F.length || o === f.length) for (C = F.length - 1, o = f.length - 1; 1 <= C && 0 <= o && F[C] !== f[o]; ) o--; for (; 1 <= C && 0 <= o; C--, o--) if (F[C] !== f[o]) { if (C !== 1 || o !== 1) do if (C--, o--, 0 > o || F[C] !== f[o]) { var it = ` ` + F[C].replace(" at new ", " at "); return I.displayName && it.includes("") && (it = it.replace("", I.displayName)), it } while (1 <= C && 0 <= o); break } } } finally { XS = !1, Error.prepareStackTrace = r } return (r = I ? I.displayName || I.name : "") ? MA(r) : "" } function kS(I, e) { switch (I.tag) { case 26: case 27: case 5: return MA(I.type); case 16: return MA("Lazy"); case 13: return I.child !== e && e !== null ? MA("Suspense Fallback") : MA("Suspense"); case 19: return MA("SuspenseList"); case 0: case 15: return cS(I.type, !1); case 11: return cS(I.type.render, !1); case 1: return cS(I.type, !0); case 31: return MA("Activity"); default: return "" } } function qs(I) { try { var e = "" , r = null; do e += kS(I, r), r = I, I = I.return; while (I); return e } catch (C) { return ` Error generating stack: ` + C.message + ` ` + C.stack } } var Ta = Object.prototype.hasOwnProperty , Fs = A.unstable_scheduleCallback , xs = A.unstable_cancelCallback , ka = A.unstable_shouldYield , KS = A.unstable_requestPaint , ia = A.unstable_now , Te = A.unstable_getCurrentPriorityLevel , xi = A.unstable_ImmediatePriority , HI = A.unstable_UserBlockingPriority , yi = A.unstable_NormalPriority , ys = A.unstable_LowPriority , HS = A.unstable_IdlePriority , PI = A.log , ri = A.unstable_setDisableYieldValue , Li = null , ba = null; function pS(I) { if (typeof PI == "function" && ri(I), ba && typeof ba.setStrictMode == "function") try { ba.setStrictMode(Li, I) } catch {} } var la = Math.clz32 ? Math.clz32 : _t , je = Math.log , Ft = Math.LN2; function _t(I) { return I >>>= 0, I === 0 ? 32 : 31 - (je(I) / Ft | 0) | 0 } var Nt = 256 , AA = 262144 , LA = 4194304; function xt(I) { var e = I & 42; if (e !== 0) return e; switch (I & -I) { 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 I & 261888; case 262144: case 524288: case 1048576: case 2097152: return I & 3932160; case 4194304: case 8388608: case 16777216: case 33554432: return I & 62914560; case 67108864: return 67108864; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 0; default: return I } } function Mt(I, e, r) { var C = I.pendingLanes; if (C === 0) return 0; var o = 0 , Q = I.suspendedLanes , K = I.pingedLanes; I = I.warmLanes; var N = C & 134217727; return N !== 0 ? (C = N & ~Q, C !== 0 ? o = xt(C) : (K &= N, K !== 0 ? o = xt(K) : r || (r = N & ~I, r !== 0 && (o = xt(r))))) : (N = C & ~Q, N !== 0 ? o = xt(N) : K !== 0 ? o = xt(K) : r || (r = C & ~I, r !== 0 && (o = xt(r)))), o === 0 ? 0 : e !== 0 && e !== o && (e & Q) === 0 && (Q = o & -o, r = e & -e, Q >= r || Q === 32 && (r & 4194048) !== 0) ? e : o } function RA(I, e) { return (I.pendingLanes & ~(I.suspendedLanes & ~I.pingedLanes) & e) === 0 } function vA(I, e) { switch (I) { case 1: case 2: case 4: case 8: case 64: return e + 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 e + 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 XA() { var I = LA; return LA <<= 1, (LA & 62914560) === 0 && (LA = 4194304), I } function GS(I) { for (var e = [], r = 0; 31 > r; r++) e.push(I); return e } function YA(I, e) { I.pendingLanes |= e, e !== 268435456 && (I.suspendedLanes = 0, I.pingedLanes = 0, I.warmLanes = 0) } function fa(I, e, r, C, o, Q) { var K = I.pendingLanes; I.pendingLanes = r, I.suspendedLanes = 0, I.pingedLanes = 0, I.warmLanes = 0, I.expiredLanes &= r, I.entangledLanes &= r, I.errorRecoveryDisabledLanes &= r, I.shellSuspendCounter = 0; var N = I.entanglements , F = I.expirationTimes , f = I.hiddenUpdates; for (r = K & ~r; 0 < r; ) { var it = 31 - la(r) , Et = 1 << it; N[it] = 0, F[it] = -1; var X = f[it]; if (X !== null) for (f[it] = null, it = 0; it < X.length; it++) { var At = X[it]; At !== null && (At.lane &= -536870913) } r &= ~Et } C !== 0 && Ls(I, C, 0), Q !== 0 && o === 0 && I.tag !== 0 && (I.suspendedLanes |= Q & ~(K & ~e)) } function Ls(I, e, r) { I.pendingLanes |= e, I.suspendedLanes &= ~e; var C = 31 - la(e); I.entangledLanes |= e, I.entanglements[C] = I.entanglements[C] | 1073741824 | r & 261930 } function va(I, e) { var r = I.entangledLanes |= e; for (I = I.entanglements; r; ) { var C = 31 - la(r) , o = 1 << C; o & e | I[C] & e && (I[C] |= e), r &= ~o } } function Xa(I, e) { var r = e & -e; return r = (r & 42) !== 0 ? 1 : _I(r), (r & (I.suspendedLanes | e)) !== 0 ? 0 : r } function _I(I) { switch (I) { case 2: I = 1; break; case 8: I = 4; break; case 32: I = 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: I = 128; break; case 268435456: I = 134217728; break; default: I = 0 } return I } function PS(I) { return I &= -I, 2 < I ? 8 < I ? (I & 134217727) !== 0 ? 32 : 268435456 : 8 : 2 } function N2() { var I = z.p; return I !== 0 ? I : (I = window.event, I === void 0 ? 32 : oW(I.type)) } function BU(I, e) { var r = z.p; try { return z.p = I, e() } finally { z.p = r } } var Wl = Math.random().toString(36).slice(2) , oa = "__reactFiber$" + Wl , Ha = "__reactProps$" + Wl , $I = "__reactContainer$" + Wl , u2 = "__reactEvents$" + Wl , cj = "__reactListeners$" + Wl , Kj = "__reactHandles$" + Wl , TU = "__reactResources$" + Wl , qe = "__reactMarker$" + Wl; function M2(I) { delete I[oa], delete I[Ha], delete I[u2], delete I[cj], delete I[Kj] } function tE(I) { var e = I[oa]; if (e) return e; for (var r = I.parentNode; r; ) { if (e = r[$I] || r[oa]) { if (r = e.alternate, e.child !== null || r !== null && r.child !== null) for (I = aW(I); I !== null; ) { if (r = I[oa]) return r; I = aW(I) } return e } I = r, r = I.parentNode } return null } function AE(I) { if (I = I[oa] || I[$I]) { var e = I.tag; if (e === 5 || e === 6 || e === 13 || e === 31 || e === 26 || e === 27 || e === 3) return I } return null } function Fe(I) { var e = I.tag; if (e === 5 || e === 26 || e === 27 || e === 6) return I.stateNode; throw Error(S(33)) } function aE(I) { var e = I[TU]; return e || (e = I[TU] = { hoistableStyles: new Map, hoistableScripts: new Map }), e } function pa(I) { I[qe] = !0 } var jU = new Set , qU = {}; function ws(I, e) { SE(I, e), SE(I + "Capture", e) } function SE(I, e) { for (qU[I] = e, I = 0; I < e.length; I++) jU.add(e[I]) } var Gj = 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]*$") , FU = {} , xU = {}; function Yj(I) { return Ta.call(xU, I) ? !0 : Ta.call(FU, I) ? !1 : Gj.test(I) ? xU[I] = !0 : (FU[I] = !0, !1) } function br(I, e, r) { if (Yj(e)) if (r === null) I.removeAttribute(e); else { switch (typeof r) { case "undefined": case "function": case "symbol": I.removeAttribute(e); return; case "boolean": var C = e.toLowerCase().slice(0, 5); if (C !== "data-" && C !== "aria-") { I.removeAttribute(e); return } } I.setAttribute(e, "" + r) } } function or(I, e, r) { if (r === null) I.removeAttribute(e); else { switch (typeof r) { case "undefined": case "function": case "symbol": case "boolean": I.removeAttribute(e); return } I.setAttribute(e, "" + r) } } function wi(I, e, r, C) { if (C === null) I.removeAttribute(r); else { switch (typeof C) { case "undefined": case "function": case "symbol": case "boolean": I.removeAttribute(r); return } I.setAttributeNS(e, r, "" + C) } } function YS(I) { switch (typeof I) { case "bigint": case "boolean": case "number": case "string": case "undefined": return I; case "object": return I; default: return "" } } function yU(I) { var e = I.type; return (I = I.nodeName) && I.toLowerCase() === "input" && (e === "checkbox" || e === "radio") } function Nj(I, e, r) { var C = Object.getOwnPropertyDescriptor(I.constructor.prototype, e); if (!I.hasOwnProperty(e) && typeof C < "u" && typeof C.get == "function" && typeof C.set == "function") { var o = C.get , Q = C.set; return Object.defineProperty(I, e, { configurable: !0, get: function() { return o.call(this) }, set: function(K) { r = "" + K, Q.call(this, K) } }), Object.defineProperty(I, e, { enumerable: C.enumerable }), { getValue: function() { return r }, setValue: function(K) { r = "" + K }, stopTracking: function() { I._valueTracker = null, delete I[e] } } } } function B2(I) { if (!I._valueTracker) { var e = yU(I) ? "checked" : "value"; I._valueTracker = Nj(I, e, "" + I[e]) } } function LU(I) { if (!I) return !1; var e = I._valueTracker; if (!e) return !0; var r = e.getValue() , C = ""; return I && (C = yU(I) ? I.checked ? "true" : "false" : I.value), I = C, I !== r ? (e.setValue(I), !0) : !1 } function hr(I) { if (I = I || (typeof document < "u" ? document : void 0), typeof I > "u") return null; try { return I.activeElement || I.body } catch { return I.body } } var uj = /[\n"\\]/g; function NS(I) { return I.replace(uj, function(e) { return "\\" + e.charCodeAt(0).toString(16) + " " }) } function T2(I, e, r, C, o, Q, K, N) { I.name = "", K != null && typeof K != "function" && typeof K != "symbol" && typeof K != "boolean" ? I.type = K : I.removeAttribute("type"), e != null ? K === "number" ? (e === 0 && I.value === "" || I.value != e) && (I.value = "" + YS(e)) : I.value !== "" + YS(e) && (I.value = "" + YS(e)) : K !== "submit" && K !== "reset" || I.removeAttribute("value"), e != null ? j2(I, K, YS(e)) : r != null ? j2(I, K, YS(r)) : C != null && I.removeAttribute("value"), o == null && Q != null && (I.defaultChecked = !!Q), o != null && (I.checked = o && typeof o != "function" && typeof o != "symbol"), N != null && typeof N != "function" && typeof N != "symbol" && typeof N != "boolean" ? I.name = "" + YS(N) : I.removeAttribute("name") } function wU(I, e, r, C, o, Q, K, N) { if (Q != null && typeof Q != "function" && typeof Q != "symbol" && typeof Q != "boolean" && (I.type = Q), e != null || r != null) { if (!(Q !== "submit" && Q !== "reset" || e != null)) { B2(I); return } r = r != null ? "" + YS(r) : "", e = e != null ? "" + YS(e) : r, N || e === I.value || (I.value = e), I.defaultValue = e } C = C ?? o, C = typeof C != "function" && typeof C != "symbol" && !!C, I.checked = N ? I.checked : !!C, I.defaultChecked = !!C, K != null && typeof K != "function" && typeof K != "symbol" && typeof K != "boolean" && (I.name = K), B2(I) } function j2(I, e, r) { e === "number" && hr(I.ownerDocument) === I || I.defaultValue === "" + r || (I.defaultValue = "" + r) } function iE(I, e, r, C) { if (I = I.options, e) { e = {}; for (var o = 0; o < r.length; o++) e["$" + r[o]] = !0; for (r = 0; r < I.length; r++) o = e.hasOwnProperty("$" + I[r].value), I[r].selected !== o && (I[r].selected = o), o && C && (I[r].defaultSelected = !0) } else { for (r = "" + YS(r), e = null, o = 0; o < I.length; o++) { if (I[o].value === r) { I[o].selected = !0, C && (I[o].defaultSelected = !0); return } e !== null || I[o].disabled || (e = I[o]) } e !== null && (e.selected = !0) } } function zU(I, e, r) { if (e != null && (e = "" + YS(e), e !== I.value && (I.value = e), r == null)) { I.defaultValue !== e && (I.defaultValue = e); return } I.defaultValue = r != null ? "" + YS(r) : "" } function OU(I, e, r, C) { if (e == null) { if (C != null) { if (r != null) throw Error(S(92)); if (It(C)) { if (1 < C.length) throw Error(S(93)); C = C[0] } r = C } r == null && (r = ""), e = r } r = YS(e), I.defaultValue = r, C = I.textContent, C === r && C !== "" && C !== null && (I.value = C), B2(I) } function lE(I, e) { if (e) { var r = I.firstChild; if (r && r === I.lastChild && r.nodeType === 3) { r.nodeValue = e; return } } I.textContent = e } var Mj = 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 WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")); function VU(I, e, r) { var C = e.indexOf("--") === 0; r == null || typeof r == "boolean" || r === "" ? C ? I.setProperty(e, "") : e === "float" ? I.cssFloat = "" : I[e] = "" : C ? I.setProperty(e, r) : typeof r != "number" || r === 0 || Mj.has(e) ? e === "float" ? I.cssFloat = r : I[e] = ("" + r).trim() : I[e] = r + "px" } function DU(I, e, r) { if (e != null && typeof e != "object") throw Error(S(62)); if (I = I.style, r != null) { for (var C in r) !r.hasOwnProperty(C) || e != null && e.hasOwnProperty(C) || (C.indexOf("--") === 0 ? I.setProperty(C, "") : C === "float" ? I.cssFloat = "" : I[C] = ""); for (var o in e) C = e[o], e.hasOwnProperty(o) && r[o] !== C && VU(I, o, C) } else for (var Q in e) e.hasOwnProperty(Q) && VU(I, Q, e[Q]) } function q2(I) { if (I.indexOf("-") === -1) return !1; switch (I) { 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 Bj = new Map([["acceptCharset", "accept-charset"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"], ["crossOrigin", "crossorigin"], ["accentHeight", "accent-height"], ["alignmentBaseline", "alignment-baseline"], ["arabicForm", "arabic-form"], ["baselineShift", "baseline-shift"], ["capHeight", "cap-height"], ["clipPath", "clip-path"], ["clipRule", "clip-rule"], ["colorInterpolation", "color-interpolation"], ["colorInterpolationFilters", "color-interpolation-filters"], ["colorProfile", "color-profile"], ["colorRendering", "color-rendering"], ["dominantBaseline", "dominant-baseline"], ["enableBackground", "enable-background"], ["fillOpacity", "fill-opacity"], ["fillRule", "fill-rule"], ["floodColor", "flood-color"], ["floodOpacity", "flood-opacity"], ["fontFamily", "font-family"], ["fontSize", "font-size"], ["fontSizeAdjust", "font-size-adjust"], ["fontStretch", "font-stretch"], ["fontStyle", "font-style"], ["fontVariant", "font-variant"], ["fontWeight", "font-weight"], ["glyphName", "glyph-name"], ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], ["glyphOrientationVertical", "glyph-orientation-vertical"], ["horizAdvX", "horiz-adv-x"], ["horizOriginX", "horiz-origin-x"], ["imageRendering", "image-rendering"], ["letterSpacing", "letter-spacing"], ["lightingColor", "lighting-color"], ["markerEnd", "marker-end"], ["markerMid", "marker-mid"], ["markerStart", "marker-start"], ["overlinePosition", "overline-position"], ["overlineThickness", "overline-thickness"], ["paintOrder", "paint-order"], ["panose-1", "panose-1"], ["pointerEvents", "pointer-events"], ["renderingIntent", "rendering-intent"], ["shapeRendering", "shape-rendering"], ["stopColor", "stop-color"], ["stopOpacity", "stop-opacity"], ["strikethroughPosition", "strikethrough-position"], ["strikethroughThickness", "strikethrough-thickness"], ["strokeDasharray", "stroke-dasharray"], ["strokeDashoffset", "stroke-dashoffset"], ["strokeLinecap", "stroke-linecap"], ["strokeLinejoin", "stroke-linejoin"], ["strokeMiterlimit", "stroke-miterlimit"], ["strokeOpacity", "stroke-opacity"], ["strokeWidth", "stroke-width"], ["textAnchor", "text-anchor"], ["textDecoration", "text-decoration"], ["textRendering", "text-rendering"], ["transformOrigin", "transform-origin"], ["underlinePosition", "underline-position"], ["underlineThickness", "underline-thickness"], ["unicodeBidi", "unicode-bidi"], ["unicodeRange", "unicode-range"], ["unitsPerEm", "units-per-em"], ["vAlphabetic", "v-alphabetic"], ["vHanging", "v-hanging"], ["vIdeographic", "v-ideographic"], ["vMathematical", "v-mathematical"], ["vectorEffect", "vector-effect"], ["vertAdvY", "vert-adv-y"], ["vertOriginX", "vert-origin-x"], ["vertOriginY", "vert-origin-y"], ["wordSpacing", "word-spacing"], ["writingMode", "writing-mode"], ["xmlnsXlink", "xmlns:xlink"], ["xHeight", "x-height"]]) , Tj = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i; function Qr(I) { return Tj.test("" + I) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : I } function zi() {} var F2 = null; function x2(I) { return I = I.target || I.srcElement || window, I.correspondingUseElement && (I = I.correspondingUseElement), I.nodeType === 3 ? I.parentNode : I } var sE = null , IE = null; function fU(I) { var e = AE(I); if (e && (I = e.stateNode)) { var r = I[Ha] || null; t: switch (I = e.stateNode, e.type) { case "input": if (T2(I, r.value, r.defaultValue, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name), e = r.name, r.type === "radio" && e != null) { for (r = I; r.parentNode; ) r = r.parentNode; for (r = r.querySelectorAll('input[name="' + NS("" + e) + '"][type="radio"]'), e = 0; e < r.length; e++) { var C = r[e]; if (C !== I && C.form === I.form) { var o = C[Ha] || null; if (!o) throw Error(S(90)); T2(C, o.value, o.defaultValue, o.defaultValue, o.checked, o.defaultChecked, o.type, o.name) } } for (e = 0; e < r.length; e++) C = r[e], C.form === I.form && LU(C) } break t; case "textarea": zU(I, r.value, r.defaultValue); break t; case "select": e = r.value, e != null && iE(I, !!r.multiple, e, !1) } } } var y2 = !1; function vU(I, e, r) { if (y2) return I(e, r); y2 = !0; try { var C = I(e); return C } finally { if (y2 = !1, (sE !== null || IE !== null) && (Im(), sE && (e = sE, I = IE, IE = sE = null, fU(e), I))) for (e = 0; e < I.length; e++) fU(I[e]) } } function xe(I, e) { var r = I.stateNode; if (r === null) return null; var C = r[Ha] || null; if (C === null) return null; r = C[e]; t: switch (e) { case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": (C = !C.disabled) || (I = I.type, C = !(I === "button" || I === "input" || I === "select" || I === "textarea")), I = !C; break t; default: I = !1 } if (I) return null; if (r && typeof r != "function") throw Error(S(231, e, typeof r)); return r } var Oi = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u") , L2 = !1; if (Oi) try { var ye = {}; Object.defineProperty(ye, "passive", { get: function() { L2 = !0 } }), window.addEventListener("test", ye, ye), window.removeEventListener("test", ye, ye) } catch { L2 = !1 } var cl = null , w2 = null , Rr = null; function XU() { if (Rr) return Rr; var I, e = w2, r = e.length, C, o = "value" in cl ? cl.value : cl.textContent, Q = o.length; for (I = 0; I < r && e[I] === o[I]; I++) ; var K = r - I; for (C = 1; C <= K && e[r - C] === o[Q - C]; C++) ; return Rr = o.slice(I, 1 < C ? 1 - C : void 0) } function Ur(I) { var e = I.keyCode; return "charCode" in I ? (I = I.charCode, I === 0 && e === 13 && (I = 13)) : I = e, I === 10 && (I = 13), 32 <= I || I === 13 ? I : 0 } function Zr() { return !0 } function HU() { return !1 } function Pa(I) { function e(r, C, o, Q, K) { this._reactName = r, this._targetInst = o, this.type = C, this.nativeEvent = Q, this.target = K, this.currentTarget = null; for (var N in I) I.hasOwnProperty(N) && (r = I[N], this[N] = r ? r(Q) : Q[N]); return this.isDefaultPrevented = (Q.defaultPrevented != null ? Q.defaultPrevented : Q.returnValue === !1) ? Zr : HU, this.isPropagationStopped = HU, this } return J(e.prototype, { preventDefault: function() { this.defaultPrevented = !0; var r = this.nativeEvent; r && (r.preventDefault ? r.preventDefault() : typeof r.returnValue != "unknown" && (r.returnValue = !1), this.isDefaultPrevented = Zr) }, stopPropagation: function() { var r = this.nativeEvent; r && (r.stopPropagation ? r.stopPropagation() : typeof r.cancelBubble != "unknown" && (r.cancelBubble = !0), this.isPropagationStopped = Zr) }, persist: function() {}, isPersistent: Zr }), e } var zs = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(I) { return I.timeStamp || Date.now() }, defaultPrevented: 0, isTrusted: 0 }, dr = Pa(zs), Le = J({}, zs, { view: 0, detail: 0 }), jj = Pa(Le), z2, O2, we, gr = J({}, Le, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: D2, button: 0, buttons: 0, relatedTarget: function(I) { return I.relatedTarget === void 0 ? I.fromElement === I.srcElement ? I.toElement : I.fromElement : I.relatedTarget }, movementX: function(I) { return "movementX" in I ? I.movementX : (I !== we && (we && I.type === "mousemove" ? (z2 = I.screenX - we.screenX, O2 = I.screenY - we.screenY) : O2 = z2 = 0, we = I), z2) }, movementY: function(I) { return "movementY" in I ? I.movementY : O2 } }), PU = Pa(gr), qj = J({}, gr, { dataTransfer: 0 }), Fj = Pa(qj), xj = J({}, Le, { relatedTarget: 0 }), V2 = Pa(xj), yj = J({}, zs, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Lj = Pa(yj), wj = J({}, zs, { clipboardData: function(I) { return "clipboardData" in I ? I.clipboardData : window.clipboardData } }), zj = Pa(wj), Oj = J({}, zs, { data: 0 }), _U = Pa(Oj), Vj = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, Dj = { 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" }, fj = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function vj(I) { var e = this.nativeEvent; return e.getModifierState ? e.getModifierState(I) : (I = fj[I]) ? !!e[I] : !1 } function D2() { return vj } var Xj = J({}, Le, { key: function(I) { if (I.key) { var e = Vj[I.key] || I.key; if (e !== "Unidentified") return e } return I.type === "keypress" ? (I = Ur(I), I === 13 ? "Enter" : String.fromCharCode(I)) : I.type === "keydown" || I.type === "keyup" ? Dj[I.keyCode] || "Unidentified" : "" }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: D2, charCode: function(I) { return I.type === "keypress" ? Ur(I) : 0 }, keyCode: function(I) { return I.type === "keydown" || I.type === "keyup" ? I.keyCode : 0 }, which: function(I) { return I.type === "keypress" ? Ur(I) : I.type === "keydown" || I.type === "keyup" ? I.keyCode : 0 } }) , Hj = Pa(Xj) , Pj = J({}, gr, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }) , $U = Pa(Pj) , _j = J({}, Le, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: D2 }) , $j = Pa(_j) , tq = J({}, zs, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }) , Aq = Pa(tq) , aq = J({}, gr, { deltaX: function(I) { return "deltaX" in I ? I.deltaX : "wheelDeltaX" in I ? -I.wheelDeltaX : 0 }, deltaY: function(I) { return "deltaY" in I ? I.deltaY : "wheelDeltaY" in I ? -I.wheelDeltaY : "wheelDelta" in I ? -I.wheelDelta : 0 }, deltaZ: 0, deltaMode: 0 }) , Sq = Pa(aq) , iq = J({}, zs, { newState: 0, oldState: 0 }) , lq = Pa(iq) , sq = [9, 13, 27, 32] , f2 = Oi && "CompositionEvent" in window , ze = null; Oi && "documentMode" in document && (ze = document.documentMode); var Iq = Oi && "TextEvent" in window && !ze , tZ = Oi && (!f2 || ze && 8 < ze && 11 >= ze) , AZ = " " , aZ = !1; function SZ(I, e) { switch (I) { case "keyup": return sq.indexOf(e.keyCode) !== -1; case "keydown": return e.keyCode !== 229; case "keypress": case "mousedown": case "focusout": return !0; default: return !1 } } function iZ(I) { return I = I.detail, typeof I == "object" && "data" in I ? I.data : null } var EE = !1; function Eq(I, e) { switch (I) { case "compositionend": return iZ(e); case "keypress": return e.which !== 32 ? null : (aZ = !0, AZ); case "textInput": return I = e.data, I === AZ && aZ ? null : I; default: return null } } function eq(I, e) { if (EE) return I === "compositionend" || !f2 && SZ(I, e) ? (I = XU(), Rr = w2 = cl = null, EE = !1, I) : null; switch (I) { case "paste": return null; case "keypress": if (!(e.ctrlKey || e.altKey || e.metaKey) || e.ctrlKey && e.altKey) { if (e.char && 1 < e.char.length) return e.char; if (e.which) return String.fromCharCode(e.which) } return null; case "compositionend": return tZ && e.locale !== "ko" ? null : e.data; default: return null } } var kq = { 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 lZ(I) { var e = I && I.nodeName && I.nodeName.toLowerCase(); return e === "input" ? !!kq[I.type] : e === "textarea" } function sZ(I, e, r, C) { sE ? IE ? IE.push(C) : IE = [C] : sE = C, e = Jm(e, "onChange"), 0 < e.length && (r = new dr("onChange","change",null,r,C), I.push({ event: r, listeners: e })) } var Oe = null , Ve = null; function pq(I) { wg(I, 0) } function Wr(I) { var e = Fe(I); if (LU(e)) return I } function IZ(I, e) { if (I === "change") return e } var EZ = !1; if (Oi) { var v2; if (Oi) { var X2 = "oninput" in document; if (!X2) { var eZ = document.createElement("div"); eZ.setAttribute("oninput", "return;"), X2 = typeof eZ.oninput == "function" } v2 = X2 } else v2 = !1; EZ = v2 && (!document.documentMode || 9 < document.documentMode) } function kZ() { Oe && (Oe.detachEvent("onpropertychange", pZ), Ve = Oe = null) } function pZ(I) { if (I.propertyName === "value" && Wr(Ve)) { var e = []; sZ(e, Ve, I, x2(I)), vU(pq, e) } } function rq(I, e, r) { I === "focusin" ? (kZ(), Oe = e, Ve = r, Oe.attachEvent("onpropertychange", pZ)) : I === "focusout" && kZ() } function mq(I) { if (I === "selectionchange" || I === "keyup" || I === "keydown") return Wr(Ve) } function Jq(I, e) { if (I === "click") return Wr(e) } function Cq(I, e) { if (I === "input" || I === "change") return Wr(e) } function nq(I, e) { return I === e && (I !== 0 || 1 / I === 1 / e) || I !== I && e !== e } var rS = typeof Object.is == "function" ? Object.is : nq; function De(I, e) { if (rS(I, e)) return !0; if (typeof I != "object" || I === null || typeof e != "object" || e === null) return !1; var r = Object.keys(I) , C = Object.keys(e); if (r.length !== C.length) return !1; for (C = 0; C < r.length; C++) { var o = r[C]; if (!Ta.call(e, o) || !rS(I[o], e[o])) return !1 } return !0 } function rZ(I) { for (; I && I.firstChild; ) I = I.firstChild; return I } function mZ(I, e) { var r = rZ(I); I = 0; for (var C; r; ) { if (r.nodeType === 3) { if (C = I + r.textContent.length, I <= e && C >= e) return { node: r, offset: e - I }; I = C } t: { for (; r; ) { if (r.nextSibling) { r = r.nextSibling; break t } r = r.parentNode } r = void 0 } r = rZ(r) } } function JZ(I, e) { return I && e ? I === e ? !0 : I && I.nodeType === 3 ? !1 : e && e.nodeType === 3 ? JZ(I, e.parentNode) : "contains" in I ? I.contains(e) : I.compareDocumentPosition ? !!(I.compareDocumentPosition(e) & 16) : !1 : !1 } function CZ(I) { I = I != null && I.ownerDocument != null && I.ownerDocument.defaultView != null ? I.ownerDocument.defaultView : window; for (var e = hr(I.document); e instanceof I.HTMLIFrameElement; ) { try { var r = typeof e.contentWindow.location.href == "string" } catch { r = !1 } if (r) I = e.contentWindow; else break; e = hr(I.document) } return e } function H2(I) { var e = I && I.nodeName && I.nodeName.toLowerCase(); return e && (e === "input" && (I.type === "text" || I.type === "search" || I.type === "tel" || I.type === "url" || I.type === "password") || e === "textarea" || I.contentEditable === "true") } var bq = Oi && "documentMode" in document && 11 >= document.documentMode , eE = null , P2 = null , fe = null , _2 = !1; function nZ(I, e, r) { var C = r.window === r ? r.document : r.nodeType === 9 ? r : r.ownerDocument; _2 || eE == null || eE !== hr(C) || (C = eE, "selectionStart" in C && H2(C) ? C = { start: C.selectionStart, end: C.selectionEnd } : (C = (C.ownerDocument && C.ownerDocument.defaultView || window).getSelection(), C = { anchorNode: C.anchorNode, anchorOffset: C.anchorOffset, focusNode: C.focusNode, focusOffset: C.focusOffset }), fe && De(fe, C) || (fe = C, C = Jm(P2, "onSelect"), 0 < C.length && (e = new dr("onSelect","select",null,e,r), I.push({ event: e, listeners: C }), e.target = eE))) } function Os(I, e) { var r = {}; return r[I.toLowerCase()] = e.toLowerCase(), r["Webkit" + I] = "webkit" + e, r["Moz" + I] = "moz" + e, r } var kE = { animationend: Os("Animation", "AnimationEnd"), animationiteration: Os("Animation", "AnimationIteration"), animationstart: Os("Animation", "AnimationStart"), transitionrun: Os("Transition", "TransitionRun"), transitionstart: Os("Transition", "TransitionStart"), transitioncancel: Os("Transition", "TransitionCancel"), transitionend: Os("Transition", "TransitionEnd") } , $2 = {} , bZ = {}; Oi && (bZ = document.createElement("div").style, "AnimationEvent" in window || (delete kE.animationend.animation, delete kE.animationiteration.animation, delete kE.animationstart.animation), "TransitionEvent" in window || delete kE.transitionend.transition); function Vs(I) { if ($2[I]) return $2[I]; if (!kE[I]) return I; var e = kE[I], r; for (r in e) if (e.hasOwnProperty(r) && r in bZ) return $2[I] = e[r]; return I } var oZ = Vs("animationend") , hZ = Vs("animationiteration") , QZ = Vs("animationstart") , oq = Vs("transitionrun") , hq = Vs("transitionstart") , Qq = Vs("transitioncancel") , RZ = Vs("transitionend") , UZ = new Map , tn = "abort auxClick beforeToggle 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(" "); tn.push("scrollEnd"); function _S(I, e) { UZ.set(I, e), ws(e, [I]) } var cr = typeof reportError == "function" ? reportError : function(I) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { var e = new window.ErrorEvent("error",{ bubbles: !0, cancelable: !0, message: typeof I == "object" && I !== null && typeof I.message == "string" ? String(I.message) : String(I), error: I }); if (!window.dispatchEvent(e)) return } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", I); return } console.error(I) } , uS = [] , pE = 0 , An = 0; function Kr() { for (var I = pE, e = An = pE = 0; e < I; ) { var r = uS[e]; uS[e++] = null; var C = uS[e]; uS[e++] = null; var o = uS[e]; uS[e++] = null; var Q = uS[e]; if (uS[e++] = null, C !== null && o !== null) { var K = C.pending; K === null ? o.next = o : (o.next = K.next, K.next = o), C.pending = o } Q !== 0 && ZZ(r, o, Q) } } function Gr(I, e, r, C) { uS[pE++] = I, uS[pE++] = e, uS[pE++] = r, uS[pE++] = C, An |= C, I.lanes |= C, I = I.alternate, I !== null && (I.lanes |= C) } function an(I, e, r, C) { return Gr(I, e, r, C), Yr(I) } function Ds(I, e) { return Gr(I, null, null, e), Yr(I) } function ZZ(I, e, r) { I.lanes |= r; var C = I.alternate; C !== null && (C.lanes |= r); for (var o = !1, Q = I.return; Q !== null; ) Q.childLanes |= r, C = Q.alternate, C !== null && (C.childLanes |= r), Q.tag === 22 && (I = Q.stateNode, I === null || I._visibility & 1 || (o = !0)), I = Q, Q = Q.return; return I.tag === 3 ? (Q = I.stateNode, o && e !== null && (o = 31 - la(r), I = Q.hiddenUpdates, C = I[o], C === null ? I[o] = [e] : C.push(e), e.lane = r | 536870912), Q) : null } function Yr(I) { if (50 < Ck) throw Ck = 0, rb = null, Error(S(185)); for (var e = I.return; e !== null; ) I = e, e = I.return; return I.tag === 3 ? I.stateNode : null } var rE = {}; function Rq(I, e, r, C) { this.tag = I, this.key = r, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = e, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = C, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null } function mS(I, e, r, C) { return new Rq(I,e,r,C) } function Sn(I) { return I = I.prototype, !(!I || !I.isReactComponent) } function Vi(I, e) { var r = I.alternate; return r === null ? (r = mS(I.tag, e, I.key, I.mode), r.elementType = I.elementType, r.type = I.type, r.stateNode = I.stateNode, r.alternate = I, I.alternate = r) : (r.pendingProps = e, r.type = I.type, r.flags = 0, r.subtreeFlags = 0, r.deletions = null), r.flags = I.flags & 65011712, r.childLanes = I.childLanes, r.lanes = I.lanes, r.child = I.child, r.memoizedProps = I.memoizedProps, r.memoizedState = I.memoizedState, r.updateQueue = I.updateQueue, e = I.dependencies, r.dependencies = e === null ? null : { lanes: e.lanes, firstContext: e.firstContext }, r.sibling = I.sibling, r.index = I.index, r.ref = I.ref, r.refCleanup = I.refCleanup, r } function dZ(I, e) { I.flags &= 65011714; var r = I.alternate; return r === 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 = r.childLanes, I.lanes = r.lanes, I.child = r.child, I.subtreeFlags = 0, I.deletions = null, I.memoizedProps = r.memoizedProps, I.memoizedState = r.memoizedState, I.updateQueue = r.updateQueue, I.type = r.type, e = r.dependencies, I.dependencies = e === null ? null : { lanes: e.lanes, firstContext: e.firstContext }), I } function Nr(I, e, r, C, o, Q) { var K = 0; if (C = I, typeof I == "function") Sn(I) && (K = 1); else if (typeof I == "string") K = WF(I, r, P.current) ? 26 : I === "html" || I === "head" || I === "body" ? 27 : 5; else t: switch (I) { case L: return I = mS(31, r, e, o), I.elementType = L, I.lanes = Q, I; case R: return fs(r.children, o, Q, e); case Z: K = 8, o |= 24; break; case g: return I = mS(12, r, e, o | 2), I.elementType = g, I.lanes = Q, I; case Y: return I = mS(13, r, e, o), I.elementType = Y, I.lanes = Q, I; case B: return I = mS(19, r, e, o), I.elementType = B, I.lanes = Q, I; default: if (typeof I == "object" && I !== null) switch (I.$$typeof) { case c: K = 10; break t; case W: K = 9; break t; case u: K = 11; break t; case G: K = 14; break t; case M: K = 16, C = null; break t } K = 29, r = Error(S(130, I === null ? "null" : typeof I, "")), C = null } return e = mS(K, r, e, o), e.elementType = I, e.type = C, e.lanes = Q, e } function fs(I, e, r, C) { return I = mS(7, I, C, e), I.lanes = r, I } function ln(I, e, r) { return I = mS(6, I, null, e), I.lanes = r, I } function gZ(I) { var e = mS(18, null, null, 0); return e.stateNode = I, e } function sn(I, e, r) { return e = mS(4, I.children !== null ? I.children : [], I.key, e), e.lanes = r, e.stateNode = { containerInfo: I.containerInfo, pendingChildren: null, implementation: I.implementation }, e } var WZ = new WeakMap; function MS(I, e) { if (typeof I == "object" && I !== null) { var r = WZ.get(I); return r !== void 0 ? r : (e = { value: I, source: e, stack: qs(e) }, WZ.set(I, e), e) } return { value: I, source: e, stack: qs(e) } } var mE = [] , JE = 0 , ur = null , ve = 0 , BS = [] , TS = 0 , Kl = null , mi = 1 , Ji = ""; function Di(I, e) { mE[JE++] = ve, mE[JE++] = ur, ur = I, ve = e } function cZ(I, e, r) { BS[TS++] = mi, BS[TS++] = Ji, BS[TS++] = Kl, Kl = I; var C = mi; I = Ji; var o = 32 - la(C) - 1; C &= ~(1 << o), r += 1; var Q = 32 - la(e) + o; if (30 < Q) { var K = o - o % 5; Q = (C & (1 << K) - 1).toString(32), C >>= K, o -= K, mi = 1 << 32 - la(e) + o | r << o | C, Ji = Q + I } else mi = 1 << Q | r << o | C, Ji = I } function In(I) { I.return !== null && (Di(I, 1), cZ(I, 1, 0)) } function En(I) { for (; I === ur; ) ur = mE[--JE], mE[JE] = null, ve = mE[--JE], mE[JE] = null; for (; I === Kl; ) Kl = BS[--TS], BS[TS] = null, Ji = BS[--TS], BS[TS] = null, mi = BS[--TS], BS[TS] = null } function KZ(I, e) { BS[TS++] = mi, BS[TS++] = Ji, BS[TS++] = Kl, mi = e.id, Ji = e.overflow, Kl = I } var ha = null , ZA = null , $t = !1 , Gl = null , jS = !1 , en = Error(S(519)); function Yl(I) { var e = Error(S(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")); throw Xe(MS(e, I)), en } function GZ(I) { var e = I.stateNode , r = I.type , C = I.memoizedProps; switch (e[oa] = I, e[Ha] = C, r) { case "dialog": Xt("cancel", e), Xt("close", e); break; case "iframe": case "object": case "embed": Xt("load", e); break; case "video": case "audio": for (r = 0; r < bk.length; r++) Xt(bk[r], e); break; case "source": Xt("error", e); break; case "img": case "image": case "link": Xt("error", e), Xt("load", e); break; case "details": Xt("toggle", e); break; case "input": Xt("invalid", e), wU(e, C.value, C.defaultValue, C.checked, C.defaultChecked, C.type, C.name, !0); break; case "select": Xt("invalid", e); break; case "textarea": Xt("invalid", e), OU(e, C.value, C.defaultValue, C.children) } r = C.children, typeof r != "string" && typeof r != "number" && typeof r != "bigint" || e.textContent === "" + r || C.suppressHydrationWarning === !0 || Dg(e.textContent, r) ? (C.popover != null && (Xt("beforetoggle", e), Xt("toggle", e)), C.onScroll != null && Xt("scroll", e), C.onScrollEnd != null && Xt("scrollend", e), C.onClick != null && (e.onclick = zi), e = !0) : e = !1, e || Yl(I, !0) } function YZ(I) { for (ha = I.return; ha; ) switch (ha.tag) { case 5: case 31: case 13: jS = !1; return; case 27: case 3: jS = !0; return; default: ha = ha.return } } function CE(I) { if (I !== ha) return !1; if (!$t) return YZ(I), $t = !0, !1; var e = I.tag, r; if ((r = e !== 3 && e !== 27) && ((r = e === 5) && (r = I.type, r = !(r !== "form" && r !== "button") || cb(I.type, I.memoizedProps)), r = !r), r && ZA && Yl(I), YZ(I), e === 13) { if (I = I.memoizedState, I = I !== null ? I.dehydrated : null, !I) throw Error(S(317)); ZA = AW(I) } else if (e === 31) { if (I = I.memoizedState, I = I !== null ? I.dehydrated : null, !I) throw Error(S(317)); ZA = AW(I) } else e === 27 ? (e = ZA, Ol(I.type) ? (I = ub, ub = null, ZA = I) : ZA = e) : ZA = ha ? FS(I.stateNode.nextSibling) : null; return !0 } function vs() { ZA = ha = null, $t = !1 } function kn() { var I = Gl; return I !== null && (AS === null ? AS = I : AS.push.apply(AS, I), Gl = null), I } function Xe(I) { Gl === null ? Gl = [I] : Gl.push(I) } var pn = j(null) , Xs = null , fi = null; function Nl(I, e, r) { V(pn, e._currentValue), e._currentValue = r } function vi(I) { I._currentValue = pn.current, H(pn) } function rn(I, e, r) { for (; I !== null; ) { var C = I.alternate; if ((I.childLanes & e) !== e ? (I.childLanes |= e, C !== null && (C.childLanes |= e)) : C !== null && (C.childLanes & e) !== e && (C.childLanes |= e), I === r) break; I = I.return } } function mn(I, e, r, C) { var o = I.child; for (o !== null && (o.return = I); o !== null; ) { var Q = o.dependencies; if (Q !== null) { var K = o.child; Q = Q.firstContext; t: for (; Q !== null; ) { var N = Q; Q = o; for (var F = 0; F < e.length; F++) if (N.context === e[F]) { Q.lanes |= r, N = Q.alternate, N !== null && (N.lanes |= r), rn(Q.return, r, I), C || (K = null); break t } Q = N.next } } else if (o.tag === 18) { if (K = o.return, K === null) throw Error(S(341)); K.lanes |= r, Q = K.alternate, Q !== null && (Q.lanes |= r), rn(K, r, I), K = null } else K = o.child; if (K !== null) K.return = o; else for (K = o; K !== null; ) { if (K === I) { K = null; break } if (o = K.sibling, o !== null) { o.return = K.return, K = o; break } K = K.return } o = K } } function nE(I, e, r, C) { I = null; for (var o = e, Q = !1; o !== null; ) { if (!Q) { if ((o.flags & 524288) !== 0) Q = !0; else if ((o.flags & 262144) !== 0) break } if (o.tag === 10) { var K = o.alternate; if (K === null) throw Error(S(387)); if (K = K.memoizedProps, K !== null) { var N = o.type; rS(o.pendingProps.value, K.value) || (I !== null ? I.push(N) : I = [N]) } } else if (o === lt.current) { if (K = o.alternate, K === null) throw Error(S(387)); K.memoizedState.memoizedState !== o.memoizedState.memoizedState && (I !== null ? I.push(Uk) : I = [Uk]) } o = o.return } I !== null && mn(e, I, r, C), e.flags |= 262144 } function Mr(I) { for (I = I.firstContext; I !== null; ) { if (!rS(I.context._currentValue, I.memoizedValue)) return !0; I = I.next } return !1 } function Hs(I) { Xs = I, fi = null, I = I.dependencies, I !== null && (I.firstContext = null) } function Qa(I) { return NZ(Xs, I) } function Br(I, e) { return Xs === null && Hs(I), NZ(I, e) } function NZ(I, e) { var r = e._currentValue; if (e = { context: e, memoizedValue: r, next: null }, fi === null) { if (I === null) throw Error(S(308)); fi = e, I.dependencies = { lanes: 0, firstContext: e }, I.flags |= 524288 } else fi = fi.next = e; return r } var Uq = typeof AbortController < "u" ? AbortController : function() { var I = [] , e = this.signal = { aborted: !1, addEventListener: function(r, C) { I.push(C) } }; this.abort = function() { e.aborted = !0, I.forEach(function(r) { return r() }) } } , Zq = A.unstable_scheduleCallback , dq = A.unstable_NormalPriority , HA = { $$typeof: c, Consumer: null, Provider: null, _currentValue: null, _currentValue2: null, _threadCount: 0 }; function Jn() { return { controller: new Uq, data: new Map, refCount: 0 } } function He(I) { I.refCount--, I.refCount === 0 && Zq(dq, function() { I.controller.abort() }) } var Pe = null , Cn = 0 , bE = 0 , oE = null; function gq(I, e) { if (Pe === null) { var r = Pe = []; Cn = 0, bE = ob(), oE = { status: "pending", value: void 0, then: function(C) { r.push(C) } } } return Cn++, e.then(uZ, uZ), e } function uZ() { if (--Cn === 0 && Pe !== null) { oE !== null && (oE.status = "fulfilled"); var I = Pe; Pe = null, bE = 0, oE = null; for (var e = 0; e < I.length; e++) (0, I[e])() } } function Wq(I, e) { var r = [] , C = { status: "pending", value: null, reason: null, then: function(o) { r.push(o) } }; return I.then(function() { C.status = "fulfilled", C.value = e; for (var o = 0; o < r.length; o++) (0, r[o])(e) }, function(o) { for (C.status = "rejected", C.reason = o, o = 0; o < r.length; o++) (0, r[o])(void 0) }), C } var MZ = T.S; T.S = function(I, e) { ng = ia(), typeof e == "object" && e !== null && typeof e.then == "function" && gq(I, e), MZ !== null && MZ(I, e) } ; var Ps = j(null); function nn() { var I = Ps.current; return I !== null ? I : hA.pooledCache } function Tr(I, e) { e === null ? V(Ps, Ps.current) : V(Ps, e.pool) } function BZ() { var I = nn(); return I === null ? null : { parent: HA._currentValue, pool: I } } var hE = Error(S(460)) , bn = Error(S(474)) , jr = Error(S(542)) , qr = { then: function() {} }; function TZ(I) { return I = I.status, I === "fulfilled" || I === "rejected" } function jZ(I, e, r) { switch (r = I[r], r === void 0 ? I.push(e) : r !== e && (e.then(zi, zi), e = r), e.status) { case "fulfilled": return e.value; case "rejected": throw I = e.reason, FZ(I), I; default: if (typeof e.status == "string") e.then(zi, zi); else { if (I = hA, I !== null && 100 < I.shellSuspendCounter) throw Error(S(482)); I = e, I.status = "pending", I.then(function(C) { if (e.status === "pending") { var o = e; o.status = "fulfilled", o.value = C } }, function(C) { if (e.status === "pending") { var o = e; o.status = "rejected", o.reason = C } }) } switch (e.status) { case "fulfilled": return e.value; case "rejected": throw I = e.reason, FZ(I), I } throw $s = e, hE } } function _s(I) { try { var e = I._init; return e(I._payload) } catch (r) { throw r !== null && typeof r == "object" && typeof r.then == "function" ? ($s = r, hE) : r } } var $s = null; function qZ() { if ($s === null) throw Error(S(459)); var I = $s; return $s = null, I } function FZ(I) { if (I === hE || I === jr) throw Error(S(483)) } var QE = null , _e = 0; function Fr(I) { var e = _e; return _e += 1, QE === null && (QE = []), jZ(QE, I, e) } function $e(I, e) { e = e.props.ref, I.ref = e !== void 0 ? e : null } function xr(I, e) { throw e.$$typeof === b ? Error(S(525)) : (I = Object.prototype.toString.call(e), Error(S(31, I === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : I))) } function xZ(I) { function e(w, x) { if (I) { var D = w.deletions; D === null ? (w.deletions = [x], w.flags |= 16) : D.push(x) } } function r(w, x) { if (!I) return null; for (; x !== null; ) e(w, x), x = x.sibling; return null } function C(w) { for (var x = new Map; w !== null; ) w.key !== null ? x.set(w.key, w) : x.set(w.index, w), w = w.sibling; return x } function o(w, x) { return w = Vi(w, x), w.index = 0, w.sibling = null, w } function Q(w, x, D) { return w.index = D, I ? (D = w.alternate, D !== null ? (D = D.index, D < x ? (w.flags |= 67108866, x) : D) : (w.flags |= 67108866, x)) : (w.flags |= 1048576, x) } function K(w) { return I && w.alternate === null && (w.flags |= 67108866), w } function N(w, x, D, st) { return x === null || x.tag !== 6 ? (x = ln(D, w.mode, st), x.return = w, x) : (x = o(x, D), x.return = w, x) } function F(w, x, D, st) { var Kt = D.type; return Kt === R ? it(w, x, D.props.children, st, D.key) : x !== null && (x.elementType === Kt || typeof Kt == "object" && Kt !== null && Kt.$$typeof === M && _s(Kt) === x.type) ? (x = o(x, D.props), $e(x, D), x.return = w, x) : (x = Nr(D.type, D.key, D.props, null, w.mode, st), $e(x, D), x.return = w, x) } function f(w, x, D, st) { return x === null || x.tag !== 4 || x.stateNode.containerInfo !== D.containerInfo || x.stateNode.implementation !== D.implementation ? (x = sn(D, w.mode, st), x.return = w, x) : (x = o(x, D.children || []), x.return = w, x) } function it(w, x, D, st, Kt) { return x === null || x.tag !== 7 ? (x = fs(D, w.mode, st, Kt), x.return = w, x) : (x = o(x, D), x.return = w, x) } function Et(w, x, D) { if (typeof x == "string" && x !== "" || typeof x == "number" || typeof x == "bigint") return x = ln("" + x, w.mode, D), x.return = w, x; if (typeof x == "object" && x !== null) { switch (x.$$typeof) { case h: return D = Nr(x.type, x.key, x.props, null, w.mode, D), $e(D, x), D.return = w, D; case U: return x = sn(x, w.mode, D), x.return = w, x; case M: return x = _s(x), Et(w, x, D) } if (It(x) || tt(x)) return x = fs(x, w.mode, D, null), x.return = w, x; if (typeof x.then == "function") return Et(w, Fr(x), D); if (x.$$typeof === c) return Et(w, Br(w, x), D); xr(w, x) } return null } function X(w, x, D, st) { var Kt = x !== null ? x.key : null; if (typeof D == "string" && D !== "" || typeof D == "number" || typeof D == "bigint") return Kt !== null ? null : N(w, x, "" + D, st); if (typeof D == "object" && D !== null) { switch (D.$$typeof) { case h: return D.key === Kt ? F(w, x, D, st) : null; case U: return D.key === Kt ? f(w, x, D, st) : null; case M: return D = _s(D), X(w, x, D, st) } if (It(D) || tt(D)) return Kt !== null ? null : it(w, x, D, st, null); if (typeof D.then == "function") return X(w, x, Fr(D), st); if (D.$$typeof === c) return X(w, x, Br(w, D), st); xr(w, D) } return null } function At(w, x, D, st, Kt) { if (typeof st == "string" && st !== "" || typeof st == "number" || typeof st == "bigint") return w = w.get(D) || null, N(x, w, "" + st, Kt); if (typeof st == "object" && st !== null) { switch (st.$$typeof) { case h: return w = w.get(st.key === null ? D : st.key) || null, F(x, w, st, Kt); case U: return w = w.get(st.key === null ? D : st.key) || null, f(x, w, st, Kt); case M: return st = _s(st), At(w, x, D, st, Kt) } if (It(st) || tt(st)) return w = w.get(D) || null, it(x, w, st, Kt, null); if (typeof st.then == "function") return At(w, x, D, Fr(st), Kt); if (st.$$typeof === c) return At(w, x, D, Br(x, st), Kt); xr(x, st) } return null } function ht(w, x, D, st) { for (var Kt = null, SA = null, gt = x, wt = x = 0, Pt = null; gt !== null && wt < D.length; wt++) { gt.index > wt ? (Pt = gt, gt = null) : Pt = gt.sibling; var iA = X(w, gt, D[wt], st); if (iA === null) { gt === null && (gt = Pt); break } I && gt && iA.alternate === null && e(w, gt), x = Q(iA, x, wt), SA === null ? Kt = iA : SA.sibling = iA, SA = iA, gt = Pt } if (wt === D.length) return r(w, gt), $t && Di(w, wt), Kt; if (gt === null) { for (; wt < D.length; wt++) gt = Et(w, D[wt], st), gt !== null && (x = Q(gt, x, wt), SA === null ? Kt = gt : SA.sibling = gt, SA = gt); return $t && Di(w, wt), Kt } for (gt = C(gt); wt < D.length; wt++) Pt = At(gt, w, wt, D[wt], st), Pt !== null && (I && Pt.alternate !== null && gt.delete(Pt.key === null ? wt : Pt.key), x = Q(Pt, x, wt), SA === null ? Kt = Pt : SA.sibling = Pt, SA = Pt); return I && gt.forEach(function(Xl) { return e(w, Xl) }), $t && Di(w, wt), Kt } function Yt(w, x, D, st) { if (D == null) throw Error(S(151)); for (var Kt = null, SA = null, gt = x, wt = x = 0, Pt = null, iA = D.next(); gt !== null && !iA.done; wt++, iA = D.next()) { gt.index > wt ? (Pt = gt, gt = null) : Pt = gt.sibling; var Xl = X(w, gt, iA.value, st); if (Xl === null) { gt === null && (gt = Pt); break } I && gt && Xl.alternate === null && e(w, gt), x = Q(Xl, x, wt), SA === null ? Kt = Xl : SA.sibling = Xl, SA = Xl, gt = Pt } if (iA.done) return r(w, gt), $t && Di(w, wt), Kt; if (gt === null) { for (; !iA.done; wt++, iA = D.next()) iA = Et(w, iA.value, st), iA !== null && (x = Q(iA, x, wt), SA === null ? Kt = iA : SA.sibling = iA, SA = iA); return $t && Di(w, wt), Kt } for (gt = C(gt); !iA.done; wt++, iA = D.next()) iA = At(gt, w, wt, iA.value, st), iA !== null && (I && iA.alternate !== null && gt.delete(iA.key === null ? wt : iA.key), x = Q(iA, x, wt), SA === null ? Kt = iA : SA.sibling = iA, SA = iA); return I && gt.forEach(function(qF) { return e(w, qF) }), $t && Di(w, wt), Kt } function bA(w, x, D, st) { if (typeof D == "object" && D !== null && D.type === R && D.key === null && (D = D.props.children), typeof D == "object" && D !== null) { switch (D.$$typeof) { case h: t: { for (var Kt = D.key; x !== null; ) { if (x.key === Kt) { if (Kt = D.type, Kt === R) { if (x.tag === 7) { r(w, x.sibling), st = o(x, D.props.children), st.return = w, w = st; break t } } else if (x.elementType === Kt || typeof Kt == "object" && Kt !== null && Kt.$$typeof === M && _s(Kt) === x.type) { r(w, x.sibling), st = o(x, D.props), $e(st, D), st.return = w, w = st; break t } r(w, x); break } else e(w, x); x = x.sibling } D.type === R ? (st = fs(D.props.children, w.mode, st, D.key), st.return = w, w = st) : (st = Nr(D.type, D.key, D.props, null, w.mode, st), $e(st, D), st.return = w, w = st) } return K(w); case U: t: { for (Kt = D.key; x !== null; ) { if (x.key === Kt) if (x.tag === 4 && x.stateNode.containerInfo === D.containerInfo && x.stateNode.implementation === D.implementation) { r(w, x.sibling), st = o(x, D.children || []), st.return = w, w = st; break t } else { r(w, x); break } else e(w, x); x = x.sibling } st = sn(D, w.mode, st), st.return = w, w = st } return K(w); case M: return D = _s(D), bA(w, x, D, st) } if (It(D)) return ht(w, x, D, st); if (tt(D)) { if (Kt = tt(D), typeof Kt != "function") throw Error(S(150)); return D = Kt.call(D), Yt(w, x, D, st) } if (typeof D.then == "function") return bA(w, x, Fr(D), st); if (D.$$typeof === c) return bA(w, x, Br(w, D), st); xr(w, D) } return typeof D == "string" && D !== "" || typeof D == "number" || typeof D == "bigint" ? (D = "" + D, x !== null && x.tag === 6 ? (r(w, x.sibling), st = o(x, D), st.return = w, w = st) : (r(w, x), st = ln(D, w.mode, st), st.return = w, w = st), K(w)) : r(w, x) } return function(w, x, D, st) { try { _e = 0; var Kt = bA(w, x, D, st); return QE = null, Kt } catch (gt) { if (gt === hE || gt === jr) throw gt; var SA = mS(29, gt, null, w.mode); return SA.lanes = st, SA.return = w, SA } finally {} } } var tI = xZ(!0) , yZ = xZ(!1) , ul = !1; function on(I) { I.updateQueue = { baseState: I.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, lanes: 0, hiddenCallbacks: null }, callbacks: null } } function hn(I, e) { I = I.updateQueue, e.updateQueue === I && (e.updateQueue = { baseState: I.baseState, firstBaseUpdate: I.firstBaseUpdate, lastBaseUpdate: I.lastBaseUpdate, shared: I.shared, callbacks: null }) } function Ml(I) { return { lane: I, tag: 0, payload: null, callback: null, next: null } } function Bl(I, e, r) { var C = I.updateQueue; if (C === null) return null; if (C = C.shared, (sA & 2) !== 0) { var o = C.pending; return o === null ? e.next = e : (e.next = o.next, o.next = e), C.pending = e, e = Yr(I), ZZ(I, null, r), e } return Gr(I, C, e, r), Yr(I) } function tk(I, e, r) { if (e = e.updateQueue, e !== null && (e = e.shared, (r & 4194048) !== 0)) { var C = e.lanes; C &= I.pendingLanes, r |= C, e.lanes = r, va(I, r) } } function Qn(I, e) { var r = I.updateQueue , C = I.alternate; if (C !== null && (C = C.updateQueue, r === C)) { var o = null , Q = null; if (r = r.firstBaseUpdate, r !== null) { do { var K = { lane: r.lane, tag: r.tag, payload: r.payload, callback: null, next: null }; Q === null ? o = Q = K : Q = Q.next = K, r = r.next } while (r !== null); Q === null ? o = Q = e : Q = Q.next = e } else o = Q = e; r = { baseState: C.baseState, firstBaseUpdate: o, lastBaseUpdate: Q, shared: C.shared, callbacks: C.callbacks }, I.updateQueue = r; return } I = r.lastBaseUpdate, I === null ? r.firstBaseUpdate = e : I.next = e, r.lastBaseUpdate = e } var Rn = !1; function Ak() { if (Rn) { var I = oE; if (I !== null) throw I } } function ak(I, e, r, C) { Rn = !1; var o = I.updateQueue; ul = !1; var Q = o.firstBaseUpdate , K = o.lastBaseUpdate , N = o.shared.pending; if (N !== null) { o.shared.pending = null; var F = N , f = F.next; F.next = null, K === null ? Q = f : K.next = f, K = F; var it = I.alternate; it !== null && (it = it.updateQueue, N = it.lastBaseUpdate, N !== K && (N === null ? it.firstBaseUpdate = f : N.next = f, it.lastBaseUpdate = F)) } if (Q !== null) { var Et = o.baseState; K = 0, it = f = F = null, N = Q; do { var X = N.lane & -536870913 , At = X !== N.lane; if (At ? (Ht & X) === X : (C & X) === X) { X !== 0 && X === bE && (Rn = !0), it !== null && (it = it.next = { lane: 0, tag: N.tag, payload: N.payload, callback: null, next: null }); t: { var ht = I , Yt = N; X = e; var bA = r; switch (Yt.tag) { case 1: if (ht = Yt.payload, typeof ht == "function") { Et = ht.call(bA, Et, X); break t } Et = ht; break t; case 3: ht.flags = ht.flags & -65537 | 128; case 0: if (ht = Yt.payload, X = typeof ht == "function" ? ht.call(bA, Et, X) : ht, X == null) break t; Et = J({}, Et, X); break t; case 2: ul = !0 } } X = N.callback, X !== null && (I.flags |= 64, At && (I.flags |= 8192), At = o.callbacks, At === null ? o.callbacks = [X] : At.push(X)) } else At = { lane: X, tag: N.tag, payload: N.payload, callback: N.callback, next: null }, it === null ? (f = it = At, F = Et) : it = it.next = At, K |= X; if (N = N.next, N === null) { if (N = o.shared.pending, N === null) break; At = N, N = At.next, At.next = null, o.lastBaseUpdate = At, o.shared.pending = null } } while (!0); it === null && (F = Et), o.baseState = F, o.firstBaseUpdate = f, o.lastBaseUpdate = it, Q === null && (o.shared.lanes = 0), xl |= K, I.lanes = K, I.memoizedState = Et } } function LZ(I, e) { if (typeof I != "function") throw Error(S(191, I)); I.call(e) } function wZ(I, e) { var r = I.callbacks; if (r !== null) for (I.callbacks = null, I = 0; I < r.length; I++) LZ(r[I], e) } var RE = j(null) , yr = j(0); function zZ(I, e) { I = Sl, V(yr, I), V(RE, e), Sl = I | e.baseLanes } function Un() { V(yr, Sl), V(RE, RE.current) } function Zn() { Sl = yr.current, H(RE), H(yr) } var JS = j(null) , qS = null; function Tl(I) { var e = I.alternate; V(wA, wA.current & 1), V(JS, I), qS === null && (e === null || RE.current !== null || e.memoizedState !== null) && (qS = I) } function dn(I) { V(wA, wA.current), V(JS, I), qS === null && (qS = I) } function OZ(I) { I.tag === 22 ? (V(wA, wA.current), V(JS, I), qS === null && (qS = I)) : jl() } function jl() { V(wA, wA.current), V(JS, JS.current) } function CS(I) { H(JS), qS === I && (qS = null), H(wA) } var wA = j(0); function Lr(I) { for (var e = I; e !== null; ) { if (e.tag === 13) { var r = e.memoizedState; if (r !== null && (r = r.dehydrated, r === null || Yb(r) || Nb(r))) return e } else if (e.tag === 19 && (e.memoizedProps.revealOrder === "forwards" || e.memoizedProps.revealOrder === "backwards" || e.memoizedProps.revealOrder === "unstable_legacy-backwards" || e.memoizedProps.revealOrder === "together")) { if ((e.flags & 128) !== 0) return e } else if (e.child !== null) { e.child.return = e, e = e.child; continue } if (e === I) break; for (; e.sibling === null; ) { if (e.return === null || e.return === I) return null; e = e.return } e.sibling.return = e.return, e = e.sibling } return null } var Xi = 0 , yt = null , CA = null , PA = null , wr = !1 , UE = !1 , AI = !1 , zr = 0 , Sk = 0 , ZE = null , cq = 0; function BA() { throw Error(S(321)) } function gn(I, e) { if (e === null) return !1; for (var r = 0; r < e.length && r < I.length; r++) if (!rS(I[r], e[r])) return !1; return !0 } function Wn(I, e, r, C, o, Q) { return Xi = Q, yt = e, e.memoizedState = null, e.updateQueue = null, e.lanes = 0, T.H = I === null || I.memoizedState === null ? cd : Ln, AI = !1, Q = r(C, o), AI = !1, UE && (Q = DZ(e, r, C, o)), VZ(I), Q } function VZ(I) { T.H = sk; var e = CA !== null && CA.next !== null; if (Xi = 0, PA = CA = yt = null, wr = !1, Sk = 0, ZE = null, e) throw Error(S(300)); I === null || _A || (I = I.dependencies, I !== null && Mr(I) && (_A = !0)) } function DZ(I, e, r, C) { yt = I; var o = 0; do { if (UE && (ZE = null), Sk = 0, UE = !1, 25 <= o) throw Error(S(301)); if (o += 1, PA = CA = null, I.updateQueue != null) { var Q = I.updateQueue; Q.lastEffect = null, Q.events = null, Q.stores = null, Q.memoCache != null && (Q.memoCache.index = 0) } T.H = Kd, Q = e(r, C) } while (UE); return Q } function Kq() { var I = T.H , e = I.useState()[0]; return e = typeof e.then == "function" ? ik(e) : e, I = I.useState()[0], (CA !== null ? CA.memoizedState : null) !== I && (yt.flags |= 1024), e } function cn() { var I = zr !== 0; return zr = 0, I } function Kn(I, e, r) { e.updateQueue = I.updateQueue, e.flags &= -2053, I.lanes &= ~r } function Gn(I) { if (wr) { for (I = I.memoizedState; I !== null; ) { var e = I.queue; e !== null && (e.pending = null), I = I.next } wr = !1 } Xi = 0, PA = CA = yt = null, UE = !1, Sk = zr = 0, ZE = null } function ja() { var I = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; return PA === null ? yt.memoizedState = PA = I : PA = PA.next = I, PA } function zA() { if (CA === null) { var I = yt.alternate; I = I !== null ? I.memoizedState : null } else I = CA.next; var e = PA === null ? yt.memoizedState : PA.next; if (e !== null) PA = e, CA = I; else { if (I === null) throw yt.alternate === null ? Error(S(467)) : Error(S(310)); CA = I, I = { memoizedState: CA.memoizedState, baseState: CA.baseState, baseQueue: CA.baseQueue, queue: CA.queue, next: null }, PA === null ? yt.memoizedState = PA = I : PA = PA.next = I } return PA } function Or() { return { lastEffect: null, events: null, stores: null, memoCache: null } } function ik(I) { var e = Sk; return Sk += 1, ZE === null && (ZE = []), I = jZ(ZE, I, e), e = yt, (PA === null ? e.memoizedState : PA.next) === null && (e = e.alternate, T.H = e === null || e.memoizedState === null ? cd : Ln), I } function Vr(I) { if (I !== null && typeof I == "object") { if (typeof I.then == "function") return ik(I); if (I.$$typeof === c) return Qa(I) } throw Error(S(438, String(I))) } function Yn(I) { var e = null , r = yt.updateQueue; if (r !== null && (e = r.memoCache), e == null) { var C = yt.alternate; C !== null && (C = C.updateQueue, C !== null && (C = C.memoCache, C != null && (e = { data: C.data.map(function(o) { return o.slice() }), index: 0 }))) } if (e == null && (e = { data: [], index: 0 }), r === null && (r = Or(), yt.updateQueue = r), r.memoCache = e, r = e.data[e.index], r === void 0) for (r = e.data[e.index] = Array(I), C = 0; C < I; C++) r[C] = v; return e.index++, r } function Hi(I, e) { return typeof e == "function" ? e(I) : e } function Dr(I) { var e = zA(); return Nn(e, CA, I) } function Nn(I, e, r) { var C = I.queue; if (C === null) throw Error(S(311)); C.lastRenderedReducer = r; var o = I.baseQueue , Q = C.pending; if (Q !== null) { if (o !== null) { var K = o.next; o.next = Q.next, Q.next = K } e.baseQueue = o = Q, C.pending = null } if (Q = I.baseState, o === null) I.memoizedState = Q; else { e = o.next; var N = K = null , F = null , f = e , it = !1; do { var Et = f.lane & -536870913; if (Et !== f.lane ? (Ht & Et) === Et : (Xi & Et) === Et) { var X = f.revertLane; if (X === 0) F !== null && (F = F.next = { lane: 0, revertLane: 0, gesture: null, action: f.action, hasEagerState: f.hasEagerState, eagerState: f.eagerState, next: null }), Et === bE && (it = !0); else if ((Xi & X) === X) { f = f.next, X === bE && (it = !0); continue } else Et = { lane: 0, revertLane: f.revertLane, gesture: null, action: f.action, hasEagerState: f.hasEagerState, eagerState: f.eagerState, next: null }, F === null ? (N = F = Et, K = Q) : F = F.next = Et, yt.lanes |= X, xl |= X; Et = f.action, AI && r(Q, Et), Q = f.hasEagerState ? f.eagerState : r(Q, Et) } else X = { lane: Et, revertLane: f.revertLane, gesture: f.gesture, action: f.action, hasEagerState: f.hasEagerState, eagerState: f.eagerState, next: null }, F === null ? (N = F = X, K = Q) : F = F.next = X, yt.lanes |= Et, xl |= Et; f = f.next } while (f !== null && f !== e); if (F === null ? K = Q : F.next = N, !rS(Q, I.memoizedState) && (_A = !0, it && (r = oE, r !== null))) throw r; I.memoizedState = Q, I.baseState = K, I.baseQueue = F, C.lastRenderedState = Q } return o === null && (C.lanes = 0), [I.memoizedState, C.dispatch] } function un(I) { var e = zA() , r = e.queue; if (r === null) throw Error(S(311)); r.lastRenderedReducer = I; var C = r.dispatch , o = r.pending , Q = e.memoizedState; if (o !== null) { r.pending = null; var K = o = o.next; do Q = I(Q, K.action), K = K.next; while (K !== o); rS(Q, e.memoizedState) || (_A = !0), e.memoizedState = Q, e.baseQueue === null && (e.baseState = Q), r.lastRenderedState = Q } return [Q, C] } function fZ(I, e, r) { var C = yt , o = zA() , Q = $t; if (Q) { if (r === void 0) throw Error(S(407)); r = r() } else r = e(); var K = !rS((CA || o).memoizedState, r); if (K && (o.memoizedState = r, _A = !0), o = o.queue, Tn(HZ.bind(null, C, o, I), [I]), o.getSnapshot !== e || K || PA !== null && PA.memoizedState.tag & 1) { if (C.flags |= 2048, dE(9, { destroy: void 0 }, XZ.bind(null, C, o, r, e), null), hA === null) throw Error(S(349)); Q || (Xi & 127) !== 0 || vZ(C, e, r) } return r } function vZ(I, e, r) { I.flags |= 16384, I = { getSnapshot: e, value: r }, e = yt.updateQueue, e === null ? (e = Or(), yt.updateQueue = e, e.stores = [I]) : (r = e.stores, r === null ? e.stores = [I] : r.push(I)) } function XZ(I, e, r, C) { e.value = r, e.getSnapshot = C, PZ(e) && _Z(I) } function HZ(I, e, r) { return r(function() { PZ(e) && _Z(I) }) } function PZ(I) { var e = I.getSnapshot; I = I.value; try { var r = e(); return !rS(I, r) } catch { return !0 } } function _Z(I) { var e = Ds(I, 2); e !== null && aS(e, I, 2) } function Mn(I) { var e = ja(); if (typeof I == "function") { var r = I; if (I = r(), AI) { pS(!0); try { r() } finally { pS(!1) } } } return e.memoizedState = e.baseState = I, e.queue = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: Hi, lastRenderedState: I }, e } function $Z(I, e, r, C) { return I.baseState = r, Nn(I, CA, typeof C == "function" ? C : Hi) } function Gq(I, e, r, C, o) { if (Xr(I)) throw Error(S(485)); if (I = e.action, I !== null) { var Q = { payload: o, action: I, next: null, isTransition: !0, status: "pending", value: null, reason: null, listeners: [], then: function(K) { Q.listeners.push(K) } }; T.T !== null ? r(!0) : Q.isTransition = !1, C(Q), r = e.pending, r === null ? (Q.next = e.pending = Q, td(e, Q)) : (Q.next = r.next, e.pending = r.next = Q) } } function td(I, e) { var r = e.action , C = e.payload , o = I.state; if (e.isTransition) { var Q = T.T , K = {}; T.T = K; try { var N = r(o, C) , F = T.S; F !== null && F(K, N), Ad(I, e, N) } catch (f) { Bn(I, e, f) } finally { Q !== null && K.types !== null && (Q.types = K.types), T.T = Q } } else try { Q = r(o, C), Ad(I, e, Q) } catch (f) { Bn(I, e, f) } } function Ad(I, e, r) { r !== null && typeof r == "object" && typeof r.then == "function" ? r.then(function(C) { ad(I, e, C) }, function(C) { return Bn(I, e, C) }) : ad(I, e, r) } function ad(I, e, r) { e.status = "fulfilled", e.value = r, Sd(e), I.state = r, e = I.pending, e !== null && (r = e.next, r === e ? I.pending = null : (r = r.next, e.next = r, td(I, r))) } function Bn(I, e, r) { var C = I.pending; if (I.pending = null, C !== null) { C = C.next; do e.status = "rejected", e.reason = r, Sd(e), e = e.next; while (e !== C) } I.action = null } function Sd(I) { I = I.listeners; for (var e = 0; e < I.length; e++) (0, I[e])() } function id(I, e) { return e } function ld(I, e) { if ($t) { var r = hA.formState; if (r !== null) { t: { var C = yt; if ($t) { if (ZA) { A: { for (var o = ZA, Q = jS; o.nodeType !== 8; ) { if (!Q) { o = null; break A } if (o = FS(o.nextSibling), o === null) { o = null; break A } } Q = o.data, o = Q === "F!" || Q === "F" ? o : null } if (o) { ZA = FS(o.nextSibling), C = o.data === "F!"; break t } } Yl(C) } C = !1 } C && (e = r[0]) } } return r = ja(), r.memoizedState = r.baseState = e, C = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: id, lastRenderedState: e }, r.queue = C, r = dd.bind(null, yt, C), C.dispatch = r, C = Mn(!1), Q = yn.bind(null, yt, !1, C.queue), C = ja(), o = { state: e, dispatch: null, action: I, pending: null }, C.queue = o, r = Gq.bind(null, yt, o, Q, r), o.dispatch = r, C.memoizedState = I, [e, r, !1] } function sd(I) { var e = zA(); return Id(e, CA, I) } function Id(I, e, r) { if (e = Nn(I, e, id)[0], I = Dr(Hi)[0], typeof e == "object" && e !== null && typeof e.then == "function") try { var C = ik(e) } catch (K) { throw K === hE ? jr : K } else C = e; e = zA(); var o = e.queue , Q = o.dispatch; return r !== e.memoizedState && (yt.flags |= 2048, dE(9, { destroy: void 0 }, Yq.bind(null, o, r), null)), [C, Q, I] } function Yq(I, e) { I.action = e } function Ed(I) { var e = zA() , r = CA; if (r !== null) return Id(e, r, I); zA(), e = e.memoizedState, r = zA(); var C = r.queue.dispatch; return r.memoizedState = I, [e, C, !1] } function dE(I, e, r, C) { return I = { tag: I, create: r, deps: C, inst: e, next: null }, e = yt.updateQueue, e === null && (e = Or(), yt.updateQueue = e), r = e.lastEffect, r === null ? e.lastEffect = I.next = I : (C = r.next, r.next = I, I.next = C, e.lastEffect = I), I } function ed() { return zA().memoizedState } function fr(I, e, r, C) { var o = ja(); yt.flags |= I, o.memoizedState = dE(1 | e, { destroy: void 0 }, r, C === void 0 ? null : C) } function vr(I, e, r, C) { var o = zA(); C = C === void 0 ? null : C; var Q = o.memoizedState.inst; CA !== null && C !== null && gn(C, CA.memoizedState.deps) ? o.memoizedState = dE(e, Q, r, C) : (yt.flags |= I, o.memoizedState = dE(1 | e, Q, r, C)) } function kd(I, e) { fr(8390656, 8, I, e) } function Tn(I, e) { vr(2048, 8, I, e) } function Nq(I) { yt.flags |= 4; var e = yt.updateQueue; if (e === null) e = Or(), yt.updateQueue = e, e.events = [I]; else { var r = e.events; r === null ? e.events = [I] : r.push(I) } } function pd(I) { var e = zA().memoizedState; return Nq({ ref: e, nextImpl: I }), function() { if ((sA & 2) !== 0) throw Error(S(440)); return e.impl.apply(void 0, arguments) } } function rd(I, e) { return vr(4, 2, I, e) } function md(I, e) { return vr(4, 4, I, e) } function Jd(I, e) { if (typeof e == "function") { I = I(); var r = e(I); return function() { typeof r == "function" ? r() : e(null) } } if (e != null) return I = I(), e.current = I, function() { e.current = null } } function Cd(I, e, r) { r = r != null ? r.concat([I]) : null, vr(4, 4, Jd.bind(null, e, I), r) } function jn() {} function nd(I, e) { var r = zA(); e = e === void 0 ? null : e; var C = r.memoizedState; return e !== null && gn(e, C[1]) ? C[0] : (r.memoizedState = [I, e], I) } function bd(I, e) { var r = zA(); e = e === void 0 ? null : e; var C = r.memoizedState; if (e !== null && gn(e, C[1])) return C[0]; if (C = I(), AI) { pS(!0); try { I() } finally { pS(!1) } } return r.memoizedState = [C, e], C } function qn(I, e, r) { return r === void 0 || (Xi & 1073741824) !== 0 && (Ht & 261930) === 0 ? I.memoizedState = e : (I.memoizedState = r, I = og(), yt.lanes |= I, xl |= I, r) } function od(I, e, r, C) { return rS(r, e) ? r : RE.current !== null ? (I = qn(I, r, C), rS(I, e) || (_A = !0), I) : (Xi & 42) === 0 || (Xi & 1073741824) !== 0 && (Ht & 261930) === 0 ? (_A = !0, I.memoizedState = r) : (I = og(), yt.lanes |= I, xl |= I, e) } function hd(I, e, r, C, o) { var Q = z.p; z.p = Q !== 0 && 8 > Q ? Q : 8; var K = T.T , N = {}; T.T = N, yn(I, !1, e, r); try { var F = o() , f = T.S; if (f !== null && f(N, F), F !== null && typeof F == "object" && typeof F.then == "function") { var it = Wq(F, C); lk(I, e, it, oS(I)) } else lk(I, e, C, oS(I)) } catch (Et) { lk(I, e, { then: function() {}, status: "rejected", reason: Et }, oS()) } finally { z.p = Q, K !== null && N.types !== null && (K.types = N.types), T.T = K } } function uq() {} function Fn(I, e, r, C) { if (I.tag !== 5) throw Error(S(476)); var o = Qd(I).queue; hd(I, o, e, q, r === null ? uq : function() { return Rd(I), r(C) } ) } function Qd(I) { var e = I.memoizedState; if (e !== null) return e; e = { memoizedState: q, baseState: q, baseQueue: null, queue: { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: Hi, lastRenderedState: q }, next: null }; var r = {}; return e.next = { memoizedState: r, baseState: r, baseQueue: null, queue: { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: Hi, lastRenderedState: r }, next: null }, I.memoizedState = e, I = I.alternate, I !== null && (I.memoizedState = e), e } function Rd(I) { var e = Qd(I); e.next === null && (e = I.alternate.memoizedState), lk(I, e.next.queue, {}, oS()) } function xn() { return Qa(Uk) } function Ud() { return zA().memoizedState } function Zd() { return zA().memoizedState } function Mq(I) { for (var e = I.return; e !== null; ) { switch (e.tag) { case 24: case 3: var r = oS(); I = Ml(r); var C = Bl(e, I, r); C !== null && (aS(C, e, r), tk(C, e, r)), e = { cache: Jn() }, I.payload = e; return } e = e.return } } function Bq(I, e, r) { var C = oS(); r = { lane: C, revertLane: 0, gesture: null, action: r, hasEagerState: !1, eagerState: null, next: null }, Xr(I) ? gd(e, r) : (r = an(I, e, r, C), r !== null && (aS(r, I, C), Wd(r, e, C))) } function dd(I, e, r) { var C = oS(); lk(I, e, r, C) } function lk(I, e, r, C) { var o = { lane: C, revertLane: 0, gesture: null, action: r, hasEagerState: !1, eagerState: null, next: null }; if (Xr(I)) gd(e, o); else { var Q = I.alternate; if (I.lanes === 0 && (Q === null || Q.lanes === 0) && (Q = e.lastRenderedReducer, Q !== null)) try { var K = e.lastRenderedState , N = Q(K, r); if (o.hasEagerState = !0, o.eagerState = N, rS(N, K)) return Gr(I, e, o, 0), hA === null && Kr(), !1 } catch {} finally {} if (r = an(I, e, o, C), r !== null) return aS(r, I, C), Wd(r, e, C), !0 } return !1 } function yn(I, e, r, C) { if (C = { lane: 2, revertLane: ob(), gesture: null, action: C, hasEagerState: !1, eagerState: null, next: null }, Xr(I)) { if (e) throw Error(S(479)) } else e = an(I, r, C, 2), e !== null && aS(e, I, 2) } function Xr(I) { var e = I.alternate; return I === yt || e !== null && e === yt } function gd(I, e) { UE = wr = !0; var r = I.pending; r === null ? e.next = e : (e.next = r.next, r.next = e), I.pending = e } function Wd(I, e, r) { if ((r & 4194048) !== 0) { var C = e.lanes; C &= I.pendingLanes, r |= C, e.lanes = r, va(I, r) } } var sk = { readContext: Qa, use: Vr, useCallback: BA, useContext: BA, useEffect: BA, useImperativeHandle: BA, useLayoutEffect: BA, useInsertionEffect: BA, useMemo: BA, useReducer: BA, useRef: BA, useState: BA, useDebugValue: BA, useDeferredValue: BA, useTransition: BA, useSyncExternalStore: BA, useId: BA, useHostTransitionStatus: BA, useFormState: BA, useActionState: BA, useOptimistic: BA, useMemoCache: BA, useCacheRefresh: BA }; sk.useEffectEvent = BA; var cd = { readContext: Qa, use: Vr, useCallback: function(I, e) { return ja().memoizedState = [I, e === void 0 ? null : e], I }, useContext: Qa, useEffect: kd, useImperativeHandle: function(I, e, r) { r = r != null ? r.concat([I]) : null, fr(4194308, 4, Jd.bind(null, e, I), r) }, useLayoutEffect: function(I, e) { return fr(4194308, 4, I, e) }, useInsertionEffect: function(I, e) { fr(4, 2, I, e) }, useMemo: function(I, e) { var r = ja(); e = e === void 0 ? null : e; var C = I(); if (AI) { pS(!0); try { I() } finally { pS(!1) } } return r.memoizedState = [C, e], C }, useReducer: function(I, e, r) { var C = ja(); if (r !== void 0) { var o = r(e); if (AI) { pS(!0); try { r(e) } finally { pS(!1) } } } else o = e; return C.memoizedState = C.baseState = o, I = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: I, lastRenderedState: o }, C.queue = I, I = I.dispatch = Bq.bind(null, yt, I), [C.memoizedState, I] }, useRef: function(I) { var e = ja(); return I = { current: I }, e.memoizedState = I }, useState: function(I) { I = Mn(I); var e = I.queue , r = dd.bind(null, yt, e); return e.dispatch = r, [I.memoizedState, r] }, useDebugValue: jn, useDeferredValue: function(I, e) { var r = ja(); return qn(r, I, e) }, useTransition: function() { var I = Mn(!1); return I = hd.bind(null, yt, I.queue, !0, !1), ja().memoizedState = I, [!1, I] }, useSyncExternalStore: function(I, e, r) { var C = yt , o = ja(); if ($t) { if (r === void 0) throw Error(S(407)); r = r() } else { if (r = e(), hA === null) throw Error(S(349)); (Ht & 127) !== 0 || vZ(C, e, r) } o.memoizedState = r; var Q = { value: r, getSnapshot: e }; return o.queue = Q, kd(HZ.bind(null, C, Q, I), [I]), C.flags |= 2048, dE(9, { destroy: void 0 }, XZ.bind(null, C, Q, r, e), null), r }, useId: function() { var I = ja() , e = hA.identifierPrefix; if ($t) { var r = Ji , C = mi; r = (C & ~(1 << 32 - la(C) - 1)).toString(32) + r, e = "_" + e + "R_" + r, r = zr++, 0 < r && (e += "H" + r.toString(32)), e += "_" } else r = cq++, e = "_" + e + "r_" + r.toString(32) + "_"; return I.memoizedState = e }, useHostTransitionStatus: xn, useFormState: ld, useActionState: ld, useOptimistic: function(I) { var e = ja(); e.memoizedState = e.baseState = I; var r = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: null, lastRenderedState: null }; return e.queue = r, e = yn.bind(null, yt, !0, r), r.dispatch = e, [I, e] }, useMemoCache: Yn, useCacheRefresh: function() { return ja().memoizedState = Mq.bind(null, yt) }, useEffectEvent: function(I) { var e = ja() , r = { impl: I }; return e.memoizedState = r, function() { if ((sA & 2) !== 0) throw Error(S(440)); return r.impl.apply(void 0, arguments) } } } , Ln = { readContext: Qa, use: Vr, useCallback: nd, useContext: Qa, useEffect: Tn, useImperativeHandle: Cd, useInsertionEffect: rd, useLayoutEffect: md, useMemo: bd, useReducer: Dr, useRef: ed, useState: function() { return Dr(Hi) }, useDebugValue: jn, useDeferredValue: function(I, e) { var r = zA(); return od(r, CA.memoizedState, I, e) }, useTransition: function() { var I = Dr(Hi)[0] , e = zA().memoizedState; return [typeof I == "boolean" ? I : ik(I), e] }, useSyncExternalStore: fZ, useId: Ud, useHostTransitionStatus: xn, useFormState: sd, useActionState: sd, useOptimistic: function(I, e) { var r = zA(); return $Z(r, CA, I, e) }, useMemoCache: Yn, useCacheRefresh: Zd }; Ln.useEffectEvent = pd; var Kd = { readContext: Qa, use: Vr, useCallback: nd, useContext: Qa, useEffect: Tn, useImperativeHandle: Cd, useInsertionEffect: rd, useLayoutEffect: md, useMemo: bd, useReducer: un, useRef: ed, useState: function() { return un(Hi) }, useDebugValue: jn, useDeferredValue: function(I, e) { var r = zA(); return CA === null ? qn(r, I, e) : od(r, CA.memoizedState, I, e) }, useTransition: function() { var I = un(Hi)[0] , e = zA().memoizedState; return [typeof I == "boolean" ? I : ik(I), e] }, useSyncExternalStore: fZ, useId: Ud, useHostTransitionStatus: xn, useFormState: Ed, useActionState: Ed, useOptimistic: function(I, e) { var r = zA(); return CA !== null ? $Z(r, CA, I, e) : (r.baseState = I, [I, r.queue.dispatch]) }, useMemoCache: Yn, useCacheRefresh: Zd }; Kd.useEffectEvent = pd; function wn(I, e, r, C) { e = I.memoizedState, r = r(C, e), r = r == null ? e : J({}, e, r), I.memoizedState = r, I.lanes === 0 && (I.updateQueue.baseState = r) } var zn = { enqueueSetState: function(I, e, r) { I = I._reactInternals; var C = oS() , o = Ml(C); o.payload = e, r != null && (o.callback = r), e = Bl(I, o, C), e !== null && (aS(e, I, C), tk(e, I, C)) }, enqueueReplaceState: function(I, e, r) { I = I._reactInternals; var C = oS() , o = Ml(C); o.tag = 1, o.payload = e, r != null && (o.callback = r), e = Bl(I, o, C), e !== null && (aS(e, I, C), tk(e, I, C)) }, enqueueForceUpdate: function(I, e) { I = I._reactInternals; var r = oS() , C = Ml(r); C.tag = 2, e != null && (C.callback = e), e = Bl(I, C, r), e !== null && (aS(e, I, r), tk(e, I, r)) } }; function Gd(I, e, r, C, o, Q, K) { return I = I.stateNode, typeof I.shouldComponentUpdate == "function" ? I.shouldComponentUpdate(C, Q, K) : e.prototype && e.prototype.isPureReactComponent ? !De(r, C) || !De(o, Q) : !0 } function Yd(I, e, r, C) { I = e.state, typeof e.componentWillReceiveProps == "function" && e.componentWillReceiveProps(r, C), typeof e.UNSAFE_componentWillReceiveProps == "function" && e.UNSAFE_componentWillReceiveProps(r, C), e.state !== I && zn.enqueueReplaceState(e, e.state, null) } function aI(I, e) { var r = e; if ("ref" in e) { r = {}; for (var C in e) C !== "ref" && (r[C] = e[C]) } if (I = I.defaultProps) { r === e && (r = J({}, r)); for (var o in I) r[o] === void 0 && (r[o] = I[o]) } return r } function Nd(I) { cr(I) } function ud(I) { console.error(I) } function Md(I) { cr(I) } function Hr(I, e) { try { var r = I.onUncaughtError; r(e.value, { componentStack: e.stack }) } catch (C) { setTimeout(function() { throw C }) } } function Bd(I, e, r) { try { var C = I.onCaughtError; C(r.value, { componentStack: r.stack, errorBoundary: e.tag === 1 ? e.stateNode : null }) } catch (o) { setTimeout(function() { throw o }) } } function On(I, e, r) { return r = Ml(r), r.tag = 3, r.payload = { element: null }, r.callback = function() { Hr(I, e) } , r } function Td(I) { return I = Ml(I), I.tag = 3, I } function jd(I, e, r, C) { var o = r.type.getDerivedStateFromError; if (typeof o == "function") { var Q = C.value; I.payload = function() { return o(Q) } , I.callback = function() { Bd(e, r, C) } } var K = r.stateNode; K !== null && typeof K.componentDidCatch == "function" && (I.callback = function() { Bd(e, r, C), typeof o != "function" && (yl === null ? yl = new Set([this]) : yl.add(this)); var N = C.stack; this.componentDidCatch(C.value, { componentStack: N !== null ? N : "" }) } ) } function Tq(I, e, r, C, o) { if (r.flags |= 32768, C !== null && typeof C == "object" && typeof C.then == "function") { if (e = r.alternate, e !== null && nE(e, r, o, !0), r = JS.current, r !== null) { switch (r.tag) { case 31: case 13: return qS === null ? Em() : r.alternate === null && TA === 0 && (TA = 3), r.flags &= -257, r.flags |= 65536, r.lanes = o, C === qr ? r.flags |= 16384 : (e = r.updateQueue, e === null ? r.updateQueue = new Set([C]) : e.add(C), Cb(I, C, o)), !1; case 22: return r.flags |= 65536, C === qr ? r.flags |= 16384 : (e = r.updateQueue, e === null ? (e = { transitions: null, markerInstances: null, retryQueue: new Set([C]) }, r.updateQueue = e) : (r = e.retryQueue, r === null ? e.retryQueue = new Set([C]) : r.add(C)), Cb(I, C, o)), !1 } throw Error(S(435, r.tag)) } return Cb(I, C, o), Em(), !1 } if ($t) return e = JS.current, e !== null ? ((e.flags & 65536) === 0 && (e.flags |= 256), e.flags |= 65536, e.lanes = o, C !== en && (I = Error(S(422), { cause: C }), Xe(MS(I, r)))) : (C !== en && (e = Error(S(423), { cause: C }), Xe(MS(e, r))), I = I.current.alternate, I.flags |= 65536, o &= -o, I.lanes |= o, C = MS(C, r), o = On(I.stateNode, C, o), Qn(I, o), TA !== 4 && (TA = 2)), !1; var Q = Error(S(520), { cause: C }); if (Q = MS(Q, r), Jk === null ? Jk = [Q] : Jk.push(Q), TA !== 4 && (TA = 2), e === null) return !0; C = MS(C, r), r = e; do { switch (r.tag) { case 3: return r.flags |= 65536, I = o & -o, r.lanes |= I, I = On(r.stateNode, C, I), Qn(r, I), !1; case 1: if (e = r.type, Q = r.stateNode, (r.flags & 128) === 0 && (typeof e.getDerivedStateFromError == "function" || Q !== null && typeof Q.componentDidCatch == "function" && (yl === null || !yl.has(Q)))) return r.flags |= 65536, o &= -o, r.lanes |= o, o = Td(o), jd(o, I, r, C), Qn(r, o), !1 } r = r.return } while (r !== null); return !1 } var Vn = Error(S(461)) , _A = !1; function Ra(I, e, r, C) { e.child = I === null ? yZ(e, null, r, C) : tI(e, I.child, r, C) } function qd(I, e, r, C, o) { r = r.render; var Q = e.ref; if ("ref" in C) { var K = {}; for (var N in C) N !== "ref" && (K[N] = C[N]) } else K = C; return Hs(e), C = Wn(I, e, r, K, Q, o), N = cn(), I !== null && !_A ? (Kn(I, e, o), Pi(I, e, o)) : ($t && N && In(e), e.flags |= 1, Ra(I, e, C, o), e.child) } function Fd(I, e, r, C, o) { if (I === null) { var Q = r.type; return typeof Q == "function" && !Sn(Q) && Q.defaultProps === void 0 && r.compare === null ? (e.tag = 15, e.type = Q, xd(I, e, Q, C, o)) : (I = Nr(r.type, null, C, e, e.mode, o), I.ref = e.ref, I.return = e, e.child = I) } if (Q = I.child, !$n(I, o)) { var K = Q.memoizedProps; if (r = r.compare, r = r !== null ? r : De, r(K, C) && I.ref === e.ref) return Pi(I, e, o) } return e.flags |= 1, I = Vi(Q, C), I.ref = e.ref, I.return = e, e.child = I } function xd(I, e, r, C, o) { if (I !== null) { var Q = I.memoizedProps; if (De(Q, C) && I.ref === e.ref) if (_A = !1, e.pendingProps = C = Q, $n(I, o)) (I.flags & 131072) !== 0 && (_A = !0); else return e.lanes = I.lanes, Pi(I, e, o) } return Dn(I, e, r, C, o) } function yd(I, e, r, C) { var o = C.children , Q = I !== null ? I.memoizedState : null; if (I === null && e.stateNode === null && (e.stateNode = { _visibility: 1, _pendingMarkers: null, _retryCache: null, _transitions: null }), C.mode === "hidden") { if ((e.flags & 128) !== 0) { if (Q = Q !== null ? Q.baseLanes | r : r, I !== null) { for (C = e.child = I.child, o = 0; C !== null; ) o = o | C.lanes | C.childLanes, C = C.sibling; C = o & ~Q } else C = 0, e.child = null; return Ld(I, e, Q, r, C) } if ((r & 536870912) !== 0) e.memoizedState = { baseLanes: 0, cachePool: null }, I !== null && Tr(e, Q !== null ? Q.cachePool : null), Q !== null ? zZ(e, Q) : Un(), OZ(e); else return C = e.lanes = 536870912, Ld(I, e, Q !== null ? Q.baseLanes | r : r, r, C) } else Q !== null ? (Tr(e, Q.cachePool), zZ(e, Q), jl(), e.memoizedState = null) : (I !== null && Tr(e, null), Un(), jl()); return Ra(I, e, o, r), e.child } function Ik(I, e) { return I !== null && I.tag === 22 || e.stateNode !== null || (e.stateNode = { _visibility: 1, _pendingMarkers: null, _retryCache: null, _transitions: null }), e.sibling } function Ld(I, e, r, C, o) { var Q = nn(); return Q = Q === null ? null : { parent: HA._currentValue, pool: Q }, e.memoizedState = { baseLanes: r, cachePool: Q }, I !== null && Tr(e, null), Un(), OZ(e), I !== null && nE(I, e, C, !0), e.childLanes = o, null } function Pr(I, e) { return e = $r({ mode: e.mode, children: e.children }, I.mode), e.ref = I.ref, I.child = e, e.return = I, e } function wd(I, e, r) { return tI(e, I.child, null, r), I = Pr(e, e.pendingProps), I.flags |= 2, CS(e), e.memoizedState = null, I } function jq(I, e, r) { var C = e.pendingProps , o = (e.flags & 128) !== 0; if (e.flags &= -129, I === null) { if ($t) { if (C.mode === "hidden") return I = Pr(e, C), e.lanes = 536870912, Ik(null, I); if (dn(e), (I = ZA) ? (I = tW(I, jS), I = I !== null && I.data === "&" ? I : null, I !== null && (e.memoizedState = { dehydrated: I, treeContext: Kl !== null ? { id: mi, overflow: Ji } : null, retryLane: 536870912, hydrationErrors: null }, r = gZ(I), r.return = e, e.child = r, ha = e, ZA = null)) : I = null, I === null) throw Yl(e); return e.lanes = 536870912, null } return Pr(e, C) } var Q = I.memoizedState; if (Q !== null) { var K = Q.dehydrated; if (dn(e), o) if (e.flags & 256) e.flags &= -257, e = wd(I, e, r); else if (e.memoizedState !== null) e.child = I.child, e.flags |= 128, e = null; else throw Error(S(558)); else if (_A || nE(I, e, r, !1), o = (r & I.childLanes) !== 0, _A || o) { if (C = hA, C !== null && (K = Xa(C, r), K !== 0 && K !== Q.retryLane)) throw Q.retryLane = K, Ds(I, K), aS(C, I, K), Vn; Em(), e = wd(I, e, r) } else I = Q.treeContext, ZA = FS(K.nextSibling), ha = e, $t = !0, Gl = null, jS = !1, I !== null && KZ(e, I), e = Pr(e, C), e.flags |= 4096; return e } return I = Vi(I.child, { mode: C.mode, children: C.children }), I.ref = e.ref, e.child = I, I.return = e, I } function _r(I, e) { var r = e.ref; if (r === null) I !== null && I.ref !== null && (e.flags |= 4194816); else { if (typeof r != "function" && typeof r != "object") throw Error(S(284)); (I === null || I.ref !== r) && (e.flags |= 4194816) } } function Dn(I, e, r, C, o) { return Hs(e), r = Wn(I, e, r, C, void 0, o), C = cn(), I !== null && !_A ? (Kn(I, e, o), Pi(I, e, o)) : ($t && C && In(e), e.flags |= 1, Ra(I, e, r, o), e.child) } function zd(I, e, r, C, o, Q) { return Hs(e), e.updateQueue = null, r = DZ(e, C, r, o), VZ(I), C = cn(), I !== null && !_A ? (Kn(I, e, Q), Pi(I, e, Q)) : ($t && C && In(e), e.flags |= 1, Ra(I, e, r, Q), e.child) } function Od(I, e, r, C, o) { if (Hs(e), e.stateNode === null) { var Q = rE , K = r.contextType; typeof K == "object" && K !== null && (Q = Qa(K)), Q = new r(C,Q), e.memoizedState = Q.state !== null && Q.state !== void 0 ? Q.state : null, Q.updater = zn, e.stateNode = Q, Q._reactInternals = e, Q = e.stateNode, Q.props = C, Q.state = e.memoizedState, Q.refs = {}, on(e), K = r.contextType, Q.context = typeof K == "object" && K !== null ? Qa(K) : rE, Q.state = e.memoizedState, K = r.getDerivedStateFromProps, typeof K == "function" && (wn(e, r, K, C), Q.state = e.memoizedState), typeof r.getDerivedStateFromProps == "function" || typeof Q.getSnapshotBeforeUpdate == "function" || typeof Q.UNSAFE_componentWillMount != "function" && typeof Q.componentWillMount != "function" || (K = Q.state, typeof Q.componentWillMount == "function" && Q.componentWillMount(), typeof Q.UNSAFE_componentWillMount == "function" && Q.UNSAFE_componentWillMount(), K !== Q.state && zn.enqueueReplaceState(Q, Q.state, null), ak(e, C, Q, o), Ak(), Q.state = e.memoizedState), typeof Q.componentDidMount == "function" && (e.flags |= 4194308), C = !0 } else if (I === null) { Q = e.stateNode; var N = e.memoizedProps , F = aI(r, N); Q.props = F; var f = Q.context , it = r.contextType; K = rE, typeof it == "object" && it !== null && (K = Qa(it)); var Et = r.getDerivedStateFromProps; it = typeof Et == "function" || typeof Q.getSnapshotBeforeUpdate == "function", N = e.pendingProps !== N, it || typeof Q.UNSAFE_componentWillReceiveProps != "function" && typeof Q.componentWillReceiveProps != "function" || (N || f !== K) && Yd(e, Q, C, K), ul = !1; var X = e.memoizedState; Q.state = X, ak(e, C, Q, o), Ak(), f = e.memoizedState, N || X !== f || ul ? (typeof Et == "function" && (wn(e, r, Et, C), f = e.memoizedState), (F = ul || Gd(e, r, F, C, X, f, K)) ? (it || typeof Q.UNSAFE_componentWillMount != "function" && typeof Q.componentWillMount != "function" || (typeof Q.componentWillMount == "function" && Q.componentWillMount(), typeof Q.UNSAFE_componentWillMount == "function" && Q.UNSAFE_componentWillMount()), typeof Q.componentDidMount == "function" && (e.flags |= 4194308)) : (typeof Q.componentDidMount == "function" && (e.flags |= 4194308), e.memoizedProps = C, e.memoizedState = f), Q.props = C, Q.state = f, Q.context = K, C = F) : (typeof Q.componentDidMount == "function" && (e.flags |= 4194308), C = !1) } else { Q = e.stateNode, hn(I, e), K = e.memoizedProps, it = aI(r, K), Q.props = it, Et = e.pendingProps, X = Q.context, f = r.contextType, F = rE, typeof f == "object" && f !== null && (F = Qa(f)), N = r.getDerivedStateFromProps, (f = typeof N == "function" || typeof Q.getSnapshotBeforeUpdate == "function") || typeof Q.UNSAFE_componentWillReceiveProps != "function" && typeof Q.componentWillReceiveProps != "function" || (K !== Et || X !== F) && Yd(e, Q, C, F), ul = !1, X = e.memoizedState, Q.state = X, ak(e, C, Q, o), Ak(); var At = e.memoizedState; K !== Et || X !== At || ul || I !== null && I.dependencies !== null && Mr(I.dependencies) ? (typeof N == "function" && (wn(e, r, N, C), At = e.memoizedState), (it = ul || Gd(e, r, it, C, X, At, F) || I !== null && I.dependencies !== null && Mr(I.dependencies)) ? (f || typeof Q.UNSAFE_componentWillUpdate != "function" && typeof Q.componentWillUpdate != "function" || (typeof Q.componentWillUpdate == "function" && Q.componentWillUpdate(C, At, F), typeof Q.UNSAFE_componentWillUpdate == "function" && Q.UNSAFE_componentWillUpdate(C, At, F)), typeof Q.componentDidUpdate == "function" && (e.flags |= 4), typeof Q.getSnapshotBeforeUpdate == "function" && (e.flags |= 1024)) : (typeof Q.componentDidUpdate != "function" || K === I.memoizedProps && X === I.memoizedState || (e.flags |= 4), typeof Q.getSnapshotBeforeUpdate != "function" || K === I.memoizedProps && X === I.memoizedState || (e.flags |= 1024), e.memoizedProps = C, e.memoizedState = At), Q.props = C, Q.state = At, Q.context = F, C = it) : (typeof Q.componentDidUpdate != "function" || K === I.memoizedProps && X === I.memoizedState || (e.flags |= 4), typeof Q.getSnapshotBeforeUpdate != "function" || K === I.memoizedProps && X === I.memoizedState || (e.flags |= 1024), C = !1) } return Q = C, _r(I, e), C = (e.flags & 128) !== 0, Q || C ? (Q = e.stateNode, r = C && typeof r.getDerivedStateFromError != "function" ? null : Q.render(), e.flags |= 1, I !== null && C ? (e.child = tI(e, I.child, null, o), e.child = tI(e, null, r, o)) : Ra(I, e, r, o), e.memoizedState = Q.state, I = e.child) : I = Pi(I, e, o), I } function Vd(I, e, r, C) { return vs(), e.flags |= 256, Ra(I, e, r, C), e.child } var fn = { dehydrated: null, treeContext: null, retryLane: 0, hydrationErrors: null }; function vn(I) { return { baseLanes: I, cachePool: BZ() } } function Xn(I, e, r) { return I = I !== null ? I.childLanes & ~r : 0, e && (I |= bS), I } function Dd(I, e, r) { var C = e.pendingProps, o = !1, Q = (e.flags & 128) !== 0, K; if ((K = Q) || (K = I !== null && I.memoizedState === null ? !1 : (wA.current & 2) !== 0), K && (o = !0, e.flags &= -129), K = (e.flags & 32) !== 0, e.flags &= -33, I === null) { if ($t) { if (o ? Tl(e) : jl(), (I = ZA) ? (I = tW(I, jS), I = I !== null && I.data !== "&" ? I : null, I !== null && (e.memoizedState = { dehydrated: I, treeContext: Kl !== null ? { id: mi, overflow: Ji } : null, retryLane: 536870912, hydrationErrors: null }, r = gZ(I), r.return = e, e.child = r, ha = e, ZA = null)) : I = null, I === null) throw Yl(e); return Nb(I) ? e.lanes = 32 : e.lanes = 536870912, null } var N = C.children; return C = C.fallback, o ? (jl(), o = e.mode, N = $r({ mode: "hidden", children: N }, o), C = fs(C, o, r, null), N.return = e, C.return = e, N.sibling = C, e.child = N, C = e.child, C.memoizedState = vn(r), C.childLanes = Xn(I, K, r), e.memoizedState = fn, Ik(null, C)) : (Tl(e), Hn(e, N)) } var F = I.memoizedState; if (F !== null && (N = F.dehydrated, N !== null)) { if (Q) e.flags & 256 ? (Tl(e), e.flags &= -257, e = Pn(I, e, r)) : e.memoizedState !== null ? (jl(), e.child = I.child, e.flags |= 128, e = null) : (jl(), N = C.fallback, o = e.mode, C = $r({ mode: "visible", children: C.children }, o), N = fs(N, o, r, null), N.flags |= 2, C.return = e, N.return = e, C.sibling = N, e.child = C, tI(e, I.child, null, r), C = e.child, C.memoizedState = vn(r), C.childLanes = Xn(I, K, r), e.memoizedState = fn, e = Ik(null, C)); else if (Tl(e), Nb(N)) { if (K = N.nextSibling && N.nextSibling.dataset, K) var f = K.dgst; K = f, C = Error(S(419)), C.stack = "", C.digest = K, Xe({ value: C, source: null, stack: null }), e = Pn(I, e, r) } else if (_A || nE(I, e, r, !1), K = (r & I.childLanes) !== 0, _A || K) { if (K = hA, K !== null && (C = Xa(K, r), C !== 0 && C !== F.retryLane)) throw F.retryLane = C, Ds(I, C), aS(K, I, C), Vn; Yb(N) || Em(), e = Pn(I, e, r) } else Yb(N) ? (e.flags |= 192, e.child = I.child, e = null) : (I = F.treeContext, ZA = FS(N.nextSibling), ha = e, $t = !0, Gl = null, jS = !1, I !== null && KZ(e, I), e = Hn(e, C.children), e.flags |= 4096); return e } return o ? (jl(), N = C.fallback, o = e.mode, F = I.child, f = F.sibling, C = Vi(F, { mode: "hidden", children: C.children }), C.subtreeFlags = F.subtreeFlags & 65011712, f !== null ? N = Vi(f, N) : (N = fs(N, o, r, null), N.flags |= 2), N.return = e, C.return = e, C.sibling = N, e.child = C, Ik(null, C), C = e.child, N = I.child.memoizedState, N === null ? N = vn(r) : (o = N.cachePool, o !== null ? (F = HA._currentValue, o = o.parent !== F ? { parent: F, pool: F } : o) : o = BZ(), N = { baseLanes: N.baseLanes | r, cachePool: o }), C.memoizedState = N, C.childLanes = Xn(I, K, r), e.memoizedState = fn, Ik(I.child, C)) : (Tl(e), r = I.child, I = r.sibling, r = Vi(r, { mode: "visible", children: C.children }), r.return = e, r.sibling = null, I !== null && (K = e.deletions, K === null ? (e.deletions = [I], e.flags |= 16) : K.push(I)), e.child = r, e.memoizedState = null, r) } function Hn(I, e) { return e = $r({ mode: "visible", children: e }, I.mode), e.return = I, I.child = e } function $r(I, e) { return I = mS(22, I, null, e), I.lanes = 0, I } function Pn(I, e, r) { return tI(e, I.child, null, r), I = Hn(e, e.pendingProps.children), I.flags |= 2, e.memoizedState = null, I } function fd(I, e, r) { I.lanes |= e; var C = I.alternate; C !== null && (C.lanes |= e), rn(I.return, e, r) } function _n(I, e, r, C, o, Q) { var K = I.memoizedState; K === null ? I.memoizedState = { isBackwards: e, rendering: null, renderingStartTime: 0, last: C, tail: r, tailMode: o, treeForkCount: Q } : (K.isBackwards = e, K.rendering = null, K.renderingStartTime = 0, K.last = C, K.tail = r, K.tailMode = o, K.treeForkCount = Q) } function vd(I, e, r) { var C = e.pendingProps , o = C.revealOrder , Q = C.tail; C = C.children; var K = wA.current , N = (K & 2) !== 0; if (N ? (K = K & 1 | 2, e.flags |= 128) : K &= 1, V(wA, K), Ra(I, e, C, r), C = $t ? ve : 0, !N && I !== null && (I.flags & 128) !== 0) t: for (I = e.child; I !== null; ) { if (I.tag === 13) I.memoizedState !== null && fd(I, r, e); else if (I.tag === 19) fd(I, r, e); else if (I.child !== null) { I.child.return = I, I = I.child; continue } if (I === e) break t; for (; I.sibling === null; ) { if (I.return === null || I.return === e) break t; I = I.return } I.sibling.return = I.return, I = I.sibling } switch (o) { case "forwards": for (r = e.child, o = null; r !== null; ) I = r.alternate, I !== null && Lr(I) === null && (o = r), r = r.sibling; r = o, r === null ? (o = e.child, e.child = null) : (o = r.sibling, r.sibling = null), _n(e, !1, o, r, Q, C); break; case "backwards": case "unstable_legacy-backwards": for (r = null, o = e.child, e.child = null; o !== null; ) { if (I = o.alternate, I !== null && Lr(I) === null) { e.child = o; break } I = o.sibling, o.sibling = r, r = o, o = I } _n(e, !0, r, null, Q, C); break; case "together": _n(e, !1, null, null, void 0, C); break; default: e.memoizedState = null } return e.child } function Pi(I, e, r) { if (I !== null && (e.dependencies = I.dependencies), xl |= e.lanes, (r & e.childLanes) === 0) if (I !== null) { if (nE(I, e, r, !1), (r & e.childLanes) === 0) return null } else return null; if (I !== null && e.child !== I.child) throw Error(S(153)); if (e.child !== null) { for (I = e.child, r = Vi(I, I.pendingProps), e.child = r, r.return = e; I.sibling !== null; ) I = I.sibling, r = r.sibling = Vi(I, I.pendingProps), r.return = e; r.sibling = null } return e.child } function $n(I, e) { return (I.lanes & e) !== 0 ? !0 : (I = I.dependencies, !!(I !== null && Mr(I))) } function qq(I, e, r) { switch (e.tag) { case 3: nt(e, e.stateNode.containerInfo), Nl(e, HA, I.memoizedState.cache), vs(); break; case 27: case 5: qt(e); break; case 4: nt(e, e.stateNode.containerInfo); break; case 10: Nl(e, e.type, e.memoizedProps.value); break; case 31: if (e.memoizedState !== null) return e.flags |= 128, dn(e), null; break; case 13: var C = e.memoizedState; if (C !== null) return C.dehydrated !== null ? (Tl(e), e.flags |= 128, null) : (r & e.child.childLanes) !== 0 ? Dd(I, e, r) : (Tl(e), I = Pi(I, e, r), I !== null ? I.sibling : null); Tl(e); break; case 19: var o = (I.flags & 128) !== 0; if (C = (r & e.childLanes) !== 0, C || (nE(I, e, r, !1), C = (r & e.childLanes) !== 0), o) { if (C) return vd(I, e, r); e.flags |= 128 } if (o = e.memoizedState, o !== null && (o.rendering = null, o.tail = null, o.lastEffect = null), V(wA, wA.current), C) break; return null; case 22: return e.lanes = 0, yd(I, e, r, e.pendingProps); case 24: Nl(e, HA, I.memoizedState.cache) } return Pi(I, e, r) } function Xd(I, e, r) { if (I !== null) if (I.memoizedProps !== e.pendingProps) _A = !0; else { if (!$n(I, r) && (e.flags & 128) === 0) return _A = !1, qq(I, e, r); _A = (I.flags & 131072) !== 0 } else _A = !1, $t && (e.flags & 1048576) !== 0 && cZ(e, ve, e.index); switch (e.lanes = 0, e.tag) { case 16: t: { var C = e.pendingProps; if (I = _s(e.elementType), e.type = I, typeof I == "function") Sn(I) ? (C = aI(I, C), e.tag = 1, e = Od(null, e, I, C, r)) : (e.tag = 0, e = Dn(null, e, I, C, r)); else { if (I != null) { var o = I.$$typeof; if (o === u) { e.tag = 11, e = qd(null, e, I, C, r); break t } else if (o === G) { e.tag = 14, e = Fd(null, e, I, C, r); break t } } throw e = St(I) || I, Error(S(306, e, "")) } } return e; case 0: return Dn(I, e, e.type, e.pendingProps, r); case 1: return C = e.type, o = aI(C, e.pendingProps), Od(I, e, C, o, r); case 3: t: { if (nt(e, e.stateNode.containerInfo), I === null) throw Error(S(387)); C = e.pendingProps; var Q = e.memoizedState; o = Q.element, hn(I, e), ak(e, C, null, r); var K = e.memoizedState; if (C = K.cache, Nl(e, HA, C), C !== Q.cache && mn(e, [HA], r, !0), Ak(), C = K.element, Q.isDehydrated) if (Q = { element: C, isDehydrated: !1, cache: K.cache }, e.updateQueue.baseState = Q, e.memoizedState = Q, e.flags & 256) { e = Vd(I, e, C, r); break t } else if (C !== o) { o = MS(Error(S(424)), e), Xe(o), e = Vd(I, e, C, r); break t } else { switch (I = e.stateNode.containerInfo, I.nodeType) { case 9: I = I.body; break; default: I = I.nodeName === "HTML" ? I.ownerDocument.body : I } for (ZA = FS(I.firstChild), ha = e, $t = !0, Gl = null, jS = !0, r = yZ(e, null, C, r), e.child = r; r; ) r.flags = r.flags & -3 | 4096, r = r.sibling } else { if (vs(), C === o) { e = Pi(I, e, r); break t } Ra(I, e, C, r) } e = e.child } return e; case 26: return _r(I, e), I === null ? (r = sW(e.type, null, e.pendingProps, null)) ? e.memoizedState = r : $t || (r = e.type, I = e.pendingProps, C = Cm(Ct.current).createElement(r), C[oa] = e, C[Ha] = I, Ua(C, r, I), pa(C), e.stateNode = C) : e.memoizedState = sW(e.type, I.memoizedProps, e.pendingProps, I.memoizedState), null; case 27: return qt(e), I === null && $t && (C = e.stateNode = SW(e.type, e.pendingProps, Ct.current), ha = e, jS = !0, o = ZA, Ol(e.type) ? (ub = o, ZA = FS(C.firstChild)) : ZA = o), Ra(I, e, e.pendingProps.children, r), _r(I, e), I === null && (e.flags |= 4194304), e.child; case 5: return I === null && $t && ((o = C = ZA) && (C = mF(C, e.type, e.pendingProps, jS), C !== null ? (e.stateNode = C, ha = e, ZA = FS(C.firstChild), jS = !1, o = !0) : o = !1), o || Yl(e)), qt(e), o = e.type, Q = e.pendingProps, K = I !== null ? I.memoizedProps : null, C = Q.children, cb(o, Q) ? C = null : K !== null && cb(o, K) && (e.flags |= 32), e.memoizedState !== null && (o = Wn(I, e, Kq, null, null, r), Uk._currentValue = o), _r(I, e), Ra(I, e, C, r), e.child; case 6: return I === null && $t && ((I = r = ZA) && (r = JF(r, e.pendingProps, jS), r !== null ? (e.stateNode = r, ha = e, ZA = null, I = !0) : I = !1), I || Yl(e)), null; case 13: return Dd(I, e, r); case 4: return nt(e, e.stateNode.containerInfo), C = e.pendingProps, I === null ? e.child = tI(e, null, C, r) : Ra(I, e, C, r), e.child; case 11: return qd(I, e, e.type, e.pendingProps, r); case 7: return Ra(I, e, e.pendingProps, r), e.child; case 8: return Ra(I, e, e.pendingProps.children, r), e.child; case 12: return Ra(I, e, e.pendingProps.children, r), e.child; case 10: return C = e.pendingProps, Nl(e, e.type, C.value), Ra(I, e, C.children, r), e.child; case 9: return o = e.type._context, C = e.pendingProps.children, Hs(e), o = Qa(o), C = C(o), e.flags |= 1, Ra(I, e, C, r), e.child; case 14: return Fd(I, e, e.type, e.pendingProps, r); case 15: return xd(I, e, e.type, e.pendingProps, r); case 19: return vd(I, e, r); case 31: return jq(I, e, r); case 22: return yd(I, e, r, e.pendingProps); case 24: return Hs(e), C = Qa(HA), I === null ? (o = nn(), o === null && (o = hA, Q = Jn(), o.pooledCache = Q, Q.refCount++, Q !== null && (o.pooledCacheLanes |= r), o = Q), e.memoizedState = { parent: C, cache: o }, on(e), Nl(e, HA, o)) : ((I.lanes & r) !== 0 && (hn(I, e), ak(e, null, null, r), Ak()), o = I.memoizedState, Q = e.memoizedState, o.parent !== C ? (o = { parent: C, cache: C }, e.memoizedState = o, e.lanes === 0 && (e.memoizedState = e.updateQueue.baseState = o), Nl(e, HA, C)) : (C = Q.cache, Nl(e, HA, C), C !== o.cache && mn(e, [HA], r, !0))), Ra(I, e, e.pendingProps.children, r), e.child; case 29: throw e.pendingProps } throw Error(S(156, e.tag)) } function _i(I) { I.flags |= 4 } function tb(I, e, r, C, o) { if ((e = (I.mode & 32) !== 0) && (e = !1), e) { if (I.flags |= 16777216, (o & 335544128) === o) if (I.stateNode.complete) I.flags |= 8192; else if (Ug()) I.flags |= 8192; else throw $s = qr, bn } else I.flags &= -16777217 } function Hd(I, e) { if (e.type !== "stylesheet" || (e.state.loading & 4) !== 0) I.flags &= -16777217; else if (I.flags |= 16777216, !pW(e)) if (Ug()) I.flags |= 8192; else throw $s = qr, bn } function tm(I, e) { e !== null && (I.flags |= 4), I.flags & 16384 && (e = I.tag !== 22 ? XA() : 536870912, I.lanes |= e, KE |= e) } function Ek(I, e) { if (!$t) switch (I.tailMode) { case "hidden": e = I.tail; for (var r = null; e !== null; ) e.alternate !== null && (r = e), e = e.sibling; r === null ? I.tail = null : r.sibling = null; break; case "collapsed": r = I.tail; for (var C = null; r !== null; ) r.alternate !== null && (C = r), r = r.sibling; C === null ? e || I.tail === null ? I.tail = null : I.tail.sibling = null : C.sibling = null } } function dA(I) { var e = I.alternate !== null && I.alternate.child === I.child , r = 0 , C = 0; if (e) for (var o = I.child; o !== null; ) r |= o.lanes | o.childLanes, C |= o.subtreeFlags & 65011712, C |= o.flags & 65011712, o.return = I, o = o.sibling; else for (o = I.child; o !== null; ) r |= o.lanes | o.childLanes, C |= o.subtreeFlags, C |= o.flags, o.return = I, o = o.sibling; return I.subtreeFlags |= C, I.childLanes = r, e } function Fq(I, e, r) { var C = e.pendingProps; switch (En(e), e.tag) { case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return dA(e), null; case 1: return dA(e), null; case 3: return r = e.stateNode, C = null, I !== null && (C = I.memoizedState.cache), e.memoizedState.cache !== C && (e.flags |= 2048), vi(HA), Gt(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (I === null || I.child === null) && (CE(e) ? _i(e) : I === null || I.memoizedState.isDehydrated && (e.flags & 256) === 0 || (e.flags |= 1024, kn())), dA(e), null; case 26: var o = e.type , Q = e.memoizedState; return I === null ? (_i(e), Q !== null ? (dA(e), Hd(e, Q)) : (dA(e), tb(e, o, null, C, r))) : Q ? Q !== I.memoizedState ? (_i(e), dA(e), Hd(e, Q)) : (dA(e), e.flags &= -16777217) : (I = I.memoizedProps, I !== C && _i(e), dA(e), tb(e, o, I, C, r)), null; case 27: if (zt(e), r = Ct.current, o = e.type, I !== null && e.stateNode != null) I.memoizedProps !== C && _i(e); else { if (!C) { if (e.stateNode === null) throw Error(S(166)); return dA(e), null } I = P.current, CE(e) ? GZ(e) : (I = SW(o, C, r), e.stateNode = I, _i(e)) } return dA(e), null; case 5: if (zt(e), o = e.type, I !== null && e.stateNode != null) I.memoizedProps !== C && _i(e); else { if (!C) { if (e.stateNode === null) throw Error(S(166)); return dA(e), null } if (Q = P.current, CE(e)) GZ(e); else { var K = Cm(Ct.current); switch (Q) { case 1: Q = K.createElementNS("http://www.w3.org/2000/svg", o); break; case 2: Q = K.createElementNS("http://www.w3.org/1998/Math/MathML", o); break; default: switch (o) { case "svg": Q = K.createElementNS("http://www.w3.org/2000/svg", o); break; case "math": Q = K.createElementNS("http://www.w3.org/1998/Math/MathML", o); break; case "script": Q = K.createElement("div"), Q.innerHTML = "