teleton 0.5.1 → 0.6.0
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/README.md +239 -101
- package/dist/chunk-2QUJLHCZ.js +362 -0
- package/dist/chunk-4IPJ25HE.js +2839 -0
- package/dist/{chunk-RRB6BWU7.js → chunk-6L6KGATM.js} +1042 -3039
- package/dist/{chunk-BYTHCDZA.js → chunk-ADCMUNYU.js} +65 -496
- package/dist/chunk-D5I7GBV7.js +322 -0
- package/dist/chunk-ECSCVEQQ.js +139 -0
- package/dist/chunk-GDCODBNO.js +72 -0
- package/dist/{chunk-O4R7V5Y2.js → chunk-RO62LO6Z.js} +11 -1
- package/dist/cli/index.js +346 -22
- package/dist/index.js +7 -4
- package/dist/{memory-657W5AS6.js → memory-TVDOGQXS.js} +14 -10
- package/dist/{migrate-PMB2JVXH.js → migrate-QIEMPOMT.js} +5 -2
- package/dist/{server-BQY7CM2N.js → server-RSWVCVY3.js} +805 -26
- package/dist/{task-dependency-resolver-TRPILAHM.js → task-dependency-resolver-72DLY2HV.js} +1 -1
- package/dist/{task-executor-N7XNVK5N.js → task-executor-VXB6DAV2.js} +1 -1
- package/dist/tool-index-DKI2ZNOU.js +245 -0
- package/dist/web/assets/index-BNhrx9S1.js +67 -0
- package/dist/web/assets/index-CqrrRLOh.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +16 -16
- package/dist/chunk-5WWR4CU3.js +0 -124
- package/dist/web/assets/index-CDMbujHf.css +0 -1
- package/dist/web/assets/index-DDX8oQ2z.js +0 -67
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var Mf=Object.defineProperty;var Ff=(o,c,u)=>c in o?Mf(o,c,{enumerable:!0,configurable:!0,writable:!0,value:u}):o[c]=u;var Lt=(o,c,u)=>Ff(o,typeof c!="symbol"?c+"":c,u);function Bf(o,c){for(var u=0;u<c.length;u++){const f=c[u];if(typeof f!="string"&&!Array.isArray(f)){for(const p in f)if(p!=="default"&&!(p in o)){const m=Object.getOwnPropertyDescriptor(f,p);m&&Object.defineProperty(o,p,m.get?m:{enumerable:!0,get:()=>f[p]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))f(p);new MutationObserver(p=>{for(const m of p)if(m.type==="childList")for(const k of m.addedNodes)k.tagName==="LINK"&&k.rel==="modulepreload"&&f(k)}).observe(document,{childList:!0,subtree:!0});function u(p){const m={};return p.integrity&&(m.integrity=p.integrity),p.referrerPolicy&&(m.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?m.credentials="include":p.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function f(p){if(p.ep)return;p.ep=!0;const m=u(p);fetch(p.href,m)}})();function Uf(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var eo={exports:{}},Gr={},to={exports:{}},pe={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 rc;function Af(){if(rc)return pe;rc=1;var o=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),k=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),N=Symbol.iterator;function M(x){return x===null||typeof x!="object"?null:(x=N&&x[N]||x["@@iterator"],typeof x=="function"?x:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,C={};function P(x,L,ce){this.props=x,this.context=L,this.refs=C,this.updater=ce||G}P.prototype.isReactComponent={},P.prototype.setState=function(x,L){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,L,"setState")},P.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function R(){}R.prototype=P.prototype;function K(x,L,ce){this.props=x,this.context=L,this.refs=C,this.updater=ce||G}var H=K.prototype=new R;H.constructor=K,F(H,P.prototype),H.isPureReactComponent=!0;var E=Array.isArray,Q=Object.prototype.hasOwnProperty,X={current:null},de={key:!0,ref:!0,__self:!0,__source:!0};function ve(x,L,ce){var fe,ge={},ye=null,Ce=null;if(L!=null)for(fe in L.ref!==void 0&&(Ce=L.ref),L.key!==void 0&&(ye=""+L.key),L)Q.call(L,fe)&&!de.hasOwnProperty(fe)&&(ge[fe]=L[fe]);var we=arguments.length-2;if(we===1)ge.children=ce;else if(1<we){for(var Ee=Array(we),Ze=0;Ze<we;Ze++)Ee[Ze]=arguments[Ze+2];ge.children=Ee}if(x&&x.defaultProps)for(fe in we=x.defaultProps,we)ge[fe]===void 0&&(ge[fe]=we[fe]);return{$$typeof:o,type:x,key:ye,ref:Ce,props:ge,_owner:X.current}}function he(x,L){return{$$typeof:o,type:x.type,key:L,ref:x.ref,props:x.props,_owner:x._owner}}function Ve(x){return typeof x=="object"&&x!==null&&x.$$typeof===o}function qe(x){var L={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(ce){return L[ce]})}var He=/\/+/g;function Y(x,L){return typeof x=="object"&&x!==null&&x.key!=null?qe(""+x.key):L.toString(36)}function ie(x,L,ce,fe,ge){var ye=typeof x;(ye==="undefined"||ye==="boolean")&&(x=null);var Ce=!1;if(x===null)Ce=!0;else switch(ye){case"string":case"number":Ce=!0;break;case"object":switch(x.$$typeof){case o:case c:Ce=!0}}if(Ce)return Ce=x,ge=ge(Ce),x=fe===""?"."+Y(Ce,0):fe,E(ge)?(ce="",x!=null&&(ce=x.replace(He,"$&/")+"/"),ie(ge,L,ce,"",function(Ze){return Ze})):ge!=null&&(Ve(ge)&&(ge=he(ge,ce+(!ge.key||Ce&&Ce.key===ge.key?"":(""+ge.key).replace(He,"$&/")+"/")+x)),L.push(ge)),1;if(Ce=0,fe=fe===""?".":fe+":",E(x))for(var we=0;we<x.length;we++){ye=x[we];var Ee=fe+Y(ye,we);Ce+=ie(ye,L,ce,Ee,ge)}else if(Ee=M(x),typeof Ee=="function")for(x=Ee.call(x),we=0;!(ye=x.next()).done;)ye=ye.value,Ee=fe+Y(ye,we++),Ce+=ie(ye,L,ce,Ee,ge);else if(ye==="object")throw L=String(x),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return Ce}function U(x,L,ce){if(x==null)return x;var fe=[],ge=0;return ie(x,fe,"","",function(ye){return L.call(ce,ye,ge++)}),fe}function oe(x){if(x._status===-1){var L=x._result;L=L(),L.then(function(ce){(x._status===0||x._status===-1)&&(x._status=1,x._result=ce)},function(ce){(x._status===0||x._status===-1)&&(x._status=2,x._result=ce)}),x._status===-1&&(x._status=0,x._result=L)}if(x._status===1)return x._result.default;throw x._result}var ae={current:null},A={transition:null},ne={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:A,ReactCurrentOwner:X};function q(){throw Error("act(...) is not supported in production builds of React.")}return pe.Children={map:U,forEach:function(x,L,ce){U(x,function(){L.apply(this,arguments)},ce)},count:function(x){var L=0;return U(x,function(){L++}),L},toArray:function(x){return U(x,function(L){return L})||[]},only:function(x){if(!Ve(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},pe.Component=P,pe.Fragment=u,pe.Profiler=p,pe.PureComponent=K,pe.StrictMode=f,pe.Suspense=v,pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,pe.act=q,pe.cloneElement=function(x,L,ce){if(x==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+x+".");var fe=F({},x.props),ge=x.key,ye=x.ref,Ce=x._owner;if(L!=null){if(L.ref!==void 0&&(ye=L.ref,Ce=X.current),L.key!==void 0&&(ge=""+L.key),x.type&&x.type.defaultProps)var we=x.type.defaultProps;for(Ee in L)Q.call(L,Ee)&&!de.hasOwnProperty(Ee)&&(fe[Ee]=L[Ee]===void 0&&we!==void 0?we[Ee]:L[Ee])}var Ee=arguments.length-2;if(Ee===1)fe.children=ce;else if(1<Ee){we=Array(Ee);for(var Ze=0;Ze<Ee;Ze++)we[Ze]=arguments[Ze+2];fe.children=we}return{$$typeof:o,type:x.type,key:ge,ref:ye,props:fe,_owner:Ce}},pe.createContext=function(x){return x={$$typeof:k,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},x.Provider={$$typeof:m,_context:x},x.Consumer=x},pe.createElement=ve,pe.createFactory=function(x){var L=ve.bind(null,x);return L.type=x,L},pe.createRef=function(){return{current:null}},pe.forwardRef=function(x){return{$$typeof:T,render:x}},pe.isValidElement=Ve,pe.lazy=function(x){return{$$typeof:z,_payload:{_status:-1,_result:x},_init:oe}},pe.memo=function(x,L){return{$$typeof:_,type:x,compare:L===void 0?null:L}},pe.startTransition=function(x){var L=A.transition;A.transition={};try{x()}finally{A.transition=L}},pe.unstable_act=q,pe.useCallback=function(x,L){return ae.current.useCallback(x,L)},pe.useContext=function(x){return ae.current.useContext(x)},pe.useDebugValue=function(){},pe.useDeferredValue=function(x){return ae.current.useDeferredValue(x)},pe.useEffect=function(x,L){return ae.current.useEffect(x,L)},pe.useId=function(){return ae.current.useId()},pe.useImperativeHandle=function(x,L,ce){return ae.current.useImperativeHandle(x,L,ce)},pe.useInsertionEffect=function(x,L){return ae.current.useInsertionEffect(x,L)},pe.useLayoutEffect=function(x,L){return ae.current.useLayoutEffect(x,L)},pe.useMemo=function(x,L){return ae.current.useMemo(x,L)},pe.useReducer=function(x,L,ce){return ae.current.useReducer(x,L,ce)},pe.useRef=function(x){return ae.current.useRef(x)},pe.useState=function(x){return ae.current.useState(x)},pe.useSyncExternalStore=function(x,L,ce){return ae.current.useSyncExternalStore(x,L,ce)},pe.useTransition=function(){return ae.current.useTransition()},pe.version="18.3.1",pe}var lc;function po(){return lc||(lc=1,to.exports=Af()),to.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 sc;function $f(){if(sc)return Gr;sc=1;var o=po(),c=Symbol.for("react.element"),u=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,p=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function k(T,v,_){var z,N={},M=null,G=null;_!==void 0&&(M=""+_),v.key!==void 0&&(M=""+v.key),v.ref!==void 0&&(G=v.ref);for(z in v)f.call(v,z)&&!m.hasOwnProperty(z)&&(N[z]=v[z]);if(T&&T.defaultProps)for(z in v=T.defaultProps,v)N[z]===void 0&&(N[z]=v[z]);return{$$typeof:c,type:T,key:M,ref:G,props:N,_owner:p.current}}return Gr.Fragment=u,Gr.jsx=k,Gr.jsxs=k,Gr}var ic;function Wf(){return ic||(ic=1,eo.exports=$f()),eo.exports}var s=Wf(),y=po();const Ec=Uf(y),Vf=Bf({__proto__:null,default:Ec},[y]);var us={},no={exports:{}},it={},ro={exports:{}},lo={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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 oc;function Hf(){return oc||(oc=1,(function(o){function c(A,ne){var q=A.length;A.push(ne);e:for(;0<q;){var x=q-1>>>1,L=A[x];if(0<p(L,ne))A[x]=ne,A[q]=L,q=x;else break e}}function u(A){return A.length===0?null:A[0]}function f(A){if(A.length===0)return null;var ne=A[0],q=A.pop();if(q!==ne){A[0]=q;e:for(var x=0,L=A.length,ce=L>>>1;x<ce;){var fe=2*(x+1)-1,ge=A[fe],ye=fe+1,Ce=A[ye];if(0>p(ge,q))ye<L&&0>p(Ce,ge)?(A[x]=Ce,A[ye]=q,x=ye):(A[x]=ge,A[fe]=q,x=fe);else if(ye<L&&0>p(Ce,q))A[x]=Ce,A[ye]=q,x=ye;else break e}}return ne}function p(A,ne){var q=A.sortIndex-ne.sortIndex;return q!==0?q:A.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var m=performance;o.unstable_now=function(){return m.now()}}else{var k=Date,T=k.now();o.unstable_now=function(){return k.now()-T}}var v=[],_=[],z=1,N=null,M=3,G=!1,F=!1,C=!1,P=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function H(A){for(var ne=u(_);ne!==null;){if(ne.callback===null)f(_);else if(ne.startTime<=A)f(_),ne.sortIndex=ne.expirationTime,c(v,ne);else break;ne=u(_)}}function E(A){if(C=!1,H(A),!F)if(u(v)!==null)F=!0,oe(Q);else{var ne=u(_);ne!==null&&ae(E,ne.startTime-A)}}function Q(A,ne){F=!1,C&&(C=!1,R(ve),ve=-1),G=!0;var q=M;try{for(H(ne),N=u(v);N!==null&&(!(N.expirationTime>ne)||A&&!qe());){var x=N.callback;if(typeof x=="function"){N.callback=null,M=N.priorityLevel;var L=x(N.expirationTime<=ne);ne=o.unstable_now(),typeof L=="function"?N.callback=L:N===u(v)&&f(v),H(ne)}else f(v);N=u(v)}if(N!==null)var ce=!0;else{var fe=u(_);fe!==null&&ae(E,fe.startTime-ne),ce=!1}return ce}finally{N=null,M=q,G=!1}}var X=!1,de=null,ve=-1,he=5,Ve=-1;function qe(){return!(o.unstable_now()-Ve<he)}function He(){if(de!==null){var A=o.unstable_now();Ve=A;var ne=!0;try{ne=de(!0,A)}finally{ne?Y():(X=!1,de=null)}}else X=!1}var Y;if(typeof K=="function")Y=function(){K(He)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,U=ie.port2;ie.port1.onmessage=He,Y=function(){U.postMessage(null)}}else Y=function(){P(He,0)};function oe(A){de=A,X||(X=!0,Y())}function ae(A,ne){ve=P(function(){A(o.unstable_now())},ne)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(A){A.callback=null},o.unstable_continueExecution=function(){F||G||(F=!0,oe(Q))},o.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<A?Math.floor(1e3/A):5},o.unstable_getCurrentPriorityLevel=function(){return M},o.unstable_getFirstCallbackNode=function(){return u(v)},o.unstable_next=function(A){switch(M){case 1:case 2:case 3:var ne=3;break;default:ne=M}var q=M;M=ne;try{return A()}finally{M=q}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=function(){},o.unstable_runWithPriority=function(A,ne){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var q=M;M=A;try{return ne()}finally{M=q}},o.unstable_scheduleCallback=function(A,ne,q){var x=o.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?x+q:x):q=x,A){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=q+L,A={id:z++,callback:ne,priorityLevel:A,startTime:q,expirationTime:L,sortIndex:-1},q>x?(A.sortIndex=q,c(_,A),u(v)===null&&A===u(_)&&(C?(R(ve),ve=-1):C=!0,ae(E,q-x))):(A.sortIndex=L,c(v,A),F||G||(F=!0,oe(Q))),A},o.unstable_shouldYield=qe,o.unstable_wrapCallback=function(A){var ne=M;return function(){var q=M;M=ne;try{return A.apply(this,arguments)}finally{M=q}}}})(lo)),lo}var ac;function Kf(){return ac||(ac=1,ro.exports=Hf()),ro.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 uc;function Qf(){if(uc)return it;uc=1;var o=po(),c=Kf();function u(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=new Set,p={};function m(e,t){k(e,t),k(e+"Capture",t)}function k(e,t){for(p[e]=t,e=0;e<t.length;e++)f.add(t[e])}var T=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,_=/^[: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]*$/,z={},N={};function M(e){return v.call(N,e)?!0:v.call(z,e)?!1:_.test(e)?N[e]=!0:(z[e]=!0,!1)}function G(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function F(e,t,n,r){if(t===null||typeof t>"u"||G(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function C(e,t,n,r,l,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new C(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new C(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new C(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new C(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new C(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new C(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function K(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R,K);P[t]=new C(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R,K);P[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R,K);P[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)});function H(e,t,n,r){var l=P.hasOwnProperty(t)?P[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(F(t,n,l,r)&&(n=null),r||l===null?M(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var E=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Q=Symbol.for("react.element"),X=Symbol.for("react.portal"),de=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),Ve=Symbol.for("react.provider"),qe=Symbol.for("react.context"),He=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),A=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}var q=Object.assign,x;function L(e){if(x===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);x=t&&t[1]||""}return`
|
|
34
|
+
`+x+e}var ce=!1;function fe(e,t){if(!e||ce)return"";ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(j){var r=j}Reflect.construct(e,[],t)}else{try{t.call()}catch(j){r=j}e.call(t.prototype)}else{try{throw Error()}catch(j){r=j}e()}}catch(j){if(j&&r&&typeof j.stack=="string"){for(var l=j.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),a=l.length-1,d=i.length-1;1<=a&&0<=d&&l[a]!==i[d];)d--;for(;1<=a&&0<=d;a--,d--)if(l[a]!==i[d]){if(a!==1||d!==1)do if(a--,d--,0>d||l[a]!==i[d]){var h=`
|
|
37
|
+
`+l[a].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=a&&0<=d);break}}}finally{ce=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function ge(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return""}}function ye(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case de:return"Fragment";case X:return"Portal";case he:return"Profiler";case ve:return"StrictMode";case Y:return"Suspense";case ie:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qe:return(e.displayName||"Context")+".Consumer";case Ve:return(e._context.displayName||"Context")+".Provider";case He:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case oe:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function Ce(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(t);case 8:return t===ve?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function we(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ee(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=Ee(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pn(e){e._valueTracker||(e._valueTracker=Ze(e))}function Zr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ee(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ur(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cr(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=we(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zn(e,t){t=t.checked,t!=null&&H(e,"checked",t,!1)}function Ht(e,t){zn(e,t);var n=we(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?V(e,t.type,n):t.hasOwnProperty("defaultValue")&&V(e,t.type,we(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function W(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function V(e,t,n){(t!=="number"||Tn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $=Array.isArray;function Te(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+we(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rn(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(u(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ft(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(u(92));if($(n)){if(1<n.length)throw Error(u(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:we(n)}}function dr(e,t){var n=we(t.value),r=we(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function br(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ln(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Dn,el=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Dn=Dn||document.createElement("div"),Dn.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Dn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ke(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];Object.keys(Nt).forEach(function(e){In.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nt[t]=Nt[e]})});function tl(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nt.hasOwnProperty(e)&&Nt[e]?(""+t).trim():t+"px"}function xo(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=tl(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Ac=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fs(e,t){if(t){if(Ac[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(u(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(u(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(u(61))}if(t.style!=null&&typeof t.style!="object")throw Error(u(62))}}function ps(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hs=null;function ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gs=null,On=null,Mn=null;function So(e){if(e=Ir(e)){if(typeof gs!="function")throw Error(u(280));var t=e.stateNode;t&&(t=Cl(t),gs(e.stateNode,e.type,t))}}function wo(e){On?Mn?Mn.push(e):Mn=[e]:On=e}function ko(){if(On){var e=On,t=Mn;if(Mn=On=null,So(e),t)for(e=0;e<t.length;e++)So(t[e])}}function jo(e,t){return e(t)}function Co(){}var ys=!1;function Eo(e,t,n){if(ys)return e(t,n);ys=!0;try{return jo(e,t,n)}finally{ys=!1,(On!==null||Mn!==null)&&(Co(),ko())}}function pr(e,t){var n=e.stateNode;if(n===null)return null;var r=Cl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var vs=!1;if(T)try{var hr={};Object.defineProperty(hr,"passive",{get:function(){vs=!0}}),window.addEventListener("test",hr,hr),window.removeEventListener("test",hr,hr)}catch{vs=!1}function $c(e,t,n,r,l,i,a,d,h){var j=Array.prototype.slice.call(arguments,3);try{t.apply(n,j)}catch(I){this.onError(I)}}var mr=!1,nl=null,rl=!1,xs=null,Wc={onError:function(e){mr=!0,nl=e}};function Vc(e,t,n,r,l,i,a,d,h){mr=!1,nl=null,$c.apply(Wc,arguments)}function Hc(e,t,n,r,l,i,a,d,h){if(Vc.apply(this,arguments),mr){if(mr){var j=nl;mr=!1,nl=null}else throw Error(u(198));rl||(rl=!0,xs=j)}}function hn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function No(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 _o(e){if(hn(e)!==e)throw Error(u(188))}function Kc(e){var t=e.alternate;if(!t){if(t=hn(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return _o(l),e;if(i===r)return _o(l),t;i=i.sibling}throw Error(u(188))}if(n.return!==r.return)n=l,r=i;else{for(var a=!1,d=l.child;d;){if(d===n){a=!0,n=l,r=i;break}if(d===r){a=!0,r=l,n=i;break}d=d.sibling}if(!a){for(d=i.child;d;){if(d===n){a=!0,n=i,r=l;break}if(d===r){a=!0,r=i,n=l;break}d=d.sibling}if(!a)throw Error(u(189))}}if(n.alternate!==r)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function Po(e){return e=Kc(e),e!==null?To(e):null}function To(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=To(e);if(t!==null)return t;e=e.sibling}return null}var zo=c.unstable_scheduleCallback,Ro=c.unstable_cancelCallback,Qc=c.unstable_shouldYield,Yc=c.unstable_requestPaint,Ie=c.unstable_now,Jc=c.unstable_getCurrentPriorityLevel,Ss=c.unstable_ImmediatePriority,Lo=c.unstable_UserBlockingPriority,ll=c.unstable_NormalPriority,Gc=c.unstable_LowPriority,Do=c.unstable_IdlePriority,sl=null,_t=null;function Xc(e){if(_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(sl,e,void 0,(e.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:bc,qc=Math.log,Zc=Math.LN2;function bc(e){return e>>>=0,e===0?32:31-(qc(e)/Zc|0)|0}var il=64,ol=4194304;function gr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var d=a&~l;d!==0?r=gr(d):(i&=a,i!==0&&(r=gr(i)))}else a=n&~l,a!==0?r=gr(a):i!==0&&(r=gr(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-xt(t),l=1<<n,r|=e[n],t&=~l;return r}function ed(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function td(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-xt(i),d=1<<a,h=l[a];h===-1?((d&n)===0||(d&r)!==0)&&(l[a]=ed(d,t)):h<=t&&(e.expiredLanes|=d),i&=~d}}function ws(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Io(){var e=il;return il<<=1,(il&4194240)===0&&(il=64),e}function ks(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function nd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-xt(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function js(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xt(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var je=0;function Oo(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Mo,Cs,Fo,Bo,Uo,Es=!1,ul=[],Kt=null,Qt=null,Yt=null,vr=new Map,xr=new Map,Jt=[],rd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ao(e,t){switch(e){case"focusin":case"focusout":Kt=null;break;case"dragenter":case"dragleave":Qt=null;break;case"mouseover":case"mouseout":Yt=null;break;case"pointerover":case"pointerout":vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xr.delete(t.pointerId)}}function Sr(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Ir(t),t!==null&&Cs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function ld(e,t,n,r,l){switch(t){case"focusin":return Kt=Sr(Kt,e,t,n,r,l),!0;case"dragenter":return Qt=Sr(Qt,e,t,n,r,l),!0;case"mouseover":return Yt=Sr(Yt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return vr.set(i,Sr(vr.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,xr.set(i,Sr(xr.get(i)||null,e,t,n,r,l)),!0}return!1}function $o(e){var t=mn(e.target);if(t!==null){var n=hn(t);if(n!==null){if(t=n.tag,t===13){if(t=No(n),t!==null){e.blockedOn=t,Uo(e.priority,function(){Fo(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_s(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);hs=r,n.target.dispatchEvent(r),hs=null}else return t=Ir(n),t!==null&&Cs(t),e.blockedOn=n,!1;t.shift()}return!0}function Wo(e,t,n){cl(e)&&n.delete(t)}function sd(){Es=!1,Kt!==null&&cl(Kt)&&(Kt=null),Qt!==null&&cl(Qt)&&(Qt=null),Yt!==null&&cl(Yt)&&(Yt=null),vr.forEach(Wo),xr.forEach(Wo)}function wr(e,t){e.blockedOn===t&&(e.blockedOn=null,Es||(Es=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,sd)))}function kr(e){function t(l){return wr(l,e)}if(0<ul.length){wr(ul[0],e);for(var n=1;n<ul.length;n++){var r=ul[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Kt!==null&&wr(Kt,e),Qt!==null&&wr(Qt,e),Yt!==null&&wr(Yt,e),vr.forEach(t),xr.forEach(t),n=0;n<Jt.length;n++)r=Jt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Jt.length&&(n=Jt[0],n.blockedOn===null);)$o(n),n.blockedOn===null&&Jt.shift()}var Fn=E.ReactCurrentBatchConfig,dl=!0;function id(e,t,n,r){var l=je,i=Fn.transition;Fn.transition=null;try{je=1,Ns(e,t,n,r)}finally{je=l,Fn.transition=i}}function od(e,t,n,r){var l=je,i=Fn.transition;Fn.transition=null;try{je=4,Ns(e,t,n,r)}finally{je=l,Fn.transition=i}}function Ns(e,t,n,r){if(dl){var l=_s(e,t,n,r);if(l===null)Hs(e,t,r,fl,n),Ao(e,r);else if(ld(l,e,t,n,r))r.stopPropagation();else if(Ao(e,r),t&4&&-1<rd.indexOf(e)){for(;l!==null;){var i=Ir(l);if(i!==null&&Mo(i),i=_s(e,t,n,r),i===null&&Hs(e,t,r,fl,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Hs(e,t,r,null,n)}}var fl=null;function _s(e,t,n,r){if(fl=null,e=ms(r),e=mn(e),e!==null)if(t=hn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=No(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return fl=e,null}function Vo(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Jc()){case Ss:return 1;case Lo:return 4;case ll:case Gc:return 16;case Do:return 536870912;default:return 16}default:return 16}}var Gt=null,Ps=null,pl=null;function Ho(){if(pl)return pl;var e,t=Ps,n=t.length,r,l="value"in Gt?Gt.value:Gt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===l[i-r];r++);return pl=l.slice(e,1<r?1-r:void 0)}function hl(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 ml(){return!0}function Ko(){return!1}function ot(e){function t(n,r,l,i,a){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ml:Ko,this.isPropagationStopped=Ko,this}return q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ml)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ml)},persist:function(){},isPersistent:ml}),t}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ts=ot(Bn),jr=q({},Bn,{view:0,detail:0}),ad=ot(jr),zs,Rs,Cr,gl=q({},jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ds,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!==Cr&&(Cr&&e.type==="mousemove"?(zs=e.screenX-Cr.screenX,Rs=e.screenY-Cr.screenY):Rs=zs=0,Cr=e),zs)},movementY:function(e){return"movementY"in e?e.movementY:Rs}}),Qo=ot(gl),ud=q({},gl,{dataTransfer:0}),cd=ot(ud),dd=q({},jr,{relatedTarget:0}),Ls=ot(dd),fd=q({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0}),pd=ot(fd),hd=q({},Bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),md=ot(hd),gd=q({},Bn,{data:0}),Yo=ot(gd),yd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vd={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"},xd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xd[e])?!!t[e]:!1}function Ds(){return Sd}var wd=q({},jr,{key:function(e){if(e.key){var t=yd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ds,charCode:function(e){return e.type==="keypress"?hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kd=ot(wd),jd=q({},gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jo=ot(jd),Cd=q({},jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ds}),Ed=ot(Cd),Nd=q({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),_d=ot(Nd),Pd=q({},gl,{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}),Td=ot(Pd),zd=[9,13,27,32],Is=T&&"CompositionEvent"in window,Er=null;T&&"documentMode"in document&&(Er=document.documentMode);var Rd=T&&"TextEvent"in window&&!Er,Go=T&&(!Is||Er&&8<Er&&11>=Er),Xo=" ",qo=!1;function Zo(e,t){switch(e){case"keyup":return zd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function Ld(e,t){switch(e){case"compositionend":return bo(t);case"keypress":return t.which!==32?null:(qo=!0,Xo);case"textInput":return e=t.data,e===Xo&&qo?null:e;default:return null}}function Dd(e,t){if(Un)return e==="compositionend"||!Is&&Zo(e,t)?(e=Ho(),pl=Ps=Gt=null,Un=!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 Go&&t.locale!=="ko"?null:t.data;default:return null}}var Id={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 ea(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Id[e.type]:t==="textarea"}function ta(e,t,n,r){wo(r),t=wl(t,"onChange"),0<t.length&&(n=new Ts("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nr=null,_r=null;function Od(e){xa(e,0)}function yl(e){var t=Hn(e);if(Zr(t))return e}function Md(e,t){if(e==="change")return t}var na=!1;if(T){var Os;if(T){var Ms="oninput"in document;if(!Ms){var ra=document.createElement("div");ra.setAttribute("oninput","return;"),Ms=typeof ra.oninput=="function"}Os=Ms}else Os=!1;na=Os&&(!document.documentMode||9<document.documentMode)}function la(){Nr&&(Nr.detachEvent("onpropertychange",sa),_r=Nr=null)}function sa(e){if(e.propertyName==="value"&&yl(_r)){var t=[];ta(t,_r,e,ms(e)),Eo(Od,t)}}function Fd(e,t,n){e==="focusin"?(la(),Nr=t,_r=n,Nr.attachEvent("onpropertychange",sa)):e==="focusout"&&la()}function Bd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(_r)}function Ud(e,t){if(e==="click")return yl(t)}function Ad(e,t){if(e==="input"||e==="change")return yl(t)}function $d(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:$d;function Pr(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!v.call(t,l)||!St(e[l],t[l]))return!1}return!0}function ia(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oa(e,t){var n=ia(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ia(n)}}function aa(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?aa(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ua(){for(var e=window,t=Tn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tn(e.document)}return t}function Fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Wd(e){var t=ua(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&aa(n.ownerDocument.documentElement,n)){if(r!==null&&Fs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=oa(n,i);var a=oa(n,r);l&&a&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vd=T&&"documentMode"in document&&11>=document.documentMode,An=null,Bs=null,Tr=null,Us=!1;function ca(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Us||An==null||An!==Tn(r)||(r=An,"selectionStart"in r&&Fs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tr&&Pr(Tr,r)||(Tr=r,r=wl(Bs,"onSelect"),0<r.length&&(t=new Ts("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=An)))}function vl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $n={animationend:vl("Animation","AnimationEnd"),animationiteration:vl("Animation","AnimationIteration"),animationstart:vl("Animation","AnimationStart"),transitionend:vl("Transition","TransitionEnd")},As={},da={};T&&(da=document.createElement("div").style,"AnimationEvent"in window||(delete $n.animationend.animation,delete $n.animationiteration.animation,delete $n.animationstart.animation),"TransitionEvent"in window||delete $n.transitionend.transition);function xl(e){if(As[e])return As[e];if(!$n[e])return e;var t=$n[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in da)return As[e]=t[n];return e}var fa=xl("animationend"),pa=xl("animationiteration"),ha=xl("animationstart"),ma=xl("transitionend"),ga=new Map,ya="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Xt(e,t){ga.set(e,t),m(t,[e])}for(var $s=0;$s<ya.length;$s++){var Ws=ya[$s],Hd=Ws.toLowerCase(),Kd=Ws[0].toUpperCase()+Ws.slice(1);Xt(Hd,"on"+Kd)}Xt(fa,"onAnimationEnd"),Xt(pa,"onAnimationIteration"),Xt(ha,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(ma,"onTransitionEnd"),k("onMouseEnter",["mouseout","mouseover"]),k("onMouseLeave",["mouseout","mouseover"]),k("onPointerEnter",["pointerout","pointerover"]),k("onPointerLeave",["pointerout","pointerover"]),m("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),m("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),m("onBeforeInput",["compositionend","keypress","textInput","paste"]),m("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Qd=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function va(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Hc(r,t,void 0,e),e.currentTarget=null}function xa(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var d=r[a],h=d.instance,j=d.currentTarget;if(d=d.listener,h!==i&&l.isPropagationStopped())break e;va(l,d,j),i=h}else for(a=0;a<r.length;a++){if(d=r[a],h=d.instance,j=d.currentTarget,d=d.listener,h!==i&&l.isPropagationStopped())break e;va(l,d,j),i=h}}}if(rl)throw e=xs,rl=!1,xs=null,e}function _e(e,t){var n=t[Xs];n===void 0&&(n=t[Xs]=new Set);var r=e+"__bubble";n.has(r)||(Sa(t,e,2,!1),n.add(r))}function Vs(e,t,n){var r=0;t&&(r|=4),Sa(n,e,r,t)}var Sl="_reactListening"+Math.random().toString(36).slice(2);function Rr(e){if(!e[Sl]){e[Sl]=!0,f.forEach(function(n){n!=="selectionchange"&&(Qd.has(n)||Vs(n,!1,e),Vs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sl]||(t[Sl]=!0,Vs("selectionchange",!1,t))}}function Sa(e,t,n,r){switch(Vo(t)){case 1:var l=id;break;case 4:l=od;break;default:l=Ns}n=l.bind(null,t,n,e),l=void 0,!vs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Hs(e,t,n,r,l){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var d=r.stateNode.containerInfo;if(d===l||d.nodeType===8&&d.parentNode===l)break;if(a===4)for(a=r.return;a!==null;){var h=a.tag;if((h===3||h===4)&&(h=a.stateNode.containerInfo,h===l||h.nodeType===8&&h.parentNode===l))return;a=a.return}for(;d!==null;){if(a=mn(d),a===null)return;if(h=a.tag,h===5||h===6){r=i=a;continue e}d=d.parentNode}}r=r.return}Eo(function(){var j=i,I=ms(n),O=[];e:{var D=ga.get(e);if(D!==void 0){var J=Ts,b=e;switch(e){case"keypress":if(hl(n)===0)break e;case"keydown":case"keyup":J=kd;break;case"focusin":b="focus",J=Ls;break;case"focusout":b="blur",J=Ls;break;case"beforeblur":case"afterblur":J=Ls;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Qo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=cd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=Ed;break;case fa:case pa:case ha:J=pd;break;case ma:J=_d;break;case"scroll":J=ad;break;case"wheel":J=Td;break;case"copy":case"cut":case"paste":J=md;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Jo}var ee=(t&4)!==0,Oe=!ee&&e==="scroll",S=ee?D!==null?D+"Capture":null:D;ee=[];for(var g=j,w;g!==null;){w=g;var B=w.stateNode;if(w.tag===5&&B!==null&&(w=B,S!==null&&(B=pr(g,S),B!=null&&ee.push(Lr(g,B,w)))),Oe)break;g=g.return}0<ee.length&&(D=new J(D,b,null,n,I),O.push({event:D,listeners:ee}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",D&&n!==hs&&(b=n.relatedTarget||n.fromElement)&&(mn(b)||b[Ot]))break e;if((J||D)&&(D=I.window===I?I:(D=I.ownerDocument)?D.defaultView||D.parentWindow:window,J?(b=n.relatedTarget||n.toElement,J=j,b=b?mn(b):null,b!==null&&(Oe=hn(b),b!==Oe||b.tag!==5&&b.tag!==6)&&(b=null)):(J=null,b=j),J!==b)){if(ee=Qo,B="onMouseLeave",S="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Jo,B="onPointerLeave",S="onPointerEnter",g="pointer"),Oe=J==null?D:Hn(J),w=b==null?D:Hn(b),D=new ee(B,g+"leave",J,n,I),D.target=Oe,D.relatedTarget=w,B=null,mn(I)===j&&(ee=new ee(S,g+"enter",b,n,I),ee.target=w,ee.relatedTarget=Oe,B=ee),Oe=B,J&&b)t:{for(ee=J,S=b,g=0,w=ee;w;w=Wn(w))g++;for(w=0,B=S;B;B=Wn(B))w++;for(;0<g-w;)ee=Wn(ee),g--;for(;0<w-g;)S=Wn(S),w--;for(;g--;){if(ee===S||S!==null&&ee===S.alternate)break t;ee=Wn(ee),S=Wn(S)}ee=null}else ee=null;J!==null&&wa(O,D,J,ee,!1),b!==null&&Oe!==null&&wa(O,Oe,b,ee,!0)}}e:{if(D=j?Hn(j):window,J=D.nodeName&&D.nodeName.toLowerCase(),J==="select"||J==="input"&&D.type==="file")var te=Md;else if(ea(D))if(na)te=Ad;else{te=Bd;var re=Fd}else(J=D.nodeName)&&J.toLowerCase()==="input"&&(D.type==="checkbox"||D.type==="radio")&&(te=Ud);if(te&&(te=te(e,j))){ta(O,te,n,I);break e}re&&re(e,D,j),e==="focusout"&&(re=D._wrapperState)&&re.controlled&&D.type==="number"&&V(D,"number",D.value)}switch(re=j?Hn(j):window,e){case"focusin":(ea(re)||re.contentEditable==="true")&&(An=re,Bs=j,Tr=null);break;case"focusout":Tr=Bs=An=null;break;case"mousedown":Us=!0;break;case"contextmenu":case"mouseup":case"dragend":Us=!1,ca(O,n,I);break;case"selectionchange":if(Vd)break;case"keydown":case"keyup":ca(O,n,I)}var le;if(Is)e:{switch(e){case"compositionstart":var ue="onCompositionStart";break e;case"compositionend":ue="onCompositionEnd";break e;case"compositionupdate":ue="onCompositionUpdate";break e}ue=void 0}else Un?Zo(e,n)&&(ue="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ue="onCompositionStart");ue&&(Go&&n.locale!=="ko"&&(Un||ue!=="onCompositionStart"?ue==="onCompositionEnd"&&Un&&(le=Ho()):(Gt=I,Ps="value"in Gt?Gt.value:Gt.textContent,Un=!0)),re=wl(j,ue),0<re.length&&(ue=new Yo(ue,e,null,n,I),O.push({event:ue,listeners:re}),le?ue.data=le:(le=bo(n),le!==null&&(ue.data=le)))),(le=Rd?Ld(e,n):Dd(e,n))&&(j=wl(j,"onBeforeInput"),0<j.length&&(I=new Yo("onBeforeInput","beforeinput",null,n,I),O.push({event:I,listeners:j}),I.data=le))}xa(O,t)})}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=pr(e,n),i!=null&&r.unshift(Lr(e,i,l)),i=pr(e,t),i!=null&&r.push(Lr(e,i,l))),e=e.return}return r}function Wn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wa(e,t,n,r,l){for(var i=t._reactName,a=[];n!==null&&n!==r;){var d=n,h=d.alternate,j=d.stateNode;if(h!==null&&h===r)break;d.tag===5&&j!==null&&(d=j,l?(h=pr(n,i),h!=null&&a.unshift(Lr(n,h,d))):l||(h=pr(n,i),h!=null&&a.push(Lr(n,h,d)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Yd=/\r\n?/g,Jd=/\u0000|\uFFFD/g;function ka(e){return(typeof e=="string"?e:""+e).replace(Yd,`
|
|
38
|
+
`).replace(Jd,"")}function kl(e,t,n){if(t=ka(t),ka(e)!==t&&n)throw Error(u(425))}function jl(){}var Ks=null,Qs=null;function Ys(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Js=typeof setTimeout=="function"?setTimeout:void 0,Gd=typeof clearTimeout=="function"?clearTimeout:void 0,ja=typeof Promise=="function"?Promise:void 0,Xd=typeof queueMicrotask=="function"?queueMicrotask:typeof ja<"u"?function(e){return ja.resolve(null).then(e).catch(qd)}:Js;function qd(e){setTimeout(function(){throw e})}function Gs(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),kr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);kr(t)}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ca(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Vn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Vn,Dr="__reactProps$"+Vn,Ot="__reactContainer$"+Vn,Xs="__reactEvents$"+Vn,Zd="__reactListeners$"+Vn,bd="__reactHandles$"+Vn;function mn(e){var t=e[Pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[Pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ca(e);e!==null;){if(n=e[Pt])return n;e=Ca(e)}return t}e=n,n=e.parentNode}return null}function Ir(e){return e=e[Pt]||e[Ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(u(33))}function Cl(e){return e[Dr]||null}var qs=[],Kn=-1;function Zt(e){return{current:e}}function Pe(e){0>Kn||(e.current=qs[Kn],qs[Kn]=null,Kn--)}function Ne(e,t){Kn++,qs[Kn]=e.current,e.current=t}var bt={},Ye=Zt(bt),tt=Zt(!1),gn=bt;function Qn(e,t){var n=e.type.contextTypes;if(!n)return bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function nt(e){return e=e.childContextTypes,e!=null}function El(){Pe(tt),Pe(Ye)}function Ea(e,t,n){if(Ye.current!==bt)throw Error(u(168));Ne(Ye,t),Ne(tt,n)}function Na(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(u(108,Ce(e)||"Unknown",l));return q({},n,r)}function Nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,gn=Ye.current,Ne(Ye,e),Ne(tt,tt.current),!0}function _a(e,t,n){var r=e.stateNode;if(!r)throw Error(u(169));n?(e=Na(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,Pe(tt),Pe(Ye),Ne(Ye,e)):Pe(tt),Ne(tt,n)}var Mt=null,_l=!1,Zs=!1;function Pa(e){Mt===null?Mt=[e]:Mt.push(e)}function ef(e){_l=!0,Pa(e)}function en(){if(!Zs&&Mt!==null){Zs=!0;var e=0,t=je;try{var n=Mt;for(je=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Mt=null,_l=!1}catch(l){throw Mt!==null&&(Mt=Mt.slice(e+1)),zo(Ss,en),l}finally{je=t,Zs=!1}}return null}var Yn=[],Jn=0,Pl=null,Tl=0,pt=[],ht=0,yn=null,Ft=1,Bt="";function vn(e,t){Yn[Jn++]=Tl,Yn[Jn++]=Pl,Pl=e,Tl=t}function Ta(e,t,n){pt[ht++]=Ft,pt[ht++]=Bt,pt[ht++]=yn,yn=e;var r=Ft;e=Bt;var l=32-xt(r)-1;r&=~(1<<l),n+=1;var i=32-xt(t)+l;if(30<i){var a=l-l%5;i=(r&(1<<a)-1).toString(32),r>>=a,l-=a,Ft=1<<32-xt(t)+l|n<<l|r,Bt=i+e}else Ft=1<<i|n<<l|r,Bt=e}function bs(e){e.return!==null&&(vn(e,1),Ta(e,1,0))}function ei(e){for(;e===Pl;)Pl=Yn[--Jn],Yn[Jn]=null,Tl=Yn[--Jn],Yn[Jn]=null;for(;e===yn;)yn=pt[--ht],pt[ht]=null,Bt=pt[--ht],pt[ht]=null,Ft=pt[--ht],pt[ht]=null}var at=null,ut=null,ze=!1,wt=null;function za(e,t){var n=vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ra(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,at=e,ut=qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=yn!==null?{id:Ft,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,at=e,ut=null,!0):!1;default:return!1}}function ti(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ni(e){if(ze){var t=ut;if(t){var n=t;if(!Ra(e,t)){if(ti(e))throw Error(u(418));t=qt(n.nextSibling);var r=at;t&&Ra(e,t)?za(r,n):(e.flags=e.flags&-4097|2,ze=!1,at=e)}}else{if(ti(e))throw Error(u(418));e.flags=e.flags&-4097|2,ze=!1,at=e}}}function La(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function zl(e){if(e!==at)return!1;if(!ze)return La(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ys(e.type,e.memoizedProps)),t&&(t=ut)){if(ti(e))throw Da(),Error(u(418));for(;t;)za(e,t),t=qt(t.nextSibling)}if(La(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=at?qt(e.stateNode.nextSibling):null;return!0}function Da(){for(var e=ut;e;)e=qt(e.nextSibling)}function Gn(){ut=at=null,ze=!1}function ri(e){wt===null?wt=[e]:wt.push(e)}var tf=E.ReactCurrentBatchConfig;function Or(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(u(309));var r=n.stateNode}if(!r)throw Error(u(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var d=l.refs;a===null?delete d[i]:d[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(u(284));if(!n._owner)throw Error(u(290,e))}return e}function Rl(e,t){throw e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ia(e){var t=e._init;return t(e._payload)}function Oa(e){function t(S,g){if(e){var w=S.deletions;w===null?(S.deletions=[g],S.flags|=16):w.push(g)}}function n(S,g){if(!e)return null;for(;g!==null;)t(S,g),g=g.sibling;return null}function r(S,g){for(S=new Map;g!==null;)g.key!==null?S.set(g.key,g):S.set(g.index,g),g=g.sibling;return S}function l(S,g){return S=un(S,g),S.index=0,S.sibling=null,S}function i(S,g,w){return S.index=w,e?(w=S.alternate,w!==null?(w=w.index,w<g?(S.flags|=2,g):w):(S.flags|=2,g)):(S.flags|=1048576,g)}function a(S){return e&&S.alternate===null&&(S.flags|=2),S}function d(S,g,w,B){return g===null||g.tag!==6?(g=Ji(w,S.mode,B),g.return=S,g):(g=l(g,w),g.return=S,g)}function h(S,g,w,B){var te=w.type;return te===de?I(S,g,w.props.children,B,w.key):g!==null&&(g.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===oe&&Ia(te)===g.type)?(B=l(g,w.props),B.ref=Or(S,g,w),B.return=S,B):(B=ts(w.type,w.key,w.props,null,S.mode,B),B.ref=Or(S,g,w),B.return=S,B)}function j(S,g,w,B){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Gi(w,S.mode,B),g.return=S,g):(g=l(g,w.children||[]),g.return=S,g)}function I(S,g,w,B,te){return g===null||g.tag!==7?(g=Nn(w,S.mode,B,te),g.return=S,g):(g=l(g,w),g.return=S,g)}function O(S,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Ji(""+g,S.mode,w),g.return=S,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Q:return w=ts(g.type,g.key,g.props,null,S.mode,w),w.ref=Or(S,null,g),w.return=S,w;case X:return g=Gi(g,S.mode,w),g.return=S,g;case oe:var B=g._init;return O(S,B(g._payload),w)}if($(g)||ne(g))return g=Nn(g,S.mode,w,null),g.return=S,g;Rl(S,g)}return null}function D(S,g,w,B){var te=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return te!==null?null:d(S,g,""+w,B);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Q:return w.key===te?h(S,g,w,B):null;case X:return w.key===te?j(S,g,w,B):null;case oe:return te=w._init,D(S,g,te(w._payload),B)}if($(w)||ne(w))return te!==null?null:I(S,g,w,B,null);Rl(S,w)}return null}function J(S,g,w,B,te){if(typeof B=="string"&&B!==""||typeof B=="number")return S=S.get(w)||null,d(g,S,""+B,te);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:return S=S.get(B.key===null?w:B.key)||null,h(g,S,B,te);case X:return S=S.get(B.key===null?w:B.key)||null,j(g,S,B,te);case oe:var re=B._init;return J(S,g,w,re(B._payload),te)}if($(B)||ne(B))return S=S.get(w)||null,I(g,S,B,te,null);Rl(g,B)}return null}function b(S,g,w,B){for(var te=null,re=null,le=g,ue=g=0,We=null;le!==null&&ue<w.length;ue++){le.index>ue?(We=le,le=null):We=le.sibling;var Se=D(S,le,w[ue],B);if(Se===null){le===null&&(le=We);break}e&&le&&Se.alternate===null&&t(S,le),g=i(Se,g,ue),re===null?te=Se:re.sibling=Se,re=Se,le=We}if(ue===w.length)return n(S,le),ze&&vn(S,ue),te;if(le===null){for(;ue<w.length;ue++)le=O(S,w[ue],B),le!==null&&(g=i(le,g,ue),re===null?te=le:re.sibling=le,re=le);return ze&&vn(S,ue),te}for(le=r(S,le);ue<w.length;ue++)We=J(le,S,ue,w[ue],B),We!==null&&(e&&We.alternate!==null&&le.delete(We.key===null?ue:We.key),g=i(We,g,ue),re===null?te=We:re.sibling=We,re=We);return e&&le.forEach(function(cn){return t(S,cn)}),ze&&vn(S,ue),te}function ee(S,g,w,B){var te=ne(w);if(typeof te!="function")throw Error(u(150));if(w=te.call(w),w==null)throw Error(u(151));for(var re=te=null,le=g,ue=g=0,We=null,Se=w.next();le!==null&&!Se.done;ue++,Se=w.next()){le.index>ue?(We=le,le=null):We=le.sibling;var cn=D(S,le,Se.value,B);if(cn===null){le===null&&(le=We);break}e&&le&&cn.alternate===null&&t(S,le),g=i(cn,g,ue),re===null?te=cn:re.sibling=cn,re=cn,le=We}if(Se.done)return n(S,le),ze&&vn(S,ue),te;if(le===null){for(;!Se.done;ue++,Se=w.next())Se=O(S,Se.value,B),Se!==null&&(g=i(Se,g,ue),re===null?te=Se:re.sibling=Se,re=Se);return ze&&vn(S,ue),te}for(le=r(S,le);!Se.done;ue++,Se=w.next())Se=J(le,S,ue,Se.value,B),Se!==null&&(e&&Se.alternate!==null&&le.delete(Se.key===null?ue:Se.key),g=i(Se,g,ue),re===null?te=Se:re.sibling=Se,re=Se);return e&&le.forEach(function(Of){return t(S,Of)}),ze&&vn(S,ue),te}function Oe(S,g,w,B){if(typeof w=="object"&&w!==null&&w.type===de&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Q:e:{for(var te=w.key,re=g;re!==null;){if(re.key===te){if(te=w.type,te===de){if(re.tag===7){n(S,re.sibling),g=l(re,w.props.children),g.return=S,S=g;break e}}else if(re.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===oe&&Ia(te)===re.type){n(S,re.sibling),g=l(re,w.props),g.ref=Or(S,re,w),g.return=S,S=g;break e}n(S,re);break}else t(S,re);re=re.sibling}w.type===de?(g=Nn(w.props.children,S.mode,B,w.key),g.return=S,S=g):(B=ts(w.type,w.key,w.props,null,S.mode,B),B.ref=Or(S,g,w),B.return=S,S=B)}return a(S);case X:e:{for(re=w.key;g!==null;){if(g.key===re)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(S,g.sibling),g=l(g,w.children||[]),g.return=S,S=g;break e}else{n(S,g);break}else t(S,g);g=g.sibling}g=Gi(w,S.mode,B),g.return=S,S=g}return a(S);case oe:return re=w._init,Oe(S,g,re(w._payload),B)}if($(w))return b(S,g,w,B);if(ne(w))return ee(S,g,w,B);Rl(S,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(S,g.sibling),g=l(g,w),g.return=S,S=g):(n(S,g),g=Ji(w,S.mode,B),g.return=S,S=g),a(S)):n(S,g)}return Oe}var Xn=Oa(!0),Ma=Oa(!1),Ll=Zt(null),Dl=null,qn=null,li=null;function si(){li=qn=Dl=null}function ii(e){var t=Ll.current;Pe(Ll),e._currentValue=t}function oi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zn(e,t){Dl=e,li=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(rt=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(li!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Dl===null)throw Error(u(308));qn=e,Dl.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var xn=null;function ai(e){xn===null?xn=[e]:xn.push(e)}function Fa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ai(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ut(e,r)}function Ut(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tn=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function At(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(xe&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ut(e,n)}return l=r.interleaved,l===null?(t.next=t,ai(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ut(e,n)}function Il(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,js(e,n)}}function Ua(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ol(e,t,n,r){var l=e.updateQueue;tn=!1;var i=l.firstBaseUpdate,a=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var h=d,j=h.next;h.next=null,a===null?i=j:a.next=j,a=h;var I=e.alternate;I!==null&&(I=I.updateQueue,d=I.lastBaseUpdate,d!==a&&(d===null?I.firstBaseUpdate=j:d.next=j,I.lastBaseUpdate=h))}if(i!==null){var O=l.baseState;a=0,I=j=h=null,d=i;do{var D=d.lane,J=d.eventTime;if((r&D)===D){I!==null&&(I=I.next={eventTime:J,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var b=e,ee=d;switch(D=t,J=n,ee.tag){case 1:if(b=ee.payload,typeof b=="function"){O=b.call(J,O,D);break e}O=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=ee.payload,D=typeof b=="function"?b.call(J,O,D):b,D==null)break e;O=q({},O,D);break e;case 2:tn=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,D=l.effects,D===null?l.effects=[d]:D.push(d))}else J={eventTime:J,lane:D,tag:d.tag,payload:d.payload,callback:d.callback,next:null},I===null?(j=I=J,h=O):I=I.next=J,a|=D;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;D=d,d=D.next,D.next=null,l.lastBaseUpdate=D,l.shared.pending=null}}while(!0);if(I===null&&(h=O),l.baseState=h,l.firstBaseUpdate=j,l.lastBaseUpdate=I,t=l.shared.interleaved,t!==null){l=t;do a|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);kn|=a,e.lanes=a,e.memoizedState=O}}function Aa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(u(191,l));l.call(r)}}}var Mr={},Tt=Zt(Mr),Fr=Zt(Mr),Br=Zt(Mr);function Sn(e){if(e===Mr)throw Error(u(174));return e}function ci(e,t){switch(Ne(Br,t),Ne(Fr,e),Ne(Tt,Mr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ln(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ln(t,e)}Pe(Tt),Ne(Tt,t)}function bn(){Pe(Tt),Pe(Fr),Pe(Br)}function $a(e){Sn(Br.current);var t=Sn(Tt.current),n=Ln(t,e.type);t!==n&&(Ne(Fr,e),Ne(Tt,n))}function di(e){Fr.current===e&&(Pe(Tt),Pe(Fr))}var Re=Zt(0);function Ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==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 fi=[];function pi(){for(var e=0;e<fi.length;e++)fi[e]._workInProgressVersionPrimary=null;fi.length=0}var Fl=E.ReactCurrentDispatcher,hi=E.ReactCurrentBatchConfig,wn=0,Le=null,Be=null,Ae=null,Bl=!1,Ur=!1,Ar=0,nf=0;function Je(){throw Error(u(321))}function mi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function gi(e,t,n,r,l,i){if(wn=i,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fl.current=e===null||e.memoizedState===null?of:af,e=n(r,l),Ur){i=0;do{if(Ur=!1,Ar=0,25<=i)throw Error(u(301));i+=1,Ae=Be=null,t.updateQueue=null,Fl.current=uf,e=n(r,l)}while(Ur)}if(Fl.current=$l,t=Be!==null&&Be.next!==null,wn=0,Ae=Be=Le=null,Bl=!1,t)throw Error(u(300));return e}function yi(){var e=Ar!==0;return Ar=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?Le.memoizedState=Ae=e:Ae=Ae.next=e,Ae}function gt(){if(Be===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=Ae===null?Le.memoizedState:Ae.next;if(t!==null)Ae=t,Be=e;else{if(e===null)throw Error(u(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Ae===null?Le.memoizedState=Ae=e:Ae=Ae.next=e}return Ae}function $r(e,t){return typeof t=="function"?t(e):t}function vi(e){var t=gt(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var r=Be,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var a=l.next;l.next=i.next,i.next=a}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var d=a=null,h=null,j=i;do{var I=j.lane;if((wn&I)===I)h!==null&&(h=h.next={lane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),r=j.hasEagerState?j.eagerState:e(r,j.action);else{var O={lane:I,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};h===null?(d=h=O,a=r):h=h.next=O,Le.lanes|=I,kn|=I}j=j.next}while(j!==null&&j!==i);h===null?a=r:h.next=d,St(r,t.memoizedState)||(rt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=h,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,Le.lanes|=i,kn|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xi(e){var t=gt(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var a=l=l.next;do i=e(i,a.action),a=a.next;while(a!==l);St(i,t.memoizedState)||(rt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Wa(){}function Va(e,t){var n=Le,r=gt(),l=t(),i=!St(r.memoizedState,l);if(i&&(r.memoizedState=l,rt=!0),r=r.queue,Si(Qa.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ae!==null&&Ae.memoizedState.tag&1){if(n.flags|=2048,Wr(9,Ka.bind(null,n,r,l,t),void 0,null),$e===null)throw Error(u(349));(wn&30)!==0||Ha(n,t,l)}return l}function Ha(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ya(t)&&Ja(e)}function Qa(e,t,n){return n(function(){Ya(t)&&Ja(e)})}function Ya(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function Ja(e){var t=Ut(e,1);t!==null&&Et(t,e,1,-1)}function Ga(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:e},t.queue=e,e=e.dispatch=sf.bind(null,Le,e),[t.memoizedState,e]}function Wr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Xa(){return gt().memoizedState}function Ul(e,t,n,r){var l=zt();Le.flags|=e,l.memoizedState=Wr(1|t,n,void 0,r===void 0?null:r)}function Al(e,t,n,r){var l=gt();r=r===void 0?null:r;var i=void 0;if(Be!==null){var a=Be.memoizedState;if(i=a.destroy,r!==null&&mi(r,a.deps)){l.memoizedState=Wr(t,n,i,r);return}}Le.flags|=e,l.memoizedState=Wr(1|t,n,i,r)}function qa(e,t){return Ul(8390656,8,e,t)}function Si(e,t){return Al(2048,8,e,t)}function Za(e,t){return Al(4,2,e,t)}function ba(e,t){return Al(4,4,e,t)}function eu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tu(e,t,n){return n=n!=null?n.concat([e]):null,Al(4,4,eu.bind(null,t,e),n)}function wi(){}function nu(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ru(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lu(e,t,n){return(wn&21)===0?(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=n):(St(n,t)||(n=Io(),Le.lanes|=n,kn|=n,e.baseState=!0),t)}function rf(e,t){var n=je;je=n!==0&&4>n?n:4,e(!0);var r=hi.transition;hi.transition={};try{e(!1),t()}finally{je=n,hi.transition=r}}function su(){return gt().memoizedState}function lf(e,t,n){var r=on(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},iu(e))ou(t,n);else if(n=Fa(e,t,n,r),n!==null){var l=et();Et(n,e,r,l),au(n,t,r)}}function sf(e,t,n){var r=on(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(iu(e))ou(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,d=i(a,n);if(l.hasEagerState=!0,l.eagerState=d,St(d,a)){var h=t.interleaved;h===null?(l.next=l,ai(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=Fa(e,t,l,r),n!==null&&(l=et(),Et(n,e,r,l),au(n,t,r))}}function iu(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function ou(e,t){Ur=Bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function au(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,js(e,n)}}var $l={readContext:mt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},of={readContext:mt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:qa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ul(4194308,4,eu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ul(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ul(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lf.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Ga,useDebugValue:wi,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Ga(!1),t=e[0];return e=rf.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,l=zt();if(ze){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),$e===null)throw Error(u(349));(wn&30)!==0||Ha(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,qa(Qa.bind(null,r,i,e),[e]),r.flags|=2048,Wr(9,Ka.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zt(),t=$e.identifierPrefix;if(ze){var n=Bt,r=Ft;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ar++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=nf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},af={readContext:mt,useCallback:nu,useContext:mt,useEffect:Si,useImperativeHandle:tu,useInsertionEffect:Za,useLayoutEffect:ba,useMemo:ru,useReducer:vi,useRef:Xa,useState:function(){return vi($r)},useDebugValue:wi,useDeferredValue:function(e){var t=gt();return lu(t,Be.memoizedState,e)},useTransition:function(){var e=vi($r)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Wa,useSyncExternalStore:Va,useId:su,unstable_isNewReconciler:!1},uf={readContext:mt,useCallback:nu,useContext:mt,useEffect:Si,useImperativeHandle:tu,useInsertionEffect:Za,useLayoutEffect:ba,useMemo:ru,useReducer:xi,useRef:Xa,useState:function(){return xi($r)},useDebugValue:wi,useDeferredValue:function(e){var t=gt();return Be===null?t.memoizedState=e:lu(t,Be.memoizedState,e)},useTransition:function(){var e=xi($r)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Wa,useSyncExternalStore:Va,useId:su,unstable_isNewReconciler:!1};function kt(e,t){if(e&&e.defaultProps){t=q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ki(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wl={isMounted:function(e){return(e=e._reactInternals)?hn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=et(),l=on(e),i=At(r,l);i.payload=t,n!=null&&(i.callback=n),t=nn(e,i,l),t!==null&&(Et(t,e,l,r),Il(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=et(),l=on(e),i=At(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=nn(e,i,l),t!==null&&(Et(t,e,l,r),Il(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=et(),r=on(e),l=At(n,r);l.tag=2,t!=null&&(l.callback=t),t=nn(e,l,r),t!==null&&(Et(t,e,r,n),Il(t,e,r))}};function uu(e,t,n,r,l,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Pr(n,r)||!Pr(l,i):!0}function cu(e,t,n){var r=!1,l=bt,i=t.contextType;return typeof i=="object"&&i!==null?i=mt(i):(l=nt(t)?gn:Ye.current,r=t.contextTypes,i=(r=r!=null)?Qn(e,l):bt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function du(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Wl.enqueueReplaceState(t,t.state,null)}function ji(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ui(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=mt(i):(i=nt(t)?gn:Ye.current,l.context=Qn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ki(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Wl.enqueueReplaceState(l,l.state,null),Ol(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function er(e,t){try{var n="",r=t;do n+=ge(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function Ci(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ei(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cf=typeof WeakMap=="function"?WeakMap:Map;function fu(e,t,n){n=At(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gl||(Gl=!0,Ai=r),Ei(e,t)},n}function pu(e,t,n){n=At(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ei(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ei(e,t),typeof r!="function"&&(ln===null?ln=new Set([this]):ln.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function hu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cf;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Cf.bind(null,e,t,n),t.then(e,e))}function mu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function gu(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=At(-1,1),t.tag=2,nn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var df=E.ReactCurrentOwner,rt=!1;function be(e,t,n,r){t.child=e===null?Ma(t,null,n,r):Xn(t,e.child,n,r)}function yu(e,t,n,r,l){n=n.render;var i=t.ref;return Zn(t,l),r=gi(e,t,n,r,i,l),n=yi(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,$t(e,t,l)):(ze&&n&&bs(t),t.flags|=1,be(e,t,r,l),t.child)}function vu(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Yi(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,xu(e,t,i,r,l)):(e=ts(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Pr,n(a,r)&&e.ref===t.ref)return $t(e,t,l)}return t.flags|=1,e=un(i,r),e.ref=t.ref,e.return=t,t.child=e}function xu(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Pr(i,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,$t(e,t,l)}return Ni(e,t,n,r,l)}function Su(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ne(nr,ct),ct|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ne(nr,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ne(nr,ct),ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ne(nr,ct),ct|=r;return be(e,t,l,n),t.child}function wu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ni(e,t,n,r,l){var i=nt(n)?gn:Ye.current;return i=Qn(t,i),Zn(t,l),n=gi(e,t,n,r,i,l),r=yi(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,$t(e,t,l)):(ze&&r&&bs(t),t.flags|=1,be(e,t,n,l),t.child)}function ku(e,t,n,r,l){if(nt(n)){var i=!0;Nl(t)}else i=!1;if(Zn(t,l),t.stateNode===null)Hl(e,t),cu(t,n,r),ji(t,n,r,l),r=!0;else if(e===null){var a=t.stateNode,d=t.memoizedProps;a.props=d;var h=a.context,j=n.contextType;typeof j=="object"&&j!==null?j=mt(j):(j=nt(n)?gn:Ye.current,j=Qn(t,j));var I=n.getDerivedStateFromProps,O=typeof I=="function"||typeof a.getSnapshotBeforeUpdate=="function";O||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(d!==r||h!==j)&&du(t,a,r,j),tn=!1;var D=t.memoizedState;a.state=D,Ol(t,r,a,l),h=t.memoizedState,d!==r||D!==h||tt.current||tn?(typeof I=="function"&&(ki(t,n,I,r),h=t.memoizedState),(d=tn||uu(t,n,d,r,D,h,j))?(O||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=j,r=d):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ba(e,t),d=t.memoizedProps,j=t.type===t.elementType?d:kt(t.type,d),a.props=j,O=t.pendingProps,D=a.context,h=n.contextType,typeof h=="object"&&h!==null?h=mt(h):(h=nt(n)?gn:Ye.current,h=Qn(t,h));var J=n.getDerivedStateFromProps;(I=typeof J=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(d!==O||D!==h)&&du(t,a,r,h),tn=!1,D=t.memoizedState,a.state=D,Ol(t,r,a,l);var b=t.memoizedState;d!==O||D!==b||tt.current||tn?(typeof J=="function"&&(ki(t,n,J,r),b=t.memoizedState),(j=tn||uu(t,n,j,r,D,b,h)||!1)?(I||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,b,h),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,b,h)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),a.props=r,a.state=b,a.context=h,r=j):(typeof a.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),r=!1)}return _i(e,t,n,r,i,l)}function _i(e,t,n,r,l,i){wu(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return l&&_a(t,n,!1),$t(e,t,i);r=t.stateNode,df.current=t;var d=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Xn(t,e.child,null,i),t.child=Xn(t,null,d,i)):be(e,t,d,i),t.memoizedState=r.state,l&&_a(t,n,!0),t.child}function ju(e){var t=e.stateNode;t.pendingContext?Ea(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ea(e,t.context,!1),ci(e,t.containerInfo)}function Cu(e,t,n,r,l){return Gn(),ri(l),t.flags|=256,be(e,t,n,r),t.child}var Pi={dehydrated:null,treeContext:null,retryLane:0};function Ti(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eu(e,t,n){var r=t.pendingProps,l=Re.current,i=!1,a=(t.flags&128)!==0,d;if((d=a)||(d=e!==null&&e.memoizedState===null?!1:(l&2)!==0),d?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ne(Re,l&1),e===null)return ni(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ns(a,r,0,null),e=Nn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ti(n),t.memoizedState=Pi,e):zi(t,a));if(l=e.memoizedState,l!==null&&(d=l.dehydrated,d!==null))return ff(e,t,a,r,d,l,n);if(i){i=r.fallback,a=t.mode,l=e.child,d=l.sibling;var h={mode:"hidden",children:r.children};return(a&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=h,t.deletions=null):(r=un(l,h),r.subtreeFlags=l.subtreeFlags&14680064),d!==null?i=un(d,i):(i=Nn(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Ti(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Pi,r}return i=e.child,e=i.sibling,r=un(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function zi(e,t){return t=ns({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vl(e,t,n,r){return r!==null&&ri(r),Xn(t,e.child,null,n),e=zi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ff(e,t,n,r,l,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Ci(Error(u(422))),Vl(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=ns({mode:"visible",children:r.children},l,0,null),i=Nn(i,l,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Xn(t,e.child,null,a),t.child.memoizedState=Ti(a),t.memoizedState=Pi,i);if((t.mode&1)===0)return Vl(e,t,a,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var d=r.dgst;return r=d,i=Error(u(419)),r=Ci(i,r,void 0),Vl(e,t,a,r)}if(d=(a&e.childLanes)!==0,rt||d){if(r=$e,r!==null){switch(a&-a){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|a))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Ut(e,l),Et(r,e,l,-1))}return Qi(),r=Ci(Error(u(421))),Vl(e,t,a,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Ef.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,ut=qt(l.nextSibling),at=t,ze=!0,wt=null,e!==null&&(pt[ht++]=Ft,pt[ht++]=Bt,pt[ht++]=yn,Ft=e.id,Bt=e.overflow,yn=t),t=zi(t,r.children),t.flags|=4096,t)}function Nu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),oi(e.return,t,n)}function Ri(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function _u(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(be(e,t,r.children,n),r=Re.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nu(e,n,t);else if(e.tag===19)Nu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ne(Re,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ml(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ri(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ml(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ri(t,!0,n,null,i);break;case"together":Ri(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $t(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pf(e,t,n){switch(t.tag){case 3:ju(t),Gn();break;case 5:$a(t);break;case 1:nt(t.type)&&Nl(t);break;case 4:ci(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Ne(Ll,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ne(Re,Re.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Eu(e,t,n):(Ne(Re,Re.current&1),e=$t(e,t,n),e!==null?e.sibling:null);Ne(Re,Re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return _u(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ne(Re,Re.current),r)break;return null;case 22:case 23:return t.lanes=0,Su(e,t,n)}return $t(e,t,n)}var Pu,Li,Tu,zu;Pu=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Li=function(){},Tu=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Sn(Tt.current);var i=null;switch(n){case"input":l=ur(e,l),r=ur(e,r),i=[];break;case"select":l=q({},l,{value:void 0}),r=q({},r,{value:void 0}),i=[];break;case"textarea":l=Rn(e,l),r=Rn(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}fs(n,r);var a;n=null;for(j in l)if(!r.hasOwnProperty(j)&&l.hasOwnProperty(j)&&l[j]!=null)if(j==="style"){var d=l[j];for(a in d)d.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(p.hasOwnProperty(j)?i||(i=[]):(i=i||[]).push(j,null));for(j in r){var h=r[j];if(d=l!=null?l[j]:void 0,r.hasOwnProperty(j)&&h!==d&&(h!=null||d!=null))if(j==="style")if(d){for(a in d)!d.hasOwnProperty(a)||h&&h.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in h)h.hasOwnProperty(a)&&d[a]!==h[a]&&(n||(n={}),n[a]=h[a])}else n||(i||(i=[]),i.push(j,n)),n=h;else j==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,d=d?d.__html:void 0,h!=null&&d!==h&&(i=i||[]).push(j,h)):j==="children"?typeof h!="string"&&typeof h!="number"||(i=i||[]).push(j,""+h):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(p.hasOwnProperty(j)?(h!=null&&j==="onScroll"&&_e("scroll",e),i||d===h||(i=[])):(i=i||[]).push(j,h))}n&&(i=i||[]).push("style",n);var j=i;(t.updateQueue=j)&&(t.flags|=4)}},zu=function(e,t,n,r){n!==r&&(t.flags|=4)};function Vr(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hf(e,t,n){var r=t.pendingProps;switch(ei(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return nt(t.type)&&El(),Ge(t),null;case 3:return r=t.stateNode,bn(),Pe(tt),Pe(Ye),pi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wt!==null&&(Vi(wt),wt=null))),Li(e,t),Ge(t),null;case 5:di(t);var l=Sn(Br.current);if(n=t.type,e!==null&&t.stateNode!=null)Tu(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Ge(t),null}if(e=Sn(Tt.current),zl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Pt]=t,r[Dr]=i,e=(t.mode&1)!==0,n){case"dialog":_e("cancel",r),_e("close",r);break;case"iframe":case"object":case"embed":_e("load",r);break;case"video":case"audio":for(l=0;l<zr.length;l++)_e(zr[l],r);break;case"source":_e("error",r);break;case"img":case"image":case"link":_e("error",r),_e("load",r);break;case"details":_e("toggle",r);break;case"input":cr(r,i),_e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},_e("invalid",r);break;case"textarea":ft(r,i),_e("invalid",r)}fs(n,i),l=null;for(var a in i)if(i.hasOwnProperty(a)){var d=i[a];a==="children"?typeof d=="string"?r.textContent!==d&&(i.suppressHydrationWarning!==!0&&kl(r.textContent,d,e),l=["children",d]):typeof d=="number"&&r.textContent!==""+d&&(i.suppressHydrationWarning!==!0&&kl(r.textContent,d,e),l=["children",""+d]):p.hasOwnProperty(a)&&d!=null&&a==="onScroll"&&_e("scroll",r)}switch(n){case"input":Pn(r),W(r,i,!0);break;case"textarea":Pn(r),br(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=jl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fr(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Pt]=t,e[Dr]=r,Pu(e,t,!1,!1),t.stateNode=e;e:{switch(a=ps(n,r),n){case"dialog":_e("cancel",e),_e("close",e),l=r;break;case"iframe":case"object":case"embed":_e("load",e),l=r;break;case"video":case"audio":for(l=0;l<zr.length;l++)_e(zr[l],e);l=r;break;case"source":_e("error",e),l=r;break;case"img":case"image":case"link":_e("error",e),_e("load",e),l=r;break;case"details":_e("toggle",e),l=r;break;case"input":cr(e,r),l=ur(e,r),_e("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=q({},r,{value:void 0}),_e("invalid",e);break;case"textarea":ft(e,r),l=Rn(e,r),_e("invalid",e);break;default:l=r}fs(n,l),d=l;for(i in d)if(d.hasOwnProperty(i)){var h=d[i];i==="style"?xo(e,h):i==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,h!=null&&el(e,h)):i==="children"?typeof h=="string"?(n!=="textarea"||h!=="")&&ke(e,h):typeof h=="number"&&ke(e,""+h):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(p.hasOwnProperty(i)?h!=null&&i==="onScroll"&&_e("scroll",e):h!=null&&H(e,i,h,a))}switch(n){case"input":Pn(e),W(e,r,!1);break;case"textarea":Pn(e),br(e);break;case"option":r.value!=null&&e.setAttribute("value",""+we(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Te(e,!!r.multiple,i,!1):r.defaultValue!=null&&Te(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=jl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)zu(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(n=Sn(Br.current),Sn(Tt.current),zl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Pt]=t,(i=r.nodeValue!==n)&&(e=at,e!==null))switch(e.tag){case 3:kl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Pt]=t,t.stateNode=r}return Ge(t),null;case 13:if(Pe(Re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&ut!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Da(),Gn(),t.flags|=98560,i=!1;else if(i=zl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[Pt]=t}else Gn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else wt!==null&&(Vi(wt),wt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Re.current&1)!==0?Ue===0&&(Ue=3):Qi())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return bn(),Li(e,t),e===null&&Rr(t.stateNode.containerInfo),Ge(t),null;case 10:return ii(t.type._context),Ge(t),null;case 17:return nt(t.type)&&El(),Ge(t),null;case 19:if(Pe(Re),i=t.memoizedState,i===null)return Ge(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Vr(i,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Ml(e),a!==null){for(t.flags|=128,Vr(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ne(Re,Re.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ie()>rr&&(t.flags|=128,r=!0,Vr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ml(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ze)return Ge(t),null}else 2*Ie()-i.renderingStartTime>rr&&n!==1073741824&&(t.flags|=128,r=!0,Vr(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ie(),t.sibling=null,n=Re.current,Ne(Re,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return Ki(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ct&1073741824)!==0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(u(156,t.tag))}function mf(e,t){switch(ei(t),t.tag){case 1:return nt(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bn(),Pe(tt),Pe(Ye),pi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return di(t),null;case 13:if(Pe(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Re),null;case 4:return bn(),null;case 10:return ii(t.type._context),null;case 22:case 23:return Ki(),null;case 24:return null;default:return null}}var Kl=!1,Xe=!1,gf=typeof WeakSet=="function"?WeakSet:Set,Z=null;function tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function Di(e,t,n){try{n()}catch(r){De(e,t,r)}}var Ru=!1;function yf(e,t){if(Ks=dl,e=ua(),Fs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,d=-1,h=-1,j=0,I=0,O=e,D=null;t:for(;;){for(var J;O!==n||l!==0&&O.nodeType!==3||(d=a+l),O!==i||r!==0&&O.nodeType!==3||(h=a+r),O.nodeType===3&&(a+=O.nodeValue.length),(J=O.firstChild)!==null;)D=O,O=J;for(;;){if(O===e)break t;if(D===n&&++j===l&&(d=a),D===i&&++I===r&&(h=a),(J=O.nextSibling)!==null)break;O=D,D=O.parentNode}O=J}n=d===-1||h===-1?null:{start:d,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qs={focusedElem:e,selectionRange:n},dl=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var b=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var ee=b.memoizedProps,Oe=b.memoizedState,S=t.stateNode,g=S.getSnapshotBeforeUpdate(t.elementType===t.type?ee:kt(t.type,ee),Oe);S.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(B){De(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return b=Ru,Ru=!1,b}function Hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Di(t,n,i)}l=l.next}while(l!==r)}}function Ql(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ii(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Lu(e){var t=e.alternate;t!==null&&(e.alternate=null,Lu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pt],delete t[Dr],delete t[Xs],delete t[Zd],delete t[bd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Du(e){return e.tag===5||e.tag===3||e.tag===4}function Iu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Du(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jl));else if(r!==4&&(e=e.child,e!==null))for(Oi(e,t,n),e=e.sibling;e!==null;)Oi(e,t,n),e=e.sibling}function Mi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mi(e,t,n),e=e.sibling;e!==null;)Mi(e,t,n),e=e.sibling}var Ke=null,jt=!1;function rn(e,t,n){for(n=n.child;n!==null;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(sl,n)}catch{}switch(n.tag){case 5:Xe||tr(n,t);case 6:var r=Ke,l=jt;Ke=null,rn(e,t,n),Ke=r,jt=l,Ke!==null&&(jt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(jt?(e=Ke,n=n.stateNode,e.nodeType===8?Gs(e.parentNode,n):e.nodeType===1&&Gs(e,n),kr(e)):Gs(Ke,n.stateNode));break;case 4:r=Ke,l=jt,Ke=n.stateNode.containerInfo,jt=!0,rn(e,t,n),Ke=r,jt=l;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&Di(n,t,a),l=l.next}while(l!==r)}rn(e,t,n);break;case 1:if(!Xe&&(tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(d){De(n,t,d)}rn(e,t,n);break;case 21:rn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,rn(e,t,n),Xe=r):rn(e,t,n);break;default:rn(e,t,n)}}function Mu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gf),t.forEach(function(r){var l=Nf.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,a=t,d=a;e:for(;d!==null;){switch(d.tag){case 5:Ke=d.stateNode,jt=!1;break e;case 3:Ke=d.stateNode.containerInfo,jt=!0;break e;case 4:Ke=d.stateNode.containerInfo,jt=!0;break e}d=d.return}if(Ke===null)throw Error(u(160));Ou(i,a,l),Ke=null,jt=!1;var h=l.alternate;h!==null&&(h.return=null),l.return=null}catch(j){De(l,t,j)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling}function Fu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Rt(e),r&4){try{Hr(3,e,e.return),Ql(3,e)}catch(ee){De(e,e.return,ee)}try{Hr(5,e,e.return)}catch(ee){De(e,e.return,ee)}}break;case 1:Ct(t,e),Rt(e),r&512&&n!==null&&tr(n,n.return);break;case 5:if(Ct(t,e),Rt(e),r&512&&n!==null&&tr(n,n.return),e.flags&32){var l=e.stateNode;try{ke(l,"")}catch(ee){De(e,e.return,ee)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,d=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{d==="input"&&i.type==="radio"&&i.name!=null&&zn(l,i),ps(d,a);var j=ps(d,i);for(a=0;a<h.length;a+=2){var I=h[a],O=h[a+1];I==="style"?xo(l,O):I==="dangerouslySetInnerHTML"?el(l,O):I==="children"?ke(l,O):H(l,I,O,j)}switch(d){case"input":Ht(l,i);break;case"textarea":dr(l,i);break;case"select":var D=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var J=i.value;J!=null?Te(l,!!i.multiple,J,!1):D!==!!i.multiple&&(i.defaultValue!=null?Te(l,!!i.multiple,i.defaultValue,!0):Te(l,!!i.multiple,i.multiple?[]:"",!1))}l[Dr]=i}catch(ee){De(e,e.return,ee)}}break;case 6:if(Ct(t,e),Rt(e),r&4){if(e.stateNode===null)throw Error(u(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(ee){De(e,e.return,ee)}}break;case 3:if(Ct(t,e),Rt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{kr(t.containerInfo)}catch(ee){De(e,e.return,ee)}break;case 4:Ct(t,e),Rt(e);break;case 13:Ct(t,e),Rt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Ui=Ie())),r&4&&Mu(e);break;case 22:if(I=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(j=Xe)||I,Ct(t,e),Xe=j):Ct(t,e),Rt(e),r&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!I&&(e.mode&1)!==0)for(Z=e,I=e.child;I!==null;){for(O=Z=I;Z!==null;){switch(D=Z,J=D.child,D.tag){case 0:case 11:case 14:case 15:Hr(4,D,D.return);break;case 1:tr(D,D.return);var b=D.stateNode;if(typeof b.componentWillUnmount=="function"){r=D,n=D.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(ee){De(r,n,ee)}}break;case 5:tr(D,D.return);break;case 22:if(D.memoizedState!==null){Au(O);continue}}J!==null?(J.return=D,Z=J):Au(O)}I=I.sibling}e:for(I=null,O=e;;){if(O.tag===5){if(I===null){I=O;try{l=O.stateNode,j?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(d=O.stateNode,h=O.memoizedProps.style,a=h!=null&&h.hasOwnProperty("display")?h.display:null,d.style.display=tl("display",a))}catch(ee){De(e,e.return,ee)}}}else if(O.tag===6){if(I===null)try{O.stateNode.nodeValue=j?"":O.memoizedProps}catch(ee){De(e,e.return,ee)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;I===O&&(I=null),O=O.return}I===O&&(I=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:Ct(t,e),Rt(e),r&4&&Mu(e);break;case 21:break;default:Ct(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Du(n)){var r=n;break e}n=n.return}throw Error(u(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(ke(l,""),r.flags&=-33);var i=Iu(e);Mi(e,i,l);break;case 3:case 4:var a=r.stateNode.containerInfo,d=Iu(e);Oi(e,d,a);break;default:throw Error(u(161))}}catch(h){De(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vf(e,t,n){Z=e,Bu(e)}function Bu(e,t,n){for(var r=(e.mode&1)!==0;Z!==null;){var l=Z,i=l.child;if(l.tag===22&&r){var a=l.memoizedState!==null||Kl;if(!a){var d=l.alternate,h=d!==null&&d.memoizedState!==null||Xe;d=Kl;var j=Xe;if(Kl=a,(Xe=h)&&!j)for(Z=l;Z!==null;)a=Z,h=a.child,a.tag===22&&a.memoizedState!==null?$u(l):h!==null?(h.return=a,Z=h):$u(l);for(;i!==null;)Z=i,Bu(i),i=i.sibling;Z=l,Kl=d,Xe=j}Uu(e)}else(l.subtreeFlags&8772)!==0&&i!==null?(i.return=l,Z=i):Uu(e)}}function Uu(e){for(;Z!==null;){var t=Z;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Xe||Ql(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Aa(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Aa(t,a,n)}break;case 5:var d=t.stateNode;if(n===null&&t.flags&4){n=d;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&n.focus();break;case"img":h.src&&(n.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var j=t.alternate;if(j!==null){var I=j.memoizedState;if(I!==null){var O=I.dehydrated;O!==null&&kr(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}Xe||t.flags&512&&Ii(t)}catch(D){De(t,t.return,D)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Au(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function $u(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ql(4,t)}catch(h){De(t,n,h)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(h){De(t,l,h)}}var i=t.return;try{Ii(t)}catch(h){De(t,i,h)}break;case 5:var a=t.return;try{Ii(t)}catch(h){De(t,a,h)}}}catch(h){De(t,t.return,h)}if(t===e){Z=null;break}var d=t.sibling;if(d!==null){d.return=t.return,Z=d;break}Z=t.return}}var xf=Math.ceil,Yl=E.ReactCurrentDispatcher,Fi=E.ReactCurrentOwner,yt=E.ReactCurrentBatchConfig,xe=0,$e=null,Fe=null,Qe=0,ct=0,nr=Zt(0),Ue=0,Kr=null,kn=0,Jl=0,Bi=0,Qr=null,lt=null,Ui=0,rr=1/0,Wt=null,Gl=!1,Ai=null,ln=null,Xl=!1,sn=null,ql=0,Yr=0,$i=null,Zl=-1,bl=0;function et(){return(xe&6)!==0?Ie():Zl!==-1?Zl:Zl=Ie()}function on(e){return(e.mode&1)===0?1:(xe&2)!==0&&Qe!==0?Qe&-Qe:tf.transition!==null?(bl===0&&(bl=Io()),bl):(e=je,e!==0||(e=window.event,e=e===void 0?16:Vo(e.type)),e)}function Et(e,t,n,r){if(50<Yr)throw Yr=0,$i=null,Error(u(185));yr(e,n,r),((xe&2)===0||e!==$e)&&(e===$e&&((xe&2)===0&&(Jl|=n),Ue===4&&an(e,Qe)),st(e,r),n===1&&xe===0&&(t.mode&1)===0&&(rr=Ie()+500,_l&&en()))}function st(e,t){var n=e.callbackNode;td(e,t);var r=al(e,e===$e?Qe:0);if(r===0)n!==null&&Ro(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ro(n),t===1)e.tag===0?ef(Vu.bind(null,e)):Pa(Vu.bind(null,e)),Xd(function(){(xe&6)===0&&en()}),n=null;else{switch(Oo(r)){case 1:n=Ss;break;case 4:n=Lo;break;case 16:n=ll;break;case 536870912:n=Do;break;default:n=ll}n=qu(n,Wu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wu(e,t){if(Zl=-1,bl=0,(xe&6)!==0)throw Error(u(327));var n=e.callbackNode;if(lr()&&e.callbackNode!==n)return null;var r=al(e,e===$e?Qe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=es(e,r);else{t=r;var l=xe;xe|=2;var i=Ku();($e!==e||Qe!==t)&&(Wt=null,rr=Ie()+500,Cn(e,t));do try{kf();break}catch(d){Hu(e,d)}while(!0);si(),Yl.current=i,xe=l,Fe!==null?t=0:($e=null,Qe=0,t=Ue)}if(t!==0){if(t===2&&(l=ws(e),l!==0&&(r=l,t=Wi(e,l))),t===1)throw n=Kr,Cn(e,0),an(e,r),st(e,Ie()),n;if(t===6)an(e,r);else{if(l=e.current.alternate,(r&30)===0&&!Sf(l)&&(t=es(e,r),t===2&&(i=ws(e),i!==0&&(r=i,t=Wi(e,i))),t===1))throw n=Kr,Cn(e,0),an(e,r),st(e,Ie()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(u(345));case 2:En(e,lt,Wt);break;case 3:if(an(e,r),(r&130023424)===r&&(t=Ui+500-Ie(),10<t)){if(al(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){et(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Js(En.bind(null,e,lt,Wt),t);break}En(e,lt,Wt);break;case 4:if(an(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var a=31-xt(r);i=1<<a,a=t[a],a>l&&(l=a),r&=~i}if(r=l,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xf(r/1960))-r,10<r){e.timeoutHandle=Js(En.bind(null,e,lt,Wt),r);break}En(e,lt,Wt);break;case 5:En(e,lt,Wt);break;default:throw Error(u(329))}}}return st(e,Ie()),e.callbackNode===n?Wu.bind(null,e):null}function Wi(e,t){var n=Qr;return e.current.memoizedState.isDehydrated&&(Cn(e,t).flags|=256),e=es(e,t),e!==2&&(t=lt,lt=n,t!==null&&Vi(t)),e}function Vi(e){lt===null?lt=e:lt.push.apply(lt,e)}function Sf(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!St(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function an(e,t){for(t&=~Bi,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xt(t),r=1<<n;e[n]=-1,t&=~r}}function Vu(e){if((xe&6)!==0)throw Error(u(327));lr();var t=al(e,0);if((t&1)===0)return st(e,Ie()),null;var n=es(e,t);if(e.tag!==0&&n===2){var r=ws(e);r!==0&&(t=r,n=Wi(e,r))}if(n===1)throw n=Kr,Cn(e,0),an(e,t),st(e,Ie()),n;if(n===6)throw Error(u(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,En(e,lt,Wt),st(e,Ie()),null}function Hi(e,t){var n=xe;xe|=1;try{return e(t)}finally{xe=n,xe===0&&(rr=Ie()+500,_l&&en())}}function jn(e){sn!==null&&sn.tag===0&&(xe&6)===0&&lr();var t=xe;xe|=1;var n=yt.transition,r=je;try{if(yt.transition=null,je=1,e)return e()}finally{je=r,yt.transition=n,xe=t,(xe&6)===0&&en()}}function Ki(){ct=nr.current,Pe(nr)}function Cn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Gd(n)),Fe!==null)for(n=Fe.return;n!==null;){var r=n;switch(ei(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&El();break;case 3:bn(),Pe(tt),Pe(Ye),pi();break;case 5:di(r);break;case 4:bn();break;case 13:Pe(Re);break;case 19:Pe(Re);break;case 10:ii(r.type._context);break;case 22:case 23:Ki()}n=n.return}if($e=e,Fe=e=un(e.current,null),Qe=ct=t,Ue=0,Kr=null,Bi=Jl=kn=0,lt=Qr=null,xn!==null){for(t=0;t<xn.length;t++)if(n=xn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=l,r.next=a}n.pending=r}xn=null}return e}function Hu(e,t){do{var n=Fe;try{if(si(),Fl.current=$l,Bl){for(var r=Le.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Bl=!1}if(wn=0,Ae=Be=Le=null,Ur=!1,Ar=0,Fi.current=null,n===null||n.return===null){Ue=1,Kr=t,Fe=null;break}e:{var i=e,a=n.return,d=n,h=t;if(t=Qe,d.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var j=h,I=d,O=I.tag;if((I.mode&1)===0&&(O===0||O===11||O===15)){var D=I.alternate;D?(I.updateQueue=D.updateQueue,I.memoizedState=D.memoizedState,I.lanes=D.lanes):(I.updateQueue=null,I.memoizedState=null)}var J=mu(a);if(J!==null){J.flags&=-257,gu(J,a,d,i,t),J.mode&1&&hu(i,j,t),t=J,h=j;var b=t.updateQueue;if(b===null){var ee=new Set;ee.add(h),t.updateQueue=ee}else b.add(h);break e}else{if((t&1)===0){hu(i,j,t),Qi();break e}h=Error(u(426))}}else if(ze&&d.mode&1){var Oe=mu(a);if(Oe!==null){(Oe.flags&65536)===0&&(Oe.flags|=256),gu(Oe,a,d,i,t),ri(er(h,d));break e}}i=h=er(h,d),Ue!==4&&(Ue=2),Qr===null?Qr=[i]:Qr.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var S=fu(i,h,t);Ua(i,S);break e;case 1:d=h;var g=i.type,w=i.stateNode;if((i.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(ln===null||!ln.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var B=pu(i,d,t);Ua(i,B);break e}}i=i.return}while(i!==null)}Yu(n)}catch(te){t=te,Fe===n&&n!==null&&(Fe=n=n.return);continue}break}while(!0)}function Ku(){var e=Yl.current;return Yl.current=$l,e===null?$l:e}function Qi(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),$e===null||(kn&268435455)===0&&(Jl&268435455)===0||an($e,Qe)}function es(e,t){var n=xe;xe|=2;var r=Ku();($e!==e||Qe!==t)&&(Wt=null,Cn(e,t));do try{wf();break}catch(l){Hu(e,l)}while(!0);if(si(),xe=n,Yl.current=r,Fe!==null)throw Error(u(261));return $e=null,Qe=0,Ue}function wf(){for(;Fe!==null;)Qu(Fe)}function kf(){for(;Fe!==null&&!Qc();)Qu(Fe)}function Qu(e){var t=Xu(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?Yu(e):Fe=t,Fi.current=null}function Yu(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=hf(n,t,ct),n!==null){Fe=n;return}}else{if(n=mf(n,t),n!==null){n.flags&=32767,Fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);Ue===0&&(Ue=5)}function En(e,t,n){var r=je,l=yt.transition;try{yt.transition=null,je=1,jf(e,t,n,r)}finally{yt.transition=l,je=r}return null}function jf(e,t,n,r){do lr();while(sn!==null);if((xe&6)!==0)throw Error(u(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(u(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(nd(e,i),e===$e&&(Fe=$e=null,Qe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Xl||(Xl=!0,qu(ll,function(){return lr(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=yt.transition,yt.transition=null;var a=je;je=1;var d=xe;xe|=4,Fi.current=null,yf(e,n),Fu(n,e),Wd(Qs),dl=!!Ks,Qs=Ks=null,e.current=n,vf(n),Yc(),xe=d,je=a,yt.transition=i}else e.current=n;if(Xl&&(Xl=!1,sn=e,ql=l),i=e.pendingLanes,i===0&&(ln=null),Xc(n.stateNode),st(e,Ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Gl)throw Gl=!1,e=Ai,Ai=null,e;return(ql&1)!==0&&e.tag!==0&&lr(),i=e.pendingLanes,(i&1)!==0?e===$i?Yr++:(Yr=0,$i=e):Yr=0,en(),null}function lr(){if(sn!==null){var e=Oo(ql),t=yt.transition,n=je;try{if(yt.transition=null,je=16>e?16:e,sn===null)var r=!1;else{if(e=sn,sn=null,ql=0,(xe&6)!==0)throw Error(u(331));var l=xe;for(xe|=4,Z=e.current;Z!==null;){var i=Z,a=i.child;if((Z.flags&16)!==0){var d=i.deletions;if(d!==null){for(var h=0;h<d.length;h++){var j=d[h];for(Z=j;Z!==null;){var I=Z;switch(I.tag){case 0:case 11:case 15:Hr(8,I,i)}var O=I.child;if(O!==null)O.return=I,Z=O;else for(;Z!==null;){I=Z;var D=I.sibling,J=I.return;if(Lu(I),I===j){Z=null;break}if(D!==null){D.return=J,Z=D;break}Z=J}}}var b=i.alternate;if(b!==null){var ee=b.child;if(ee!==null){b.child=null;do{var Oe=ee.sibling;ee.sibling=null,ee=Oe}while(ee!==null)}}Z=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,Z=a;else e:for(;Z!==null;){if(i=Z,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Hr(9,i,i.return)}var S=i.sibling;if(S!==null){S.return=i.return,Z=S;break e}Z=i.return}}var g=e.current;for(Z=g;Z!==null;){a=Z;var w=a.child;if((a.subtreeFlags&2064)!==0&&w!==null)w.return=a,Z=w;else e:for(a=g;Z!==null;){if(d=Z,(d.flags&2048)!==0)try{switch(d.tag){case 0:case 11:case 15:Ql(9,d)}}catch(te){De(d,d.return,te)}if(d===a){Z=null;break e}var B=d.sibling;if(B!==null){B.return=d.return,Z=B;break e}Z=d.return}}if(xe=l,en(),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(sl,e)}catch{}r=!0}return r}finally{je=n,yt.transition=t}}return!1}function Ju(e,t,n){t=er(n,t),t=fu(e,t,1),e=nn(e,t,1),t=et(),e!==null&&(yr(e,1,t),st(e,t))}function De(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ln===null||!ln.has(r))){e=er(n,e),e=pu(t,e,1),t=nn(t,e,1),e=et(),t!==null&&(yr(t,1,e),st(t,e));break}}t=t.return}}function Cf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=et(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(Qe&n)===n&&(Ue===4||Ue===3&&(Qe&130023424)===Qe&&500>Ie()-Ui?Cn(e,0):Bi|=n),st(e,t)}function Gu(e,t){t===0&&((e.mode&1)===0?t=1:(t=ol,ol<<=1,(ol&130023424)===0&&(ol=4194304)));var n=et();e=Ut(e,t),e!==null&&(yr(e,t,n),st(e,n))}function Ef(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gu(e,n)}function Nf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}r!==null&&r.delete(t),Gu(e,n)}var Xu;Xu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)rt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return rt=!1,pf(e,t,n);rt=(e.flags&131072)!==0}else rt=!1,ze&&(t.flags&1048576)!==0&&Ta(t,Tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var l=Qn(t,Ye.current);Zn(t,n),l=gi(null,t,r,e,l,n);var i=yi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nt(r)?(i=!0,Nl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ui(t),l.updater=Wl,t.stateNode=l,l._reactInternals=t,ji(t,r,e,n),t=_i(null,t,r,!0,i,n)):(t.tag=0,ze&&i&&bs(t),be(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Pf(r),e=kt(r,e),l){case 0:t=Ni(null,t,r,e,n);break e;case 1:t=ku(null,t,r,e,n);break e;case 11:t=yu(null,t,r,e,n);break e;case 14:t=vu(null,t,r,kt(r.type,e),n);break e}throw Error(u(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:kt(r,l),Ni(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:kt(r,l),ku(e,t,r,l,n);case 3:e:{if(ju(t),e===null)throw Error(u(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ba(e,t),Ol(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=er(Error(u(423)),t),t=Cu(e,t,r,n,l);break e}else if(r!==l){l=er(Error(u(424)),t),t=Cu(e,t,r,n,l);break e}else for(ut=qt(t.stateNode.containerInfo.firstChild),at=t,ze=!0,wt=null,n=Ma(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===l){t=$t(e,t,n);break e}be(e,t,r,n)}t=t.child}return t;case 5:return $a(t),e===null&&ni(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,a=l.children,Ys(r,l)?a=null:i!==null&&Ys(r,i)&&(t.flags|=32),wu(e,t),be(e,t,a,n),t.child;case 6:return e===null&&ni(t),null;case 13:return Eu(e,t,n);case 4:return ci(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):be(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:kt(r,l),yu(e,t,r,l,n);case 7:return be(e,t,t.pendingProps,n),t.child;case 8:return be(e,t,t.pendingProps.children,n),t.child;case 12:return be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,a=l.value,Ne(Ll,r._currentValue),r._currentValue=a,i!==null)if(St(i.value,a)){if(i.children===l.children&&!tt.current){t=$t(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var d=i.dependencies;if(d!==null){a=i.child;for(var h=d.firstContext;h!==null;){if(h.context===r){if(i.tag===1){h=At(-1,n&-n),h.tag=2;var j=i.updateQueue;if(j!==null){j=j.shared;var I=j.pending;I===null?h.next=h:(h.next=I.next,I.next=h),j.pending=h}}i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),oi(i.return,n,t),d.lanes|=n;break}h=h.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(u(341));a.lanes|=n,d=a.alternate,d!==null&&(d.lanes|=n),oi(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}be(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Zn(t,n),l=mt(l),r=r(l),t.flags|=1,be(e,t,r,n),t.child;case 14:return r=t.type,l=kt(r,t.pendingProps),l=kt(r.type,l),vu(e,t,r,l,n);case 15:return xu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:kt(r,l),Hl(e,t),t.tag=1,nt(r)?(e=!0,Nl(t)):e=!1,Zn(t,n),cu(t,r,l),ji(t,r,l,n),_i(null,t,r,!0,e,n);case 19:return _u(e,t,n);case 22:return Su(e,t,n)}throw Error(u(156,t.tag))};function qu(e,t){return zo(e,t)}function _f(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,r){return new _f(e,t,n,r)}function Yi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pf(e){if(typeof e=="function")return Yi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===He)return 11;if(e===U)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ts(e,t,n,r,l,i){var a=2;if(r=e,typeof e=="function")Yi(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case de:return Nn(n.children,l,i,t);case ve:a=8,l|=8;break;case he:return e=vt(12,n,t,l|2),e.elementType=he,e.lanes=i,e;case Y:return e=vt(13,n,t,l),e.elementType=Y,e.lanes=i,e;case ie:return e=vt(19,n,t,l),e.elementType=ie,e.lanes=i,e;case ae:return ns(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ve:a=10;break e;case qe:a=9;break e;case He:a=11;break e;case U:a=14;break e;case oe:a=16,r=null;break e}throw Error(u(130,e==null?e:typeof e,""))}return t=vt(a,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Nn(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function ns(e,t,n,r){return e=vt(22,e,r,t),e.elementType=ae,e.lanes=n,e.stateNode={isHidden:!1},e}function Ji(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function Gi(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tf(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ks(0),this.expirationTimes=ks(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ks(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Xi(e,t,n,r,l,i,a,d,h){return e=new Tf(e,t,n,d,h),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ui(i),e}function zf(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:X,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Zu(e){if(!e)return bt;e=e._reactInternals;e:{if(hn(e)!==e||e.tag!==1)throw Error(u(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(u(171))}if(e.tag===1){var n=e.type;if(nt(n))return Na(e,n,t)}return t}function bu(e,t,n,r,l,i,a,d,h){return e=Xi(n,r,!0,e,l,i,a,d,h),e.context=Zu(null),n=e.current,r=et(),l=on(n),i=At(r,l),i.callback=t??null,nn(n,i,l),e.current.lanes=l,yr(e,l,r),st(e,r),e}function rs(e,t,n,r){var l=t.current,i=et(),a=on(l);return n=Zu(n),t.context===null?t.context=n:t.pendingContext=n,t=At(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=nn(l,t,a),e!==null&&(Et(e,l,a,i),Il(e,l,a)),a}function ls(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ec(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qi(e,t){ec(e,t),(e=e.alternate)&&ec(e,t)}function Rf(){return null}var tc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zi(e){this._internalRoot=e}ss.prototype.render=Zi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));rs(e,t,null,null)},ss.prototype.unmount=Zi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jn(function(){rs(null,e,null,null)}),t[Ot]=null}};function ss(e){this._internalRoot=e}ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bo();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jt.length&&t!==0&&t<Jt[n].priority;n++);Jt.splice(n,0,e),n===0&&$o(e)}};function bi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function is(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function nc(){}function Lf(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var j=ls(a);i.call(j)}}var a=bu(t,r,e,0,null,!1,!1,"",nc);return e._reactRootContainer=a,e[Ot]=a.current,Rr(e.nodeType===8?e.parentNode:e),jn(),a}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var d=r;r=function(){var j=ls(h);d.call(j)}}var h=Xi(e,0,!1,null,null,!1,!1,"",nc);return e._reactRootContainer=h,e[Ot]=h.current,Rr(e.nodeType===8?e.parentNode:e),jn(function(){rs(t,h,n,r)}),h}function os(e,t,n,r,l){var i=n._reactRootContainer;if(i){var a=i;if(typeof l=="function"){var d=l;l=function(){var h=ls(a);d.call(h)}}rs(t,a,e,l)}else a=Lf(n,t,e,l,r);return ls(a)}Mo=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gr(t.pendingLanes);n!==0&&(js(t,n|1),st(t,Ie()),(xe&6)===0&&(rr=Ie()+500,en()))}break;case 13:jn(function(){var r=Ut(e,1);if(r!==null){var l=et();Et(r,e,1,l)}}),qi(e,1)}},Cs=function(e){if(e.tag===13){var t=Ut(e,134217728);if(t!==null){var n=et();Et(t,e,134217728,n)}qi(e,134217728)}},Fo=function(e){if(e.tag===13){var t=on(e),n=Ut(e,t);if(n!==null){var r=et();Et(n,e,t,r)}qi(e,t)}},Bo=function(){return je},Uo=function(e,t){var n=je;try{return je=e,t()}finally{je=n}},gs=function(e,t,n){switch(t){case"input":if(Ht(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Cl(r);if(!l)throw Error(u(90));Zr(r),Ht(r,l)}}}break;case"textarea":dr(e,n);break;case"select":t=n.value,t!=null&&Te(e,!!n.multiple,t,!1)}},jo=Hi,Co=jn;var Df={usingClientEntryPoint:!1,Events:[Ir,Hn,Cl,wo,ko,Hi]},Jr={findFiberByHostInstance:mn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},If={bundleType:Jr.bundleType,version:Jr.version,rendererPackageName:Jr.rendererPackageName,rendererConfig:Jr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Po(e),e===null?null:e.stateNode},findFiberByHostInstance:Jr.findFiberByHostInstance||Rf,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var as=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!as.isDisabled&&as.supportsFiber)try{sl=as.inject(If),_t=as}catch{}}return it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Df,it.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bi(t))throw Error(u(200));return zf(e,t,null,n)},it.createRoot=function(e,t){if(!bi(e))throw Error(u(299));var n=!1,r="",l=tc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Xi(e,1,!1,null,null,n,!1,r,l),e[Ot]=t.current,Rr(e.nodeType===8?e.parentNode:e),new Zi(t)},it.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=Po(t),e=e===null?null:e.stateNode,e},it.flushSync=function(e){return jn(e)},it.hydrate=function(e,t,n){if(!is(t))throw Error(u(200));return os(null,e,t,!0,n)},it.hydrateRoot=function(e,t,n){if(!bi(e))throw Error(u(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",a=tc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=bu(t,null,e,1,n??null,l,!1,i,a),e[Ot]=t.current,Rr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new ss(t)},it.render=function(e,t,n){if(!is(t))throw Error(u(200));return os(null,e,t,!1,n)},it.unmountComponentAtNode=function(e){if(!is(e))throw Error(u(40));return e._reactRootContainer?(jn(function(){os(null,null,e,!1,function(){e._reactRootContainer=null,e[Ot]=null})}),!0):!1},it.unstable_batchedUpdates=Hi,it.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!is(n))throw Error(u(200));if(e==null||e._reactInternals===void 0)throw Error(u(38));return os(e,t,n,!1,r)},it.version="18.3.1-next-f1338f8080-20240426",it}var cc;function Nc(){if(cc)return no.exports;cc=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(c){console.error(c)}}return o(),no.exports=Qf(),no.exports}var dc;function Yf(){if(dc)return us;dc=1;var o=Nc();return us.createRoot=o.createRoot,us.hydrateRoot=o.hydrateRoot,us}var Jf=Yf();Nc();/**
|
|
41
|
+
* @remix-run/router v1.23.2
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function Xr(){return Xr=Object.assign?Object.assign.bind():function(o){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(o[f]=u[f])}return o},Xr.apply(this,arguments)}var dn;(function(o){o.Pop="POP",o.Push="PUSH",o.Replace="REPLACE"})(dn||(dn={}));const fc="popstate";function Gf(o){o===void 0&&(o={});function c(f,p){let{pathname:m,search:k,hash:T}=f.location;return ao("",{pathname:m,search:k,hash:T},p.state&&p.state.usr||null,p.state&&p.state.key||"default")}function u(f,p){return typeof p=="string"?p:cs(p)}return qf(c,u,null,o)}function Me(o,c){if(o===!1||o===null||typeof o>"u")throw new Error(c)}function ho(o,c){if(!o){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Xf(){return Math.random().toString(36).substr(2,8)}function pc(o,c){return{usr:o.state,key:o.key,idx:c}}function ao(o,c,u,f){return u===void 0&&(u=null),Xr({pathname:typeof o=="string"?o:o.pathname,search:"",hash:""},typeof c=="string"?ir(c):c,{state:u,key:c&&c.key||f||Xf()})}function cs(o){let{pathname:c="/",search:u="",hash:f=""}=o;return u&&u!=="?"&&(c+=u.charAt(0)==="?"?u:"?"+u),f&&f!=="#"&&(c+=f.charAt(0)==="#"?f:"#"+f),c}function ir(o){let c={};if(o){let u=o.indexOf("#");u>=0&&(c.hash=o.substr(u),o=o.substr(0,u));let f=o.indexOf("?");f>=0&&(c.search=o.substr(f),o=o.substr(0,f)),o&&(c.pathname=o)}return c}function qf(o,c,u,f){f===void 0&&(f={});let{window:p=document.defaultView,v5Compat:m=!1}=f,k=p.history,T=dn.Pop,v=null,_=z();_==null&&(_=0,k.replaceState(Xr({},k.state,{idx:_}),""));function z(){return(k.state||{idx:null}).idx}function N(){T=dn.Pop;let P=z(),R=P==null?null:P-_;_=P,v&&v({action:T,location:C.location,delta:R})}function M(P,R){T=dn.Push;let K=ao(C.location,P,R);_=z()+1;let H=pc(K,_),E=C.createHref(K);try{k.pushState(H,"",E)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;p.location.assign(E)}m&&v&&v({action:T,location:C.location,delta:1})}function G(P,R){T=dn.Replace;let K=ao(C.location,P,R);_=z();let H=pc(K,_),E=C.createHref(K);k.replaceState(H,"",E),m&&v&&v({action:T,location:C.location,delta:0})}function F(P){let R=p.location.origin!=="null"?p.location.origin:p.location.href,K=typeof P=="string"?P:cs(P);return K=K.replace(/ $/,"%20"),Me(R,"No window.location.(origin|href) available to create URL for href: "+K),new URL(K,R)}let C={get action(){return T},get location(){return o(p,k)},listen(P){if(v)throw new Error("A history only accepts one active listener");return p.addEventListener(fc,N),v=P,()=>{p.removeEventListener(fc,N),v=null}},createHref(P){return c(p,P)},createURL:F,encodeLocation(P){let R=F(P);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:M,replace:G,go(P){return k.go(P)}};return C}var hc;(function(o){o.data="data",o.deferred="deferred",o.redirect="redirect",o.error="error"})(hc||(hc={}));function Zf(o,c,u){return u===void 0&&(u="/"),bf(o,c,u)}function bf(o,c,u,f){let p=typeof c=="string"?ir(c):c,m=mo(p.pathname||"/",u);if(m==null)return null;let k=_c(o);ep(k);let T=null;for(let v=0;T==null&&v<k.length;++v){let _=fp(m);T=up(k[v],_)}return T}function _c(o,c,u,f){c===void 0&&(c=[]),u===void 0&&(u=[]),f===void 0&&(f="");let p=(m,k,T)=>{let v={relativePath:T===void 0?m.path||"":T,caseSensitive:m.caseSensitive===!0,childrenIndex:k,route:m};v.relativePath.startsWith("/")&&(Me(v.relativePath.startsWith(f),'Absolute route path "'+v.relativePath+'" nested under path '+('"'+f+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),v.relativePath=v.relativePath.slice(f.length));let _=fn([f,v.relativePath]),z=u.concat(v);m.children&&m.children.length>0&&(Me(m.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+_+'".')),_c(m.children,c,z,_)),!(m.path==null&&!m.index)&&c.push({path:_,score:op(_,m.index),routesMeta:z})};return o.forEach((m,k)=>{var T;if(m.path===""||!((T=m.path)!=null&&T.includes("?")))p(m,k);else for(let v of Pc(m.path))p(m,k,v)}),c}function Pc(o){let c=o.split("/");if(c.length===0)return[];let[u,...f]=c,p=u.endsWith("?"),m=u.replace(/\?$/,"");if(f.length===0)return p?[m,""]:[m];let k=Pc(f.join("/")),T=[];return T.push(...k.map(v=>v===""?m:[m,v].join("/"))),p&&T.push(...k),T.map(v=>o.startsWith("/")&&v===""?"/":v)}function ep(o){o.sort((c,u)=>c.score!==u.score?u.score-c.score:ap(c.routesMeta.map(f=>f.childrenIndex),u.routesMeta.map(f=>f.childrenIndex)))}const tp=/^:[\w-]+$/,np=3,rp=2,lp=1,sp=10,ip=-2,mc=o=>o==="*";function op(o,c){let u=o.split("/"),f=u.length;return u.some(mc)&&(f+=ip),c&&(f+=rp),u.filter(p=>!mc(p)).reduce((p,m)=>p+(tp.test(m)?np:m===""?lp:sp),f)}function ap(o,c){return o.length===c.length&&o.slice(0,-1).every((f,p)=>f===c[p])?o[o.length-1]-c[c.length-1]:0}function up(o,c,u){let{routesMeta:f}=o,p={},m="/",k=[];for(let T=0;T<f.length;++T){let v=f[T],_=T===f.length-1,z=m==="/"?c:c.slice(m.length)||"/",N=cp({path:v.relativePath,caseSensitive:v.caseSensitive,end:_},z),M=v.route;if(!N)return null;Object.assign(p,N.params),k.push({params:p,pathname:fn([m,N.pathname]),pathnameBase:yp(fn([m,N.pathnameBase])),route:M}),N.pathnameBase!=="/"&&(m=fn([m,N.pathnameBase]))}return k}function cp(o,c){typeof o=="string"&&(o={path:o,caseSensitive:!1,end:!0});let[u,f]=dp(o.path,o.caseSensitive,o.end),p=c.match(u);if(!p)return null;let m=p[0],k=m.replace(/(.)\/+$/,"$1"),T=p.slice(1);return{params:f.reduce((_,z,N)=>{let{paramName:M,isOptional:G}=z;if(M==="*"){let C=T[N]||"";k=m.slice(0,m.length-C.length).replace(/(.)\/+$/,"$1")}const F=T[N];return G&&!F?_[M]=void 0:_[M]=(F||"").replace(/%2F/g,"/"),_},{}),pathname:m,pathnameBase:k,pattern:o}}function dp(o,c,u){c===void 0&&(c=!1),u===void 0&&(u=!0),ho(o==="*"||!o.endsWith("*")||o.endsWith("/*"),'Route path "'+o+'" will be treated as if it were '+('"'+o.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+o.replace(/\*$/,"/*")+'".'));let f=[],p="^"+o.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(k,T,v)=>(f.push({paramName:T,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return o.endsWith("*")?(f.push({paramName:"*"}),p+=o==="*"||o==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?p+="\\/*$":o!==""&&o!=="/"&&(p+="(?:(?=\\/|$))"),[new RegExp(p,c?void 0:"i"),f]}function fp(o){try{return o.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return ho(!1,'The URL path "'+o+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+c+").")),o}}function mo(o,c){if(c==="/")return o;if(!o.toLowerCase().startsWith(c.toLowerCase()))return null;let u=c.endsWith("/")?c.length-1:c.length,f=o.charAt(u);return f&&f!=="/"?null:o.slice(u)||"/"}const pp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hp=o=>pp.test(o);function mp(o,c){c===void 0&&(c="/");let{pathname:u,search:f="",hash:p=""}=typeof o=="string"?ir(o):o,m;if(u)if(hp(u))m=u;else{if(u.includes("//")){let k=u;u=u.replace(/\/\/+/g,"/"),ho(!1,"Pathnames cannot have embedded double slashes - normalizing "+(k+" -> "+u))}u.startsWith("/")?m=gc(u.substring(1),"/"):m=gc(u,c)}else m=c;return{pathname:m,search:vp(f),hash:xp(p)}}function gc(o,c){let u=c.replace(/\/+$/,"").split("/");return o.split("/").forEach(p=>{p===".."?u.length>1&&u.pop():p!=="."&&u.push(p)}),u.length>1?u.join("/"):"/"}function so(o,c,u,f){return"Cannot include a '"+o+"' character in a manually specified "+("`to."+c+"` field ["+JSON.stringify(f)+"]. Please separate it out to the ")+("`to."+u+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function gp(o){return o.filter((c,u)=>u===0||c.route.path&&c.route.path.length>0)}function go(o,c){let u=gp(o);return c?u.map((f,p)=>p===u.length-1?f.pathname:f.pathnameBase):u.map(f=>f.pathnameBase)}function yo(o,c,u,f){f===void 0&&(f=!1);let p;typeof o=="string"?p=ir(o):(p=Xr({},o),Me(!p.pathname||!p.pathname.includes("?"),so("?","pathname","search",p)),Me(!p.pathname||!p.pathname.includes("#"),so("#","pathname","hash",p)),Me(!p.search||!p.search.includes("#"),so("#","search","hash",p)));let m=o===""||p.pathname==="",k=m?"/":p.pathname,T;if(k==null)T=u;else{let N=c.length-1;if(!f&&k.startsWith("..")){let M=k.split("/");for(;M[0]==="..";)M.shift(),N-=1;p.pathname=M.join("/")}T=N>=0?c[N]:"/"}let v=mp(p,T),_=k&&k!=="/"&&k.endsWith("/"),z=(m||k===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(_||z)&&(v.pathname+="/"),v}const fn=o=>o.join("/").replace(/\/\/+/g,"/"),yp=o=>o.replace(/\/+$/,"").replace(/^\/*/,"/"),vp=o=>!o||o==="?"?"":o.startsWith("?")?o:"?"+o,xp=o=>!o||o==="#"?"":o.startsWith("#")?o:"#"+o;function Sp(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.internal=="boolean"&&"data"in o}const Tc=["post","put","patch","delete"];new Set(Tc);const wp=["get",...Tc];new Set(wp);/**
|
|
50
|
+
* React Router v6.30.3
|
|
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
|
+
*/function qr(){return qr=Object.assign?Object.assign.bind():function(o){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(o[f]=u[f])}return o},qr.apply(this,arguments)}const vo=y.createContext(null),kp=y.createContext(null),pn=y.createContext(null),ds=y.createContext(null),Vt=y.createContext({outlet:null,matches:[],isDataRoute:!1}),zc=y.createContext(null);function jp(o,c){let{relative:u}=c===void 0?{}:c;or()||Me(!1);let{basename:f,navigator:p}=y.useContext(pn),{hash:m,pathname:k,search:T}=Dc(o,{relative:u}),v=k;return f!=="/"&&(v=k==="/"?f:fn([f,k])),p.createHref({pathname:v,search:T,hash:m})}function or(){return y.useContext(ds)!=null}function ar(){return or()||Me(!1),y.useContext(ds).location}function Rc(o){y.useContext(pn).static||y.useLayoutEffect(o)}function Lc(){let{isDataRoute:o}=y.useContext(Vt);return o?Bp():Cp()}function Cp(){or()||Me(!1);let o=y.useContext(vo),{basename:c,future:u,navigator:f}=y.useContext(pn),{matches:p}=y.useContext(Vt),{pathname:m}=ar(),k=JSON.stringify(go(p,u.v7_relativeSplatPath)),T=y.useRef(!1);return Rc(()=>{T.current=!0}),y.useCallback(function(_,z){if(z===void 0&&(z={}),!T.current)return;if(typeof _=="number"){f.go(_);return}let N=yo(_,JSON.parse(k),m,z.relative==="path");o==null&&c!=="/"&&(N.pathname=N.pathname==="/"?c:fn([c,N.pathname])),(z.replace?f.replace:f.push)(N,z.state,z)},[c,f,k,m,o])}const Ep=y.createContext(null);function Np(o){let c=y.useContext(Vt).outlet;return c&&y.createElement(Ep.Provider,{value:o},c)}function Dc(o,c){let{relative:u}=c===void 0?{}:c,{future:f}=y.useContext(pn),{matches:p}=y.useContext(Vt),{pathname:m}=ar(),k=JSON.stringify(go(p,f.v7_relativeSplatPath));return y.useMemo(()=>yo(o,JSON.parse(k),m,u==="path"),[o,k,m,u])}function _p(o,c){return Pp(o,c)}function Pp(o,c,u,f){or()||Me(!1);let{navigator:p}=y.useContext(pn),{matches:m}=y.useContext(Vt),k=m[m.length-1],T=k?k.params:{};k&&k.pathname;let v=k?k.pathnameBase:"/";k&&k.route;let _=ar(),z;if(c){var N;let P=typeof c=="string"?ir(c):c;v==="/"||(N=P.pathname)!=null&&N.startsWith(v)||Me(!1),z=P}else z=_;let M=z.pathname||"/",G=M;if(v!=="/"){let P=v.replace(/^\//,"").split("/");G="/"+M.replace(/^\//,"").split("/").slice(P.length).join("/")}let F=Zf(o,{pathname:G}),C=Dp(F&&F.map(P=>Object.assign({},P,{params:Object.assign({},T,P.params),pathname:fn([v,p.encodeLocation?p.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?v:fn([v,p.encodeLocation?p.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),m,u,f);return c&&C?y.createElement(ds.Provider,{value:{location:qr({pathname:"/",search:"",hash:"",state:null,key:"default"},z),navigationType:dn.Pop}},C):C}function Tp(){let o=Fp(),c=Sp(o)?o.status+" "+o.statusText:o instanceof Error?o.message:JSON.stringify(o),u=o instanceof Error?o.stack:null,p={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},c),u?y.createElement("pre",{style:p},u):null,null)}const zp=y.createElement(Tp,null);class Rp extends y.Component{constructor(c){super(c),this.state={location:c.location,revalidation:c.revalidation,error:c.error}}static getDerivedStateFromError(c){return{error:c}}static getDerivedStateFromProps(c,u){return u.location!==c.location||u.revalidation!=="idle"&&c.revalidation==="idle"?{error:c.error,location:c.location,revalidation:c.revalidation}:{error:c.error!==void 0?c.error:u.error,location:u.location,revalidation:c.revalidation||u.revalidation}}componentDidCatch(c,u){console.error("React Router caught the following error during render",c,u)}render(){return this.state.error!==void 0?y.createElement(Vt.Provider,{value:this.props.routeContext},y.createElement(zc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lp(o){let{routeContext:c,match:u,children:f}=o,p=y.useContext(vo);return p&&p.static&&p.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(p.staticContext._deepestRenderedBoundaryId=u.route.id),y.createElement(Vt.Provider,{value:c},f)}function Dp(o,c,u,f){var p;if(c===void 0&&(c=[]),u===void 0&&(u=null),f===void 0&&(f=null),o==null){var m;if(!u)return null;if(u.errors)o=u.matches;else if((m=f)!=null&&m.v7_partialHydration&&c.length===0&&!u.initialized&&u.matches.length>0)o=u.matches;else return null}let k=o,T=(p=u)==null?void 0:p.errors;if(T!=null){let z=k.findIndex(N=>N.route.id&&(T==null?void 0:T[N.route.id])!==void 0);z>=0||Me(!1),k=k.slice(0,Math.min(k.length,z+1))}let v=!1,_=-1;if(u&&f&&f.v7_partialHydration)for(let z=0;z<k.length;z++){let N=k[z];if((N.route.HydrateFallback||N.route.hydrateFallbackElement)&&(_=z),N.route.id){let{loaderData:M,errors:G}=u,F=N.route.loader&&M[N.route.id]===void 0&&(!G||G[N.route.id]===void 0);if(N.route.lazy||F){v=!0,_>=0?k=k.slice(0,_+1):k=[k[0]];break}}}return k.reduceRight((z,N,M)=>{let G,F=!1,C=null,P=null;u&&(G=T&&N.route.id?T[N.route.id]:void 0,C=N.route.errorElement||zp,v&&(_<0&&M===0?(Up("route-fallback"),F=!0,P=null):_===M&&(F=!0,P=N.route.hydrateFallbackElement||null)));let R=c.concat(k.slice(0,M+1)),K=()=>{let H;return G?H=C:F?H=P:N.route.Component?H=y.createElement(N.route.Component,null):N.route.element?H=N.route.element:H=z,y.createElement(Lp,{match:N,routeContext:{outlet:z,matches:R,isDataRoute:u!=null},children:H})};return u&&(N.route.ErrorBoundary||N.route.errorElement||M===0)?y.createElement(Rp,{location:u.location,revalidation:u.revalidation,component:C,error:G,children:K(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):K()},null)}var Ic=(function(o){return o.UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o})(Ic||{}),Oc=(function(o){return o.UseBlocker="useBlocker",o.UseLoaderData="useLoaderData",o.UseActionData="useActionData",o.UseRouteError="useRouteError",o.UseNavigation="useNavigation",o.UseRouteLoaderData="useRouteLoaderData",o.UseMatches="useMatches",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o.UseRouteId="useRouteId",o})(Oc||{});function Ip(o){let c=y.useContext(vo);return c||Me(!1),c}function Op(o){let c=y.useContext(kp);return c||Me(!1),c}function Mp(o){let c=y.useContext(Vt);return c||Me(!1),c}function Mc(o){let c=Mp(),u=c.matches[c.matches.length-1];return u.route.id||Me(!1),u.route.id}function Fp(){var o;let c=y.useContext(zc),u=Op(),f=Mc();return c!==void 0?c:(o=u.errors)==null?void 0:o[f]}function Bp(){let{router:o}=Ip(Ic.UseNavigateStable),c=Mc(Oc.UseNavigateStable),u=y.useRef(!1);return Rc(()=>{u.current=!0}),y.useCallback(function(p,m){m===void 0&&(m={}),u.current&&(typeof p=="number"?o.navigate(p):o.navigate(p,qr({fromRouteId:c},m)))},[o,c])}const yc={};function Up(o,c,u){yc[o]||(yc[o]=!0)}function Ap(o,c){o==null||o.v7_startTransition,o==null||o.v7_relativeSplatPath}function $p(o){let{to:c,replace:u,state:f,relative:p}=o;or()||Me(!1);let{future:m,static:k}=y.useContext(pn),{matches:T}=y.useContext(Vt),{pathname:v}=ar(),_=Lc(),z=yo(c,go(T,m.v7_relativeSplatPath),v,p==="path"),N=JSON.stringify(z);return y.useEffect(()=>_(JSON.parse(N),{replace:u,state:f,relative:p}),[_,N,p,u,f]),null}function Wp(o){return Np(o.context)}function dt(o){Me(!1)}function Vp(o){let{basename:c="/",children:u=null,location:f,navigationType:p=dn.Pop,navigator:m,static:k=!1,future:T}=o;or()&&Me(!1);let v=c.replace(/^\/*/,"/"),_=y.useMemo(()=>({basename:v,navigator:m,static:k,future:qr({v7_relativeSplatPath:!1},T)}),[v,T,m,k]);typeof f=="string"&&(f=ir(f));let{pathname:z="/",search:N="",hash:M="",state:G=null,key:F="default"}=f,C=y.useMemo(()=>{let P=mo(z,v);return P==null?null:{location:{pathname:P,search:N,hash:M,state:G,key:F},navigationType:p}},[v,z,N,M,G,F,p]);return C==null?null:y.createElement(pn.Provider,{value:_},y.createElement(ds.Provider,{children:u,value:C}))}function Hp(o){let{children:c,location:u}=o;return _p(uo(c),u)}new Promise(()=>{});function uo(o,c){c===void 0&&(c=[]);let u=[];return y.Children.forEach(o,(f,p)=>{if(!y.isValidElement(f))return;let m=[...c,p];if(f.type===y.Fragment){u.push.apply(u,uo(f.props.children,m));return}f.type!==dt&&Me(!1),!f.props.index||!f.props.children||Me(!1);let k={id:f.props.id||m.join("-"),caseSensitive:f.props.caseSensitive,element:f.props.element,Component:f.props.Component,index:f.props.index,path:f.props.path,loader:f.props.loader,action:f.props.action,errorElement:f.props.errorElement,ErrorBoundary:f.props.ErrorBoundary,hasErrorBoundary:f.props.ErrorBoundary!=null||f.props.errorElement!=null,shouldRevalidate:f.props.shouldRevalidate,handle:f.props.handle,lazy:f.props.lazy};f.props.children&&(k.children=uo(f.props.children,m)),u.push(k)}),u}/**
|
|
59
|
+
* React Router DOM v6.30.3
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/function co(){return co=Object.assign?Object.assign.bind():function(o){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(o[f]=u[f])}return o},co.apply(this,arguments)}function Kp(o,c){if(o==null)return{};var u={},f=Object.keys(o),p,m;for(m=0;m<f.length;m++)p=f[m],!(c.indexOf(p)>=0)&&(u[p]=o[p]);return u}function Qp(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}function Yp(o,c){return o.button===0&&(!c||c==="_self")&&!Qp(o)}const Jp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Gp="6";try{window.__reactRouterVersion=Gp}catch{}const Xp="startTransition",vc=Vf[Xp];function qp(o){let{basename:c,children:u,future:f,window:p}=o,m=y.useRef();m.current==null&&(m.current=Gf({window:p,v5Compat:!0}));let k=m.current,[T,v]=y.useState({action:k.action,location:k.location}),{v7_startTransition:_}=f||{},z=y.useCallback(N=>{_&&vc?vc(()=>v(N)):v(N)},[v,_]);return y.useLayoutEffect(()=>k.listen(z),[k,z]),y.useEffect(()=>Ap(f),[f]),y.createElement(Vp,{basename:c,children:u,location:T.location,navigationType:T.action,navigator:k,future:f})}const Zp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dt=y.forwardRef(function(c,u){let{onClick:f,relative:p,reloadDocument:m,replace:k,state:T,target:v,to:_,preventScrollReset:z,viewTransition:N}=c,M=Kp(c,Jp),{basename:G}=y.useContext(pn),F,C=!1;if(typeof _=="string"&&bp.test(_)&&(F=_,Zp))try{let H=new URL(window.location.href),E=_.startsWith("//")?new URL(H.protocol+_):new URL(_),Q=mo(E.pathname,G);E.origin===H.origin&&Q!=null?_=Q+E.search+E.hash:C=!0}catch{}let P=jp(_,{relative:p}),R=eh(_,{replace:k,state:T,target:v,preventScrollReset:z,relative:p,viewTransition:N});function K(H){f&&f(H),H.defaultPrevented||R(H)}return y.createElement("a",co({},M,{href:F||P,onClick:C||m?f:K,ref:u,target:v}))});var xc;(function(o){o.UseScrollRestoration="useScrollRestoration",o.UseSubmit="useSubmit",o.UseSubmitFetcher="useSubmitFetcher",o.UseFetcher="useFetcher",o.useViewTransitionState="useViewTransitionState"})(xc||(xc={}));var Sc;(function(o){o.UseFetcher="useFetcher",o.UseFetchers="useFetchers",o.UseScrollRestoration="useScrollRestoration"})(Sc||(Sc={}));function eh(o,c){let{target:u,replace:f,state:p,preventScrollReset:m,relative:k,viewTransition:T}=c===void 0?{}:c,v=Lc(),_=ar(),z=Dc(o,{relative:k});return y.useCallback(N=>{if(Yp(N,u)){N.preventDefault();let M=f!==void 0?f:cs(_)===cs(z);v(o,{replace:M,state:p,preventScrollReset:m,relative:k,viewTransition:T})}},[_,v,z,f,p,u,o,m,k,T])}const Fc="/api";async function me(o,c){const u={"Content-Type":"application/json",...c==null?void 0:c.headers},f=await fetch(`${Fc}${o}`,{...c,headers:u,credentials:"include"});if(!f.ok){const p=await f.json().catch(()=>({error:f.statusText}));throw new Error(p.error||`HTTP ${f.status}`)}return f.json()}async function th(){var o;try{const u=await(await fetch("/auth/check",{credentials:"include"})).json();return u.success&&((o=u.data)==null?void 0:o.authenticated)}catch{return!1}}async function nh(o){try{return(await fetch("/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:o}),credentials:"include"})).ok}catch{return!1}}async function rh(){await fetch("/auth/logout",{method:"POST",credentials:"include"}).catch(()=>{})}const se={async getStatus(){return me("/status")},async getTools(){return me("/tools")},async getMemoryStats(){return me("/memory/stats")},async searchKnowledge(o,c=10){return me(`/memory/search?q=${encodeURIComponent(o)}&limit=${c}`)},async getSoulFile(o){return me(`/soul/${o}`)},async updateSoulFile(o,c){return me(`/soul/${o}`,{method:"PUT",body:JSON.stringify({content:c})})},async getPlugins(){return me("/plugins")},async getToolRag(){return me("/tools/rag")},async updateToolRag(o){return me("/tools/rag",{method:"PUT",body:JSON.stringify(o)})},async getMcpServers(){return me("/mcp")},async addMcpServer(o){return me("/mcp",{method:"POST",body:JSON.stringify(o)})},async removeMcpServer(o){return me(`/mcp/${encodeURIComponent(o)}`,{method:"DELETE"})},async updateToolConfig(o,c){return me(`/tools/${o}`,{method:"PUT",body:JSON.stringify(c)})},async workspaceList(o="",c=!1){const u=new URLSearchParams;o&&u.set("path",o),c&&u.set("recursive","true");const f=u.toString();return me(`/workspace${f?`?${f}`:""}`)},async workspaceRead(o){return me(`/workspace/read?path=${encodeURIComponent(o)}`)},async workspaceWrite(o,c){return me("/workspace/write",{method:"POST",body:JSON.stringify({path:o,content:c})})},async workspaceMkdir(o){return me("/workspace/mkdir",{method:"POST",body:JSON.stringify({path:o})})},async workspaceDelete(o,c=!1){return me("/workspace",{method:"DELETE",body:JSON.stringify({path:o,recursive:c})})},async workspaceRename(o,c){return me("/workspace/rename",{method:"POST",body:JSON.stringify({from:o,to:c})})},async workspaceInfo(){return me("/workspace/info")},async tasksList(o){const c=o?`?status=${o}`:"";return me(`/tasks${c}`)},async tasksGet(o){return me(`/tasks/${o}`)},async tasksDelete(o){return me(`/tasks/${o}`,{method:"DELETE"})},async tasksCancel(o){return me(`/tasks/${o}/cancel`,{method:"POST"})},async tasksCleanDone(){return me("/tasks/clean-done",{method:"POST"})},async getConfigKeys(){return me("/config")},async setConfigKey(o,c){return me(`/config/${o}`,{method:"PUT",body:JSON.stringify({value:c})})},async unsetConfigKey(o){return me(`/config/${o}`,{method:"DELETE"})},async getMarketplace(o=!1){return me(`/marketplace${o?"?refresh=true":""}`)},async installPlugin(o){return me("/marketplace/install",{method:"POST",body:JSON.stringify({id:o})})},async uninstallPlugin(o){return me("/marketplace/uninstall",{method:"POST",body:JSON.stringify({id:o})})},async updatePlugin(o){return me("/marketplace/update",{method:"POST",body:JSON.stringify({id:o})})},async getPluginSecrets(o){return me(`/marketplace/secrets/${encodeURIComponent(o)}`)},async setPluginSecret(o,c,u){return me(`/marketplace/secrets/${encodeURIComponent(o)}/${encodeURIComponent(c)}`,{method:"PUT",body:JSON.stringify({value:u})})},async unsetPluginSecret(o,c){return me(`/marketplace/secrets/${encodeURIComponent(o)}/${encodeURIComponent(c)}`,{method:"DELETE"})},connectLogs(o,c){const u=`${Fc}/logs/stream`,f=new EventSource(u);return f.addEventListener("log",p=>{try{const m=JSON.parse(p.data);o(m)}catch(m){console.error("Failed to parse log entry:",m)}}),f.onerror=p=>{c==null||c(p)},()=>f.close()}};function lh(){const o=ar(),c=f=>o.pathname===f,u=async()=>{await rh(),window.location.href="/"};return s.jsxs("div",{className:"container",children:[s.jsxs("aside",{className:"sidebar",children:[s.jsx("div",{className:"sidebar-brand",children:s.jsx("img",{src:"/logo_dark.png",alt:"Teleton",style:{height:"64px"}})}),s.jsxs("nav",{children:[s.jsx(Dt,{to:"/",className:c("/")?"active":"",children:"Dashboard"}),s.jsx(Dt,{to:"/tools",className:c("/tools")?"active":"",children:"Tools"}),s.jsx(Dt,{to:"/plugins",className:c("/plugins")?"active":"",children:"Plugins"}),s.jsx(Dt,{to:"/soul",className:c("/soul")?"active":"",children:"Soul"}),s.jsx(Dt,{to:"/memory",className:c("/memory")?"active":"",children:"Memory"}),s.jsx(Dt,{to:"/logs",className:c("/logs")?"active":"",children:"Logs"}),s.jsx(Dt,{to:"/workspace",className:c("/workspace")?"active":"",children:"Workspace"}),s.jsx(Dt,{to:"/tasks",className:c("/tasks")?"active":"",children:"Tasks"}),s.jsx(Dt,{to:"/mcp",className:c("/mcp")?"active":"",children:"MCP"}),s.jsx(Dt,{to:"/config",className:c("/config")?"active":"",children:"Config"})]}),s.jsx("div",{style:{marginTop:"auto",padding:"14px"},children:s.jsx("button",{onClick:u,style:{width:"100%",opacity:.7,fontSize:"13px"},children:"Logout"})})]}),s.jsx("main",{className:"main",children:s.jsx(Wp,{})})]})}class sh extends y.Component{constructor(){super(...arguments);Lt(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(u){return{hasError:!0,error:u.message}}render(){return this.state.hasError?s.jsxs("div",{className:"card",style:{textAlign:"center",padding:"40px 20px"},children:[s.jsx("h2",{style:{color:"var(--red)",marginBottom:"8px"},children:"Something went wrong"}),s.jsx("p",{style:{color:"var(--text-secondary)",marginBottom:"16px"},children:this.state.error}),s.jsx("button",{onClick:()=>this.setState({hasError:!1,error:null}),children:"Try Again"})]}):this.props.children}}function It({value:o,options:c,labels:u,onChange:f,style:p}){const[m,k]=y.useState(!1),[T,v]=y.useState(-1),_=y.useRef(null),z=y.useRef(null),N=y.useRef(Math.random().toString(36).slice(2));y.useEffect(()=>{if(!m)return;const F=C=>{_.current&&!_.current.contains(C.target)&&k(!1)};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[m]),y.useEffect(()=>{if(m){const F=c.indexOf(o);v(F>=0?F:0)}},[m,c,o]),y.useEffect(()=>{if(!m||T<0||!z.current)return;const F=z.current.children[T];F==null||F.scrollIntoView({block:"nearest"})},[m,T]);const M=y.useCallback(F=>{if(!m){(F.key==="Enter"||F.key===" "||F.key==="ArrowDown")&&(F.preventDefault(),k(!0));return}switch(F.key){case"ArrowDown":F.preventDefault(),v(C=>(C+1)%c.length);break;case"ArrowUp":F.preventDefault(),v(C=>(C-1+c.length)%c.length);break;case"Enter":case" ":F.preventDefault(),T>=0&&T<c.length&&(f(c[T]),k(!1));break;case"Escape":F.preventDefault(),k(!1);break;case"Home":F.preventDefault(),v(0);break;case"End":F.preventDefault(),v(c.length-1);break}},[m,T,c,f]),G=`select-menu-${N.current}`;return s.jsxs("div",{ref:_,className:"custom-select",style:p,children:[s.jsxs("button",{type:"button",className:"custom-select-trigger",onClick:()=>k(!m),onKeyDown:M,"aria-haspopup":"listbox","aria-expanded":m,"aria-controls":m?G:void 0,children:[s.jsx("span",{children:u?u[c.indexOf(o)]??o:o}),s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:s.jsx("path",{d:"M6 9l6 6 6-6"})})]}),m&&s.jsx("div",{ref:z,id:G,className:"custom-select-menu",role:"listbox","aria-activedescendant":T>=0?`${G}-opt-${T}`:void 0,children:c.map((F,C)=>s.jsx("div",{id:`${G}-opt-${C}`,role:"option","aria-selected":F===o,className:`custom-select-option${F===o?" active":""}${C===T?" focused":""}`,onClick:()=>{f(F),k(!1)},onMouseEnter:()=>v(C),children:u?u[C]??F:F},F))})]})}function ih(){const[o,c]=y.useState(null),[u,f]=y.useState(null),[p,m]=y.useState(null),[k,T]=y.useState(!0),[v,_]=y.useState(null),[z,N]=y.useState(null),[M,G]=y.useState({}),F=y.useCallback(()=>{Promise.all([se.getStatus(),se.getMemoryStats(),se.getConfigKeys(),se.getToolRag()]).then(([E,Q,X,de])=>{c(E.data),f(Q.data),m(de.data);const ve={};for(const he of X.data)he.value!=null&&(ve[he.key]=he.value);G(ve),T(!1)}).catch(E=>{_(E.message),T(!1)})},[]);y.useEffect(()=>{F()},[F]);const C=E=>M[E]??"",P=(E,Q)=>{G(X=>({...X,[E]:Q}))},R=async(E,Q)=>{if(Q.trim())try{_(null),await se.setConfigKey(E,Q.trim()),await F(),H(`Saved ${E.split(".").pop()}`)}catch(X){_(X instanceof Error?X.message:String(X))}},K=async E=>{try{const Q=await se.updateToolRag(E);m(Q.data),H("Tool RAG updated")}catch(Q){_(Q instanceof Error?Q.message:String(Q))}},H=E=>{N(E),setTimeout(()=>N(null),2e3)};return k?s.jsx("div",{className:"loading",children:"Loading..."}):!o||!u?s.jsx("div",{className:"alert error",children:"Failed to load dashboard data"}):s.jsxs("div",{children:[s.jsxs("div",{className:"header",children:[s.jsx("h1",{children:"Dashboard"}),s.jsx("p",{children:"System status and settings"})]}),v&&s.jsxs("div",{className:"alert error",style:{marginBottom:"14px"},children:[v,s.jsx("button",{onClick:()=>_(null),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},children:"Dismiss"})]}),z&&s.jsx("div",{className:"alert success",style:{marginBottom:"16px"},children:z}),s.jsxs("div",{className:"stats",children:[s.jsxs("div",{className:"stat-card",children:[s.jsx("h3",{children:"Uptime"}),s.jsxs("div",{className:"value",children:[Math.floor(o.uptime/60),"m"]})]}),s.jsxs("div",{className:"stat-card",children:[s.jsx("h3",{children:"Model"}),s.jsx("div",{className:"value",style:{fontSize:"14px"},children:o.model})]}),s.jsxs("div",{className:"stat-card",children:[s.jsx("h3",{children:"Sessions"}),s.jsx("div",{className:"value",children:o.sessionCount})]}),s.jsxs("div",{className:"stat-card",children:[s.jsx("h3",{children:"Tools"}),s.jsx("div",{className:"value",children:o.toolCount})]})]}),s.jsxs("div",{className:"card",children:[s.jsx("div",{className:"section-title",children:"Memory"}),s.jsxs("div",{className:"stats",style:{marginBottom:0},children:[s.jsxs("div",{className:"stat-card",children:[s.jsx("h3",{children:"Knowledge"}),s.jsx("div",{className:"value",children:u.knowledge})]}),s.jsxs("div",{className:"stat-card",children:[s.jsx("h3",{children:"Messages"}),s.jsx("div",{className:"value",children:u.messages})]}),s.jsxs("div",{className:"stat-card",children:[s.jsx("h3",{children:"Chats"}),s.jsx("div",{className:"value",children:u.chats})]})]})]}),s.jsxs("div",{className:"card",children:[s.jsx("div",{className:"section-title",children:"Agent"}),s.jsxs("div",{style:{display:"grid",gap:"16px"},children:[s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Provider"}),s.jsx(It,{value:C("agent.provider"),options:["anthropic","openai","google","xai","groq","openrouter"],onChange:E=>R("agent.provider",E)})]}),s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Model"}),s.jsx("input",{type:"text",value:C("agent.model"),onChange:E=>P("agent.model",E.target.value),onBlur:E=>R("agent.model",E.target.value),onKeyDown:E=>E.key==="Enter"&&R("agent.model",E.currentTarget.value),style:{width:"100%"}})]}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"16px"},children:[s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Temperature (0-2)"}),s.jsx("input",{type:"number",min:"0",max:"2",step:"0.1",value:C("agent.temperature"),onChange:E=>P("agent.temperature",E.target.value),onBlur:E=>R("agent.temperature",E.target.value),onKeyDown:E=>E.key==="Enter"&&R("agent.temperature",E.currentTarget.value)})]}),s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Max Tokens"}),s.jsx("input",{type:"number",min:"1",value:C("agent.max_tokens"),onChange:E=>P("agent.max_tokens",E.target.value),onBlur:E=>R("agent.max_tokens",E.target.value),onKeyDown:E=>E.key==="Enter"&&R("agent.max_tokens",E.currentTarget.value)})]}),s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Max Iterations (1-20)"}),s.jsx("input",{type:"number",min:"1",max:"20",value:C("agent.max_agentic_iterations"),onChange:E=>P("agent.max_agentic_iterations",E.target.value),onBlur:E=>R("agent.max_agentic_iterations",E.target.value),onKeyDown:E=>E.key==="Enter"&&R("agent.max_agentic_iterations",E.currentTarget.value)})]})]})]})]}),p&&s.jsxs("div",{className:"card",children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"12px"},children:[s.jsxs("div",{children:[s.jsx("div",{className:"section-title",style:{marginBottom:"4px"},children:"Tool RAG"}),s.jsx("p",{style:{fontSize:"13px",color:"var(--text-secondary)",margin:0},children:"Semantic tool selection — sends only the most relevant tools to the LLM per message."})]}),s.jsxs("label",{className:"toggle",children:[s.jsx("input",{type:"checkbox",checked:p.enabled,onChange:()=>K({enabled:!p.enabled})}),s.jsx("span",{className:"toggle-track"}),s.jsx("span",{className:"toggle-thumb"})]})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px",fontSize:"13px",color:"var(--text-secondary)"},children:[s.jsxs("span",{children:["Indexed: ",p.indexed?"Yes":"No"]}),s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"6px"},children:["Top-K:",s.jsx(It,{value:String(p.topK),options:["10","15","20","25","30","40","50"],onChange:E=>K({topK:Number(E)}),style:{display:"inline-block",minWidth:"70px"}})]}),s.jsxs("span",{children:["Total: ",p.totalTools]})]})]}),s.jsxs("div",{className:"card",children:[s.jsx("div",{className:"section-title",children:"Telegram"}),s.jsxs("div",{style:{display:"grid",gap:"16px"},children:[s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"DM Policy"}),s.jsx(It,{value:C("telegram.dm_policy"),options:["open","pairing","admin"],onChange:E=>R("telegram.dm_policy",E)})]}),s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Group Policy"}),s.jsx(It,{value:C("telegram.group_policy"),options:["open","admin","disabled"],onChange:E=>R("telegram.group_policy",E)})]})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx("label",{style:{fontSize:"13px",color:"var(--text-secondary)",cursor:"pointer"},htmlFor:"require-mention",children:"Require Mention"}),s.jsxs("label",{className:"toggle",children:[s.jsx("input",{id:"require-mention",type:"checkbox",checked:C("telegram.require_mention")==="true",onChange:E=>R("telegram.require_mention",String(E.target.checked))}),s.jsx("span",{className:"toggle-track"}),s.jsx("span",{className:"toggle-thumb"})]})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx("label",{style:{fontSize:"13px",color:"var(--text-secondary)",cursor:"pointer"},htmlFor:"typing-sim",children:"Typing Simulation"}),s.jsxs("label",{className:"toggle",children:[s.jsx("input",{id:"typing-sim",type:"checkbox",checked:C("telegram.typing_simulation")==="true",onChange:E=>R("telegram.typing_simulation",String(E.target.checked))}),s.jsx("span",{className:"toggle-track"}),s.jsx("span",{className:"toggle-thumb"})]})]}),s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Debounce (ms)"}),s.jsx("input",{type:"number",min:"0",value:C("telegram.debounce_ms"),onChange:E=>P("telegram.debounce_ms",E.target.value),onBlur:E=>R("telegram.debounce_ms",E.target.value),onKeyDown:E=>E.key==="Enter"&&R("telegram.debounce_ms",E.currentTarget.value),style:{width:"100%"}})]})]})]}),s.jsxs("div",{className:"card",children:[s.jsx("div",{className:"section-title",children:"Session"}),s.jsxs("div",{style:{display:"grid",gap:"16px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx("label",{style:{fontSize:"13px",color:"var(--text-secondary)",cursor:"pointer"},htmlFor:"daily-reset",children:"Daily Reset"}),s.jsxs("label",{className:"toggle",children:[s.jsx("input",{id:"daily-reset",type:"checkbox",checked:C("agent.session_reset_policy.daily_reset_enabled")==="true",onChange:E=>R("agent.session_reset_policy.daily_reset_enabled",String(E.target.checked))}),s.jsx("span",{className:"toggle-track"}),s.jsx("span",{className:"toggle-thumb"})]})]}),s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Reset Hour (0-23)"}),s.jsx(It,{value:C("agent.session_reset_policy.daily_reset_hour"),options:Array.from({length:24},(E,Q)=>String(Q)),onChange:E=>R("agent.session_reset_policy.daily_reset_hour",E)})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx("label",{style:{fontSize:"13px",color:"var(--text-secondary)",cursor:"pointer"},htmlFor:"idle-expiry",children:"Idle Expiry"}),s.jsxs("label",{className:"toggle",children:[s.jsx("input",{id:"idle-expiry",type:"checkbox",checked:C("agent.session_reset_policy.idle_expiry_enabled")==="true",onChange:E=>R("agent.session_reset_policy.idle_expiry_enabled",String(E.target.checked))}),s.jsx("span",{className:"toggle-track"}),s.jsx("span",{className:"toggle-thumb"})]})]}),s.jsxs("div",{className:"form-group",style:{marginBottom:0},children:[s.jsx("label",{children:"Idle Minutes"}),s.jsx("input",{type:"number",min:"1",value:C("agent.session_reset_policy.idle_expiry_minutes"),onChange:E=>P("agent.session_reset_policy.idle_expiry_minutes",E.target.value),onBlur:E=>R("agent.session_reset_policy.idle_expiry_minutes",E.target.value),onKeyDown:E=>E.key==="Enter"&&R("agent.session_reset_policy.idle_expiry_minutes",E.currentTarget.value),style:{width:"100%"}})]})]})]})]})}function Bc({tool:o,updating:c,onToggle:u,onScope:f}){return s.jsxs("div",{className:"tool-row",style:{opacity:o.enabled?1:.5,display:"grid",gridTemplateColumns:"1fr auto auto",gap:"10px",alignItems:"center"},children:[s.jsxs("div",{style:{minWidth:0},children:[s.jsx("div",{className:"tool-name",children:o.name}),s.jsx("div",{className:"tool-desc",children:o.description})]}),s.jsx("div",{className:`scope-seg${!o.enabled||c===o.name?" disabled":""}`,children:["always","dm-only","group-only","admin-only"].map(p=>s.jsx("button",{className:o.scope===p?"active":"",disabled:!o.enabled||c===o.name,onClick:()=>f(o.name,p),children:p==="always"?"All":p==="dm-only"?"DM":p==="group-only"?"Group":"Admin"},p))}),s.jsxs("label",{className:"toggle",children:[s.jsx("input",{type:"checkbox",checked:o.enabled,onChange:()=>u(o.name,o.enabled),disabled:c===o.name}),s.jsx("span",{className:"toggle-track"}),s.jsx("span",{className:"toggle-thumb"})]})]})}function oh(){const[o,c]=y.useState([]),[u,f]=y.useState(!0),[p,m]=y.useState(null),[k,T]=y.useState(null),[v,_]=y.useState(null),z=()=>(f(!0),se.getTools().then(R=>{c(R.data),f(!1)}).catch(R=>{m(R instanceof Error?R.message:String(R)),f(!1)}));y.useEffect(()=>{z()},[]);const N=async(R,K)=>{T(R);try{await se.updateToolConfig(R,{enabled:!K}),await z()}catch(H){m(H instanceof Error?H.message:String(H))}finally{T(null)}},M=async(R,K)=>{T(R);try{await se.updateToolConfig(R,{scope:K}),await z()}catch(H){m(H instanceof Error?H.message:String(H))}finally{T(null)}},G=async(R,K)=>{T(R.name);try{for(const H of R.tools)H.enabled!==K&&await se.updateToolConfig(H.name,{enabled:K});await z()}catch(H){m(H instanceof Error?H.message:String(H))}finally{T(null)}},F=async(R,K)=>{T(R.name);try{for(const H of R.tools)H.scope!==K&&await se.updateToolConfig(H.name,{scope:K});await z()}catch(H){m(H instanceof Error?H.message:String(H))}finally{T(null)}};if(u)return s.jsx("div",{className:"loading",children:"Loading..."});const C=o.filter(R=>!R.isPlugin),P=C.reduce((R,K)=>R+K.toolCount,0);return s.jsxs("div",{children:[s.jsxs("div",{className:"header",children:[s.jsx("h1",{children:"Tools"}),s.jsxs("p",{children:[P," built-in tools across ",C.length," modules"]})]}),p&&s.jsxs("div",{className:"alert error",style:{marginBottom:"14px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx("span",{children:p}),s.jsxs("div",{style:{display:"flex",gap:"6px"},children:[s.jsx("button",{className:"btn-ghost btn-sm",onClick:()=>m(null),children:"Dismiss"}),s.jsx("button",{className:"btn-sm",onClick:()=>{m(null),z()},children:"Retry"})]})]}),C.map(R=>{const K=v===R.name,H=R.tools.some(he=>he.enabled),E=R.tools.every(he=>!he.enabled),Q=new Set(R.tools.map(he=>he.scope)),X=Q.size>1,de=X?"":Q.values().next().value??"always",ve=k===R.name;return s.jsxs("div",{className:"card",style:{padding:0},children:[s.jsxs("div",{onClick:()=>_(K?null:R.name),className:"accordion-header",children:[s.jsx("span",{className:"accordion-chevron",children:K?"▼":"▶"}),s.jsx("div",{style:{flex:1,minWidth:0},children:s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsx("h2",{style:{margin:0},children:R.name}),s.jsxs("span",{className:"badge count",children:[R.toolCount," tools"]}),E&&s.jsx("span",{className:"badge warn",children:"Disabled"})]})}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},onClick:he=>he.stopPropagation(),children:[s.jsx(It,{value:de,options:["","always","dm-only","group-only","admin-only"],labels:[X?"Mixed":"Scope","All","DM only","Group only","Admin only"],onChange:he=>he&&F(R,he),style:{minWidth:"110px"}}),s.jsxs("label",{className:"toggle",children:[s.jsx("input",{type:"checkbox",checked:H,onChange:()=>G(R,!H),disabled:ve}),s.jsx("span",{className:"toggle-track"}),s.jsx("span",{className:"toggle-thumb"})]})]})]}),K&&s.jsx("div",{style:{borderTop:"1px solid var(--separator)",padding:"10px 16px 16px"},children:s.jsx("div",{style:{display:"grid",gap:"6px"},children:R.tools.map(he=>s.jsx(Bc,{tool:he,updating:k,onToggle:N,onScope:M},he.name))})})]},R.name)})]})}function ah(){const[o,c]=y.useState("installed"),[u,f]=y.useState([]),[p,m]=y.useState([]),[k,T]=y.useState(!0),[v,_]=y.useState(null),[z,N]=y.useState(null),[M,G]=y.useState([]),[F,C]=y.useState(!1),[P,R]=y.useState(null),[K,H]=y.useState(""),[E,Q]=y.useState(""),[X,de]=y.useState(null),[ve,he]=y.useState({}),[Ve,qe]=y.useState(!1),[He,Y]=y.useState(null),[ie,U]=y.useState(null),[oe,ae]=y.useState(null),[A,ne]=y.useState(null),[q,x]=y.useState(""),L=()=>(T(!0),Promise.all([se.getPlugins(),se.getTools()]).then(([W,V])=>{f(W.data),m(V.data.filter($=>$.isPlugin)),T(!1)}).catch(W=>{_(W.message),T(!1)})),ce=(W=!1)=>(C(!0),se.getMarketplace(W).then(V=>{G(V.data),C(!1)}).catch(V=>{_(V.message),C(!1)}));y.useEffect(()=>{L(),ce()},[]);const fe=async(W,V)=>{N(W);try{await se.updateToolConfig(W,{enabled:!V}),await L()}catch($){_($ instanceof Error?$.message:String($))}finally{N(null)}},ge=async(W,V)=>{N(W);try{await se.updateToolConfig(W,{scope:V}),await L()}catch($){_($ instanceof Error?$.message:String($))}finally{N(null)}},ye=async(W,V)=>{N(W.name);try{for(const $ of W.tools)$.enabled!==V&&await se.updateToolConfig($.name,{enabled:V});await L()}catch($){_($ instanceof Error?$.message:String($))}finally{N(null)}},Ce=async(W,V)=>{N(W.name);try{for(const $ of W.tools)$.scope!==V&&await se.updateToolConfig($.name,{scope:V});await L()}catch($){_($ instanceof Error?$.message:String($))}finally{N(null)}},we=async W=>{const V=M.find($=>$.id===W);R(W);try{if(await se.installPlugin(W),await Promise.all([ce(),L()]),V!=null&&V.secrets&&Object.keys(V.secrets).length>0){try{const $=await se.getPluginSecrets(W),Te=Object.entries(V.secrets).filter(([,ft])=>ft.required).map(([ft])=>ft);if(Te.every(ft=>$.data.configured.includes(ft))&&Te.length>0)return}catch{}de({pluginId:W,pluginName:V.name,secrets:V.secrets}),he({})}}catch($){_($ instanceof Error?$.message:String($))}finally{R(null)}},Ee=async W=>{if(confirm(`Uninstall plugin "${W}"? This will remove its files.`)){R(W);try{await se.uninstallPlugin(W),await Promise.all([ce(),L()])}catch(V){_(V instanceof Error?V.message:String(V))}finally{R(null)}}},Ze=async W=>{R(W);try{await se.updatePlugin(W),await Promise.all([ce(),L()])}catch(V){_(V instanceof Error?V.message:String(V))}finally{R(null)}},Pn=async()=>{const W=M.filter(V=>V.status==="updatable");for(const V of W){R(V.id);try{await se.updatePlugin(V.id)}catch($){_($ instanceof Error?$.message:String($));break}}R(null),await Promise.all([ce(),L()])},Zr=async W=>{if(ie===W){U(null),ne(null);return}try{const V=await se.getPluginSecrets(W);ae(V.data),U(W),ne(null)}catch(V){_(V instanceof Error?V.message:String(V))}},Tn=async(W,V)=>{if(q.trim())try{await se.setPluginSecret(W,V,q.trim()),ne(null),x("");const $=await se.getPluginSecrets(W);ae($.data)}catch($){_($ instanceof Error?$.message:String($))}},ur=async(W,V)=>{try{await se.unsetPluginSecret(W,V);const $=await se.getPluginSecrets(W);ae($.data)}catch($){_($ instanceof Error?$.message:String($))}},cr=M.filter(W=>{if(K){const V=K.toLowerCase();if(!W.name.toLowerCase().includes(V)&&!W.description.toLowerCase().includes(V))return!1}return!(E&&!W.tags.includes(E))}),zn=Array.from(new Set(M.flatMap(W=>W.tags))).sort(),Ht=M.filter(W=>W.status==="updatable").length;return k?s.jsx("div",{className:"loading",children:"Loading..."}):s.jsxs("div",{children:[s.jsxs("div",{className:"header",children:[s.jsx("h1",{children:"Plugins"}),s.jsx("p",{children:"Manage installed plugins and browse the community marketplace"})]}),v&&s.jsxs("div",{className:"alert error",style:{marginBottom:"14px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx("span",{children:v}),s.jsxs("div",{style:{display:"flex",gap:"6px"},children:[s.jsx("button",{className:"btn-ghost btn-sm",onClick:()=>_(null),children:"Dismiss"}),s.jsx("button",{className:"btn-sm",onClick:()=>{_(null),L()},children:"Retry"})]})]}),s.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center",marginBottom:"16px",flexWrap:"wrap"},children:[s.jsxs("div",{className:"tabs",style:{marginBottom:0,flexShrink:0},children:[s.jsxs("button",{className:`tab ${o==="installed"?"active":""}`,onClick:()=>c("installed"),children:["Installed",s.jsx("span",{className:"tab-count",children:u.length})]}),s.jsxs("button",{className:`tab ${o==="marketplace"?"active":""}`,onClick:()=>c("marketplace"),children:["Marketplace",Ht>0&&s.jsx("span",{className:"tab-count",style:{background:"var(--orange-dim)",color:"var(--orange)"},children:Ht})]})]}),s.jsxs("div",{style:{position:"relative",flex:1,minWidth:"120px"},children:[s.jsx("input",{type:"text",placeholder:"Search plugins...",value:K,onChange:W=>H(W.target.value),style:{width:"100%",paddingLeft:"34px"}}),s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{position:"absolute",left:"12px",top:"50%",transform:"translateY(-50%)",color:"var(--text-tertiary)",pointerEvents:"none"},children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("path",{d:"M21 21l-4.35-4.35"})]})]}),zn.length>0&&s.jsx(It,{value:E,options:["",...zn],labels:["All tags",...zn],onChange:W=>Q(W),style:{minWidth:"140px"}}),o==="marketplace"&&s.jsxs(s.Fragment,{children:[Ht>0?s.jsx("button",{className:"btn-sm",onClick:Pn,disabled:!!P||F,style:{whiteSpace:"nowrap"},children:P?"Updating...":`Update All (${Ht})`}):M.length>0?s.jsx("span",{style:{fontSize:"12px",color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:"All up to date"}):null,s.jsx("button",{className:"btn-ghost",onClick:()=>ce(!0),disabled:F,style:{whiteSpace:"nowrap"},children:F?"Refreshing...":"Refresh"})]})]}),o==="installed"&&(()=>{const W=u.filter(V=>{if(K){const $=K.toLowerCase();if(!V.name.toLowerCase().includes($)&&!(V.description??"").toLowerCase().includes($))return!1}if(E){const $=M.find(Te=>Te.name===V.name);if(!$||!$.tags.includes(E))return!1}return!0});return s.jsx(s.Fragment,{children:u.length===0?s.jsxs("div",{className:"card",style:{textAlign:"center",padding:"40px 20px"},children:[s.jsx("p",{style:{color:"var(--text-secondary)",marginBottom:"12px"},children:"No plugins installed yet"}),s.jsx("button",{className:"btn-sm",onClick:()=>c("marketplace"),children:"Browse Marketplace"})]}):W.length===0?s.jsx("div",{className:"card",style:{textAlign:"center",padding:"20px",color:"var(--text-secondary)"},children:"No installed plugins match your search"}):W.map(V=>{const $=p.find(ke=>ke.name===V.name),Te=M.find(ke=>ke.name===V.name),Rn=(Te==null?void 0:Te.secrets)&&Object.keys(Te.secrets).length>0,ft=He===V.name,dr=$?$.tools.some(ke=>ke.enabled):!1,br=$?$.tools.every(ke=>!ke.enabled):!0,fr=$?new Set($.tools.map(ke=>ke.scope)):new Set,Ln=fr.size>1,Dn=Ln?"":fr.values().next().value??"always",el=z===V.name;return s.jsxs("div",{className:"card",style:{padding:0},children:[s.jsxs("div",{onClick:()=>Y(ft?null:V.name),className:"accordion-header",children:[s.jsx("span",{className:"accordion-chevron",children:ft?"▼":"▶"}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[s.jsx("h2",{style:{margin:0},children:V.name}),$&&s.jsxs("span",{className:"badge count",children:[$.toolCount," tools"]}),s.jsxs("span",{style:{fontSize:"12px",color:"var(--text-tertiary)"},children:["v",V.version]}),br&&$&&$.tools.length>0&&s.jsx("span",{className:"badge warn",children:"Disabled"})]}),V.description&&s.jsx("p",{style:{fontSize:"12px",color:"var(--text-secondary)",margin:"4px 0 0"},children:V.description})]}),$&&$.tools.length>0&&s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},onClick:ke=>ke.stopPropagation(),children:[s.jsx(It,{value:Dn,options:["","always","dm-only","group-only","admin-only"],labels:[Ln?"Mixed":"Scope","All","DM only","Group only","Admin only"],onChange:ke=>ke&&Ce($,ke),style:{minWidth:"110px"}}),s.jsxs("label",{className:"toggle",children:[s.jsx("input",{type:"checkbox",checked:dr,onChange:()=>ye($,!dr),disabled:el}),s.jsx("span",{className:"toggle-track"}),s.jsx("span",{className:"toggle-thumb"})]})]})]}),ft&&s.jsxs("div",{style:{borderTop:"1px solid var(--separator)",padding:"10px 16px 16px"},children:[$&&$.tools.length>0&&s.jsx("div",{style:{display:"grid",gap:"6px"},children:$.tools.map(ke=>s.jsx(Bc,{tool:ke,updating:z,onToggle:fe,onScope:ge},ke.name))}),Rn&&Te&&s.jsxs("div",{style:{marginTop:"10px",borderTop:"1px solid var(--separator)",paddingTop:"10px"},children:[s.jsx("button",{className:"btn-ghost btn-sm",onClick:()=>Zr(Te.id),children:ie===Te.id?"Hide Secrets":"Manage Secrets"}),ie===Te.id&&oe&&s.jsx("div",{style:{marginTop:"8px",display:"grid",gap:"6px"},children:Object.entries(oe.declared).map(([ke,Nt])=>{const In=oe.configured.includes(ke);return s.jsxs("div",{className:"tool-row",style:{padding:"8px 12px",flexWrap:"wrap"},children:[s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsx("span",{style:{fontWeight:600,fontSize:"13px"},children:ke}),Nt.required&&s.jsx("span",{style:{color:"var(--orange)",marginLeft:"4px",fontSize:"11px"},children:"required"}),s.jsx("span",{className:`badge ${In?"always":"warn"}`,style:{marginLeft:"8px",fontSize:"10px"},children:In?"Set":"Not set"}),s.jsx("p",{style:{fontSize:"12px",color:"var(--text-tertiary)",margin:"2px 0 0 0"},children:Nt.description}),Nt.env&&s.jsxs("code",{style:{fontSize:"11px",color:"var(--text-tertiary)",opacity:.7},children:["Env: ",Nt.env]})]}),s.jsx("div",{style:{display:"flex",gap:"4px",alignItems:"center"},children:A===ke?s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"password",value:q,onChange:tl=>x(tl.target.value),placeholder:"Enter value...",style:{width:"200px"}}),s.jsx("button",{className:"btn-sm",onClick:()=>Tn(Te.id,ke),children:"Save"}),s.jsx("button",{className:"btn-ghost btn-sm",onClick:()=>ne(null),children:"Cancel"})]}):s.jsxs(s.Fragment,{children:[s.jsx("button",{className:"btn-ghost btn-sm",onClick:()=>{ne(ke),x("")},children:In?"Change":"Set"}),In&&s.jsx("button",{className:"btn-danger btn-sm",onClick:()=>ur(Te.id,ke),children:"Remove"})]})})]},ke)})})]})]})]},V.name)})})})(),X&&s.jsx("div",{className:"modal-overlay",onClick:()=>!Ve&&de(null),children:s.jsxs("div",{className:"modal",onClick:W=>W.stopPropagation(),children:[s.jsxs("h2",{style:{marginBottom:"4px"},children:["Configure ",X.pluginName]}),s.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"13px",marginBottom:"16px"},children:"This plugin needs API keys to work. You can configure them now or later."}),Object.entries(X.secrets).map(([W,V])=>s.jsxs("div",{style:{marginBottom:"12px"},children:[s.jsxs("label",{style:{display:"block",fontSize:"13px",fontWeight:600,marginBottom:"4px"},children:[W," ",V.required&&s.jsx("span",{style:{color:"var(--orange)"},children:"*"})]}),s.jsx("p",{style:{fontSize:"12px",color:"var(--text-tertiary)",margin:"0 0 4px 0"},children:V.description}),V.env&&s.jsxs("code",{style:{display:"block",fontSize:"11px",color:"var(--text-tertiary)",opacity:.7,marginBottom:"6px"},children:["Env: ",V.env]}),s.jsx("input",{type:"password",placeholder:`Enter ${W}...`,value:ve[W]||"",onChange:$=>he(Te=>({...Te,[W]:$.target.value})),style:{width:"100%"}})]},W)),s.jsxs("div",{style:{display:"flex",gap:"8px",justifyContent:"flex-end",marginTop:"16px"},children:[s.jsx("button",{className:"btn-ghost",onClick:()=>de(null),children:"Skip"}),s.jsx("button",{className:"btn-sm",disabled:Ve,onClick:async()=>{qe(!0);try{for(const[W,V]of Object.entries(ve))V.trim()&&await se.setPluginSecret(X.pluginId,W,V.trim());de(null)}catch(W){_(W instanceof Error?W.message:String(W))}finally{qe(!1)}},children:Ve?"Saving...":"Save"})]})]})}),o==="marketplace"&&s.jsx(s.Fragment,{children:F&&M.length===0?s.jsx("div",{className:"loading",children:"Loading marketplace..."}):cr.length===0?s.jsx("div",{className:"empty",children:K||E?"No plugins match your search":"Marketplace is empty"}):s.jsx("div",{style:{display:"grid",gap:"10px"},children:cr.map(W=>s.jsx(uh,{plugin:W,operating:P,onInstall:we,onUninstall:Ee,onUpdate:Ze},W.id))})})]})}function uh({plugin:o,operating:c,onInstall:u,onUninstall:f,onUpdate:p}){const m=c===o.id,k=!!c,T=o.secrets&&Object.values(o.secrets).some(v=>v.required);return s.jsx("div",{className:"card",style:{marginBottom:"0"},children:s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"16px"},children:[s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"4px",flexWrap:"wrap"},children:[s.jsx("h2",{style:{margin:0},children:o.name}),o.status==="installed"&&s.jsx("span",{className:"badge always",style:{fontSize:"10px"},children:"Installed"}),o.status==="updatable"&&s.jsx("span",{className:"badge warn",style:{fontSize:"10px"},children:"Update available"}),T&&o.status==="available"&&s.jsx("span",{className:"badge warn",style:{fontSize:"10px"},children:"Requires API Key"})]}),s.jsx("p",{style:{fontSize:"13px",color:"var(--text-secondary)",margin:"0 0 8px 0",lineHeight:"1.5"},children:o.description}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[o.tags.map(v=>s.jsx("span",{className:"badge",style:{background:"var(--surface)",color:"var(--text-tertiary)"},children:v},v)),s.jsxs("span",{style:{fontSize:"12px",color:"var(--text-tertiary)"},children:["by ",o.author," · v",o.remoteVersion," · ",o.toolCount," tools"]})]})]}),s.jsxs("div",{style:{flexShrink:0,display:"flex",flexDirection:"column",gap:"6px",alignItems:"flex-end"},children:[o.status==="available"&&s.jsx("button",{className:"btn-sm",onClick:()=>u(o.id),disabled:k,children:m?"Installing...":"Install"}),o.status==="installed"&&s.jsx("button",{className:"btn-danger btn-sm",onClick:()=>f(o.id),disabled:k,children:m?"Removing...":"Uninstall"}),o.status==="updatable"&&s.jsxs(s.Fragment,{children:[s.jsx("button",{className:"btn-sm",onClick:()=>p(o.id),disabled:k,children:m?"Updating...":`Update to v${o.remoteVersion}`}),s.jsx("button",{className:"btn-danger btn-sm",onClick:()=>f(o.id),disabled:k,children:"Uninstall"})]})]})]})})}const wc=["SOUL.md","SECURITY.md","STRATEGY.md","MEMORY.md"];function ch(){const[o,c]=y.useState(wc[0]),[u,f]=y.useState(""),[p,m]=y.useState(""),[k,T]=y.useState(!1),[v,_]=y.useState(!1),[z,N]=y.useState(null),M=u!==p,G=y.useCallback(async P=>{T(!0),N(null);try{const R=await se.getSoulFile(P);f(R.data.content),m(R.data.content)}catch(R){N({type:"error",text:R instanceof Error?R.message:String(R)})}finally{T(!1)}},[]),F=async()=>{_(!0),N(null);try{const P=await se.updateSoulFile(o,u);m(u),N({type:"success",text:P.data.message})}catch(P){N({type:"error",text:P instanceof Error?P.message:String(P)})}finally{_(!1)}};y.useEffect(()=>{const P=R=>{M&&R.preventDefault()};return window.addEventListener("beforeunload",P),()=>window.removeEventListener("beforeunload",P)},[M]);const C=P=>{P!==o&&(M&&!window.confirm("You have unsaved changes. Discard them?")||c(P))};return y.useEffect(()=>{G(o)},[o,G]),s.jsxs("div",{children:[s.jsxs("div",{className:"header",children:[s.jsx("h1",{children:"Soul Editor"}),s.jsx("p",{children:"Edit system prompt files"})]}),z&&s.jsx("div",{className:`alert ${z.type}`,children:z.text}),s.jsxs("div",{className:"card",children:[s.jsx("div",{className:"tabs",children:wc.map(P=>s.jsxs("button",{className:`tab ${o===P?"active":""}`,onClick:()=>C(P),children:[P,o===P&&M?" *":""]},P))}),k?s.jsx("div",{className:"loading",children:"Loading..."}):s.jsxs(s.Fragment,{children:[s.jsx("textarea",{value:u,onChange:P=>f(P.target.value),placeholder:`Edit ${o}...`}),s.jsxs("div",{style:{marginTop:"14px",display:"flex",alignItems:"center",gap:"10px"},children:[s.jsx("button",{onClick:F,disabled:v||!M,children:v?"Saving...":"Save"}),M&&s.jsx("span",{style:{color:"var(--orange)",fontSize:"13px"},children:"Unsaved changes"})]})]})]})]})}function dh(){const[o,c]=y.useState(""),[u,f]=y.useState([]),[p,m]=y.useState(!1),[k,T]=y.useState(null),[v,_]=y.useState(!1),z=async()=>{if(o.trim()){m(!0),T(null);try{const N=await se.searchKnowledge(o);f(N.data),_(!0)}catch(N){T(N instanceof Error?N.message:String(N))}finally{m(!1)}}};return s.jsxs("div",{children:[s.jsxs("div",{className:"header",children:[s.jsx("h1",{children:"Memory"}),s.jsx("p",{children:"Search knowledge base"})]}),s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Search query"}),s.jsxs("div",{style:{display:"flex",gap:"8px"},children:[s.jsx("input",{type:"text",value:o,onChange:N=>c(N.target.value),onKeyDown:N=>N.key==="Enter"&&z(),placeholder:"Enter search query...",style:{flex:1}}),s.jsx("button",{onClick:z,disabled:p,children:p?"Searching...":"Search"})]})]}),k&&s.jsx("div",{className:"alert error",children:k}),v&&u.length===0&&!k&&s.jsx("div",{style:{marginTop:"16px",color:"var(--text-secondary)",textAlign:"center"},children:"No results found"}),u.length>0&&s.jsxs("div",{style:{marginTop:"16px"},children:[s.jsxs("div",{className:"section-title",children:["Results (",u.length,")"]}),u.map((N,M)=>{var G;return s.jsxs("div",{className:"result-item",children:[s.jsxs("div",{className:"result-meta",children:[N.source," · Score: ",((G=N.score)==null?void 0:G.toFixed(3))??"—"]}),s.jsx("div",{className:"result-text",children:N.text})]},N.id||M)})]})]})]})}const kc=2e3,io=1e3,fh=3e4;class ph{constructor(){Lt(this,"logs",[]);Lt(this,"snapshot",[]);Lt(this,"listeners",new Set);Lt(this,"disconnect",null);Lt(this,"_connected",!1);Lt(this,"reconnectTimer",null);Lt(this,"reconnectDelay",io);Lt(this,"shouldReconnect",!1)}connect(){this.disconnect||(this.shouldReconnect=!0,this.reconnectDelay=io,this.doConnect())}doConnect(){this.disconnect||(this.disconnect=se.connectLogs(c=>{this.logs.push(c),this.logs.length>kc&&(this.logs=this.logs.slice(-kc)),this._connected=!0,this.reconnectDelay=io,this.snapshot=[...this.logs],this.notify()},()=>{this._connected=!1,this.disconnect&&(this.disconnect(),this.disconnect=null),this.notify(),this.scheduleReconnect()}))}scheduleReconnect(){!this.shouldReconnect||this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.shouldReconnect&&!this.disconnect&&this.doConnect()},this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*2,fh))}stop(){this.shouldReconnect=!1,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.disconnect&&(this.disconnect(),this.disconnect=null),this._connected=!1,this.notify()}getLogs(){return this.snapshot}isConnected(){return this._connected}clear(){this.logs=[],this.snapshot=[],this.notify()}subscribe(c){return this.listeners.add(c),()=>this.listeners.delete(c)}notify(){for(const c of this.listeners)c()}}const _n=new ph;function hh(){const o=y.useSyncExternalStore(f=>_n.subscribe(f),()=>_n.getLogs()),c=y.useSyncExternalStore(f=>_n.subscribe(f),()=>_n.isConnected()),u=y.useRef(null);return y.useEffect(()=>{_n.connect()},[]),y.useEffect(()=>{var f;(f=u.current)==null||f.scrollIntoView({behavior:"smooth"})},[o]),s.jsxs("div",{children:[s.jsx("div",{className:"header",children:s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsxs("div",{children:[s.jsx("h1",{children:"Live Logs"}),s.jsxs("p",{children:[s.jsx("span",{className:`status-dot ${c?"connected":"disconnected"}`}),c?"Connected":"Disconnected"]})]}),s.jsx("button",{onClick:()=>_n.clear(),children:"Clear"})]})}),s.jsxs("div",{className:"card",style:{maxHeight:"70vh",overflow:"auto",padding:"14px"},children:[o.length===0?s.jsx("div",{className:"empty",children:"Waiting for logs..."}):o.map((f,p)=>s.jsxs("div",{className:"log-entry",children:[s.jsx("span",{className:`badge ${f.level==="warn"?"warn":f.level==="error"?"error":"info"}`,children:f.level.toUpperCase()})," ",s.jsx("span",{style:{color:"var(--text-tertiary)"},children:new Date(f.timestamp).toLocaleTimeString()})," ",f.message]},p)),s.jsx("div",{ref:u})]})]})}function jc(o){return o===0?"—":o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}function mh(o){return new Date(o).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function gh(){const[o,c]=y.useState(""),[u,f]=y.useState([]),[p,m]=y.useState(null),[k,T]=y.useState(!0),[v,_]=y.useState(null),[z,N]=y.useState(null),[M,G]=y.useState(""),[F,C]=y.useState(!1),[P,R]=y.useState(!1),[K,H]=y.useState(null),[E,Q]=y.useState(""),X=y.useCallback(async U=>{T(!0),_(null);try{const oe=await se.workspaceList(U);f(oe.data??[]),c(U)}catch(oe){_(oe instanceof Error?oe.message:String(oe))}finally{T(!1)}},[]),de=y.useCallback(async()=>{try{const U=await se.workspaceInfo();m(U.data??null)}catch{}},[]);y.useEffect(()=>{X(""),de()},[X,de]);const ve=U=>{qe()&&X(U)},he=o?o.split("/"):[],Ve=async U=>{var oe;try{_(null);const ae=await se.workspaceRead(U);N(U),G(((oe=ae.data)==null?void 0:oe.content)??""),C(!1)}catch(ae){_(ae instanceof Error?ae.message:String(ae))}},qe=()=>F&&!confirm("You have unsaved changes. Discard?")?!1:(N(null),G(""),C(!1),!0),He=async()=>{if(z){R(!0);try{await se.workspaceWrite(z,M),C(!1),X(o)}catch(U){_(U instanceof Error?U.message:String(U))}finally{R(!1)}}},Y=async U=>{const oe=U.isDirectory?"directory":"file";if(confirm(`Delete ${oe} "${U.name}"?`))try{await se.workspaceDelete(U.path,U.isDirectory),z===U.path&&(N(null),G(""),C(!1)),X(o),de()}catch(ae){_(ae instanceof Error?ae.message:String(ae))}},ie=async()=>{const U=E.trim();if(!U||!K)return;const oe=o?`${o}/${U}`:U;try{if(K.type==="newFile")await se.workspaceWrite(oe,"");else if(K.type==="newFolder")await se.workspaceMkdir(oe);else if(K.type==="rename"&&K.target){const ae=o?`${o}/${U}`:U;await se.workspaceRename(K.target,ae),z===K.target&&(N(null),G(""),C(!1))}H(null),Q(""),X(o),de()}catch(ae){_(ae instanceof Error?ae.message:String(ae))}};return s.jsxs("div",{children:[s.jsxs("div",{className:"header",children:[s.jsx("h1",{children:"Workspace"}),s.jsxs("p",{children:["Browse and manage agent workspace files",p&&s.jsxs("span",{style:{marginLeft:"12px",fontSize:"12px",color:"var(--text-secondary)"},children:[p.totalFiles," files · ",jc(p.totalSize)]})]})]}),v&&s.jsxs("div",{className:"alert error",style:{marginBottom:"14px"},children:[v,s.jsx("button",{onClick:()=>_(null),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},children:"Dismiss"})]}),s.jsxs("div",{className:"card",style:{padding:"8px 14px",marginBottom:"14px",display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[s.jsx("span",{onClick:()=>ve(""),style:{cursor:"pointer",fontWeight:o?"normal":"bold",color:"var(--accent)"},children:"workspace"}),he.map((U,oe)=>{const ae=he.slice(0,oe+1).join("/"),A=oe===he.length-1;return s.jsxs("span",{children:[s.jsx("span",{style:{color:"var(--text-secondary)",margin:"0 2px"},children:"/"}),s.jsx("span",{onClick:()=>!A&&ve(ae),style:{cursor:A?"default":"pointer",fontWeight:A?"bold":"normal",color:A?"var(--text)":"var(--accent)"},children:U})]},ae)}),s.jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:"6px"},children:[s.jsx("button",{style:{padding:"3px 10px",fontSize:"12px"},onClick:()=>{H({type:"newFile"}),Q("")},children:"+ File"}),s.jsx("button",{style:{padding:"3px 10px",fontSize:"12px"},onClick:()=>{H({type:"newFolder"}),Q("")},children:"+ Folder"})]})]}),K&&s.jsxs("div",{className:"card",style:{padding:"10px 14px",marginBottom:"14px",display:"flex",gap:"8px",alignItems:"center"},children:[s.jsx("span",{style:{fontSize:"13px",whiteSpace:"nowrap"},children:K.type==="newFile"?"New file:":K.type==="newFolder"?"New folder:":"Rename to:"}),s.jsx("input",{type:"text",value:E,onChange:U=>Q(U.target.value),onKeyDown:U=>U.key==="Enter"&&ie(),placeholder:"name...",autoFocus:!0,style:{flex:1,padding:"4px 8px",fontSize:"13px"}}),s.jsx("button",{style:{padding:"4px 10px",fontSize:"12px"},onClick:ie,children:"OK"}),s.jsx("button",{style:{padding:"4px 10px",fontSize:"12px",opacity:.7},onClick:()=>H(null),children:"Cancel"})]}),s.jsx("div",{className:"card",style:{padding:0},children:k?s.jsx("div",{style:{padding:"20px",textAlign:"center"},children:"Loading..."}):u.length===0?s.jsx("div",{style:{padding:"20px",textAlign:"center",color:"var(--text-secondary)"},children:"Empty directory"}):s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"13px"},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{borderBottom:"1px solid var(--separator)",color:"var(--text-secondary)",fontSize:"11px",textTransform:"uppercase"},children:[s.jsx("th",{style:{textAlign:"left",padding:"8px 14px"},children:"Name"}),s.jsx("th",{style:{textAlign:"right",padding:"8px 14px",width:"80px"},children:"Size"}),s.jsx("th",{style:{textAlign:"right",padding:"8px 14px",width:"140px"},children:"Modified"}),s.jsx("th",{style:{textAlign:"right",padding:"8px 14px",width:"70px"}})]})}),s.jsxs("tbody",{children:[o&&s.jsxs("tr",{onClick:()=>{const U=o.split("/");U.pop(),ve(U.join("/"))},style:{cursor:"pointer",borderBottom:"1px solid var(--separator)"},className:"file-row",children:[s.jsxs("td",{style:{padding:"6px 14px"},children:[s.jsx("span",{style:{marginRight:"8px"},children:"📂"}),".."]}),s.jsx("td",{}),s.jsx("td",{}),s.jsx("td",{})]}),u.map(U=>s.jsxs("tr",{onClick:()=>U.isDirectory?ve(U.path):Ve(U.path),style:{cursor:"pointer",borderBottom:"1px solid var(--separator)"},className:"file-row",children:[s.jsxs("td",{style:{padding:"6px 14px"},children:[s.jsx("span",{style:{marginRight:"8px"},children:U.isDirectory?"📂":"📄"}),U.name]}),s.jsx("td",{style:{textAlign:"right",padding:"6px 14px",color:"var(--text-secondary)"},children:U.isDirectory?"":jc(U.size)}),s.jsx("td",{style:{textAlign:"right",padding:"6px 14px",color:"var(--text-secondary)"},children:mh(U.mtime)}),s.jsxs("td",{style:{textAlign:"right",padding:"6px 14px",whiteSpace:"nowrap"},onClick:oe=>oe.stopPropagation(),children:[s.jsx("button",{className:"icon-button",onClick:()=>{H({type:"rename",target:U.path}),Q(U.name)},title:"Rename",children:"✎"}),s.jsx("button",{className:"icon-button",onClick:()=>Y(U),title:"Delete",children:"🗑"})]})]},U.path))]})]})}),z&&s.jsxs("div",{className:"card",style:{marginTop:"14px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"10px"},children:[s.jsxs("h2",{style:{margin:0,fontSize:"14px"},children:[z,F&&s.jsx("span",{style:{color:"var(--accent)",marginLeft:"6px"},children:"*"})]}),s.jsxs("div",{style:{display:"flex",gap:"6px"},children:[s.jsx("button",{style:{padding:"4px 12px",fontSize:"12px"},onClick:He,disabled:P||!F,children:P?"Saving...":"Save"}),s.jsx("button",{style:{padding:"4px 12px",fontSize:"12px",opacity:.7},onClick:qe,children:"Close"})]})]}),s.jsx("textarea",{value:M,onChange:U=>{G(U.target.value),C(!0)},onKeyDown:U=>{(U.ctrlKey||U.metaKey)&&U.key==="s"&&(U.preventDefault(),He())},style:{width:"100%",minHeight:"300px",fontFamily:"monospace",fontSize:"13px",padding:"10px",border:"1px solid var(--separator)",borderRadius:"4px",backgroundColor:"var(--surface)",color:"var(--text)",resize:"vertical",tabSize:2},spellCheck:!1})]})]})}const Uc={pending:"#f0ad4e",in_progress:"#5bc0de",done:"#5cb85c",failed:"#d9534f",cancelled:"#777"},fo={pending:"Pending",in_progress:"Running",done:"Done",failed:"Failed",cancelled:"Cancelled"};function Cc({status:o}){return s.jsx("span",{style:{display:"inline-block",padding:"2px 8px",borderRadius:"10px",fontSize:"11px",fontWeight:600,color:"#fff",backgroundColor:Uc[o]},children:fo[o]})}function sr(o){return o?new Date(o).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function yh({priority:o}){if(o===0)return s.jsx("span",{style:{color:"var(--text-secondary)",fontSize:"11px"},children:"—"});const c=Math.min(o,10);return s.jsxs("span",{title:`Priority: ${o}/10`,style:{fontSize:"11px",letterSpacing:"1px"},children:["●".repeat(Math.min(c,5)),"○".repeat(Math.max(0,5-c))]})}function oo(o,c){return o?o.length>c?o.slice(0,c)+"...":o:""}function vh(){const[o,c]=y.useState([]),[u,f]=y.useState(!0),[p,m]=y.useState(null),[k,T]=y.useState(""),[v,_]=y.useState(null),z=y.useCallback(async()=>{f(!0),m(null);try{const P=(await se.tasksList()).data??[];c(P),_(R=>R?P.find(K=>K.id===R.id)??null:null)}catch(C){m(C instanceof Error?C.message:String(C))}finally{f(!1)}},[]);y.useEffect(()=>{z()},[z]);const N=async C=>{if(confirm("Cancel this task?"))try{await se.tasksCancel(C),z(),(v==null?void 0:v.id)===C&&_(null)}catch(P){m(P instanceof Error?P.message:String(P))}},M=async C=>{if(confirm("Permanently delete this task?"))try{await se.tasksDelete(C),z(),(v==null?void 0:v.id)===C&&_(null)}catch(P){m(P instanceof Error?P.message:String(P))}},G=o.reduce((C,P)=>(C[P.status]=(C[P.status]||0)+1,C),{}),F=k?o.filter(C=>C.status===k):o;return s.jsxs("div",{children:[s.jsxs("div",{className:"header",children:[s.jsx("h1",{children:"Tasks"}),s.jsx("p",{children:"Scheduled and queued agent tasks"})]}),p&&s.jsxs("div",{className:"alert error",style:{marginBottom:"14px"},children:[p,s.jsx("button",{onClick:()=>m(null),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},children:"Dismiss"})]}),s.jsxs("div",{className:"card",style:{padding:"10px 14px",marginBottom:"14px",display:"flex",gap:"16px",alignItems:"center",flexWrap:"wrap"},children:[s.jsxs("span",{onClick:()=>T(""),style:{cursor:"pointer",fontWeight:k===""?"bold":"normal",color:k===""?"var(--text)":"var(--text-secondary)",fontSize:"13px"},children:["All (",o.length,")"]}),["pending","in_progress","done","failed","cancelled"].map(C=>s.jsxs("span",{onClick:()=>T(k===C?"":C),style:{cursor:"pointer",fontWeight:k===C?"bold":"normal",color:k===C?Uc[C]:"var(--text-secondary)",fontSize:"13px"},children:[fo[C]," (",G[C]||0,")"]},C)),(G.done||0)>0&&s.jsxs("button",{style:{marginLeft:"auto",padding:"4px 12px",fontSize:"12px",opacity:.7},onClick:async()=>{if(confirm(`Delete all ${G.done} done tasks?`))try{await se.tasksCleanDone(),m(null),z(),_(null)}catch(C){m(C instanceof Error?C.message:String(C))}},children:["Clean done (",G.done,")"]}),s.jsx("button",{style:{marginLeft:G.done?void 0:"auto",padding:"4px 12px",fontSize:"12px",opacity:.7},onClick:z,children:"Refresh"})]}),s.jsx("div",{className:"card",style:{padding:0},children:u?s.jsx("div",{style:{padding:"20px",textAlign:"center"},children:"Loading..."}):F.length===0?s.jsx("div",{style:{padding:"20px",textAlign:"center",color:"var(--text-secondary)"},children:k?`No ${fo[k].toLowerCase()} tasks`:"No tasks yet"}):s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"13px",tableLayout:"fixed"},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{borderBottom:"1px solid var(--separator)",color:"var(--text-secondary)",fontSize:"11px",textTransform:"uppercase"},children:[s.jsx("th",{style:{textAlign:"left",padding:"8px 14px"},children:"Description"}),s.jsx("th",{style:{textAlign:"center",padding:"8px 10px",width:80},children:"Status"}),s.jsx("th",{style:{textAlign:"center",padding:"8px 10px",width:60},children:"Priority"}),s.jsx("th",{style:{textAlign:"right",padding:"8px 14px",width:120},children:"Scheduled"}),s.jsx("th",{style:{textAlign:"right",padding:"8px 14px",width:120},children:"Created"}),s.jsx("th",{style:{textAlign:"right",padding:"8px 14px",width:70}})]})}),s.jsx("tbody",{children:F.map(C=>{const P=(v==null?void 0:v.id)===C.id;return s.jsxs(Ec.Fragment,{children:[s.jsxs("tr",{onClick:()=>_(P?null:C),style:{cursor:"pointer",borderBottom:P?"none":"1px solid var(--separator)",backgroundColor:P?"rgba(255,255,255,0.03)":void 0},className:"file-row",children:[s.jsxs("td",{style:{padding:"8px 14px"},children:[s.jsxs("div",{children:[s.jsx("span",{style:{display:"inline-block",width:"14px",fontSize:"10px",color:"var(--text-secondary)"},children:P?"▼":"▶"}),oo(C.description,80)]}),C.reason&&s.jsx("div",{style:{fontSize:"11px",color:"var(--text-secondary)",marginTop:"2px",paddingLeft:"14px"},children:oo(C.reason,60)})]}),s.jsx("td",{style:{textAlign:"center",padding:"8px 10px"},children:s.jsx(Cc,{status:C.status})}),s.jsx("td",{style:{textAlign:"center",padding:"8px 10px"},children:s.jsx(yh,{priority:C.priority})}),s.jsx("td",{style:{textAlign:"right",padding:"8px 14px",color:"var(--text-secondary)"},children:sr(C.scheduledFor)}),s.jsx("td",{style:{textAlign:"right",padding:"8px 14px",color:"var(--text-secondary)"},children:sr(C.createdAt)}),s.jsxs("td",{style:{textAlign:"right",padding:"8px 14px",whiteSpace:"nowrap"},onClick:R=>R.stopPropagation(),children:[(C.status==="pending"||C.status==="in_progress")&&s.jsx("button",{className:"icon-button",onClick:()=>N(C.id),title:"Cancel",children:"✖"}),s.jsx("button",{className:"icon-button",onClick:()=>M(C.id),title:"Delete",children:"🗑"})]})]}),P&&v&&s.jsx("tr",{style:{backgroundColor:"rgba(255,255,255,0.03)",borderBottom:"1px solid var(--separator)"},children:s.jsxs("td",{colSpan:6,style:{padding:"0 14px 14px 14px",overflow:"hidden"},children:[s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"120px 1fr",gap:"6px 12px",fontSize:"13px",padding:"10px 0"},children:[s.jsx("span",{style:{color:"var(--text-secondary)"},children:"ID"}),s.jsx("code",{style:{fontSize:"11px",wordBreak:"break-all"},children:v.id}),s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Status"}),s.jsx("span",{children:s.jsx(Cc,{status:v.status})}),s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Priority"}),s.jsxs("span",{children:[v.priority,"/10"]}),s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Description"}),s.jsx("span",{children:v.description}),v.reason&&s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Reason"}),s.jsx("span",{children:v.reason})]}),s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Created by"}),s.jsx("span",{children:v.createdBy||"—"}),s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Created"}),s.jsx("span",{children:sr(v.createdAt)}),s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Scheduled for"}),s.jsx("span",{children:sr(v.scheduledFor)}),s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Started"}),s.jsx("span",{children:sr(v.startedAt)}),s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Completed"}),s.jsx("span",{children:sr(v.completedAt)}),v.dependencies.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Depends on"}),s.jsxs("span",{style:{fontSize:"11px"},children:[v.dependencies.length," task(s)"]})]}),v.dependents.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{color:"var(--text-secondary)"},children:"Dependents"}),s.jsxs("span",{style:{fontSize:"11px"},children:[v.dependents.length," task(s)"]})]})]}),v.payload&&s.jsxs("div",{style:{marginTop:"4px"},children:[s.jsx("div",{style:{fontSize:"12px",color:"var(--text-secondary)",marginBottom:"4px"},children:"Payload"}),s.jsx("pre",{style:{padding:"8px",borderRadius:"4px",backgroundColor:"rgba(0,0,0,0.2)",fontSize:"11px",overflow:"auto",maxHeight:"150px",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(()=>{try{return JSON.stringify(JSON.parse(v.payload),null,2)}catch{return v.payload}})()})]}),v.result&&s.jsxs("div",{style:{marginTop:"12px"},children:[s.jsx("div",{style:{fontSize:"12px",color:"#5cb85c",marginBottom:"4px"},children:"Result"}),s.jsx("pre",{style:{padding:"8px",borderRadius:"4px",backgroundColor:"rgba(0,0,0,0.2)",fontSize:"11px",overflow:"auto",maxHeight:"200px",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:oo(v.result,2e3)})]}),v.error&&s.jsxs("div",{style:{marginTop:"12px"},children:[s.jsx("div",{style:{fontSize:"12px",color:"#d9534f",marginBottom:"4px"},children:"Error"}),s.jsx("pre",{style:{padding:"8px",borderRadius:"4px",backgroundColor:"rgba(100,0,0,0.15)",fontSize:"11px",overflow:"auto",maxHeight:"150px",margin:0,color:"#f99"},children:v.error})]})]})})]},C.id)})})]})})]})}function xh(){const[o,c]=y.useState([]),[u,f]=y.useState(!0),[p,m]=y.useState(null),[k,T]=y.useState(new Set),[v,_]=y.useState(!1),[z,N]=y.useState(""),[M,G]=y.useState(""),[F,C]=y.useState(""),[P,R]=y.useState([]),[K,H]=y.useState(!1),[E,Q]=y.useState(null),[X,de]=y.useState(null),ve=(Y=!1)=>{Y&&f(!0),se.getMcpServers().then(ie=>{c(ie.data),f(!1)}).catch(ie=>{m(ie instanceof Error?ie.message:String(ie)),f(!1)})};y.useEffect(()=>{ve(!0)},[]);const he=Y=>{T(ie=>{const U=new Set(ie);return U.has(Y)?U.delete(Y):U.add(Y),U})},Ve=async()=>{if(z.trim()){H(!0),m(null);try{const Y=M.trim()?M.trim().split(/\s+/):void 0,ie=z.startsWith("http://")||z.startsWith("https://"),U={};for(const ae of P)ae.key.trim()&&(U[ae.key.trim()]=ae.value);const oe=await se.addMcpServer({...ie?{url:z.trim()}:{package:z.trim()},name:F.trim()||void 0,args:ie?void 0:Y,env:Object.keys(U).length>0?U:void 0});de(oe.data.message),N(""),G(""),C(""),R([]),_(!1),ve()}catch(Y){m(Y instanceof Error?Y.message:String(Y))}finally{H(!1)}}},qe=async Y=>{if(confirm(`Remove MCP server "${Y}"?`)){Q(Y),m(null);try{const ie=await se.removeMcpServer(Y);de(ie.data.message),ve()}catch(ie){m(ie instanceof Error?ie.message:String(ie))}finally{Q(null)}}};if(u)return s.jsx("div",{className:"loading",children:"Loading..."});const He=o.filter(Y=>Y.connected).length;return s.jsxs("div",{children:[s.jsx("div",{className:"header",children:s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsxs("div",{children:[s.jsx("h1",{children:"MCP Servers"}),s.jsx("p",{children:"External tool servers connected via Model Context Protocol"})]}),s.jsx("button",{onClick:()=>_(!v),style:{fontSize:"13px"},children:v?"Cancel":"+ Add Server"})]})}),p&&s.jsxs("div",{className:"alert error",style:{marginBottom:"14px"},children:[p,s.jsx("button",{onClick:()=>m(null),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},children:"Dismiss"})]}),X&&s.jsxs("div",{className:"alert success",style:{marginBottom:"14px"},children:[X,s.jsx("button",{onClick:()=>de(null),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},children:"Dismiss"})]}),v&&s.jsxs("div",{className:"card",style:{marginBottom:"14px"},children:[s.jsx("h2",{style:{margin:"0 0 10px"},children:"Add MCP Server"}),s.jsxs("div",{style:{display:"grid",gap:"8px"},children:[s.jsxs("div",{children:[s.jsx("label",{style:{display:"block",fontSize:"12px",color:"var(--text-secondary)",marginBottom:"4px"},children:"Package or URL *"}),s.jsx("input",{type:"text",value:z,onChange:Y=>N(Y.target.value),placeholder:"@modelcontextprotocol/server-filesystem or http://localhost:3001/mcp",style:{width:"100%",fontSize:"13px"}})]}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px"},children:[s.jsxs("div",{children:[s.jsx("label",{style:{display:"block",fontSize:"12px",color:"var(--text-secondary)",marginBottom:"4px"},children:"Arguments (space-separated)"}),s.jsx("input",{type:"text",value:M,onChange:Y=>G(Y.target.value),placeholder:"/tmp /home/user/docs",style:{width:"100%",fontSize:"13px"}})]}),s.jsxs("div",{children:[s.jsx("label",{style:{display:"block",fontSize:"12px",color:"var(--text-secondary)",marginBottom:"4px"},children:"Name (auto-derived if empty)"}),s.jsx("input",{type:"text",value:F,onChange:Y=>C(Y.target.value),placeholder:"filesystem",style:{width:"100%",fontSize:"13px"}})]})]}),s.jsxs("div",{children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"4px"},children:[s.jsx("label",{style:{fontSize:"12px",color:"var(--text-secondary)"},children:"Environment Variables"}),s.jsx("button",{type:"button",onClick:()=>R([...P,{key:"",value:"",id:crypto.randomUUID()}]),style:{fontSize:"11px",padding:"1px 6px",opacity:.7},children:"+ Add"})]}),P.map((Y,ie)=>s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 2fr auto",gap:"6px",marginBottom:"4px"},children:[s.jsx("input",{type:"text",value:Y.key,onChange:U=>{const oe=[...P];oe[ie]={...oe[ie],key:U.target.value},R(oe)},placeholder:"BRAVE_API_KEY",style:{fontSize:"12px",fontFamily:"monospace"}}),s.jsx("input",{type:"password",value:Y.value,onChange:U=>{const oe=[...P];oe[ie]={...oe[ie],value:U.target.value},R(oe)},placeholder:"sk-xxx...",style:{fontSize:"12px",fontFamily:"monospace"}}),s.jsx("button",{type:"button",onClick:()=>R(P.filter((U,oe)=>oe!==ie)),style:{fontSize:"11px",padding:"2px 6px",opacity:.6},children:"×"})]},Y.id))]}),s.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",marginTop:"4px"},children:[s.jsx("button",{onClick:()=>_(!1),style:{fontSize:"13px",opacity:.7},children:"Cancel"}),s.jsx("button",{onClick:Ve,disabled:K||!z.trim(),style:{fontSize:"13px"},children:K?"Adding...":"Add Server"})]})]}),s.jsx("p",{style:{fontSize:"11px",color:"var(--text-secondary)",margin:"8px 0 0"},children:"Changes are saved to config.yaml. Restart teleton to connect."})]}),o.length===0&&!v&&s.jsxs("div",{className:"empty",children:[s.jsx("p",{children:"No MCP servers configured"}),s.jsxs("p",{style:{fontSize:"13px",color:"var(--text-secondary)",marginTop:"8px"},children:['Click "+ Add Server" above or use CLI: ',s.jsx("code",{children:"teleton mcp add @modelcontextprotocol/server-filesystem /tmp"})]})]}),o.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{fontSize:"13px",color:"var(--text-secondary)",marginBottom:"14px"},children:[He,"/",o.length," connected · ",o.reduce((Y,ie)=>Y+ie.toolCount,0)," tools total"]}),o.map(Y=>s.jsxs("div",{className:"card",style:{marginBottom:"10px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsx("h2",{style:{margin:0},children:Y.name}),s.jsx("span",{style:{fontSize:"11px",padding:"1px 6px",borderRadius:"3px",background:"var(--surface)",color:"var(--text-secondary)"},children:Y.type}),Y.scope!=="always"&&s.jsx("span",{style:{fontSize:"11px",padding:"1px 6px",borderRadius:"3px",background:"var(--surface)",color:"var(--text-secondary)"},children:Y.scope})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"12px",color:Y.connected?"var(--green)":"var(--red)"},children:[s.jsx("span",{style:{width:"6px",height:"6px",borderRadius:"50%",background:Y.connected?"var(--green)":"var(--red)"}}),Y.connected?"Connected":"Disconnected"]}),!Y.enabled&&s.jsx("span",{style:{fontSize:"11px",color:"var(--text-secondary)"},children:"disabled"}),s.jsx("button",{onClick:()=>qe(Y.name),disabled:E===Y.name,style:{fontSize:"11px",padding:"2px 8px",opacity:.6,cursor:E===Y.name?"wait":"pointer"},children:E===Y.name?"...":"Remove"})]})]}),s.jsx("div",{style:{fontSize:"12px",fontFamily:"monospace",color:"var(--text-secondary)",marginBottom:"8px"},children:Y.target}),Y.envKeys.length>0&&s.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",marginBottom:"8px"},children:Y.envKeys.map(ie=>s.jsxs("span",{style:{fontSize:"11px",padding:"1px 6px",borderRadius:"3px",background:"var(--surface)",color:"var(--text-secondary)",fontFamily:"monospace"},children:[ie,"=••••"]},ie))}),Y.toolCount>0&&s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>he(Y.name),style:{background:"none",border:"none",padding:0,fontSize:"12px",color:"var(--accent)",cursor:"pointer"},children:[k.has(Y.name)?"▾":"▸"," ",Y.toolCount," tools"]}),k.has(Y.name)&&s.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",marginTop:"8px"},children:Y.tools.map(ie=>s.jsx("span",{style:{fontSize:"11px",padding:"2px 6px",borderRadius:"3px",background:"var(--surface)",color:"var(--text-secondary)"},children:ie},ie))})]})]},Y.name))]})]})}const Sh=["API Keys","Agent","Telegram","Embedding","WebUI","Deals","Developer"];function wh(o){const c=new Map;for(const f of o){const p=f.category||"Other";c.has(p)||c.set(p,[]),c.get(p).push(f)}const u=new Map;for(const f of Sh)c.has(f)&&(u.set(f,c.get(f)),c.delete(f));for(const[f,p]of c)u.set(f,p);return u}function kh(){const[o,c]=y.useState([]),[u,f]=y.useState(!0),[p,m]=y.useState(null),[k,T]=y.useState(null),[v,_]=y.useState(null),[z,N]=y.useState(""),[M,G]=y.useState(!1),F=(E=!1)=>{E&&f(!0),se.getConfigKeys().then(Q=>{c(Q.data),f(!1)}).catch(Q=>{m(Q instanceof Error?Q.message:String(Q)),f(!1)})};y.useEffect(()=>{F(!0)},[]);const C=E=>{var Q;_(E.key),E.type==="boolean"?N(E.set&&E.value!==null?E.value:"true"):E.type==="enum"&&((Q=E.options)!=null&&Q.length)?N(E.set&&E.value!==null?E.value:E.options[0]):N("")},P=async E=>{const Q=o.find(de=>de.key===E);if(!(!((Q==null?void 0:Q.type)==="boolean"||(Q==null?void 0:Q.type)==="enum")&&!z.trim())){G(!0),m(null),T(null);try{await se.setConfigKey(E,z.trim()),_(null),N(""),T(`${E} updated successfully`),F()}catch(de){m(de instanceof Error?de.message:String(de))}finally{G(!1)}}},R=async E=>{G(!0),m(null),T(null);try{await se.unsetConfigKey(E),T(`${E} removed`),F()}catch(Q){m(Q instanceof Error?Q.message:String(Q))}finally{G(!1)}},K=()=>{_(null),N("")};if(u)return s.jsx("div",{className:"loading",children:"Loading..."});const H=wh(o);return s.jsxs("div",{children:[s.jsxs("div",{className:"header",children:[s.jsx("h1",{children:"Configuration"}),s.jsx("p",{children:"Manage API keys and settings"})]}),p&&s.jsxs("div",{className:"alert error",style:{marginBottom:"14px"},children:[p,s.jsx("button",{onClick:()=>m(null),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},children:"Dismiss"})]}),k&&s.jsxs("div",{className:"alert success",style:{marginBottom:"14px"},children:[k,s.jsx("button",{onClick:()=>T(null),style:{marginLeft:"10px",padding:"2px 8px",fontSize:"12px"},children:"Dismiss"})]}),Array.from(H.entries()).map(([E,Q])=>s.jsxs("div",{className:"card",style:{marginBottom:"10px"},children:[s.jsx("h2",{style:{marginBottom:"8px"},children:E}),Q.map((X,de)=>s.jsxs("div",{style:{padding:"12px 0",borderBottom:de<Q.length-1?"1px solid var(--separator)":"none"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsxs("div",{children:[s.jsx("strong",{style:{fontFamily:"monospace"},children:X.key}),s.jsx("span",{style:{marginLeft:"10px",fontSize:"11px",padding:"2px 8px",borderRadius:"4px",background:X.set?"var(--accent)":"var(--surface)",color:X.set?"var(--text-on-accent)":"var(--text-secondary)"},children:X.set?"Set":"Not set"}),X.sensitive&&s.jsx("span",{style:{marginLeft:"6px",fontSize:"11px",color:"var(--text-secondary)"},children:"sensitive"})]}),s.jsxs("div",{style:{display:"flex",gap:"6px"},children:[s.jsx("button",{onClick:()=>C(X),style:{padding:"4px 12px",fontSize:"12px"},disabled:M,children:"Edit"}),X.set&&s.jsx("button",{onClick:()=>R(X.key),style:{padding:"4px 12px",fontSize:"12px",opacity:.7},disabled:M,children:"Remove"})]})]}),s.jsx("div",{style:{fontSize:"12px",color:"var(--text-secondary)",marginTop:"4px"},children:X.description}),X.set&&X.value&&v!==X.key&&s.jsx("div",{style:{marginTop:"6px",fontSize:"13px",color:"var(--text-secondary)",fontFamily:"monospace"},children:X.value}),v===X.key&&s.jsxs("div",{className:"form-group",style:{marginTop:"10px",marginBottom:0},children:[X.type==="boolean"?s.jsx(It,{value:z,options:["true","false"],onChange:N,style:{width:"100%",marginBottom:"8px"}}):X.type==="enum"&&X.options?s.jsx(It,{value:z,options:X.options,onChange:N,style:{width:"100%",marginBottom:"8px"}}):s.jsx("input",{type:X.type==="number"?"number":X.sensitive?"password":"text",value:z,onChange:ve=>N(ve.target.value),onKeyDown:ve=>ve.key==="Enter"&&P(X.key),placeholder:`Enter value for ${X.key}...`,autoFocus:!0,style:{width:"100%",marginBottom:"8px"}}),s.jsxs("div",{style:{display:"flex",gap:"6px"},children:[s.jsx("button",{onClick:()=>P(X.key),disabled:M||X.type!=="boolean"&&X.type!=="enum"&&!z.trim(),children:M?"Saving...":"Save"}),s.jsx("button",{onClick:K,style:{opacity:.7},disabled:M,children:"Cancel"})]})]})]},X.key))]},E))]})}function jh(){const[o,c]=y.useState(!1),[u,f]=y.useState(!0),[p,m]=y.useState(""),[k,T]=y.useState("");y.useEffect(()=>{th().then(_=>{c(_),f(!1)})},[]),y.useEffect(()=>{o&&_n.connect()},[o]);const v=async()=>{const _=p.trim();if(!_)return;T(""),await nh(_)?c(!0):T("Invalid token")};return u?s.jsx("div",{className:"login-container",children:s.jsx("div",{className:"login-card",children:s.jsx("p",{children:"Loading..."})})}):o?s.jsx(qp,{children:s.jsx(sh,{children:s.jsx(Hp,{children:s.jsxs(dt,{path:"/",element:s.jsx(lh,{}),children:[s.jsx(dt,{index:!0,element:s.jsx(ih,{})}),s.jsx(dt,{path:"tools",element:s.jsx(oh,{})}),s.jsx(dt,{path:"plugins",element:s.jsx(ah,{})}),s.jsx(dt,{path:"soul",element:s.jsx(ch,{})}),s.jsx(dt,{path:"memory",element:s.jsx(dh,{})}),s.jsx(dt,{path:"logs",element:s.jsx(hh,{})}),s.jsx(dt,{path:"workspace",element:s.jsx(gh,{})}),s.jsx(dt,{path:"tasks",element:s.jsx(vh,{})}),s.jsx(dt,{path:"mcp",element:s.jsx(xh,{})}),s.jsx(dt,{path:"config",element:s.jsx(kh,{})}),s.jsx(dt,{path:"*",element:s.jsx($p,{to:"/",replace:!0})})]})})})}):s.jsx("div",{className:"login-container",children:s.jsxs("div",{className:"login-card",children:[s.jsx("h1",{children:"Teleton"}),s.jsx("p",{children:"Enter your authentication token to access the dashboard."}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Token"}),s.jsx("input",{type:"password",value:p,onChange:_=>m(_.target.value),onKeyDown:_=>_.key==="Enter"&&v(),placeholder:"Paste token from config...",style:{width:"100%"}})]}),k&&s.jsx("div",{className:"alert error",style:{marginBottom:"1rem"},children:k}),s.jsx("button",{onClick:v,style:{width:"100%"},children:"Sign In"})]})})}Jf.createRoot(document.getElementById("root")).render(s.jsx(y.StrictMode,{children:s.jsx(jh,{})}));
|