@goondocks/myco 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +10 -11
- package/dist/{chunk-2YBUL3IL.js → chunk-25DJSF2K.js} +3 -3
- package/dist/{chunk-24DOZEUJ.js → chunk-ALBVNGCF.js} +591 -27
- package/dist/chunk-ALBVNGCF.js.map +1 -0
- package/dist/{chunk-E7OBRBCQ.js → chunk-CK24O5YQ.js} +12 -2
- package/dist/chunk-CK24O5YQ.js.map +1 -0
- package/dist/{chunk-2GSX3BK2.js → chunk-CPVXNRGW.js} +4 -4
- package/dist/{chunk-L25U7PIG.js → chunk-CQ4RKK67.js} +2 -2
- package/dist/{chunk-ZMYNRTTD.js → chunk-HRGHDMYI.js} +4 -3
- package/dist/chunk-HRGHDMYI.js.map +1 -0
- package/dist/{chunk-5FNZ7AMX.js → chunk-IWBWZQK6.js} +2 -2
- package/dist/{chunk-MQSYSQ6T.js → chunk-JSK7L46L.js} +11 -6
- package/dist/{chunk-MQSYSQ6T.js.map → chunk-JSK7L46L.js.map} +1 -1
- package/dist/{chunk-KUMVJIJW.js → chunk-LDKXXKF6.js} +6 -10
- package/dist/{chunk-KUMVJIJW.js.map → chunk-LDKXXKF6.js.map} +1 -1
- package/dist/{chunk-QGJ2ZIUZ.js → chunk-MWW62YZP.js} +37 -5
- package/dist/chunk-MWW62YZP.js.map +1 -0
- package/dist/{chunk-2ZBB3MQT.js → chunk-PQWQC3RF.js} +444 -21
- package/dist/chunk-PQWQC3RF.js.map +1 -0
- package/dist/{chunk-5QWZT4AB.js → chunk-RNWALAFP.js} +2 -2
- package/dist/{chunk-3EM23DMD.js → chunk-RXJHB7W4.js} +2 -2
- package/dist/{chunk-GNR3QAER.js → chunk-RY76WEN3.js} +2 -2
- package/dist/{chunk-GDYYJTTT.js → chunk-V5R6O6RP.js} +3 -3
- package/dist/{chunk-6BSDCZ5Q.js → chunk-WBLTISAK.js} +8 -3
- package/dist/chunk-WBLTISAK.js.map +1 -0
- package/dist/{chunk-YTANWAGE.js → chunk-XNAM6Z4O.js} +2 -2
- package/dist/{chunk-P3WO3N3I.js → chunk-YG6MLLGL.js} +19 -3
- package/dist/{chunk-P3WO3N3I.js.map → chunk-YG6MLLGL.js.map} +1 -1
- package/dist/{cli-K7SUTP7A.js → cli-LMBBPV2D.js} +20 -20
- package/dist/{client-YJMNTITQ.js → client-FDKJ4BY7.js} +5 -5
- package/dist/{config-G5GGT5A6.js → config-HDUFDOQN.js} +3 -3
- package/dist/{curate-6T5NKVXK.js → curate-DYE4VCBJ.js} +10 -11
- package/dist/{curate-6T5NKVXK.js.map → curate-DYE4VCBJ.js.map} +1 -1
- package/dist/{detect-providers-S3M5TAMW.js → detect-providers-I2QQFDJW.js} +3 -3
- package/dist/{digest-O35VHYFP.js → digest-PNHFM7JJ.js} +11 -13
- package/dist/{digest-O35VHYFP.js.map → digest-PNHFM7JJ.js.map} +1 -1
- package/dist/{init-TFLSATB3.js → init-7N7F6W6U.js} +8 -8
- package/dist/{main-JEUQS3BY.js → main-3JZDUJLU.js} +177 -40
- package/dist/main-3JZDUJLU.js.map +1 -0
- package/dist/{rebuild-7SH5GSNX.js → rebuild-WXKQ5HZO.js} +10 -11
- package/dist/{rebuild-7SH5GSNX.js.map → rebuild-WXKQ5HZO.js.map} +1 -1
- package/dist/reprocess-PKRDV67L.js +79 -0
- package/dist/reprocess-PKRDV67L.js.map +1 -0
- package/dist/{restart-NLJLB52D.js → restart-WSJRHRHI.js} +6 -6
- package/dist/{search-2BVRF54H.js → search-SWMJ4MZ3.js} +6 -6
- package/dist/{server-4AMZNP4F.js → server-NTRVB5ZM.js} +14 -18
- package/dist/{server-4AMZNP4F.js.map → server-NTRVB5ZM.js.map} +1 -1
- package/dist/{session-start-AZAF3DTE.js → session-start-KQ4KCQMZ.js} +9 -9
- package/dist/setup-digest-BOYOSM4B.js +15 -0
- package/dist/setup-llm-PCZ64ALK.js +15 -0
- package/dist/src/cli.js +4 -4
- package/dist/src/daemon/main.js +4 -4
- package/dist/src/hooks/post-tool-use.js +5 -5
- package/dist/src/hooks/session-end.js +5 -5
- package/dist/src/hooks/session-start.js +4 -4
- package/dist/src/hooks/stop.js +7 -7
- package/dist/src/hooks/user-prompt-submit.js +5 -5
- package/dist/src/mcp/server.js +4 -4
- package/dist/src/prompts/consolidation.md +2 -0
- package/dist/src/prompts/digest-7500.md +68 -0
- package/dist/{stats-MKDIZFIQ.js → stats-2OUQSEZO.js} +6 -6
- package/dist/ui/assets/index-Bk4X_8-Z.css +1 -0
- package/dist/ui/assets/index-D3SY7ZHY.js +299 -0
- package/dist/ui/index.html +2 -2
- package/dist/{verify-7DW7LAND.js → verify-MG5O7SBU.js} +6 -6
- package/dist/{version-RQLD7VBP.js → version-NKOECSVH.js} +4 -4
- package/package.json +3 -3
- package/dist/chunk-24DOZEUJ.js.map +0 -1
- package/dist/chunk-2ZBB3MQT.js.map +0 -1
- package/dist/chunk-3JCXYLHD.js +0 -33
- package/dist/chunk-3JCXYLHD.js.map +0 -1
- package/dist/chunk-6BSDCZ5Q.js.map +0 -1
- package/dist/chunk-B5UZSHQV.js +0 -250
- package/dist/chunk-B5UZSHQV.js.map +0 -1
- package/dist/chunk-E7OBRBCQ.js.map +0 -1
- package/dist/chunk-KC7ENQTN.js +0 -436
- package/dist/chunk-KC7ENQTN.js.map +0 -1
- package/dist/chunk-QGJ2ZIUZ.js.map +0 -1
- package/dist/chunk-UVGAVYWZ.js +0 -157
- package/dist/chunk-UVGAVYWZ.js.map +0 -1
- package/dist/chunk-ZMYNRTTD.js.map +0 -1
- package/dist/main-JEUQS3BY.js.map +0 -1
- package/dist/reprocess-Q4YH2ZBK.js +0 -268
- package/dist/reprocess-Q4YH2ZBK.js.map +0 -1
- package/dist/setup-digest-YLZZGSSR.js +0 -15
- package/dist/setup-llm-JOXBSLXC.js +0 -15
- package/dist/ui/assets/index-D37IoDXS.css +0 -1
- package/dist/ui/assets/index-DA61Ial2.js +0 -289
- /package/dist/{chunk-2YBUL3IL.js.map → chunk-25DJSF2K.js.map} +0 -0
- /package/dist/{chunk-2GSX3BK2.js.map → chunk-CPVXNRGW.js.map} +0 -0
- /package/dist/{chunk-L25U7PIG.js.map → chunk-CQ4RKK67.js.map} +0 -0
- /package/dist/{chunk-5FNZ7AMX.js.map → chunk-IWBWZQK6.js.map} +0 -0
- /package/dist/{chunk-5QWZT4AB.js.map → chunk-RNWALAFP.js.map} +0 -0
- /package/dist/{chunk-3EM23DMD.js.map → chunk-RXJHB7W4.js.map} +0 -0
- /package/dist/{chunk-GNR3QAER.js.map → chunk-RY76WEN3.js.map} +0 -0
- /package/dist/{chunk-GDYYJTTT.js.map → chunk-V5R6O6RP.js.map} +0 -0
- /package/dist/{chunk-YTANWAGE.js.map → chunk-XNAM6Z4O.js.map} +0 -0
- /package/dist/{cli-K7SUTP7A.js.map → cli-LMBBPV2D.js.map} +0 -0
- /package/dist/{client-YJMNTITQ.js.map → client-FDKJ4BY7.js.map} +0 -0
- /package/dist/{config-G5GGT5A6.js.map → config-HDUFDOQN.js.map} +0 -0
- /package/dist/{detect-providers-S3M5TAMW.js.map → detect-providers-I2QQFDJW.js.map} +0 -0
- /package/dist/{init-TFLSATB3.js.map → init-7N7F6W6U.js.map} +0 -0
- /package/dist/{restart-NLJLB52D.js.map → restart-WSJRHRHI.js.map} +0 -0
- /package/dist/{search-2BVRF54H.js.map → search-SWMJ4MZ3.js.map} +0 -0
- /package/dist/{session-start-AZAF3DTE.js.map → session-start-KQ4KCQMZ.js.map} +0 -0
- /package/dist/{setup-digest-YLZZGSSR.js.map → setup-digest-BOYOSM4B.js.map} +0 -0
- /package/dist/{setup-llm-JOXBSLXC.js.map → setup-llm-PCZ64ALK.js.map} +0 -0
- /package/dist/{stats-MKDIZFIQ.js.map → stats-2OUQSEZO.js.map} +0 -0
- /package/dist/{verify-7DW7LAND.js.map → verify-MG5O7SBU.js.map} +0 -0
- /package/dist/{version-RQLD7VBP.js.map → version-NKOECSVH.js.map} +0 -0
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
var Ug=n=>{throw TypeError(n)};var ed=(n,l,r)=>l.has(n)||Ug("Cannot "+r);var O=(n,l,r)=>(ed(n,l,"read from private field"),r?r.call(n):l.get(n)),ce=(n,l,r)=>l.has(n)?Ug("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,r),ne=(n,l,r,s)=>(ed(n,l,"write to private field"),s?s.call(n,r):l.set(n,r),r),Se=(n,l,r)=>(ed(n,l,"access private method"),r);var Fo=(n,l,r,s)=>({set _(u){ne(n,l,u,r)},get _(){return O(n,l,s)}});function UE(n,l){for(var r=0;r<l.length;r++){const s=l[r];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function lh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var td={exports:{}},ls={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Hg;function HE(){if(Hg)return ls;Hg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return ls.Fragment=l,ls.jsx=r,ls.jsxs=r,ls}var Bg;function BE(){return Bg||(Bg=1,td.exports=HE()),td.exports}var h=BE(),nd={exports:{}},ge={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var kg;function kE(){if(kg)return ge;kg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function C(_){return _===null||typeof _!="object"?null:(_=w&&_[w]||_["@@iterator"],typeof _=="function"?_:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function R(_,K,W){this.props=_,this.context=K,this.refs=T,this.updater=W||N}R.prototype.isReactComponent={},R.prototype.setState=function(_,K){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,K,"setState")},R.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function j(){}j.prototype=R.prototype;function M(_,K,W){this.props=_,this.context=K,this.refs=T,this.updater=W||N}var z=M.prototype=new j;z.constructor=M,E(z,R.prototype),z.isPureReactComponent=!0;var V=Array.isArray;function F(){}var Y={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function ae(_,K,W){var le=W.ref;return{$$typeof:n,type:_,key:K,ref:le!==void 0?le:null,props:W}}function ie(_,K){return ae(_.type,K,_.props)}function oe(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function ee(_){var K={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(W){return K[W]})}var pe=/\/+/g;function ue(_,K){return typeof _=="object"&&_!==null&&_.key!=null?ee(""+_.key):K.toString(36)}function de(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(F,F):(_.status="pending",_.then(function(K){_.status==="pending"&&(_.status="fulfilled",_.value=K)},function(K){_.status==="pending"&&(_.status="rejected",_.reason=K)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function U(_,K,W,le,me){var ve=typeof _;(ve==="undefined"||ve==="boolean")&&(_=null);var te=!1;if(_===null)te=!0;else switch(ve){case"bigint":case"string":case"number":te=!0;break;case"object":switch(_.$$typeof){case n:case l:te=!0;break;case x:return te=_._init,U(te(_._payload),K,W,le,me)}}if(te)return me=me(_),te=le===""?"."+ue(_,0):le,V(me)?(W="",te!=null&&(W=te.replace(pe,"$&/")+"/"),U(me,K,W,"",function(De){return De})):me!=null&&(oe(me)&&(me=ie(me,W+(me.key==null||_&&_.key===me.key?"":(""+me.key).replace(pe,"$&/")+"/")+te)),K.push(me)),1;te=0;var be=le===""?".":le+":";if(V(_))for(var we=0;we<_.length;we++)le=_[we],ve=be+ue(le,we),te+=U(le,K,W,ve,me);else if(we=C(_),typeof we=="function")for(_=we.call(_),we=0;!(le=_.next()).done;)le=le.value,ve=be+ue(le,we++),te+=U(le,K,W,ve,me);else if(ve==="object"){if(typeof _.then=="function")return U(de(_),K,W,le,me);throw K=String(_),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return te}function Z(_,K,W){if(_==null)return _;var le=[],me=0;return U(_,le,"","",function(ve){return K.call(W,ve,me++)}),le}function Q(_){if(_._status===-1){var K=_._result;K=K(),K.then(function(W){(_._status===0||_._status===-1)&&(_._status=1,_._result=W)},function(W){(_._status===0||_._status===-1)&&(_._status=2,_._result=W)}),_._status===-1&&(_._status=0,_._result=K)}if(_._status===1)return _._result.default;throw _._result}var I=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},J={map:Z,forEach:function(_,K,W){Z(_,function(){K.apply(this,arguments)},W)},count:function(_){var K=0;return Z(_,function(){K++}),K},toArray:function(_){return Z(_,function(K){return K})||[]},only:function(_){if(!oe(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return ge.Activity=b,ge.Children=J,ge.Component=R,ge.Fragment=r,ge.Profiler=u,ge.PureComponent=M,ge.StrictMode=s,ge.Suspense=g,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ge.__COMPILER_RUNTIME={__proto__:null,c:function(_){return Y.H.useMemoCache(_)}},ge.cache=function(_){return function(){return _.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(_,K,W){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var le=E({},_.props),me=_.key;if(K!=null)for(ve in K.key!==void 0&&(me=""+K.key),K)!$.call(K,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&K.ref===void 0||(le[ve]=K[ve]);var ve=arguments.length-2;if(ve===1)le.children=W;else if(1<ve){for(var te=Array(ve),be=0;be<ve;be++)te[be]=arguments[be+2];le.children=te}return ae(_.type,me,le)},ge.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},ge.createElement=function(_,K,W){var le,me={},ve=null;if(K!=null)for(le in K.key!==void 0&&(ve=""+K.key),K)$.call(K,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(me[le]=K[le]);var te=arguments.length-2;if(te===1)me.children=W;else if(1<te){for(var be=Array(te),we=0;we<te;we++)be[we]=arguments[we+2];me.children=be}if(_&&_.defaultProps)for(le in te=_.defaultProps,te)me[le]===void 0&&(me[le]=te[le]);return ae(_,ve,me)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(_){return{$$typeof:m,render:_}},ge.isValidElement=oe,ge.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:Q}},ge.memo=function(_,K){return{$$typeof:p,type:_,compare:K===void 0?null:K}},ge.startTransition=function(_){var K=Y.T,W={};Y.T=W;try{var le=_(),me=Y.S;me!==null&&me(W,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(F,I)}catch(ve){I(ve)}finally{K!==null&&W.types!==null&&(K.types=W.types),Y.T=K}},ge.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ge.use=function(_){return Y.H.use(_)},ge.useActionState=function(_,K,W){return Y.H.useActionState(_,K,W)},ge.useCallback=function(_,K){return Y.H.useCallback(_,K)},ge.useContext=function(_){return Y.H.useContext(_)},ge.useDebugValue=function(){},ge.useDeferredValue=function(_,K){return Y.H.useDeferredValue(_,K)},ge.useEffect=function(_,K){return Y.H.useEffect(_,K)},ge.useEffectEvent=function(_){return Y.H.useEffectEvent(_)},ge.useId=function(){return Y.H.useId()},ge.useImperativeHandle=function(_,K,W){return Y.H.useImperativeHandle(_,K,W)},ge.useInsertionEffect=function(_,K){return Y.H.useInsertionEffect(_,K)},ge.useLayoutEffect=function(_,K){return Y.H.useLayoutEffect(_,K)},ge.useMemo=function(_,K){return Y.H.useMemo(_,K)},ge.useOptimistic=function(_,K){return Y.H.useOptimistic(_,K)},ge.useReducer=function(_,K,W){return Y.H.useReducer(_,K,W)},ge.useRef=function(_){return Y.H.useRef(_)},ge.useState=function(_){return Y.H.useState(_)},ge.useSyncExternalStore=function(_,K,W){return Y.H.useSyncExternalStore(_,K,W)},ge.useTransition=function(){return Y.H.useTransition()},ge.version="19.2.4",ge}var qg;function ih(){return qg||(qg=1,nd.exports=kE()),nd.exports}var y=ih();const oa=lh(y),h0=UE({__proto__:null,default:oa},[y]);var ad={exports:{}},is={},ld={exports:{}},id={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Vg;function qE(){return Vg||(Vg=1,(function(n){function l(U,Z){var Q=U.length;U.push(Z);e:for(;0<Q;){var I=Q-1>>>1,J=U[I];if(0<u(J,Z))U[I]=Z,U[Q]=J,Q=I;else break e}}function r(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var Z=U[0],Q=U.pop();if(Q!==Z){U[0]=Q;e:for(var I=0,J=U.length,_=J>>>1;I<_;){var K=2*(I+1)-1,W=U[K],le=K+1,me=U[le];if(0>u(W,Q))le<J&&0>u(me,W)?(U[I]=me,U[le]=Q,I=le):(U[I]=W,U[K]=Q,I=K);else if(le<J&&0>u(me,Q))U[I]=me,U[le]=Q,I=le;else break e}}return Z}function u(U,Z){var Q=U.sortIndex-Z.sortIndex;return Q!==0?Q:U.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],p=[],x=1,b=null,w=3,C=!1,N=!1,E=!1,T=!1,R=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function z(U){for(var Z=r(p);Z!==null;){if(Z.callback===null)s(p);else if(Z.startTime<=U)s(p),Z.sortIndex=Z.expirationTime,l(g,Z);else break;Z=r(p)}}function V(U){if(E=!1,z(U),!N)if(r(g)!==null)N=!0,F||(F=!0,ee());else{var Z=r(p);Z!==null&&de(V,Z.startTime-U)}}var F=!1,Y=-1,$=5,ae=-1;function ie(){return T?!0:!(n.unstable_now()-ae<$)}function oe(){if(T=!1,F){var U=n.unstable_now();ae=U;var Z=!0;try{e:{N=!1,E&&(E=!1,j(Y),Y=-1),C=!0;var Q=w;try{t:{for(z(U),b=r(g);b!==null&&!(b.expirationTime>U&&ie());){var I=b.callback;if(typeof I=="function"){b.callback=null,w=b.priorityLevel;var J=I(b.expirationTime<=U);if(U=n.unstable_now(),typeof J=="function"){b.callback=J,z(U),Z=!0;break t}b===r(g)&&s(g),z(U)}else s(g);b=r(g)}if(b!==null)Z=!0;else{var _=r(p);_!==null&&de(V,_.startTime-U),Z=!1}}break e}finally{b=null,w=Q,C=!1}Z=void 0}}finally{Z?ee():F=!1}}}var ee;if(typeof M=="function")ee=function(){M(oe)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ue=pe.port2;pe.port1.onmessage=oe,ee=function(){ue.postMessage(null)}}else ee=function(){R(oe,0)};function de(U,Z){Y=R(function(){U(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(U){switch(w){case 1:case 2:case 3:var Z=3;break;default:Z=w}var Q=w;w=Z;try{return U()}finally{w=Q}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(U,Z){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Q=w;w=U;try{return Z()}finally{w=Q}},n.unstable_scheduleCallback=function(U,Z,Q){var I=n.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?I+Q:I):Q=I,U){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=Q+J,U={id:x++,callback:Z,priorityLevel:U,startTime:Q,expirationTime:J,sortIndex:-1},Q>I?(U.sortIndex=Q,l(p,U),r(g)===null&&U===r(p)&&(E?(j(Y),Y=-1):E=!0,de(V,Q-I))):(U.sortIndex=J,l(g,U),N||C||(N=!0,F||(F=!0,ee()))),U},n.unstable_shouldYield=ie,n.unstable_wrapCallback=function(U){var Z=w;return function(){var Q=w;w=Z;try{return U.apply(this,arguments)}finally{w=Q}}}})(id)),id}var Yg;function VE(){return Yg||(Yg=1,ld.exports=qE()),ld.exports}var rd={exports:{}},Et={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Gg;function YE(){if(Gg)return Et;Gg=1;var n=ih();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:g,containerInfo:p,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Et.createPortal=function(g,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(g,p,null,x)},Et.flushSync=function(g){var p=d.T,x=s.p;try{if(d.T=null,s.p=2,g)return g()}finally{d.T=p,s.p=x,s.d.f()}},Et.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},Et.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Et.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var x=p.as,b=m(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:C}):x==="script"&&s.d.X(g,{crossOrigin:b,integrity:w,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Et.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(g)},Et.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=m(x,p.crossOrigin);s.d.L(g,x,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Et.preloadModule=function(g,p){if(typeof g=="string")if(p){var x=m(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(g)},Et.requestFormReset=function(g){s.d.r(g)},Et.unstable_batchedUpdates=function(g,p){return g(p)},Et.useFormState=function(g,p,x){return d.H.useFormState(g,p,x)},Et.useFormStatus=function(){return d.H.useHostTransitionStatus()},Et.version="19.2.4",Et}var Qg;function m0(){if(Qg)return rd.exports;Qg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),rd.exports=YE(),rd.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Xg;function GE(){if(Xg)return is;Xg=1;var n=VE(),l=ih(),r=m0();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){a=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return g(o),e;if(c===i)return g(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==i.return)a=o,i=c;else{for(var v=!1,S=o.child;S;){if(S===a){v=!0,a=o,i=c;break}if(S===i){v=!0,i=o,a=c;break}S=S.sibling}if(!v){for(S=c.child;S;){if(S===a){v=!0,a=c,i=o;break}if(S===i){v=!0,i=c,a=o;break}S=S.sibling}if(!v)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),M=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case R:return"Profiler";case T:return"StrictMode";case V:return"Suspense";case F:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case M:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var de=Array.isArray,U=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},I=[],J=-1;function _(e){return{current:e}}function K(e){0>J||(e.current=I[J],I[J]=null,J--)}function W(e,t){J++,I[J]=e.current,e.current=t}var le=_(null),me=_(null),ve=_(null),te=_(null);function be(e,t){switch(W(ve,t),W(me,e),W(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ig(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ig(t),e=rg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(le),W(le,e)}function we(){K(le),K(me),K(ve)}function De(e){e.memoizedState!==null&&W(te,e);var t=le.current,a=rg(t,e.type);t!==a&&(W(me,e),W(le,a))}function je(e){me.current===e&&(K(le),K(me)),te.current===e&&(K(te),es._currentValue=Q)}var ze,St;function dt(e){if(ze===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||"",St=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ze+e+St}var qn=!1;function Vn(e,t){if(!e||qn)return"";qn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(q){var k=q}Reflect.construct(e,[],P)}else{try{P.call()}catch(q){k=q}e.call(P.prototype)}}else{try{throw Error()}catch(q){k=q}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(q){if(q&&k&&typeof q.stack=="string")return[q.stack,k.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),v=c[0],S=c[1];if(v&&S){var A=v.split(`
|
|
44
|
-
`),B=S.split(`
|
|
45
|
-
`);for(o=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(i===A.length||o===B.length)for(i=A.length-1,o=B.length-1;1<=i&&0<=o&&A[i]!==B[o];)o--;for(;1<=i&&0<=o;i--,o--)if(A[i]!==B[o]){if(i!==1||o!==1)do if(i--,o--,0>o||A[i]!==B[o]){var G=`
|
|
46
|
-
`+A[i].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=i&&0<=o);break}}}finally{qn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?dt(a):""}function cl(e,t){switch(e.tag){case 26:case 27:case 5:return dt(e.type);case 16:return dt("Lazy");case 13:return e.child!==t&&t!==null?dt("Suspense Fallback"):dt("Suspense");case 19:return dt("SuspenseList");case 0:case 15:return Vn(e.type,!1);case 11:return Vn(e.type.render,!1);case 1:return Vn(e.type,!0);case 31:return dt("Activity");default:return""}}function _s(e){try{var t="",a=null;do t+=cl(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
-
Error generating stack: `+i.message+`
|
|
48
|
-
`+i.stack}}var ya=Object.prototype.hasOwnProperty,ku=n.unstable_scheduleCallback,qu=n.unstable_cancelCallback,mS=n.unstable_shouldYield,pS=n.unstable_requestPaint,kt=n.unstable_now,vS=n.unstable_getCurrentPriorityLevel,Hh=n.unstable_ImmediatePriority,Bh=n.unstable_UserBlockingPriority,js=n.unstable_NormalPriority,gS=n.unstable_LowPriority,kh=n.unstable_IdlePriority,yS=n.log,bS=n.unstable_setDisableYieldValue,dr=null,qt=null;function ba(e){if(typeof yS=="function"&&bS(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(dr,e)}catch{}}var Vt=Math.clz32?Math.clz32:ES,xS=Math.log,SS=Math.LN2;function ES(e){return e>>>=0,e===0?32:31-(xS(e)/SS|0)|0}var Ms=256,Ds=262144,zs=4194304;function fl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ls(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~c,i!==0?o=fl(i):(v&=S,v!==0?o=fl(v):a||(a=S&~e,a!==0&&(o=fl(a))))):(S=i&~c,S!==0?o=fl(S):v!==0?o=fl(v):a||(a=i&~e,a!==0&&(o=fl(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function hr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qh(){var e=zs;return zs<<=1,(zs&62914560)===0&&(zs=4194304),e}function Vu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function mr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function CS(e,t,a,i,o,c){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,B=e.hiddenUpdates;for(a=v&~a;0<a;){var G=31-Vt(a),P=1<<G;S[G]=0,A[G]=-1;var k=B[G];if(k!==null)for(B[G]=null,G=0;G<k.length;G++){var q=k[G];q!==null&&(q.lane&=-536870913)}a&=~P}i!==0&&Vh(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(v&~t))}function Vh(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Vt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function Yh(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Vt(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function Gh(e,t){var a=t&-t;return a=(a&42)!==0?1:Yu(a),(a&(e.suspendedLanes|t))!==0?0:a}function Yu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Gu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qh(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Og(e.type))}function Xh(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var xa=Math.random().toString(36).slice(2),vt="__reactFiber$"+xa,_t="__reactProps$"+xa,Fl="__reactContainer$"+xa,Qu="__reactEvents$"+xa,TS="__reactListeners$"+xa,RS="__reactHandles$"+xa,Kh="__reactResources$"+xa,pr="__reactMarker$"+xa;function Xu(e){delete e[vt],delete e[_t],delete e[Qu],delete e[TS],delete e[RS]}function $l(e){var t=e[vt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Fl]||a[vt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hg(e);e!==null;){if(a=e[vt])return a;e=hg(e)}return t}e=a,a=e.parentNode}return null}function Il(e){if(e=e[vt]||e[Fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Jl(e){var t=e[Kh];return t||(t=e[Kh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[pr]=!0}var Ph=new Set,Zh={};function dl(e,t){Wl(e,t),Wl(e+"Capture",t)}function Wl(e,t){for(Zh[e]=t,e=0;e<t.length;e++)Ph.add(t[e])}var NS=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]*$"),Fh={},$h={};function AS(e){return ya.call($h,e)?!0:ya.call(Fh,e)?!1:NS.test(e)?$h[e]=!0:(Fh[e]=!0,!1)}function Us(e,t,a){if(AS(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Hs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Yn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function en(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ih(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OS(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(v){a=""+v,c.call(this,v)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ku(e){if(!e._valueTracker){var t=Ih(e)?"checked":"value";e._valueTracker=OS(e,t,""+e[t])}}function Jh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Ih(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Bs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _S=/[\n"\\]/g;function tn(e){return e.replace(_S,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pu(e,t,a,i,o,c,v,S){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+en(t)):e.value!==""+en(t)&&(e.value=""+en(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Zu(e,v,en(t)):a!=null?Zu(e,v,en(a)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+en(S):e.removeAttribute("name")}function Wh(e,t,a,i,o,c,v,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ku(e);return}a=a!=null?""+en(a):"",t=t!=null?""+en(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Ku(e)}function Zu(e,t,a){t==="number"&&Bs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ei(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&i&&(e[a].defaultSelected=!0)}else{for(a=""+en(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function em(e,t,a){if(t!=null&&(t=""+en(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+en(a):""}function tm(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(de(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=en(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),Ku(e)}function ti(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var jS=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 nm(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||jS.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function am(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&a[o]!==i&&nm(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&nm(e,c,t[c])}function Fu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var MS=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"]]),DS=/^[\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 ks(e){return DS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gn(){}var $u=null;function Iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ni=null,ai=null;function lm(e){var t=Il(e);if(t&&(e=t.stateNode)){var a=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+tn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var o=i[_t]||null;if(!o)throw Error(s(90));Pu(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Jh(i)}break e;case"textarea":em(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ei(e,!!a.multiple,t,!1)}}}var Ju=!1;function im(e,t,a){if(Ju)return e(t,a);Ju=!0;try{var i=e(t);return i}finally{if(Ju=!1,(ni!==null||ai!==null)&&(No(),ni&&(t=ni,e=ai,ai=ni=null,lm(t),e)))for(t=0;t<e.length;t++)lm(e[t])}}function gr(e,t){var a=e.stateNode;if(a===null)return null;var i=a[_t]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(Qn)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,yr)}catch{Wu=!1}var Sa=null,ec=null,qs=null;function rm(){if(qs)return qs;var e,t=ec,a=t.length,i,o="value"in Sa?Sa.value:Sa.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var v=a-e;for(i=1;i<=v&&t[a-i]===o[c-i];i++);return qs=o.slice(e,1<i?1-i:void 0)}function Vs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ys(){return!0}function sm(){return!1}function jt(e){function t(a,i,o,c,v){this._reactName=a,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=v,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ys:sm,this.isPropagationStopped=sm,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ys)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ys)},persist:function(){},isPersistent:Ys}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=jt(hl),br=b({},hl,{view:0,detail:0}),zS=jt(br),tc,nc,xr,Qs=b({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==xr&&(xr&&e.type==="mousemove"?(tc=e.screenX-xr.screenX,nc=e.screenY-xr.screenY):nc=tc=0,xr=e),tc)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),om=jt(Qs),LS=b({},Qs,{dataTransfer:0}),US=jt(LS),HS=b({},br,{relatedTarget:0}),ac=jt(HS),BS=b({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),kS=jt(BS),qS=b({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),VS=jt(qS),YS=b({},hl,{data:0}),um=jt(YS),GS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QS={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"},XS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=XS[e])?!!t[e]:!1}function lc(){return KS}var PS=b({},br,{key:function(e){if(e.key){var t=GS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?QS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lc,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ZS=jt(PS),FS=b({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cm=jt(FS),$S=b({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lc}),IS=jt($S),JS=b({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),WS=jt(JS),e1=b({},Qs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),t1=jt(e1),n1=b({},hl,{newState:0,oldState:0}),a1=jt(n1),l1=[9,13,27,32],ic=Qn&&"CompositionEvent"in window,Sr=null;Qn&&"documentMode"in document&&(Sr=document.documentMode);var i1=Qn&&"TextEvent"in window&&!Sr,fm=Qn&&(!ic||Sr&&8<Sr&&11>=Sr),dm=" ",hm=!1;function mm(e,t){switch(e){case"keyup":return l1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function r1(e,t){switch(e){case"compositionend":return pm(t);case"keypress":return t.which!==32?null:(hm=!0,dm);case"textInput":return e=t.data,e===dm&&hm?null:e;default:return null}}function s1(e,t){if(li)return e==="compositionend"||!ic&&mm(e,t)?(e=rm(),qs=ec=Sa=null,li=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return fm&&t.locale!=="ko"?null:t.data;default:return null}}var o1={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 vm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!o1[e.type]:t==="textarea"}function gm(e,t,a,i){ni?ai?ai.push(i):ai=[i]:ni=i,t=zo(t,"onChange"),0<t.length&&(a=new Gs("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Er=null,wr=null;function u1(e){Wv(e,0)}function Xs(e){var t=vr(e);if(Jh(t))return e}function ym(e,t){if(e==="change")return t}var bm=!1;if(Qn){var rc;if(Qn){var sc="oninput"in document;if(!sc){var xm=document.createElement("div");xm.setAttribute("oninput","return;"),sc=typeof xm.oninput=="function"}rc=sc}else rc=!1;bm=rc&&(!document.documentMode||9<document.documentMode)}function Sm(){Er&&(Er.detachEvent("onpropertychange",Em),wr=Er=null)}function Em(e){if(e.propertyName==="value"&&Xs(wr)){var t=[];gm(t,wr,e,Iu(e)),im(u1,t)}}function c1(e,t,a){e==="focusin"?(Sm(),Er=t,wr=a,Er.attachEvent("onpropertychange",Em)):e==="focusout"&&Sm()}function f1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xs(wr)}function d1(e,t){if(e==="click")return Xs(t)}function h1(e,t){if(e==="input"||e==="change")return Xs(t)}function m1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:m1;function Cr(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var o=a[i];if(!ya.call(t,o)||!Yt(e[o],t[o]))return!1}return!0}function wm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cm(e,t){var a=wm(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=wm(a)}}function Tm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bs(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Bs(e.document)}return t}function oc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var p1=Qn&&"documentMode"in document&&11>=document.documentMode,ii=null,uc=null,Tr=null,cc=!1;function Nm(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cc||ii==null||ii!==Bs(i)||(i=ii,"selectionStart"in i&&oc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Tr&&Cr(Tr,i)||(Tr=i,i=zo(uc,"onSelect"),0<i.length&&(t=new Gs("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ii)))}function ml(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ri={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionrun:ml("Transition","TransitionRun"),transitionstart:ml("Transition","TransitionStart"),transitioncancel:ml("Transition","TransitionCancel"),transitionend:ml("Transition","TransitionEnd")},fc={},Am={};Qn&&(Am=document.createElement("div").style,"AnimationEvent"in window||(delete ri.animationend.animation,delete ri.animationiteration.animation,delete ri.animationstart.animation),"TransitionEvent"in window||delete ri.transitionend.transition);function pl(e){if(fc[e])return fc[e];if(!ri[e])return e;var t=ri[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Am)return fc[e]=t[a];return e}var Om=pl("animationend"),_m=pl("animationiteration"),jm=pl("animationstart"),v1=pl("transitionrun"),g1=pl("transitionstart"),y1=pl("transitioncancel"),Mm=pl("transitionend"),Dm=new Map,dc="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(" ");dc.push("scrollEnd");function yn(e,t){Dm.set(e,t),dl(t,[e])}var Ks=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},nn=[],si=0,hc=0;function Ps(){for(var e=si,t=hc=si=0;t<e;){var a=nn[t];nn[t++]=null;var i=nn[t];nn[t++]=null;var o=nn[t];nn[t++]=null;var c=nn[t];if(nn[t++]=null,i!==null&&o!==null){var v=i.pending;v===null?o.next=o:(o.next=v.next,v.next=o),i.pending=o}c!==0&&zm(a,o,c)}}function Zs(e,t,a,i){nn[si++]=e,nn[si++]=t,nn[si++]=a,nn[si++]=i,hc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function mc(e,t,a,i){return Zs(e,t,a,i),Fs(e)}function vl(e,t){return Zs(e,null,null,t),Fs(e)}function zm(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Vt(a),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=a|536870912),c):null}function Fs(e){if(50<Pr)throw Pr=0,Cf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function b1(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,a,i){return new b1(e,t,a,i)}function pc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xn(e,t){var a=e.alternate;return a===null?(a=Gt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Lm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $s(e,t,a,i,o,c){var v=0;if(i=e,typeof e=="function")pc(e)&&(v=1);else if(typeof e=="string")v=CE(e,a,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Gt(31,a,t,o),e.elementType=ae,e.lanes=c,e;case E:return gl(a.children,o,c,t);case T:v=8,o|=24;break;case R:return e=Gt(12,a,t,o|2),e.elementType=R,e.lanes=c,e;case V:return e=Gt(13,a,t,o),e.elementType=V,e.lanes=c,e;case F:return e=Gt(19,a,t,o),e.elementType=F,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:v=10;break e;case j:v=9;break e;case z:v=11;break e;case Y:v=14;break e;case $:v=16,i=null;break e}v=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=Gt(v,a,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function gl(e,t,a,i){return e=Gt(7,e,i,t),e.lanes=a,e}function vc(e,t,a){return e=Gt(6,e,null,t),e.lanes=a,e}function Um(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function gc(e,t,a){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hm=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var a=Hm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:_s(t)},Hm.set(e,t),t)}return{value:e,source:t,stack:_s(t)}}var ui=[],ci=0,Is=null,Rr=0,ln=[],rn=0,Ea=null,Rn=1,Nn="";function Kn(e,t){ui[ci++]=Rr,ui[ci++]=Is,Is=e,Rr=t}function Bm(e,t,a){ln[rn++]=Rn,ln[rn++]=Nn,ln[rn++]=Ea,Ea=e;var i=Rn;e=Nn;var o=32-Vt(i)-1;i&=~(1<<o),a+=1;var c=32-Vt(t)+o;if(30<c){var v=o-o%5;c=(i&(1<<v)-1).toString(32),i>>=v,o-=v,Rn=1<<32-Vt(t)+o|a<<o|i,Nn=c+e}else Rn=1<<c|a<<o|i,Nn=e}function yc(e){e.return!==null&&(Kn(e,1),Bm(e,1,0))}function bc(e){for(;e===Is;)Is=ui[--ci],ui[ci]=null,Rr=ui[--ci],ui[ci]=null;for(;e===Ea;)Ea=ln[--rn],ln[rn]=null,Nn=ln[--rn],ln[rn]=null,Rn=ln[--rn],ln[rn]=null}function km(e,t){ln[rn++]=Rn,ln[rn++]=Nn,ln[rn++]=Ea,Rn=t.id,Nn=t.overflow,Ea=e}var gt=null,Pe=null,Oe=!1,wa=null,sn=!1,xc=Error(s(519));function Ca(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nr(an(t,e)),xc}function qm(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[vt]=e,t[_t]=i,a){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(a=0;a<Fr.length;a++)Te(Fr[a],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),Wh(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),tm(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||ag(t.textContent,a)?(i.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),i.onScroll!=null&&Te("scroll",t),i.onScrollEnd!=null&&Te("scrollend",t),i.onClick!=null&&(t.onclick=Gn),t=!0):t=!1,t||Ca(e,!0)}function Vm(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:gt=gt.return}}function fi(e){if(e!==gt)return!1;if(!Oe)return Vm(e),Oe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||kf(e.type,e.memoizedProps)),a=!a),a&&Pe&&Ca(e),Vm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Pe=dg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Pe=dg(e)}else t===27?(t=Pe,Ba(e.type)?(e=Qf,Qf=null,Pe=e):Pe=t):Pe=gt?un(e.stateNode.nextSibling):null;return!0}function yl(){Pe=gt=null,Oe=!1}function Sc(){var e=wa;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),wa=null),e}function Nr(e){wa===null?wa=[e]:wa.push(e)}var Ec=_(null),bl=null,Pn=null;function Ta(e,t,a){W(Ec,t._currentValue),t._currentValue=a}function Zn(e){e._currentValue=Ec.current,K(Ec)}function wc(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Cc(e,t,a,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var v=o.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=o;for(var A=0;A<t.length;A++)if(S.context===t[A]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),wc(c.return,a,e),i||(v=null);break e}c=S.next}}else if(o.tag===18){if(v=o.return,v===null)throw Error(s(341));v.lanes|=a,c=v.alternate,c!==null&&(c.lanes|=a),wc(v,a,e),v=null}else v=o.child;if(v!==null)v.return=o;else for(v=o;v!==null;){if(v===e){v=null;break}if(o=v.sibling,o!==null){o.return=v.return,v=o;break}v=v.return}o=v}}function di(e,t,a,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var v=o.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var S=o.type;Yt(o.pendingProps.value,v.value)||(e!==null?e.push(S):e=[S])}}else if(o===te.current){if(v=o.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(es):e=[es])}o=o.return}e!==null&&Cc(t,e,a,i),t.flags|=262144}function Js(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xl(e){bl=e,Pn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return Ym(bl,e)}function Ws(e,t){return bl===null&&xl(e),Ym(e,t)}function Ym(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Pn===null){if(e===null)throw Error(s(308));Pn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pn=Pn.next=t;return a}var x1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},S1=n.unstable_scheduleCallback,E1=n.unstable_NormalPriority,rt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tc(){return{controller:new x1,data:new Map,refCount:0}}function Ar(e){e.refCount--,e.refCount===0&&S1(E1,function(){e.controller.abort()})}var Or=null,Rc=0,hi=0,mi=null;function w1(e,t){if(Or===null){var a=Or=[];Rc=0,hi=_f(),mi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Rc++,t.then(Gm,Gm),t}function Gm(){if(--Rc===0&&Or!==null){mi!==null&&(mi.status="fulfilled");var e=Or;Or=null,hi=0,mi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function C1(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),i}var Qm=U.S;U.S=function(e,t){Nv=kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&w1(e,t),Qm!==null&&Qm(e,t)};var Sl=_(null);function Nc(){var e=Sl.current;return e!==null?e:Qe.pooledCache}function eo(e,t){t===null?W(Sl,Sl.current):W(Sl,t.pool)}function Xm(){var e=Nc();return e===null?null:{parent:rt._currentValue,pool:e}}var pi=Error(s(460)),Ac=Error(s(474)),to=Error(s(542)),no={then:function(){}};function Km(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Pm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Gn,Gn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fm(e),e;default:if(typeof t.status=="string")t.then(Gn,Gn);else{if(e=Qe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fm(e),e}throw wl=t,pi}}function El(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(wl=a,pi):a}}var wl=null;function Zm(){if(wl===null)throw Error(s(459));var e=wl;return wl=null,e}function Fm(e){if(e===pi||e===to)throw Error(s(483))}var vi=null,_r=0;function ao(e){var t=_r;return _r+=1,vi===null&&(vi=[]),Pm(vi,e,t)}function jr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lo(e,t){throw t.$$typeof===w?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $m(e){function t(L,D){if(e){var H=L.deletions;H===null?(L.deletions=[D],L.flags|=16):H.push(D)}}function a(L,D){if(!e)return null;for(;D!==null;)t(L,D),D=D.sibling;return null}function i(L){for(var D=new Map;L!==null;)L.key!==null?D.set(L.key,L):D.set(L.index,L),L=L.sibling;return D}function o(L,D){return L=Xn(L,D),L.index=0,L.sibling=null,L}function c(L,D,H){return L.index=H,e?(H=L.alternate,H!==null?(H=H.index,H<D?(L.flags|=67108866,D):H):(L.flags|=67108866,D)):(L.flags|=1048576,D)}function v(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function S(L,D,H,X){return D===null||D.tag!==6?(D=vc(H,L.mode,X),D.return=L,D):(D=o(D,H),D.return=L,D)}function A(L,D,H,X){var fe=H.type;return fe===E?G(L,D,H.props.children,X,H.key):D!==null&&(D.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===$&&El(fe)===D.type)?(D=o(D,H.props),jr(D,H),D.return=L,D):(D=$s(H.type,H.key,H.props,null,L.mode,X),jr(D,H),D.return=L,D)}function B(L,D,H,X){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=gc(H,L.mode,X),D.return=L,D):(D=o(D,H.children||[]),D.return=L,D)}function G(L,D,H,X,fe){return D===null||D.tag!==7?(D=gl(H,L.mode,X,fe),D.return=L,D):(D=o(D,H),D.return=L,D)}function P(L,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=vc(""+D,L.mode,H),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case C:return H=$s(D.type,D.key,D.props,null,L.mode,H),jr(H,D),H.return=L,H;case N:return D=gc(D,L.mode,H),D.return=L,D;case $:return D=El(D),P(L,D,H)}if(de(D)||ee(D))return D=gl(D,L.mode,H,null),D.return=L,D;if(typeof D.then=="function")return P(L,ao(D),H);if(D.$$typeof===M)return P(L,Ws(L,D),H);lo(L,D)}return null}function k(L,D,H,X){var fe=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return fe!==null?null:S(L,D,""+H,X);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case C:return H.key===fe?A(L,D,H,X):null;case N:return H.key===fe?B(L,D,H,X):null;case $:return H=El(H),k(L,D,H,X)}if(de(H)||ee(H))return fe!==null?null:G(L,D,H,X,null);if(typeof H.then=="function")return k(L,D,ao(H),X);if(H.$$typeof===M)return k(L,D,Ws(L,H),X);lo(L,H)}return null}function q(L,D,H,X,fe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return L=L.get(H)||null,S(D,L,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case C:return L=L.get(X.key===null?H:X.key)||null,A(D,L,X,fe);case N:return L=L.get(X.key===null?H:X.key)||null,B(D,L,X,fe);case $:return X=El(X),q(L,D,H,X,fe)}if(de(X)||ee(X))return L=L.get(H)||null,G(D,L,X,fe,null);if(typeof X.then=="function")return q(L,D,H,ao(X),fe);if(X.$$typeof===M)return q(L,D,H,Ws(D,X),fe);lo(D,X)}return null}function re(L,D,H,X){for(var fe=null,Le=null,se=D,xe=D=0,Ae=null;se!==null&&xe<H.length;xe++){se.index>xe?(Ae=se,se=null):Ae=se.sibling;var Ue=k(L,se,H[xe],X);if(Ue===null){se===null&&(se=Ae);break}e&&se&&Ue.alternate===null&&t(L,se),D=c(Ue,D,xe),Le===null?fe=Ue:Le.sibling=Ue,Le=Ue,se=Ae}if(xe===H.length)return a(L,se),Oe&&Kn(L,xe),fe;if(se===null){for(;xe<H.length;xe++)se=P(L,H[xe],X),se!==null&&(D=c(se,D,xe),Le===null?fe=se:Le.sibling=se,Le=se);return Oe&&Kn(L,xe),fe}for(se=i(se);xe<H.length;xe++)Ae=q(se,L,xe,H[xe],X),Ae!==null&&(e&&Ae.alternate!==null&&se.delete(Ae.key===null?xe:Ae.key),D=c(Ae,D,xe),Le===null?fe=Ae:Le.sibling=Ae,Le=Ae);return e&&se.forEach(function(Ga){return t(L,Ga)}),Oe&&Kn(L,xe),fe}function he(L,D,H,X){if(H==null)throw Error(s(151));for(var fe=null,Le=null,se=D,xe=D=0,Ae=null,Ue=H.next();se!==null&&!Ue.done;xe++,Ue=H.next()){se.index>xe?(Ae=se,se=null):Ae=se.sibling;var Ga=k(L,se,Ue.value,X);if(Ga===null){se===null&&(se=Ae);break}e&&se&&Ga.alternate===null&&t(L,se),D=c(Ga,D,xe),Le===null?fe=Ga:Le.sibling=Ga,Le=Ga,se=Ae}if(Ue.done)return a(L,se),Oe&&Kn(L,xe),fe;if(se===null){for(;!Ue.done;xe++,Ue=H.next())Ue=P(L,Ue.value,X),Ue!==null&&(D=c(Ue,D,xe),Le===null?fe=Ue:Le.sibling=Ue,Le=Ue);return Oe&&Kn(L,xe),fe}for(se=i(se);!Ue.done;xe++,Ue=H.next())Ue=q(se,L,xe,Ue.value,X),Ue!==null&&(e&&Ue.alternate!==null&&se.delete(Ue.key===null?xe:Ue.key),D=c(Ue,D,xe),Le===null?fe=Ue:Le.sibling=Ue,Le=Ue);return e&&se.forEach(function(LE){return t(L,LE)}),Oe&&Kn(L,xe),fe}function Ge(L,D,H,X){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case C:e:{for(var fe=H.key;D!==null;){if(D.key===fe){if(fe=H.type,fe===E){if(D.tag===7){a(L,D.sibling),X=o(D,H.props.children),X.return=L,L=X;break e}}else if(D.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===$&&El(fe)===D.type){a(L,D.sibling),X=o(D,H.props),jr(X,H),X.return=L,L=X;break e}a(L,D);break}else t(L,D);D=D.sibling}H.type===E?(X=gl(H.props.children,L.mode,X,H.key),X.return=L,L=X):(X=$s(H.type,H.key,H.props,null,L.mode,X),jr(X,H),X.return=L,L=X)}return v(L);case N:e:{for(fe=H.key;D!==null;){if(D.key===fe)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){a(L,D.sibling),X=o(D,H.children||[]),X.return=L,L=X;break e}else{a(L,D);break}else t(L,D);D=D.sibling}X=gc(H,L.mode,X),X.return=L,L=X}return v(L);case $:return H=El(H),Ge(L,D,H,X)}if(de(H))return re(L,D,H,X);if(ee(H)){if(fe=ee(H),typeof fe!="function")throw Error(s(150));return H=fe.call(H),he(L,D,H,X)}if(typeof H.then=="function")return Ge(L,D,ao(H),X);if(H.$$typeof===M)return Ge(L,D,Ws(L,H),X);lo(L,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(a(L,D.sibling),X=o(D,H),X.return=L,L=X):(a(L,D),X=vc(H,L.mode,X),X.return=L,L=X),v(L)):a(L,D)}return function(L,D,H,X){try{_r=0;var fe=Ge(L,D,H,X);return vi=null,fe}catch(se){if(se===pi||se===to)throw se;var Le=Gt(29,se,null,L.mode);return Le.lanes=X,Le.return=L,Le}finally{}}}var Cl=$m(!0),Im=$m(!1),Ra=!1;function Oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(He&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=Fs(e),zm(e,null,a),t}return Zs(e,i,t,a),Fs(e)}function Mr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Yh(e,a)}}function jc(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=v:c=c.next=v,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Mc=!1;function Dr(){if(Mc){var e=mi;if(e!==null)throw e}}function zr(e,t,a,i){Mc=!1;var o=e.updateQueue;Ra=!1;var c=o.firstBaseUpdate,v=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var A=S,B=A.next;A.next=null,v===null?c=B:v.next=B,v=A;var G=e.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==v&&(S===null?G.firstBaseUpdate=B:S.next=B,G.lastBaseUpdate=A))}if(c!==null){var P=o.baseState;v=0,G=B=A=null,S=c;do{var k=S.lane&-536870913,q=k!==S.lane;if(q?(Ne&k)===k:(i&k)===k){k!==0&&k===hi&&(Mc=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var re=e,he=S;k=t;var Ge=a;switch(he.tag){case 1:if(re=he.payload,typeof re=="function"){P=re.call(Ge,P,k);break e}P=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=he.payload,k=typeof re=="function"?re.call(Ge,P,k):re,k==null)break e;P=b({},P,k);break e;case 2:Ra=!0}}k=S.callback,k!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[k]:q.push(k))}else q={lane:k,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(B=G=q,A=P):G=G.next=q,v|=k;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;q=S,S=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);G===null&&(A=P),o.baseState=A,o.firstBaseUpdate=B,o.lastBaseUpdate=G,c===null&&(o.shared.lanes=0),Da|=v,e.lanes=v,e.memoizedState=P}}function Jm(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Wm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Jm(a[e],t)}var gi=_(null),io=_(0);function ep(e,t){e=aa,W(io,e),W(gi,t),aa=e|t.baseLanes}function Dc(){W(io,aa),W(gi,gi.current)}function zc(){aa=io.current,K(gi),K(io)}var Qt=_(null),on=null;function Oa(e){var t=e.alternate;W(at,at.current&1),W(Qt,e),on===null&&(t===null||gi.current!==null||t.memoizedState!==null)&&(on=e)}function Lc(e){W(at,at.current),W(Qt,e),on===null&&(on=e)}function tp(e){e.tag===22?(W(at,at.current),W(Qt,e),on===null&&(on=e)):_a()}function _a(){W(at,at.current),W(Qt,Qt.current)}function Xt(e){K(Qt),on===e&&(on=null),K(at)}var at=_(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Yf(a)||Gf(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fn=0,ye=null,Ve=null,st=null,so=!1,yi=!1,Tl=!1,oo=0,Lr=0,bi=null,T1=0;function et(){throw Error(s(321))}function Uc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Yt(e[a],t[a]))return!1;return!0}function Hc(e,t,a,i,o,c){return Fn=c,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Bp:Jc,Tl=!1,c=a(i,o),Tl=!1,yi&&(c=ap(t,a,i,o)),np(e),c}function np(e){U.H=Br;var t=Ve!==null&&Ve.next!==null;if(Fn=0,st=Ve=ye=null,so=!1,Lr=0,bi=null,t)throw Error(s(300));e===null||ot||(e=e.dependencies,e!==null&&Js(e)&&(ot=!0))}function ap(e,t,a,i){ye=e;var o=0;do{if(yi&&(bi=null),Lr=0,yi=!1,25<=o)throw Error(s(301));if(o+=1,st=Ve=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=kp,c=t(a,i)}while(yi);return c}function R1(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Ur(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(ye.flags|=1024),t}function Bc(){var e=oo!==0;return oo=0,e}function kc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function qc(e){if(so){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}so=!1}Fn=0,st=Ve=ye=null,yi=!1,Lr=oo=0,bi=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?ye.memoizedState=st=e:st=st.next=e,st}function lt(){if(Ve===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=st===null?ye.memoizedState:st.next;if(t!==null)st=t,Ve=e;else{if(e===null)throw ye.alternate===null?Error(s(467)):Error(s(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},st===null?ye.memoizedState=st=e:st=st.next=e}return st}function uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ur(e){var t=Lr;return Lr+=1,bi===null&&(bi=[]),e=Pm(bi,e,t),t=ye,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Bp:Jc),e}function co(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ur(e);if(e.$$typeof===M)return yt(e)}throw Error(s(438,String(e)))}function Vc(e){var t=null,a=ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=ye.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=uo(),ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=ie;return t.index++,a}function $n(e,t){return typeof t=="function"?t(e):t}function fo(e){var t=lt();return Yc(t,Ve,e)}function Yc(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var v=o.next;o.next=c.next,c.next=v}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var S=v=null,A=null,B=t,G=!1;do{var P=B.lane&-536870913;if(P!==B.lane?(Ne&P)===P:(Fn&P)===P){var k=B.revertLane;if(k===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),P===hi&&(G=!0);else if((Fn&k)===k){B=B.next,k===hi&&(G=!0);continue}else P={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(S=A=P,v=c):A=A.next=P,ye.lanes|=k,Da|=k;P=B.action,Tl&&a(c,P),c=B.hasEagerState?B.eagerState:a(c,P)}else k={lane:P,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(S=A=k,v=c):A=A.next=k,ye.lanes|=P,Da|=P;B=B.next}while(B!==null&&B!==t);if(A===null?v=c:A.next=S,!Yt(c,e.memoizedState)&&(ot=!0,G&&(a=mi,a!==null)))throw a;e.memoizedState=c,e.baseState=v,e.baseQueue=A,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Gc(e){var t=lt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var v=o=o.next;do c=e(c,v.action),v=v.next;while(v!==o);Yt(c,t.memoizedState)||(ot=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function lp(e,t,a){var i=ye,o=lt(),c=Oe;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var v=!Yt((Ve||o).memoizedState,a);if(v&&(o.memoizedState=a,ot=!0),o=o.queue,Kc(sp.bind(null,i,o,e),[e]),o.getSnapshot!==t||v||st!==null&&st.memoizedState.tag&1){if(i.flags|=2048,xi(9,{destroy:void 0},rp.bind(null,i,o,a,t),null),Qe===null)throw Error(s(349));c||(Fn&127)!==0||ip(i,t,a)}return a}function ip(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ye.updateQueue,t===null?(t=uo(),ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function rp(e,t,a,i){t.value=a,t.getSnapshot=i,op(t)&&up(e)}function sp(e,t,a){return a(function(){op(t)&&up(e)})}function op(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Yt(e,a)}catch{return!0}}function up(e){var t=vl(e,2);t!==null&&Ut(t,e,2)}function Qc(e){var t=Rt();if(typeof e=="function"){var a=e;if(e=a(),Tl){ba(!0);try{a()}finally{ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:e},t}function cp(e,t,a,i){return e.baseState=a,Yc(e,Ve,typeof i=="function"?i:$n)}function N1(e,t,a,i,o){if(po(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){c.listeners.push(v)}};U.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,fp(t,c)):(c.next=a.next,t.pending=a.next=c)}}function fp(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=U.T,v={};U.T=v;try{var S=a(o,i),A=U.S;A!==null&&A(v,S),dp(e,t,S)}catch(B){Xc(e,t,B)}finally{c!==null&&v.types!==null&&(c.types=v.types),U.T=c}}else try{c=a(o,i),dp(e,t,c)}catch(B){Xc(e,t,B)}}function dp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){hp(e,t,i)},function(i){return Xc(e,t,i)}):hp(e,t,a)}function hp(e,t,a){t.status="fulfilled",t.value=a,mp(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fp(e,a)))}function Xc(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,mp(t),t=t.next;while(t!==i)}e.action=null}function mp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pp(e,t){return t}function vp(e,t){if(Oe){var a=Qe.formState;if(a!==null){e:{var i=ye;if(Oe){if(Pe){t:{for(var o=Pe,c=sn;o.nodeType!==8;){if(!c){o=null;break t}if(o=un(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Pe=un(o.nextSibling),i=o.data==="F!";break e}}Ca(i)}i=!1}i&&(t=a[0])}}return a=Rt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pp,lastRenderedState:t},a.queue=i,a=Lp.bind(null,ye,i),i.dispatch=a,i=Qc(!1),c=Ic.bind(null,ye,!1,i.queue),i=Rt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,a=N1.bind(null,ye,o,c,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function gp(e){var t=lt();return yp(t,Ve,e)}function yp(e,t,a){if(t=Yc(e,t,pp)[0],e=fo($n)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ur(t)}catch(v){throw v===pi?to:v}else i=t;t=lt();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ye.flags|=2048,xi(9,{destroy:void 0},A1.bind(null,o,a),null)),[i,c,e]}function A1(e,t){e.action=t}function bp(e){var t=lt(),a=Ve;if(a!==null)return yp(t,a,e);lt(),t=t.memoizedState,a=lt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function xi(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=ye.updateQueue,t===null&&(t=uo(),ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function xp(){return lt().memoizedState}function ho(e,t,a,i){var o=Rt();ye.flags|=e,o.memoizedState=xi(1|t,{destroy:void 0},a,i===void 0?null:i)}function mo(e,t,a,i){var o=lt();i=i===void 0?null:i;var c=o.memoizedState.inst;Ve!==null&&i!==null&&Uc(i,Ve.memoizedState.deps)?o.memoizedState=xi(t,c,a,i):(ye.flags|=e,o.memoizedState=xi(1|t,c,a,i))}function Sp(e,t){ho(8390656,8,e,t)}function Kc(e,t){mo(2048,8,e,t)}function O1(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=uo(),ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ep(e){var t=lt().memoizedState;return O1({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function wp(e,t){return mo(4,2,e,t)}function Cp(e,t){return mo(4,4,e,t)}function Tp(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rp(e,t,a){a=a!=null?a.concat([e]):null,mo(4,4,Tp.bind(null,t,e),a)}function Pc(){}function Np(e,t){var a=lt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Uc(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Ap(e,t){var a=lt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Uc(t,i[1]))return i[0];if(i=e(),Tl){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[i,t],i}function Zc(e,t,a){return a===void 0||(Fn&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Ov(),ye.lanes|=e,Da|=e,a)}function Op(e,t,a,i){return Yt(a,t)?a:gi.current!==null?(e=Zc(e,a,i),Yt(e,t)||(ot=!0),e):(Fn&42)===0||(Fn&1073741824)!==0&&(Ne&261930)===0?(ot=!0,e.memoizedState=a):(e=Ov(),ye.lanes|=e,Da|=e,t)}function _p(e,t,a,i,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var v=U.T,S={};U.T=S,Ic(e,!1,t,a);try{var A=o(),B=U.S;if(B!==null&&B(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=C1(A,i);Hr(e,t,G,Zt(e))}else Hr(e,t,i,Zt(e))}catch(P){Hr(e,t,{then:function(){},status:"rejected",reason:P},Zt())}finally{Z.p=c,v!==null&&S.types!==null&&(v.types=S.types),U.T=v}}function _1(){}function Fc(e,t,a,i){if(e.tag!==5)throw Error(s(476));var o=jp(e).queue;_p(e,o,t,Q,a===null?_1:function(){return Mp(e),a(i)})}function jp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:Q},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mp(e){var t=jp(e);t.next===null&&(t=e.alternate.memoizedState),Hr(e,t.next.queue,{},Zt())}function $c(){return yt(es)}function Dp(){return lt().memoizedState}function zp(){return lt().memoizedState}function j1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Zt();e=Na(a);var i=Aa(t,e,a);i!==null&&(Ut(i,t,a),Mr(i,t,a)),t={cache:Tc()},e.payload=t;return}t=t.return}}function M1(e,t,a){var i=Zt();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},po(e)?Up(t,a):(a=mc(e,t,a,i),a!==null&&(Ut(a,e,i),Hp(a,t,i)))}function Lp(e,t,a){var i=Zt();Hr(e,t,a,i)}function Hr(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(po(e))Up(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var v=t.lastRenderedState,S=c(v,a);if(o.hasEagerState=!0,o.eagerState=S,Yt(S,v))return Zs(e,t,o,0),Qe===null&&Ps(),!1}catch{}finally{}if(a=mc(e,t,o,i),a!==null)return Ut(a,e,i),Hp(a,t,i),!0}return!1}function Ic(e,t,a,i){if(i={lane:2,revertLane:_f(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},po(e)){if(t)throw Error(s(479))}else t=mc(e,a,i,2),t!==null&&Ut(t,e,2)}function po(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Up(e,t){yi=so=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Hp(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Yh(e,a)}}var Br={readContext:yt,use:co,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Br.useEffectEvent=et;var Bp={readContext:yt,use:co,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Sp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ho(4194308,4,Tp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ho(4194308,4,e,t)},useInsertionEffect:function(e,t){ho(4,2,e,t)},useMemo:function(e,t){var a=Rt();t=t===void 0?null:t;var i=e();if(Tl){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Rt();if(a!==void 0){var o=a(t);if(Tl){ba(!0);try{a(t)}finally{ba(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=M1.bind(null,ye,e),[i.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Qc(e);var t=e.queue,a=Lp.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Pc,useDeferredValue:function(e,t){var a=Rt();return Zc(a,e,t)},useTransition:function(){var e=Qc(!1);return e=_p.bind(null,ye,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=ye,o=Rt();if(Oe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Qe===null)throw Error(s(349));(Ne&127)!==0||ip(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Sp(sp.bind(null,i,c,e),[e]),i.flags|=2048,xi(9,{destroy:void 0},rp.bind(null,i,c,a,t),null),a},useId:function(){var e=Rt(),t=Qe.identifierPrefix;if(Oe){var a=Nn,i=Rn;a=(i&~(1<<32-Vt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=oo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=T1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$c,useFormState:vp,useActionState:vp,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ic.bind(null,ye,!0,a),a.dispatch=t,[e,t]},useMemoCache:Vc,useCacheRefresh:function(){return Rt().memoizedState=j1.bind(null,ye)},useEffectEvent:function(e){var t=Rt(),a={impl:e};return t.memoizedState=a,function(){if((He&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Jc={readContext:yt,use:co,useCallback:Np,useContext:yt,useEffect:Kc,useImperativeHandle:Rp,useInsertionEffect:wp,useLayoutEffect:Cp,useMemo:Ap,useReducer:fo,useRef:xp,useState:function(){return fo($n)},useDebugValue:Pc,useDeferredValue:function(e,t){var a=lt();return Op(a,Ve.memoizedState,e,t)},useTransition:function(){var e=fo($n)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Ur(e),t]},useSyncExternalStore:lp,useId:Dp,useHostTransitionStatus:$c,useFormState:gp,useActionState:gp,useOptimistic:function(e,t){var a=lt();return cp(a,Ve,e,t)},useMemoCache:Vc,useCacheRefresh:zp};Jc.useEffectEvent=Ep;var kp={readContext:yt,use:co,useCallback:Np,useContext:yt,useEffect:Kc,useImperativeHandle:Rp,useInsertionEffect:wp,useLayoutEffect:Cp,useMemo:Ap,useReducer:Gc,useRef:xp,useState:function(){return Gc($n)},useDebugValue:Pc,useDeferredValue:function(e,t){var a=lt();return Ve===null?Zc(a,e,t):Op(a,Ve.memoizedState,e,t)},useTransition:function(){var e=Gc($n)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Ur(e),t]},useSyncExternalStore:lp,useId:Dp,useHostTransitionStatus:$c,useFormState:bp,useActionState:bp,useOptimistic:function(e,t){var a=lt();return Ve!==null?cp(a,Ve,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Vc,useCacheRefresh:zp};kp.useEffectEvent=Ep;function Wc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ef={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=Zt(),o=Na(i);o.payload=t,a!=null&&(o.callback=a),t=Aa(e,o,i),t!==null&&(Ut(t,e,i),Mr(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Zt(),o=Na(i);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Aa(e,o,i),t!==null&&(Ut(t,e,i),Mr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Zt(),i=Na(a);i.tag=2,t!=null&&(i.callback=t),t=Aa(e,i,a),t!==null&&(Ut(t,e,a),Mr(t,e,a))}};function qp(e,t,a,i,o,c,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,v):t.prototype&&t.prototype.isPureReactComponent?!Cr(a,i)||!Cr(o,c):!0}function Vp(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&ef.enqueueReplaceState(t,t.state,null)}function Rl(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Yp(e){Ks(e)}function Gp(e){console.error(e)}function Qp(e){Ks(e)}function vo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Xp(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function tf(e,t,a){return a=Na(a),a.tag=3,a.payload={element:null},a.callback=function(){vo(e,t)},a}function Kp(e){return e=Na(e),e.tag=3,e}function Pp(e,t,a,i){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){Xp(t,a,i)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){Xp(t,a,i),typeof o!="function"&&(za===null?za=new Set([this]):za.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function D1(e,t,a,i,o){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&di(t,a,o,!0),a=Qt.current,a!==null){switch(a.tag){case 31:case 13:return on===null?Ao():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,i===no?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Nf(e,i,o)),!1;case 22:return a.flags|=65536,i===no?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Nf(e,i,o)),!1}throw Error(s(435,a.tag))}return Nf(e,i,o),Ao(),!1}if(Oe)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==xc&&(e=Error(s(422),{cause:i}),Nr(an(e,a)))):(i!==xc&&(t=Error(s(423),{cause:i}),Nr(an(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=an(i,a),o=tf(e.stateNode,i,o),jc(e,o),tt!==4&&(tt=2)),!1;var c=Error(s(520),{cause:i});if(c=an(c,a),Kr===null?Kr=[c]:Kr.push(c),tt!==4&&(tt=2),t===null)return!0;i=an(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=tf(a.stateNode,i,e),jc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(za===null||!za.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Kp(o),Pp(o,e,a,i),jc(a,o),!1}a=a.return}while(a!==null);return!1}var nf=Error(s(461)),ot=!1;function bt(e,t,a,i){t.child=e===null?Im(t,null,a,i):Cl(t,e.child,a,i)}function Zp(e,t,a,i,o){a=a.render;var c=t.ref;if("ref"in i){var v={};for(var S in i)S!=="ref"&&(v[S]=i[S])}else v=i;return xl(t),i=Hc(e,t,a,v,c,o),S=Bc(),e!==null&&!ot?(kc(e,t,o),In(e,t,o)):(Oe&&S&&yc(t),t.flags|=1,bt(e,t,i,o),t.child)}function Fp(e,t,a,i,o){if(e===null){var c=a.type;return typeof c=="function"&&!pc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,$p(e,t,c,i,o)):(e=$s(a.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ff(e,o)){var v=c.memoizedProps;if(a=a.compare,a=a!==null?a:Cr,a(v,i)&&e.ref===t.ref)return In(e,t,o)}return t.flags|=1,e=Xn(c,i),e.ref=t.ref,e.return=t,t.child=e}function $p(e,t,a,i,o){if(e!==null){var c=e.memoizedProps;if(Cr(c,i)&&e.ref===t.ref)if(ot=!1,t.pendingProps=i=c,ff(e,o))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,In(e,t,o)}return af(e,t,a,i,o)}function Ip(e,t,a,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Jp(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&eo(t,c!==null?c.cachePool:null),c!==null?ep(t,c):Dc(),tp(t);else return i=t.lanes=536870912,Jp(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(eo(t,c.cachePool),ep(t,c),_a(),t.memoizedState=null):(e!==null&&eo(t,null),Dc(),_a());return bt(e,t,o,a),t.child}function kr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jp(e,t,a,i,o){var c=Nc();return c=c===null?null:{parent:rt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&eo(t,null),Dc(),tp(t),e!==null&&di(e,t,i,!0),t.childLanes=o,null}function go(e,t){return t=bo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wp(e,t,a){return Cl(t,e.child,null,a),e=go(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function z1(e,t,a){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(i.mode==="hidden")return e=go(t,i),t.lanes=536870912,kr(null,e);if(Lc(t),(e=Pe)?(e=fg(e,sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Rn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=Um(e),a.return=t,t.child=a,gt=t,Pe=null)):e=null,e===null)throw Ca(t);return t.lanes=536870912,null}return go(t,i)}var c=e.memoizedState;if(c!==null){var v=c.dehydrated;if(Lc(t),o)if(t.flags&256)t.flags&=-257,t=Wp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ot||di(e,t,a,!1),o=(a&e.childLanes)!==0,ot||o){if(i=Qe,i!==null&&(v=Gh(i,a),v!==0&&v!==c.retryLane))throw c.retryLane=v,vl(e,v),Ut(i,e,v),nf;Ao(),t=Wp(e,t,a)}else e=c.treeContext,Pe=un(v.nextSibling),gt=t,Oe=!0,wa=null,sn=!1,e!==null&&km(t,e),t=go(t,i),t.flags|=4096;return t}return e=Xn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function af(e,t,a,i,o){return xl(t),a=Hc(e,t,a,i,void 0,o),i=Bc(),e!==null&&!ot?(kc(e,t,o),In(e,t,o)):(Oe&&i&&yc(t),t.flags|=1,bt(e,t,a,o),t.child)}function ev(e,t,a,i,o,c){return xl(t),t.updateQueue=null,a=ap(t,i,a,o),np(e),i=Bc(),e!==null&&!ot?(kc(e,t,c),In(e,t,c)):(Oe&&i&&yc(t),t.flags|=1,bt(e,t,a,c),t.child)}function tv(e,t,a,i,o){if(xl(t),t.stateNode===null){var c=oi,v=a.contextType;typeof v=="object"&&v!==null&&(c=yt(v)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ef,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Oc(t),v=a.contextType,c.context=typeof v=="object"&&v!==null?yt(v):oi,c.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(Wc(t,a,v,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(v=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),v!==c.state&&ef.enqueueReplaceState(c,c.state,null),zr(t,i,c,o),Dr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,A=Rl(a,S);c.props=A;var B=c.context,G=a.contextType;v=oi,typeof G=="object"&&G!==null&&(v=yt(G));var P=a.getDerivedStateFromProps;G=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||B!==v)&&Vp(t,c,i,v),Ra=!1;var k=t.memoizedState;c.state=k,zr(t,i,c,o),Dr(),B=t.memoizedState,S||k!==B||Ra?(typeof P=="function"&&(Wc(t,a,P,i),B=t.memoizedState),(A=Ra||qp(t,a,A,i,k,B,v))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=B),c.props=i,c.state=B,c.context=v,i=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,_c(e,t),v=t.memoizedProps,G=Rl(a,v),c.props=G,P=t.pendingProps,k=c.context,B=a.contextType,A=oi,typeof B=="object"&&B!==null&&(A=yt(B)),S=a.getDerivedStateFromProps,(B=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v!==P||k!==A)&&Vp(t,c,i,A),Ra=!1,k=t.memoizedState,c.state=k,zr(t,i,c,o),Dr();var q=t.memoizedState;v!==P||k!==q||Ra||e!==null&&e.dependencies!==null&&Js(e.dependencies)?(typeof S=="function"&&(Wc(t,a,S,i),q=t.memoizedState),(G=Ra||qp(t,a,G,i,k,q,A)||e!==null&&e.dependencies!==null&&Js(e.dependencies))?(B||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,q,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,q,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),c.props=i,c.state=q,c.context=A,i=G):(typeof c.componentDidUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,yo(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Cl(t,e.child,null,o),t.child=Cl(t,null,a,o)):bt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=In(e,t,o),e}function nv(e,t,a,i){return yl(),t.flags|=256,bt(e,t,a,i),t.child}var lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rf(e){return{baseLanes:e,cachePool:Xm()}}function sf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Pt),e}function av(e,t,a){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,v;if((v=c)||(v=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),v&&(o=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?Oa(t):_a(),(e=Pe)?(e=fg(e,sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Rn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=Um(e),a.return=t,t.child=a,gt=t,Pe=null)):e=null,e===null)throw Ca(t);return Gf(e)?t.lanes=32:t.lanes=536870912,null}var S=i.children;return i=i.fallback,o?(_a(),o=t.mode,S=bo({mode:"hidden",children:S},o),i=gl(i,o,a,null),S.return=t,i.return=t,S.sibling=i,t.child=S,i=t.child,i.memoizedState=rf(a),i.childLanes=sf(e,v,a),t.memoizedState=lf,kr(null,i)):(Oa(t),of(t,S))}var A=e.memoizedState;if(A!==null&&(S=A.dehydrated,S!==null)){if(c)t.flags&256?(Oa(t),t.flags&=-257,t=uf(e,t,a)):t.memoizedState!==null?(_a(),t.child=e.child,t.flags|=128,t=null):(_a(),S=i.fallback,o=t.mode,i=bo({mode:"visible",children:i.children},o),S=gl(S,o,a,null),S.flags|=2,i.return=t,S.return=t,i.sibling=S,t.child=i,Cl(t,e.child,null,a),i=t.child,i.memoizedState=rf(a),i.childLanes=sf(e,v,a),t.memoizedState=lf,t=kr(null,i));else if(Oa(t),Gf(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var B=v.dgst;v=B,i=Error(s(419)),i.stack="",i.digest=v,Nr({value:i,source:null,stack:null}),t=uf(e,t,a)}else if(ot||di(e,t,a,!1),v=(a&e.childLanes)!==0,ot||v){if(v=Qe,v!==null&&(i=Gh(v,a),i!==0&&i!==A.retryLane))throw A.retryLane=i,vl(e,i),Ut(v,e,i),nf;Yf(S)||Ao(),t=uf(e,t,a)}else Yf(S)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Pe=un(S.nextSibling),gt=t,Oe=!0,wa=null,sn=!1,e!==null&&km(t,e),t=of(t,i.children),t.flags|=4096);return t}return o?(_a(),S=i.fallback,o=t.mode,A=e.child,B=A.sibling,i=Xn(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,B!==null?S=Xn(B,S):(S=gl(S,o,a,null),S.flags|=2),S.return=t,i.return=t,i.sibling=S,t.child=i,kr(null,i),i=t.child,S=e.child.memoizedState,S===null?S=rf(a):(o=S.cachePool,o!==null?(A=rt._currentValue,o=o.parent!==A?{parent:A,pool:A}:o):o=Xm(),S={baseLanes:S.baseLanes|a,cachePool:o}),i.memoizedState=S,i.childLanes=sf(e,v,a),t.memoizedState=lf,kr(e.child,i)):(Oa(t),a=e.child,e=a.sibling,a=Xn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=a,t.memoizedState=null,a)}function of(e,t){return t=bo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function bo(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function uf(e,t,a){return Cl(t,e.child,null,a),e=of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lv(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),wc(e.return,t,a)}function cf(e,t,a,i,o,c){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o,treeForkCount:c}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=i,v.tail=a,v.tailMode=o,v.treeForkCount=c)}function iv(e,t,a){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var v=at.current,S=(v&2)!==0;if(S?(v=v&1|2,t.flags|=128):v&=1,W(at,v),bt(e,t,i,a),i=Oe?Rr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lv(e,a,t);else if(e.tag===19)lv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&ro(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),cf(t,!1,o,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ro(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}cf(t,!0,a,null,c,i);break;case"together":cf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function In(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Da|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(di(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=Xn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Xn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ff(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Js(e)))}function L1(e,t,a){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),Ta(t,rt,e.memoizedState.cache),yl();break;case 27:case 5:De(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Lc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Oa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?av(e,t,a):(Oa(t),e=In(e,t,a),e!==null?e.sibling:null);Oa(t);break;case 19:var o=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(di(e,t,a,!1),i=(a&t.childLanes)!==0),o){if(i)return iv(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),W(at,at.current),i)break;return null;case 22:return t.lanes=0,Ip(e,t,a,t.pendingProps);case 24:Ta(t,rt,e.memoizedState.cache)}return In(e,t,a)}function rv(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!ff(e,a)&&(t.flags&128)===0)return ot=!1,L1(e,t,a);ot=(e.flags&131072)!==0}else ot=!1,Oe&&(t.flags&1048576)!==0&&Bm(t,Rr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=El(t.elementType),t.type=e,typeof e=="function")pc(e)?(i=Rl(e,i),t.tag=1,t=tv(null,t,e,i,a)):(t.tag=0,t=af(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===z){t.tag=11,t=Zp(null,t,e,i,a);break e}else if(o===Y){t.tag=14,t=Fp(null,t,e,i,a);break e}}throw t=ue(e)||e,Error(s(306,t,""))}}return t;case 0:return af(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Rl(i,t.pendingProps),tv(e,t,i,o,a);case 3:e:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,_c(e,t),zr(t,i,null,a);var v=t.memoizedState;if(i=v.cache,Ta(t,rt,i),i!==c.cache&&Cc(t,[rt],a,!0),Dr(),i=v.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=nv(e,t,i,a);break e}else if(i!==o){o=an(Error(s(424)),t),Nr(o),t=nv(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Pe=un(e.firstChild),gt=t,Oe=!0,wa=null,sn=!0,a=Im(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(yl(),i===o){t=In(e,t,a);break e}bt(e,t,i,a)}t=t.child}return t;case 26:return yo(e,t),e===null?(a=gg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Oe||(a=t.type,e=t.pendingProps,i=Lo(ve.current).createElement(a),i[vt]=t,i[_t]=e,xt(i,a,e),ht(i),t.stateNode=i):t.memoizedState=gg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return De(t),e===null&&Oe&&(i=t.stateNode=mg(t.type,t.pendingProps,ve.current),gt=t,sn=!0,o=Pe,Ba(t.type)?(Qf=o,Pe=un(i.firstChild)):Pe=o),bt(e,t,t.pendingProps.children,a),yo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=i=Pe)&&(i=fE(i,t.type,t.pendingProps,sn),i!==null?(t.stateNode=i,gt=t,Pe=un(i.firstChild),sn=!1,o=!0):o=!1),o||Ca(t)),De(t),o=t.type,c=t.pendingProps,v=e!==null?e.memoizedProps:null,i=c.children,kf(o,c)?i=null:v!==null&&kf(o,v)&&(t.flags|=32),t.memoizedState!==null&&(o=Hc(e,t,R1,null,null,a),es._currentValue=o),yo(e,t),bt(e,t,i,a),t.child;case 6:return e===null&&Oe&&((e=a=Pe)&&(a=dE(a,t.pendingProps,sn),a!==null?(t.stateNode=a,gt=t,Pe=null,e=!0):e=!1),e||Ca(t)),null;case 13:return av(e,t,a);case 4:return be(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Cl(t,null,i,a):bt(e,t,i,a),t.child;case 11:return Zp(e,t,t.type,t.pendingProps,a);case 7:return bt(e,t,t.pendingProps,a),t.child;case 8:return bt(e,t,t.pendingProps.children,a),t.child;case 12:return bt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Ta(t,t.type,i.value),bt(e,t,i.children,a),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,xl(t),o=yt(o),i=i(o),t.flags|=1,bt(e,t,i,a),t.child;case 14:return Fp(e,t,t.type,t.pendingProps,a);case 15:return $p(e,t,t.type,t.pendingProps,a);case 19:return iv(e,t,a);case 31:return z1(e,t,a);case 22:return Ip(e,t,a,t.pendingProps);case 24:return xl(t),i=yt(rt),e===null?(o=Nc(),o===null&&(o=Qe,c=Tc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:i,cache:o},Oc(t),Ta(t,rt,o)):((e.lanes&a)!==0&&(_c(e,t),zr(t,null,null,a),Dr()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ta(t,rt,i)):(i=c.cache,Ta(t,rt,i),i!==o.cache&&Cc(t,[rt],a,!0))),bt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Jn(e){e.flags|=4}function df(e,t,a,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Dv())e.flags|=8192;else throw wl=no,Ac}else e.flags&=-16777217}function sv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Eg(t))if(Dv())e.flags|=8192;else throw wl=no,Ac}function xo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qh():536870912,e.lanes|=t,Ci|=t)}function qr(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function U1(e,t,a){var i=t.pendingProps;switch(bc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Zn(rt),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(fi(t)?Jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Sc())),Ze(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Jn(t),c!==null?(Ze(t),sv(t,c)):(Ze(t),df(t,o,null,i,a))):c?c!==e.memoizedState?(Jn(t),Ze(t),sv(t,c)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Jn(t),Ze(t),df(t,o,e,i,a)),null;case 27:if(je(t),a=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Jn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ze(t),null}e=le.current,fi(t)?qm(t):(e=mg(o,i,a),t.stateNode=e,Jn(t))}return Ze(t),null;case 5:if(je(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Jn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ze(t),null}if(c=le.current,fi(t))qm(t);else{var v=Lo(ve.current);switch(c){case 1:c=v.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=v.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=v.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=v.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=v.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?v.createElement("select",{is:i.is}):v.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?v.createElement(o,{is:i.is}):v.createElement(o)}}c[vt]=t,c[_t]=i;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)c.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=c;e:switch(xt(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Jn(t)}}return Ze(t),df(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Jn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,fi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=gt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[vt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||ag(e.nodeValue,a)),e||Ca(t,!0)}else e=Lo(e).createTextNode(i),e[vt]=t,t.stateNode=e}return Ze(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=fi(t),a!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[vt]=t}else yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else a=Sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[vt]=t}else yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else o=Sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),xo(t,t.updateQueue),Ze(t),null);case 4:return we(),e===null&&zf(t.stateNode.containerInfo),Ze(t),null;case 10:return Zn(t.type),Ze(t),null;case 19:if(K(at),i=t.memoizedState,i===null)return Ze(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)qr(i,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=ro(e),c!==null){for(t.flags|=128,qr(i,!1),e=c.updateQueue,t.updateQueue=e,xo(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Lm(a,e),a=a.sibling;return W(at,at.current&1|2),Oe&&Kn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&kt()>To&&(t.flags|=128,o=!0,qr(i,!1),t.lanes=4194304)}else{if(!o)if(e=ro(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,xo(t,e),qr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Oe)return Ze(t),null}else 2*kt()-i.renderingStartTime>To&&a!==536870912&&(t.flags|=128,o=!0,qr(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=kt(),e.sibling=null,a=at.current,W(at,o?a&1|2:a&1),Oe&&Kn(t,i.treeForkCount),e):(Ze(t),null);case 22:case 23:return Xt(t),zc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),a=t.updateQueue,a!==null&&xo(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&K(Sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zn(rt),Ze(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function H1(e,t){switch(bc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(rt),we(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return je(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(s(340));yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(at),null;case 4:return we(),null;case 10:return Zn(t.type),null;case 22:case 23:return Xt(t),zc(),e!==null&&K(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zn(rt),null;case 25:return null;default:return null}}function ov(e,t){switch(bc(t),t.tag){case 3:Zn(rt),we();break;case 26:case 27:case 5:je(t);break;case 4:we();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:K(at);break;case 10:Zn(t.type);break;case 22:case 23:Xt(t),zc(),e!==null&&K(Sl);break;case 24:Zn(rt)}}function Vr(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){i=void 0;var c=a.create,v=a.inst;i=c(),v.destroy=i}a=a.next}while(a!==o)}}catch(S){qe(t,t.return,S)}}function ja(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var v=i.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,o=t;var A=a,B=S;try{B()}catch(G){qe(o,A,G)}}}i=i.next}while(i!==c)}}catch(G){qe(t,t.return,G)}}function uv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Wm(t,a)}catch(i){qe(e,e.return,i)}}}function cv(e,t,a){a.props=Rl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){qe(e,t,i)}}function Yr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(o){qe(e,t,o)}}function An(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){qe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){qe(e,t,o)}else a.current=null}function fv(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(o){qe(e,e.return,o)}}function hf(e,t,a){try{var i=e.stateNode;iE(i,e.type,a,t),i[_t]=t}catch(o){qe(e,e.return,o)}}function dv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ba(e.type)||e.tag===4}function mf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ba(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pf(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Gn));else if(i!==4&&(i===27&&Ba(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(pf(e,t,a),e=e.sibling;e!==null;)pf(e,t,a),e=e.sibling}function So(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Ba(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(So(e,t,a),e=e.sibling;e!==null;)So(e,t,a),e=e.sibling}function hv(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);xt(t,i,a),t[vt]=e,t[_t]=a}catch(c){qe(e,e.return,c)}}var Wn=!1,ut=!1,vf=!1,mv=typeof WeakSet=="function"?WeakSet:Set,mt=null;function B1(e,t){if(e=e.containerInfo,Hf=Yo,e=Rm(e),oc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var v=0,S=-1,A=-1,B=0,G=0,P=e,k=null;t:for(;;){for(var q;P!==a||o!==0&&P.nodeType!==3||(S=v+o),P!==c||i!==0&&P.nodeType!==3||(A=v+i),P.nodeType===3&&(v+=P.nodeValue.length),(q=P.firstChild)!==null;)k=P,P=q;for(;;){if(P===e)break t;if(k===a&&++B===o&&(S=v),k===c&&++G===i&&(A=v),(q=P.nextSibling)!==null)break;P=k,k=P.parentNode}P=q}a=S===-1||A===-1?null:{start:S,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bf={focusedElem:e,selectionRange:a},Yo=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var re=Rl(a.type,o);e=i.getSnapshotBeforeUpdate(re,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(he){qe(a,a.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Vf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function pv(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ta(e,a),i&4&&Vr(5,a);break;case 1:if(ta(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(v){qe(a,a.return,v)}else{var o=Rl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){qe(a,a.return,v)}}i&64&&uv(a),i&512&&Yr(a,a.return);break;case 3:if(ta(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Wm(e,t)}catch(v){qe(a,a.return,v)}}break;case 27:t===null&&i&4&&hv(a);case 26:case 5:ta(e,a),t===null&&i&4&&fv(a),i&512&&Yr(a,a.return);break;case 12:ta(e,a);break;case 31:ta(e,a),i&4&&yv(e,a);break;case 13:ta(e,a),i&4&&bv(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=P1.bind(null,a),hE(e,a))));break;case 22:if(i=a.memoizedState!==null||Wn,!i){t=t!==null&&t.memoizedState!==null||ut,o=Wn;var c=ut;Wn=i,(ut=t)&&!c?na(e,a,(a.subtreeFlags&8772)!==0):ta(e,a),Wn=o,ut=c}break;case 30:break;default:ta(e,a)}}function vv(e){var t=e.alternate;t!==null&&(e.alternate=null,vv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,Mt=!1;function ea(e,t,a){for(a=a.child;a!==null;)gv(e,t,a),a=a.sibling}function gv(e,t,a){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(dr,a)}catch{}switch(a.tag){case 26:ut||An(a,t),ea(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ut||An(a,t);var i=Ie,o=Mt;Ba(a.type)&&(Ie=a.stateNode,Mt=!1),ea(e,t,a),Ir(a.stateNode),Ie=i,Mt=o;break;case 5:ut||An(a,t);case 6:if(i=Ie,o=Mt,Ie=null,ea(e,t,a),Ie=i,Mt=o,Ie!==null)if(Mt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(a.stateNode)}catch(c){qe(a,t,c)}else try{Ie.removeChild(a.stateNode)}catch(c){qe(a,t,c)}break;case 18:Ie!==null&&(Mt?(e=Ie,ug(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Mi(e)):ug(Ie,a.stateNode));break;case 4:i=Ie,o=Mt,Ie=a.stateNode.containerInfo,Mt=!0,ea(e,t,a),Ie=i,Mt=o;break;case 0:case 11:case 14:case 15:ja(2,a,t),ut||ja(4,a,t),ea(e,t,a);break;case 1:ut||(An(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&cv(a,t,i)),ea(e,t,a);break;case 21:ea(e,t,a);break;case 22:ut=(i=ut)||a.memoizedState!==null,ea(e,t,a),ut=i;break;default:ea(e,t,a)}}function yv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Mi(e)}catch(a){qe(t,t.return,a)}}}function bv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Mi(e)}catch(a){qe(t,t.return,a)}}function k1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mv),t;default:throw Error(s(435,e.tag))}}function Eo(e,t){var a=k1(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=Z1.bind(null,e,i);i.then(o,o)}})}function Dt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],c=e,v=t,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Ba(S.type)){Ie=S.stateNode,Mt=!1;break e}break;case 5:Ie=S.stateNode,Mt=!1;break e;case 3:case 4:Ie=S.stateNode.containerInfo,Mt=!0;break e}S=S.return}if(Ie===null)throw Error(s(160));gv(c,v,o),Ie=null,Mt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xv(t,e),t=t.sibling}var bn=null;function xv(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),zt(e),i&4&&(ja(3,e,e.return),Vr(3,e),ja(5,e,e.return));break;case 1:Dt(t,e),zt(e),i&512&&(ut||a===null||An(a,a.return)),i&64&&Wn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var o=bn;if(Dt(t,e),zt(e),i&512&&(ut||a===null||An(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[pr]||c[vt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),xt(c,i,a),c[vt]=e,ht(c),i=c;break e;case"link":var v=xg("link","href",o).get(i+(a.href||""));if(v){for(var S=0;S<v.length;S++)if(c=v[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(S,1);break t}}c=o.createElement(i),xt(c,i,a),o.head.appendChild(c);break;case"meta":if(v=xg("meta","content",o).get(i+(a.content||""))){for(S=0;S<v.length;S++)if(c=v[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(S,1);break t}}c=o.createElement(i),xt(c,i,a),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[vt]=e,ht(c),i=c}e.stateNode=i}else Sg(o,e.type,e.stateNode);else e.stateNode=bg(o,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?Sg(o,e.type,e.stateNode):bg(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&hf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),zt(e),i&512&&(ut||a===null||An(a,a.return)),a!==null&&i&4&&hf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),zt(e),i&512&&(ut||a===null||An(a,a.return)),e.flags&32){o=e.stateNode;try{ti(o,"")}catch(re){qe(e,e.return,re)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,hf(e,o,a!==null?a.memoizedProps:o)),i&1024&&(vf=!0);break;case 6:if(Dt(t,e),zt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(re){qe(e,e.return,re)}}break;case 3:if(Bo=null,o=bn,bn=Uo(t.containerInfo),Dt(t,e),bn=o,zt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Mi(t.containerInfo)}catch(re){qe(e,e.return,re)}vf&&(vf=!1,Sv(e));break;case 4:i=bn,bn=Uo(e.stateNode.containerInfo),Dt(t,e),zt(e),bn=i;break;case 12:Dt(t,e),zt(e);break;case 31:Dt(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eo(e,i)));break;case 13:Dt(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Co=kt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eo(e,i)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,B=Wn,G=ut;if(Wn=B||o,ut=G||A,Dt(t,e),ut=G,Wn=B,zt(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||Wn||ut||Nl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(c=A.stateNode,o)v=c.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=A.stateNode;var P=A.memoizedProps.style,k=P!=null&&P.hasOwnProperty("display")?P.display:null;S.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(re){qe(A,A.return,re)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(re){qe(A,A.return,re)}}}else if(t.tag===18){if(a===null){A=t;try{var q=A.stateNode;o?cg(q,!0):cg(A.stateNode,!1)}catch(re){qe(A,A.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Eo(e,a))));break;case 19:Dt(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eo(e,i)));break;case 30:break;case 21:break;default:Dt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(dv(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=mf(e);So(e,c,o);break;case 5:var v=a.stateNode;a.flags&32&&(ti(v,""),a.flags&=-33);var S=mf(e);So(e,S,v);break;case 3:case 4:var A=a.stateNode.containerInfo,B=mf(e);pf(e,B,A);break;default:throw Error(s(161))}}catch(G){qe(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ta(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pv(e,t.alternate,t),t=t.sibling}function Nl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ja(4,t,t.return),Nl(t);break;case 1:An(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&cv(t,t.return,a),Nl(t);break;case 27:Ir(t.stateNode);case 26:case 5:An(t,t.return),Nl(t);break;case 22:t.memoizedState===null&&Nl(t);break;case 30:Nl(t);break;default:Nl(t)}e=e.sibling}}function na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,v=c.flags;switch(c.tag){case 0:case 11:case 15:na(o,c,a),Vr(4,c);break;case 1:if(na(o,c,a),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){qe(i,i.return,B)}if(i=c,o=i.updateQueue,o!==null){var S=i.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)Jm(A[o],S)}catch(B){qe(i,i.return,B)}}a&&v&64&&uv(c),Yr(c,c.return);break;case 27:hv(c);case 26:case 5:na(o,c,a),a&&i===null&&v&4&&fv(c),Yr(c,c.return);break;case 12:na(o,c,a);break;case 31:na(o,c,a),a&&v&4&&yv(o,c);break;case 13:na(o,c,a),a&&v&4&&bv(o,c);break;case 22:c.memoizedState===null&&na(o,c,a),Yr(c,c.return);break;case 30:break;default:na(o,c,a)}t=t.sibling}}function gf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ar(a))}function yf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ar(e))}function xn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ev(e,t,a,i),t=t.sibling}function Ev(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:xn(e,t,a,i),o&2048&&Vr(9,t);break;case 1:xn(e,t,a,i);break;case 3:xn(e,t,a,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ar(e)));break;case 12:if(o&2048){xn(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,v=c.id,S=c.onPostCommit;typeof S=="function"&&S(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){qe(t,t.return,A)}}else xn(e,t,a,i);break;case 31:xn(e,t,a,i);break;case 13:xn(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,v=t.alternate,t.memoizedState!==null?c._visibility&2?xn(e,t,a,i):Gr(e,t):c._visibility&2?xn(e,t,a,i):(c._visibility|=2,Si(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&gf(v,t);break;case 24:xn(e,t,a,i),o&2048&&yf(t.alternate,t);break;default:xn(e,t,a,i)}}function Si(e,t,a,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,v=t,S=a,A=i,B=v.flags;switch(v.tag){case 0:case 11:case 15:Si(c,v,S,A,o),Vr(8,v);break;case 23:break;case 22:var G=v.stateNode;v.memoizedState!==null?G._visibility&2?Si(c,v,S,A,o):Gr(c,v):(G._visibility|=2,Si(c,v,S,A,o)),o&&B&2048&&gf(v.alternate,v);break;case 24:Si(c,v,S,A,o),o&&B&2048&&yf(v.alternate,v);break;default:Si(c,v,S,A,o)}t=t.sibling}}function Gr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,o=i.flags;switch(i.tag){case 22:Gr(a,i),o&2048&&gf(i.alternate,i);break;case 24:Gr(a,i),o&2048&&yf(i.alternate,i);break;default:Gr(a,i)}t=t.sibling}}var Qr=8192;function Ei(e,t,a){if(e.subtreeFlags&Qr)for(e=e.child;e!==null;)wv(e,t,a),e=e.sibling}function wv(e,t,a){switch(e.tag){case 26:Ei(e,t,a),e.flags&Qr&&e.memoizedState!==null&&TE(a,bn,e.memoizedState,e.memoizedProps);break;case 5:Ei(e,t,a);break;case 3:case 4:var i=bn;bn=Uo(e.stateNode.containerInfo),Ei(e,t,a),bn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Qr,Qr=16777216,Ei(e,t,a),Qr=i):Ei(e,t,a));break;default:Ei(e,t,a)}}function Cv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];mt=i,Rv(i,e)}Cv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Tv(e),e=e.sibling}function Tv(e){switch(e.tag){case 0:case 11:case 15:Xr(e),e.flags&2048&&ja(9,e,e.return);break;case 3:Xr(e);break;case 12:Xr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wo(e)):Xr(e);break;default:Xr(e)}}function wo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];mt=i,Rv(i,e)}Cv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ja(8,t,t.return),wo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,wo(t));break;default:wo(t)}e=e.sibling}}function Rv(e,t){for(;mt!==null;){var a=mt;switch(a.tag){case 0:case 11:case 15:ja(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ar(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,mt=i;else e:for(a=e;mt!==null;){i=mt;var o=i.sibling,c=i.return;if(vv(i),i===a){mt=null;break e}if(o!==null){o.return=c,mt=o;break e}mt=c}}}var q1={getCacheForType:function(e){var t=yt(rt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return yt(rt).controller.signal}},V1=typeof WeakMap=="function"?WeakMap:Map,He=0,Qe=null,Ce=null,Ne=0,ke=0,Kt=null,Ma=!1,wi=!1,bf=!1,aa=0,tt=0,Da=0,Al=0,xf=0,Pt=0,Ci=0,Kr=null,Lt=null,Sf=!1,Co=0,Nv=0,To=1/0,Ro=null,za=null,ct=0,La=null,Ti=null,la=0,Ef=0,wf=null,Av=null,Pr=0,Cf=null;function Zt(){return(He&2)!==0&&Ne!==0?Ne&-Ne:U.T!==null?_f():Qh()}function Ov(){if(Pt===0)if((Ne&536870912)===0||Oe){var e=Ds;Ds<<=1,(Ds&3932160)===0&&(Ds=262144),Pt=e}else Pt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Pt}function Ut(e,t,a){(e===Qe&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Ri(e,0),Ua(e,Ne,Pt,!1)),mr(e,a),((He&2)===0||e!==Qe)&&(e===Qe&&((He&2)===0&&(Al|=a),tt===4&&Ua(e,Ne,Pt,!1)),On(e))}function _v(e,t,a){if((He&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||hr(e,t),o=i?Q1(e,t):Rf(e,t,!0),c=i;do{if(o===0){wi&&!i&&Ua(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!Y1(a)){o=Rf(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var S=e;o=Kr;var A=S.current.memoizedState.isDehydrated;if(A&&(Ri(S,v).flags|=256),v=Rf(S,v,!1),v!==2){if(bf&&!A){S.errorRecoveryDisabledLanes|=c,Al|=c,o=4;break e}c=Lt,Lt=o,c!==null&&(Lt===null?Lt=c:Lt.push.apply(Lt,c))}o=v}if(c=!1,o!==2)continue}}if(o===1){Ri(e,0),Ua(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ua(i,t,Pt,!Ma);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Co+300-kt(),10<o)){if(Ua(i,t,Pt,!Ma),Ls(i,0,!0)!==0)break e;la=t,i.timeoutHandle=sg(jv.bind(null,i,a,Lt,Ro,Sf,t,Pt,Al,Ci,Ma,c,"Throttled",-0,0),o);break e}jv(i,a,Lt,Ro,Sf,t,Pt,Al,Ci,Ma,c,null,-0,0)}}break}while(!0);On(e)}function jv(e,t,a,i,o,c,v,S,A,B,G,P,k,q){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gn},wv(t,c,P);var re=(c&62914560)===c?Co-kt():(c&4194048)===c?Nv-kt():0;if(re=RE(P,re),re!==null){la=c,e.cancelPendingCommit=re(kv.bind(null,e,t,c,a,i,o,v,S,A,G,P,null,k,q)),Ua(e,c,v,!B);return}}kv(e,t,c,a,i,o,v,S,A)}function Y1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var o=a[i],c=o.getSnapshot;o=o.value;try{if(!Yt(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ua(e,t,a,i){t&=~xf,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Vt(o),v=1<<c;i[c]=-1,o&=~v}a!==0&&Vh(e,a,t)}function No(){return(He&6)===0?(Zr(0),!1):!0}function Tf(){if(Ce!==null){if(ke===0)var e=Ce.return;else e=Ce,Pn=bl=null,qc(e),vi=null,_r=0,e=Ce;for(;e!==null;)ov(e.alternate,e),e=e.return;Ce=null}}function Ri(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,oE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),la=0,Tf(),Qe=e,Ce=a=Xn(e.current,null),Ne=t,ke=0,Kt=null,Ma=!1,wi=hr(e,t),bf=!1,Ci=Pt=xf=Al=Da=tt=0,Lt=Kr=null,Sf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Vt(i),c=1<<o;t|=e[o],i&=~c}return aa=t,Ps(),a}function Mv(e,t){ye=null,U.H=Br,t===pi||t===to?(t=Zm(),ke=3):t===Ac?(t=Zm(),ke=4):ke=t===nf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,Ce===null&&(tt=1,vo(e,an(t,e.current)))}function Dv(){var e=Qt.current;return e===null?!0:(Ne&4194048)===Ne?on===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===on:!1}function zv(){var e=U.H;return U.H=Br,e===null?Br:e}function Lv(){var e=U.A;return U.A=q1,e}function Ao(){tt=4,Ma||(Ne&4194048)!==Ne&&Qt.current!==null||(wi=!0),(Da&134217727)===0&&(Al&134217727)===0||Qe===null||Ua(Qe,Ne,Pt,!1)}function Rf(e,t,a){var i=He;He|=2;var o=zv(),c=Lv();(Qe!==e||Ne!==t)&&(Ro=null,Ri(e,t)),t=!1;var v=tt;e:do try{if(ke!==0&&Ce!==null){var S=Ce,A=Kt;switch(ke){case 8:Tf(),v=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var B=ke;if(ke=0,Kt=null,Ni(e,S,A,B),a&&wi){v=0;break e}break;default:B=ke,ke=0,Kt=null,Ni(e,S,A,B)}}G1(),v=tt;break}catch(G){Mv(e,G)}while(!0);return t&&e.shellSuspendCounter++,Pn=bl=null,He=i,U.H=o,U.A=c,Ce===null&&(Qe=null,Ne=0,Ps()),v}function G1(){for(;Ce!==null;)Uv(Ce)}function Q1(e,t){var a=He;He|=2;var i=zv(),o=Lv();Qe!==e||Ne!==t?(Ro=null,To=kt()+500,Ri(e,t)):wi=hr(e,t);e:do try{if(ke!==0&&Ce!==null){t=Ce;var c=Kt;t:switch(ke){case 1:ke=0,Kt=null,Ni(e,t,c,1);break;case 2:case 9:if(Km(c)){ke=0,Kt=null,Hv(t);break}t=function(){ke!==2&&ke!==9||Qe!==e||(ke=7),On(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Km(c)?(ke=0,Kt=null,Hv(t)):(ke=0,Kt=null,Ni(e,t,c,7));break;case 5:var v=null;switch(Ce.tag){case 26:v=Ce.memoizedState;case 5:case 27:var S=Ce;if(v?Eg(v):S.stateNode.complete){ke=0,Kt=null;var A=S.sibling;if(A!==null)Ce=A;else{var B=S.return;B!==null?(Ce=B,Oo(B)):Ce=null}break t}}ke=0,Kt=null,Ni(e,t,c,5);break;case 6:ke=0,Kt=null,Ni(e,t,c,6);break;case 8:Tf(),tt=6;break e;default:throw Error(s(462))}}X1();break}catch(G){Mv(e,G)}while(!0);return Pn=bl=null,U.H=i,U.A=o,He=a,Ce!==null?0:(Qe=null,Ne=0,Ps(),tt)}function X1(){for(;Ce!==null&&!mS();)Uv(Ce)}function Uv(e){var t=rv(e.alternate,e,aa);e.memoizedProps=e.pendingProps,t===null?Oo(e):Ce=t}function Hv(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ev(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=ev(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:qc(t);default:ov(a,t),t=Ce=Lm(t,aa),t=rv(a,t,aa)}e.memoizedProps=e.pendingProps,t===null?Oo(e):Ce=t}function Ni(e,t,a,i){Pn=bl=null,qc(t),vi=null,_r=0;var o=t.return;try{if(D1(e,o,t,a,Ne)){tt=1,vo(e,an(a,e.current)),Ce=null;return}}catch(c){if(o!==null)throw Ce=o,c;tt=1,vo(e,an(a,e.current)),Ce=null;return}t.flags&32768?(Oe||i===1?e=!0:wi||(Ne&536870912)!==0?e=!1:(Ma=e=!0,(i===2||i===9||i===3||i===6)&&(i=Qt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Bv(t,e)):Oo(t)}function Oo(e){var t=e;do{if((t.flags&32768)!==0){Bv(t,Ma);return}e=t.return;var a=U1(t.alternate,t,aa);if(a!==null){Ce=a;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);tt===0&&(tt=5)}function Bv(e,t){do{var a=H1(e.alternate,e);if(a!==null){a.flags&=32767,Ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=a}while(e!==null);tt=6,Ce=null}function kv(e,t,a,i,o,c,v,S,A){e.cancelPendingCommit=null;do _o();while(ct!==0);if((He&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=hc,CS(e,a,c,v,S,A),e===Qe&&(Ce=Qe=null,Ne=0),Ti=t,La=e,la=a,Ef=c,wf=o,Av=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,F1(js,function(){return Qv(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=U.T,U.T=null,o=Z.p,Z.p=2,v=He,He|=4;try{B1(e,t,a)}finally{He=v,Z.p=o,U.T=i}}ct=1,qv(),Vv(),Yv()}}function qv(){if(ct===1){ct=0;var e=La,t=Ti,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var i=Z.p;Z.p=2;var o=He;He|=4;try{xv(t,e);var c=Bf,v=Rm(e.containerInfo),S=c.focusedElem,A=c.selectionRange;if(v!==S&&S&&S.ownerDocument&&Tm(S.ownerDocument.documentElement,S)){if(A!==null&&oc(S)){var B=A.start,G=A.end;if(G===void 0&&(G=B),"selectionStart"in S)S.selectionStart=B,S.selectionEnd=Math.min(G,S.value.length);else{var P=S.ownerDocument||document,k=P&&P.defaultView||window;if(k.getSelection){var q=k.getSelection(),re=S.textContent.length,he=Math.min(A.start,re),Ge=A.end===void 0?he:Math.min(A.end,re);!q.extend&&he>Ge&&(v=Ge,Ge=he,he=v);var L=Cm(S,he),D=Cm(S,Ge);if(L&&D&&(q.rangeCount!==1||q.anchorNode!==L.node||q.anchorOffset!==L.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var H=P.createRange();H.setStart(L.node,L.offset),q.removeAllRanges(),he>Ge?(q.addRange(H),q.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),q.addRange(H))}}}}for(P=[],q=S;q=q.parentNode;)q.nodeType===1&&P.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<P.length;S++){var X=P[S];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Yo=!!Hf,Bf=Hf=null}finally{He=o,Z.p=i,U.T=a}}e.current=t,ct=2}}function Vv(){if(ct===2){ct=0;var e=La,t=Ti,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var i=Z.p;Z.p=2;var o=He;He|=4;try{pv(e,t.alternate,t)}finally{He=o,Z.p=i,U.T=a}}ct=3}}function Yv(){if(ct===4||ct===3){ct=0,pS();var e=La,t=Ti,a=la,i=Av;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,Ti=La=null,Gv(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(za=null),Gu(a),t=t.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(dr,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=U.T,o=Z.p,Z.p=2,U.T=null;try{for(var c=e.onRecoverableError,v=0;v<i.length;v++){var S=i[v];c(S.value,{componentStack:S.stack})}}finally{U.T=t,Z.p=o}}(la&3)!==0&&_o(),On(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Cf?Pr++:(Pr=0,Cf=e):Pr=0,Zr(0)}}function Gv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ar(t)))}function _o(){return qv(),Vv(),Yv(),Qv()}function Qv(){if(ct!==5)return!1;var e=La,t=Ef;Ef=0;var a=Gu(la),i=U.T,o=Z.p;try{Z.p=32>a?32:a,U.T=null,a=wf,wf=null;var c=La,v=la;if(ct=0,Ti=La=null,la=0,(He&6)!==0)throw Error(s(331));var S=He;if(He|=4,Tv(c.current),Ev(c,c.current,v,a),He=S,Zr(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(dr,c)}catch{}return!0}finally{Z.p=o,U.T=i,Gv(e,t)}}function Xv(e,t,a){t=an(a,t),t=tf(e.stateNode,t,2),e=Aa(e,t,2),e!==null&&(mr(e,2),On(e))}function qe(e,t,a){if(e.tag===3)Xv(e,e,a);else for(;t!==null;){if(t.tag===3){Xv(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(za===null||!za.has(i))){e=an(a,e),a=Kp(2),i=Aa(t,a,2),i!==null&&(Pp(a,i,t,e),mr(i,2),On(i));break}}t=t.return}}function Nf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new V1;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(bf=!0,o.add(a),e=K1.bind(null,e,t,a),t.then(e,e))}function K1(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Qe===e&&(Ne&a)===a&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>kt()-Co?(He&2)===0&&Ri(e,0):xf|=a,Ci===Ne&&(Ci=0)),On(e)}function Kv(e,t){t===0&&(t=qh()),e=vl(e,t),e!==null&&(mr(e,t),On(e))}function P1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Kv(e,a)}function Z1(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Kv(e,a)}function F1(e,t){return ku(e,t)}var jo=null,Ai=null,Af=!1,Mo=!1,Of=!1,Ha=0;function On(e){e!==Ai&&e.next===null&&(Ai===null?jo=Ai=e:Ai=Ai.next=e),Mo=!0,Af||(Af=!0,I1())}function Zr(e,t){if(!Of&&Mo){Of=!0;do for(var a=!1,i=jo;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var v=i.suspendedLanes,S=i.pingedLanes;c=(1<<31-Vt(42|e)+1)-1,c&=o&~(v&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,$v(i,c))}else c=Ne,c=Ls(i,i===Qe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||hr(i,c)||(a=!0,$v(i,c));i=i.next}while(a);Of=!1}}function $1(){Pv()}function Pv(){Mo=Af=!1;var e=0;Ha!==0&&sE()&&(e=Ha);for(var t=kt(),a=null,i=jo;i!==null;){var o=i.next,c=Zv(i,t);c===0?(i.next=null,a===null?jo=o:a.next=o,o===null&&(Ai=a)):(a=i,(e!==0||(c&3)!==0)&&(Mo=!0)),i=o}ct!==0&&ct!==5||Zr(e),Ha!==0&&(Ha=0)}function Zv(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var v=31-Vt(c),S=1<<v,A=o[v];A===-1?((S&a)===0||(S&i)!==0)&&(o[v]=wS(S,t)):A<=t&&(e.expiredLanes|=S),c&=~S}if(t=Qe,a=Ne,a=Ls(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&qu(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||hr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&qu(i),Gu(a)){case 2:case 8:a=Bh;break;case 32:a=js;break;case 268435456:a=kh;break;default:a=js}return i=Fv.bind(null,e),a=ku(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&qu(i),e.callbackPriority=2,e.callbackNode=null,2}function Fv(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(_o()&&e.callbackNode!==a)return null;var i=Ne;return i=Ls(e,e===Qe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(_v(e,i,t),Zv(e,kt()),e.callbackNode!=null&&e.callbackNode===a?Fv.bind(null,e):null)}function $v(e,t){if(_o())return null;_v(e,t,!0)}function I1(){uE(function(){(He&6)!==0?ku(Hh,$1):Pv()})}function _f(){if(Ha===0){var e=hi;e===0&&(e=Ms,Ms<<=1,(Ms&261888)===0&&(Ms=256)),Ha=e}return Ha}function Iv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ks(""+e)}function Jv(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function J1(e,t,a,i,o){if(t==="submit"&&a&&a.stateNode===o){var c=Iv((o[_t]||null).action),v=i.submitter;v&&(t=(t=v[_t]||null)?Iv(t.formAction):v.getAttribute("formAction"),t!==null&&(c=t,v=null));var S=new Gs("action","action",null,i,o);e.push({event:S,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ha!==0){var A=v?Jv(o,v):new FormData(o);Fc(a,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(S.preventDefault(),A=v?Jv(o,v):new FormData(o),Fc(a,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var jf=0;jf<dc.length;jf++){var Mf=dc[jf],W1=Mf.toLowerCase(),eE=Mf[0].toUpperCase()+Mf.slice(1);yn(W1,"on"+eE)}yn(Om,"onAnimationEnd"),yn(_m,"onAnimationIteration"),yn(jm,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(v1,"onTransitionRun"),yn(g1,"onTransitionStart"),yn(y1,"onTransitionCancel"),yn(Mm,"onTransitionEnd"),Wl("onMouseEnter",["mouseout","mouseover"]),Wl("onMouseLeave",["mouseout","mouseover"]),Wl("onPointerEnter",["pointerout","pointerover"]),Wl("onPointerLeave",["pointerout","pointerover"]),dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fr));function Wv(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var v=i.length-1;0<=v;v--){var S=i[v],A=S.instance,B=S.currentTarget;if(S=S.listener,A!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=B;try{c(o)}catch(G){Ks(G)}o.currentTarget=null,c=A}else for(v=0;v<i.length;v++){if(S=i[v],A=S.instance,B=S.currentTarget,S=S.listener,A!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=B;try{c(o)}catch(G){Ks(G)}o.currentTarget=null,c=A}}}}function Te(e,t){var a=t[Qu];a===void 0&&(a=t[Qu]=new Set);var i=e+"__bubble";a.has(i)||(eg(t,e,2,!1),a.add(i))}function Df(e,t,a){var i=0;t&&(i|=4),eg(a,e,i,t)}var Do="_reactListening"+Math.random().toString(36).slice(2);function zf(e){if(!e[Do]){e[Do]=!0,Ph.forEach(function(a){a!=="selectionchange"&&(tE.has(a)||Df(a,!1,e),Df(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Do]||(t[Do]=!0,Df("selectionchange",!1,t))}}function eg(e,t,a,i){switch(Og(t)){case 2:var o=OE;break;case 8:o=_E;break;default:o=Ff}a=o.bind(null,t,a,e),o=void 0,!Wu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Lf(e,t,a,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var v=i.tag;if(v===3||v===4){var S=i.stateNode.containerInfo;if(S===o)break;if(v===4)for(v=i.return;v!==null;){var A=v.tag;if((A===3||A===4)&&v.stateNode.containerInfo===o)return;v=v.return}for(;S!==null;){if(v=$l(S),v===null)return;if(A=v.tag,A===5||A===6||A===26||A===27){i=c=v;continue e}S=S.parentNode}}i=i.return}im(function(){var B=c,G=Iu(a),P=[];e:{var k=Dm.get(e);if(k!==void 0){var q=Gs,re=e;switch(e){case"keypress":if(Vs(a)===0)break e;case"keydown":case"keyup":q=ZS;break;case"focusin":re="focus",q=ac;break;case"focusout":re="blur",q=ac;break;case"beforeblur":case"afterblur":q=ac;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=US;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=IS;break;case Om:case _m:case jm:q=kS;break;case Mm:q=WS;break;case"scroll":case"scrollend":q=zS;break;case"wheel":q=t1;break;case"copy":case"cut":case"paste":q=VS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=cm;break;case"toggle":case"beforetoggle":q=a1}var he=(t&4)!==0,Ge=!he&&(e==="scroll"||e==="scrollend"),L=he?k!==null?k+"Capture":null:k;he=[];for(var D=B,H;D!==null;){var X=D;if(H=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||H===null||L===null||(X=gr(D,L),X!=null&&he.push($r(D,X,H))),Ge)break;D=D.return}0<he.length&&(k=new q(k,re,null,a,G),P.push({event:k,listeners:he}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",k&&a!==$u&&(re=a.relatedTarget||a.fromElement)&&($l(re)||re[Fl]))break e;if((q||k)&&(k=G.window===G?G:(k=G.ownerDocument)?k.defaultView||k.parentWindow:window,q?(re=a.relatedTarget||a.toElement,q=B,re=re?$l(re):null,re!==null&&(Ge=f(re),he=re.tag,re!==Ge||he!==5&&he!==27&&he!==6)&&(re=null)):(q=null,re=B),q!==re)){if(he=om,X="onMouseLeave",L="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(he=cm,X="onPointerLeave",L="onPointerEnter",D="pointer"),Ge=q==null?k:vr(q),H=re==null?k:vr(re),k=new he(X,D+"leave",q,a,G),k.target=Ge,k.relatedTarget=H,X=null,$l(G)===B&&(he=new he(L,D+"enter",re,a,G),he.target=H,he.relatedTarget=Ge,X=he),Ge=X,q&&re)t:{for(he=nE,L=q,D=re,H=0,X=L;X;X=he(X))H++;X=0;for(var fe=D;fe;fe=he(fe))X++;for(;0<H-X;)L=he(L),H--;for(;0<X-H;)D=he(D),X--;for(;H--;){if(L===D||D!==null&&L===D.alternate){he=L;break t}L=he(L),D=he(D)}he=null}else he=null;q!==null&&tg(P,k,q,he,!1),re!==null&&Ge!==null&&tg(P,Ge,re,he,!0)}}e:{if(k=B?vr(B):window,q=k.nodeName&&k.nodeName.toLowerCase(),q==="select"||q==="input"&&k.type==="file")var Le=ym;else if(vm(k))if(bm)Le=h1;else{Le=f1;var se=c1}else q=k.nodeName,!q||q.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?B&&Fu(B.elementType)&&(Le=ym):Le=d1;if(Le&&(Le=Le(e,B))){gm(P,Le,a,G);break e}se&&se(e,k,B),e==="focusout"&&B&&k.type==="number"&&B.memoizedProps.value!=null&&Zu(k,"number",k.value)}switch(se=B?vr(B):window,e){case"focusin":(vm(se)||se.contentEditable==="true")&&(ii=se,uc=B,Tr=null);break;case"focusout":Tr=uc=ii=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,Nm(P,a,G);break;case"selectionchange":if(p1)break;case"keydown":case"keyup":Nm(P,a,G)}var xe;if(ic)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else li?mm(e,a)&&(Ae="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ae="onCompositionStart");Ae&&(fm&&a.locale!=="ko"&&(li||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&li&&(xe=rm()):(Sa=G,ec="value"in Sa?Sa.value:Sa.textContent,li=!0)),se=zo(B,Ae),0<se.length&&(Ae=new um(Ae,e,null,a,G),P.push({event:Ae,listeners:se}),xe?Ae.data=xe:(xe=pm(a),xe!==null&&(Ae.data=xe)))),(xe=i1?r1(e,a):s1(e,a))&&(Ae=zo(B,"onBeforeInput"),0<Ae.length&&(se=new um("onBeforeInput","beforeinput",null,a,G),P.push({event:se,listeners:Ae}),se.data=xe)),J1(P,e,B,a,G)}Wv(P,t)})}function $r(e,t,a){return{instance:e,listener:t,currentTarget:a}}function zo(e,t){for(var a=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=gr(e,a),o!=null&&i.unshift($r(e,o,c)),o=gr(e,t),o!=null&&i.push($r(e,o,c))),e.tag===3)return i;e=e.return}return[]}function nE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tg(e,t,a,i,o){for(var c=t._reactName,v=[];a!==null&&a!==i;){var S=a,A=S.alternate,B=S.stateNode;if(S=S.tag,A!==null&&A===i)break;S!==5&&S!==26&&S!==27||B===null||(A=B,o?(B=gr(a,c),B!=null&&v.unshift($r(a,B,A))):o||(B=gr(a,c),B!=null&&v.push($r(a,B,A)))),a=a.return}v.length!==0&&e.push({event:t,listeners:v})}var aE=/\r\n?/g,lE=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(aE,`
|
|
49
|
-
`).replace(lE,"")}function ag(e,t){return t=ng(t),ng(e)===t}function Ye(e,t,a,i,o,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ti(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ti(e,""+i);break;case"className":Hs(e,"class",i);break;case"tabIndex":Hs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Hs(e,a,i);break;case"style":am(e,i,c);break;case"data":if(t!=="object"){Hs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=ks(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ye(e,t,"name",o.name,o,null),Ye(e,t,"formEncType",o.formEncType,o,null),Ye(e,t,"formMethod",o.formMethod,o,null),Ye(e,t,"formTarget",o.formTarget,o,null)):(Ye(e,t,"encType",o.encType,o,null),Ye(e,t,"method",o.method,o,null),Ye(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=ks(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=Gn);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=ks(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Us(e,"popover",i);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Us(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=MS.get(a)||a,Us(e,a,i))}}function Uf(e,t,a,i,o,c){switch(a){case"style":am(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?ti(e,i):(typeof i=="number"||typeof i=="bigint")&&ti(e,""+i);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[_t]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,o);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Us(e,a,i)}}}function xt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var i=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var v=a[c];if(v!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,c,v,a,null)}}o&&Ye(e,t,"srcSet",a.srcSet,a,null),i&&Ye(e,t,"src",a.src,a,null);return;case"input":Te("invalid",e);var S=c=v=o=null,A=null,B=null;for(i in a)if(a.hasOwnProperty(i)){var G=a[i];if(G!=null)switch(i){case"name":o=G;break;case"type":v=G;break;case"checked":A=G;break;case"defaultChecked":B=G;break;case"value":c=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:Ye(e,t,i,G,a,null)}}Wh(e,c,S,A,B,v,o,!1);return;case"select":Te("invalid",e),i=v=c=null;for(o in a)if(a.hasOwnProperty(o)&&(S=a[o],S!=null))switch(o){case"value":c=S;break;case"defaultValue":v=S;break;case"multiple":i=S;default:Ye(e,t,o,S,a,null)}t=c,a=v,e.multiple=!!i,t!=null?ei(e,!!i,t,!1):a!=null&&ei(e,!!i,a,!0);return;case"textarea":Te("invalid",e),c=o=i=null;for(v in a)if(a.hasOwnProperty(v)&&(S=a[v],S!=null))switch(v){case"value":i=S;break;case"defaultValue":o=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:Ye(e,t,v,S,a,null)}tm(e,i,o,c);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(i=a[A],i!=null))switch(A){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ye(e,t,A,i,a,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(i=0;i<Fr.length;i++)Te(Fr[i],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(i=a[B],i!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,B,i,a,null)}return;default:if(Fu(t)){for(G in a)a.hasOwnProperty(G)&&(i=a[G],i!==void 0&&Uf(e,t,G,i,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(i=a[S],i!=null&&Ye(e,t,S,i,a,null))}function iE(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,v=null,S=null,A=null,B=null,G=null;for(q in a){var P=a[q];if(a.hasOwnProperty(q)&&P!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":A=P;default:i.hasOwnProperty(q)||Ye(e,t,q,null,i,P)}}for(var k in i){var q=i[k];if(P=a[k],i.hasOwnProperty(k)&&(q!=null||P!=null))switch(k){case"type":c=q;break;case"name":o=q;break;case"checked":B=q;break;case"defaultChecked":G=q;break;case"value":v=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:q!==P&&Ye(e,t,k,q,i,P)}}Pu(e,v,S,A,B,G,c,o);return;case"select":q=v=S=k=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":q=A;default:i.hasOwnProperty(c)||Ye(e,t,c,null,i,A)}for(o in i)if(c=i[o],A=a[o],i.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":k=c;break;case"defaultValue":S=c;break;case"multiple":v=c;default:c!==A&&Ye(e,t,o,c,i,A)}t=S,a=v,i=q,k!=null?ei(e,!!a,k,!1):!!i!=!!a&&(t!=null?ei(e,!!a,t,!0):ei(e,!!a,a?[]:"",!1));return;case"textarea":q=k=null;for(S in a)if(o=a[S],a.hasOwnProperty(S)&&o!=null&&!i.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ye(e,t,S,null,i,o)}for(v in i)if(o=i[v],c=a[v],i.hasOwnProperty(v)&&(o!=null||c!=null))switch(v){case"value":k=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Ye(e,t,v,o,i,c)}em(e,k,q);return;case"option":for(var re in a)if(k=a[re],a.hasOwnProperty(re)&&k!=null&&!i.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Ye(e,t,re,null,i,k)}for(A in i)if(k=i[A],q=a[A],i.hasOwnProperty(A)&&k!==q&&(k!=null||q!=null))switch(A){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Ye(e,t,A,k,i,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in a)k=a[he],a.hasOwnProperty(he)&&k!=null&&!i.hasOwnProperty(he)&&Ye(e,t,he,null,i,k);for(B in i)if(k=i[B],q=a[B],i.hasOwnProperty(B)&&k!==q&&(k!=null||q!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Ye(e,t,B,k,i,q)}return;default:if(Fu(t)){for(var Ge in a)k=a[Ge],a.hasOwnProperty(Ge)&&k!==void 0&&!i.hasOwnProperty(Ge)&&Uf(e,t,Ge,void 0,i,k);for(G in i)k=i[G],q=a[G],!i.hasOwnProperty(G)||k===q||k===void 0&&q===void 0||Uf(e,t,G,k,i,q);return}}for(var L in a)k=a[L],a.hasOwnProperty(L)&&k!=null&&!i.hasOwnProperty(L)&&Ye(e,t,L,null,i,k);for(P in i)k=i[P],q=a[P],!i.hasOwnProperty(P)||k===q||k==null&&q==null||Ye(e,t,P,k,i,q)}function lg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var o=a[i],c=o.transferSize,v=o.initiatorType,S=o.duration;if(c&&S&&lg(v)){for(v=0,S=o.responseEnd,i+=1;i<a.length;i++){var A=a[i],B=A.startTime;if(B>S)break;var G=A.transferSize,P=A.initiatorType;G&&lg(P)&&(A=A.responseEnd,v+=G*(A<S?1:(S-B)/(A-B)))}if(--i,t+=8*(c+v)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hf=null,Bf=null;function Lo(e){return e.nodeType===9?e:e.ownerDocument}function ig(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function kf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qf=null;function sE(){var e=window.event;return e&&e.type==="popstate"?e===qf?!1:(qf=e,!0):(qf=null,!1)}var sg=typeof setTimeout=="function"?setTimeout:void 0,oE=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,uE=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(e){return og.resolve(null).then(e).catch(cE)}:sg;function cE(e){setTimeout(function(){throw e})}function Ba(e){return e==="head"}function ug(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(o),Mi(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Ir(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ir(a);for(var c=a.firstChild;c;){var v=c.nextSibling,S=c.nodeName;c[pr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=v}}else a==="body"&&Ir(e.ownerDocument.body);a=o}while(a);Mi(t)}function cg(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Vf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Vf(a),Xu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function fE(e,t,a,i){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[pr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=un(e.nextSibling),e===null)break}return null}function dE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=un(e.nextSibling),e===null))return null;return e}function fg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=un(e.nextSibling),e===null))return null;return e}function Yf(e){return e.data==="$?"||e.data==="$~"}function Gf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hE(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Qf=null;function dg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return un(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function hg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function mg(e,t,a){switch(t=Lo(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ir(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xu(e)}var cn=new Map,pg=new Set;function Uo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ia=Z.d;Z.d={f:mE,r:pE,D:vE,C:gE,L:yE,m:bE,X:SE,S:xE,M:EE};function mE(){var e=ia.f(),t=No();return e||t}function pE(e){var t=Il(e);t!==null&&t.tag===5&&t.type==="form"?Mp(t):ia.r(e)}var Oi=typeof document>"u"?null:document;function vg(e,t,a){var i=Oi;if(i&&typeof t=="string"&&t){var o=tn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),pg.has(o)||(pg.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),xt(t,"link",e),ht(t),i.head.appendChild(t)))}}function vE(e){ia.D(e),vg("dns-prefetch",e,null)}function gE(e,t){ia.C(e,t),vg("preconnect",e,t)}function yE(e,t,a){ia.L(e,t,a);var i=Oi;if(i&&e&&t){var o='link[rel="preload"][as="'+tn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+tn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+tn(a.imageSizes)+'"]')):o+='[href="'+tn(e)+'"]';var c=o;switch(t){case"style":c=_i(e);break;case"script":c=ji(e)}cn.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),cn.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Jr(c))||t==="script"&&i.querySelector(Wr(c))||(t=i.createElement("link"),xt(t,"link",e),ht(t),i.head.appendChild(t)))}}function bE(e,t){ia.m(e,t);var a=Oi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+tn(i)+'"][href="'+tn(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ji(e)}if(!cn.has(c)&&(e=b({rel:"modulepreload",href:e},t),cn.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wr(c)))return}i=a.createElement("link"),xt(i,"link",e),ht(i),a.head.appendChild(i)}}}function xE(e,t,a){ia.S(e,t,a);var i=Oi;if(i&&e){var o=Jl(i).hoistableStyles,c=_i(e);t=t||"default";var v=o.get(c);if(!v){var S={loading:0,preload:null};if(v=i.querySelector(Jr(c)))S.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=cn.get(c))&&Xf(e,a);var A=v=i.createElement("link");ht(A),xt(A,"link",e),A._p=new Promise(function(B,G){A.onload=B,A.onerror=G}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ho(v,t,i)}v={type:"stylesheet",instance:v,count:1,state:S},o.set(c,v)}}}function SE(e,t){ia.X(e,t);var a=Oi;if(a&&e){var i=Jl(a).hoistableScripts,o=ji(e),c=i.get(o);c||(c=a.querySelector(Wr(o)),c||(e=b({src:e,async:!0},t),(t=cn.get(o))&&Kf(e,t),c=a.createElement("script"),ht(c),xt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function EE(e,t){ia.M(e,t);var a=Oi;if(a&&e){var i=Jl(a).hoistableScripts,o=ji(e),c=i.get(o);c||(c=a.querySelector(Wr(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=cn.get(o))&&Kf(e,t),c=a.createElement("script"),ht(c),xt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function gg(e,t,a,i){var o=(o=ve.current)?Uo(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=_i(a.href),a=Jl(o).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=_i(a.href);var c=Jl(o).hoistableStyles,v=c.get(e);if(v||(o=o.ownerDocument||o,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,v),(c=o.querySelector(Jr(e)))&&!c._p&&(v.instance=c,v.state.loading=5),cn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},cn.set(e,a),c||wE(o,e,a,v.state))),t&&i===null)throw Error(s(528,""));return v}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ji(a),a=Jl(o).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function _i(e){return'href="'+tn(e)+'"'}function Jr(e){return'link[rel="stylesheet"]['+e+"]"}function yg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function wE(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),xt(t,"link",a),ht(t),e.head.appendChild(t))}function ji(e){return'[src="'+tn(e)+'"]'}function Wr(e){return"script[async]"+e}function bg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+tn(a.href)+'"]');if(i)return t.instance=i,ht(i),i;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ht(i),xt(i,"style",o),Ho(i,a.precedence,e),t.instance=i;case"stylesheet":o=_i(a.href);var c=e.querySelector(Jr(o));if(c)return t.state.loading|=4,t.instance=c,ht(c),c;i=yg(a),(o=cn.get(o))&&Xf(i,o),c=(e.ownerDocument||e).createElement("link"),ht(c);var v=c;return v._p=new Promise(function(S,A){v.onload=S,v.onerror=A}),xt(c,"link",i),t.state.loading|=4,Ho(c,a.precedence,e),t.instance=c;case"script":return c=ji(a.src),(o=e.querySelector(Wr(c)))?(t.instance=o,ht(o),o):(i=a,(o=cn.get(c))&&(i=b({},a),Kf(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ht(o),xt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ho(i,a.precedence,e));return t.instance}function Ho(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,v=0;v<i.length;v++){var S=i[v];if(S.dataset.precedence===t)c=S;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Xf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Bo=null;function xg(e,t,a){if(Bo===null){var i=new Map,o=Bo=new Map;o.set(a,i)}else o=Bo,i=o.get(a),i||(i=new Map,o.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[pr]||c[vt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var v=c.getAttribute(t)||"";v=e+v;var S=i.get(v);S?S.push(c):i.set(v,[c])}}return i}function Sg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function CE(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Eg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function TE(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=_i(i.href),c=t.querySelector(Jr(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ko.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ht(c);return}c=t.ownerDocument||t,i=yg(i),(o=cn.get(o))&&Xf(i,o),c=c.createElement("link"),ht(c);var v=c;v._p=new Promise(function(S,A){v.onload=S,v.onerror=A}),xt(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ko.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Pf=0;function RE(e,t){return e.stylesheets&&e.count===0&&Vo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Pf===0&&(Pf=62500*rE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Pf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function ko(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var qo=null;function Vo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qo=new Map,t.forEach(NE,e),qo=null,ko.call(e))}function NE(e,t){if(!(t.state.loading&4)){var a=qo.get(e);if(a)var i=a.get(null);else{a=new Map,qo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var v=o[c];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),i=v)}i&&a.set(null,i)}o=t.instance,v=o.getAttribute("data-precedence"),c=a.get(v)||i,c===i&&a.set(null,o),a.set(v,o),this.count++,i=ko.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var es={$$typeof:M,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function AE(e,t,a,i,o,c,v,S,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vu(0),this.hiddenUpdates=Vu(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function wg(e,t,a,i,o,c,v,S,A,B,G,P){return e=new AE(e,t,a,v,A,B,G,P,S),t=1,c===!0&&(t|=24),c=Gt(3,null,null,t),e.current=c,c.stateNode=e,t=Tc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},Oc(c),e}function Cg(e){return e?(e=oi,e):oi}function Tg(e,t,a,i,o,c){o=Cg(o),i.context===null?i.context=o:i.pendingContext=o,i=Na(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Aa(e,i,t),a!==null&&(Ut(a,e,t),Mr(a,e,t))}function Rg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Zf(e,t){Rg(e,t),(e=e.alternate)&&Rg(e,t)}function Ng(e){if(e.tag===13||e.tag===31){var t=vl(e,67108864);t!==null&&Ut(t,e,67108864),Zf(e,67108864)}}function Ag(e){if(e.tag===13||e.tag===31){var t=Zt();t=Yu(t);var a=vl(e,t);a!==null&&Ut(a,e,t),Zf(e,t)}}var Yo=!0;function OE(e,t,a,i){var o=U.T;U.T=null;var c=Z.p;try{Z.p=2,Ff(e,t,a,i)}finally{Z.p=c,U.T=o}}function _E(e,t,a,i){var o=U.T;U.T=null;var c=Z.p;try{Z.p=8,Ff(e,t,a,i)}finally{Z.p=c,U.T=o}}function Ff(e,t,a,i){if(Yo){var o=$f(i);if(o===null)Lf(e,t,i,Go,a),_g(e,i);else if(ME(o,e,t,a,i))i.stopPropagation();else if(_g(e,i),t&4&&-1<jE.indexOf(e)){for(;o!==null;){var c=Il(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var v=fl(c.pendingLanes);if(v!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var A=1<<31-Vt(v);S.entanglements[1]|=A,v&=~A}On(c),(He&6)===0&&(To=kt()+500,Zr(0))}}break;case 31:case 13:S=vl(c,2),S!==null&&Ut(S,c,2),No(),Zf(c,2)}if(c=$f(i),c===null&&Lf(e,t,i,Go,a),c===o)break;o=c}o!==null&&i.stopPropagation()}else Lf(e,t,i,null,a)}}function $f(e){return e=Iu(e),If(e)}var Go=null;function If(e){if(Go=null,e=$l(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Go=e,null}function Og(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(vS()){case Hh:return 2;case Bh:return 8;case js:case gS:return 32;case kh:return 268435456;default:return 32}default:return 32}}var Jf=!1,ka=null,qa=null,Va=null,ts=new Map,ns=new Map,Ya=[],jE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function _g(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function as(e,t,a,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Il(t),t!==null&&Ng(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function ME(e,t,a,i,o){switch(t){case"focusin":return ka=as(ka,e,t,a,i,o),!0;case"dragenter":return qa=as(qa,e,t,a,i,o),!0;case"mouseover":return Va=as(Va,e,t,a,i,o),!0;case"pointerover":var c=o.pointerId;return ts.set(c,as(ts.get(c)||null,e,t,a,i,o)),!0;case"gotpointercapture":return c=o.pointerId,ns.set(c,as(ns.get(c)||null,e,t,a,i,o)),!0}return!1}function jg(e){var t=$l(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Xh(e.priority,function(){Ag(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Xh(e.priority,function(){Ag(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=$f(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);$u=i,a.target.dispatchEvent(i),$u=null}else return t=Il(a),t!==null&&Ng(t),e.blockedOn=a,!1;t.shift()}return!0}function Mg(e,t,a){Qo(e)&&a.delete(t)}function DE(){Jf=!1,ka!==null&&Qo(ka)&&(ka=null),qa!==null&&Qo(qa)&&(qa=null),Va!==null&&Qo(Va)&&(Va=null),ts.forEach(Mg),ns.forEach(Mg)}function Xo(e,t){e.blockedOn===t&&(e.blockedOn=null,Jf||(Jf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,DE)))}var Ko=null;function Dg(e){Ko!==e&&(Ko=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ko===e&&(Ko=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(If(i||a)===null)continue;break}var c=Il(a);c!==null&&(e.splice(t,3),t-=3,Fc(c,{pending:!0,data:o,method:a.method,action:i},i,o))}}))}function Mi(e){function t(A){return Xo(A,e)}ka!==null&&Xo(ka,e),qa!==null&&Xo(qa,e),Va!==null&&Xo(Va,e),ts.forEach(t),ns.forEach(t);for(var a=0;a<Ya.length;a++){var i=Ya[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ya.length&&(a=Ya[0],a.blockedOn===null);)jg(a),a.blockedOn===null&&Ya.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var o=a[i],c=a[i+1],v=o[_t]||null;if(typeof c=="function")v||Dg(a);else if(v){var S=null;if(c&&c.hasAttribute("formAction")){if(o=c,v=c[_t]||null)S=v.formAction;else if(If(o)!==null)continue}else S=v.action;typeof S=="function"?a[i+1]=S:(a.splice(i,3),i-=3),Dg(a)}}}function zg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(v){return o=v})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Wf(e){this._internalRoot=e}Po.prototype.render=Wf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=Zt();Tg(a,i,e,t,null,null)},Po.prototype.unmount=Wf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tg(e.current,2,null,e,null,null),No(),t[Fl]=null}};function Po(e){this._internalRoot=e}Po.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qh();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ya.length&&t!==0&&t<Ya[a].priority;a++);Ya.splice(a,0,e),a===0&&jg(e)}};var Lg=l.version;if(Lg!=="19.2.4")throw Error(s(527,Lg,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var zE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{dr=Zo.inject(zE),qt=Zo}catch{}}return is.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",o=Yp,c=Gp,v=Qp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=wg(e,1,!1,null,null,a,i,null,o,c,v,zg),e[Fl]=t.current,zf(e),new Wf(t)},is.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,o="",c=Yp,v=Gp,S=Qp,A=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),t=wg(e,1,!0,t,a??null,i,o,A,c,v,S,zg),t.context=Cg(null),a=t.current,i=Zt(),i=Yu(i),o=Na(i),o.callback=null,Aa(a,o,i),a=i,t.current.lanes=a,mr(t,a),On(t),e[Fl]=t.current,zf(e),new Po(t)},is.version="19.2.4",is}var Kg;function QE(){if(Kg)return ad.exports;Kg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),ad.exports=GE(),ad.exports}var XE=QE();const KE=lh(XE);var lr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dl,Za,Xi,n0,PE=(n0=class extends lr{constructor(){super();ce(this,Dl);ce(this,Za);ce(this,Xi);ne(this,Xi,l=>{if(typeof window<"u"&&window.addEventListener){const r=()=>l();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){O(this,Za)||this.setEventListener(O(this,Xi))}onUnsubscribe(){var l;this.hasListeners()||((l=O(this,Za))==null||l.call(this),ne(this,Za,void 0))}setEventListener(l){var r;ne(this,Xi,l),(r=O(this,Za))==null||r.call(this),ne(this,Za,l(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(l){O(this,Dl)!==l&&(ne(this,Dl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(r=>{r(l)})}isFocused(){var l;return typeof O(this,Dl)=="boolean"?O(this,Dl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},Dl=new WeakMap,Za=new WeakMap,Xi=new WeakMap,n0),rh=new PE,ZE={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},Fa,ah,a0,FE=(a0=class{constructor(){ce(this,Fa,ZE);ce(this,ah,!1)}setTimeoutProvider(n){ne(this,Fa,n)}setTimeout(n,l){return O(this,Fa).setTimeout(n,l)}clearTimeout(n){O(this,Fa).clearTimeout(n)}setInterval(n,l){return O(this,Fa).setInterval(n,l)}clearInterval(n){O(this,Fa).clearInterval(n)}},Fa=new WeakMap,ah=new WeakMap,a0),Ml=new FE;function $E(n){setTimeout(n,0)}var IE=typeof window>"u"||"Deno"in globalThis;function At(){}function JE(n,l){return typeof n=="function"?n(l):n}function Td(n){return typeof n=="number"&&n>=0&&n!==1/0}function p0(n,l){return Math.max(n+(l||0)-Date.now(),0)}function al(n,l){return typeof n=="function"?n(l):n}function dn(n,l){return typeof n=="function"?n(l):n}function Pg(n,l){const{type:r="all",exact:s,fetchStatus:u,predicate:f,queryKey:d,stale:m}=n;if(d){if(s){if(l.queryHash!==sh(d,l.options))return!1}else if(!ms(l.queryKey,d))return!1}if(r!=="all"){const g=l.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&l.isStale()!==m||u&&u!==l.state.fetchStatus||f&&!f(l))}function Zg(n,l){const{exact:r,status:s,predicate:u,mutationKey:f}=n;if(f){if(!l.options.mutationKey)return!1;if(r){if(Yl(l.options.mutationKey)!==Yl(f))return!1}else if(!ms(l.options.mutationKey,f))return!1}return!(s&&l.state.status!==s||u&&!u(l))}function sh(n,l){return((l==null?void 0:l.queryKeyHashFn)||Yl)(n)}function Yl(n){return JSON.stringify(n,(l,r)=>Rd(r)?Object.keys(r).sort().reduce((s,u)=>(s[u]=r[u],s),{}):r)}function ms(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(r=>ms(n[r],l[r])):!1}var WE=Object.prototype.hasOwnProperty;function v0(n,l,r=0){if(n===l)return n;if(r>500)return l;const s=Fg(n)&&Fg(l);if(!s&&!(Rd(n)&&Rd(l)))return l;const f=(s?n:Object.keys(n)).length,d=s?l:Object.keys(l),m=d.length,g=s?new Array(m):{};let p=0;for(let x=0;x<m;x++){const b=s?x:d[x],w=n[b],C=l[b];if(w===C){g[b]=w,(s?x<f:WE.call(n,b))&&p++;continue}if(w===null||C===null||typeof w!="object"||typeof C!="object"){g[b]=C;continue}const N=v0(w,C,r+1);g[b]=N,N===w&&p++}return f===m&&p===f?n:g}function du(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(n[r]!==l[r])return!1;return!0}function Fg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Rd(n){if(!$g(n))return!1;const l=n.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!$g(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function $g(n){return Object.prototype.toString.call(n)==="[object Object]"}function e2(n){return new Promise(l=>{Ml.setTimeout(l,n)})}function Nd(n,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,l):r.structuralSharing!==!1?v0(n,l):l}function t2(n,l,r=0){const s=[...n,l];return r&&s.length>r?s.slice(1):s}function n2(n,l,r=0){const s=[l,...n];return r&&s.length>r?s.slice(0,-1):s}var oh=Symbol();function g0(n,l){return!n.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!n.queryFn||n.queryFn===oh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function uh(n,l){return typeof n=="function"?n(...l):!!n}function a2(n,l,r){let s=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??(u=l()),s||(s=!0,u.aborted?r():u.addEventListener("abort",r,{once:!0})),u)}),n}var ps=(()=>{let n=()=>IE;return{isServer(){return n()},setIsServer(l){n=l}}})();function Ad(){let n,l;const r=new Promise((u,f)=>{n=u,l=f});r.status="pending",r.catch(()=>{});function s(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{s({status:"fulfilled",value:u}),n(u)},r.reject=u=>{s({status:"rejected",reason:u}),l(u)},r}var l2=$E;function i2(){let n=[],l=0,r=m=>{m()},s=m=>{m()},u=l2;const f=m=>{l?n.push(m):u(()=>{r(m)})},d=()=>{const m=n;n=[],m.length&&u(()=>{s(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;l++;try{g=m()}finally{l--,l||d()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{u=m}}}var ft=i2(),Ki,$a,Pi,l0,r2=(l0=class extends lr{constructor(){super();ce(this,Ki,!0);ce(this,$a);ce(this,Pi);ne(this,Pi,l=>{if(typeof window<"u"&&window.addEventListener){const r=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){O(this,$a)||this.setEventListener(O(this,Pi))}onUnsubscribe(){var l;this.hasListeners()||((l=O(this,$a))==null||l.call(this),ne(this,$a,void 0))}setEventListener(l){var r;ne(this,Pi,l),(r=O(this,$a))==null||r.call(this),ne(this,$a,l(this.setOnline.bind(this)))}setOnline(l){O(this,Ki)!==l&&(ne(this,Ki,l),this.listeners.forEach(s=>{s(l)}))}isOnline(){return O(this,Ki)}},Ki=new WeakMap,$a=new WeakMap,Pi=new WeakMap,l0),hu=new r2;function s2(n){return Math.min(1e3*2**n,3e4)}function y0(n){return(n??"online")==="online"?hu.isOnline():!0}var Od=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function b0(n){let l=!1,r=0,s;const u=Ad(),f=()=>u.status!=="pending",d=E=>{var T;if(!f()){const R=new Od(E);w(R),(T=n.onCancel)==null||T.call(n,R)}},m=()=>{l=!0},g=()=>{l=!1},p=()=>rh.isFocused()&&(n.networkMode==="always"||hu.isOnline())&&n.canRun(),x=()=>y0(n.networkMode)&&n.canRun(),b=E=>{f()||(s==null||s(),u.resolve(E))},w=E=>{f()||(s==null||s(),u.reject(E))},C=()=>new Promise(E=>{var T;s=R=>{(f()||p())&&E(R)},(T=n.onPause)==null||T.call(n)}).then(()=>{var E;s=void 0,f()||(E=n.onContinue)==null||E.call(n)}),N=()=>{if(f())return;let E;const T=r===0?n.initialPromise:void 0;try{E=T??n.fn()}catch(R){E=Promise.reject(R)}Promise.resolve(E).then(b).catch(R=>{var F;if(f())return;const j=n.retry??(ps.isServer()?0:3),M=n.retryDelay??s2,z=typeof M=="function"?M(r,R):M,V=j===!0||typeof j=="number"&&r<j||typeof j=="function"&&j(r,R);if(l||!V){w(R);return}r++,(F=n.onFail)==null||F.call(n,r,R),e2(z).then(()=>p()?void 0:C()).then(()=>{l?w(R):N()})})};return{promise:u,status:()=>u.status,cancel:d,continue:()=>(s==null||s(),u),cancelRetry:m,continueRetry:g,canStart:x,start:()=>(x()?N():C().then(N),u)}}var zl,i0,x0=(i0=class{constructor(){ce(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Td(this.gcTime)&&ne(this,zl,Ml.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ps.isServer()?1/0:300*1e3))}clearGcTimeout(){O(this,zl)&&(Ml.clearTimeout(O(this,zl)),ne(this,zl,void 0))}},zl=new WeakMap,i0),Ll,Zi,fn,Ul,pt,xs,Hl,Ft,S0,sa,r0,o2=(r0=class extends x0{constructor(l){super();ce(this,Ft);ce(this,Ll);ce(this,Zi);ce(this,fn);ce(this,Ul);ce(this,pt);ce(this,xs);ce(this,Hl);ne(this,Hl,!1),ne(this,xs,l.defaultOptions),this.setOptions(l.options),this.observers=[],ne(this,Ul,l.client),ne(this,fn,O(this,Ul).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,ne(this,Ll,Jg(this.options)),this.state=l.state??O(this,Ll),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=O(this,pt))==null?void 0:l.promise}setOptions(l){if(this.options={...O(this,xs),...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Jg(this.options);r.data!==void 0&&(this.setState(Ig(r.data,r.dataUpdatedAt)),ne(this,Ll,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,fn).remove(this)}setData(l,r){const s=Nd(this.state.data,l,this.options);return Se(this,Ft,sa).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(l,r){Se(this,Ft,sa).call(this,{type:"setState",state:l,setStateOptions:r})}cancel(l){var s,u;const r=(s=O(this,pt))==null?void 0:s.promise;return(u=O(this,pt))==null||u.cancel(l),r?r.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return O(this,Ll)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>dn(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===oh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>al(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!p0(this.state.dataUpdatedAt,l)}onFocus(){var r;const l=this.observers.find(s=>s.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(r=O(this,pt))==null||r.continue()}onOnline(){var r;const l=this.observers.find(s=>s.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(r=O(this,pt))==null||r.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),O(this,fn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(r=>r!==l),this.observers.length||(O(this,pt)&&(O(this,Hl)||Se(this,Ft,S0).call(this)?O(this,pt).cancel({revert:!0}):O(this,pt).cancelRetry()),this.scheduleGc()),O(this,fn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Ft,sa).call(this,{type:"invalidate"})}async fetch(l,r){var g,p,x,b,w,C,N,E,T,R,j,M;if(this.state.fetchStatus!=="idle"&&((g=O(this,pt))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(O(this,pt))return O(this,pt).continueRetry(),O(this,pt).promise}if(l&&this.setOptions(l),!this.options.queryFn){const z=this.observers.find(V=>V.options.queryFn);z&&this.setOptions(z.options)}const s=new AbortController,u=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(ne(this,Hl,!0),s.signal)})},f=()=>{const z=g0(this.options,r),F=(()=>{const Y={client:O(this,Ul),queryKey:this.queryKey,meta:this.meta};return u(Y),Y})();return ne(this,Hl,!1),this.options.persister?this.options.persister(z,F,this):z(F)},m=(()=>{const z={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:O(this,Ul),state:this.state,fetchFn:f};return u(z),z})();(p=this.options.behavior)==null||p.onFetch(m,this),ne(this,Zi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&Se(this,Ft,sa).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta}),ne(this,pt,b0({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:z=>{z instanceof Od&&z.revert&&this.setState({...O(this,Zi),fetchStatus:"idle"}),s.abort()},onFail:(z,V)=>{Se(this,Ft,sa).call(this,{type:"failed",failureCount:z,error:V})},onPause:()=>{Se(this,Ft,sa).call(this,{type:"pause"})},onContinue:()=>{Se(this,Ft,sa).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const z=await O(this,pt).start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),(C=(w=O(this,fn).config).onSuccess)==null||C.call(w,z,this),(E=(N=O(this,fn).config).onSettled)==null||E.call(N,z,this.state.error,this),z}catch(z){if(z instanceof Od){if(z.silent)return O(this,pt).promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw Se(this,Ft,sa).call(this,{type:"error",error:z}),(R=(T=O(this,fn).config).onError)==null||R.call(T,z,this),(M=(j=O(this,fn).config).onSettled)==null||M.call(j,this.state.data,z,this),z}finally{this.scheduleGc()}}},Ll=new WeakMap,Zi=new WeakMap,fn=new WeakMap,Ul=new WeakMap,pt=new WeakMap,xs=new WeakMap,Hl=new WeakMap,Ft=new WeakSet,S0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},sa=function(l){const r=s=>{switch(l.type){case"failed":return{...s,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...E0(s.data,this.options),fetchMeta:l.meta??null};case"success":const u={...s,...Ig(l.data,l.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Zi,l.manual?u:void 0),u;case"error":const f=l.error;return{...s,error:f,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...l.state}}};this.state=r(this.state),ft.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),O(this,fn).notify({query:this,type:"updated",action:l})})},r0);function E0(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:y0(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Ig(n,l){return{data:n,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Jg(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,r=l!==void 0,s=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ht,_e,Ss,Nt,Bl,Fi,ua,Ia,Es,$i,Ii,kl,ql,Ja,Ji,Be,cs,_d,jd,Md,Dd,zd,Ld,Ud,w0,s0,u2=(s0=class extends lr{constructor(l,r){super();ce(this,Be);ce(this,Ht);ce(this,_e);ce(this,Ss);ce(this,Nt);ce(this,Bl);ce(this,Fi);ce(this,ua);ce(this,Ia);ce(this,Es);ce(this,$i);ce(this,Ii);ce(this,kl);ce(this,ql);ce(this,Ja);ce(this,Ji,new Set);this.options=r,ne(this,Ht,l),ne(this,Ia,null),ne(this,ua,Ad()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,_e).addObserver(this),Wg(O(this,_e),this.options)?Se(this,Be,cs).call(this):this.updateResult(),Se(this,Be,Dd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hd(O(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hd(O(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,Be,zd).call(this),Se(this,Be,Ld).call(this),O(this,_e).removeObserver(this)}setOptions(l){const r=this.options,s=O(this,_e);if(this.options=O(this,Ht).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof dn(this.options.enabled,O(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,Be,Ud).call(this),O(this,_e).setOptions(this.options),r._defaulted&&!du(this.options,r)&&O(this,Ht).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,_e),observer:this});const u=this.hasListeners();u&&ey(O(this,_e),s,this.options,r)&&Se(this,Be,cs).call(this),this.updateResult(),u&&(O(this,_e)!==s||dn(this.options.enabled,O(this,_e))!==dn(r.enabled,O(this,_e))||al(this.options.staleTime,O(this,_e))!==al(r.staleTime,O(this,_e)))&&Se(this,Be,_d).call(this);const f=Se(this,Be,jd).call(this);u&&(O(this,_e)!==s||dn(this.options.enabled,O(this,_e))!==dn(r.enabled,O(this,_e))||f!==O(this,Ja))&&Se(this,Be,Md).call(this,f)}getOptimisticResult(l){const r=O(this,Ht).getQueryCache().build(O(this,Ht),l),s=this.createResult(r,l);return f2(this,s)&&(ne(this,Nt,s),ne(this,Fi,this.options),ne(this,Bl,O(this,_e).state)),s}getCurrentResult(){return O(this,Nt)}trackResult(l,r){return new Proxy(l,{get:(s,u)=>(this.trackProp(u),r==null||r(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&O(this,ua).status==="pending"&&O(this,ua).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,u))})}trackProp(l){O(this,Ji).add(l)}getCurrentQuery(){return O(this,_e)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const r=O(this,Ht).defaultQueryOptions(l),s=O(this,Ht).getQueryCache().build(O(this,Ht),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(l){return Se(this,Be,cs).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,Nt)))}createResult(l,r){var ae;const s=O(this,_e),u=this.options,f=O(this,Nt),d=O(this,Bl),m=O(this,Fi),p=l!==s?l.state:O(this,Ss),{state:x}=l;let b={...x},w=!1,C;if(r._optimisticResults){const ie=this.hasListeners(),oe=!ie&&Wg(l,r),ee=ie&&ey(l,s,r,u);(oe||ee)&&(b={...b,...E0(x.data,l.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:N,errorUpdatedAt:E,status:T}=b;C=b.data;let R=!1;if(r.placeholderData!==void 0&&C===void 0&&T==="pending"){let ie;f!=null&&f.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(ie=f.data,R=!0):ie=typeof r.placeholderData=="function"?r.placeholderData((ae=O(this,Ii))==null?void 0:ae.state.data,O(this,Ii)):r.placeholderData,ie!==void 0&&(T="success",C=Nd(f==null?void 0:f.data,ie,r),w=!0)}if(r.select&&C!==void 0&&!R)if(f&&C===(d==null?void 0:d.data)&&r.select===O(this,Es))C=O(this,$i);else try{ne(this,Es,r.select),C=r.select(C),C=Nd(f==null?void 0:f.data,C,r),ne(this,$i,C),ne(this,Ia,null)}catch(ie){ne(this,Ia,ie)}O(this,Ia)&&(N=O(this,Ia),C=O(this,$i),E=Date.now(),T="error");const j=b.fetchStatus==="fetching",M=T==="pending",z=T==="error",V=M&&j,F=C!==void 0,$={status:T,fetchStatus:b.fetchStatus,isPending:M,isSuccess:T==="success",isError:z,isInitialLoading:V,isLoading:V,data:C,dataUpdatedAt:b.dataUpdatedAt,error:N,errorUpdatedAt:E,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:j,isRefetching:j&&!M,isLoadingError:z&&!F,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:z&&F,isStale:ch(l,r),refetch:this.refetch,promise:O(this,ua),isEnabled:dn(r.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const ie=$.data!==void 0,oe=$.status==="error"&&!ie,ee=de=>{oe?de.reject($.error):ie&&de.resolve($.data)},pe=()=>{const de=ne(this,ua,$.promise=Ad());ee(de)},ue=O(this,ua);switch(ue.status){case"pending":l.queryHash===s.queryHash&&ee(ue);break;case"fulfilled":(oe||$.data!==ue.value)&&pe();break;case"rejected":(!oe||$.error!==ue.reason)&&pe();break}}return $}updateResult(){const l=O(this,Nt),r=this.createResult(O(this,_e),this.options);if(ne(this,Bl,O(this,_e).state),ne(this,Fi,this.options),O(this,Bl).data!==void 0&&ne(this,Ii,O(this,_e)),du(r,l))return;ne(this,Nt,r);const s=()=>{if(!l)return!0;const{notifyOnChangeProps:u}=this.options,f=typeof u=="function"?u():u;if(f==="all"||!f&&!O(this,Ji).size)return!0;const d=new Set(f??O(this,Ji));return this.options.throwOnError&&d.add("error"),Object.keys(O(this,Nt)).some(m=>{const g=m;return O(this,Nt)[g]!==l[g]&&d.has(g)})};Se(this,Be,w0).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,Be,Dd).call(this)}},Ht=new WeakMap,_e=new WeakMap,Ss=new WeakMap,Nt=new WeakMap,Bl=new WeakMap,Fi=new WeakMap,ua=new WeakMap,Ia=new WeakMap,Es=new WeakMap,$i=new WeakMap,Ii=new WeakMap,kl=new WeakMap,ql=new WeakMap,Ja=new WeakMap,Ji=new WeakMap,Be=new WeakSet,cs=function(l){Se(this,Be,Ud).call(this);let r=O(this,_e).fetch(this.options,l);return l!=null&&l.throwOnError||(r=r.catch(At)),r},_d=function(){Se(this,Be,zd).call(this);const l=al(this.options.staleTime,O(this,_e));if(ps.isServer()||O(this,Nt).isStale||!Td(l))return;const s=p0(O(this,Nt).dataUpdatedAt,l)+1;ne(this,kl,Ml.setTimeout(()=>{O(this,Nt).isStale||this.updateResult()},s))},jd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,_e)):this.options.refetchInterval)??!1},Md=function(l){Se(this,Be,Ld).call(this),ne(this,Ja,l),!(ps.isServer()||dn(this.options.enabled,O(this,_e))===!1||!Td(O(this,Ja))||O(this,Ja)===0)&&ne(this,ql,Ml.setInterval(()=>{(this.options.refetchIntervalInBackground||rh.isFocused())&&Se(this,Be,cs).call(this)},O(this,Ja)))},Dd=function(){Se(this,Be,_d).call(this),Se(this,Be,Md).call(this,Se(this,Be,jd).call(this))},zd=function(){O(this,kl)&&(Ml.clearTimeout(O(this,kl)),ne(this,kl,void 0))},Ld=function(){O(this,ql)&&(Ml.clearInterval(O(this,ql)),ne(this,ql,void 0))},Ud=function(){const l=O(this,Ht).getQueryCache().build(O(this,Ht),this.options);if(l===O(this,_e))return;const r=O(this,_e);ne(this,_e,l),ne(this,Ss,l.state),this.hasListeners()&&(r==null||r.removeObserver(this),l.addObserver(this))},w0=function(l){ft.batch(()=>{l.listeners&&this.listeners.forEach(r=>{r(O(this,Nt))}),O(this,Ht).getQueryCache().notify({query:O(this,_e),type:"observerResultsUpdated"})})},s0);function c2(n,l){return dn(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function Wg(n,l){return c2(n,l)||n.state.data!==void 0&&Hd(n,l,l.refetchOnMount)}function Hd(n,l,r){if(dn(l.enabled,n)!==!1&&al(l.staleTime,n)!=="static"){const s=typeof r=="function"?r(n):r;return s==="always"||s!==!1&&ch(n,l)}return!1}function ey(n,l,r,s){return(n!==l||dn(s.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&ch(n,r)}function ch(n,l){return dn(l.enabled,n)!==!1&&n.isStaleByTime(al(l.staleTime,n))}function f2(n,l){return!du(n.getCurrentResult(),l)}function ty(n){return{onFetch:(l,r)=>{var x,b,w,C,N;const s=l.options,u=(w=(b=(x=l.fetchOptions)==null?void 0:x.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,f=((C=l.state.data)==null?void 0:C.pages)||[],d=((N=l.state.data)==null?void 0:N.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let E=!1;const T=M=>{a2(M,()=>l.signal,()=>E=!0)},R=g0(l.options,l.fetchOptions),j=async(M,z,V)=>{if(E)return Promise.reject();if(z==null&&M.pages.length)return Promise.resolve(M);const Y=(()=>{const oe={client:l.client,queryKey:l.queryKey,pageParam:z,direction:V?"backward":"forward",meta:l.options.meta};return T(oe),oe})(),$=await R(Y),{maxPages:ae}=l.options,ie=V?n2:t2;return{pages:ie(M.pages,$,ae),pageParams:ie(M.pageParams,z,ae)}};if(u&&f.length){const M=u==="backward",z=M?d2:ny,V={pages:f,pageParams:d},F=z(s,V);m=await j(V,F,M)}else{const M=n??f.length;do{const z=g===0?d[0]??s.initialPageParam:ny(s,m);if(g>0&&z==null)break;m=await j(m,z),g++}while(g<M)}return m};l.options.persister?l.fetchFn=()=>{var E,T;return(T=(E=l.options).persister)==null?void 0:T.call(E,p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r)}:l.fetchFn=p}}}function ny(n,{pages:l,pageParams:r}){const s=l.length-1;return l.length>0?n.getNextPageParam(l[s],l,r[s],r):void 0}function d2(n,{pages:l,pageParams:r}){var s;return l.length>0?(s=n.getPreviousPageParam)==null?void 0:s.call(n,l[0],l,r[0],r):void 0}var ws,_n,wt,Vl,jn,Ka,o0,h2=(o0=class extends x0{constructor(l){super();ce(this,jn);ce(this,ws);ce(this,_n);ce(this,wt);ce(this,Vl);ne(this,ws,l.client),this.mutationId=l.mutationId,ne(this,wt,l.mutationCache),ne(this,_n,[]),this.state=l.state||C0(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){O(this,_n).includes(l)||(O(this,_n).push(l),this.clearGcTimeout(),O(this,wt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){ne(this,_n,O(this,_n).filter(r=>r!==l)),this.scheduleGc(),O(this,wt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){O(this,_n).length||(this.state.status==="pending"?this.scheduleGc():O(this,wt).remove(this))}continue(){var l;return((l=O(this,Vl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var d,m,g,p,x,b,w,C,N,E,T,R,j,M,z,V,F,Y;const r=()=>{Se(this,jn,Ka).call(this,{type:"continue"})},s={client:O(this,ws),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,Vl,b0({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:($,ae)=>{Se(this,jn,Ka).call(this,{type:"failed",failureCount:$,error:ae})},onPause:()=>{Se(this,jn,Ka).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,wt).canRun(this)}));const u=this.state.status==="pending",f=!O(this,Vl).canStart();try{if(u)r();else{Se(this,jn,Ka).call(this,{type:"pending",variables:l,isPaused:f}),O(this,wt).config.onMutate&&await O(this,wt).config.onMutate(l,this,s);const ae=await((m=(d=this.options).onMutate)==null?void 0:m.call(d,l,s));ae!==this.state.context&&Se(this,jn,Ka).call(this,{type:"pending",context:ae,variables:l,isPaused:f})}const $=await O(this,Vl).start();return await((p=(g=O(this,wt).config).onSuccess)==null?void 0:p.call(g,$,l,this.state.context,this,s)),await((b=(x=this.options).onSuccess)==null?void 0:b.call(x,$,l,this.state.context,s)),await((C=(w=O(this,wt).config).onSettled)==null?void 0:C.call(w,$,null,this.state.variables,this.state.context,this,s)),await((E=(N=this.options).onSettled)==null?void 0:E.call(N,$,null,l,this.state.context,s)),Se(this,jn,Ka).call(this,{type:"success",data:$}),$}catch($){try{await((R=(T=O(this,wt).config).onError)==null?void 0:R.call(T,$,l,this.state.context,this,s))}catch(ae){Promise.reject(ae)}try{await((M=(j=this.options).onError)==null?void 0:M.call(j,$,l,this.state.context,s))}catch(ae){Promise.reject(ae)}try{await((V=(z=O(this,wt).config).onSettled)==null?void 0:V.call(z,void 0,$,this.state.variables,this.state.context,this,s))}catch(ae){Promise.reject(ae)}try{await((Y=(F=this.options).onSettled)==null?void 0:Y.call(F,void 0,$,l,this.state.context,s))}catch(ae){Promise.reject(ae)}throw Se(this,jn,Ka).call(this,{type:"error",error:$}),$}finally{O(this,wt).runNext(this)}}},ws=new WeakMap,_n=new WeakMap,wt=new WeakMap,Vl=new WeakMap,jn=new WeakSet,Ka=function(l){const r=s=>{switch(l.type){case"failed":return{...s,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...s,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:l.error,failureCount:s.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ft.batch(()=>{O(this,_n).forEach(s=>{s.onMutationUpdate(l)}),O(this,wt).notify({mutation:this,type:"updated",action:l})})},o0);function C0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ca,En,Cs,u0,m2=(u0=class extends lr{constructor(l={}){super();ce(this,ca);ce(this,En);ce(this,Cs);this.config=l,ne(this,ca,new Set),ne(this,En,new Map),ne(this,Cs,0)}build(l,r,s){const u=new h2({client:l,mutationCache:this,mutationId:++Fo(this,Cs)._,options:l.defaultMutationOptions(r),state:s});return this.add(u),u}add(l){O(this,ca).add(l);const r=$o(l);if(typeof r=="string"){const s=O(this,En).get(r);s?s.push(l):O(this,En).set(r,[l])}this.notify({type:"added",mutation:l})}remove(l){if(O(this,ca).delete(l)){const r=$o(l);if(typeof r=="string"){const s=O(this,En).get(r);if(s)if(s.length>1){const u=s.indexOf(l);u!==-1&&s.splice(u,1)}else s[0]===l&&O(this,En).delete(r)}}this.notify({type:"removed",mutation:l})}canRun(l){const r=$o(l);if(typeof r=="string"){const s=O(this,En).get(r),u=s==null?void 0:s.find(f=>f.state.status==="pending");return!u||u===l}else return!0}runNext(l){var s;const r=$o(l);if(typeof r=="string"){const u=(s=O(this,En).get(r))==null?void 0:s.find(f=>f!==l&&f.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ft.batch(()=>{O(this,ca).forEach(l=>{this.notify({type:"removed",mutation:l})}),O(this,ca).clear(),O(this,En).clear()})}getAll(){return Array.from(O(this,ca))}find(l){const r={exact:!0,...l};return this.getAll().find(s=>Zg(r,s))}findAll(l={}){return this.getAll().filter(r=>Zg(l,r))}notify(l){ft.batch(()=>{this.listeners.forEach(r=>{r(l)})})}resumePausedMutations(){const l=this.getAll().filter(r=>r.state.isPaused);return ft.batch(()=>Promise.all(l.map(r=>r.continue().catch(At))))}},ca=new WeakMap,En=new WeakMap,Cs=new WeakMap,u0);function $o(n){var l;return(l=n.options.scope)==null?void 0:l.id}var fa,Wa,Bt,da,ha,iu,Bd,c0,p2=(c0=class extends lr{constructor(r,s){super();ce(this,ha);ce(this,fa);ce(this,Wa);ce(this,Bt);ce(this,da);ne(this,fa,r),this.setOptions(s),this.bindMethods(),Se(this,ha,iu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var u;const s=this.options;this.options=O(this,fa).defaultMutationOptions(r),du(this.options,s)||O(this,fa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,Bt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Yl(s.mutationKey)!==Yl(this.options.mutationKey)?this.reset():((u=O(this,Bt))==null?void 0:u.state.status)==="pending"&&O(this,Bt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=O(this,Bt))==null||r.removeObserver(this)}onMutationUpdate(r){Se(this,ha,iu).call(this),Se(this,ha,Bd).call(this,r)}getCurrentResult(){return O(this,Wa)}reset(){var r;(r=O(this,Bt))==null||r.removeObserver(this),ne(this,Bt,void 0),Se(this,ha,iu).call(this),Se(this,ha,Bd).call(this)}mutate(r,s){var u;return ne(this,da,s),(u=O(this,Bt))==null||u.removeObserver(this),ne(this,Bt,O(this,fa).getMutationCache().build(O(this,fa),this.options)),O(this,Bt).addObserver(this),O(this,Bt).execute(r)}},fa=new WeakMap,Wa=new WeakMap,Bt=new WeakMap,da=new WeakMap,ha=new WeakSet,iu=function(){var s;const r=((s=O(this,Bt))==null?void 0:s.state)??C0();ne(this,Wa,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Bd=function(r){ft.batch(()=>{var s,u,f,d,m,g,p,x;if(O(this,da)&&this.hasListeners()){const b=O(this,Wa).variables,w=O(this,Wa).context,C={client:O(this,fa),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(u=(s=O(this,da)).onSuccess)==null||u.call(s,r.data,b,w,C)}catch(N){Promise.reject(N)}try{(d=(f=O(this,da)).onSettled)==null||d.call(f,r.data,null,b,w,C)}catch(N){Promise.reject(N)}}else if((r==null?void 0:r.type)==="error"){try{(g=(m=O(this,da)).onError)==null||g.call(m,r.error,b,w,C)}catch(N){Promise.reject(N)}try{(x=(p=O(this,da)).onSettled)==null||x.call(p,void 0,r.error,b,w,C)}catch(N){Promise.reject(N)}}}this.listeners.forEach(b=>{b(O(this,Wa))})})},c0),Mn,f0,v2=(f0=class extends lr{constructor(l={}){super();ce(this,Mn);this.config=l,ne(this,Mn,new Map)}build(l,r,s){const u=r.queryKey,f=r.queryHash??sh(u,r);let d=this.get(f);return d||(d=new o2({client:l,queryKey:u,queryHash:f,options:l.defaultQueryOptions(r),state:s,defaultOptions:l.getQueryDefaults(u)}),this.add(d)),d}add(l){O(this,Mn).has(l.queryHash)||(O(this,Mn).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const r=O(this,Mn).get(l.queryHash);r&&(l.destroy(),r===l&&O(this,Mn).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){ft.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return O(this,Mn).get(l)}getAll(){return[...O(this,Mn).values()]}find(l){const r={exact:!0,...l};return this.getAll().find(s=>Pg(r,s))}findAll(l={}){const r=this.getAll();return Object.keys(l).length>0?r.filter(s=>Pg(l,s)):r}notify(l){ft.batch(()=>{this.listeners.forEach(r=>{r(l)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Mn=new WeakMap,f0),nt,el,tl,Wi,er,nl,tr,nr,d0,g2=(d0=class{constructor(n={}){ce(this,nt);ce(this,el);ce(this,tl);ce(this,Wi);ce(this,er);ce(this,nl);ce(this,tr);ce(this,nr);ne(this,nt,n.queryCache||new v2),ne(this,el,n.mutationCache||new m2),ne(this,tl,n.defaultOptions||{}),ne(this,Wi,new Map),ne(this,er,new Map),ne(this,nl,0)}mount(){Fo(this,nl)._++,O(this,nl)===1&&(ne(this,tr,rh.subscribe(async n=>{n&&(await this.resumePausedMutations(),O(this,nt).onFocus())})),ne(this,nr,hu.subscribe(async n=>{n&&(await this.resumePausedMutations(),O(this,nt).onOnline())})))}unmount(){var n,l;Fo(this,nl)._--,O(this,nl)===0&&((n=O(this,tr))==null||n.call(this),ne(this,tr,void 0),(l=O(this,nr))==null||l.call(this),ne(this,nr,void 0))}isFetching(n){return O(this,nt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return O(this,el).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=O(this,nt).get(l.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),r=O(this,nt).build(this,l),s=r.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(al(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(s))}getQueriesData(n){return O(this,nt).findAll(n).map(({queryKey:l,state:r})=>{const s=r.data;return[l,s]})}setQueryData(n,l,r){const s=this.defaultQueryOptions({queryKey:n}),u=O(this,nt).get(s.queryHash),f=u==null?void 0:u.state.data,d=JE(l,f);if(d!==void 0)return O(this,nt).build(this,s).setData(d,{...r,manual:!0})}setQueriesData(n,l,r){return ft.batch(()=>O(this,nt).findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,l,r)]))}getQueryState(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=O(this,nt).get(l.queryHash))==null?void 0:r.state}removeQueries(n){const l=O(this,nt);ft.batch(()=>{l.findAll(n).forEach(r=>{l.remove(r)})})}resetQueries(n,l){const r=O(this,nt);return ft.batch(()=>(r.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const r={revert:!0,...l},s=ft.batch(()=>O(this,nt).findAll(n).map(u=>u.cancel(r)));return Promise.all(s).then(At).catch(At)}invalidateQueries(n,l={}){return ft.batch(()=>(O(this,nt).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},l)))}refetchQueries(n,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},s=ft.batch(()=>O(this,nt).findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,r);return r.throwOnError||(f=f.catch(At)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(At)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const r=O(this,nt).build(this,l);return r.isStaleByTime(al(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(At).catch(At)}fetchInfiniteQuery(n){return n.behavior=ty(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(At).catch(At)}ensureInfiniteQueryData(n){return n.behavior=ty(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return hu.isOnline()?O(this,el).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,nt)}getMutationCache(){return O(this,el)}getDefaultOptions(){return O(this,tl)}setDefaultOptions(n){ne(this,tl,n)}setQueryDefaults(n,l){O(this,Wi).set(Yl(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...O(this,Wi).values()],r={};return l.forEach(s=>{ms(n,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(n,l){O(this,er).set(Yl(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...O(this,er).values()],r={};return l.forEach(s=>{ms(n,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const l={...O(this,tl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=sh(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===oh&&(l.enabled=!1),l}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...O(this,tl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){O(this,nt).clear(),O(this,el).clear()}},nt=new WeakMap,el=new WeakMap,tl=new WeakMap,Wi=new WeakMap,er=new WeakMap,nl=new WeakMap,tr=new WeakMap,nr=new WeakMap,d0),T0=y.createContext(void 0),fh=n=>{const l=y.useContext(T0);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},y2=({client:n,children:l})=>(y.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(T0.Provider,{value:n,children:l})),R0=y.createContext(!1),b2=()=>y.useContext(R0);R0.Provider;function x2(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var S2=y.createContext(x2()),E2=()=>y.useContext(S2),w2=(n,l,r)=>{const s=r!=null&&r.state.error&&typeof n.throwOnError=="function"?uh(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(l.isReset()||(n.retryOnMount=!1))},C2=n=>{y.useEffect(()=>{n.clearReset()},[n])},T2=({result:n,errorResetBoundary:l,throwOnError:r,query:s,suspense:u})=>n.isError&&!l.isReset()&&!n.isFetching&&s&&(u&&n.data===void 0||uh(r,[n.error,s])),R2=n=>{if(n.suspense){const r=u=>u==="static"?u:Math.max(u??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...u)=>r(s(...u)):r(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},N2=(n,l)=>n.isLoading&&n.isFetching&&!l,A2=(n,l)=>(n==null?void 0:n.suspense)&&l.isPending,ay=(n,l,r)=>l.fetchOptimistic(n).catch(()=>{r.clearReset()});function O2(n,l,r){var w,C,N,E;const s=b2(),u=E2(),f=fh(),d=f.defaultQueryOptions(n);(C=(w=f.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||C.call(w,d);const m=f.getQueryCache().get(d.queryHash);d._optimisticResults=s?"isRestoring":"optimistic",R2(d),w2(d,u,m),C2(u);const g=!f.getQueryCache().get(d.queryHash),[p]=y.useState(()=>new l(f,d)),x=p.getOptimisticResult(d),b=!s&&n.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(T=>{const R=b?p.subscribe(ft.batchCalls(T)):At;return p.updateResult(),R},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),y.useEffect(()=>{p.setOptions(d)},[d,p]),A2(d,x))throw ay(d,p,u);if(T2({result:x,errorResetBoundary:u,throwOnError:d.throwOnError,query:m,suspense:d.suspense}))throw x.error;if((E=(N=f.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||E.call(N,d,x),d.experimental_prefetchInRender&&!ps.isServer()&&N2(x,s)){const T=g?ay(d,p,u):m==null?void 0:m.promise;T==null||T.catch(At).finally(()=>{p.updateResult()})}return d.notifyOnChangeProps?x:p.trackResult(x)}function Cu(n,l){return O2(n,u2)}function _2(n,l){const r=fh(),[s]=y.useState(()=>new p2(r,n));y.useEffect(()=>{s.setOptions(n)},[s,n]);const u=y.useSyncExternalStore(y.useCallback(d=>s.subscribe(ft.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=y.useCallback((d,m)=>{s.mutate(d,m).catch(At)},[s]);if(u.error&&uh(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}/**
|
|
50
|
-
* react-router v7.13.1
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var ly="popstate";function iy(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function j2(n={}){function l(s,u){var p;let f=(p=u.state)==null?void 0:p.masked,{pathname:d,search:m,hash:g}=f||s.location;return kd("",{pathname:d,search:m,hash:g},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,u){return typeof u=="string"?u:vs(u)}return D2(l,r,null,n)}function We(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Hn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function M2(){return Math.random().toString(36).substring(2,10)}function ry(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function kd(n,l,r=null,s,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?ir(l):l,state:r,key:l&&l.key||s||M2(),unstable_mask:u}}function vs({pathname:n="/",search:l="",hash:r=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function ir(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let s=n.indexOf("?");s>=0&&(l.search=n.substring(s),n=n.substring(0,s)),n&&(l.pathname=n)}return l}function D2(n,l,r,s={}){let{window:u=document.defaultView,v5Compat:f=!1}=s,d=u.history,m="POP",g=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function b(){m="POP";let T=x(),R=T==null?null:T-p;p=T,g&&g({action:m,location:E.location,delta:R})}function w(T,R){m="PUSH";let j=iy(T)?T:kd(E.location,T,R);p=x()+1;let M=ry(j,p),z=E.createHref(j.unstable_mask||j);try{d.pushState(M,"",z)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;u.location.assign(z)}f&&g&&g({action:m,location:E.location,delta:1})}function C(T,R){m="REPLACE";let j=iy(T)?T:kd(E.location,T,R);p=x();let M=ry(j,p),z=E.createHref(j.unstable_mask||j);d.replaceState(M,"",z),f&&g&&g({action:m,location:E.location,delta:0})}function N(T){return z2(T)}let E={get action(){return m},get location(){return n(u,d)},listen(T){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(ly,b),g=T,()=>{u.removeEventListener(ly,b),g=null}},createHref(T){return l(u,T)},createURL:N,encodeLocation(T){let R=N(T);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:C,go(T){return d.go(T)}};return E}function z2(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),We(r,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:vs(n);return s=s.replace(/ $/,"%20"),!l&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function N0(n,l,r="/"){return L2(n,l,r,!1)}function L2(n,l,r,s){let u=typeof l=="string"?ir(l):l,f=ma(u.pathname||"/",r);if(f==null)return null;let d=A0(n);U2(d);let m=null;for(let g=0;m==null&&g<d.length;++g){let p=P2(f);m=X2(d[g],p,s)}return m}function A0(n,l=[],r=[],s="",u=!1){let f=(d,m,g=u,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&g)return;We(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let b=Ln([s,x.relativePath]),w=r.concat(x);d.children&&d.children.length>0&&(We(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),A0(d.children,l,w,b,g)),!(d.path==null&&!d.index)&&l.push({path:b,score:G2(b,d.index),routesMeta:w})};return n.forEach((d,m)=>{var g;if(d.path===""||!((g=d.path)!=null&&g.includes("?")))f(d,m);else for(let p of O0(d.path))f(d,m,!0,p)}),l}function O0(n){let l=n.split("/");if(l.length===0)return[];let[r,...s]=l,u=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return u?[f,""]:[f];let d=O0(s.join("/")),m=[];return m.push(...d.map(g=>g===""?f:[f,g].join("/"))),u&&m.push(...d),m.map(g=>n.startsWith("/")&&g===""?"/":g)}function U2(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:Q2(l.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var H2=/^:[\w-]+$/,B2=3,k2=2,q2=1,V2=10,Y2=-2,sy=n=>n==="*";function G2(n,l){let r=n.split("/"),s=r.length;return r.some(sy)&&(s+=Y2),l&&(s+=k2),r.filter(u=>!sy(u)).reduce((u,f)=>u+(H2.test(f)?B2:f===""?q2:V2),s)}function Q2(n,l){return n.length===l.length&&n.slice(0,-1).every((s,u)=>s===l[u])?n[n.length-1]-l[l.length-1]:0}function X2(n,l,r=!1){let{routesMeta:s}=n,u={},f="/",d=[];for(let m=0;m<s.length;++m){let g=s[m],p=m===s.length-1,x=f==="/"?l:l.slice(f.length)||"/",b=mu({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},x),w=g.route;if(!b&&p&&r&&!s[s.length-1].route.index&&(b=mu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},x)),!b)return null;Object.assign(u,b.params),d.push({params:u,pathname:Ln([f,b.pathname]),pathnameBase:I2(Ln([f,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(f=Ln([f,b.pathnameBase]))}return d}function mu(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,s]=K2(n.path,n.caseSensitive,n.end),u=l.match(r);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:s.reduce((p,{paramName:x,isOptional:b},w)=>{if(x==="*"){let N=m[w]||"";d=f.slice(0,f.length-N.length).replace(/(.)\/+$/,"$1")}const C=m[w];return b&&!C?p[x]=void 0:p[x]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:n}}function K2(n,l=!1,r=!0){Hn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,g,p,x)=>{if(s.push({paramName:m,isOptional:g!=null}),g){let b=x.charAt(p+d.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),s]}function P2(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Hn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function ma(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,s=n.charAt(r);return s&&s!=="/"?null:n.slice(r)||"/"}var Z2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function F2(n,l="/"){let{pathname:r,search:s="",hash:u=""}=typeof n=="string"?ir(n):n,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=oy(r.substring(1),"/"):f=oy(r,l)):f=l,{pathname:f,search:J2(s),hash:W2(u)}}function oy(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function sd(n,l,r,s){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $2(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function _0(n){let l=$2(n);return l.map((r,s)=>s===l.length-1?r.pathname:r.pathnameBase)}function dh(n,l,r,s=!1){let u;typeof n=="string"?u=ir(n):(u={...n},We(!u.pathname||!u.pathname.includes("?"),sd("?","pathname","search",u)),We(!u.pathname||!u.pathname.includes("#"),sd("#","pathname","hash",u)),We(!u.search||!u.search.includes("#"),sd("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,m;if(d==null)m=r;else{let b=l.length-1;if(!s&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),b-=1;u.pathname=w.join("/")}m=b>=0?l[b]:"/"}let g=F2(u,m),p=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||x)&&(g.pathname+="/"),g}var Ln=n=>n.join("/").replace(/\/\/+/g,"/"),I2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),J2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,W2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,ew=class{constructor(n,l,r,s=!1){this.status=n,this.statusText=l||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function tw(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function nw(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var j0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function M0(n,l){let r=n;if(typeof r!="string"||!Z2.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,u=!1;if(j0)try{let f=new URL(window.location.href),d=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=ma(d.pathname,l);d.origin===f.origin&&m!=null?r=m+d.search+d.hash:u=!0}catch{Hn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var D0=["POST","PUT","PATCH","DELETE"];new Set(D0);var aw=["GET",...D0];new Set(aw);var rr=y.createContext(null);rr.displayName="DataRouter";var Tu=y.createContext(null);Tu.displayName="DataRouterState";var lw=y.createContext(!1),z0=y.createContext({isTransitioning:!1});z0.displayName="ViewTransition";var iw=y.createContext(new Map);iw.displayName="Fetchers";var rw=y.createContext(null);rw.displayName="Await";var gn=y.createContext(null);gn.displayName="Navigation";var Ts=y.createContext(null);Ts.displayName="Location";var Bn=y.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var hh=y.createContext(null);hh.displayName="RouteError";var L0="REACT_ROUTER_ERROR",sw="REDIRECT",ow="ROUTE_ERROR_RESPONSE";function uw(n){if(n.startsWith(`${L0}:${sw}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function cw(n){if(n.startsWith(`${L0}:${ow}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new ew(l.status,l.statusText,l.data)}catch{}}function fw(n,{relative:l}={}){We(Rs(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=y.useContext(gn),{hash:u,pathname:f,search:d}=Ns(n,{relative:l}),m=f;return r!=="/"&&(m=f==="/"?r:Ln([r,f])),s.createHref({pathname:m,search:d,hash:u})}function Rs(){return y.useContext(Ts)!=null}function sl(){return We(Rs(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Ts).location}var U0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function H0(n){y.useContext(gn).static||y.useLayoutEffect(n)}function dw(){let{isDataRoute:n}=y.useContext(Bn);return n?Nw():hw()}function hw(){We(Rs(),"useNavigate() may be used only in the context of a <Router> component.");let n=y.useContext(rr),{basename:l,navigator:r}=y.useContext(gn),{matches:s}=y.useContext(Bn),{pathname:u}=sl(),f=JSON.stringify(_0(s)),d=y.useRef(!1);return H0(()=>{d.current=!0}),y.useCallback((g,p={})=>{if(Hn(d.current,U0),!d.current)return;if(typeof g=="number"){r.go(g);return}let x=dh(g,JSON.parse(f),u,p.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Ln([l,x.pathname])),(p.replace?r.replace:r.push)(x,p.state,p)},[l,r,f,u,n])}var mw=y.createContext(null);function pw(n){let l=y.useContext(Bn).outlet;return y.useMemo(()=>l&&y.createElement(mw.Provider,{value:n},l),[l,n])}function Ns(n,{relative:l}={}){let{matches:r}=y.useContext(Bn),{pathname:s}=sl(),u=JSON.stringify(_0(r));return y.useMemo(()=>dh(n,JSON.parse(u),s,l==="path"),[n,u,s,l])}function vw(n,l){return B0(n,l)}function B0(n,l,r){var T;We(Rs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=y.useContext(gn),{matches:u}=y.useContext(Bn),f=u[u.length-1],d=f?f.params:{},m=f?f.pathname:"/",g=f?f.pathnameBase:"/",p=f&&f.route;{let R=p&&p.path||"";q0(m,!p||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let x=sl(),b;if(l){let R=typeof l=="string"?ir(l):l;We(g==="/"||((T=R.pathname)==null?void 0:T.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${R.pathname}" was given in the \`location\` prop.`),b=R}else b=x;let w=b.pathname||"/",C=w;if(g!=="/"){let R=g.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(R.length).join("/")}let N=N0(n,{pathname:C});Hn(p||N!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Hn(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=Sw(N&&N.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:Ln([g,s.encodeLocation?s.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:Ln([g,s.encodeLocation?s.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),u,r);return l&&E?y.createElement(Ts.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},E):E}function gw(){let n=Rw(),l=tw(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:f},"ErrorBoundary")," or"," ",y.createElement("code",{style:f},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},l),r?y.createElement("pre",{style:u},r):null,d)}var yw=y.createElement(gw,null),k0=class extends y.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=cw(n.digest);r&&(n=r)}let l=n!==void 0?y.createElement(Bn.Provider,{value:this.props.routeContext},y.createElement(hh.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?y.createElement(bw,{error:n},l):l}};k0.contextType=lw;var od=new WeakMap;function bw({children:n,error:l}){let{basename:r}=y.useContext(gn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let s=uw(l.digest);if(s){let u=od.get(l);if(u)throw u;let f=M0(s.location,r);if(j0&&!od.get(l))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw od.set(l,d),d}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function xw({routeContext:n,match:l,children:r}){let s=y.useContext(rr);return s&&s.static&&s.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=l.route.id),y.createElement(Bn.Provider,{value:n},r)}function Sw(n,l=[],r){let s=r==null?void 0:r.state;if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(l.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let u=n,f=s==null?void 0:s.errors;if(f!=null){let x=u.findIndex(b=>b.route.id&&(f==null?void 0:f[b.route.id])!==void 0);We(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let d=!1,m=-1;if(r&&s){d=s.renderFallback;for(let x=0;x<u.length;x++){let b=u[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(m=x),b.route.id){let{loaderData:w,errors:C}=s,N=b.route.loader&&!w.hasOwnProperty(b.route.id)&&(!C||C[b.route.id]===void 0);if(b.route.lazy||N){r.isStatic&&(d=!0),m>=0?u=u.slice(0,m+1):u=[u[0]];break}}}}let g=r==null?void 0:r.onError,p=s&&g?(x,b)=>{var w,C;g(x,{location:s.location,params:((C=(w=s.matches)==null?void 0:w[0])==null?void 0:C.params)??{},unstable_pattern:nw(s.matches),errorInfo:b})}:void 0;return u.reduceRight((x,b,w)=>{let C,N=!1,E=null,T=null;s&&(C=f&&b.route.id?f[b.route.id]:void 0,E=b.route.errorElement||yw,d&&(m<0&&w===0?(q0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,T=null):m===w&&(N=!0,T=b.route.hydrateFallbackElement||null)));let R=l.concat(u.slice(0,w+1)),j=()=>{let M;return C?M=E:N?M=T:b.route.Component?M=y.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=x,y.createElement(xw,{match:b,routeContext:{outlet:x,matches:R,isDataRoute:s!=null},children:M})};return s&&(b.route.ErrorBoundary||b.route.errorElement||w===0)?y.createElement(k0,{location:s.location,revalidation:s.revalidation,component:E,error:C,children:j(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):j()},null)}function mh(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ew(n){let l=y.useContext(rr);return We(l,mh(n)),l}function ww(n){let l=y.useContext(Tu);return We(l,mh(n)),l}function Cw(n){let l=y.useContext(Bn);return We(l,mh(n)),l}function ph(n){let l=Cw(n),r=l.matches[l.matches.length-1];return We(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Tw(){return ph("useRouteId")}function Rw(){var s;let n=y.useContext(hh),l=ww("useRouteError"),r=ph("useRouteError");return n!==void 0?n:(s=l.errors)==null?void 0:s[r]}function Nw(){let{router:n}=Ew("useNavigate"),l=ph("useNavigate"),r=y.useRef(!1);return H0(()=>{r.current=!0}),y.useCallback(async(u,f={})=>{Hn(r.current,U0),r.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:l,...f}))},[n,l])}var uy={};function q0(n,l,r){!l&&!uy[n]&&(uy[n]=!0,Hn(!1,r))}y.memo(Aw);function Aw({routes:n,future:l,state:r,isStatic:s,onError:u}){return B0(n,void 0,{state:r,isStatic:s,onError:u})}function Ow(n){return pw(n.context)}function Ui(n){We(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function _w({basename:n="/",children:l=null,location:r,navigationType:s="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){We(!Rs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),g=y.useMemo(()=>({basename:m,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[m,u,f,d]);typeof r=="string"&&(r=ir(r));let{pathname:p="/",search:x="",hash:b="",state:w=null,key:C="default",unstable_mask:N}=r,E=y.useMemo(()=>{let T=ma(p,m);return T==null?null:{location:{pathname:T,search:x,hash:b,state:w,key:C,unstable_mask:N},navigationType:s}},[m,p,x,b,w,C,s,N]);return Hn(E!=null,`<Router basename="${m}"> is not able to match the URL "${p}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:y.createElement(gn.Provider,{value:g},y.createElement(Ts.Provider,{children:l,value:E}))}function jw({children:n,location:l}){return vw(qd(n),l)}function qd(n,l=[]){let r=[];return y.Children.forEach(n,(s,u)=>{if(!y.isValidElement(s))return;let f=[...l,u];if(s.type===y.Fragment){r.push.apply(r,qd(s.props.children,f));return}We(s.type===Ui,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),We(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=qd(s.props.children,f)),r.push(d)}),r}var ru="get",su="application/x-www-form-urlencoded";function Ru(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Mw(n){return Ru(n)&&n.tagName.toLowerCase()==="button"}function Dw(n){return Ru(n)&&n.tagName.toLowerCase()==="form"}function zw(n){return Ru(n)&&n.tagName.toLowerCase()==="input"}function Lw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Uw(n,l){return n.button===0&&(!l||l==="_self")&&!Lw(n)}var Io=null;function Hw(){if(Io===null)try{new FormData(document.createElement("form"),0),Io=!1}catch{Io=!0}return Io}var Bw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ud(n){return n!=null&&!Bw.has(n)?(Hn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${su}"`),null):n}function kw(n,l){let r,s,u,f,d;if(Dw(n)){let m=n.getAttribute("action");s=m?ma(m,l):null,r=n.getAttribute("method")||ru,u=ud(n.getAttribute("enctype"))||su,f=new FormData(n)}else if(Mw(n)||zw(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||m.getAttribute("action");if(s=g?ma(g,l):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||ru,u=ud(n.getAttribute("formenctype"))||ud(m.getAttribute("enctype"))||su,f=new FormData(m,n),!Hw()){let{name:p,type:x,value:b}=n;if(x==="image"){let w=p?`${p}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else p&&f.append(p,b)}}else{if(Ru(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ru,s=null,u=su,d=n}return f&&u==="text/plain"&&(d=f,f=void 0),{action:s,method:r.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vh(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function qw(n,l,r,s){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${s}`:u.pathname=`${u.pathname}.${s}`:u.pathname==="/"?u.pathname=`_root.${s}`:l&&ma(u.pathname,l)==="/"?u.pathname=`${l.replace(/\/$/,"")}/_root.${s}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${s}`,u}async function Vw(n,l){if(n.id in l)return l[n.id];try{let r=await import(n.module);return l[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Yw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function Gw(n,l,r){let s=await Promise.all(n.map(async u=>{let f=l.routes[u.route.id];if(f){let d=await Vw(f,r);return d.links?d.links():[]}return[]}));return Pw(s.flat(1).filter(Yw).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function cy(n,l,r,s,u,f){let d=(g,p)=>r[p]?g.route.id!==r[p].route.id:!0,m=(g,p)=>{var x;return r[p].pathname!==g.pathname||((x=r[p].route.path)==null?void 0:x.endsWith("*"))&&r[p].params["*"]!==g.params["*"]};return f==="assets"?l.filter((g,p)=>d(g,p)||m(g,p)):f==="data"?l.filter((g,p)=>{var b;let x=s.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(d(g,p)||m(g,p))return!0;if(g.route.shouldRevalidate){let w=g.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Qw(n,l,{includeHydrateFallback:r}={}){return Xw(n.map(s=>{let u=l.routes[s.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function Xw(n){return[...new Set(n)]}function Kw(n){let l={},r=Object.keys(n).sort();for(let s of r)l[s]=n[s];return l}function Pw(n,l){let r=new Set;return new Set(l),n.reduce((s,u)=>{let f=JSON.stringify(Kw(u));return r.has(f)||(r.add(f),s.push({key:f,link:u})),s},[])}function V0(){let n=y.useContext(rr);return vh(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Zw(){let n=y.useContext(Tu);return vh(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var gh=y.createContext(void 0);gh.displayName="FrameworkContext";function Y0(){let n=y.useContext(gh);return vh(n,"You must render this element inside a <HydratedRouter> element"),n}function Fw(n,l){let r=y.useContext(gh),[s,u]=y.useState(!1),[f,d]=y.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:p,onMouseLeave:x,onTouchStart:b}=l,w=y.useRef(null);y.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let E=R=>{R.forEach(j=>{d(j.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return w.current&&T.observe(w.current),()=>{T.disconnect()}}},[n]),y.useEffect(()=>{if(s){let E=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(E)}}},[s]);let C=()=>{u(!0)},N=()=>{u(!1),d(!1)};return r?n!=="intent"?[f,w,{}]:[f,w,{onFocus:rs(m,C),onBlur:rs(g,N),onMouseEnter:rs(p,C),onMouseLeave:rs(x,N),onTouchStart:rs(b,C)}]:[!1,w,{}]}function rs(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function $w({page:n,...l}){let{router:r}=V0(),s=y.useMemo(()=>N0(r.routes,n,r.basename),[r.routes,n,r.basename]);return s?y.createElement(Jw,{page:n,matches:s,...l}):null}function Iw(n){let{manifest:l,routeModules:r}=Y0(),[s,u]=y.useState([]);return y.useEffect(()=>{let f=!1;return Gw(n,l,r).then(d=>{f||u(d)}),()=>{f=!0}},[n,l,r]),s}function Jw({page:n,matches:l,...r}){let s=sl(),{future:u,manifest:f,routeModules:d}=Y0(),{basename:m}=V0(),{loaderData:g,matches:p}=Zw(),x=y.useMemo(()=>cy(n,l,p,f,s,"data"),[n,l,p,f,s]),b=y.useMemo(()=>cy(n,l,p,f,s,"assets"),[n,l,p,f,s]),w=y.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let E=new Set,T=!1;if(l.forEach(j=>{var z;let M=f.routes[j.route.id];!M||!M.hasLoader||(!x.some(V=>V.route.id===j.route.id)&&j.route.id in g&&((z=d[j.route.id])!=null&&z.shouldRevalidate)||M.hasClientLoader?T=!0:E.add(j.route.id))}),E.size===0)return[];let R=qw(n,m,u.unstable_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&R.searchParams.set("_routes",l.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[R.pathname+R.search]},[m,u.unstable_trailingSlashAwareDataRequests,g,s,f,x,l,n,d]),C=y.useMemo(()=>Qw(b,f),[b,f]),N=Iw(b);return y.createElement(y.Fragment,null,w.map(E=>y.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),C.map(E=>y.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),N.map(({key:E,link:T})=>y.createElement("link",{key:E,nonce:r.nonce,...T,crossOrigin:T.crossOrigin??r.crossOrigin})))}function Ww(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var eC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eC&&(window.__reactRouterVersion="7.13.1")}catch{}function tC({basename:n,children:l,unstable_useTransitions:r,window:s}){let u=y.useRef();u.current==null&&(u.current=j2({window:s,v5Compat:!0}));let f=u.current,[d,m]=y.useState({action:f.action,location:f.location}),g=y.useCallback(p=>{r===!1?m(p):y.startTransition(()=>m(p))},[r]);return y.useLayoutEffect(()=>f.listen(g),[f,g]),y.createElement(_w,{basename:n,children:l,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:r})}var G0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Q0=y.forwardRef(function({onClick:l,discover:r="render",prefetch:s="none",relative:u,reloadDocument:f,replace:d,unstable_mask:m,state:g,target:p,to:x,preventScrollReset:b,viewTransition:w,unstable_defaultShouldRevalidate:C,...N},E){let{basename:T,navigator:R,unstable_useTransitions:j}=y.useContext(gn),M=typeof x=="string"&&G0.test(x),z=M0(x,T);x=z.to;let V=fw(x,{relative:u}),F=sl(),Y=null;if(m){let de=dh(m,[],F.unstable_mask?F.unstable_mask.pathname:"/",!0);T!=="/"&&(de.pathname=de.pathname==="/"?T:Ln([T,de.pathname])),Y=R.createHref(de)}let[$,ae,ie]=Fw(s,N),oe=lC(x,{replace:d,unstable_mask:m,state:g,target:p,preventScrollReset:b,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:C,unstable_useTransitions:j});function ee(de){l&&l(de),de.defaultPrevented||oe(de)}let pe=!(z.isExternal||f),ue=y.createElement("a",{...N,...ie,href:(pe?Y:void 0)||z.absoluteURL||V,onClick:pe?ee:l,ref:Ww(E,ae),target:p,"data-discover":!M&&r==="render"?"true":void 0});return $&&!M?y.createElement(y.Fragment,null,ue,y.createElement($w,{page:V})):ue});Q0.displayName="Link";var X0=y.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:s="",end:u=!1,style:f,to:d,viewTransition:m,children:g,...p},x){let b=Ns(d,{relative:p.relative}),w=sl(),C=y.useContext(Tu),{navigator:N,basename:E}=y.useContext(gn),T=C!=null&&uC(b)&&m===!0,R=N.encodeLocation?N.encodeLocation(b).pathname:b.pathname,j=w.pathname,M=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(j=j.toLowerCase(),M=M?M.toLowerCase():null,R=R.toLowerCase()),M&&E&&(M=ma(M,E)||M);const z=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let V=j===R||!u&&j.startsWith(R)&&j.charAt(z)==="/",F=M!=null&&(M===R||!u&&M.startsWith(R)&&M.charAt(R.length)==="/"),Y={isActive:V,isPending:F,isTransitioning:T},$=V?l:void 0,ae;typeof s=="function"?ae=s(Y):ae=[s,V?"active":null,F?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let ie=typeof f=="function"?f(Y):f;return y.createElement(Q0,{...p,"aria-current":$,className:ae,ref:x,style:ie,to:d,viewTransition:m},typeof g=="function"?g(Y):g)});X0.displayName="NavLink";var nC=y.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:s,replace:u,state:f,method:d=ru,action:m,onSubmit:g,relative:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:w,...C},N)=>{let{unstable_useTransitions:E}=y.useContext(gn),T=sC(),R=oC(m,{relative:p}),j=d.toLowerCase()==="get"?"get":"post",M=typeof m=="string"&&G0.test(m),z=V=>{if(g&&g(V),V.defaultPrevented)return;V.preventDefault();let F=V.nativeEvent.submitter,Y=(F==null?void 0:F.getAttribute("formmethod"))||d,$=()=>T(F||V.currentTarget,{fetcherKey:l,method:Y,navigate:r,replace:u,state:f,relative:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:w});E&&r!==!1?y.startTransition(()=>$()):$()};return y.createElement("form",{ref:N,method:j,action:R,onSubmit:s?g:z,...C,"data-discover":!M&&n==="render"?"true":void 0})});nC.displayName="Form";function aC(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K0(n){let l=y.useContext(rr);return We(l,aC(n)),l}function lC(n,{target:l,replace:r,unstable_mask:s,state:u,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:g,unstable_useTransitions:p}={}){let x=dw(),b=sl(),w=Ns(n,{relative:d});return y.useCallback(C=>{if(Uw(C,l)){C.preventDefault();let N=r!==void 0?r:vs(b)===vs(w),E=()=>x(n,{replace:N,unstable_mask:s,state:u,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:g});p?y.startTransition(()=>E()):E()}},[b,x,w,r,s,u,l,n,f,d,m,g,p])}var iC=0,rC=()=>`__${String(++iC)}__`;function sC(){let{router:n}=K0("useSubmit"),{basename:l}=y.useContext(gn),r=Tw(),s=n.fetch,u=n.navigate;return y.useCallback(async(f,d={})=>{let{action:m,method:g,encType:p,formData:x,body:b}=kw(f,l);if(d.navigate===!1){let w=d.fetcherKey||rC();await s(w,r,d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||g,formEncType:d.encType||p,flushSync:d.flushSync})}else await u(d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||g,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[s,u,l,r])}function oC(n,{relative:l}={}){let{basename:r}=y.useContext(gn),s=y.useContext(Bn);We(s,"useFormAction must be used inside a RouteContext");let[u]=s.matches.slice(-1),f={...Ns(n||".",{relative:l})},d=sl();if(n==null){f.search=d.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(x=>x==="")){m.delete("index"),g.filter(b=>b).forEach(b=>m.append("index",b));let x=m.toString();f.search=x?`?${x}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Ln([r,f.pathname])),vs(f)}function uC(n,{relative:l}={}){let r=y.useContext(z0);We(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=K0("useViewTransitionState"),u=Ns(n,{relative:l});if(!r.isTransitioning)return!1;let f=ma(r.currentLocation.pathname,s)||r.currentLocation.pathname,d=ma(r.nextLocation.pathname,s)||r.nextLocation.pathname;return mu(u.pathname,d)!=null||mu(u.pathname,f)!=null}var As=m0();const cC=lh(As),P0="myco-ui-theme",fC="system",fy="dark",Z0="(prefers-color-scheme: dark)",F0=y.createContext(void 0);function dC(){const n=localStorage.getItem(P0);return n==="light"||n==="dark"||n==="system"?n:fC}function dy(n){const l=document.documentElement;n==="dark"||n==="system"&&window.matchMedia(Z0).matches?l.classList.add(fy):l.classList.remove(fy)}function hC({children:n}){const[l,r]=y.useState(dC),s=u=>{localStorage.setItem(P0,u),r(u)};return y.useEffect(()=>{dy(l)},[l]),y.useEffect(()=>{if(l!=="system")return;const u=window.matchMedia(Z0),f=()=>dy("system");return u.addEventListener("change",f),()=>u.removeEventListener("change",f)},[l]),h.jsx(F0.Provider,{value:{theme:l,setTheme:s},children:n})}function mC(){const n=y.useContext(F0);if(!n)throw new Error("useTheme must be used within a ThemeProvider");return n}const $0="myco-ui-font",pC="geist-mono",vC="--font-ui",I0={"geist-mono":"'Geist Mono', 'SF Mono', 'Fira Code', monospace",system:"ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace","sf-mono":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","fira-code":"'Fira Code', 'Fira Mono', ui-monospace, monospace","jetbrains-mono":"'JetBrains Mono', ui-monospace, monospace"},gC=new Set(Object.keys(I0)),J0=y.createContext(void 0);function yC(){const n=localStorage.getItem($0);return n&&gC.has(n)?n:pC}function bC(n){document.documentElement.style.setProperty(vC,I0[n])}function xC({children:n}){const[l,r]=y.useState(yC),s=u=>{localStorage.setItem($0,u),r(u)};return y.useEffect(()=>{bC(l)},[l]),h.jsx(J0.Provider,{value:{font:l,setFont:s},children:n})}function SC(){const n=y.useContext(J0);if(!n)throw new Error("useFont must be used within a FontProvider");return n}const hy=6e4,EC=3e5,wC=200,my={active:1,idle:2,deep_sleep:5,hidden:10},py=["mousemove","mousedown","keydown","scroll","touchstart"],W0=y.createContext(void 0);function CC({children:n}){const[l,r]=y.useState("active"),s=y.useRef(null),u=y.useRef(null),f=y.useRef(Date.now()),d=y.useCallback(()=>{s.current&&(clearTimeout(s.current),s.current=null),u.current&&(clearTimeout(u.current),u.current=null)},[]),m=y.useCallback(()=>{d(),s.current=setTimeout(()=>{r("idle"),u.current=setTimeout(()=>{r("deep_sleep")},EC-hy)},hy)},[d]),g=y.useCallback(()=>{const x=Date.now();x-f.current<wC||(f.current=x,r("active"),m())},[m]),p=y.useCallback(()=>{document.hidden?(d(),r("hidden")):(r("active"),f.current=Date.now(),m())},[d,m]);return y.useEffect(()=>{m();for(const x of py)document.addEventListener(x,g,{passive:!0});return document.addEventListener("visibilitychange",p),()=>{d();for(const x of py)document.removeEventListener(x,g);document.removeEventListener("visibilitychange",p)}},[g,p,m,d]),h.jsx(W0.Provider,{value:{powerState:l},children:n})}function TC(){const n=y.useContext(W0);if(!n)throw new Error("usePowerState must be used within a PowerProvider");return n.powerState}/**
|
|
61
|
-
* @license lucide-react v0.460.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const RC=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eb=(...n)=>n.filter((l,r,s)=>!!l&&l.trim()!==""&&s.indexOf(l)===r).join(" ").trim();/**
|
|
66
|
-
* @license lucide-react v0.460.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var NC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
-
* @license lucide-react v0.460.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const AC=y.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:d,...m},g)=>y.createElement("svg",{ref:g,...NC,width:l,height:l,stroke:n,strokeWidth:s?Number(r)*24/Number(l):r,className:eb("lucide",u),...m},[...d.map(([p,x])=>y.createElement(p,x)),...Array.isArray(f)?f:[f]]));/**
|
|
76
|
-
* @license lucide-react v0.460.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const Me=(n,l)=>{const r=y.forwardRef(({className:s,...u},f)=>y.createElement(AC,{ref:f,iconNode:l,className:eb(`lucide-${RC(n)}`,s),...u}));return r.displayName=`${n}`,r};/**
|
|
81
|
-
* @license lucide-react v0.460.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const OC=Me("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
86
|
-
* @license lucide-react v0.460.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const _C=Me("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
91
|
-
* @license lucide-react v0.460.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const Vd=Me("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
96
|
-
* @license lucide-react v0.460.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const jC=Me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
101
|
-
* @license lucide-react v0.460.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const tb=Me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
106
|
-
* @license lucide-react v0.460.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const MC=Me("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
111
|
-
* @license lucide-react v0.460.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const nb=Me("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
116
|
-
* @license lucide-react v0.460.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const ab=Me("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
121
|
-
* @license lucide-react v0.460.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const vy=Me("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
126
|
-
* @license lucide-react v0.460.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const DC=Me("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
131
|
-
* @license lucide-react v0.460.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const zC=Me("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
136
|
-
* @license lucide-react v0.460.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const LC=Me("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
141
|
-
* @license lucide-react v0.460.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const UC=Me("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
146
|
-
* @license lucide-react v0.460.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const pu=Me("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
151
|
-
* @license lucide-react v0.460.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const HC=Me("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
156
|
-
* @license lucide-react v0.460.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const BC=Me("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
161
|
-
* @license lucide-react v0.460.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const kC=Me("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
|
166
|
-
* @license lucide-react v0.460.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const lb=Me("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
171
|
-
* @license lucide-react v0.460.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const qC=Me("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
176
|
-
* @license lucide-react v0.460.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const jl=Me("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
181
|
-
* @license lucide-react v0.460.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const VC=Me("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
186
|
-
* @license lucide-react v0.460.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const YC=Me("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
191
|
-
* @license lucide-react v0.460.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const ib=Me("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
|
|
196
|
-
* @license lucide-react v0.460.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const GC=Me("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
201
|
-
* @license lucide-react v0.460.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const rb=Me("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
206
|
-
* @license lucide-react v0.460.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const sb=Me("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
211
|
-
* @license lucide-react v0.460.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const QC=Me("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
216
|
-
* @license lucide-react v0.460.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const XC=Me("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
|
|
221
|
-
* @license lucide-react v0.460.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const KC=Me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
226
|
-
* @license lucide-react v0.460.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const PC=Me("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
231
|
-
* @license lucide-react v0.460.0 - ISC
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the ISC license.
|
|
234
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const ZC=Me("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
236
|
-
* @license lucide-react v0.460.0 - ISC
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the ISC license.
|
|
239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const ob=Me("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
241
|
-
* @license lucide-react v0.460.0 - ISC
|
|
242
|
-
*
|
|
243
|
-
* This source code is licensed under the ISC license.
|
|
244
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const FC=Me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),$C=6e4,IC=3e4;function JC(n,l,r){if(l==="heartbeat"){const s=n*my[r];return r==="hidden"?Math.min(s,$C):r==="deep_sleep"?Math.min(s,IC):s}return r==="deep_sleep"||r==="hidden"?!1:n*my[r]}function ub(n){const l=TC(),{pollCategory:r,refetchInterval:s,...u}=n,f=JC(s,r,l);return Cu({...u,refetchInterval:f})}const WC="/api";async function Zl(n,l){var d;const r=(d=l==null?void 0:l.method)==null?void 0:d.toUpperCase(),u=r==="POST"||r==="PUT"?{"Content-Type":"application/json",...l==null?void 0:l.headers}:l==null?void 0:l.headers,f=await fetch(`${WC}${n}`,{...l,headers:u});if(!f.ok){const m=await f.json().catch(()=>({}));throw new tT(f.status,m)}return f.json()}async function vu(n,l){return Zl(n,{method:"POST",body:l?JSON.stringify(l):void 0})}async function eT(n,l){return Zl(n,{method:"PUT",body:JSON.stringify(l)})}class tT extends Error{constructor(l,r){super(`API error ${l}`),this.status=l,this.body=r}}const yh={STATS:1e4,LOGS:3e3,PROGRESS:1e3},nT=1e4,aT=3e4;function Nu(){return ub({queryKey:["daemon-stats"],queryFn:({signal:n})=>Zl("/stats",{signal:n}),refetchInterval:yh.STATS,pollCategory:"standard"})}const cd=500,lT=3e4;function cb(){const[n,l]=y.useState(!1),r=y.useRef(null);return{restart:y.useCallback(async(u=!1)=>{l(!0);try{const f=await vu("/restart",{force:u});if(f.status==="busy")return l(!1),f;const d=Date.now()+lT;r.current=new AbortController,await new Promise((m,g)=>{const p=async()=>{if(Date.now()>d){g(new Error("Restart timeout"));return}try{if((await fetch("/health",{signal:r.current.signal})).ok){m();return}setTimeout(p,cd)}catch{setTimeout(p,cd)}};setTimeout(p,cd)}),window.location.reload()}catch(f){throw l(!1),f}},[]),isRestarting:n}}function fb(n){var l,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(l=0;l<u;l++)n[l]&&(r=fb(n[l]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function db(){for(var n,l,r=0,s="",u=arguments.length;r<u;r++)(n=arguments[r])&&(l=fb(n))&&(s&&(s+=" "),s+=l);return s}const gy=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,yy=db,hb=(n,l)=>r=>{var s;if((l==null?void 0:l.variants)==null)return yy(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:u,defaultVariants:f}=l,d=Object.keys(u).map(p=>{const x=r==null?void 0:r[p],b=f==null?void 0:f[p];if(x===null)return null;const w=gy(x)||gy(b);return u[p][w]}),m=r&&Object.entries(r).reduce((p,x)=>{let[b,w]=x;return w===void 0||(p[b]=w),p},{}),g=l==null||(s=l.compoundVariants)===null||s===void 0?void 0:s.reduce((p,x)=>{let{class:b,className:w,...C}=x;return Object.entries(C).every(N=>{let[E,T]=N;return Array.isArray(T)?T.includes({...f,...m}[E]):{...f,...m}[E]===T})?[...p,b,w]:p},[]);return yy(n,d,g,r==null?void 0:r.class,r==null?void 0:r.className)},bh="-",iT=n=>{const l=sT(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{const m=d.split(bh);return m[0]===""&&m.length!==1&&m.shift(),mb(m,l)||rT(d)},getConflictingClassGroupIds:(d,m)=>{const g=r[d]||[];return m&&s[d]?[...g,...s[d]]:g}}},mb=(n,l)=>{var d;if(n.length===0)return l.classGroupId;const r=n[0],s=l.nextPart.get(r),u=s?mb(n.slice(1),s):void 0;if(u)return u;if(l.validators.length===0)return;const f=n.join(bh);return(d=l.validators.find(({validator:m})=>m(f)))==null?void 0:d.classGroupId},by=/^\[(.+)\]$/,rT=n=>{if(by.test(n)){const l=by.exec(n)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},sT=n=>{const{theme:l,prefix:r}=n,s={nextPart:new Map,validators:[]};return uT(Object.entries(n.classGroups),r).forEach(([f,d])=>{Yd(d,s,f,l)}),s},Yd=(n,l,r,s)=>{n.forEach(u=>{if(typeof u=="string"){const f=u===""?l:xy(l,u);f.classGroupId=r;return}if(typeof u=="function"){if(oT(u)){Yd(u(s),l,r,s);return}l.validators.push({validator:u,classGroupId:r});return}Object.entries(u).forEach(([f,d])=>{Yd(d,xy(l,f),r,s)})})},xy=(n,l)=>{let r=n;return l.split(bh).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},oT=n=>n.isThemeGetter,uT=(n,l)=>l?n.map(([r,s])=>{const u=s.map(f=>typeof f=="string"?l+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,m])=>[l+d,m])):f);return[r,u]}):n,cT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,r=new Map,s=new Map;const u=(f,d)=>{r.set(f,d),l++,l>n&&(l=0,s=r,r=new Map)};return{get(f){let d=r.get(f);if(d!==void 0)return d;if((d=s.get(f))!==void 0)return u(f,d),d},set(f,d){r.has(f)?r.set(f,d):u(f,d)}}},pb="!",fT=n=>{const{separator:l,experimentalParseClassName:r}=n,s=l.length===1,u=l[0],f=l.length,d=m=>{const g=[];let p=0,x=0,b;for(let T=0;T<m.length;T++){let R=m[T];if(p===0){if(R===u&&(s||m.slice(T,T+f)===l)){g.push(m.slice(x,T)),x=T+f;continue}if(R==="/"){b=T;continue}}R==="["?p++:R==="]"&&p--}const w=g.length===0?m:m.substring(x),C=w.startsWith(pb),N=C?w.substring(1):w,E=b&&b>x?b-x:void 0;return{modifiers:g,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:E}};return r?m=>r({className:m,parseClassName:d}):d},dT=n=>{if(n.length<=1)return n;const l=[];let r=[];return n.forEach(s=>{s[0]==="["?(l.push(...r.sort(),s),r=[]):r.push(s)}),l.push(...r.sort()),l},hT=n=>({cache:cT(n.cacheSize),parseClassName:fT(n),...iT(n)}),mT=/\s+/,pT=(n,l)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:u}=l,f=[],d=n.trim().split(mT);let m="";for(let g=d.length-1;g>=0;g-=1){const p=d[g],{modifiers:x,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:C}=r(p);let N=!!C,E=s(N?w.substring(0,C):w);if(!E){if(!N){m=p+(m.length>0?" "+m:m);continue}if(E=s(w),!E){m=p+(m.length>0?" "+m:m);continue}N=!1}const T=dT(x).join(":"),R=b?T+pb:T,j=R+E;if(f.includes(j))continue;f.push(j);const M=u(E,N);for(let z=0;z<M.length;++z){const V=M[z];f.push(R+V)}m=p+(m.length>0?" "+m:m)}return m};function vT(){let n=0,l,r,s="";for(;n<arguments.length;)(l=arguments[n++])&&(r=vb(l))&&(s&&(s+=" "),s+=r);return s}const vb=n=>{if(typeof n=="string")return n;let l,r="";for(let s=0;s<n.length;s++)n[s]&&(l=vb(n[s]))&&(r&&(r+=" "),r+=l);return r};function gT(n,...l){let r,s,u,f=d;function d(g){const p=l.reduce((x,b)=>b(x),n());return r=hT(p),s=r.cache.get,u=r.cache.set,f=m,m(g)}function m(g){const p=s(g);if(p)return p;const x=pT(g,r);return u(g,x),x}return function(){return f(vT.apply(null,arguments))}}const Fe=n=>{const l=r=>r[n]||[];return l.isThemeGetter=!0,l},gb=/^\[(?:([a-z-]+):)?(.+)\]$/i,yT=/^\d+\/\d+$/,bT=new Set(["px","full","screen"]),xT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ST=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ET=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,CT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ra=n=>qi(n)||bT.has(n)||yT.test(n),Qa=n=>sr(n,"length",MT),qi=n=>!!n&&!Number.isNaN(Number(n)),fd=n=>sr(n,"number",qi),ss=n=>!!n&&Number.isInteger(Number(n)),TT=n=>n.endsWith("%")&&qi(n.slice(0,-1)),Ee=n=>gb.test(n),Xa=n=>xT.test(n),RT=new Set(["length","size","percentage"]),NT=n=>sr(n,RT,yb),AT=n=>sr(n,"position",yb),OT=new Set(["image","url"]),_T=n=>sr(n,OT,zT),jT=n=>sr(n,"",DT),os=()=>!0,sr=(n,l,r)=>{const s=gb.exec(n);return s?s[1]?typeof l=="string"?s[1]===l:l.has(s[1]):r(s[2]):!1},MT=n=>ST.test(n)&&!ET.test(n),yb=()=>!1,DT=n=>wT.test(n),zT=n=>CT.test(n),LT=()=>{const n=Fe("colors"),l=Fe("spacing"),r=Fe("blur"),s=Fe("brightness"),u=Fe("borderColor"),f=Fe("borderRadius"),d=Fe("borderSpacing"),m=Fe("borderWidth"),g=Fe("contrast"),p=Fe("grayscale"),x=Fe("hueRotate"),b=Fe("invert"),w=Fe("gap"),C=Fe("gradientColorStops"),N=Fe("gradientColorStopPositions"),E=Fe("inset"),T=Fe("margin"),R=Fe("opacity"),j=Fe("padding"),M=Fe("saturate"),z=Fe("scale"),V=Fe("sepia"),F=Fe("skew"),Y=Fe("space"),$=Fe("translate"),ae=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",Ee,l],ee=()=>[Ee,l],pe=()=>["",ra,Qa],ue=()=>["auto",qi,Ee],de=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",Ee],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>[qi,Ee];return{cacheSize:500,separator:":",theme:{colors:[os],spacing:[ra,Qa],blur:["none","",Xa,Ee],brightness:_(),borderColor:[n],borderRadius:["none","","full",Xa,Ee],borderSpacing:ee(),borderWidth:pe(),contrast:_(),grayscale:I(),hueRotate:_(),invert:I(),gap:ee(),gradientColorStops:[n],gradientColorStopPositions:[TT,Qa],inset:oe(),margin:oe(),opacity:_(),padding:ee(),saturate:_(),scale:_(),sepia:I(),skew:_(),space:ee(),translate:ee()},classGroups:{aspect:[{aspect:["auto","square","video",Ee]}],container:["container"],columns:[{columns:[Xa]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...de(),Ee]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ss,Ee]}],basis:[{basis:oe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ee]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",ss,Ee]}],"grid-cols":[{"grid-cols":[os]}],"col-start-end":[{col:["auto",{span:["full",ss,Ee]},Ee]}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":[os]}],"row-start-end":[{row:["auto",{span:[ss,Ee]},Ee]}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ee]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ee,l]}],"min-w":[{"min-w":[Ee,l,"min","max","fit"]}],"max-w":[{"max-w":[Ee,l,"none","full","min","max","fit","prose",{screen:[Xa]},Xa]}],h:[{h:[Ee,l,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ee,l,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ee,l,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ee,l,"auto","min","max","fit"]}],"font-size":[{text:["base",Xa,Qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fd]}],"font-family":[{font:[os]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ee]}],"line-clamp":[{"line-clamp":["none",qi,fd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ra,Ee]}],"list-image":[{"list-image":["none",Ee]}],"list-style-type":[{list:["none","disc","decimal",Ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ra,Qa]}],"underline-offset":[{"underline-offset":["auto",ra,Ee]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...de(),AT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",NT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_T]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:U()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[ra,Ee]}],"outline-w":[{outline:[ra,Qa]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[ra,Qa]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Xa,jT]}],"shadow-color":[{shadow:[os]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",Xa,Ee]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[b]}],saturate:[{saturate:[M]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ee]}],duration:[{duration:_()}],ease:[{ease:["linear","in","out","in-out",Ee]}],delay:[{delay:_()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[ss,Ee]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ee]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[ra,Qa,fd]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},UT=gT(LT);function Xe(...n){return UT(db(n))}const HT=hb("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-primary-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ct=y.forwardRef(({className:n,variant:l,size:r,...s},u)=>h.jsx("button",{className:Xe(HT({variant:l,size:r,className:n})),ref:u,...s}));Ct.displayName="Button";const BT=[{to:"/",label:"Dashboard",icon:UC},{to:"/configuration",label:"Configuration",icon:rb},{to:"/operations",label:"Operations",icon:ob},{to:"/logs",label:"Logs",icon:ib}],kT=[{value:"obsidian",label:"Obsidian"},{value:"vscode",label:"VS Code"},{value:"finder",label:"Finder"}],qT=[{value:"geist-mono",label:"Geist Mono"},{value:"system",label:"System"},{value:"sf-mono",label:"SF Mono"},{value:"fira-code",label:"Fira Code"},{value:"jetbrains-mono",label:"JetBrains"}],bb={compact:.85,normal:1,comfy:1.15},VT={compact:"Compact",normal:"Normal",comfy:"Comfy"},us=["compact","normal","comfy"],xb="myco-ui-density",YT="--density",GT="normal";function QT(){const n=localStorage.getItem(xb);return n&&n in bb?n:GT}function XT(n){const l=bb[n];document.documentElement.style.setProperty(YT,String(l)),document.documentElement.style.fontSize=`calc(14px * ${l})`}function KT(){const[n,l]=y.useState(QT),r=y.useCallback(s=>{localStorage.setItem(xb,s),l(s)},[]);return y.useEffect(()=>{XT(n)},[n]),{density:n,setDensity:r}}function PT(){const{theme:n,setTheme:l}=mC(),r=()=>{l(n==="dark"?"light":"dark")},s=n==="dark"||n==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches;return h.jsxs(Ct,{variant:"ghost",size:"sm",onClick:r,className:"w-full justify-start gap-2 text-muted-foreground hover:text-foreground",children:[s?h.jsx(QC,{className:"h-4 w-4"}):h.jsx(BC,{className:"h-4 w-4"}),h.jsx("span",{children:s?"Light mode":"Dark mode"})]})}function ZT(){const{restart:n,isRestarting:l}=cb();return h.jsxs(Ct,{variant:"ghost",size:"sm",onClick:()=>n(),disabled:l,className:"w-full justify-start gap-2 text-muted-foreground hover:text-foreground",children:[h.jsx(VC,{className:Xe("h-4 w-4",l&&"animate-spin")}),h.jsx("span",{children:l?"Restarting...":"Restart Daemon"})]})}function FT(){const{data:n}=Nu(),l=r=>{if(!n)return;let s;r==="obsidian"?s=`obsidian://open?vault=${encodeURIComponent(n.vault.name)}`:r==="vscode"?s=`vscode://file${n.vault.path}`:s=`file://${n.vault.path}`,window.location.href=s};return h.jsxs("label",{className:"flex items-center gap-2 px-2 py-1 text-sm text-muted-foreground hover:text-foreground cursor-pointer",children:[h.jsx(zC,{className:"h-4 w-4 shrink-0"}),h.jsxs("select",{value:"",onChange:r=>{r.target.value&&l(r.target.value),r.target.value=""},disabled:!n,className:"w-full bg-transparent border-none outline-none cursor-pointer text-sm appearance-none disabled:opacity-50",children:[h.jsx("option",{value:"",disabled:!0,children:"Open Vault"}),kT.map(r=>h.jsx("option",{value:r.value,children:r.label},r.value))]})]})}function $T(){const{font:n,setFont:l}=SC();return h.jsxs("label",{className:"flex items-center gap-2 px-2 py-1 text-sm text-muted-foreground hover:text-foreground cursor-pointer",children:[h.jsx(ZC,{className:"h-4 w-4 shrink-0"}),h.jsx("select",{value:n,onChange:r=>l(r.target.value),className:"w-full bg-transparent border-none outline-none cursor-pointer text-sm appearance-none",children:qT.map(r=>h.jsx("option",{value:r.value,children:r.label},r.value))})]})}function IT(){const{density:n,setDensity:l}=KT(),r=us.indexOf(n),s=()=>{r>0&&l(us[r-1])},u=()=>{r<us.length-1&&l(us[r+1])};return h.jsxs("div",{className:"flex items-center gap-1 px-3 py-1",children:[h.jsx("button",{onClick:s,disabled:r===0,className:"rounded p-0.5 text-muted-foreground hover:text-foreground disabled:opacity-30","aria-label":"Decrease density",children:h.jsx(HC,{className:"h-3 w-3"})}),h.jsx("div",{className:"flex flex-1 justify-center",children:h.jsx("span",{className:"text-xs text-muted-foreground select-none",children:VT[n]})}),h.jsx("button",{onClick:u,disabled:r===us.length-1,className:"rounded p-0.5 text-muted-foreground hover:text-foreground disabled:opacity-30","aria-label":"Increase density",children:h.jsx(qC,{className:"h-3 w-3"})})]})}function JT(){return h.jsxs("div",{className:"flex h-screen bg-background",children:[h.jsxs("aside",{className:"flex w-56 flex-col border-r border-border bg-card",children:[h.jsx("div",{className:"flex items-center gap-2 px-4 py-5",children:h.jsxs("div",{className:"relative flex items-center",children:[h.jsx("span",{className:"text-xl font-bold tracking-tight text-primary",children:"myco"}),h.jsx("span",{className:"ml-2 h-2 w-2 rounded-full bg-muted-foreground/40"})]})}),h.jsx("nav",{className:"flex-1 space-y-1 px-2 py-2",children:BT.map(n=>h.jsxs(X0,{to:n.to,end:n.to==="/",className:({isActive:l})=>Xe("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",l?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[h.jsx(n.icon,{className:"h-4 w-4"}),n.label]},n.to))}),h.jsxs("div",{className:"border-t border-border px-2 py-3 space-y-1",children:[h.jsx(ZT,{}),h.jsx(FT,{}),h.jsx($T,{}),h.jsx(IT,{}),h.jsx(PT,{})]})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(Ow,{})})]})}function Sb(n){return Object.values(n).reduce((l,r)=>l+r,0)}const WT=500,eR=400,Hi=240,Bi=195,Gd=44,dd=50,tR=62,gs="3s",Sy="4s",Ey=12,nR=9,aR=7,lR=14,iR=9,rR=1.8,wy=2,sR="svg text { font-family: var(--font-ui, ui-monospace, monospace); }",hd=.25,Cy=.55,Qd={daemon:"hsl(142, 71%, 45%)",processor:"hsl(160, 60%, 40%)",digest:"hsl(142, 50%, 55%)",consolidation:"hsl(165, 55%, 48%)",embedding:"hsl(175, 50%, 40%)",vault:"hsl(130, 45%, 35%)",sessions:"hsl(155, 60%, 50%)"},oR="hsl(38, 92%, 50%)",uR="hsl(215, 10%, 40%)",cR="hsl(215, 10%, 25%)",gu={processor:{x:100,y:80,radius:38},digest:{x:400,y:110,radius:36},consolidation:{x:480,y:195,radius:24},embedding:{x:75,y:310,radius:38},vault:{x:415,y:290,radius:38},sessions:{x:250,y:360,radius:36}};function Eb(n,l){switch(l){case"active":case"idle":return Qd[n]??Qd.daemon;case"cooling":return oR;case"dormant":return uR;case"off":return cR}}function wb(n){return n==="active"}function Ty(n){return n?n.model:"none"}function Ry(n,l){if(!l)return"off";if(!n)return"dormant";switch(n){case"active":return"active";case"cooling":return"cooling";case"dormant":return"dormant";default:return"idle"}}function fR(n){var g,p,x;const l=n.daemon.active_sessions.length>0,r=Ty(n.intelligence.processor),s=Ty(n.intelligence.embedding),u=((g=n.digest)==null?void 0:g.enabled)??!1,f=((p=n.digest)==null?void 0:p.metabolism_state)??null,d=((x=n.digest)==null?void 0:x.consolidation_enabled)??!1,m=[{id:"processor",label:"Processor",detail:r,status:l?"active":n.intelligence.processor?"idle":"off"},{id:"digest",label:"Digest",detail:f??(u?"ready":"disabled"),status:Ry(f,u)},{id:"embedding",label:"Embedding",detail:`${s} (${n.index.vector_count})`,status:n.intelligence.embedding?"idle":"off"},{id:"vault",label:"Vault",detail:`${Sb(n.vault.spore_counts)}s ${n.vault.session_count}n`,status:"active"},{id:"sessions",label:"Sessions",detail:`${n.daemon.active_sessions.length} active`,status:l?"active":"idle"}];if(d){const b=Ry(f,u);m.push({id:"consolidation",label:"Consolidate",detail:"pre-pass",status:b==="active"?"active":u?"idle":"off"})}return m}function dR(n){const l=gu[n];if(!l)return"";const r=l.x-Hi,s=l.y-Bi,u=Math.sqrt(r*r+s*s),f=-s/u,d=r/u,g={processor:25,digest:-30,embedding:-20,vault:35,sessions:15}[n]??20,p=r/u,x=s/u,b=Hi+p*Gd,w=Bi+x*Gd,C=l.x-p*l.radius,N=l.y-x*l.radius,E=C-b,T=N-w,R=b+E*.35+f*g,j=w+T*.35+d*g,M=b+E*.65+f*g*.6,z=w+T*.65+d*g*.6;return`M ${b} ${w} C ${R} ${j}, ${M} ${z}, ${C} ${N}`}const Cb={consolidation:"digest"},Jo=12;function hR(n){const l=Cb[n];if(!l)return"";const r=gu[l],s=gu[n];if(!r||!s)return"";const u=s.x-r.x,f=s.y-r.y,d=Math.sqrt(u*u+f*f),m=u/d,g=f/d,p=r.x+m*r.radius,x=r.y+g*r.radius,b=s.x-m*s.radius,w=s.y-g*s.radius,C=b-p,N=w-x,E=Math.sqrt(C*C+N*N),T=-N/E,R=C/E,j=p+C*.4+T*Jo,M=x+N*.4+R*Jo,z=p+C*.7+T*Jo*.5,V=x+N*.7+R*Jo*.5;return`M ${p} ${x} C ${j} ${M}, ${z} ${V}, ${b} ${w}`}function mR({node:n}){const l=Eb(n.id,n.status),r=wb(n.status),s=`hypha-${n.id}`,f=n.id in Cb?hR(n.id):dR(n.id);return h.jsxs("g",{children:[h.jsx("path",{id:s,d:f,fill:"none",stroke:l,strokeWidth:r?2:1.5,strokeDasharray:n.status==="off"?"6 4":void 0,opacity:r?Cy:hd,strokeLinecap:"round",children:r&&h.jsx("animate",{attributeName:"opacity",values:`${hd};${Cy};${hd}`,dur:gs,repeatCount:"indefinite"})}),r&&Array.from({length:wy},(d,m)=>{const g=m/wy;return h.jsxs("circle",{r:rR,fill:l,opacity:0,children:[h.jsx("animateMotion",{dur:Sy,repeatCount:"indefinite",begin:`${g*4}s`,path:f}),h.jsx("animate",{attributeName:"opacity",values:"0;0.6;0.8;0.6;0",dur:Sy,repeatCount:"indefinite",begin:`${g*4}s`})]},m)})]})}function pR({node:n}){const l=gu[n.id];if(!l)return null;const{x:r,y:s,radius:u}=l,f=Eb(n.id,n.status),d=wb(n.status),m=u+8;return h.jsxs("g",{children:[h.jsx("title",{children:`${n.label}: ${n.detail}`}),d&&h.jsxs("circle",{cx:r,cy:s,r:m,fill:f,opacity:0,children:[h.jsx("animate",{attributeName:"opacity",values:"0;0.12;0",dur:gs,repeatCount:"indefinite"}),h.jsx("animate",{attributeName:"r",values:`${m};${m+10};${m}`,dur:gs,repeatCount:"indefinite"})]}),h.jsx("circle",{cx:r,cy:s,r:u,fill:f,fillOpacity:.1,stroke:f,strokeWidth:1.5,strokeOpacity:n.status==="off"?.25:.65}),h.jsx("text",{x:r,y:s-4,textAnchor:"middle",fill:"currentColor",fontSize:nR,fontWeight:600,opacity:.9,children:n.label}),h.jsx("text",{x:r,y:s+8,textAnchor:"middle",fill:"currentColor",fontSize:aR,opacity:.5,children:n.detail.length>Ey?n.detail.slice(0,Ey-1)+"…":n.detail})]})}function vR(){const n=[{cx:170,cy:140,delay:"0s"},{cx:320,cy:250,delay:"1.5s"},{cx:130,cy:200,delay:"3s"},{cx:360,cy:170,delay:"2s"},{cx:200,cy:330,delay:"0.8s"},{cx:300,cy:100,delay:"2.5s"}];return h.jsx("g",{opacity:.3,children:n.map((l,r)=>h.jsxs("circle",{cx:l.cx,cy:l.cy,r:1.2,fill:"hsl(142, 50%, 50%)",children:[h.jsx("animate",{attributeName:"opacity",values:"0;0.5;0",dur:"5s",begin:l.delay,repeatCount:"indefinite"}),h.jsx("animate",{attributeName:"r",values:"1;2;1",dur:"5s",begin:l.delay,repeatCount:"indefinite"})]},r))})}function gR({stats:n}){const l=fR(n),r=Qd.daemon,s=n.daemon.active_sessions.length>0;return h.jsxs("svg",{viewBox:`0 0 ${WT} ${eR}`,width:"100%",className:"max-h-[400px]",role:"img","aria-label":"Myco system topology",style:{fontSize:"calc(1em * var(--density, 1))"},children:[h.jsx("style",{children:sR}),h.jsx(vR,{}),l.map(u=>h.jsx(mR,{node:u},u.id)),s&&h.jsxs("circle",{cx:Hi,cy:Bi,r:dd,fill:r,opacity:0,children:[h.jsx("animate",{attributeName:"opacity",values:"0;0.1;0",dur:gs,repeatCount:"indefinite"}),h.jsx("animate",{attributeName:"r",values:`${dd};${tR};${dd}`,dur:gs,repeatCount:"indefinite"})]}),h.jsx("circle",{cx:Hi,cy:Bi,r:Gd,fill:r,fillOpacity:.13,stroke:r,strokeWidth:2,strokeOpacity:.75}),h.jsx("text",{x:Hi,y:Bi-4,textAnchor:"middle",fill:"currentColor",fontSize:lR,fontWeight:700,opacity:.9,children:"myco"}),h.jsxs("text",{x:Hi,y:Bi+12,textAnchor:"middle",fill:"currentColor",fontSize:iR,opacity:.45,children:["v",n.daemon.version]}),h.jsxs("title",{children:["Myco Daemon — v",n.daemon.version]}),l.map(u=>h.jsx(pR,{node:u},u.id))]})}const It=y.forwardRef(({className:n,...l},r)=>h.jsx("div",{ref:r,className:Xe("rounded-lg border border-border bg-card text-card-foreground shadow-sm",n),...l}));It.displayName="Card";const mn=y.forwardRef(({className:n,...l},r)=>h.jsx("div",{ref:r,className:Xe("flex flex-col space-y-1.5 p-6",n),...l}));mn.displayName="CardHeader";const pn=y.forwardRef(({className:n,...l},r)=>h.jsx("h3",{ref:r,className:Xe("font-semibold leading-none tracking-tight",n),...l}));pn.displayName="CardTitle";const Vi=y.forwardRef(({className:n,...l},r)=>h.jsx("p",{ref:r,className:Xe("text-sm text-muted-foreground",n),...l}));Vi.displayName="CardDescription";const Jt=y.forwardRef(({className:n,...l},r)=>h.jsx("div",{ref:r,className:Xe("p-6 pt-0",n),...l}));Jt.displayName="CardContent";const yR=y.forwardRef(({className:n,...l},r)=>h.jsx("div",{ref:r,className:Xe("flex items-center p-6 pt-0",n),...l}));yR.displayName="CardFooter";function xh({isLoading:n,error:l,loadingText:r="Loading...",children:s}){return n?h.jsxs("div",{className:"flex h-64 items-center justify-center gap-2 text-muted-foreground",children:[h.jsx(pu,{className:"h-5 w-5 animate-spin"}),h.jsx("span",{children:r})]}):l?h.jsxs("div",{className:"flex h-64 flex-col items-center justify-center gap-2 text-destructive",children:[h.jsx(MC,{className:"h-5 w-5"}),h.jsx("span",{children:"Failed to connect to daemon"}),h.jsx("span",{className:"text-xs text-muted-foreground",children:l.message})]}):h.jsx(h.Fragment,{children:s})}const ds=60,ki=3600,hs=86400;function bR(n){if(n<ds)return`${Math.floor(n)}s`;if(n<ki)return`${Math.floor(n/ds)}m`;if(n<hs){const s=Math.floor(n/ki),u=Math.floor(n%ki/ds);return`${s}h ${u}m`}const l=Math.floor(n/hs),r=Math.floor(n%hs/ki);return`${l}d ${r}h`}function xR(n){const l=(Date.now()-new Date(n).getTime())/1e3;return l<ds?"just now":l<ki?`${Math.floor(l/ds)}m ago`:l<hs?`${Math.floor(l/ki)}h ago`:`${Math.floor(l/hs)}d ago`}const SR=hb("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-primary-foreground shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function vn({className:n,variant:l,...r}){return h.jsx("div",{className:Xe(SR({variant:l}),n),...r})}const ER=6;function wR(n){return Object.entries(n).sort((l,r)=>r[1]-l[1]).slice(0,ER)}function Ot({label:n,value:l,badge:r,badgeVariant:s}){return h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-muted-foreground",children:n}),r?h.jsx(vn,{variant:s??"secondary",className:"text-xs",children:l}):h.jsx("span",{className:"font-mono text-foreground",children:l})]})}function md({label:n,info:l}){return h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsx("span",{className:"text-muted-foreground",children:n}),l?h.jsx("span",{className:"truncate font-mono text-xs text-foreground",title:`${l.provider}/${l.model}`,children:l.model}):h.jsx("span",{className:"text-xs text-muted-foreground/60",children:"none"})]})}function CR({stats:n}){return h.jsxs(It,{children:[h.jsx(mn,{className:"pb-3",children:h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(OC,{className:"h-4 w-4 text-primary"}),"Daemon"]})}),h.jsxs(Jt,{className:"space-y-2 text-sm",children:[h.jsx(Ot,{label:"Uptime",value:bR(n.daemon.uptime_seconds)}),h.jsx(Ot,{label:"Version",value:`v${n.daemon.version}`}),h.jsx(Ot,{label:"Port",value:String(n.daemon.port)}),h.jsx(Ot,{label:"PID",value:String(n.daemon.pid)})]})]})}function TR({stats:n}){return h.jsxs(It,{children:[h.jsx(mn,{className:"pb-3",children:h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(LC,{className:"h-4 w-4 text-primary"}),"Vault"]})}),h.jsxs(Jt,{className:"space-y-2 text-sm",children:[h.jsx(Ot,{label:"Sessions",value:String(n.vault.session_count)}),h.jsx(Ot,{label:"Spores",value:String(Sb(n.vault.spore_counts))}),h.jsx(Ot,{label:"Plans",value:String(n.vault.plan_count)}),h.jsx(Ot,{label:"Name",value:n.vault.name})]})]})}function RR({stats:n}){const l=wR(n.vault.spore_counts);return h.jsxs(It,{children:[h.jsx(mn,{className:"pb-3",children:h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(sb,{className:"h-4 w-4 text-primary"}),"Spores by Type"]})}),h.jsx(Jt,{children:l.length===0?h.jsx("p",{className:"text-sm text-muted-foreground",children:"No spores yet"}):h.jsx("div",{className:"space-y-1.5",children:l.map(([r,s])=>h.jsxs("div",{className:"flex items-center justify-between text-sm",children:[h.jsx("span",{className:"text-muted-foreground",children:r}),h.jsx(vn,{variant:"secondary",className:"text-xs font-mono",children:s})]},r))})})]})}function NR({stats:n}){return h.jsxs(It,{children:[h.jsx(mn,{className:"pb-3",children:h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(GC,{className:"h-4 w-4 text-primary"}),"Index"]})}),h.jsxs(Jt,{className:"space-y-2 text-sm",children:[h.jsx(Ot,{label:"FTS entries",value:String(n.index.fts_entries)}),h.jsx(Ot,{label:"Vectors",value:String(n.index.vector_count)})]})]})}function AR({stats:n}){const l=n.digest;return h.jsxs(It,{children:[h.jsx(mn,{className:"pb-3",children:h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(XC,{className:"h-4 w-4 text-primary"}),"Digest"]})}),h.jsx(Jt,{className:"space-y-2 text-sm",children:l?h.jsxs(h.Fragment,{children:[h.jsx(Ot,{label:"Metabolism",value:l.metabolism_state??"dormant",badge:!0,badgeVariant:l.metabolism_state==="active"?"default":"secondary"}),h.jsx(Ot,{label:"Queue",value:String(l.substrate_queue)}),l.last_cycle?h.jsxs(h.Fragment,{children:[h.jsx(Ot,{label:"Last cycle",value:xR(l.last_cycle.timestamp)}),h.jsx(Ot,{label:"Tier",value:`T${l.last_cycle.tier}`}),h.jsx(Ot,{label:"Substrate",value:String(l.last_cycle.substrate_count)})]}):h.jsx("p",{className:"text-xs text-muted-foreground",children:"No cycles yet"})]}):h.jsx("p",{className:"text-muted-foreground",children:"Disabled"})})]})}function OR({stats:n}){return h.jsxs(It,{children:[h.jsx(mn,{className:"pb-3",children:h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(Vd,{className:"h-4 w-4 text-primary"}),"Intelligence"]})}),h.jsxs(Jt,{className:"space-y-2 text-sm",children:[h.jsx(md,{label:"Processor",info:n.intelligence.processor}),h.jsx(md,{label:"Digest",info:n.intelligence.digest}),h.jsx(md,{label:"Embedding",info:n.intelligence.embedding})]})]})}function _R(){const{data:n,isLoading:l,isError:r,error:s}=Nu();return h.jsx(xh,{isLoading:l,error:r?s instanceof Error?s:new Error("Unable to reach daemon"):null,loadingText:"Connecting to daemon...",children:n&&h.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[h.jsx(It,{className:"overflow-hidden",children:h.jsx(Jt,{className:"p-4",children:h.jsx(gR,{stats:n})})}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"System Status"}),h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[h.jsx(CR,{stats:n}),h.jsx(TR,{stats:n}),h.jsx(RR,{stats:n}),h.jsx(NR,{stats:n}),h.jsx(AR,{stats:n}),h.jsx(OR,{stats:n})]})]})]})})}function jR(){const n=fh(),l=Cu({queryKey:["config"],queryFn:({signal:s})=>Zl("/config",{signal:s})}),r=_2({mutationFn:s=>eT("/config",s),onSuccess:()=>n.invalidateQueries({queryKey:["config"]})});return{config:l.data,isLoading:l.isLoading,error:l.error,saveConfig:r.mutateAsync,isSaving:r.isPending,saveError:r.error}}function $e(n,l,{checkForDefaultPrevented:r=!0}={}){return function(u){if(n==null||n(u),r===!1||!u.defaultPrevented)return l==null?void 0:l(u)}}function Ny(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function Tb(...n){return l=>{let r=!1;const s=n.map(u=>{const f=Ny(u,l);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let u=0;u<s.length;u++){const f=s[u];typeof f=="function"?f():Ny(n[u],null)}}}}function it(...n){return y.useCallback(Tb(...n),n)}function MR(n,l){const r=y.createContext(l),s=f=>{const{children:d,...m}=f,g=y.useMemo(()=>m,Object.values(m));return h.jsx(r.Provider,{value:g,children:d})};s.displayName=n+"Provider";function u(f){const d=y.useContext(r);if(d)return d;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[s,u]}function Au(n,l=[]){let r=[];function s(f,d){const m=y.createContext(d),g=r.length;r=[...r,d];const p=b=>{var R;const{scope:w,children:C,...N}=b,E=((R=w==null?void 0:w[n])==null?void 0:R[g])||m,T=y.useMemo(()=>N,Object.values(N));return h.jsx(E.Provider,{value:T,children:C})};p.displayName=f+"Provider";function x(b,w){var E;const C=((E=w==null?void 0:w[n])==null?void 0:E[g])||m,N=y.useContext(C);if(N)return N;if(d!==void 0)return d;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[p,x]}const u=()=>{const f=r.map(d=>y.createContext(d));return function(m){const g=(m==null?void 0:m[n])||f;return y.useMemo(()=>({[`__scope${n}`]:{...m,[n]:g}}),[m,g])}};return u.scopeName=n,[s,DR(u,...l)]}function DR(...n){const l=n[0];if(n.length===1)return l;const r=()=>{const s=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=s.reduce((m,{useScope:g,scopeName:p})=>{const b=g(f)[`__scope${p}`];return{...m,...b}},{});return y.useMemo(()=>({[`__scope${l.scopeName}`]:d}),[d])}};return r.scopeName=l.scopeName,r}var Tt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},zR=h0[" useId ".trim().toString()]||(()=>{}),LR=0;function Yi(n){const[l,r]=y.useState(zR());return Tt(()=>{r(s=>s??String(LR++))},[n]),l?`radix-${l}`:""}var UR=h0[" useInsertionEffect ".trim().toString()]||Tt;function Xd({prop:n,defaultProp:l,onChange:r=()=>{},caller:s}){const[u,f,d]=HR({defaultProp:l,onChange:r}),m=n!==void 0,g=m?n:u;{const x=y.useRef(n!==void 0);y.useEffect(()=>{const b=x.current;b!==m&&console.warn(`${s} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,s])}const p=y.useCallback(x=>{var b;if(m){const w=BR(x)?x(n):x;w!==n&&((b=d.current)==null||b.call(d,w))}else f(x)},[m,n,f,d]);return[g,p]}function HR({defaultProp:n,onChange:l}){const[r,s]=y.useState(n),u=y.useRef(r),f=y.useRef(l);return UR(()=>{f.current=l},[l]),y.useEffect(()=>{var d;u.current!==r&&((d=f.current)==null||d.call(f,r),u.current=r)},[r,u]),[r,s,f]}function BR(n){return typeof n=="function"}function ys(n){const l=kR(n),r=y.forwardRef((s,u)=>{const{children:f,...d}=s,m=y.Children.toArray(f),g=m.find(VR);if(g){const p=g.props.children,x=m.map(b=>b===g?y.Children.count(p)>1?y.Children.only(null):y.isValidElement(p)?p.props.children:null:b);return h.jsx(l,{...d,ref:u,children:y.isValidElement(p)?y.cloneElement(p,void 0,x):null})}return h.jsx(l,{...d,ref:u,children:f})});return r.displayName=`${n}.Slot`,r}function kR(n){const l=y.forwardRef((r,s)=>{const{children:u,...f}=r;if(y.isValidElement(u)){const d=GR(u),m=YR(f,u.props);return u.type!==y.Fragment&&(m.ref=s?Tb(s,d):d),y.cloneElement(u,m)}return y.Children.count(u)>1?y.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var qR=Symbol("radix.slottable");function VR(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===qR}function YR(n,l){const r={...l};for(const s in l){const u=n[s],f=l[s];/^on[A-Z]/.test(s)?u&&f?r[s]=(...m)=>{const g=f(...m);return u(...m),g}:u&&(r[s]=u):s==="style"?r[s]={...u,...f}:s==="className"&&(r[s]=[u,f].filter(Boolean).join(" "))}return{...n,...r}}function GR(n){var s,u;let l=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var QR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=QR.reduce((n,l)=>{const r=ys(`Primitive.${l}`),s=y.forwardRef((u,f)=>{const{asChild:d,...m}=u,g=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(g,{...m,ref:f})});return s.displayName=`Primitive.${l}`,{...n,[l]:s}},{});function XR(n,l){n&&As.flushSync(()=>n.dispatchEvent(l))}function Gl(n){const l=y.useRef(n);return y.useEffect(()=>{l.current=n}),y.useMemo(()=>(...r)=>{var s;return(s=l.current)==null?void 0:s.call(l,...r)},[])}function KR(n,l=globalThis==null?void 0:globalThis.document){const r=Gl(n);y.useEffect(()=>{const s=u=>{u.key==="Escape"&&r(u)};return l.addEventListener("keydown",s,{capture:!0}),()=>l.removeEventListener("keydown",s,{capture:!0})},[r,l])}var PR="DismissableLayer",Kd="dismissableLayer.update",ZR="dismissableLayer.pointerDownOutside",FR="dismissableLayer.focusOutside",Ay,Rb=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sh=y.forwardRef((n,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:m,...g}=n,p=y.useContext(Rb),[x,b]=y.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=y.useState({}),N=it(l,Y=>b(Y)),E=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),R=E.indexOf(T),j=x?E.indexOf(x):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,z=j>=R,V=JR(Y=>{const $=Y.target,ae=[...p.branches].some(ie=>ie.contains($));!z||ae||(u==null||u(Y),d==null||d(Y),Y.defaultPrevented||m==null||m())},w),F=WR(Y=>{const $=Y.target;[...p.branches].some(ie=>ie.contains($))||(f==null||f(Y),d==null||d(Y),Y.defaultPrevented||m==null||m())},w);return KR(Y=>{j===p.layers.size-1&&(s==null||s(Y),!Y.defaultPrevented&&m&&(Y.preventDefault(),m()))},w),y.useEffect(()=>{if(x)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Ay=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Oy(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Ay)}},[x,w,r,p]),y.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Oy())},[x,p]),y.useEffect(()=>{const Y=()=>C({});return document.addEventListener(Kd,Y),()=>document.removeEventListener(Kd,Y)},[]),h.jsx(Ke.div,{...g,ref:N,style:{pointerEvents:M?z?"auto":"none":void 0,...n.style},onFocusCapture:$e(n.onFocusCapture,F.onFocusCapture),onBlurCapture:$e(n.onBlurCapture,F.onBlurCapture),onPointerDownCapture:$e(n.onPointerDownCapture,V.onPointerDownCapture)})});Sh.displayName=PR;var $R="DismissableLayerBranch",IR=y.forwardRef((n,l)=>{const r=y.useContext(Rb),s=y.useRef(null),u=it(l,s);return y.useEffect(()=>{const f=s.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),h.jsx(Ke.div,{...n,ref:u})});IR.displayName=$R;function JR(n,l=globalThis==null?void 0:globalThis.document){const r=Gl(n),s=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const f=m=>{if(m.target&&!s.current){let g=function(){Nb(ZR,r,p,{discrete:!0})};const p={originalEvent:m};m.pointerType==="touch"?(l.removeEventListener("click",u.current),u.current=g,l.addEventListener("click",u.current,{once:!0})):g()}else l.removeEventListener("click",u.current);s.current=!1},d=window.setTimeout(()=>{l.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),l.removeEventListener("pointerdown",f),l.removeEventListener("click",u.current)}},[l,r]),{onPointerDownCapture:()=>s.current=!0}}function WR(n,l=globalThis==null?void 0:globalThis.document){const r=Gl(n),s=y.useRef(!1);return y.useEffect(()=>{const u=f=>{f.target&&!s.current&&Nb(FR,r,{originalEvent:f},{discrete:!1})};return l.addEventListener("focusin",u),()=>l.removeEventListener("focusin",u)},[l,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Oy(){const n=new CustomEvent(Kd);document.dispatchEvent(n)}function Nb(n,l,r,{discrete:s}){const u=r.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});l&&u.addEventListener(n,l,{once:!0}),s?XR(u,f):u.dispatchEvent(f)}var pd="focusScope.autoFocusOnMount",vd="focusScope.autoFocusOnUnmount",_y={bubbles:!1,cancelable:!0},eN="FocusScope",Eh=y.forwardRef((n,l)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=n,[m,g]=y.useState(null),p=Gl(u),x=Gl(f),b=y.useRef(null),w=it(l,E=>g(E)),C=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(s){let E=function(M){if(C.paused||!m)return;const z=M.target;m.contains(z)?b.current=z:Pa(b.current,{select:!0})},T=function(M){if(C.paused||!m)return;const z=M.relatedTarget;z!==null&&(m.contains(z)||Pa(b.current,{select:!0}))},R=function(M){if(document.activeElement===document.body)for(const V of M)V.removedNodes.length>0&&Pa(m)};document.addEventListener("focusin",E),document.addEventListener("focusout",T);const j=new MutationObserver(R);return m&&j.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",T),j.disconnect()}}},[s,m,C.paused]),y.useEffect(()=>{if(m){My.add(C);const E=document.activeElement;if(!m.contains(E)){const R=new CustomEvent(pd,_y);m.addEventListener(pd,p),m.dispatchEvent(R),R.defaultPrevented||(tN(rN(Ab(m)),{select:!0}),document.activeElement===E&&Pa(m))}return()=>{m.removeEventListener(pd,p),setTimeout(()=>{const R=new CustomEvent(vd,_y);m.addEventListener(vd,x),m.dispatchEvent(R),R.defaultPrevented||Pa(E??document.body,{select:!0}),m.removeEventListener(vd,x),My.remove(C)},0)}}},[m,p,x,C]);const N=y.useCallback(E=>{if(!r&&!s||C.paused)return;const T=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,R=document.activeElement;if(T&&R){const j=E.currentTarget,[M,z]=nN(j);M&&z?!E.shiftKey&&R===z?(E.preventDefault(),r&&Pa(M,{select:!0})):E.shiftKey&&R===M&&(E.preventDefault(),r&&Pa(z,{select:!0})):R===j&&E.preventDefault()}},[r,s,C.paused]);return h.jsx(Ke.div,{tabIndex:-1,...d,ref:w,onKeyDown:N})});Eh.displayName=eN;function tN(n,{select:l=!1}={}){const r=document.activeElement;for(const s of n)if(Pa(s,{select:l}),document.activeElement!==r)return}function nN(n){const l=Ab(n),r=jy(l,n),s=jy(l.reverse(),n);return[r,s]}function Ab(n){const l=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function jy(n,l){for(const r of n)if(!aN(r,{upTo:l}))return r}function aN(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function lN(n){return n instanceof HTMLInputElement&&"select"in n}function Pa(n,{select:l=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&lN(n)&&l&&n.select()}}var My=iN();function iN(){let n=[];return{add(l){const r=n[0];l!==r&&(r==null||r.pause()),n=Dy(n,l),n.unshift(l)},remove(l){var r;n=Dy(n,l),(r=n[0])==null||r.resume()}}}function Dy(n,l){const r=[...n],s=r.indexOf(l);return s!==-1&&r.splice(s,1),r}function rN(n){return n.filter(l=>l.tagName!=="A")}var sN="Portal",wh=y.forwardRef((n,l)=>{var m;const{container:r,...s}=n,[u,f]=y.useState(!1);Tt(()=>f(!0),[]);const d=r||u&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return d?cC.createPortal(h.jsx(Ke.div,{...s,ref:l}),d):null});wh.displayName=sN;function oN(n,l){return y.useReducer((r,s)=>l[r][s]??r,n)}var Ou=n=>{const{present:l,children:r}=n,s=uN(l),u=typeof r=="function"?r({present:s.isPresent}):y.Children.only(r),f=it(s.ref,cN(u));return typeof r=="function"||s.isPresent?y.cloneElement(u,{ref:f}):null};Ou.displayName="Presence";function uN(n){const[l,r]=y.useState(),s=y.useRef(null),u=y.useRef(n),f=y.useRef("none"),d=n?"mounted":"unmounted",[m,g]=oN(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const p=Wo(s.current);f.current=m==="mounted"?p:"none"},[m]),Tt(()=>{const p=s.current,x=u.current;if(x!==n){const w=f.current,C=Wo(p);n?g("MOUNT"):C==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(x&&w!==C?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,g]),Tt(()=>{if(l){let p;const x=l.ownerDocument.defaultView??window,b=C=>{const E=Wo(s.current).includes(CSS.escape(C.animationName));if(C.target===l&&E&&(g("ANIMATION_END"),!u.current)){const T=l.style.animationFillMode;l.style.animationFillMode="forwards",p=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=T)})}},w=C=>{C.target===l&&(f.current=Wo(s.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",b),l.addEventListener("animationend",b),()=>{x.clearTimeout(p),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",b),l.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[l,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:y.useCallback(p=>{s.current=p?getComputedStyle(p):null,r(p)},[])}}function Wo(n){return(n==null?void 0:n.animationName)||"none"}function cN(n){var s,u;let l=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var gd=0;function Ob(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??zy()),document.body.insertAdjacentElement("beforeend",n[1]??zy()),gd++,()=>{gd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),gd--}},[])}function zy(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Dn=function(){return Dn=Object.assign||function(l){for(var r,s=1,u=arguments.length;s<u;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(l[f]=r[f])}return l},Dn.apply(this,arguments)};function _b(n,l){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&l.indexOf(s)<0&&(r[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)l.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(r[s[u]]=n[s[u]]);return r}function fN(n,l,r){if(r||arguments.length===2)for(var s=0,u=l.length,f;s<u;s++)(f||!(s in l))&&(f||(f=Array.prototype.slice.call(l,0,s)),f[s]=l[s]);return n.concat(f||Array.prototype.slice.call(l))}var ou="right-scroll-bar-position",uu="width-before-scroll-bar",dN="with-scroll-bars-hidden",hN="--removed-body-scroll-bar-size";function yd(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function mN(n,l){var r=y.useState(function(){return{value:n,callback:l,facade:{get current(){return r.value},set current(s){var u=r.value;u!==s&&(r.value=s,r.callback(s,u))}}}})[0];return r.callback=l,r.facade}var pN=typeof window<"u"?y.useLayoutEffect:y.useEffect,Ly=new WeakMap;function vN(n,l){var r=mN(null,function(s){return n.forEach(function(u){return yd(u,s)})});return pN(function(){var s=Ly.get(r);if(s){var u=new Set(s),f=new Set(n),d=r.current;u.forEach(function(m){f.has(m)||yd(m,null)}),f.forEach(function(m){u.has(m)||yd(m,d)})}Ly.set(r,n)},[n]),r}function gN(n){return n}function yN(n,l){l===void 0&&(l=gN);var r=[],s=!1,u={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(f){var d=l(f,s);return r.push(d),function(){r=r.filter(function(m){return m!==d})}},assignSyncMedium:function(f){for(s=!0;r.length;){var d=r;r=[],d.forEach(f)}r={push:function(m){return f(m)},filter:function(){return r}}},assignMedium:function(f){s=!0;var d=[];if(r.length){var m=r;r=[],m.forEach(f),d=r}var g=function(){var x=d;d=[],x.forEach(f)},p=function(){return Promise.resolve().then(g)};p(),r={push:function(x){d.push(x),p()},filter:function(x){return d=d.filter(x),r}}}};return u}function bN(n){n===void 0&&(n={});var l=yN(null);return l.options=Dn({async:!0,ssr:!1},n),l}var jb=function(n){var l=n.sideCar,r=_b(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=l.read();if(!s)throw new Error("Sidecar medium not found");return y.createElement(s,Dn({},r))};jb.isSideCarExport=!0;function xN(n,l){return n.useMedium(l),jb}var Mb=bN(),bd=function(){},_u=y.forwardRef(function(n,l){var r=y.useRef(null),s=y.useState({onScrollCapture:bd,onWheelCapture:bd,onTouchMoveCapture:bd}),u=s[0],f=s[1],d=n.forwardProps,m=n.children,g=n.className,p=n.removeScrollBar,x=n.enabled,b=n.shards,w=n.sideCar,C=n.noRelative,N=n.noIsolation,E=n.inert,T=n.allowPinchZoom,R=n.as,j=R===void 0?"div":R,M=n.gapMode,z=_b(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=w,F=vN([r,l]),Y=Dn(Dn({},z),u);return y.createElement(y.Fragment,null,x&&y.createElement(V,{sideCar:Mb,removeScrollBar:p,shards:b,noRelative:C,noIsolation:N,inert:E,setCallbacks:f,allowPinchZoom:!!T,lockRef:r,gapMode:M}),d?y.cloneElement(y.Children.only(m),Dn(Dn({},Y),{ref:F})):y.createElement(j,Dn({},Y,{className:g,ref:F}),m))});_u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_u.classNames={fullWidth:uu,zeroRight:ou};var SN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EN(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=SN();return l&&n.setAttribute("nonce",l),n}function wN(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function CN(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var TN=function(){var n=0,l=null;return{add:function(r){n==0&&(l=EN())&&(wN(l,r),CN(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},RN=function(){var n=TN();return function(l,r){y.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},Db=function(){var n=RN(),l=function(r){var s=r.styles,u=r.dynamic;return n(s,u),null};return l},NN={left:0,top:0,right:0,gap:0},xd=function(n){return parseInt(n||"",10)||0},AN=function(n){var l=window.getComputedStyle(document.body),r=l[n==="padding"?"paddingLeft":"marginLeft"],s=l[n==="padding"?"paddingTop":"marginTop"],u=l[n==="padding"?"paddingRight":"marginRight"];return[xd(r),xd(s),xd(u)]},ON=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return NN;var l=AN(n),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,s-r+l[2]-l[0])}},_N=Db(),Gi="data-scroll-locked",jN=function(n,l,r,s){var u=n.left,f=n.top,d=n.right,m=n.gap;return r===void 0&&(r="margin"),`
|
|
246
|
-
.`.concat(dN,` {
|
|
247
|
-
overflow: hidden `).concat(s,`;
|
|
248
|
-
padding-right: `).concat(m,"px ").concat(s,`;
|
|
249
|
-
}
|
|
250
|
-
body[`).concat(Gi,`] {
|
|
251
|
-
overflow: hidden `).concat(s,`;
|
|
252
|
-
overscroll-behavior: contain;
|
|
253
|
-
`).concat([l&&"position: relative ".concat(s,";"),r==="margin"&&`
|
|
254
|
-
padding-left: `.concat(u,`px;
|
|
255
|
-
padding-top: `).concat(f,`px;
|
|
256
|
-
padding-right: `).concat(d,`px;
|
|
257
|
-
margin-left:0;
|
|
258
|
-
margin-top:0;
|
|
259
|
-
margin-right: `).concat(m,"px ").concat(s,`;
|
|
260
|
-
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.`).concat(ou,` {
|
|
264
|
-
right: `).concat(m,"px ").concat(s,`;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.`).concat(uu,` {
|
|
268
|
-
margin-right: `).concat(m,"px ").concat(s,`;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.`).concat(ou," .").concat(ou,` {
|
|
272
|
-
right: 0 `).concat(s,`;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.`).concat(uu," .").concat(uu,` {
|
|
276
|
-
margin-right: 0 `).concat(s,`;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
body[`).concat(Gi,`] {
|
|
280
|
-
`).concat(hN,": ").concat(m,`px;
|
|
281
|
-
}
|
|
282
|
-
`)},Uy=function(){var n=parseInt(document.body.getAttribute(Gi)||"0",10);return isFinite(n)?n:0},MN=function(){y.useEffect(function(){return document.body.setAttribute(Gi,(Uy()+1).toString()),function(){var n=Uy()-1;n<=0?document.body.removeAttribute(Gi):document.body.setAttribute(Gi,n.toString())}},[])},DN=function(n){var l=n.noRelative,r=n.noImportant,s=n.gapMode,u=s===void 0?"margin":s;MN();var f=y.useMemo(function(){return ON(u)},[u]);return y.createElement(_N,{styles:jN(f,!l,u,r?"":"!important")})},Pd=!1;if(typeof window<"u")try{var eu=Object.defineProperty({},"passive",{get:function(){return Pd=!0,!0}});window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,eu)}catch{Pd=!1}var Di=Pd?{passive:!1}:!1,zN=function(n){return n.tagName==="TEXTAREA"},zb=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!zN(n)&&r[l]==="visible")},LN=function(n){return zb(n,"overflowY")},UN=function(n){return zb(n,"overflowX")},Hy=function(n,l){var r=l.ownerDocument,s=l;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var u=Lb(n,s);if(u){var f=Ub(n,s),d=f[1],m=f[2];if(d>m)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},HN=function(n){var l=n.scrollTop,r=n.scrollHeight,s=n.clientHeight;return[l,r,s]},BN=function(n){var l=n.scrollLeft,r=n.scrollWidth,s=n.clientWidth;return[l,r,s]},Lb=function(n,l){return n==="v"?LN(l):UN(l)},Ub=function(n,l){return n==="v"?HN(l):BN(l)},kN=function(n,l){return n==="h"&&l==="rtl"?-1:1},qN=function(n,l,r,s,u){var f=kN(n,window.getComputedStyle(l).direction),d=f*s,m=r.target,g=l.contains(m),p=!1,x=d>0,b=0,w=0;do{if(!m)break;var C=Ub(n,m),N=C[0],E=C[1],T=C[2],R=E-T-f*N;(N||R)&&Lb(n,m)&&(b+=R,w+=N);var j=m.parentNode;m=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!g&&m!==document.body||g&&(l.contains(m)||l===m));return(x&&Math.abs(b)<1||!x&&Math.abs(w)<1)&&(p=!0),p},tu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},By=function(n){return[n.deltaX,n.deltaY]},ky=function(n){return n&&"current"in n?n.current:n},VN=function(n,l){return n[0]===l[0]&&n[1]===l[1]},YN=function(n){return`
|
|
283
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
284
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
285
|
-
`)},GN=0,zi=[];function QN(n){var l=y.useRef([]),r=y.useRef([0,0]),s=y.useRef(),u=y.useState(GN++)[0],f=y.useState(Db)[0],d=y.useRef(n);y.useEffect(function(){d.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var E=fN([n.lockRef.current],(n.shards||[]).map(ky),!0).filter(Boolean);return E.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var m=y.useCallback(function(E,T){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!d.current.allowPinchZoom;var R=tu(E),j=r.current,M="deltaX"in E?E.deltaX:j[0]-R[0],z="deltaY"in E?E.deltaY:j[1]-R[1],V,F=E.target,Y=Math.abs(M)>Math.abs(z)?"h":"v";if("touches"in E&&Y==="h"&&F.type==="range")return!1;var $=window.getSelection(),ae=$&&$.anchorNode,ie=ae?ae===F||ae.contains(F):!1;if(ie)return!1;var oe=Hy(Y,F);if(!oe)return!0;if(oe?V=Y:(V=Y==="v"?"h":"v",oe=Hy(Y,F)),!oe)return!1;if(!s.current&&"changedTouches"in E&&(M||z)&&(s.current=V),!V)return!0;var ee=s.current||V;return qN(ee,T,E,ee==="h"?M:z)},[]),g=y.useCallback(function(E){var T=E;if(!(!zi.length||zi[zi.length-1]!==f)){var R="deltaY"in T?By(T):tu(T),j=l.current.filter(function(V){return V.name===T.type&&(V.target===T.target||T.target===V.shadowParent)&&VN(V.delta,R)})[0];if(j&&j.should){T.cancelable&&T.preventDefault();return}if(!j){var M=(d.current.shards||[]).map(ky).filter(Boolean).filter(function(V){return V.contains(T.target)}),z=M.length>0?m(T,M[0]):!d.current.noIsolation;z&&T.cancelable&&T.preventDefault()}}},[]),p=y.useCallback(function(E,T,R,j){var M={name:E,delta:T,target:R,should:j,shadowParent:XN(R)};l.current.push(M),setTimeout(function(){l.current=l.current.filter(function(z){return z!==M})},1)},[]),x=y.useCallback(function(E){r.current=tu(E),s.current=void 0},[]),b=y.useCallback(function(E){p(E.type,By(E),E.target,m(E,n.lockRef.current))},[]),w=y.useCallback(function(E){p(E.type,tu(E),E.target,m(E,n.lockRef.current))},[]);y.useEffect(function(){return zi.push(f),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",g,Di),document.addEventListener("touchmove",g,Di),document.addEventListener("touchstart",x,Di),function(){zi=zi.filter(function(E){return E!==f}),document.removeEventListener("wheel",g,Di),document.removeEventListener("touchmove",g,Di),document.removeEventListener("touchstart",x,Di)}},[]);var C=n.removeScrollBar,N=n.inert;return y.createElement(y.Fragment,null,N?y.createElement(f,{styles:YN(u)}):null,C?y.createElement(DN,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function XN(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const KN=xN(Mb,QN);var Ch=y.forwardRef(function(n,l){return y.createElement(_u,Dn({},n,{ref:l,sideCar:KN}))});Ch.classNames=_u.classNames;var PN=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Li=new WeakMap,nu=new WeakMap,au={},Sd=0,Hb=function(n){return n&&(n.host||Hb(n.parentNode))},ZN=function(n,l){return l.map(function(r){if(n.contains(r))return r;var s=Hb(r);return s&&n.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},FN=function(n,l,r,s){var u=ZN(l,Array.isArray(n)?n:[n]);au[r]||(au[r]=new WeakMap);var f=au[r],d=[],m=new Set,g=new Set(u),p=function(b){!b||m.has(b)||(m.add(b),p(b.parentNode))};u.forEach(p);var x=function(b){!b||g.has(b)||Array.prototype.forEach.call(b.children,function(w){if(m.has(w))x(w);else try{var C=w.getAttribute(s),N=C!==null&&C!=="false",E=(Li.get(w)||0)+1,T=(f.get(w)||0)+1;Li.set(w,E),f.set(w,T),d.push(w),E===1&&N&&nu.set(w,!0),T===1&&w.setAttribute(r,"true"),N||w.setAttribute(s,"true")}catch(R){console.error("aria-hidden: cannot operate on ",w,R)}})};return x(l),m.clear(),Sd++,function(){d.forEach(function(b){var w=Li.get(b)-1,C=f.get(b)-1;Li.set(b,w),f.set(b,C),w||(nu.has(b)||b.removeAttribute(s),nu.delete(b)),C||b.removeAttribute(r)}),Sd--,Sd||(Li=new WeakMap,Li=new WeakMap,nu=new WeakMap,au={})}},Bb=function(n,l,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),u=PN(n);return u?(s.push.apply(s,Array.from(u.querySelectorAll("[aria-live], script"))),FN(s,u,r,"aria-hidden")):function(){return null}},ju="Dialog",[kb]=Au(ju),[$N,Tn]=kb(ju),qb=n=>{const{__scopeDialog:l,children:r,open:s,defaultOpen:u,onOpenChange:f,modal:d=!0}=n,m=y.useRef(null),g=y.useRef(null),[p,x]=Xd({prop:s,defaultProp:u??!1,onChange:f,caller:ju});return h.jsx($N,{scope:l,triggerRef:m,contentRef:g,contentId:Yi(),titleId:Yi(),descriptionId:Yi(),open:p,onOpenChange:x,onOpenToggle:y.useCallback(()=>x(b=>!b),[x]),modal:d,children:r})};qb.displayName=ju;var Vb="DialogTrigger",IN=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn(Vb,r),f=it(l,u.triggerRef);return h.jsx(Ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Nh(u.open),...s,ref:f,onClick:$e(n.onClick,u.onOpenToggle)})});IN.displayName=Vb;var Th="DialogPortal",[JN,Yb]=kb(Th,{forceMount:void 0}),Gb=n=>{const{__scopeDialog:l,forceMount:r,children:s,container:u}=n,f=Tn(Th,l);return h.jsx(JN,{scope:l,forceMount:r,children:y.Children.map(s,d=>h.jsx(Ou,{present:r||f.open,children:h.jsx(wh,{asChild:!0,container:u,children:d})}))})};Gb.displayName=Th;var yu="DialogOverlay",Qb=y.forwardRef((n,l)=>{const r=Yb(yu,n.__scopeDialog),{forceMount:s=r.forceMount,...u}=n,f=Tn(yu,n.__scopeDialog);return f.modal?h.jsx(Ou,{present:s||f.open,children:h.jsx(eA,{...u,ref:l})}):null});Qb.displayName=yu;var WN=ys("DialogOverlay.RemoveScroll"),eA=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn(yu,r);return h.jsx(Ch,{as:WN,allowPinchZoom:!0,shards:[u.contentRef],children:h.jsx(Ke.div,{"data-state":Nh(u.open),...s,ref:l,style:{pointerEvents:"auto",...s.style}})})}),Ql="DialogContent",Xb=y.forwardRef((n,l)=>{const r=Yb(Ql,n.__scopeDialog),{forceMount:s=r.forceMount,...u}=n,f=Tn(Ql,n.__scopeDialog);return h.jsx(Ou,{present:s||f.open,children:f.modal?h.jsx(tA,{...u,ref:l}):h.jsx(nA,{...u,ref:l})})});Xb.displayName=Ql;var tA=y.forwardRef((n,l)=>{const r=Tn(Ql,n.__scopeDialog),s=y.useRef(null),u=it(l,r.contentRef,s);return y.useEffect(()=>{const f=s.current;if(f)return Bb(f)},[]),h.jsx(Kb,{...n,ref:u,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$e(n.onCloseAutoFocus,f=>{var d;f.preventDefault(),(d=r.triggerRef.current)==null||d.focus()}),onPointerDownOutside:$e(n.onPointerDownOutside,f=>{const d=f.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&f.preventDefault()}),onFocusOutside:$e(n.onFocusOutside,f=>f.preventDefault())})}),nA=y.forwardRef((n,l)=>{const r=Tn(Ql,n.__scopeDialog),s=y.useRef(!1),u=y.useRef(!1);return h.jsx(Kb,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,m;(d=n.onCloseAutoFocus)==null||d.call(n,f),f.defaultPrevented||(s.current||(m=r.triggerRef.current)==null||m.focus(),f.preventDefault()),s.current=!1,u.current=!1},onInteractOutside:f=>{var g,p;(g=n.onInteractOutside)==null||g.call(n,f),f.defaultPrevented||(s.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const d=f.target;((p=r.triggerRef.current)==null?void 0:p.contains(d))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),Kb=y.forwardRef((n,l)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:u,onCloseAutoFocus:f,...d}=n,m=Tn(Ql,r),g=y.useRef(null),p=it(l,g);return Ob(),h.jsxs(h.Fragment,{children:[h.jsx(Eh,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:u,onUnmountAutoFocus:f,children:h.jsx(Sh,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Nh(m.open),...d,ref:p,onDismiss:()=>m.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(aA,{titleId:m.titleId}),h.jsx(iA,{contentRef:g,descriptionId:m.descriptionId})]})]})}),Rh="DialogTitle",Pb=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn(Rh,r);return h.jsx(Ke.h2,{id:u.titleId,...s,ref:l})});Pb.displayName=Rh;var Zb="DialogDescription",Fb=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn(Zb,r);return h.jsx(Ke.p,{id:u.descriptionId,...s,ref:l})});Fb.displayName=Zb;var $b="DialogClose",Ib=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn($b,r);return h.jsx(Ke.button,{type:"button",...s,ref:l,onClick:$e(n.onClick,()=>u.onOpenChange(!1))})});Ib.displayName=$b;function Nh(n){return n?"open":"closed"}var Jb="DialogTitleWarning",[F_,Wb]=MR(Jb,{contentName:Ql,titleName:Rh,docsSlug:"dialog"}),aA=({titleId:n})=>{const l=Wb(Jb),r=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
|
|
286
|
-
|
|
287
|
-
If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
288
|
-
|
|
289
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return y.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},lA="DialogDescriptionWarning",iA=({contentRef:n,descriptionId:l})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wb(lA).contentName}}.`;return y.useEffect(()=>{var f;const u=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");l&&u&&(document.getElementById(l)||console.warn(s))},[s,n,l]),null},rA=qb,sA=Gb,ex=Qb,tx=Xb,nx=Pb,ax=Fb,oA=Ib;const uA=rA,cA=sA,lx=y.forwardRef(({className:n,...l},r)=>h.jsx(ex,{ref:r,className:Xe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l}));lx.displayName=ex.displayName;const ix=y.forwardRef(({className:n,children:l,...r},s)=>h.jsxs(cA,{children:[h.jsx(lx,{}),h.jsxs(tx,{ref:s,className:Xe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...r,children:[l,h.jsxs(oA,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[h.jsx(FC,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ix.displayName=tx.displayName;function rx({className:n,...l}){return h.jsx("div",{className:Xe("flex flex-col space-y-1.5 text-center sm:text-left",n),...l})}rx.displayName="DialogHeader";function sx({className:n,...l}){return h.jsx("div",{className:Xe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l})}sx.displayName="DialogFooter";const ox=y.forwardRef(({className:n,...l},r)=>h.jsx(nx,{ref:r,className:Xe("text-lg font-semibold leading-none tracking-tight",n),...l}));ox.displayName=nx.displayName;const ux=y.forwardRef(({className:n,...l},r)=>h.jsx(ax,{ref:r,className:Xe("text-sm text-muted-foreground",n),...l}));ux.displayName=ax.displayName;const cx=["ollama","lm-studio","anthropic","openai-compatible"],fA=["ollama","lm-studio","openai-compatible"],qy={ollama:"http://localhost:11434","lm-studio":"http://localhost:1234","openai-compatible":void 0},dA=["debug","info","warn","error"],hA=["git","obsidian-sync","manual"],mA=[{value:2048,label:"2K"},{value:4096,label:"4K"},{value:8192,label:"8K"},{value:16384,label:"16K"},{value:32768,label:"32K"},{value:65536,label:"64K"},{value:131072,label:"128K"}],Vy=[1500,3e3,5e3,1e4],fx=mA.map(n=>({value:String(n.value),label:`${n.label} (${n.value.toLocaleString()})`})),pA=["Stage 1 (warm)","Stage 2 (cooling)","Stage 3 (cold)"],vA=["Seconds between cycles after initial activity subsides","Seconds between cycles as activity continues to drop","Seconds between cycles just before dormancy"];function Re({label:n,description:l,children:r}){return h.jsxs("div",{className:"grid gap-1.5",children:[h.jsx("label",{className:"text-sm font-medium text-foreground",children:n}),l&&h.jsx("p",{className:"text-xs text-muted-foreground",children:l}),r]})}function cu({checked:n,onChange:l}){return h.jsx("button",{type:"button",role:"switch","aria-checked":n,onClick:()=>l(!n),className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ${n?"bg-primary":"bg-muted"}`,children:h.jsx("span",{className:`pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform duration-200 ${n?"translate-x-5":"translate-x-0"}`})})}function ll({value:n,onChange:l,options:r,disabled:s,className:u}){return h.jsx("select",{value:n,onChange:f=>l(f.target.value),disabled:s,className:Xe("w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:opacity-50",u),children:r.map(f=>{const d=typeof f=="string"?f:f.value,m=typeof f=="string"?f:f.label;return h.jsx("option",{value:d,children:m},d)})})}const hn=(n,l)=>r=>{const s=parseInt(r.target.value,10);isNaN(s)||n(l,s)};function Ol(n,l){return JSON.stringify(n)!==JSON.stringify(l)}function or({title:n,description:l,isDirty:r,defaultOpen:s=!1,children:u}){const[f,d]=y.useState(s);return h.jsxs(It,{children:[h.jsxs(mn,{className:"cursor-pointer select-none",onClick:()=>d(m=>!m),children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(pn,{className:"text-base",children:n}),r&&h.jsx("span",{className:"h-2 w-2 rounded-full bg-primary",title:"Unsaved changes"})]}),h.jsx(tb,{className:Xe("h-4 w-4 text-muted-foreground transition-transform duration-200",!f&&"-rotate-90")})]}),l&&h.jsx(Vi,{children:l})]}),f&&h.jsx(Jt,{children:u})]})}const Je=y.forwardRef(({className:n,type:l,...r},s)=>h.jsx("input",{type:l,className:Xe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:s,...r}));Je.displayName="Input";const dx=new Set(["openai-compatible"]);function gA(n,l,r){const s=n?dx.has(n):!1;return Cu({queryKey:["models",n,l,r],queryFn:({signal:f})=>{const d=new URLSearchParams({provider:n});return l&&d.set("base_url",l),r&&d.set("type",r),Zl(`/models?${d.toString()}`,{signal:f})},enabled:!!n&&(!s||!!l),staleTime:aT})}const yA=500;function Zd({provider:n,baseUrl:l,value:r,onChange:s,placeholder:u,modelType:f}){const m=(n?dx.has(n):!1)&&!l,[g,p]=y.useState(l);y.useEffect(()=>{const C=setTimeout(()=>p(l),yA);return()=>clearTimeout(C)},[l]);const{data:x,isLoading:b}=gA(n,g,f),w=(x==null?void 0:x.models)??[];return y.useEffect(()=>{if(b||m||w.length===0||w.includes(r))return;const N=w.find(E=>E.startsWith(r+":")||r.startsWith(E+":")||E===r)??w[0];N!==r&&s(N)},[w,b,m,r,s]),h.jsxs("select",{value:r,onChange:C=>s(C.target.value),disabled:b||!n||m,className:"w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:opacity-50",children:[m&&h.jsx("option",{value:"",children:u??"Enter base URL first"}),!m&&b&&h.jsx("option",{value:r,children:"Loading models..."}),!m&&!b&&!n&&h.jsx("option",{value:"",children:u??"Select provider first"}),!m&&!b&&n&&w.length===0&&h.jsx("option",{value:"",children:u??"No models available"}),!m&&!b&&w.map(C=>h.jsx("option",{value:C,children:C},C))]})}function bA({intelligence:n,isDirty:l,updateLlm:r,updateEmbedding:s}){return h.jsx(or,{title:"Intelligence",description:"LLM and embedding provider configuration",isDirty:l,defaultOpen:!0,children:h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"LLM"}),h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[h.jsx(Re,{label:"Provider",description:"Which LLM service to use for processing sessions",children:h.jsx(ll,{value:n.llm.provider,onChange:u=>r("provider",u),options:[...cx]})}),n.llm.provider==="openai-compatible"&&h.jsx(Re,{label:"Base URL",description:"OpenAI-compatible API endpoint (e.g., http://localhost:8080/v1)",children:h.jsx(Je,{value:n.llm.base_url??"",onChange:u=>r("base_url",u.target.value),placeholder:"http://localhost:8080/v1"})}),h.jsx(Re,{label:"Model",description:"The model for extraction, summaries, and titles — speed matters more than depth",children:h.jsx(Zd,{provider:n.llm.provider,baseUrl:n.llm.base_url,value:n.llm.model,onChange:u=>r("model",u),modelType:"llm"})}),h.jsx(Re,{label:"Context Window",description:"How much text the model can read per operation",children:h.jsx(ll,{value:String(n.llm.context_window),onChange:u=>r("context_window",parseInt(u,10)),options:fx})})]})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Embedding"}),h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[h.jsx(Re,{label:"Provider",description:"Which service generates vector embeddings for search",children:h.jsx(ll,{value:n.embedding.provider,onChange:u=>s("provider",u),options:[...fA]})}),n.embedding.provider==="openai-compatible"&&h.jsx(Re,{label:"Base URL",description:"OpenAI-compatible embedding API endpoint",children:h.jsx(Je,{value:n.embedding.base_url??"",onChange:u=>s("base_url",u.target.value),placeholder:"http://localhost:8080/v1"})}),h.jsx(Re,{label:"Model",description:"The embedding model for semantic search and similarity",children:h.jsx(Zd,{provider:n.embedding.provider,baseUrl:n.embedding.base_url,value:n.embedding.model,onChange:u=>s("model",u),modelType:"embedding"})})]})]})]})})}function xA({digest:n,intelligence:l,isDirty:r,updateDigest:s,updateDigestIntelligence:u,updateDigestMetabolism:f,updateDigestSubstrate:d}){const m=n.intelligence.provider??l.llm.provider,g=n.intelligence.base_url??l.llm.base_url;return h.jsx(or,{title:"Digest",description:"Continuous synthesis of vault knowledge into pre-computed context",isDirty:r,children:h.jsxs("div",{className:"space-y-6",children:[h.jsx(Re,{label:"Enabled",description:"Run continuous vault synthesis in the background",children:h.jsx(cu,{checked:n.enabled,onChange:p=>s("enabled",p)})}),h.jsx(Re,{label:"Consolidation",description:"Automatically consolidate related spores into wisdom notes before each digest cycle",children:h.jsx(cu,{checked:n.consolidation,onChange:p=>s("consolidation",p)})}),h.jsxs("div",{children:[h.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Intelligence"}),h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[h.jsx(Re,{label:"Provider",description:"Override the processor model for digest — use a larger model for better synthesis",children:h.jsx(ll,{value:n.intelligence.provider??"__null__",onChange:p=>u("provider",p==="__null__"?null:p),options:[{value:"__null__",label:"Use main provider"},...cx.map(p=>({value:p,label:p}))]})}),h.jsx(Re,{label:"Model",description:"Digest model — quality matters more than speed here",children:h.jsx(Zd,{provider:m,baseUrl:g,value:n.intelligence.model??"",onChange:p=>u("model",p||null),placeholder:"Use main model",modelType:"llm"})}),h.jsx(Re,{label:"Context Window",description:"How much vault content the digest model can process per cycle",children:h.jsx(ll,{value:String(n.intelligence.context_window),onChange:p=>u("context_window",parseInt(p,10)),options:fx})}),h.jsx(Re,{label:"Keep Alive",description:"How long to keep the digest model loaded between cycles (Ollama duration string)",children:h.jsx(Je,{value:n.intelligence.keep_alive??"",placeholder:"Provider default",onChange:p=>u("keep_alive",p.target.value||null)})}),h.jsx(Re,{label:"GPU KV Cache",description:"Offload key-value cache to GPU — faster but uses more VRAM",children:h.jsx(cu,{checked:n.intelligence.gpu_kv_cache,onChange:p=>u("gpu_kv_cache",p)})})]})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Tiers"}),h.jsx(Re,{label:"Token budgets",description:"Pre-computed context sizes available for session injection",children:h.jsx("div",{className:"flex flex-wrap gap-2",children:Vy.map(p=>h.jsx(vn,{variant:"secondary",children:p.toLocaleString()},p))})}),h.jsx("div",{className:"mt-4",children:h.jsx(Re,{label:"Inject Tier",description:"Which tier to inject at session start — larger tiers give agents more context",children:h.jsx(ll,{value:n.inject_tier!==null?String(n.inject_tier):"__null__",onChange:p=>s("inject_tier",p==="__null__"?null:parseInt(p,10)),options:[{value:"__null__",label:"None (disabled)"},...Vy.map(p=>({value:String(p),label:`${p.toLocaleString()} tokens`}))]})})})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Metabolism"}),h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[h.jsx(Re,{label:"Active Interval (sec)",description:"Seconds between digest cycles when new content is arriving",children:h.jsx(Je,{type:"number",value:n.metabolism.active_interval,onChange:p=>{const x=parseInt(p.target.value,10);isNaN(x)||f("active_interval",x)}})}),h.jsx(Re,{label:"Dormancy Threshold (sec)",description:"Seconds of inactivity before the digest engine goes dormant",children:h.jsx(Je,{type:"number",value:n.metabolism.dormancy_threshold,onChange:p=>{const x=parseInt(p.target.value,10);isNaN(x)||f("dormancy_threshold",x)}})})]}),h.jsxs("div",{className:"mt-4",children:[h.jsx("h5",{className:"mb-3 text-xs font-medium text-muted-foreground",children:"Cooldown Intervals (sec)"}),h.jsx("div",{className:"grid gap-4 sm:grid-cols-3",children:pA.map((p,x)=>h.jsx(Re,{label:p,description:vA[x],children:h.jsx(Je,{type:"number",value:n.metabolism.cooldown_intervals[x]??"",onChange:b=>{const w=parseInt(b.target.value,10);if(!isNaN(w)){const C=[...n.metabolism.cooldown_intervals];C[x]=w,f("cooldown_intervals",C)}}})},p))})]})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Substrate"}),h.jsx(Re,{label:"Max Notes Per Cycle",description:"Maximum vault notes to process in a single digest cycle",children:h.jsx(Je,{type:"number",value:n.substrate.max_notes_per_cycle,onChange:p=>{const x=parseInt(p.target.value,10);isNaN(x)||d("max_notes_per_cycle",x)}})})]})]})})}function SA({capture:n,isDirty:l,updateCapture:r}){return h.jsx(or,{title:"Capture",description:"Event buffering and token budgets for LLM processing",isDirty:l,children:h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[h.jsx(Re,{label:"Buffer Max Events",description:"Maximum events to buffer per session before flushing",children:h.jsx(Je,{type:"number",value:n.buffer_max_events,onChange:hn(r,"buffer_max_events")})}),h.jsx(Re,{label:"Extraction Max Tokens",description:"Output token limit for observation extraction from sessions",children:h.jsx(Je,{type:"number",value:n.extraction_max_tokens,onChange:hn(r,"extraction_max_tokens")})}),h.jsx(Re,{label:"Summary Max Tokens",description:"Output token limit for session summary generation",children:h.jsx(Je,{type:"number",value:n.summary_max_tokens,onChange:hn(r,"summary_max_tokens")})}),h.jsx(Re,{label:"Title Max Tokens",description:"Output token limit for session title generation",children:h.jsx(Je,{type:"number",value:n.title_max_tokens,onChange:hn(r,"title_max_tokens")})}),h.jsx(Re,{label:"Classification Max Tokens",description:"Output token limit for artifact classification",children:h.jsx(Je,{type:"number",value:n.classification_max_tokens,onChange:hn(r,"classification_max_tokens")})})]})})}function EA({context:n,isDirty:l,updateContext:r,updateContextLayer:s}){return h.jsx(or,{title:"Context",description:"Context injection token budget and layer allocations",isDirty:l,children:h.jsxs("div",{className:"space-y-4",children:[h.jsx(Re,{label:"Max Tokens",description:"Total token budget for per-prompt context injection",children:h.jsx(Je,{type:"number",value:n.max_tokens,onChange:hn(r,"max_tokens")})}),h.jsxs("div",{children:[h.jsx("h4",{className:"mb-1 text-sm font-medium text-muted-foreground",children:"Layer Allocations"}),h.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"How the budget is split across vault content types"}),h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[h.jsx(Re,{label:"Plans",description:"Tokens allocated to active plan context",children:h.jsx(Je,{type:"number",value:n.layers.plans,onChange:hn(s,"plans")})}),h.jsx(Re,{label:"Sessions",description:"Tokens allocated to recent session context",children:h.jsx(Je,{type:"number",value:n.layers.sessions,onChange:hn(s,"sessions")})}),h.jsx(Re,{label:"Spores",description:"Tokens allocated to relevant spore context",children:h.jsx(Je,{type:"number",value:n.layers.spores,onChange:hn(s,"spores")})}),h.jsx(Re,{label:"Team",description:"Tokens allocated to team member context",children:h.jsx(Je,{type:"number",value:n.layers.team,onChange:hn(s,"team")})})]})]})]})})}function wA({daemon:n,isDirty:l,updateDaemon:r}){return h.jsx(or,{title:"Daemon",description:"Daemon process settings",isDirty:l,children:h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[h.jsx(Re,{label:"Port",description:"Auto-derived from vault path — the daemon binds to this port on startup",children:h.jsx(Je,{type:"number",value:n.port??"",placeholder:"Auto",disabled:!0,className:"disabled:cursor-default disabled:opacity-70"})}),h.jsx(Re,{label:"Log Level",description:"Minimum severity level for daemon log output",children:h.jsx(ll,{value:n.log_level,onChange:s=>r("log_level",s),options:dA})}),h.jsx(Re,{label:"Grace Period (sec)",description:"Seconds to wait before shutting down when no sessions are active",children:h.jsx(Je,{type:"number",value:n.grace_period,onChange:hn(r,"grace_period")})}),h.jsx(Re,{label:"Max Log Size (bytes)",description:"Maximum daemon log file size in bytes before rotation",children:h.jsx(Je,{type:"number",value:n.max_log_size,onChange:hn(r,"max_log_size")})})]})})}function CA({team:n,isDirty:l,updateTeam:r}){return h.jsx(or,{title:"Team",description:"Multi-user collaboration settings",isDirty:l,children:h.jsxs("div",{className:"space-y-4",children:[h.jsx(Re,{label:"Enabled",description:"Enable team knowledge sharing across vault users",children:h.jsx(cu,{checked:n.enabled,onChange:s=>r("enabled",s)})}),h.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[h.jsx(Re,{label:"User Name",description:"Your display name for team attribution",children:h.jsx(Je,{value:n.user,onChange:s=>r("user",s.target.value)})}),h.jsx(Re,{label:"Sync Mode",description:"How team knowledge is synchronized between machines",children:h.jsx(ll,{value:n.sync,onChange:s=>r("sync",s),options:hA})})]})]})})}function TA({config:n,onSave:l,isSaving:r}){const[s,u]=y.useState(n),[f,d]=y.useState(!1),[m,g]=y.useState(null),{data:p}=Nu(),{restart:x,isRestarting:b}=cb();y.useEffect(()=>{u(n)},[n]);const w=(p==null?void 0:p.daemon.config_hash)??null,C=m!==null&&m!==w,N=Ol(s,n),E=Ol(s.intelligence,n.intelligence),T=Ol(s.digest,n.digest),R=Ol(s.capture,n.capture),j=Ol(s.context,n.context),M=Ol(s.daemon,n.daemon),z=Ol(s.team,n.team),V=y.useCallback((Q,I)=>u(J=>{const _={[Q]:I};return Q==="provider"&&typeof I=="string"&&(_.base_url=qy[I]??void 0),{...J,intelligence:{...J.intelligence,llm:{...J.intelligence.llm,..._}}}}),[]),F=y.useCallback((Q,I)=>u(J=>{const _={[Q]:I};return Q==="provider"&&(_.base_url=qy[I]??void 0),{...J,intelligence:{...J.intelligence,embedding:{...J.intelligence.embedding,..._}}}}),[]),Y=y.useCallback((Q,I)=>u(J=>({...J,digest:{...J.digest,[Q]:I}})),[]),$=y.useCallback((Q,I)=>u(J=>({...J,digest:{...J.digest,intelligence:{...J.digest.intelligence,[Q]:I}}})),[]),ae=y.useCallback((Q,I)=>u(J=>({...J,digest:{...J.digest,metabolism:{...J.digest.metabolism,[Q]:I}}})),[]),ie=y.useCallback((Q,I)=>u(J=>({...J,digest:{...J.digest,substrate:{...J.digest.substrate,[Q]:I}}})),[]),oe=y.useCallback((Q,I)=>u(J=>({...J,capture:{...J.capture,[Q]:I}})),[]),ee=y.useCallback((Q,I)=>u(J=>({...J,context:{...J.context,[Q]:I}})),[]),pe=y.useCallback((Q,I)=>u(J=>({...J,context:{...J.context,layers:{...J.context.layers,[Q]:I}}})),[]),ue=y.useCallback((Q,I)=>u(J=>({...J,daemon:{...J.daemon,[Q]:I}})),[]),de=y.useCallback((Q,I)=>u(J=>({...J,team:{...J.team,[Q]:I}})),[]),U=async()=>{const Q=await l(s);return w&&g(w),d(!0),Q},Z=async()=>{d(!1),await x(!0)};return h.jsxs("div",{className:"space-y-4",children:[C&&h.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-yellow-500/50 bg-yellow-500/10 px-4 py-3",children:[h.jsx(PC,{className:"h-4 w-4 shrink-0 text-yellow-500"}),h.jsx("span",{className:"flex-1 text-sm text-yellow-700 dark:text-yellow-400",children:"Configuration changed — restart required for changes to take effect"}),h.jsxs(Ct,{size:"sm",variant:"outline",className:"gap-1.5 border-yellow-500/50 text-yellow-700 hover:bg-yellow-500/10 dark:text-yellow-400",onClick:Z,disabled:b,children:[b?h.jsx(jl,{className:"h-3.5 w-3.5 animate-spin"}):h.jsx(jl,{className:"h-3.5 w-3.5"}),"Restart Now"]})]}),h.jsx(bA,{intelligence:s.intelligence,isDirty:E,updateLlm:V,updateEmbedding:F}),h.jsx(xA,{digest:s.digest,intelligence:s.intelligence,isDirty:T,updateDigest:Y,updateDigestIntelligence:$,updateDigestMetabolism:ae,updateDigestSubstrate:ie}),h.jsx(SA,{capture:s.capture,isDirty:R,updateCapture:oe}),h.jsx(EA,{context:s.context,isDirty:j,updateContext:ee,updateContextLayer:pe}),h.jsx(wA,{daemon:s.daemon,isDirty:M,updateDaemon:ue}),h.jsx(CA,{team:s.team,isDirty:z,updateTeam:de}),h.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[N&&h.jsx("span",{className:"text-sm text-muted-foreground",children:"Unsaved changes"}),h.jsxs(Ct,{onClick:U,disabled:!N||r,className:"gap-2",children:[r?h.jsx(jl,{className:"h-4 w-4 animate-spin"}):h.jsx(YC,{className:"h-4 w-4"}),r?"Saving...":"Save Configuration"]})]}),h.jsx(uA,{open:f,onOpenChange:d,children:h.jsxs(ix,{children:[h.jsxs(rx,{children:[h.jsx(ox,{children:"Configuration Saved"}),h.jsx(ux,{children:"Changes have been saved to disk. Some settings require a daemon restart to take effect."})]}),h.jsxs(sx,{children:[h.jsx(Ct,{variant:"outline",onClick:()=>d(!1),children:"Later"}),h.jsxs(Ct,{onClick:Z,disabled:b,className:"gap-2",children:[b?h.jsx(jl,{className:"h-4 w-4 animate-spin"}):h.jsx(jl,{className:"h-4 w-4"}),b?"Restarting...":"Restart Now"]})]})]})})]})}function RA(){const{config:n,isLoading:l,error:r,saveConfig:s,isSaving:u}=jR();return h.jsx(xh,{isLoading:l,error:r,loadingText:"Loading configuration...",children:n&&h.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(rb,{className:"h-5 w-5 text-primary"}),h.jsx("h1",{className:"text-xl font-semibold",children:"Configuration"})]}),h.jsx(TA,{config:n,onSave:s,isSaving:u})]})})}function hx(n){return Cu({queryKey:["progress",n],queryFn:({signal:l})=>Zl(`/progress/${n}`,{signal:l}),enabled:!!n,refetchInterval:l=>{const r=l.state.data;return(r==null?void 0:r.status)==="completed"||(r==null?void 0:r.status)==="failed"?!1:yh.PROGRESS}})}const NA=4e3;function mx({label:n,endpoint:l,body:r,description:s,icon:u,onComplete:f,disabled:d}){const[m,g]=y.useState("idle"),[p,x]=y.useState(null),[b,w]=y.useState(null),{data:C}=hx(p);y.useEffect(()=>{C&&(C.status==="completed"?(g("complete"),w(C.message??"Done"),x(null),f==null||f(C.result)):C.status==="failed"&&(g("failed"),w(C.message??"Failed"),x(null)))},[C,f]),y.useEffect(()=>{if(m!=="complete"&&m!=="failed")return;const j=setTimeout(()=>{g("idle"),w(null)},NA);return()=>clearTimeout(j)},[m]);const N=y.useCallback(async()=>{g("submitting");try{const j=await vu(l,r);j.token?(x(j.token),g("tracking")):(g("complete"),w("Done"),f==null||f(j))}catch{g("failed"),w("Request failed")}},[l,r,f]),E=m==="submitting"||m==="tracking",T=m==="tracking"&&(C==null?void 0:C.percent)!=null?C.percent:null,R=m==="tracking"?C==null?void 0:C.message:null;return h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsxs(Ct,{variant:"outline",size:"sm",className:Xe("gap-2 transition-colors",m==="complete"&&"border-primary/50 text-primary",m==="failed"&&"border-destructive/50 text-destructive"),disabled:E||d,onClick:N,children:[E?h.jsx(pu,{className:"h-4 w-4 animate-spin"}):m==="complete"?h.jsx(nb,{className:"h-4 w-4"}):m==="failed"?h.jsx(ab,{className:"h-4 w-4"}):u,E?R??"Running...":b??n]}),T!==null&&h.jsxs("span",{className:"text-xs font-mono text-muted-foreground",children:[Math.round(T),"%"]})]}),E&&T!==null&&h.jsx("div",{className:"mt-2 h-1.5 w-full rounded-full bg-muted overflow-hidden",children:h.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-300",style:{width:`${T}%`}})}),s&&m==="idle"&&h.jsx("p",{className:"text-xs text-muted-foreground",children:s})]})}const AA=6e3;function OA(){const[n,l]=y.useState("idle"),[r,s]=y.useState(null),[u,f]=y.useState(null),[d,m]=y.useState("idle"),[g,p]=y.useState(null),[x,b]=y.useState(null),{data:w}=hx(g);y.useEffect(()=>{w&&(w.status==="completed"?(m("complete"),b(w.message??"Curation complete"),p(null),s(null),l("idle")):w.status==="failed"&&(m("failed"),b(w.message??"Curation failed"),p(null)))},[w]),y.useEffect(()=>{if(d!=="complete"&&d!=="failed")return;const R=setTimeout(()=>{m("idle"),b(null)},AA);return()=>clearTimeout(R)},[d]);const C=y.useCallback(async()=>{l("loading"),f(null);try{const R=await vu("/curate",{dry_run:!0});s(R),l("loaded")}catch{f("Failed to load curation preview"),l("error")}},[]),N=y.useCallback(async()=>{m("submitting");try{const R=await vu("/curate",{dry_run:!1});R.token?(p(R.token),m("tracking")):(m("complete"),b("Curation complete"))}catch{m("failed"),b("Curation request failed")}},[]),E=d==="submitting"||d==="tracking",T=d==="tracking"&&(w==null?void 0:w.percent)!=null?w.percent:null;return h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsxs(Ct,{variant:"outline",size:"sm",className:"gap-2",disabled:n==="loading"||E,onClick:C,children:[n==="loading"?h.jsx(pu,{className:"h-4 w-4 animate-spin"}):h.jsx(DC,{className:"h-4 w-4"}),n==="loading"?"Scanning...":"Preview"]}),h.jsxs(Ct,{variant:"outline",size:"sm",className:Xe("gap-2 transition-colors",d==="complete"&&"border-primary/50 text-primary",d==="failed"&&"border-destructive/50 text-destructive"),disabled:E||n==="loading",onClick:N,children:[E?h.jsx(pu,{className:"h-4 w-4 animate-spin"}):d==="complete"?h.jsx(nb,{className:"h-4 w-4"}):d==="failed"?h.jsx(ab,{className:"h-4 w-4"}):h.jsx(lb,{className:"h-4 w-4"}),E?(w==null?void 0:w.message)??"Curating...":x??"Execute"]}),T!==null&&h.jsxs("span",{className:"text-xs font-mono text-muted-foreground",children:[Math.round(T),"%"]})]}),E&&T!==null&&h.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-secondary",children:h.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-300",style:{width:`${T}%`}})}),n==="error"&&u&&h.jsx("p",{className:"text-sm text-destructive",children:u}),n==="loaded"&&r&&h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"rounded-md border border-border bg-background p-3 text-sm space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-muted-foreground",children:"Spores scanned"}),h.jsx(vn,{variant:"secondary",className:"font-mono text-xs",children:r.scanned})]}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-muted-foreground",children:"Clusters evaluated"}),h.jsx(vn,{variant:"secondary",className:"font-mono text-xs",children:r.clustersEvaluated})]}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-muted-foreground",children:"Would supersede"}),h.jsx(vn,{variant:r.superseded>0?"destructive":"secondary",className:"font-mono text-xs",children:r.superseded})]})]}),h.jsx("p",{className:"text-xs text-muted-foreground",children:r.superseded===0?"No duplicate spores found.":`${r.superseded} spore${r.superseded===1?"":"s"} would be superseded. Run Execute to apply.`})]})]})}function Yy(n,[l,r]){return Math.min(r,Math.max(l,n))}function _A(n){const l=n+"CollectionProvider",[r,s]=Au(l),[u,f]=r(l,{collectionRef:{current:null},itemMap:new Map}),d=E=>{const{scope:T,children:R}=E,j=oa.useRef(null),M=oa.useRef(new Map).current;return h.jsx(u,{scope:T,itemMap:M,collectionRef:j,children:R})};d.displayName=l;const m=n+"CollectionSlot",g=ys(m),p=oa.forwardRef((E,T)=>{const{scope:R,children:j}=E,M=f(m,R),z=it(T,M.collectionRef);return h.jsx(g,{ref:z,children:j})});p.displayName=m;const x=n+"CollectionItemSlot",b="data-radix-collection-item",w=ys(x),C=oa.forwardRef((E,T)=>{const{scope:R,children:j,...M}=E,z=oa.useRef(null),V=it(T,z),F=f(x,R);return oa.useEffect(()=>(F.itemMap.set(z,{ref:z,...M}),()=>void F.itemMap.delete(z))),h.jsx(w,{[b]:"",ref:V,children:j})});C.displayName=x;function N(E){const T=f(n+"CollectionConsumer",E);return oa.useCallback(()=>{const j=T.collectionRef.current;if(!j)return[];const M=Array.from(j.querySelectorAll(`[${b}]`));return Array.from(T.itemMap.values()).sort((F,Y)=>M.indexOf(F.ref.current)-M.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:C},N,s]}var jA=y.createContext(void 0);function MA(n){const l=y.useContext(jA);return n||l||"ltr"}const DA=["top","right","bottom","left"],il=Math.min,$t=Math.max,bu=Math.round,lu=Math.floor,Un=n=>({x:n,y:n}),zA={left:"right",right:"left",bottom:"top",top:"bottom"};function Fd(n,l,r){return $t(n,il(l,r))}function pa(n,l){return typeof n=="function"?n(l):n}function va(n){return n.split("-")[0]}function ur(n){return n.split("-")[1]}function Ah(n){return n==="x"?"y":"x"}function Oh(n){return n==="y"?"height":"width"}function zn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function _h(n){return Ah(zn(n))}function LA(n,l,r){r===void 0&&(r=!1);const s=ur(n),u=_h(n),f=Oh(u);let d=u==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return l.reference[f]>l.floating[f]&&(d=xu(d)),[d,xu(d)]}function UA(n){const l=xu(n);return[$d(n),l,$d(l)]}function $d(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Gy=["left","right"],Qy=["right","left"],HA=["top","bottom"],BA=["bottom","top"];function kA(n,l,r){switch(n){case"top":case"bottom":return r?l?Qy:Gy:l?Gy:Qy;case"left":case"right":return l?HA:BA;default:return[]}}function qA(n,l,r,s){const u=ur(n);let f=kA(va(n),r==="start",s);return u&&(f=f.map(d=>d+"-"+u),l&&(f=f.concat(f.map($d)))),f}function xu(n){const l=va(n);return zA[l]+n.slice(l.length)}function VA(n){return{top:0,right:0,bottom:0,left:0,...n}}function px(n){return typeof n!="number"?VA(n):{top:n,right:n,bottom:n,left:n}}function Su(n){const{x:l,y:r,width:s,height:u}=n;return{width:s,height:u,top:r,left:l,right:l+s,bottom:r+u,x:l,y:r}}function Xy(n,l,r){let{reference:s,floating:u}=n;const f=zn(l),d=_h(l),m=Oh(d),g=va(l),p=f==="y",x=s.x+s.width/2-u.width/2,b=s.y+s.height/2-u.height/2,w=s[m]/2-u[m]/2;let C;switch(g){case"top":C={x,y:s.y-u.height};break;case"bottom":C={x,y:s.y+s.height};break;case"right":C={x:s.x+s.width,y:b};break;case"left":C={x:s.x-u.width,y:b};break;default:C={x:s.x,y:s.y}}switch(ur(l)){case"start":C[d]-=w*(r&&p?-1:1);break;case"end":C[d]+=w*(r&&p?-1:1);break}return C}async function YA(n,l){var r;l===void 0&&(l={});const{x:s,y:u,platform:f,rects:d,elements:m,strategy:g}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:b="floating",altBoundary:w=!1,padding:C=0}=pa(l,n),N=px(C),T=m[w?b==="floating"?"reference":"floating":b],R=Su(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(T)))==null||r?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:p,rootBoundary:x,strategy:g})),j=b==="floating"?{x:s,y:u,width:d.floating.width,height:d.floating.height}:d.reference,M=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),z=await(f.isElement==null?void 0:f.isElement(M))?await(f.getScale==null?void 0:f.getScale(M))||{x:1,y:1}:{x:1,y:1},V=Su(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:j,offsetParent:M,strategy:g}):j);return{top:(R.top-V.top+N.top)/z.y,bottom:(V.bottom-R.bottom+N.bottom)/z.y,left:(R.left-V.left+N.left)/z.x,right:(V.right-R.right+N.right)/z.x}}const GA=50,QA=async(n,l,r)=>{const{placement:s="bottom",strategy:u="absolute",middleware:f=[],platform:d}=r,m=d.detectOverflow?d:{...d,detectOverflow:YA},g=await(d.isRTL==null?void 0:d.isRTL(l));let p=await d.getElementRects({reference:n,floating:l,strategy:u}),{x,y:b}=Xy(p,s,g),w=s,C=0;const N={};for(let E=0;E<f.length;E++){const T=f[E];if(!T)continue;const{name:R,fn:j}=T,{x:M,y:z,data:V,reset:F}=await j({x,y:b,initialPlacement:s,placement:w,strategy:u,middlewareData:N,rects:p,platform:m,elements:{reference:n,floating:l}});x=M??x,b=z??b,N[R]={...N[R],...V},F&&C<GA&&(C++,typeof F=="object"&&(F.placement&&(w=F.placement),F.rects&&(p=F.rects===!0?await d.getElementRects({reference:n,floating:l,strategy:u}):F.rects),{x,y:b}=Xy(p,w,g)),E=-1)}return{x,y:b,placement:w,strategy:u,middlewareData:N}},XA=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:s,placement:u,rects:f,platform:d,elements:m,middlewareData:g}=l,{element:p,padding:x=0}=pa(n,l)||{};if(p==null)return{};const b=px(x),w={x:r,y:s},C=_h(u),N=Oh(C),E=await d.getDimensions(p),T=C==="y",R=T?"top":"left",j=T?"bottom":"right",M=T?"clientHeight":"clientWidth",z=f.reference[N]+f.reference[C]-w[C]-f.floating[N],V=w[C]-f.reference[C],F=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let Y=F?F[M]:0;(!Y||!await(d.isElement==null?void 0:d.isElement(F)))&&(Y=m.floating[M]||f.floating[N]);const $=z/2-V/2,ae=Y/2-E[N]/2-1,ie=il(b[R],ae),oe=il(b[j],ae),ee=ie,pe=Y-E[N]-oe,ue=Y/2-E[N]/2+$,de=Fd(ee,ue,pe),U=!g.arrow&&ur(u)!=null&&ue!==de&&f.reference[N]/2-(ue<ee?ie:oe)-E[N]/2<0,Z=U?ue<ee?ue-ee:ue-pe:0;return{[C]:w[C]+Z,data:{[C]:de,centerOffset:ue-de-Z,...U&&{alignmentOffset:Z}},reset:U}}}),KA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,s;const{placement:u,middlewareData:f,rects:d,initialPlacement:m,platform:g,elements:p}=l,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:E=!0,...T}=pa(n,l);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const R=va(u),j=zn(m),M=va(m)===m,z=await(g.isRTL==null?void 0:g.isRTL(p.floating)),V=w||(M||!E?[xu(m)]:UA(m)),F=N!=="none";!w&&F&&V.push(...qA(m,E,N,z));const Y=[m,...V],$=await g.detectOverflow(l,T),ae=[];let ie=((s=f.flip)==null?void 0:s.overflows)||[];if(x&&ae.push($[R]),b){const ue=LA(u,d,z);ae.push($[ue[0]],$[ue[1]])}if(ie=[...ie,{placement:u,overflows:ae}],!ae.every(ue=>ue<=0)){var oe,ee;const ue=(((oe=f.flip)==null?void 0:oe.index)||0)+1,de=Y[ue];if(de&&(!(b==="alignment"?j!==zn(de):!1)||ie.every(Q=>zn(Q.placement)===j?Q.overflows[0]>0:!0)))return{data:{index:ue,overflows:ie},reset:{placement:de}};let U=(ee=ie.filter(Z=>Z.overflows[0]<=0).sort((Z,Q)=>Z.overflows[1]-Q.overflows[1])[0])==null?void 0:ee.placement;if(!U)switch(C){case"bestFit":{var pe;const Z=(pe=ie.filter(Q=>{if(F){const I=zn(Q.placement);return I===j||I==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(I=>I>0).reduce((I,J)=>I+J,0)]).sort((Q,I)=>Q[1]-I[1])[0])==null?void 0:pe[0];Z&&(U=Z);break}case"initialPlacement":U=m;break}if(u!==U)return{reset:{placement:U}}}return{}}}};function Ky(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Py(n){return DA.some(l=>n[l]>=0)}const PA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:r,platform:s}=l,{strategy:u="referenceHidden",...f}=pa(n,l);switch(u){case"referenceHidden":{const d=await s.detectOverflow(l,{...f,elementContext:"reference"}),m=Ky(d,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Py(m)}}}case"escaped":{const d=await s.detectOverflow(l,{...f,altBoundary:!0}),m=Ky(d,r.floating);return{data:{escapedOffsets:m,escaped:Py(m)}}}default:return{}}}}},vx=new Set(["left","top"]);async function ZA(n,l){const{placement:r,platform:s,elements:u}=n,f=await(s.isRTL==null?void 0:s.isRTL(u.floating)),d=va(r),m=ur(r),g=zn(r)==="y",p=vx.has(d)?-1:1,x=f&&g?-1:1,b=pa(l,n);let{mainAxis:w,crossAxis:C,alignmentAxis:N}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof N=="number"&&(C=m==="end"?N*-1:N),g?{x:C*x,y:w*p}:{x:w*p,y:C*x}}const FA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,s;const{x:u,y:f,placement:d,middlewareData:m}=l,g=await ZA(l,n);return d===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:u+g.x,y:f+g.y,data:{...g,placement:d}}}}},$A=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:s,placement:u,platform:f}=l,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:R=>{let{x:j,y:M}=R;return{x:j,y:M}}},...p}=pa(n,l),x={x:r,y:s},b=await f.detectOverflow(l,p),w=zn(va(u)),C=Ah(w);let N=x[C],E=x[w];if(d){const R=C==="y"?"top":"left",j=C==="y"?"bottom":"right",M=N+b[R],z=N-b[j];N=Fd(M,N,z)}if(m){const R=w==="y"?"top":"left",j=w==="y"?"bottom":"right",M=E+b[R],z=E-b[j];E=Fd(M,E,z)}const T=g.fn({...l,[C]:N,[w]:E});return{...T,data:{x:T.x-r,y:T.y-s,enabled:{[C]:d,[w]:m}}}}}},IA=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:r,y:s,placement:u,rects:f,middlewareData:d}=l,{offset:m=0,mainAxis:g=!0,crossAxis:p=!0}=pa(n,l),x={x:r,y:s},b=zn(u),w=Ah(b);let C=x[w],N=x[b];const E=pa(m,l),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(g){const M=w==="y"?"height":"width",z=f.reference[w]-f.floating[M]+T.mainAxis,V=f.reference[w]+f.reference[M]-T.mainAxis;C<z?C=z:C>V&&(C=V)}if(p){var R,j;const M=w==="y"?"width":"height",z=vx.has(va(u)),V=f.reference[b]-f.floating[M]+(z&&((R=d.offset)==null?void 0:R[b])||0)+(z?0:T.crossAxis),F=f.reference[b]+f.reference[M]+(z?0:((j=d.offset)==null?void 0:j[b])||0)-(z?T.crossAxis:0);N<V?N=V:N>F&&(N=F)}return{[w]:C,[b]:N}}}},JA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var r,s;const{placement:u,rects:f,platform:d,elements:m}=l,{apply:g=()=>{},...p}=pa(n,l),x=await d.detectOverflow(l,p),b=va(u),w=ur(u),C=zn(u)==="y",{width:N,height:E}=f.floating;let T,R;b==="top"||b==="bottom"?(T=b,R=w===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(R=b,T=w==="end"?"top":"bottom");const j=E-x.top-x.bottom,M=N-x.left-x.right,z=il(E-x[T],j),V=il(N-x[R],M),F=!l.middlewareData.shift;let Y=z,$=V;if((r=l.middlewareData.shift)!=null&&r.enabled.x&&($=M),(s=l.middlewareData.shift)!=null&&s.enabled.y&&(Y=j),F&&!w){const ie=$t(x.left,0),oe=$t(x.right,0),ee=$t(x.top,0),pe=$t(x.bottom,0);C?$=N-2*(ie!==0||oe!==0?ie+oe:$t(x.left,x.right)):Y=E-2*(ee!==0||pe!==0?ee+pe:$t(x.top,x.bottom))}await g({...l,availableWidth:$,availableHeight:Y});const ae=await d.getDimensions(m.floating);return N!==ae.width||E!==ae.height?{reset:{rects:!0}}:{}}}};function Mu(){return typeof window<"u"}function cr(n){return gx(n)?(n.nodeName||"").toLowerCase():"#document"}function Wt(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function kn(n){var l;return(l=(gx(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function gx(n){return Mu()?n instanceof Node||n instanceof Wt(n).Node:!1}function wn(n){return Mu()?n instanceof Element||n instanceof Wt(n).Element:!1}function ga(n){return Mu()?n instanceof HTMLElement||n instanceof Wt(n).HTMLElement:!1}function Zy(n){return!Mu()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Wt(n).ShadowRoot}function Os(n){const{overflow:l,overflowX:r,overflowY:s,display:u}=Cn(n);return/auto|scroll|overlay|hidden|clip/.test(l+s+r)&&u!=="inline"&&u!=="contents"}function WA(n){return/^(table|td|th)$/.test(cr(n))}function Du(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const eO=/transform|translate|scale|rotate|perspective|filter/,tO=/paint|layout|strict|content/,_l=n=>!!n&&n!=="none";let Ed;function jh(n){const l=wn(n)?Cn(n):n;return _l(l.transform)||_l(l.translate)||_l(l.scale)||_l(l.rotate)||_l(l.perspective)||!Mh()&&(_l(l.backdropFilter)||_l(l.filter))||eO.test(l.willChange||"")||tO.test(l.contain||"")}function nO(n){let l=rl(n);for(;ga(l)&&!ar(l);){if(jh(l))return l;if(Du(l))return null;l=rl(l)}return null}function Mh(){return Ed==null&&(Ed=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ed}function ar(n){return/^(html|body|#document)$/.test(cr(n))}function Cn(n){return Wt(n).getComputedStyle(n)}function zu(n){return wn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function rl(n){if(cr(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Zy(n)&&n.host||kn(n);return Zy(l)?l.host:l}function yx(n){const l=rl(n);return ar(l)?n.ownerDocument?n.ownerDocument.body:n.body:ga(l)&&Os(l)?l:yx(l)}function bs(n,l,r){var s;l===void 0&&(l=[]),r===void 0&&(r=!0);const u=yx(n),f=u===((s=n.ownerDocument)==null?void 0:s.body),d=Wt(u);if(f){const m=Id(d);return l.concat(d,d.visualViewport||[],Os(u)?u:[],m&&r?bs(m):[])}else return l.concat(u,bs(u,[],r))}function Id(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function bx(n){const l=Cn(n);let r=parseFloat(l.width)||0,s=parseFloat(l.height)||0;const u=ga(n),f=u?n.offsetWidth:r,d=u?n.offsetHeight:s,m=bu(r)!==f||bu(s)!==d;return m&&(r=f,s=d),{width:r,height:s,$:m}}function Dh(n){return wn(n)?n:n.contextElement}function Qi(n){const l=Dh(n);if(!ga(l))return Un(1);const r=l.getBoundingClientRect(),{width:s,height:u,$:f}=bx(l);let d=(f?bu(r.width):r.width)/s,m=(f?bu(r.height):r.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const aO=Un(0);function xx(n){const l=Wt(n);return!Mh()||!l.visualViewport?aO:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function lO(n,l,r){return l===void 0&&(l=!1),!r||l&&r!==Wt(n)?!1:l}function Xl(n,l,r,s){l===void 0&&(l=!1),r===void 0&&(r=!1);const u=n.getBoundingClientRect(),f=Dh(n);let d=Un(1);l&&(s?wn(s)&&(d=Qi(s)):d=Qi(n));const m=lO(f,r,s)?xx(f):Un(0);let g=(u.left+m.x)/d.x,p=(u.top+m.y)/d.y,x=u.width/d.x,b=u.height/d.y;if(f){const w=Wt(f),C=s&&wn(s)?Wt(s):s;let N=w,E=Id(N);for(;E&&s&&C!==N;){const T=Qi(E),R=E.getBoundingClientRect(),j=Cn(E),M=R.left+(E.clientLeft+parseFloat(j.paddingLeft))*T.x,z=R.top+(E.clientTop+parseFloat(j.paddingTop))*T.y;g*=T.x,p*=T.y,x*=T.x,b*=T.y,g+=M,p+=z,N=Wt(E),E=Id(N)}}return Su({width:x,height:b,x:g,y:p})}function Lu(n,l){const r=zu(n).scrollLeft;return l?l.left+r:Xl(kn(n)).left+r}function Sx(n,l){const r=n.getBoundingClientRect(),s=r.left+l.scrollLeft-Lu(n,r),u=r.top+l.scrollTop;return{x:s,y:u}}function iO(n){let{elements:l,rect:r,offsetParent:s,strategy:u}=n;const f=u==="fixed",d=kn(s),m=l?Du(l.floating):!1;if(s===d||m&&f)return r;let g={scrollLeft:0,scrollTop:0},p=Un(1);const x=Un(0),b=ga(s);if((b||!b&&!f)&&((cr(s)!=="body"||Os(d))&&(g=zu(s)),b)){const C=Xl(s);p=Qi(s),x.x=C.x+s.clientLeft,x.y=C.y+s.clientTop}const w=d&&!b&&!f?Sx(d,g):Un(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-g.scrollLeft*p.x+x.x+w.x,y:r.y*p.y-g.scrollTop*p.y+x.y+w.y}}function rO(n){return Array.from(n.getClientRects())}function sO(n){const l=kn(n),r=zu(n),s=n.ownerDocument.body,u=$t(l.scrollWidth,l.clientWidth,s.scrollWidth,s.clientWidth),f=$t(l.scrollHeight,l.clientHeight,s.scrollHeight,s.clientHeight);let d=-r.scrollLeft+Lu(n);const m=-r.scrollTop;return Cn(s).direction==="rtl"&&(d+=$t(l.clientWidth,s.clientWidth)-u),{width:u,height:f,x:d,y:m}}const Fy=25;function oO(n,l){const r=Wt(n),s=kn(n),u=r.visualViewport;let f=s.clientWidth,d=s.clientHeight,m=0,g=0;if(u){f=u.width,d=u.height;const x=Mh();(!x||x&&l==="fixed")&&(m=u.offsetLeft,g=u.offsetTop)}const p=Lu(s);if(p<=0){const x=s.ownerDocument,b=x.body,w=getComputedStyle(b),C=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,N=Math.abs(s.clientWidth-b.clientWidth-C);N<=Fy&&(f-=N)}else p<=Fy&&(f+=p);return{width:f,height:d,x:m,y:g}}function uO(n,l){const r=Xl(n,!0,l==="fixed"),s=r.top+n.clientTop,u=r.left+n.clientLeft,f=ga(n)?Qi(n):Un(1),d=n.clientWidth*f.x,m=n.clientHeight*f.y,g=u*f.x,p=s*f.y;return{width:d,height:m,x:g,y:p}}function $y(n,l,r){let s;if(l==="viewport")s=oO(n,r);else if(l==="document")s=sO(kn(n));else if(wn(l))s=uO(l,r);else{const u=xx(n);s={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return Su(s)}function Ex(n,l){const r=rl(n);return r===l||!wn(r)||ar(r)?!1:Cn(r).position==="fixed"||Ex(r,l)}function cO(n,l){const r=l.get(n);if(r)return r;let s=bs(n,[],!1).filter(m=>wn(m)&&cr(m)!=="body"),u=null;const f=Cn(n).position==="fixed";let d=f?rl(n):n;for(;wn(d)&&!ar(d);){const m=Cn(d),g=jh(d);!g&&m.position==="fixed"&&(u=null),(f?!g&&!u:!g&&m.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Os(d)&&!g&&Ex(n,d))?s=s.filter(x=>x!==d):u=m,d=rl(d)}return l.set(n,s),s}function fO(n){let{element:l,boundary:r,rootBoundary:s,strategy:u}=n;const d=[...r==="clippingAncestors"?Du(l)?[]:cO(l,this._c):[].concat(r),s],m=$y(l,d[0],u);let g=m.top,p=m.right,x=m.bottom,b=m.left;for(let w=1;w<d.length;w++){const C=$y(l,d[w],u);g=$t(C.top,g),p=il(C.right,p),x=il(C.bottom,x),b=$t(C.left,b)}return{width:p-b,height:x-g,x:b,y:g}}function dO(n){const{width:l,height:r}=bx(n);return{width:l,height:r}}function hO(n,l,r){const s=ga(l),u=kn(l),f=r==="fixed",d=Xl(n,!0,f,l);let m={scrollLeft:0,scrollTop:0};const g=Un(0);function p(){g.x=Lu(u)}if(s||!s&&!f)if((cr(l)!=="body"||Os(u))&&(m=zu(l)),s){const C=Xl(l,!0,f,l);g.x=C.x+l.clientLeft,g.y=C.y+l.clientTop}else u&&p();f&&!s&&u&&p();const x=u&&!s&&!f?Sx(u,m):Un(0),b=d.left+m.scrollLeft-g.x-x.x,w=d.top+m.scrollTop-g.y-x.y;return{x:b,y:w,width:d.width,height:d.height}}function wd(n){return Cn(n).position==="static"}function Iy(n,l){if(!ga(n)||Cn(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return kn(n)===r&&(r=r.ownerDocument.body),r}function wx(n,l){const r=Wt(n);if(Du(n))return r;if(!ga(n)){let u=rl(n);for(;u&&!ar(u);){if(wn(u)&&!wd(u))return u;u=rl(u)}return r}let s=Iy(n,l);for(;s&&WA(s)&&wd(s);)s=Iy(s,l);return s&&ar(s)&&wd(s)&&!jh(s)?r:s||nO(n)||r}const mO=async function(n){const l=this.getOffsetParent||wx,r=this.getDimensions,s=await r(n.floating);return{reference:hO(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function pO(n){return Cn(n).direction==="rtl"}const vO={convertOffsetParentRelativeRectToViewportRelativeRect:iO,getDocumentElement:kn,getClippingRect:fO,getOffsetParent:wx,getElementRects:mO,getClientRects:rO,getDimensions:dO,getScale:Qi,isElement:wn,isRTL:pO};function Cx(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function gO(n,l){let r=null,s;const u=kn(n);function f(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),f();const p=n.getBoundingClientRect(),{left:x,top:b,width:w,height:C}=p;if(m||l(),!w||!C)return;const N=lu(b),E=lu(u.clientWidth-(x+w)),T=lu(u.clientHeight-(b+C)),R=lu(x),M={rootMargin:-N+"px "+-E+"px "+-T+"px "+-R+"px",threshold:$t(0,il(1,g))||1};let z=!0;function V(F){const Y=F[0].intersectionRatio;if(Y!==g){if(!z)return d();Y?d(!1,Y):s=setTimeout(()=>{d(!1,1e-7)},1e3)}Y===1&&!Cx(p,n.getBoundingClientRect())&&d(),z=!1}try{r=new IntersectionObserver(V,{...M,root:u.ownerDocument})}catch{r=new IntersectionObserver(V,M)}r.observe(n)}return d(!0),f}function yO(n,l,r,s){s===void 0&&(s={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=s,p=Dh(n),x=u||f?[...p?bs(p):[],...l?bs(l):[]]:[];x.forEach(R=>{u&&R.addEventListener("scroll",r,{passive:!0}),f&&R.addEventListener("resize",r)});const b=p&&m?gO(p,r):null;let w=-1,C=null;d&&(C=new ResizeObserver(R=>{let[j]=R;j&&j.target===p&&C&&l&&(C.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=C)==null||M.observe(l)})),r()}),p&&!g&&C.observe(p),l&&C.observe(l));let N,E=g?Xl(n):null;g&&T();function T(){const R=Xl(n);E&&!Cx(E,R)&&r(),E=R,N=requestAnimationFrame(T)}return r(),()=>{var R;x.forEach(j=>{u&&j.removeEventListener("scroll",r),f&&j.removeEventListener("resize",r)}),b==null||b(),(R=C)==null||R.disconnect(),C=null,g&&cancelAnimationFrame(N)}}const bO=FA,xO=$A,SO=KA,EO=JA,wO=PA,Jy=XA,CO=IA,TO=(n,l,r)=>{const s=new Map,u={platform:vO,...r},f={...u.platform,_c:s};return QA(n,l,{...u,platform:f})};var RO=typeof document<"u",NO=function(){},fu=RO?y.useLayoutEffect:NO;function Eu(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let r,s,u;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==l.length)return!1;for(s=r;s--!==0;)if(!Eu(n[s],l[s]))return!1;return!0}if(u=Object.keys(n),r=u.length,r!==Object.keys(l).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(l,u[s]))return!1;for(s=r;s--!==0;){const f=u[s];if(!(f==="_owner"&&n.$$typeof)&&!Eu(n[f],l[f]))return!1}return!0}return n!==n&&l!==l}function Tx(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Wy(n,l){const r=Tx(n);return Math.round(l*r)/r}function Cd(n){const l=y.useRef(n);return fu(()=>{l.current=n}),l}function AO(n){n===void 0&&(n={});const{placement:l="bottom",strategy:r="absolute",middleware:s=[],platform:u,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:g,open:p}=n,[x,b]=y.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[w,C]=y.useState(s);Eu(w,s)||C(s);const[N,E]=y.useState(null),[T,R]=y.useState(null),j=y.useCallback(Q=>{Q!==F.current&&(F.current=Q,E(Q))},[]),M=y.useCallback(Q=>{Q!==Y.current&&(Y.current=Q,R(Q))},[]),z=f||N,V=d||T,F=y.useRef(null),Y=y.useRef(null),$=y.useRef(x),ae=g!=null,ie=Cd(g),oe=Cd(u),ee=Cd(p),pe=y.useCallback(()=>{if(!F.current||!Y.current)return;const Q={placement:l,strategy:r,middleware:w};oe.current&&(Q.platform=oe.current),TO(F.current,Y.current,Q).then(I=>{const J={...I,isPositioned:ee.current!==!1};ue.current&&!Eu($.current,J)&&($.current=J,As.flushSync(()=>{b(J)}))})},[w,l,r,oe,ee]);fu(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,b(Q=>({...Q,isPositioned:!1})))},[p]);const ue=y.useRef(!1);fu(()=>(ue.current=!0,()=>{ue.current=!1}),[]),fu(()=>{if(z&&(F.current=z),V&&(Y.current=V),z&&V){if(ie.current)return ie.current(z,V,pe);pe()}},[z,V,pe,ie,ae]);const de=y.useMemo(()=>({reference:F,floating:Y,setReference:j,setFloating:M}),[j,M]),U=y.useMemo(()=>({reference:z,floating:V}),[z,V]),Z=y.useMemo(()=>{const Q={position:r,left:0,top:0};if(!U.floating)return Q;const I=Wy(U.floating,x.x),J=Wy(U.floating,x.y);return m?{...Q,transform:"translate("+I+"px, "+J+"px)",...Tx(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:J}},[r,m,U.floating,x.x,x.y]);return y.useMemo(()=>({...x,update:pe,refs:de,elements:U,floatingStyles:Z}),[x,pe,de,U,Z])}const OO=n=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:s,padding:u}=typeof n=="function"?n(r):n;return s&&l(s)?s.current!=null?Jy({element:s.current,padding:u}).fn(r):{}:s?Jy({element:s,padding:u}).fn(r):{}}}},_O=(n,l)=>{const r=bO(n);return{name:r.name,fn:r.fn,options:[n,l]}},jO=(n,l)=>{const r=xO(n);return{name:r.name,fn:r.fn,options:[n,l]}},MO=(n,l)=>({fn:CO(n).fn,options:[n,l]}),DO=(n,l)=>{const r=SO(n);return{name:r.name,fn:r.fn,options:[n,l]}},zO=(n,l)=>{const r=EO(n);return{name:r.name,fn:r.fn,options:[n,l]}},LO=(n,l)=>{const r=wO(n);return{name:r.name,fn:r.fn,options:[n,l]}},UO=(n,l)=>{const r=OO(n);return{name:r.name,fn:r.fn,options:[n,l]}};var HO="Arrow",Rx=y.forwardRef((n,l)=>{const{children:r,width:s=10,height:u=5,...f}=n;return h.jsx(Ke.svg,{...f,ref:l,width:s,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rx.displayName=HO;var BO=Rx;function kO(n){const[l,r]=y.useState(void 0);return Tt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,m;if("borderBoxSize"in f){const g=f.borderBoxSize,p=Array.isArray(g)?g[0]:g;d=p.inlineSize,m=p.blockSize}else d=n.offsetWidth,m=n.offsetHeight;r({width:d,height:m})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else r(void 0)},[n]),l}var zh="Popper",[Nx,Ax]=Au(zh),[qO,Ox]=Nx(zh),_x=n=>{const{__scopePopper:l,children:r}=n,[s,u]=y.useState(null);return h.jsx(qO,{scope:l,anchor:s,onAnchorChange:u,children:r})};_x.displayName=zh;var jx="PopperAnchor",Mx=y.forwardRef((n,l)=>{const{__scopePopper:r,virtualRef:s,...u}=n,f=Ox(jx,r),d=y.useRef(null),m=it(l,d),g=y.useRef(null);return y.useEffect(()=>{const p=g.current;g.current=(s==null?void 0:s.current)||d.current,p!==g.current&&f.onAnchorChange(g.current)}),s?null:h.jsx(Ke.div,{...u,ref:m})});Mx.displayName=jx;var Lh="PopperContent",[VO,YO]=Nx(Lh),Dx=y.forwardRef((n,l)=>{var te,be,we,De,je,ze;const{__scopePopper:r,side:s="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:N,...E}=n,T=Ox(Lh,r),[R,j]=y.useState(null),M=it(l,St=>j(St)),[z,V]=y.useState(null),F=kO(z),Y=(F==null?void 0:F.width)??0,$=(F==null?void 0:F.height)??0,ae=s+(f!=="center"?"-"+f:""),ie=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},oe=Array.isArray(p)?p:[p],ee=oe.length>0,pe={padding:ie,boundary:oe.filter(QO),altBoundary:ee},{refs:ue,floatingStyles:de,placement:U,isPositioned:Z,middlewareData:Q}=AO({strategy:"fixed",placement:ae,whileElementsMounted:(...St)=>yO(...St,{animationFrame:C==="always"}),elements:{reference:T.anchor},middleware:[_O({mainAxis:u+$,alignmentAxis:d}),g&&jO({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?MO():void 0,...pe}),g&&DO({...pe}),zO({...pe,apply:({elements:St,rects:dt,availableWidth:qn,availableHeight:Vn})=>{const{width:cl,height:_s}=dt.reference,ya=St.floating.style;ya.setProperty("--radix-popper-available-width",`${qn}px`),ya.setProperty("--radix-popper-available-height",`${Vn}px`),ya.setProperty("--radix-popper-anchor-width",`${cl}px`),ya.setProperty("--radix-popper-anchor-height",`${_s}px`)}}),z&&UO({element:z,padding:m}),XO({arrowWidth:Y,arrowHeight:$}),w&&LO({strategy:"referenceHidden",...pe})]}),[I,J]=Ux(U),_=Gl(N);Tt(()=>{Z&&(_==null||_())},[Z,_]);const K=(te=Q.arrow)==null?void 0:te.x,W=(be=Q.arrow)==null?void 0:be.y,le=((we=Q.arrow)==null?void 0:we.centerOffset)!==0,[me,ve]=y.useState();return Tt(()=>{R&&ve(window.getComputedStyle(R).zIndex)},[R]),h.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:Z?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(De=Q.transformOrigin)==null?void 0:De.x,(je=Q.transformOrigin)==null?void 0:je.y].join(" "),...((ze=Q.hide)==null?void 0:ze.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:h.jsx(VO,{scope:r,placedSide:I,onArrowChange:V,arrowX:K,arrowY:W,shouldHideArrow:le,children:h.jsx(Ke.div,{"data-side":I,"data-align":J,...E,ref:M,style:{...E.style,animation:Z?void 0:"none"}})})})});Dx.displayName=Lh;var zx="PopperArrow",GO={top:"bottom",right:"left",bottom:"top",left:"right"},Lx=y.forwardRef(function(l,r){const{__scopePopper:s,...u}=l,f=YO(zx,s),d=GO[f.placedSide];return h.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:h.jsx(BO,{...u,ref:r,style:{...u.style,display:"block"}})})});Lx.displayName=zx;function QO(n){return n!==null}var XO=n=>({name:"transformOrigin",options:n,fn(l){var T,R,j;const{placement:r,rects:s,middlewareData:u}=l,d=((T=u.arrow)==null?void 0:T.centerOffset)!==0,m=d?0:n.arrowWidth,g=d?0:n.arrowHeight,[p,x]=Ux(r),b={start:"0%",center:"50%",end:"100%"}[x],w=(((R=u.arrow)==null?void 0:R.x)??0)+m/2,C=(((j=u.arrow)==null?void 0:j.y)??0)+g/2;let N="",E="";return p==="bottom"?(N=d?b:`${w}px`,E=`${-g}px`):p==="top"?(N=d?b:`${w}px`,E=`${s.floating.height+g}px`):p==="right"?(N=`${-g}px`,E=d?b:`${C}px`):p==="left"&&(N=`${s.floating.width+g}px`,E=d?b:`${C}px`),{data:{x:N,y:E}}}});function Ux(n){const[l,r="center"]=n.split("-");return[l,r]}var KO=_x,PO=Mx,ZO=Dx,FO=Lx;function $O(n){const l=y.useRef({value:n,previous:n});return y.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var Hx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),IO="VisuallyHidden",JO=y.forwardRef((n,l)=>h.jsx(Ke.span,{...n,ref:l,style:{...Hx,...n.style}}));JO.displayName=IO;var WO=[" ","Enter","ArrowUp","ArrowDown"],e_=[" ","Enter"],Kl="Select",[Uu,Hu,t_]=_A(Kl),[fr]=Au(Kl,[t_,Ax]),Bu=Ax(),[n_,ol]=fr(Kl),[a_,l_]=fr(Kl),Bx=n=>{const{__scopeSelect:l,children:r,open:s,defaultOpen:u,onOpenChange:f,value:d,defaultValue:m,onValueChange:g,dir:p,name:x,autoComplete:b,disabled:w,required:C,form:N}=n,E=Bu(l),[T,R]=y.useState(null),[j,M]=y.useState(null),[z,V]=y.useState(!1),F=MA(p),[Y,$]=Xd({prop:s,defaultProp:u??!1,onChange:f,caller:Kl}),[ae,ie]=Xd({prop:d,defaultProp:m,onChange:g,caller:Kl}),oe=y.useRef(null),ee=T?N||!!T.closest("form"):!0,[pe,ue]=y.useState(new Set),de=Array.from(pe).map(U=>U.props.value).join(";");return h.jsx(KO,{...E,children:h.jsxs(n_,{required:C,scope:l,trigger:T,onTriggerChange:R,valueNode:j,onValueNodeChange:M,valueNodeHasChildren:z,onValueNodeHasChildrenChange:V,contentId:Yi(),value:ae,onValueChange:ie,open:Y,onOpenChange:$,dir:F,triggerPointerDownPosRef:oe,disabled:w,children:[h.jsx(Uu.Provider,{scope:l,children:h.jsx(a_,{scope:n.__scopeSelect,onNativeOptionAdd:y.useCallback(U=>{ue(Z=>new Set(Z).add(U))},[]),onNativeOptionRemove:y.useCallback(U=>{ue(Z=>{const Q=new Set(Z);return Q.delete(U),Q})},[]),children:r})}),ee?h.jsxs(lS,{"aria-hidden":!0,required:C,tabIndex:-1,name:x,autoComplete:b,value:ae,onChange:U=>ie(U.target.value),disabled:w,form:N,children:[ae===void 0?h.jsx("option",{value:""}):null,Array.from(pe)]},de):null]})})};Bx.displayName=Kl;var kx="SelectTrigger",qx=y.forwardRef((n,l)=>{const{__scopeSelect:r,disabled:s=!1,...u}=n,f=Bu(r),d=ol(kx,r),m=d.disabled||s,g=it(l,d.onTriggerChange),p=Hu(r),x=y.useRef("touch"),[b,w,C]=rS(E=>{const T=p().filter(M=>!M.disabled),R=T.find(M=>M.value===d.value),j=sS(T,E,R);j!==void 0&&d.onValueChange(j.value)}),N=E=>{m||(d.onOpenChange(!0),C()),E&&(d.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return h.jsx(PO,{asChild:!0,...f,children:h.jsx(Ke.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":iS(d.value)?"":void 0,...u,ref:g,onClick:$e(u.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&N(E)}),onPointerDown:$e(u.onPointerDown,E=>{x.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(N(E),E.preventDefault())}),onKeyDown:$e(u.onKeyDown,E=>{const T=b.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(T&&E.key===" ")&&WO.includes(E.key)&&(N(),E.preventDefault())})})})});qx.displayName=kx;var Vx="SelectValue",Yx=y.forwardRef((n,l)=>{const{__scopeSelect:r,className:s,style:u,children:f,placeholder:d="",...m}=n,g=ol(Vx,r),{onValueNodeHasChildrenChange:p}=g,x=f!==void 0,b=it(l,g.onValueNodeChange);return Tt(()=>{p(x)},[p,x]),h.jsx(Ke.span,{...m,ref:b,style:{pointerEvents:"none"},children:iS(g.value)?h.jsx(h.Fragment,{children:d}):f})});Yx.displayName=Vx;var i_="SelectIcon",Gx=y.forwardRef((n,l)=>{const{__scopeSelect:r,children:s,...u}=n;return h.jsx(Ke.span,{"aria-hidden":!0,...u,ref:l,children:s||"▼"})});Gx.displayName=i_;var r_="SelectPortal",Qx=n=>h.jsx(wh,{asChild:!0,...n});Qx.displayName=r_;var Pl="SelectContent",Xx=y.forwardRef((n,l)=>{const r=ol(Pl,n.__scopeSelect),[s,u]=y.useState();if(Tt(()=>{u(new DocumentFragment)},[]),!r.open){const f=s;return f?As.createPortal(h.jsx(Kx,{scope:n.__scopeSelect,children:h.jsx(Uu.Slot,{scope:n.__scopeSelect,children:h.jsx("div",{children:n.children})})}),f):null}return h.jsx(Px,{...n,ref:l})});Xx.displayName=Pl;var Sn=10,[Kx,ul]=fr(Pl),s_="SelectContentImpl",o_=ys("SelectContent.RemoveScroll"),Px=y.forwardRef((n,l)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:d,side:m,sideOffset:g,align:p,alignOffset:x,arrowPadding:b,collisionBoundary:w,collisionPadding:C,sticky:N,hideWhenDetached:E,avoidCollisions:T,...R}=n,j=ol(Pl,r),[M,z]=y.useState(null),[V,F]=y.useState(null),Y=it(l,te=>z(te)),[$,ae]=y.useState(null),[ie,oe]=y.useState(null),ee=Hu(r),[pe,ue]=y.useState(!1),de=y.useRef(!1);y.useEffect(()=>{if(M)return Bb(M)},[M]),Ob();const U=y.useCallback(te=>{const[be,...we]=ee().map(ze=>ze.ref.current),[De]=we.slice(-1),je=document.activeElement;for(const ze of te)if(ze===je||(ze==null||ze.scrollIntoView({block:"nearest"}),ze===be&&V&&(V.scrollTop=0),ze===De&&V&&(V.scrollTop=V.scrollHeight),ze==null||ze.focus(),document.activeElement!==je))return},[ee,V]),Z=y.useCallback(()=>U([$,M]),[U,$,M]);y.useEffect(()=>{pe&&Z()},[pe,Z]);const{onOpenChange:Q,triggerPointerDownPosRef:I}=j;y.useEffect(()=>{if(M){let te={x:0,y:0};const be=De=>{var je,ze;te={x:Math.abs(Math.round(De.pageX)-(((je=I.current)==null?void 0:je.x)??0)),y:Math.abs(Math.round(De.pageY)-(((ze=I.current)==null?void 0:ze.y)??0))}},we=De=>{te.x<=10&&te.y<=10?De.preventDefault():M.contains(De.target)||Q(!1),document.removeEventListener("pointermove",be),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",be),document.addEventListener("pointerup",we,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",be),document.removeEventListener("pointerup",we,{capture:!0})}}},[M,Q,I]),y.useEffect(()=>{const te=()=>Q(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[Q]);const[J,_]=rS(te=>{const be=ee().filter(je=>!je.disabled),we=be.find(je=>je.ref.current===document.activeElement),De=sS(be,te,we);De&&setTimeout(()=>De.ref.current.focus())}),K=y.useCallback((te,be,we)=>{const De=!de.current&&!we;(j.value!==void 0&&j.value===be||De)&&(ae(te),De&&(de.current=!0))},[j.value]),W=y.useCallback(()=>M==null?void 0:M.focus(),[M]),le=y.useCallback((te,be,we)=>{const De=!de.current&&!we;(j.value!==void 0&&j.value===be||De)&&oe(te)},[j.value]),me=s==="popper"?Jd:Zx,ve=me===Jd?{side:m,sideOffset:g,align:p,alignOffset:x,arrowPadding:b,collisionBoundary:w,collisionPadding:C,sticky:N,hideWhenDetached:E,avoidCollisions:T}:{};return h.jsx(Kx,{scope:r,content:M,viewport:V,onViewportChange:F,itemRefCallback:K,selectedItem:$,onItemLeave:W,itemTextRefCallback:le,focusSelectedItem:Z,selectedItemText:ie,position:s,isPositioned:pe,searchRef:J,children:h.jsx(Ch,{as:o_,allowPinchZoom:!0,children:h.jsx(Eh,{asChild:!0,trapped:j.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:$e(u,te=>{var be;(be=j.trigger)==null||be.focus({preventScroll:!0}),te.preventDefault()}),children:h.jsx(Sh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:h.jsx(me,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:te=>te.preventDefault(),...R,...ve,onPlaced:()=>ue(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:$e(R.onKeyDown,te=>{const be=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!be&&te.key.length===1&&_(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let De=ee().filter(je=>!je.disabled).map(je=>je.ref.current);if(["ArrowUp","End"].includes(te.key)&&(De=De.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const je=te.target,ze=De.indexOf(je);De=De.slice(ze+1)}setTimeout(()=>U(De)),te.preventDefault()}})})})})})})});Px.displayName=s_;var u_="SelectItemAlignedPosition",Zx=y.forwardRef((n,l)=>{const{__scopeSelect:r,onPlaced:s,...u}=n,f=ol(Pl,r),d=ul(Pl,r),[m,g]=y.useState(null),[p,x]=y.useState(null),b=it(l,Y=>x(Y)),w=Hu(r),C=y.useRef(!1),N=y.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:R,focusSelectedItem:j}=d,M=y.useCallback(()=>{if(f.trigger&&f.valueNode&&m&&p&&E&&T&&R){const Y=f.trigger.getBoundingClientRect(),$=p.getBoundingClientRect(),ae=f.valueNode.getBoundingClientRect(),ie=R.getBoundingClientRect();if(f.dir!=="rtl"){const je=ie.left-$.left,ze=ae.left-je,St=Y.left-ze,dt=Y.width+St,qn=Math.max(dt,$.width),Vn=window.innerWidth-Sn,cl=Yy(ze,[Sn,Math.max(Sn,Vn-qn)]);m.style.minWidth=dt+"px",m.style.left=cl+"px"}else{const je=$.right-ie.right,ze=window.innerWidth-ae.right-je,St=window.innerWidth-Y.right-ze,dt=Y.width+St,qn=Math.max(dt,$.width),Vn=window.innerWidth-Sn,cl=Yy(ze,[Sn,Math.max(Sn,Vn-qn)]);m.style.minWidth=dt+"px",m.style.right=cl+"px"}const oe=w(),ee=window.innerHeight-Sn*2,pe=E.scrollHeight,ue=window.getComputedStyle(p),de=parseInt(ue.borderTopWidth,10),U=parseInt(ue.paddingTop,10),Z=parseInt(ue.borderBottomWidth,10),Q=parseInt(ue.paddingBottom,10),I=de+U+pe+Q+Z,J=Math.min(T.offsetHeight*5,I),_=window.getComputedStyle(E),K=parseInt(_.paddingTop,10),W=parseInt(_.paddingBottom,10),le=Y.top+Y.height/2-Sn,me=ee-le,ve=T.offsetHeight/2,te=T.offsetTop+ve,be=de+U+te,we=I-be;if(be<=le){const je=oe.length>0&&T===oe[oe.length-1].ref.current;m.style.bottom="0px";const ze=p.clientHeight-E.offsetTop-E.offsetHeight,St=Math.max(me,ve+(je?W:0)+ze+Z),dt=be+St;m.style.height=dt+"px"}else{const je=oe.length>0&&T===oe[0].ref.current;m.style.top="0px";const St=Math.max(le,de+E.offsetTop+(je?K:0)+ve)+we;m.style.height=St+"px",E.scrollTop=be-le+E.offsetTop}m.style.margin=`${Sn}px 0`,m.style.minHeight=J+"px",m.style.maxHeight=ee+"px",s==null||s(),requestAnimationFrame(()=>C.current=!0)}},[w,f.trigger,f.valueNode,m,p,E,T,R,f.dir,s]);Tt(()=>M(),[M]);const[z,V]=y.useState();Tt(()=>{p&&V(window.getComputedStyle(p).zIndex)},[p]);const F=y.useCallback(Y=>{Y&&N.current===!0&&(M(),j==null||j(),N.current=!1)},[M,j]);return h.jsx(f_,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:C,onScrollButtonChange:F,children:h.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:h.jsx(Ke.div,{...u,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});Zx.displayName=u_;var c_="SelectPopperPosition",Jd=y.forwardRef((n,l)=>{const{__scopeSelect:r,align:s="start",collisionPadding:u=Sn,...f}=n,d=Bu(r);return h.jsx(ZO,{...d,...f,ref:l,align:s,collisionPadding:u,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Jd.displayName=c_;var[f_,Uh]=fr(Pl,{}),Wd="SelectViewport",Fx=y.forwardRef((n,l)=>{const{__scopeSelect:r,nonce:s,...u}=n,f=ul(Wd,r),d=Uh(Wd,r),m=it(l,f.onViewportChange),g=y.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),h.jsx(Uu.Slot,{scope:r,children:h.jsx(Ke.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:$e(u.onScroll,p=>{const x=p.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:w}=d;if(w!=null&&w.current&&b){const C=Math.abs(g.current-x.scrollTop);if(C>0){const N=window.innerHeight-Sn*2,E=parseFloat(b.style.minHeight),T=parseFloat(b.style.height),R=Math.max(E,T);if(R<N){const j=R+C,M=Math.min(N,j),z=j-M;b.style.height=M+"px",b.style.bottom==="0px"&&(x.scrollTop=z>0?z:0,b.style.justifyContent="flex-end")}}}g.current=x.scrollTop})})})]})});Fx.displayName=Wd;var $x="SelectGroup",[d_,h_]=fr($x),m_=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n,u=Yi();return h.jsx(d_,{scope:r,id:u,children:h.jsx(Ke.div,{role:"group","aria-labelledby":u,...s,ref:l})})});m_.displayName=$x;var Ix="SelectLabel",p_=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n,u=h_(Ix,r);return h.jsx(Ke.div,{id:u.id,...s,ref:l})});p_.displayName=Ix;var wu="SelectItem",[v_,Jx]=fr(wu),Wx=y.forwardRef((n,l)=>{const{__scopeSelect:r,value:s,disabled:u=!1,textValue:f,...d}=n,m=ol(wu,r),g=ul(wu,r),p=m.value===s,[x,b]=y.useState(f??""),[w,C]=y.useState(!1),N=it(l,j=>{var M;return(M=g.itemRefCallback)==null?void 0:M.call(g,j,s,u)}),E=Yi(),T=y.useRef("touch"),R=()=>{u||(m.onValueChange(s),m.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return h.jsx(v_,{scope:r,value:s,disabled:u,textId:E,isSelected:p,onItemTextChange:y.useCallback(j=>{b(M=>M||((j==null?void 0:j.textContent)??"").trim())},[]),children:h.jsx(Uu.ItemSlot,{scope:r,value:s,disabled:u,textValue:x,children:h.jsx(Ke.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":p&&w,"data-state":p?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...d,ref:N,onFocus:$e(d.onFocus,()=>C(!0)),onBlur:$e(d.onBlur,()=>C(!1)),onClick:$e(d.onClick,()=>{T.current!=="mouse"&&R()}),onPointerUp:$e(d.onPointerUp,()=>{T.current==="mouse"&&R()}),onPointerDown:$e(d.onPointerDown,j=>{T.current=j.pointerType}),onPointerMove:$e(d.onPointerMove,j=>{var M;T.current=j.pointerType,u?(M=g.onItemLeave)==null||M.call(g):T.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$e(d.onPointerLeave,j=>{var M;j.currentTarget===document.activeElement&&((M=g.onItemLeave)==null||M.call(g))}),onKeyDown:$e(d.onKeyDown,j=>{var z;((z=g.searchRef)==null?void 0:z.current)!==""&&j.key===" "||(e_.includes(j.key)&&R(),j.key===" "&&j.preventDefault())})})})})});Wx.displayName=wu;var fs="SelectItemText",eS=y.forwardRef((n,l)=>{const{__scopeSelect:r,className:s,style:u,...f}=n,d=ol(fs,r),m=ul(fs,r),g=Jx(fs,r),p=l_(fs,r),[x,b]=y.useState(null),w=it(l,R=>b(R),g.onItemTextChange,R=>{var j;return(j=m.itemTextRefCallback)==null?void 0:j.call(m,R,g.value,g.disabled)}),C=x==null?void 0:x.textContent,N=y.useMemo(()=>h.jsx("option",{value:g.value,disabled:g.disabled,children:C},g.value),[g.disabled,g.value,C]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=p;return Tt(()=>(E(N),()=>T(N)),[E,T,N]),h.jsxs(h.Fragment,{children:[h.jsx(Ke.span,{id:g.textId,...f,ref:w}),g.isSelected&&d.valueNode&&!d.valueNodeHasChildren?As.createPortal(f.children,d.valueNode):null]})});eS.displayName=fs;var tS="SelectItemIndicator",nS=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n;return Jx(tS,r).isSelected?h.jsx(Ke.span,{"aria-hidden":!0,...s,ref:l}):null});nS.displayName=tS;var eh="SelectScrollUpButton",g_=y.forwardRef((n,l)=>{const r=ul(eh,n.__scopeSelect),s=Uh(eh,n.__scopeSelect),[u,f]=y.useState(!1),d=it(l,s.onScrollButtonChange);return Tt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const p=g.scrollTop>0;f(p)};const g=r.viewport;return m(),g.addEventListener("scroll",m),()=>g.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),u?h.jsx(aS,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:g}=r;m&&g&&(m.scrollTop=m.scrollTop-g.offsetHeight)}}):null});g_.displayName=eh;var th="SelectScrollDownButton",y_=y.forwardRef((n,l)=>{const r=ul(th,n.__scopeSelect),s=Uh(th,n.__scopeSelect),[u,f]=y.useState(!1),d=it(l,s.onScrollButtonChange);return Tt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const p=g.scrollHeight-g.clientHeight,x=Math.ceil(g.scrollTop)<p;f(x)};const g=r.viewport;return m(),g.addEventListener("scroll",m),()=>g.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),u?h.jsx(aS,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:g}=r;m&&g&&(m.scrollTop=m.scrollTop+g.offsetHeight)}}):null});y_.displayName=th;var aS=y.forwardRef((n,l)=>{const{__scopeSelect:r,onAutoScroll:s,...u}=n,f=ul("SelectScrollButton",r),d=y.useRef(null),m=Hu(r),g=y.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return y.useEffect(()=>()=>g(),[g]),Tt(()=>{var x;const p=m().find(b=>b.ref.current===document.activeElement);(x=p==null?void 0:p.ref.current)==null||x.scrollIntoView({block:"nearest"})},[m]),h.jsx(Ke.div,{"aria-hidden":!0,...u,ref:l,style:{flexShrink:0,...u.style},onPointerDown:$e(u.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(s,50))}),onPointerMove:$e(u.onPointerMove,()=>{var p;(p=f.onItemLeave)==null||p.call(f),d.current===null&&(d.current=window.setInterval(s,50))}),onPointerLeave:$e(u.onPointerLeave,()=>{g()})})}),b_="SelectSeparator",x_=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n;return h.jsx(Ke.div,{"aria-hidden":!0,...s,ref:l})});x_.displayName=b_;var nh="SelectArrow",S_=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n,u=Bu(r),f=ol(nh,r),d=ul(nh,r);return f.open&&d.position==="popper"?h.jsx(FO,{...u,...s,ref:l}):null});S_.displayName=nh;var E_="SelectBubbleInput",lS=y.forwardRef(({__scopeSelect:n,value:l,...r},s)=>{const u=y.useRef(null),f=it(s,u),d=$O(l);return y.useEffect(()=>{const m=u.current;if(!m)return;const g=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(g,"value").set;if(d!==l&&x){const b=new Event("change",{bubbles:!0});x.call(m,l),m.dispatchEvent(b)}},[d,l]),h.jsx(Ke.select,{...r,style:{...Hx,...r.style},ref:f,defaultValue:l})});lS.displayName=E_;function iS(n){return n===""||n===void 0}function rS(n){const l=Gl(n),r=y.useRef(""),s=y.useRef(0),u=y.useCallback(d=>{const m=r.current+d;l(m),(function g(p){r.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>g(""),1e3))})(m)},[l]),f=y.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,u,f]}function sS(n,l,r){const u=l.length>1&&Array.from(l).every(p=>p===l[0])?l[0]:l,f=r?n.indexOf(r):-1;let d=w_(n,Math.max(f,0));u.length===1&&(d=d.filter(p=>p!==r));const g=d.find(p=>p.textValue.toLowerCase().startsWith(u.toLowerCase()));return g!==r?g:void 0}function w_(n,l){return n.map((r,s)=>n[(l+s)%n.length])}var C_=Bx,oS=qx,T_=Yx,R_=Gx,N_=Qx,uS=Xx,A_=Fx,cS=Wx,O_=eS,__=nS;const j_=C_,M_=T_,fS=y.forwardRef(({className:n,children:l,...r},s)=>h.jsxs(oS,{ref:s,className:Xe("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...r,children:[l,h.jsx(R_,{asChild:!0,children:h.jsx(tb,{className:"h-4 w-4 opacity-50"})})]}));fS.displayName=oS.displayName;const dS=y.forwardRef(({className:n,children:l,position:r="popper",...s},u)=>h.jsx(N_,{children:h.jsx(uS,{ref:u,className:Xe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card text-card-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:r,...s,children:h.jsx(A_,{className:Xe("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l})})}));dS.displayName=uS.displayName;const hS=y.forwardRef(({className:n,children:l,...r},s)=>h.jsxs(cS,{ref:s,className:Xe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...r,children:[h.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(__,{children:h.jsx(jC,{className:"h-4 w-4"})})}),h.jsx(O_,{children:l})]}));hS.displayName=cS.displayName;const D_=[1500,3e3,5e3,1e4],z_="3000";function L_(){var u,f;const{data:n,isLoading:l,isError:r,error:s}=Nu();return h.jsx(xh,{isLoading:l,error:r?s instanceof Error?s:new Error("Unable to reach daemon"):null,loadingText:"Connecting to daemon...",children:n&&h.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(ob,{className:"h-5 w-5 text-primary"}),h.jsx("h1",{className:"text-xl font-semibold",children:"Operations"})]}),h.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[h.jsxs(It,{children:[h.jsxs(mn,{children:[h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(sb,{className:"h-4 w-4 text-primary"}),"Curation"]}),h.jsx(Vi,{children:"Find and consolidate duplicate spores in the vault. Preview shows which pairs would be merged; execute performs the consolidation."})]}),h.jsx(Jt,{children:h.jsx(OA,{})})]}),h.jsxs(It,{children:[h.jsxs(mn,{children:[h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(jl,{className:"h-4 w-4 text-primary"}),"Rebuild Index"]}),h.jsx(Vi,{children:"Reindex all vault notes for full-text search and vector embeddings."})]}),h.jsx(Jt,{children:h.jsxs("div",{className:"space-y-4",children:[h.jsx(mx,{label:"Rebuild",endpoint:"/rebuild",icon:h.jsx(jl,{className:"h-4 w-4"}),description:"Rebuilds FTS5 and vector indexes from all vault notes."}),h.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-muted-foreground",children:"FTS entries:"}),h.jsx(vn,{variant:"secondary",className:"font-mono text-xs",children:n.index.fts_entries})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-muted-foreground",children:"Vectors:"}),h.jsx(vn,{variant:"secondary",className:"font-mono text-xs",children:n.index.vector_count})]})]})]})})]}),h.jsx(U_,{digestEnabled:!!n.digest,metabolismState:((u=n.digest)==null?void 0:u.metabolism_state)??null,substrateQueue:((f=n.digest)==null?void 0:f.substrate_queue)??0}),h.jsxs(It,{children:[h.jsxs(mn,{children:[h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(vy,{className:"h-4 w-4 text-primary"}),"Reprocess",h.jsx(vn,{variant:"outline",className:"ml-1 text-xs",children:"Coming Soon"})]}),h.jsx(Vi,{children:"Re-extract observations and regenerate summaries for past sessions. This feature is being developed."})]}),h.jsx(Jt,{children:h.jsxs(Ct,{variant:"outline",size:"sm",disabled:!0,className:"gap-2 opacity-50",children:[h.jsx(vy,{className:"h-4 w-4"}),"Reprocess Sessions"]})})]})]})]})})}function U_({digestEnabled:n,metabolismState:l,substrateQueue:r}){const[s,u]=y.useState(z_),[f,d]=y.useState("tier"),m=y.useMemo(()=>f==="full"?{full:!0}:{tier:Number(s)},[f,s]);return h.jsxs(It,{children:[h.jsxs(mn,{children:[h.jsxs(pn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(Vd,{className:"h-4 w-4 text-primary"}),"Manual Digest"]}),h.jsx(Vi,{children:"Trigger a digest cycle to synthesize vault knowledge into context extracts."})]}),h.jsx(Jt,{children:h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Ct,{variant:f==="tier"?"default":"outline",size:"sm",onClick:()=>d("tier"),children:"Single Tier"}),h.jsx(Ct,{variant:f==="full"?"default":"outline",size:"sm",onClick:()=>d("full"),children:"Full Digest"})]}),f==="tier"&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-sm text-muted-foreground",children:"Tier:"}),h.jsxs(j_,{value:s,onValueChange:u,children:[h.jsx(fS,{className:"w-28",children:h.jsx(M_,{})}),h.jsx(dS,{children:D_.map(g=>h.jsxs(hS,{value:String(g),children:["T",g]},g))})]})]}),h.jsx(mx,{label:f==="full"?"Run Full Digest":`Run T${s} Digest`,endpoint:"/digest",body:m,icon:h.jsx(Vd,{className:"h-4 w-4"})}),h.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-muted-foreground",children:"Status:"}),h.jsx(vn,{variant:n?"default":"secondary",className:"text-xs",children:n?l??"dormant":"disabled"})]}),n&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-muted-foreground",children:"Queue:"}),h.jsx(vn,{variant:"secondary",className:"font-mono text-xs",children:r})]})]})]})})]})}const H_=["debug","info","warn","error"],B_=200,e0=2e3,k_=40,t0={debug:0,info:1,warn:2,error:3},q_={debug:"border-transparent bg-muted text-muted-foreground",info:"border-transparent bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",warn:"border-transparent bg-amber-500/15 text-amber-600 dark:text-amber-400",error:"border-transparent bg-red-500/15 text-red-600 dark:text-red-400"};function V_(n){const l=new Date(n),r=String(l.getHours()).padStart(2,"0"),s=String(l.getMinutes()).padStart(2,"0"),u=String(l.getSeconds()).padStart(2,"0");return`${r}:${s}:${u}`}function Y_(n){return n.scrollHeight-n.scrollTop-n.clientHeight<=k_}function G_(){const[n,l]=y.useState([]),[r,s]=y.useState(void 0),[u,f]=y.useState("debug"),[d,m]=y.useState(""),[g,p]=y.useState(!0),[x,b]=y.useState(!1),w=y.useRef(null),C=y.useRef(g);C.current=g;const N=y.useRef(r);N.current=r;const{data:E}=ub({queryKey:["logs"],queryFn:({signal:z})=>{const V=new URLSearchParams({limit:String(B_)});return N.current&&V.set("since",N.current),Zl(`/logs?${V.toString()}`,{signal:z})},refetchInterval:yh.LOGS,pollCategory:"standard"});y.useEffect(()=>{E!=null&&E.entries.length&&(l(z=>{let V;if(E.cursor_reset){const F=new Set(z.map($=>`${$.timestamp}|${$.message}`)),Y=E.entries.filter($=>!F.has(`${$.timestamp}|${$.message}`));V=Y.length?[...z,...Y]:z}else V=[...z,...E.entries];return V.length>e0?V.slice(-e0):V}),s(E.cursor),C.current||b(!0))},[E]),y.useEffect(()=>{!g||!w.current||(w.current.scrollTop=w.current.scrollHeight,b(!1))},[n,g]);const T=y.useCallback(()=>{const z=w.current;z&&(Y_(z)?(p(!0),b(!1)):p(!1))},[]),R=y.useCallback(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight,p(!0),b(!1))},[]),j=y.useCallback(()=>{l([]),b(!1)},[]),M=y.useMemo(()=>{const z=t0[u],V=d.trim().toLowerCase();return n.filter(F=>!(t0[F.level]<z||V&&!F.message.toLowerCase().includes(V)))},[n,u,d]);return h.jsxs("div",{className:"flex h-full flex-col",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border bg-card px-4 py-3",children:[h.jsxs("div",{className:"flex items-center gap-2 mr-2",children:[h.jsx(ib,{className:"h-4 w-4 text-primary"}),h.jsx("span",{className:"text-sm font-semibold",children:"Logs"})]}),h.jsx("div",{className:"flex items-center gap-1",children:H_.map(z=>h.jsx(Ct,{size:"sm",variant:u===z?"default":"outline",className:"h-7 px-2 text-xs capitalize",onClick:()=>f(z),children:z},z))}),h.jsx(Je,{className:"h-7 w-48 text-xs",placeholder:"Filter messages...",value:d,onChange:z=>m(z.target.value)}),h.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[h.jsxs(Ct,{size:"sm",variant:g?"default":"outline",className:"h-7 gap-1.5 px-2 text-xs",onClick:()=>{g?p(!1):R()},title:g?"Pause auto-scroll":"Resume auto-scroll",children:[g?h.jsx(kC,{className:"h-3 w-3"}):h.jsx(lb,{className:"h-3 w-3"}),g?"Pause":"Resume"]}),h.jsxs(Ct,{size:"sm",variant:"outline",className:"h-7 gap-1.5 px-2 text-xs text-muted-foreground",onClick:j,title:"Clear log entries",children:[h.jsx(KC,{className:"h-3 w-3"}),"Clear"]})]})]}),h.jsxs("div",{className:"relative flex-1 overflow-hidden",children:[h.jsx("div",{ref:w,onScroll:T,className:"h-full overflow-y-auto font-mono text-xs",children:M.length===0?h.jsx("div",{className:"flex h-32 items-center justify-center text-muted-foreground",children:"No log entries"}):h.jsx("table",{className:"w-full border-collapse",children:h.jsx("tbody",{children:M.map((z,V)=>h.jsx(Q_,{entry:z},`${z.timestamp}-${V}`))})})}),x&&!g&&h.jsxs("button",{type:"button",onClick:R,className:Xe("absolute bottom-4 left-1/2 -translate-x-1/2","flex items-center gap-1.5 rounded-full border border-border","bg-card px-3 py-1.5 text-xs font-medium shadow-md","text-muted-foreground transition-colors hover:text-foreground"),children:[h.jsx(_C,{className:"h-3 w-3"}),"New entries below"]})]})]})}function Q_({entry:n}){return h.jsxs("tr",{className:"border-b border-border/40 hover:bg-accent/30 transition-colors",children:[h.jsx("td",{className:"whitespace-nowrap py-1 pl-4 pr-3 text-muted-foreground/70 align-top w-[68px]",children:V_(n.timestamp)}),h.jsx("td",{className:"whitespace-nowrap py-1 pr-3 align-top w-[54px]",children:h.jsx(vn,{className:Xe("px-1.5 py-0 text-[10px] font-medium uppercase",q_[n.level]),children:n.level})}),h.jsx("td",{className:"whitespace-nowrap py-1 pr-3 text-muted-foreground align-top w-[120px] truncate max-w-[120px]",children:n.category}),h.jsx("td",{className:"py-1 pr-4 text-foreground align-top break-words",children:n.message})]})}function X_(){return h.jsx(jw,{children:h.jsxs(Ui,{element:h.jsx(JT,{}),children:[h.jsx(Ui,{path:"/",element:h.jsx(_R,{})}),h.jsx(Ui,{path:"/configuration",element:h.jsx(RA,{})}),h.jsx(Ui,{path:"/operations",element:h.jsx(L_,{})}),h.jsx(Ui,{path:"/logs",element:h.jsx(G_,{})})]})})}const K_=new g2({defaultOptions:{queries:{staleTime:nT}}});KE.createRoot(document.getElementById("root")).render(h.jsx(oa.StrictMode,{children:h.jsx(hC,{children:h.jsx(xC,{children:h.jsx(CC,{children:h.jsx(y2,{client:K_,children:h.jsx(tC,{children:h.jsx(X_,{})})})})})})}));
|