@futurx/openclaw-operator-ui 0.1.5 โ 0.1.7
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.
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
var $y=Object.defineProperty;var Wy=(i,f,o)=>f in i?$y(i,f,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[f]=o;var Ut=(i,f,o)=>Wy(i,typeof f!="symbol"?f+"":f,o);(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const y of m)if(y.type==="childList")for(const x of y.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&r(x)}).observe(document,{childList:!0,subtree:!0});function o(m){const y={};return m.integrity&&(y.integrity=m.integrity),m.referrerPolicy&&(y.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?y.credentials="include":m.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function r(m){if(m.ep)return;m.ep=!0;const y=o(m);fetch(m.href,y)}})();var kc={exports:{}},Xn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var jm;function Fy(){if(jm)return Xn;jm=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function o(r,m,y){var x=null;if(y!==void 0&&(x=""+y),m.key!==void 0&&(x=""+m.key),"key"in m){y={};for(var S in m)S!=="key"&&(y[S]=m[S])}else y=m;return m=y.ref,{$$typeof:i,type:r,key:x,ref:m!==void 0?m:null,props:y}}return Xn.Fragment=f,Xn.jsx=o,Xn.jsxs=o,Xn}var Nm;function Iy(){return Nm||(Nm=1,kc.exports=Fy()),kc.exports}var s=Iy(),Kc={exports:{}},ae={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Em;function Py(){if(Em)return ae;Em=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),z=Symbol.iterator;function M(A){return A===null||typeof A!="object"?null:(A=z&&A[z]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,w={};function N(A,X,k){this.props=A,this.context=X,this.refs=w,this.updater=k||T}N.prototype.isReactComponent={},N.prototype.setState=function(A,X){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,X,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function G(){}G.prototype=N.prototype;function H(A,X,k){this.props=A,this.context=X,this.refs=w,this.updater=k||T}var V=H.prototype=new G;V.constructor=H,R(V,N.prototype),V.isPureReactComponent=!0;var F=Array.isArray;function te(){}var K={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function se(A,X,k){var $=k.ref;return{$$typeof:i,type:A,key:X,ref:$!==void 0?$:null,props:k}}function Te(A,X){return se(A.type,X,A.props)}function Ce(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function Qe(A){var X={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(k){return X[k]})}var Je=/\/+/g;function nt(A,X){return typeof A=="object"&&A!==null&&A.key!=null?Qe(""+A.key):X.toString(36)}function _e(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(te,te):(A.status="pending",A.then(function(X){A.status==="pending"&&(A.status="fulfilled",A.value=X)},function(X){A.status==="pending"&&(A.status="rejected",A.reason=X)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function L(A,X,k,$,ne){var ce=typeof A;(ce==="undefined"||ce==="boolean")&&(A=null);var xe=!1;if(A===null)xe=!0;else switch(ce){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(A.$$typeof){case i:case f:xe=!0;break;case j:return xe=A._init,L(xe(A._payload),X,k,$,ne)}}if(xe)return ne=ne(A),xe=$===""?"."+nt(A,0):$,F(ne)?(k="",xe!=null&&(k=xe.replace(Je,"$&/")+"/"),L(ne,X,k,"",function(Ja){return Ja})):ne!=null&&(Ce(ne)&&(ne=Te(ne,k+(ne.key==null||A&&A.key===ne.key?"":(""+ne.key).replace(Je,"$&/")+"/")+xe)),X.push(ne)),1;xe=0;var tt=$===""?".":$+":";if(F(A))for(var He=0;He<A.length;He++)$=A[He],ce=tt+nt($,He),xe+=L($,X,k,ce,ne);else if(He=M(A),typeof He=="function")for(A=He.call(A),He=0;!($=A.next()).done;)$=$.value,ce=tt+nt($,He++),xe+=L($,X,k,ce,ne);else if(ce==="object"){if(typeof A.then=="function")return L(_e(A),X,k,$,ne);throw X=String(A),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return xe}function Z(A,X,k){if(A==null)return A;var $=[],ne=0;return L(A,$,"","",function(ce){return X.call(k,ce,ne++)}),$}function ee(A){if(A._status===-1){var X=A._result;X=X(),X.then(function(k){(A._status===0||A._status===-1)&&(A._status=1,A._result=k)},function(k){(A._status===0||A._status===-1)&&(A._status=2,A._result=k)}),A._status===-1&&(A._status=0,A._result=X)}if(A._status===1)return A._result.default;throw A._result}var be=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Ee={map:Z,forEach:function(A,X,k){Z(A,function(){X.apply(this,arguments)},k)},count:function(A){var X=0;return Z(A,function(){X++}),X},toArray:function(A){return Z(A,function(X){return X})||[]},only:function(A){if(!Ce(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ae.Activity=b,ae.Children=Ee,ae.Component=N,ae.Fragment=o,ae.Profiler=m,ae.PureComponent=H,ae.StrictMode=r,ae.Suspense=g,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ae.__COMPILER_RUNTIME={__proto__:null,c:function(A){return K.H.useMemoCache(A)}},ae.cache=function(A){return function(){return A.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(A,X,k){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var $=R({},A.props),ne=A.key;if(X!=null)for(ce in X.key!==void 0&&(ne=""+X.key),X)!Q.call(X,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&X.ref===void 0||($[ce]=X[ce]);var ce=arguments.length-2;if(ce===1)$.children=k;else if(1<ce){for(var xe=Array(ce),tt=0;tt<ce;tt++)xe[tt]=arguments[tt+2];$.children=xe}return se(A.type,ne,$)},ae.createContext=function(A){return A={$$typeof:x,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:y,_context:A},A},ae.createElement=function(A,X,k){var $,ne={},ce=null;if(X!=null)for($ in X.key!==void 0&&(ce=""+X.key),X)Q.call(X,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ne[$]=X[$]);var xe=arguments.length-2;if(xe===1)ne.children=k;else if(1<xe){for(var tt=Array(xe),He=0;He<xe;He++)tt[He]=arguments[He+2];ne.children=tt}if(A&&A.defaultProps)for($ in xe=A.defaultProps,xe)ne[$]===void 0&&(ne[$]=xe[$]);return se(A,ce,ne)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(A){return{$$typeof:S,render:A}},ae.isValidElement=Ce,ae.lazy=function(A){return{$$typeof:j,_payload:{_status:-1,_result:A},_init:ee}},ae.memo=function(A,X){return{$$typeof:h,type:A,compare:X===void 0?null:X}},ae.startTransition=function(A){var X=K.T,k={};K.T=k;try{var $=A(),ne=K.S;ne!==null&&ne(k,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(te,be)}catch(ce){be(ce)}finally{X!==null&&k.types!==null&&(X.types=k.types),K.T=X}},ae.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ae.use=function(A){return K.H.use(A)},ae.useActionState=function(A,X,k){return K.H.useActionState(A,X,k)},ae.useCallback=function(A,X){return K.H.useCallback(A,X)},ae.useContext=function(A){return K.H.useContext(A)},ae.useDebugValue=function(){},ae.useDeferredValue=function(A,X){return K.H.useDeferredValue(A,X)},ae.useEffect=function(A,X){return K.H.useEffect(A,X)},ae.useEffectEvent=function(A){return K.H.useEffectEvent(A)},ae.useId=function(){return K.H.useId()},ae.useImperativeHandle=function(A,X,k){return K.H.useImperativeHandle(A,X,k)},ae.useInsertionEffect=function(A,X){return K.H.useInsertionEffect(A,X)},ae.useLayoutEffect=function(A,X){return K.H.useLayoutEffect(A,X)},ae.useMemo=function(A,X){return K.H.useMemo(A,X)},ae.useOptimistic=function(A,X){return K.H.useOptimistic(A,X)},ae.useReducer=function(A,X,k){return K.H.useReducer(A,X,k)},ae.useRef=function(A){return K.H.useRef(A)},ae.useState=function(A){return K.H.useState(A)},ae.useSyncExternalStore=function(A,X,k){return K.H.useSyncExternalStore(A,X,k)},ae.useTransition=function(){return K.H.useTransition()},ae.version="19.2.4",ae}var Am;function sr(){return Am||(Am=1,Kc.exports=Py()),Kc.exports}var p=sr(),Jc={exports:{}},Qn={},$c={exports:{}},Wc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Tm;function eg(){return Tm||(Tm=1,(function(i){function f(L,Z){var ee=L.length;L.push(Z);e:for(;0<ee;){var be=ee-1>>>1,Ee=L[be];if(0<m(Ee,Z))L[be]=Z,L[ee]=Ee,ee=be;else break e}}function o(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var Z=L[0],ee=L.pop();if(ee!==Z){L[0]=ee;e:for(var be=0,Ee=L.length,A=Ee>>>1;be<A;){var X=2*(be+1)-1,k=L[X],$=X+1,ne=L[$];if(0>m(k,ee))$<Ee&&0>m(ne,k)?(L[be]=ne,L[$]=ee,be=$):(L[be]=k,L[X]=ee,be=X);else if($<Ee&&0>m(ne,ee))L[be]=ne,L[$]=ee,be=$;else break e}}return Z}function m(L,Z){var ee=L.sortIndex-Z.sortIndex;return ee!==0?ee:L.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;i.unstable_now=function(){return y.now()}}else{var x=Date,S=x.now();i.unstable_now=function(){return x.now()-S}}var g=[],h=[],j=1,b=null,z=3,M=!1,T=!1,R=!1,w=!1,N=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function V(L){for(var Z=o(h);Z!==null;){if(Z.callback===null)r(h);else if(Z.startTime<=L)r(h),Z.sortIndex=Z.expirationTime,f(g,Z);else break;Z=o(h)}}function F(L){if(R=!1,V(L),!T)if(o(g)!==null)T=!0,te||(te=!0,Qe());else{var Z=o(h);Z!==null&&_e(F,Z.startTime-L)}}var te=!1,K=-1,Q=5,se=-1;function Te(){return w?!0:!(i.unstable_now()-se<Q)}function Ce(){if(w=!1,te){var L=i.unstable_now();se=L;var Z=!0;try{e:{T=!1,R&&(R=!1,G(K),K=-1),M=!0;var ee=z;try{t:{for(V(L),b=o(g);b!==null&&!(b.expirationTime>L&&Te());){var be=b.callback;if(typeof be=="function"){b.callback=null,z=b.priorityLevel;var Ee=be(b.expirationTime<=L);if(L=i.unstable_now(),typeof Ee=="function"){b.callback=Ee,V(L),Z=!0;break t}b===o(g)&&r(g),V(L)}else r(g);b=o(g)}if(b!==null)Z=!0;else{var A=o(h);A!==null&&_e(F,A.startTime-L),Z=!1}}break e}finally{b=null,z=ee,M=!1}Z=void 0}}finally{Z?Qe():te=!1}}}var Qe;if(typeof H=="function")Qe=function(){H(Ce)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,nt=Je.port2;Je.port1.onmessage=Ce,Qe=function(){nt.postMessage(null)}}else Qe=function(){N(Ce,0)};function _e(L,Z){K=N(function(){L(i.unstable_now())},Z)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(L){L.callback=null},i.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<L?Math.floor(1e3/L):5},i.unstable_getCurrentPriorityLevel=function(){return z},i.unstable_next=function(L){switch(z){case 1:case 2:case 3:var Z=3;break;default:Z=z}var ee=z;z=Z;try{return L()}finally{z=ee}},i.unstable_requestPaint=function(){w=!0},i.unstable_runWithPriority=function(L,Z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=z;z=L;try{return Z()}finally{z=ee}},i.unstable_scheduleCallback=function(L,Z,ee){var be=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?be+ee:be):ee=be,L){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=ee+Ee,L={id:j++,callback:Z,priorityLevel:L,startTime:ee,expirationTime:Ee,sortIndex:-1},ee>be?(L.sortIndex=ee,f(h,L),o(g)===null&&L===o(h)&&(R?(G(K),K=-1):R=!0,_e(F,ee-be))):(L.sortIndex=Ee,f(g,L),T||M||(T=!0,te||(te=!0,Qe()))),L},i.unstable_shouldYield=Te,i.unstable_wrapCallback=function(L){var Z=z;return function(){var ee=z;z=Z;try{return L.apply(this,arguments)}finally{z=ee}}}})(Wc)),Wc}var Cm;function tg(){return Cm||(Cm=1,$c.exports=eg()),$c.exports}var Fc={exports:{}},et={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var zm;function lg(){if(zm)return et;zm=1;var i=sr();function f(g){var h="https://react.dev/errors/"+g;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)h+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+g+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(f(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},m=Symbol.for("react.portal");function y(g,h,j){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:b==null?null:""+b,children:g,containerInfo:h,implementation:j}}var x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function S(g,h){if(g==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,et.createPortal=function(g,h){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(f(299));return y(g,h,null,j)},et.flushSync=function(g){var h=x.T,j=r.p;try{if(x.T=null,r.p=2,g)return g()}finally{x.T=h,r.p=j,r.d.f()}},et.preconnect=function(g,h){typeof g=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(g,h))},et.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},et.preinit=function(g,h){if(typeof g=="string"&&h&&typeof h.as=="string"){var j=h.as,b=S(j,h.crossOrigin),z=typeof h.integrity=="string"?h.integrity:void 0,M=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;j==="style"?r.d.S(g,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:z,fetchPriority:M}):j==="script"&&r.d.X(g,{crossOrigin:b,integrity:z,fetchPriority:M,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},et.preinitModule=function(g,h){if(typeof g=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var j=S(h.as,h.crossOrigin);r.d.M(g,{crossOrigin:j,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(g)},et.preload=function(g,h){if(typeof g=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var j=h.as,b=S(j,h.crossOrigin);r.d.L(g,j,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},et.preloadModule=function(g,h){if(typeof g=="string")if(h){var j=S(h.as,h.crossOrigin);r.d.m(g,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:j,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(g)},et.requestFormReset=function(g){r.d.r(g)},et.unstable_batchedUpdates=function(g,h){return g(h)},et.useFormState=function(g,h,j){return x.H.useFormState(g,h,j)},et.useFormStatus=function(){return x.H.useHostTransitionStatus()},et.version="19.2.4",et}var Mm;function ag(){if(Mm)return Fc.exports;Mm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Fc.exports=lg(),Fc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var wm;function ng(){if(wm)return Qn;wm=1;var i=tg(),f=sr(),o=ag();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function x(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 S(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(y(e)!==e)throw Error(r(188))}function h(e){var t=e.alternate;if(!t){if(t=y(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return g(n),e;if(u===a)return g(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=u;break}if(d===a){c=!0,a=n,l=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===l){c=!0,l=u,a=n;break}if(d===a){c=!0,a=u,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=j(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,z=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),H=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),Ce=Symbol.iterator;function Qe(e){return e===null||typeof e!="object"?null:(e=Ce&&e[Ce]||e["@@iterator"],typeof e=="function"?e:null)}var Je=Symbol.for("react.client.reference");function nt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Je?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case N:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case te:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case H:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:nt(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return nt(e(t))}catch{}}return null}var _e=Array.isArray,L=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},be=[],Ee=-1;function A(e){return{current:e}}function X(e){0>Ee||(e.current=be[Ee],be[Ee]=null,Ee--)}function k(e,t){Ee++,be[Ee]=e.current,e.current=t}var $=A(null),ne=A(null),ce=A(null),xe=A(null);function tt(e,t){switch(k(ce,t),k(ne,e),k($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=kd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X($),k($,e)}function He(){X($),X(ne),X(ce)}function Ja(e){e.memoizedState!==null&&k(xe,e);var t=$.current,l=kd(t,e.type);t!==l&&(k(ne,e),k($,l))}function Wn(e){ne.current===e&&(X($),X(ne)),xe.current===e&&(X(xe),Ln._currentValue=ee)}var zi,vr;function Yl(e){if(zi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);zi=t&&t[1]||"",vr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+zi+e+vr}var Mi=!1;function wi(e,t){if(!e||Mi)return"";Mi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(U){var D=U}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(U){D=U}e.call(Y.prototype)}}else{try{throw Error()}catch(U){D=U}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(U){if(U&&D&&typeof U.stack=="string")return[U.stack,D.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],d=u[1];if(c&&d){var v=c.split(`
|
|
44
|
+
`),_=d.split(`
|
|
45
|
+
`);for(n=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===v.length||n===_.length)for(a=v.length-1,n=_.length-1;1<=a&&0<=n&&v[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(v[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||v[a]!==_[n]){var q=`
|
|
46
|
+
`+v[a].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=a&&0<=n);break}}}finally{Mi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Yl(l):""}function Th(e,t){switch(e.tag){case 26:case 27:case 5:return Yl(e.type);case 16:return Yl("Lazy");case 13:return e.child!==t&&t!==null?Yl("Suspense Fallback"):Yl("Suspense");case 19:return Yl("SuspenseList");case 0:case 15:return wi(e.type,!1);case 11:return wi(e.type.render,!1);case 1:return wi(e.type,!0);case 31:return Yl("Activity");default:return""}}function br(e){try{var t="",l=null;do t+=Th(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Oi=Object.prototype.hasOwnProperty,_i=i.unstable_scheduleCallback,Ri=i.unstable_cancelCallback,Ch=i.unstable_shouldYield,zh=i.unstable_requestPaint,mt=i.unstable_now,Mh=i.unstable_getCurrentPriorityLevel,Sr=i.unstable_ImmediatePriority,jr=i.unstable_UserBlockingPriority,Fn=i.unstable_NormalPriority,wh=i.unstable_LowPriority,Nr=i.unstable_IdlePriority,Oh=i.log,_h=i.unstable_setDisableYieldValue,$a=null,ht=null;function hl(e){if(typeof Oh=="function"&&_h(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode($a,e)}catch{}}var yt=Math.clz32?Math.clz32:Uh,Rh=Math.log,Dh=Math.LN2;function Uh(e){return e>>>=0,e===0?32:31-(Rh(e)/Dh|0)|0}var In=256,Pn=262144,eu=4194304;function Gl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Gl(a):(c&=d,c!==0?n=Gl(c):l||(l=d&~e,l!==0&&(n=Gl(l))))):(d=a&~u,d!==0?n=Gl(d):c!==0?n=Gl(c):l||(l=a&~e,l!==0&&(n=Gl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Wa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Er(){var e=eu;return eu<<=1,(eu&62914560)===0&&(eu=4194304),e}function Di(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qh(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,v=e.expirationTimes,_=e.hiddenUpdates;for(l=c&~l;0<l;){var q=31-yt(l),Y=1<<q;d[q]=0,v[q]=-1;var D=_[q];if(D!==null)for(_[q]=null,q=0;q<D.length;q++){var U=D[q];U!==null&&(U.lane&=-536870913)}l&=~Y}a!==0&&Ar(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function Ar(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Tr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-yt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Cr(e,t){var l=t&-t;return l=(l&42)!==0?1:Ui(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ui(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zr(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:ym(e.type))}function Mr(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var yl=Math.random().toString(36).slice(2),$e="__reactFiber$"+yl,ut="__reactProps$"+yl,ia="__reactContainer$"+yl,qi="__reactEvents$"+yl,Lh="__reactListeners$"+yl,Bh="__reactHandles$"+yl,wr="__reactResources$"+yl,Ia="__reactMarker$"+yl;function Li(e){delete e[$e],delete e[ut],delete e[qi],delete e[Lh],delete e[Bh]}function sa(e){var t=e[$e];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ia]||l[$e]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Pd(e);e!==null;){if(l=e[$e])return l;e=Pd(e)}return t}e=l,l=e.parentNode}return null}function ca(e){if(e=e[$e]||e[ia]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ra(e){var t=e[wr];return t||(t=e[wr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[Ia]=!0}var Or=new Set,_r={};function Xl(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(_r[e]=t,e=0;e<t.length;e++)Or.add(t[e])}var Yh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Rr={},Dr={};function Gh(e){return Oi.call(Dr,e)?!0:Oi.call(Rr,e)?!1:Yh.test(e)?Dr[e]=!0:(Rr[e]=!0,!1)}function lu(e,t,l){if(Gh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function au(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Jt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ur(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xh(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bi(e){if(!e._valueTracker){var t=Ur(e)?"checked":"value";e._valueTracker=Xh(e,t,""+e[t])}}function Hr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ur(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function nu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Qh=/[\n"\\]/g;function Tt(e){return e.replace(Qh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yi(e,t,l,a,n,u,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Gi(e,c,At(t)):l!=null?Gi(e,c,At(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+At(d):e.removeAttribute("name")}function qr(e,t,l,a,n,u,c,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Bi(e);return}l=l!=null?""+At(l):"",t=t!=null?""+At(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Bi(e)}function Gi(e,t,l){t==="number"&&nu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function oa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+At(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Lr(e,t,l){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+At(l):""}function Br(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(_e(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=At(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Bi(e)}function da(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Vh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Vh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Gr(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Yr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Yr(e,u,t[u])}function Xi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),kh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function uu(e){return kh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var Qi=null;function Vi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,ha=null;function Xr(e){var t=ca(e);if(t&&(e=t.stateNode)){var l=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Yi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ut]||null;if(!n)throw Error(r(90));Yi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Hr(a)}break e;case"textarea":Lr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&oa(e,!!l.multiple,t,!1)}}}var Zi=!1;function Qr(e,t,l){if(Zi)return e(t,l);Zi=!0;try{var a=e(t);return a}finally{if(Zi=!1,(ma!==null||ha!==null)&&(ku(),ma&&(t=ma,e=ha,ha=ma=null,Xr(t),e)))for(t=0;t<e.length;t++)Xr(e[t])}}function en(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ut]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ki=!1;if(Wt)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){ki=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{ki=!1}var gl=null,Ki=null,iu=null;function Vr(){if(iu)return iu;var e,t=Ki,l=t.length,a,n="value"in gl?gl.value:gl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return iu=n.slice(e,1<a?1-a:void 0)}function su(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 cu(){return!0}function Zr(){return!1}function it(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?cu:Zr,this.isPropagationStopped=Zr,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=cu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=cu)},persist:function(){},isPersistent:cu}),t}var Ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ru=it(Ql),ln=b({},Ql,{view:0,detail:0}),Kh=it(ln),Ji,$i,an,fu=b({},ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fi,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!==an&&(an&&e.type==="mousemove"?(Ji=e.screenX-an.screenX,$i=e.screenY-an.screenY):$i=Ji=0,an=e),Ji)},movementY:function(e){return"movementY"in e?e.movementY:$i}}),kr=it(fu),Jh=b({},fu,{dataTransfer:0}),$h=it(Jh),Wh=b({},ln,{relatedTarget:0}),Wi=it(Wh),Fh=b({},Ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Ih=it(Fh),Ph=b({},Ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e0=it(Ph),t0=b({},Ql,{data:0}),Kr=it(t0),l0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a0={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"},n0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=n0[e])?!!t[e]:!1}function Fi(){return u0}var i0=b({},ln,{key:function(e){if(e.key){var t=l0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=su(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fi,charCode:function(e){return e.type==="keypress"?su(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?su(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s0=it(i0),c0=b({},fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jr=it(c0),r0=b({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fi}),f0=it(r0),o0=b({},Ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),d0=it(o0),m0=b({},fu,{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}),h0=it(m0),y0=b({},Ql,{newState:0,oldState:0}),g0=it(y0),x0=[9,13,27,32],Ii=Wt&&"CompositionEvent"in window,nn=null;Wt&&"documentMode"in document&&(nn=document.documentMode);var p0=Wt&&"TextEvent"in window&&!nn,$r=Wt&&(!Ii||nn&&8<nn&&11>=nn),Wr=" ",Fr=!1;function Ir(e,t){switch(e){case"keyup":return x0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ya=!1;function v0(e,t){switch(e){case"compositionend":return Pr(t);case"keypress":return t.which!==32?null:(Fr=!0,Wr);case"textInput":return e=t.data,e===Wr&&Fr?null:e;default:return null}}function b0(e,t){if(ya)return e==="compositionend"||!Ii&&Ir(e,t)?(e=Vr(),iu=Ki=gl=null,ya=!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 $r&&t.locale!=="ko"?null:t.data;default:return null}}var S0={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 ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!S0[e.type]:t==="textarea"}function tf(e,t,l,a){ma?ha?ha.push(a):ha=[a]:ma=a,t=Pu(t,"onChange"),0<t.length&&(l=new ru("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var un=null,sn=null;function j0(e){Bd(e,0)}function ou(e){var t=Pa(e);if(Hr(t))return e}function lf(e,t){if(e==="change")return t}var af=!1;if(Wt){var Pi;if(Wt){var es="oninput"in document;if(!es){var nf=document.createElement("div");nf.setAttribute("oninput","return;"),es=typeof nf.oninput=="function"}Pi=es}else Pi=!1;af=Pi&&(!document.documentMode||9<document.documentMode)}function uf(){un&&(un.detachEvent("onpropertychange",sf),sn=un=null)}function sf(e){if(e.propertyName==="value"&&ou(sn)){var t=[];tf(t,sn,e,Vi(e)),Qr(j0,t)}}function N0(e,t,l){e==="focusin"?(uf(),un=t,sn=l,un.attachEvent("onpropertychange",sf)):e==="focusout"&&uf()}function E0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ou(sn)}function A0(e,t){if(e==="click")return ou(t)}function T0(e,t){if(e==="input"||e==="change")return ou(t)}function C0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:C0;function cn(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Oi.call(t,n)||!gt(e[n],t[n]))return!1}return!0}function cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rf(e,t){var l=cf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=cf(l)}}function ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function of(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=nu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=nu(e.document)}return t}function ts(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var z0=Wt&&"documentMode"in document&&11>=document.documentMode,ga=null,ls=null,rn=null,as=!1;function df(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;as||ga==null||ga!==nu(a)||(a=ga,"selectionStart"in a&&ts(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),rn&&cn(rn,a)||(rn=a,a=Pu(ls,"onSelect"),0<a.length&&(t=new ru("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ga)))}function Vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var xa={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},ns={},mf={};Wt&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete xa.animationend.animation,delete xa.animationiteration.animation,delete xa.animationstart.animation),"TransitionEvent"in window||delete xa.transitionend.transition);function Zl(e){if(ns[e])return ns[e];if(!xa[e])return e;var t=xa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in mf)return ns[e]=t[l];return e}var hf=Zl("animationend"),yf=Zl("animationiteration"),gf=Zl("animationstart"),M0=Zl("transitionrun"),w0=Zl("transitionstart"),O0=Zl("transitioncancel"),xf=Zl("transitionend"),pf=new Map,us="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");us.push("scrollEnd");function qt(e,t){pf.set(e,t),Xl(t,[e])}var du=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ct=[],pa=0,is=0;function mu(){for(var e=pa,t=is=pa=0;t<e;){var l=Ct[t];Ct[t++]=null;var a=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var u=Ct[t];if(Ct[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&vf(l,n,u)}}function hu(e,t,l,a){Ct[pa++]=e,Ct[pa++]=t,Ct[pa++]=l,Ct[pa++]=a,is|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ss(e,t,l,a){return hu(e,t,l,a),yu(e)}function kl(e,t){return hu(e,null,null,t),yu(e)}function vf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-yt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function yu(e){if(50<On)throw On=0,gc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var va={};function _0(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,l,a){return new _0(e,t,l,a)}function cs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=xt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function bf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")cs(e)&&(c=1);else if(typeof e=="string")c=qy(e,l,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=xt(31,l,t,n),e.elementType=se,e.lanes=u,e;case R:return Kl(l.children,n,u,t);case w:c=8,n|=24;break;case N:return e=xt(12,l,t,n|2),e.elementType=N,e.lanes=u,e;case F:return e=xt(13,l,t,n),e.elementType=F,e.lanes=u,e;case te:return e=xt(19,l,t,n),e.elementType=te,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:c=10;break e;case G:c=9;break e;case V:c=11;break e;case K:c=14;break e;case Q:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=xt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Kl(e,t,l,a){return e=xt(7,e,a,t),e.lanes=l,e}function rs(e,t,l){return e=xt(6,e,null,t),e.lanes=l,e}function Sf(e){var t=xt(18,null,null,0);return t.stateNode=e,t}function fs(e,t,l){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jf=new WeakMap;function zt(e,t){if(typeof e=="object"&&e!==null){var l=jf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:br(t)},jf.set(e,t),t)}return{value:e,source:t,stack:br(t)}}var ba=[],Sa=0,xu=null,fn=0,Mt=[],wt=0,xl=null,Gt=1,Xt="";function It(e,t){ba[Sa++]=fn,ba[Sa++]=xu,xu=e,fn=t}function Nf(e,t,l){Mt[wt++]=Gt,Mt[wt++]=Xt,Mt[wt++]=xl,xl=e;var a=Gt;e=Xt;var n=32-yt(a)-1;a&=~(1<<n),l+=1;var u=32-yt(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Gt=1<<32-yt(t)+n|l<<n|a,Xt=u+e}else Gt=1<<u|l<<n|a,Xt=e}function os(e){e.return!==null&&(It(e,1),Nf(e,1,0))}function ds(e){for(;e===xu;)xu=ba[--Sa],ba[Sa]=null,fn=ba[--Sa],ba[Sa]=null;for(;e===xl;)xl=Mt[--wt],Mt[wt]=null,Xt=Mt[--wt],Mt[wt]=null,Gt=Mt[--wt],Mt[wt]=null}function Ef(e,t){Mt[wt++]=Gt,Mt[wt++]=Xt,Mt[wt++]=xl,Gt=t.id,Xt=t.overflow,xl=e}var We=null,ze=null,me=!1,pl=null,Ot=!1,ms=Error(r(519));function vl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw on(zt(t,e)),ms}function Af(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[$e]=e,t[ut]=a,l){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(l=0;l<Rn.length;l++)fe(Rn[l],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),qr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),Br(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Qd(t.textContent,l)?(a.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),a.onScroll!=null&&fe("scroll",t),a.onScrollEnd!=null&&fe("scrollend",t),a.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||vl(e,!0)}function Tf(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:We=We.return}}function ja(e){if(e!==We)return!1;if(!me)return Tf(e),me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Oc(e.type,e.memoizedProps)),l=!l),l&&ze&&vl(e),Tf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));ze=Id(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));ze=Id(e)}else t===27?(t=ze,Rl(e.type)?(e=Hc,Hc=null,ze=e):ze=t):ze=We?Rt(e.stateNode.nextSibling):null;return!0}function Jl(){ze=We=null,me=!1}function hs(){var e=pl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),pl=null),e}function on(e){pl===null?pl=[e]:pl.push(e)}var ys=A(null),$l=null,Pt=null;function bl(e,t,l){k(ys,t._currentValue),t._currentValue=l}function el(e){e._currentValue=ys.current,X(ys)}function gs(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function xs(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var v=0;v<t.length;v++)if(d.context===t[v]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),gs(u.return,l,e),a||(c=null);break e}u=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),gs(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Na(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;gt(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===xe.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ln):e=[Ln])}n=n.return}e!==null&&xs(t,e,l,a),t.flags|=262144}function pu(e){for(e=e.firstContext;e!==null;){if(!gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wl(e){$l=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Fe(e){return Cf($l,e)}function vu(e,t){return $l===null&&Wl(e),Cf(e,t)}function Cf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Pt===null){if(e===null)throw Error(r(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return l}var R0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},D0=i.unstable_scheduleCallback,U0=i.unstable_NormalPriority,Be={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ps(){return{controller:new R0,data:new Map,refCount:0}}function dn(e){e.refCount--,e.refCount===0&&D0(U0,function(){e.controller.abort()})}var mn=null,vs=0,Ea=0,Aa=null;function H0(e,t){if(mn===null){var l=mn=[];vs=0,Ea=jc(),Aa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return vs++,t.then(zf,zf),t}function zf(){if(--vs===0&&mn!==null){Aa!==null&&(Aa.status="fulfilled");var e=mn;mn=null,Ea=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function q0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Mf=L.S;L.S=function(e,t){md=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&H0(e,t),Mf!==null&&Mf(e,t)};var Fl=A(null);function bs(){var e=Fl.current;return e!==null?e:Ae.pooledCache}function bu(e,t){t===null?k(Fl,Fl.current):k(Fl,t.pool)}function wf(){var e=bs();return e===null?null:{parent:Be._currentValue,pool:e}}var Ta=Error(r(460)),Ss=Error(r(474)),Su=Error(r(542)),ju={then:function(){}};function Of(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _f(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then($t,$t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Df(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Df(e),e}throw Pl=t,Ta}}function Il(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Pl=l,Ta):l}}var Pl=null;function Rf(){if(Pl===null)throw Error(r(459));var e=Pl;return Pl=null,e}function Df(e){if(e===Ta||e===Su)throw Error(r(483))}var Ca=null,hn=0;function Nu(e){var t=hn;return hn+=1,Ca===null&&(Ca=[]),_f(Ca,e,t)}function yn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Eu(e,t){throw t.$$typeof===z?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Uf(e){function t(C,E){if(e){var O=C.deletions;O===null?(C.deletions=[E],C.flags|=16):O.push(E)}}function l(C,E){if(!e)return null;for(;E!==null;)t(C,E),E=E.sibling;return null}function a(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function n(C,E){return C=Ft(C,E),C.index=0,C.sibling=null,C}function u(C,E,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<E?(C.flags|=67108866,E):O):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function c(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function d(C,E,O,B){return E===null||E.tag!==6?(E=rs(O,C.mode,B),E.return=C,E):(E=n(E,O),E.return=C,E)}function v(C,E,O,B){var I=O.type;return I===R?q(C,E,O.props.children,B,O.key):E!==null&&(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Q&&Il(I)===E.type)?(E=n(E,O.props),yn(E,O),E.return=C,E):(E=gu(O.type,O.key,O.props,null,C.mode,B),yn(E,O),E.return=C,E)}function _(C,E,O,B){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=fs(O,C.mode,B),E.return=C,E):(E=n(E,O.children||[]),E.return=C,E)}function q(C,E,O,B,I){return E===null||E.tag!==7?(E=Kl(O,C.mode,B,I),E.return=C,E):(E=n(E,O),E.return=C,E)}function Y(C,E,O){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=rs(""+E,C.mode,O),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case M:return O=gu(E.type,E.key,E.props,null,C.mode,O),yn(O,E),O.return=C,O;case T:return E=fs(E,C.mode,O),E.return=C,E;case Q:return E=Il(E),Y(C,E,O)}if(_e(E)||Qe(E))return E=Kl(E,C.mode,O,null),E.return=C,E;if(typeof E.then=="function")return Y(C,Nu(E),O);if(E.$$typeof===H)return Y(C,vu(C,E),O);Eu(C,E)}return null}function D(C,E,O,B){var I=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return I!==null?null:d(C,E,""+O,B);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case M:return O.key===I?v(C,E,O,B):null;case T:return O.key===I?_(C,E,O,B):null;case Q:return O=Il(O),D(C,E,O,B)}if(_e(O)||Qe(O))return I!==null?null:q(C,E,O,B,null);if(typeof O.then=="function")return D(C,E,Nu(O),B);if(O.$$typeof===H)return D(C,E,vu(C,O),B);Eu(C,O)}return null}function U(C,E,O,B,I){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return C=C.get(O)||null,d(E,C,""+B,I);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case M:return C=C.get(B.key===null?O:B.key)||null,v(E,C,B,I);case T:return C=C.get(B.key===null?O:B.key)||null,_(E,C,B,I);case Q:return B=Il(B),U(C,E,O,B,I)}if(_e(B)||Qe(B))return C=C.get(O)||null,q(E,C,B,I,null);if(typeof B.then=="function")return U(C,E,O,Nu(B),I);if(B.$$typeof===H)return U(C,E,O,vu(E,B),I);Eu(E,B)}return null}function J(C,E,O,B){for(var I=null,he=null,W=E,ie=E=0,de=null;W!==null&&ie<O.length;ie++){W.index>ie?(de=W,W=null):de=W.sibling;var ye=D(C,W,O[ie],B);if(ye===null){W===null&&(W=de);break}e&&W&&ye.alternate===null&&t(C,W),E=u(ye,E,ie),he===null?I=ye:he.sibling=ye,he=ye,W=de}if(ie===O.length)return l(C,W),me&&It(C,ie),I;if(W===null){for(;ie<O.length;ie++)W=Y(C,O[ie],B),W!==null&&(E=u(W,E,ie),he===null?I=W:he.sibling=W,he=W);return me&&It(C,ie),I}for(W=a(W);ie<O.length;ie++)de=U(W,C,ie,O[ie],B),de!==null&&(e&&de.alternate!==null&&W.delete(de.key===null?ie:de.key),E=u(de,E,ie),he===null?I=de:he.sibling=de,he=de);return e&&W.forEach(function(Ll){return t(C,Ll)}),me&&It(C,ie),I}function P(C,E,O,B){if(O==null)throw Error(r(151));for(var I=null,he=null,W=E,ie=E=0,de=null,ye=O.next();W!==null&&!ye.done;ie++,ye=O.next()){W.index>ie?(de=W,W=null):de=W.sibling;var Ll=D(C,W,ye.value,B);if(Ll===null){W===null&&(W=de);break}e&&W&&Ll.alternate===null&&t(C,W),E=u(Ll,E,ie),he===null?I=Ll:he.sibling=Ll,he=Ll,W=de}if(ye.done)return l(C,W),me&&It(C,ie),I;if(W===null){for(;!ye.done;ie++,ye=O.next())ye=Y(C,ye.value,B),ye!==null&&(E=u(ye,E,ie),he===null?I=ye:he.sibling=ye,he=ye);return me&&It(C,ie),I}for(W=a(W);!ye.done;ie++,ye=O.next())ye=U(W,C,ie,ye.value,B),ye!==null&&(e&&ye.alternate!==null&&W.delete(ye.key===null?ie:ye.key),E=u(ye,E,ie),he===null?I=ye:he.sibling=ye,he=ye);return e&&W.forEach(function(Jy){return t(C,Jy)}),me&&It(C,ie),I}function Ne(C,E,O,B){if(typeof O=="object"&&O!==null&&O.type===R&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case M:e:{for(var I=O.key;E!==null;){if(E.key===I){if(I=O.type,I===R){if(E.tag===7){l(C,E.sibling),B=n(E,O.props.children),B.return=C,C=B;break e}}else if(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Q&&Il(I)===E.type){l(C,E.sibling),B=n(E,O.props),yn(B,O),B.return=C,C=B;break e}l(C,E);break}else t(C,E);E=E.sibling}O.type===R?(B=Kl(O.props.children,C.mode,B,O.key),B.return=C,C=B):(B=gu(O.type,O.key,O.props,null,C.mode,B),yn(B,O),B.return=C,C=B)}return c(C);case T:e:{for(I=O.key;E!==null;){if(E.key===I)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){l(C,E.sibling),B=n(E,O.children||[]),B.return=C,C=B;break e}else{l(C,E);break}else t(C,E);E=E.sibling}B=fs(O,C.mode,B),B.return=C,C=B}return c(C);case Q:return O=Il(O),Ne(C,E,O,B)}if(_e(O))return J(C,E,O,B);if(Qe(O)){if(I=Qe(O),typeof I!="function")throw Error(r(150));return O=I.call(O),P(C,E,O,B)}if(typeof O.then=="function")return Ne(C,E,Nu(O),B);if(O.$$typeof===H)return Ne(C,E,vu(C,O),B);Eu(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,E!==null&&E.tag===6?(l(C,E.sibling),B=n(E,O),B.return=C,C=B):(l(C,E),B=rs(O,C.mode,B),B.return=C,C=B),c(C)):l(C,E)}return function(C,E,O,B){try{hn=0;var I=Ne(C,E,O,B);return Ca=null,I}catch(W){if(W===Ta||W===Su)throw W;var he=xt(29,W,null,C.mode);return he.lanes=B,he.return=C,he}finally{}}}var ea=Uf(!0),Hf=Uf(!1),Sl=!1;function js(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ns(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function jl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ge&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=yu(e),vf(e,null,l),t}return hu(e,a,t,l),yu(e)}function gn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Tr(e,l)}}function Es(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var As=!1;function xn(){if(As){var e=Aa;if(e!==null)throw e}}function pn(e,t,l,a){As=!1;var n=e.updateQueue;Sl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var v=d,_=v.next;v.next=null,c===null?u=_:c.next=_,c=v;var q=e.alternate;q!==null&&(q=q.updateQueue,d=q.lastBaseUpdate,d!==c&&(d===null?q.firstBaseUpdate=_:d.next=_,q.lastBaseUpdate=v))}if(u!==null){var Y=n.baseState;c=0,q=_=v=null,d=u;do{var D=d.lane&-536870913,U=D!==d.lane;if(U?(oe&D)===D:(a&D)===D){D!==0&&D===Ea&&(As=!0),q!==null&&(q=q.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,P=d;D=t;var Ne=l;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){Y=J.call(Ne,Y,D);break e}Y=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,D=typeof J=="function"?J.call(Ne,Y,D):J,D==null)break e;Y=b({},Y,D);break e;case 2:Sl=!0}}D=d.callback,D!==null&&(e.flags|=64,U&&(e.flags|=8192),U=n.callbacks,U===null?n.callbacks=[D]:U.push(D))}else U={lane:D,tag:d.tag,payload:d.payload,callback:d.callback,next:null},q===null?(_=q=U,v=Y):q=q.next=U,c|=D;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;U=d,d=U.next,U.next=null,n.lastBaseUpdate=U,n.shared.pending=null}}while(!0);q===null&&(v=Y),n.baseState=v,n.firstBaseUpdate=_,n.lastBaseUpdate=q,u===null&&(n.shared.lanes=0),zl|=c,e.lanes=c,e.memoizedState=Y}}function qf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Lf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)qf(l[e],t)}var za=A(null),Au=A(0);function Bf(e,t){e=rl,k(Au,e),k(za,t),rl=e|t.baseLanes}function Ts(){k(Au,rl),k(za,za.current)}function Cs(){rl=Au.current,X(za),X(Au)}var pt=A(null),_t=null;function El(e){var t=e.alternate;k(qe,qe.current&1),k(pt,e),_t===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(_t=e)}function zs(e){k(qe,qe.current),k(pt,e),_t===null&&(_t=e)}function Yf(e){e.tag===22?(k(qe,qe.current),k(pt,e),_t===null&&(_t=e)):Al()}function Al(){k(qe,qe.current),k(pt,pt.current)}function vt(e){X(pt),_t===e&&(_t=null),X(qe)}var qe=A(0);function Tu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Dc(l)||Uc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tl=0,ue=null,Se=null,Ye=null,Cu=!1,Ma=!1,ta=!1,zu=0,vn=0,wa=null,L0=0;function De(){throw Error(r(321))}function Ms(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!gt(e[l],t[l]))return!1;return!0}function ws(e,t,l,a,n,u){return tl=u,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Eo:Zs,ta=!1,u=l(a,n),ta=!1,Ma&&(u=Xf(t,l,a,n)),Gf(e),u}function Gf(e){L.H=jn;var t=Se!==null&&Se.next!==null;if(tl=0,Ye=Se=ue=null,Cu=!1,vn=0,wa=null,t)throw Error(r(300));e===null||Ge||(e=e.dependencies,e!==null&&pu(e)&&(Ge=!0))}function Xf(e,t,l,a){ue=e;var n=0;do{if(Ma&&(wa=null),vn=0,Ma=!1,25<=n)throw Error(r(301));if(n+=1,Ye=Se=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}L.H=Ao,u=t(l,a)}while(Ma);return u}function B0(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?bn(t):t,e=e.useState()[0],(Se!==null?Se.memoizedState:null)!==e&&(ue.flags|=1024),t}function Os(){var e=zu!==0;return zu=0,e}function _s(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Rs(e){if(Cu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cu=!1}tl=0,Ye=Se=ue=null,Ma=!1,vn=zu=0,wa=null}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?ue.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Le(){if(Se===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=Ye===null?ue.memoizedState:Ye.next;if(t!==null)Ye=t,Se=e;else{if(e===null)throw ue.alternate===null?Error(r(467)):Error(r(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Ye===null?ue.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function Mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bn(e){var t=vn;return vn+=1,wa===null&&(wa=[]),e=_f(wa,e,t),t=ue,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Eo:Zs),e}function wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bn(e);if(e.$$typeof===H)return Fe(e)}throw Error(r(438,String(e)))}function Ds(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Mu(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Te;return t.index++,l}function ll(e,t){return typeof t=="function"?t(e):t}function Ou(e){var t=Le();return Us(t,Se,e)}function Us(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=c=null,v=null,_=t,q=!1;do{var Y=_.lane&-536870913;if(Y!==_.lane?(oe&Y)===Y:(tl&Y)===Y){var D=_.revertLane;if(D===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),Y===Ea&&(q=!0);else if((tl&D)===D){_=_.next,D===Ea&&(q=!0);continue}else Y={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},v===null?(d=v=Y,c=u):v=v.next=Y,ue.lanes|=D,zl|=D;Y=_.action,ta&&l(u,Y),u=_.hasEagerState?_.eagerState:l(u,Y)}else D={lane:Y,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},v===null?(d=v=D,c=u):v=v.next=D,ue.lanes|=Y,zl|=Y;_=_.next}while(_!==null&&_!==t);if(v===null?c=u:v.next=d,!gt(u,e.memoizedState)&&(Ge=!0,q&&(l=Aa,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=v,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Hs(e){var t=Le(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);gt(u,t.memoizedState)||(Ge=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Qf(e,t,l){var a=ue,n=Le(),u=me;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!gt((Se||n).memoizedState,l);if(c&&(n.memoizedState=l,Ge=!0),n=n.queue,Bs(kf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ye!==null&&Ye.memoizedState.tag&1){if(a.flags|=2048,Oa(9,{destroy:void 0},Zf.bind(null,a,n,l,t),null),Ae===null)throw Error(r(349));u||(tl&127)!==0||Vf(a,t,l)}return l}function Vf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=Mu(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Zf(e,t,l,a){t.value=l,t.getSnapshot=a,Kf(t)&&Jf(e)}function kf(e,t,l){return l(function(){Kf(t)&&Jf(e)})}function Kf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!gt(e,l)}catch{return!0}}function Jf(e){var t=kl(e,2);t!==null&&ot(t,e,2)}function qs(e){var t=lt();if(typeof e=="function"){var l=e;if(e=l(),ta){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t}function $f(e,t,l,a){return e.baseState=l,Us(e,Se,typeof a=="function"?a:ll)}function Y0(e,t,l,a,n){if(Du(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};L.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Wf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Wf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=L.T,c={};L.T=c;try{var d=l(n,a),v=L.S;v!==null&&v(c,d),Ff(e,t,d)}catch(_){Ls(e,t,_)}finally{u!==null&&c.types!==null&&(u.types=c.types),L.T=u}}else try{u=l(n,a),Ff(e,t,u)}catch(_){Ls(e,t,_)}}function Ff(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){If(e,t,a)},function(a){return Ls(e,t,a)}):If(e,t,l)}function If(e,t,l){t.status="fulfilled",t.value=l,Pf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Wf(e,l)))}function Ls(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Pf(t),t=t.next;while(t!==a)}e.action=null}function Pf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function eo(e,t){return t}function to(e,t){if(me){var l=Ae.formState;if(l!==null){e:{var a=ue;if(me){if(ze){t:{for(var n=ze,u=Ot;n.nodeType!==8;){if(!u){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){ze=Rt(n.nextSibling),a=n.data==="F!";break e}}vl(a)}a=!1}a&&(t=l[0])}}return l=lt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:t},l.queue=a,l=So.bind(null,ue,a),a.dispatch=l,a=qs(!1),u=Vs.bind(null,ue,!1,a.queue),a=lt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Y0.bind(null,ue,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function lo(e){var t=Le();return ao(t,Se,e)}function ao(e,t,l){if(t=Us(e,t,eo)[0],e=Ou(ll)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=bn(t)}catch(c){throw c===Ta?Su:c}else a=t;t=Le();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Oa(9,{destroy:void 0},G0.bind(null,n,l),null)),[a,u,e]}function G0(e,t){e.action=t}function no(e){var t=Le(),l=Se;if(l!==null)return ao(t,l,e);Le(),t=t.memoizedState,l=Le();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Oa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=Mu(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function uo(){return Le().memoizedState}function _u(e,t,l,a){var n=lt();ue.flags|=e,n.memoizedState=Oa(1|t,{destroy:void 0},l,a===void 0?null:a)}function Ru(e,t,l,a){var n=Le();a=a===void 0?null:a;var u=n.memoizedState.inst;Se!==null&&a!==null&&Ms(a,Se.memoizedState.deps)?n.memoizedState=Oa(t,u,l,a):(ue.flags|=e,n.memoizedState=Oa(1|t,u,l,a))}function io(e,t){_u(8390656,8,e,t)}function Bs(e,t){Ru(2048,8,e,t)}function X0(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=Mu(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function so(e){var t=Le().memoizedState;return X0({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function co(e,t){return Ru(4,2,e,t)}function ro(e,t){return Ru(4,4,e,t)}function fo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function oo(e,t,l){l=l!=null?l.concat([e]):null,Ru(4,4,fo.bind(null,t,e),l)}function Ys(){}function mo(e,t){var l=Le();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ms(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function ho(e,t){var l=Le();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ms(t,a[1]))return a[0];if(a=e(),ta){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a}function Gs(e,t,l){return l===void 0||(tl&1073741824)!==0&&(oe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=yd(),ue.lanes|=e,zl|=e,l)}function yo(e,t,l,a){return gt(l,t)?l:za.current!==null?(e=Gs(e,l,a),gt(e,t)||(Ge=!0),e):(tl&42)===0||(tl&1073741824)!==0&&(oe&261930)===0?(Ge=!0,e.memoizedState=l):(e=yd(),ue.lanes|=e,zl|=e,t)}function go(e,t,l,a,n){var u=Z.p;Z.p=u!==0&&8>u?u:8;var c=L.T,d={};L.T=d,Vs(e,!1,t,l);try{var v=n(),_=L.S;if(_!==null&&_(d,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var q=q0(v,a);Sn(e,t,q,jt(e))}else Sn(e,t,a,jt(e))}catch(Y){Sn(e,t,{then:function(){},status:"rejected",reason:Y},jt())}finally{Z.p=u,c!==null&&d.types!==null&&(c.types=d.types),L.T=c}}function Q0(){}function Xs(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=xo(e).queue;go(e,n,t,ee,l===null?Q0:function(){return po(e),l(a)})}function xo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function po(e){var t=xo(e);t.next===null&&(t=e.alternate.memoizedState),Sn(e,t.next.queue,{},jt())}function Qs(){return Fe(Ln)}function vo(){return Le().memoizedState}function bo(){return Le().memoizedState}function V0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=jt();e=jl(l);var a=Nl(t,e,l);a!==null&&(ot(a,t,l),gn(a,t,l)),t={cache:ps()},e.payload=t;return}t=t.return}}function Z0(e,t,l){var a=jt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Du(e)?jo(t,l):(l=ss(e,t,l,a),l!==null&&(ot(l,e,a),No(l,t,a)))}function So(e,t,l){var a=jt();Sn(e,t,l,a)}function Sn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Du(e))jo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,d=u(c,l);if(n.hasEagerState=!0,n.eagerState=d,gt(d,c))return hu(e,t,n,0),Ae===null&&mu(),!1}catch{}finally{}if(l=ss(e,t,n,a),l!==null)return ot(l,e,a),No(l,t,a),!0}return!1}function Vs(e,t,l,a){if(a={lane:2,revertLane:jc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Du(e)){if(t)throw Error(r(479))}else t=ss(e,l,a,2),t!==null&&ot(t,e,2)}function Du(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function jo(e,t){Ma=Cu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function No(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Tr(e,l)}}var jn={readContext:Fe,use:wu,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};jn.useEffectEvent=De;var Eo={readContext:Fe,use:wu,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:io,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_u(4194308,4,fo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _u(4194308,4,e,t)},useInsertionEffect:function(e,t){_u(4,2,e,t)},useMemo:function(e,t){var l=lt();t=t===void 0?null:t;var a=e();if(ta){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=lt();if(l!==void 0){var n=l(t);if(ta){hl(!0);try{l(t)}finally{hl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Z0.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:function(e){e=qs(e);var t=e.queue,l=So.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ys,useDeferredValue:function(e,t){var l=lt();return Gs(l,e,t)},useTransition:function(){var e=qs(!1);return e=go.bind(null,ue,e.queue,!0,!1),lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=lt();if(me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ae===null)throw Error(r(349));(oe&127)!==0||Vf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,io(kf.bind(null,a,u,e),[e]),a.flags|=2048,Oa(9,{destroy:void 0},Zf.bind(null,a,u,l,t),null),l},useId:function(){var e=lt(),t=Ae.identifierPrefix;if(me){var l=Xt,a=Gt;l=(a&~(1<<32-yt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=L0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qs,useFormState:to,useActionState:to,useOptimistic:function(e){var t=lt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Vs.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ds,useCacheRefresh:function(){return lt().memoizedState=V0.bind(null,ue)},useEffectEvent:function(e){var t=lt(),l={impl:e};return t.memoizedState=l,function(){if((ge&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Zs={readContext:Fe,use:wu,useCallback:mo,useContext:Fe,useEffect:Bs,useImperativeHandle:oo,useInsertionEffect:co,useLayoutEffect:ro,useMemo:ho,useReducer:Ou,useRef:uo,useState:function(){return Ou(ll)},useDebugValue:Ys,useDeferredValue:function(e,t){var l=Le();return yo(l,Se.memoizedState,e,t)},useTransition:function(){var e=Ou(ll)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Qf,useId:vo,useHostTransitionStatus:Qs,useFormState:lo,useActionState:lo,useOptimistic:function(e,t){var l=Le();return $f(l,Se,e,t)},useMemoCache:Ds,useCacheRefresh:bo};Zs.useEffectEvent=so;var Ao={readContext:Fe,use:wu,useCallback:mo,useContext:Fe,useEffect:Bs,useImperativeHandle:oo,useInsertionEffect:co,useLayoutEffect:ro,useMemo:ho,useReducer:Hs,useRef:uo,useState:function(){return Hs(ll)},useDebugValue:Ys,useDeferredValue:function(e,t){var l=Le();return Se===null?Gs(l,e,t):yo(l,Se.memoizedState,e,t)},useTransition:function(){var e=Hs(ll)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Qf,useId:vo,useHostTransitionStatus:Qs,useFormState:no,useActionState:no,useOptimistic:function(e,t){var l=Le();return Se!==null?$f(l,Se,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ds,useCacheRefresh:bo};Ao.useEffectEvent=so;function ks(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ks={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=jt(),n=jl(a);n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(ot(t,e,a),gn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=jt(),n=jl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(ot(t,e,a),gn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=jt(),a=jl(l);a.tag=2,t!=null&&(a.callback=t),t=Nl(e,a,l),t!==null&&(ot(t,e,l),gn(t,e,l))}};function To(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!cn(l,a)||!cn(n,u):!0}function Co(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Ks.enqueueReplaceState(t,t.state,null)}function la(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function zo(e){du(e)}function Mo(e){console.error(e)}function wo(e){du(e)}function Uu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Oo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Js(e,t,l){return l=jl(l),l.tag=3,l.payload={element:null},l.callback=function(){Uu(e,t)},l}function _o(e){return e=jl(e),e.tag=3,e}function Ro(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Oo(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Oo(t,l,a),typeof n!="function"&&(Ml===null?Ml=new Set([this]):Ml.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function k0(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Na(t,l,n,!0),l=pt.current,l!==null){switch(l.tag){case 31:case 13:return _t===null?Ku():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ju?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),vc(e,a,n)),!1;case 22:return l.flags|=65536,a===ju?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),vc(e,a,n)),!1}throw Error(r(435,l.tag))}return vc(e,a,n),Ku(),!1}if(me)return t=pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ms&&(e=Error(r(422),{cause:a}),on(zt(e,l)))):(a!==ms&&(t=Error(r(423),{cause:a}),on(zt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=zt(a,l),n=Js(e.stateNode,a,n),Es(e,n),Ue!==4&&(Ue=2)),!1;var u=Error(r(520),{cause:a});if(u=zt(u,l),wn===null?wn=[u]:wn.push(u),Ue!==4&&(Ue=2),t===null)return!0;a=zt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Js(l.stateNode,a,e),Es(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ml===null||!Ml.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=_o(n),Ro(n,e,l,a),Es(l,n),!1}l=l.return}while(l!==null);return!1}var $s=Error(r(461)),Ge=!1;function Ie(e,t,l,a){t.child=e===null?Hf(t,null,l,a):ea(t,e.child,l,a)}function Do(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Wl(t),a=ws(e,t,l,c,u,n),d=Os(),e!==null&&!Ge?(_s(e,t,n),al(e,t,n)):(me&&d&&os(t),t.flags|=1,Ie(e,t,a,n),t.child)}function Uo(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!cs(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Ho(e,t,u,a,n)):(e=gu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!ac(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:cn,l(c,a)&&e.ref===t.ref)return al(e,t,n)}return t.flags|=1,e=Ft(u,a),e.ref=t.ref,e.return=t,t.child=e}function Ho(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(cn(u,a)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=a=u,ac(e,n))(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,al(e,t,n)}return Ws(e,t,l,a,n)}function qo(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Lo(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bu(t,u!==null?u.cachePool:null),u!==null?Bf(t,u):Ts(),Yf(t);else return a=t.lanes=536870912,Lo(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(bu(t,u.cachePool),Bf(t,u),Al(),t.memoizedState=null):(e!==null&&bu(t,null),Ts(),Al());return Ie(e,t,n,l),t.child}function Nn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lo(e,t,l,a,n){var u=bs();return u=u===null?null:{parent:Be._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&bu(t,null),Ts(),Yf(t),e!==null&&Na(e,t,a,!0),t.childLanes=n,null}function Hu(e,t){return t=Lu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bo(e,t,l){return ea(t,e.child,null,l),e=Hu(t,t.pendingProps),e.flags|=2,vt(t),t.memoizedState=null,e}function K0(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(a.mode==="hidden")return e=Hu(t,a),t.lanes=536870912,Nn(null,e);if(zs(t),(e=ze)?(e=Fd(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xl!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=Sf(e),l.return=t,t.child=l,We=t,ze=null)):e=null,e===null)throw vl(t);return t.lanes=536870912,null}return Hu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(zs(t),n)if(t.flags&256)t.flags&=-257,t=Bo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ge||Na(e,t,l,!1),n=(l&e.childLanes)!==0,Ge||n){if(a=Ae,a!==null&&(c=Cr(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,kl(e,c),ot(a,e,c),$s;Ku(),t=Bo(e,t,l)}else e=u.treeContext,ze=Rt(c.nextSibling),We=t,me=!0,pl=null,Ot=!1,e!==null&&Ef(t,e),t=Hu(t,a),t.flags|=4096;return t}return e=Ft(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ws(e,t,l,a,n){return Wl(t),l=ws(e,t,l,a,void 0,n),a=Os(),e!==null&&!Ge?(_s(e,t,n),al(e,t,n)):(me&&a&&os(t),t.flags|=1,Ie(e,t,l,n),t.child)}function Yo(e,t,l,a,n,u){return Wl(t),t.updateQueue=null,l=Xf(t,a,l,n),Gf(e),a=Os(),e!==null&&!Ge?(_s(e,t,u),al(e,t,u)):(me&&a&&os(t),t.flags|=1,Ie(e,t,l,u),t.child)}function Go(e,t,l,a,n){if(Wl(t),t.stateNode===null){var u=va,c=l.contextType;typeof c=="object"&&c!==null&&(u=Fe(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ks,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},js(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?Fe(c):va,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(ks(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Ks.enqueueReplaceState(u,u.state,null),pn(t,a,u,n),xn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,v=la(l,d);u.props=v;var _=u.context,q=l.contextType;c=va,typeof q=="object"&&q!==null&&(c=Fe(q));var Y=l.getDerivedStateFromProps;q=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||_!==c)&&Co(t,u,a,c),Sl=!1;var D=t.memoizedState;u.state=D,pn(t,a,u,n),xn(),_=t.memoizedState,d||D!==_||Sl?(typeof Y=="function"&&(ks(t,l,Y,a),_=t.memoizedState),(v=Sl||To(t,l,v,a,D,_,c))?(q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=c,a=v):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Ns(e,t),c=t.memoizedProps,q=la(l,c),u.props=q,Y=t.pendingProps,D=u.context,_=l.contextType,v=va,typeof _=="object"&&_!==null&&(v=Fe(_)),d=l.getDerivedStateFromProps,(_=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==Y||D!==v)&&Co(t,u,a,v),Sl=!1,D=t.memoizedState,u.state=D,pn(t,a,u,n),xn();var U=t.memoizedState;c!==Y||D!==U||Sl||e!==null&&e.dependencies!==null&&pu(e.dependencies)?(typeof d=="function"&&(ks(t,l,d,a),U=t.memoizedState),(q=Sl||To(t,l,q,a,D,U,v)||e!==null&&e.dependencies!==null&&pu(e.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,U,v),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,U,v)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=U),u.props=a,u.state=U,u.context=v,a=q):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,qu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=ea(t,e.child,null,n),t.child=ea(t,null,l,n)):Ie(e,t,l,n),t.memoizedState=u.state,e=t.child):e=al(e,t,n),e}function Xo(e,t,l,a){return Jl(),t.flags|=256,Ie(e,t,l,a),t.child}var Fs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Is(e){return{baseLanes:e,cachePool:wf()}}function Ps(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function Qo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?El(t):Al(),(e=ze)?(e=Fd(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xl!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=Sf(e),l.return=t,t.child=l,We=t,ze=null)):e=null,e===null)throw vl(t);return Uc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(Al(),n=t.mode,d=Lu({mode:"hidden",children:d},n),a=Kl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Is(l),a.childLanes=Ps(e,c,l),t.memoizedState=Fs,Nn(null,a)):(El(t),ec(t,d))}var v=e.memoizedState;if(v!==null&&(d=v.dehydrated,d!==null)){if(u)t.flags&256?(El(t),t.flags&=-257,t=tc(e,t,l)):t.memoizedState!==null?(Al(),t.child=e.child,t.flags|=128,t=null):(Al(),d=a.fallback,n=t.mode,a=Lu({mode:"visible",children:a.children},n),d=Kl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ea(t,e.child,null,l),a=t.child,a.memoizedState=Is(l),a.childLanes=Ps(e,c,l),t.memoizedState=Fs,t=Nn(null,a));else if(El(t),Uc(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var _=c.dgst;c=_,a=Error(r(419)),a.stack="",a.digest=c,on({value:a,source:null,stack:null}),t=tc(e,t,l)}else if(Ge||Na(e,t,l,!1),c=(l&e.childLanes)!==0,Ge||c){if(c=Ae,c!==null&&(a=Cr(c,l),a!==0&&a!==v.retryLane))throw v.retryLane=a,kl(e,a),ot(c,e,a),$s;Dc(d)||Ku(),t=tc(e,t,l)}else Dc(d)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,ze=Rt(d.nextSibling),We=t,me=!0,pl=null,Ot=!1,e!==null&&Ef(t,e),t=ec(t,a.children),t.flags|=4096);return t}return n?(Al(),d=a.fallback,n=t.mode,v=e.child,_=v.sibling,a=Ft(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,_!==null?d=Ft(_,d):(d=Kl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Nn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Is(l):(n=d.cachePool,n!==null?(v=Be._currentValue,n=n.parent!==v?{parent:v,pool:v}:n):n=wf(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Ps(e,c,l),t.memoizedState=Fs,Nn(e.child,a)):(El(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function ec(e,t){return t=Lu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Lu(e,t){return e=xt(22,e,null,t),e.lanes=0,e}function tc(e,t,l){return ea(t,e.child,null,l),e=ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),gs(e.return,t,l)}function lc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Zo(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=qe.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,k(qe,c),Ie(e,t,a,l),a=me?fn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vo(e,l,t);else if(e.tag===19)Vo(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Tu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),lc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Tu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}lc(t,!0,l,null,u,a);break;case"together":lc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function al(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),zl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Na(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ac(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pu(e)))}function J0(e,t,l){switch(t.tag){case 3:tt(t,t.stateNode.containerInfo),bl(t,Be,e.memoizedState.cache),Jl();break;case 27:case 5:Ja(t);break;case 4:tt(t,t.stateNode.containerInfo);break;case 10:bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Qo(e,t,l):(El(t),e=al(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Na(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Zo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),k(qe,qe.current),a)break;return null;case 22:return t.lanes=0,qo(e,t,l,t.pendingProps);case 24:bl(t,Be,e.memoizedState.cache)}return al(e,t,l)}function ko(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ge=!0;else{if(!ac(e,l)&&(t.flags&128)===0)return Ge=!1,J0(e,t,l);Ge=(e.flags&131072)!==0}else Ge=!1,me&&(t.flags&1048576)!==0&&Nf(t,fn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Il(t.elementType),t.type=e,typeof e=="function")cs(e)?(a=la(e,a),t.tag=1,t=Go(null,t,e,a,l)):(t.tag=0,t=Ws(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===V){t.tag=11,t=Do(null,t,e,a,l);break e}else if(n===K){t.tag=14,t=Uo(null,t,e,a,l);break e}}throw t=nt(e)||e,Error(r(306,t,""))}}return t;case 0:return Ws(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=la(a,t.pendingProps),Go(e,t,a,n,l);case 3:e:{if(tt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Ns(e,t),pn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,bl(t,Be,a),a!==u.cache&&xs(t,[Be],l,!0),xn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Xo(e,t,a,l);break e}else if(a!==n){n=zt(Error(r(424)),t),on(n),t=Xo(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=Rt(e.firstChild),We=t,me=!0,pl=null,Ot=!0,l=Hf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),a===n){t=al(e,t,l);break e}Ie(e,t,a,l)}t=t.child}return t;case 26:return qu(e,t),e===null?(l=am(t.type,null,t.pendingProps,null))?t.memoizedState=l:me||(l=t.type,e=t.pendingProps,a=ei(ce.current).createElement(l),a[$e]=t,a[ut]=e,Pe(a,l,e),Ze(a),t.stateNode=a):t.memoizedState=am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ja(t),e===null&&me&&(a=t.stateNode=em(t.type,t.pendingProps,ce.current),We=t,Ot=!0,n=ze,Rl(t.type)?(Hc=n,ze=Rt(a.firstChild)):ze=n),Ie(e,t,t.pendingProps.children,l),qu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=a=ze)&&(a=Ey(a,t.type,t.pendingProps,Ot),a!==null?(t.stateNode=a,We=t,ze=Rt(a.firstChild),Ot=!1,n=!0):n=!1),n||vl(t)),Ja(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,Oc(n,u)?a=null:c!==null&&Oc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=ws(e,t,B0,null,null,l),Ln._currentValue=n),qu(e,t),Ie(e,t,a,l),t.child;case 6:return e===null&&me&&((e=l=ze)&&(l=Ay(l,t.pendingProps,Ot),l!==null?(t.stateNode=l,We=t,ze=null,e=!0):e=!1),e||vl(t)),null;case 13:return Qo(e,t,l);case 4:return tt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ea(t,null,a,l):Ie(e,t,a,l),t.child;case 11:return Do(e,t,t.type,t.pendingProps,l);case 7:return Ie(e,t,t.pendingProps,l),t.child;case 8:return Ie(e,t,t.pendingProps.children,l),t.child;case 12:return Ie(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,bl(t,t.type,a.value),Ie(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Wl(t),n=Fe(n),a=a(n),t.flags|=1,Ie(e,t,a,l),t.child;case 14:return Uo(e,t,t.type,t.pendingProps,l);case 15:return Ho(e,t,t.type,t.pendingProps,l);case 19:return Zo(e,t,l);case 31:return K0(e,t,l);case 22:return qo(e,t,l,t.pendingProps);case 24:return Wl(t),a=Fe(Be),e===null?(n=bs(),n===null&&(n=Ae,u=ps(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},js(t),bl(t,Be,n)):((e.lanes&l)!==0&&(Ns(e,t),pn(t,null,null,l),xn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),bl(t,Be,a)):(a=u.cache,bl(t,Be,a),a!==n.cache&&xs(t,[Be],l,!0))),Ie(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function nl(e){e.flags|=4}function nc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(vd())e.flags|=8192;else throw Pl=ju,Ss}else e.flags&=-16777217}function Ko(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cm(t))if(vd())e.flags|=8192;else throw Pl=ju,Ss}function Bu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Er():536870912,e.lanes|=t,Ua|=t)}function En(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function $0(e,t,l){var a=t.pendingProps;switch(ds(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),el(Be),He(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ja(t)?nl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hs())),Me(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(nl(t),u!==null?(Me(t),Ko(t,u)):(Me(t),nc(t,n,null,a,l))):u?u!==e.memoizedState?(nl(t),Me(t),Ko(t,u)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&nl(t),Me(t),nc(t,n,e,a,l)),null;case 27:if(Wn(t),l=ce.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}e=$.current,ja(t)?Af(t):(e=em(n,a,l),t.stateNode=e,nl(t))}return Me(t),null;case 5:if(Wn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}if(u=$.current,ja(t))Af(t);else{var c=ei(ce.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[$e]=t,u[ut]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Pe(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&nl(t)}}return Me(t),nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ce.current,ja(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=We,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[$e]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Qd(e.nodeValue,l)),e||vl(t,!0)}else e=ei(e).createTextNode(a),e[$e]=t,t.stateNode=e}return Me(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ja(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[$e]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else l=hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(vt(t),t):(vt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Me(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ja(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[$e]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),n=!1}else n=hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(vt(t),t):(vt(t),null)}return vt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Bu(t,t.updateQueue),Me(t),null);case 4:return He(),e===null&&Tc(t.stateNode.containerInfo),Me(t),null;case 10:return el(t.type),Me(t),null;case 19:if(X(qe),a=t.memoizedState,a===null)return Me(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)En(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Tu(e),u!==null){for(t.flags|=128,En(a,!1),e=u.updateQueue,t.updateQueue=e,Bu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)bf(l,e),l=l.sibling;return k(qe,qe.current&1|2),me&&It(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&mt()>Vu&&(t.flags|=128,n=!0,En(a,!1),t.lanes=4194304)}else{if(!n)if(e=Tu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Bu(t,e),En(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!me)return Me(t),null}else 2*mt()-a.renderingStartTime>Vu&&l!==536870912&&(t.flags|=128,n=!0,En(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=mt(),e.sibling=null,l=qe.current,k(qe,n?l&1|2:l&1),me&&It(t,a.treeForkCount),e):(Me(t),null);case 22:case 23:return vt(t),Cs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),l=t.updateQueue,l!==null&&Bu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&X(Fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),el(Be),Me(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function W0(e,t){switch(ds(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return el(Be),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wn(t),null;case 31:if(t.memoizedState!==null){if(vt(t),t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(qe),null;case 4:return He(),null;case 10:return el(t.type),null;case 22:case 23:return vt(t),Cs(),e!==null&&X(Fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return el(Be),null;case 25:return null;default:return null}}function Jo(e,t){switch(ds(t),t.tag){case 3:el(Be),He();break;case 26:case 27:case 5:Wn(t);break;case 4:He();break;case 31:t.memoizedState!==null&&vt(t);break;case 13:vt(t);break;case 19:X(qe);break;case 10:el(t.type);break;case 22:case 23:vt(t),Cs(),e!==null&&X(Fl);break;case 24:el(Be)}}function An(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){ve(t,t.return,d)}}function Tl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var v=l,_=d;try{_()}catch(q){ve(n,v,q)}}}a=a.next}while(a!==u)}}catch(q){ve(t,t.return,q)}}function $o(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Lf(t,l)}catch(a){ve(e,e.return,a)}}}function Wo(e,t,l){l.props=la(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ve(e,t,a)}}function Tn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){ve(e,t,n)}}function Qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ve(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ve(e,t,n)}else l.current=null}function Fo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ve(e,e.return,n)}}function uc(e,t,l){try{var a=e.stateNode;py(a,e.type,l,t),a[ut]=t}catch(n){ve(e,e.return,n)}}function Io(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Rl(e.type)||e.tag===4}function ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Io(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Rl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=$t));else if(a!==4&&(a===27&&Rl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(sc(e,t,l),e=e.sibling;e!==null;)sc(e,t,l),e=e.sibling}function Yu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Rl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Yu(e,t,l),e=e.sibling;e!==null;)Yu(e,t,l),e=e.sibling}function Po(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Pe(t,a,l),t[$e]=e,t[ut]=l}catch(u){ve(e,e.return,u)}}var ul=!1,Xe=!1,cc=!1,ed=typeof WeakSet=="function"?WeakSet:Set,ke=null;function F0(e,t){if(e=e.containerInfo,Mc=si,e=of(e),ts(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,d=-1,v=-1,_=0,q=0,Y=e,D=null;t:for(;;){for(var U;Y!==l||n!==0&&Y.nodeType!==3||(d=c+n),Y!==u||a!==0&&Y.nodeType!==3||(v=c+a),Y.nodeType===3&&(c+=Y.nodeValue.length),(U=Y.firstChild)!==null;)D=Y,Y=U;for(;;){if(Y===e)break t;if(D===l&&++_===n&&(d=c),D===u&&++q===a&&(v=c),(U=Y.nextSibling)!==null)break;Y=D,D=Y.parentNode}Y=U}l=d===-1||v===-1?null:{start:d,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(wc={focusedElem:e,selectionRange:l},si=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){switch(t=ke,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var J=la(l.type,n);e=a.getSnapshotBeforeUpdate(J,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){ve(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Rc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}}function td(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:sl(e,l),a&4&&An(5,l);break;case 1:if(sl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){ve(l,l.return,c)}else{var n=la(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){ve(l,l.return,c)}}a&64&&$o(l),a&512&&Tn(l,l.return);break;case 3:if(sl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Lf(e,t)}catch(c){ve(l,l.return,c)}}break;case 27:t===null&&a&4&&Po(l);case 26:case 5:sl(e,l),t===null&&a&4&&Fo(l),a&512&&Tn(l,l.return);break;case 12:sl(e,l);break;case 31:sl(e,l),a&4&&nd(e,l);break;case 13:sl(e,l),a&4&&ud(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=iy.bind(null,l),Ty(e,l))));break;case 22:if(a=l.memoizedState!==null||ul,!a){t=t!==null&&t.memoizedState!==null||Xe,n=ul;var u=Xe;ul=a,(Xe=t)&&!u?cl(e,l,(l.subtreeFlags&8772)!==0):sl(e,l),ul=n,Xe=u}break;case 30:break;default:sl(e,l)}}function ld(e){var t=e.alternate;t!==null&&(e.alternate=null,ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Li(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var we=null,st=!1;function il(e,t,l){for(l=l.child;l!==null;)ad(e,t,l),l=l.sibling}function ad(e,t,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount($a,l)}catch{}switch(l.tag){case 26:Xe||Qt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Xe||Qt(l,t);var a=we,n=st;Rl(l.type)&&(we=l.stateNode,st=!1),il(e,t,l),Un(l.stateNode),we=a,st=n;break;case 5:Xe||Qt(l,t);case 6:if(a=we,n=st,we=null,il(e,t,l),we=a,st=n,we!==null)if(st)try{(we.nodeType===9?we.body:we.nodeName==="HTML"?we.ownerDocument.body:we).removeChild(l.stateNode)}catch(u){ve(l,t,u)}else try{we.removeChild(l.stateNode)}catch(u){ve(l,t,u)}break;case 18:we!==null&&(st?(e=we,$d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Qa(e)):$d(we,l.stateNode));break;case 4:a=we,n=st,we=l.stateNode.containerInfo,st=!0,il(e,t,l),we=a,st=n;break;case 0:case 11:case 14:case 15:Tl(2,l,t),Xe||Tl(4,l,t),il(e,t,l);break;case 1:Xe||(Qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Wo(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:Xe=(a=Xe)||l.memoizedState!==null,il(e,t,l),Xe=a;break;default:il(e,t,l)}}function nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Qa(e)}catch(l){ve(t,t.return,l)}}}function ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Qa(e)}catch(l){ve(t,t.return,l)}}function I0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ed),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ed),t;default:throw Error(r(435,e.tag))}}function Gu(e,t){var l=I0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=sy.bind(null,e,a);a.then(n,n)}})}function ct(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Rl(d.type)){we=d.stateNode,st=!1;break e}break;case 5:we=d.stateNode,st=!1;break e;case 3:case 4:we=d.stateNode.containerInfo,st=!0;break e}d=d.return}if(we===null)throw Error(r(160));ad(u,c,n),we=null,st=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)id(t,e),t=t.sibling}var Lt=null;function id(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ct(t,e),rt(e),a&4&&(Tl(3,e,e.return),An(3,e),Tl(5,e,e.return));break;case 1:ct(t,e),rt(e),a&512&&(Xe||l===null||Qt(l,l.return)),a&64&&ul&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Lt;if(ct(t,e),rt(e),a&512&&(Xe||l===null||Qt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ia]||u[$e]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Pe(u,a,l),u[$e]=e,Ze(u),a=u;break e;case"link":var c=im("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(u=c[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}u=n.createElement(a),Pe(u,a,l),n.head.appendChild(u);break;case"meta":if(c=im("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(u=c[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}u=n.createElement(a),Pe(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[$e]=e,Ze(u),a=u}e.stateNode=a}else sm(n,e.type,e.stateNode);else e.stateNode=um(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?sm(n,e.type,e.stateNode):um(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&uc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ct(t,e),rt(e),a&512&&(Xe||l===null||Qt(l,l.return)),l!==null&&a&4&&uc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ct(t,e),rt(e),a&512&&(Xe||l===null||Qt(l,l.return)),e.flags&32){n=e.stateNode;try{da(n,"")}catch(J){ve(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,uc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(cc=!0);break;case 6:if(ct(t,e),rt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){ve(e,e.return,J)}}break;case 3:if(ai=null,n=Lt,Lt=ti(t.containerInfo),ct(t,e),Lt=n,rt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Qa(t.containerInfo)}catch(J){ve(e,e.return,J)}cc&&(cc=!1,sd(e));break;case 4:a=Lt,Lt=ti(e.stateNode.containerInfo),ct(t,e),rt(e),Lt=a;break;case 12:ct(t,e),rt(e);break;case 31:ct(t,e),rt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gu(e,a)));break;case 13:ct(t,e),rt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qu=mt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gu(e,a)));break;case 22:n=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,_=ul,q=Xe;if(ul=_||n,Xe=q||v,ct(t,e),Xe=q,ul=_,rt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||v||ul||Xe||aa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(u=v.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=v.stateNode;var Y=v.memoizedProps.style,D=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;d.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(J){ve(v,v.return,J)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=n?"":v.memoizedProps}catch(J){ve(v,v.return,J)}}}else if(t.tag===18){if(l===null){v=t;try{var U=v.stateNode;n?Wd(U,!0):Wd(v.stateNode,!1)}catch(J){ve(v,v.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Gu(e,l))));break;case 19:ct(t,e),rt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gu(e,a)));break;case 30:break;case 21:break;default:ct(t,e),rt(e)}}function rt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Io(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=ic(e);Yu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(da(c,""),l.flags&=-33);var d=ic(e);Yu(e,d,c);break;case 3:case 4:var v=l.stateNode.containerInfo,_=ic(e);sc(e,_,v);break;default:throw Error(r(161))}}catch(q){ve(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;sd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)td(e,t.alternate,t),t=t.sibling}function aa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tl(4,t,t.return),aa(t);break;case 1:Qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Wo(t,t.return,l),aa(t);break;case 27:Un(t.stateNode);case 26:case 5:Qt(t,t.return),aa(t);break;case 22:t.memoizedState===null&&aa(t);break;case 30:aa(t);break;default:aa(t)}e=e.sibling}}function cl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:cl(n,u,l),An(4,u);break;case 1:if(cl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){ve(a,a.return,_)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var v=n.shared.hiddenCallbacks;if(v!==null)for(n.shared.hiddenCallbacks=null,n=0;n<v.length;n++)qf(v[n],d)}catch(_){ve(a,a.return,_)}}l&&c&64&&$o(u),Tn(u,u.return);break;case 27:Po(u);case 26:case 5:cl(n,u,l),l&&a===null&&c&4&&Fo(u),Tn(u,u.return);break;case 12:cl(n,u,l);break;case 31:cl(n,u,l),l&&c&4&&nd(n,u);break;case 13:cl(n,u,l),l&&c&4&&ud(n,u);break;case 22:u.memoizedState===null&&cl(n,u,l),Tn(u,u.return);break;case 30:break;default:cl(n,u,l)}t=t.sibling}}function rc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&dn(l))}function fc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e))}function Bt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cd(e,t,l,a),t=t.sibling}function cd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,a),n&2048&&An(9,t);break;case 1:Bt(e,t,l,a);break;case 3:Bt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e)));break;case 12:if(n&2048){Bt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,d=u.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){ve(t,t.return,v)}}else Bt(e,t,l,a);break;case 31:Bt(e,t,l,a);break;case 13:Bt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Bt(e,t,l,a):Cn(e,t):u._visibility&2?Bt(e,t,l,a):(u._visibility|=2,_a(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&rc(c,t);break;case 24:Bt(e,t,l,a),n&2048&&fc(t.alternate,t);break;default:Bt(e,t,l,a)}}function _a(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,d=l,v=a,_=c.flags;switch(c.tag){case 0:case 11:case 15:_a(u,c,d,v,n),An(8,c);break;case 23:break;case 22:var q=c.stateNode;c.memoizedState!==null?q._visibility&2?_a(u,c,d,v,n):Cn(u,c):(q._visibility|=2,_a(u,c,d,v,n)),n&&_&2048&&rc(c.alternate,c);break;case 24:_a(u,c,d,v,n),n&&_&2048&&fc(c.alternate,c);break;default:_a(u,c,d,v,n)}t=t.sibling}}function Cn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Cn(l,a),n&2048&&rc(a.alternate,a);break;case 24:Cn(l,a),n&2048&&fc(a.alternate,a);break;default:Cn(l,a)}t=t.sibling}}var zn=8192;function Ra(e,t,l){if(e.subtreeFlags&zn)for(e=e.child;e!==null;)rd(e,t,l),e=e.sibling}function rd(e,t,l){switch(e.tag){case 26:Ra(e,t,l),e.flags&zn&&e.memoizedState!==null&&Ly(l,Lt,e.memoizedState,e.memoizedProps);break;case 5:Ra(e,t,l);break;case 3:case 4:var a=Lt;Lt=ti(e.stateNode.containerInfo),Ra(e,t,l),Lt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=zn,zn=16777216,Ra(e,t,l),zn=a):Ra(e,t,l));break;default:Ra(e,t,l)}}function fd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Mn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,dd(a,e)}fd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)od(e),e=e.sibling}function od(e){switch(e.tag){case 0:case 11:case 15:Mn(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:Mn(e);break;case 12:Mn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xu(e)):Mn(e);break;default:Mn(e)}}function Xu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,dd(a,e)}fd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Xu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Xu(t));break;default:Xu(t)}e=e.sibling}}function dd(e,t){for(;ke!==null;){var l=ke;switch(l.tag){case 0:case 11:case 15:Tl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:dn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ke=a;else e:for(l=e;ke!==null;){a=ke;var n=a.sibling,u=a.return;if(ld(a),a===l){ke=null;break e}if(n!==null){n.return=u,ke=n;break e}ke=u}}}var P0={getCacheForType:function(e){var t=Fe(Be),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Fe(Be).controller.signal}},ey=typeof WeakMap=="function"?WeakMap:Map,ge=0,Ae=null,re=null,oe=0,pe=0,bt=null,Cl=!1,Da=!1,oc=!1,rl=0,Ue=0,zl=0,na=0,dc=0,St=0,Ua=0,wn=null,ft=null,mc=!1,Qu=0,md=0,Vu=1/0,Zu=null,Ml=null,Ve=0,wl=null,Ha=null,fl=0,hc=0,yc=null,hd=null,On=0,gc=null;function jt(){return(ge&2)!==0&&oe!==0?oe&-oe:L.T!==null?jc():zr()}function yd(){if(St===0)if((oe&536870912)===0||me){var e=Pn;Pn<<=1,(Pn&3932160)===0&&(Pn=262144),St=e}else St=536870912;return e=pt.current,e!==null&&(e.flags|=32),St}function ot(e,t,l){(e===Ae&&(pe===2||pe===9)||e.cancelPendingCommit!==null)&&(qa(e,0),Ol(e,oe,St,!1)),Fa(e,l),((ge&2)===0||e!==Ae)&&(e===Ae&&((ge&2)===0&&(na|=l),Ue===4&&Ol(e,oe,St,!1)),Vt(e))}function gd(e,t,l){if((ge&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wa(e,t),n=a?ay(e,t):pc(e,t,!0),u=a;do{if(n===0){Da&&!a&&Ol(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!ty(l)){n=pc(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=wn;var v=d.current.memoizedState.isDehydrated;if(v&&(qa(d,c).flags|=256),c=pc(d,c,!1),c!==2){if(oc&&!v){d.errorRecoveryDisabledLanes|=u,na|=u,n=4;break e}u=ft,ft=n,u!==null&&(ft===null?ft=u:ft.push.apply(ft,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){qa(e,0),Ol(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ol(a,t,St,!Cl);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Qu+300-mt(),10<n)){if(Ol(a,t,St,!Cl),tu(a,0,!0)!==0)break e;fl=t,a.timeoutHandle=Kd(xd.bind(null,a,l,ft,Zu,mc,t,St,na,Ua,Cl,u,"Throttled",-0,0),n);break e}xd(a,l,ft,Zu,mc,t,St,na,Ua,Cl,u,null,-0,0)}}break}while(!0);Vt(e)}function xd(e,t,l,a,n,u,c,d,v,_,q,Y,D,U){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},rd(t,u,Y);var J=(u&62914560)===u?Qu-mt():(u&4194048)===u?md-mt():0;if(J=By(Y,J),J!==null){fl=u,e.cancelPendingCommit=J(Ad.bind(null,e,t,u,l,a,n,c,d,v,q,Y,null,D,U)),Ol(e,u,c,!_);return}}Ad(e,t,u,l,a,n,c,d,v)}function ty(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!gt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Ol(e,t,l,a){t&=~dc,t&=~na,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-yt(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&Ar(e,l,t)}function ku(){return(ge&6)===0?(_n(0),!1):!0}function xc(){if(re!==null){if(pe===0)var e=re.return;else e=re,Pt=$l=null,Rs(e),Ca=null,hn=0,e=re;for(;e!==null;)Jo(e.alternate,e),e=e.return;re=null}}function qa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Sy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),fl=0,xc(),Ae=e,re=l=Ft(e.current,null),oe=t,pe=0,bt=null,Cl=!1,Da=Wa(e,t),oc=!1,Ua=St=dc=na=zl=Ue=0,ft=wn=null,mc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-yt(a),u=1<<n;t|=e[n],a&=~u}return rl=t,mu(),l}function pd(e,t){ue=null,L.H=jn,t===Ta||t===Su?(t=Rf(),pe=3):t===Ss?(t=Rf(),pe=4):pe=t===$s?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,re===null&&(Ue=1,Uu(e,zt(t,e.current)))}function vd(){var e=pt.current;return e===null?!0:(oe&4194048)===oe?_t===null:(oe&62914560)===oe||(oe&536870912)!==0?e===_t:!1}function bd(){var e=L.H;return L.H=jn,e===null?jn:e}function Sd(){var e=L.A;return L.A=P0,e}function Ku(){Ue=4,Cl||(oe&4194048)!==oe&&pt.current!==null||(Da=!0),(zl&134217727)===0&&(na&134217727)===0||Ae===null||Ol(Ae,oe,St,!1)}function pc(e,t,l){var a=ge;ge|=2;var n=bd(),u=Sd();(Ae!==e||oe!==t)&&(Zu=null,qa(e,t)),t=!1;var c=Ue;e:do try{if(pe!==0&&re!==null){var d=re,v=bt;switch(pe){case 8:xc(),c=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var _=pe;if(pe=0,bt=null,La(e,d,v,_),l&&Da){c=0;break e}break;default:_=pe,pe=0,bt=null,La(e,d,v,_)}}ly(),c=Ue;break}catch(q){pd(e,q)}while(!0);return t&&e.shellSuspendCounter++,Pt=$l=null,ge=a,L.H=n,L.A=u,re===null&&(Ae=null,oe=0,mu()),c}function ly(){for(;re!==null;)jd(re)}function ay(e,t){var l=ge;ge|=2;var a=bd(),n=Sd();Ae!==e||oe!==t?(Zu=null,Vu=mt()+500,qa(e,t)):Da=Wa(e,t);e:do try{if(pe!==0&&re!==null){t=re;var u=bt;t:switch(pe){case 1:pe=0,bt=null,La(e,t,u,1);break;case 2:case 9:if(Of(u)){pe=0,bt=null,Nd(t);break}t=function(){pe!==2&&pe!==9||Ae!==e||(pe=7),Vt(e)},u.then(t,t);break e;case 3:pe=7;break e;case 4:pe=5;break e;case 7:Of(u)?(pe=0,bt=null,Nd(t)):(pe=0,bt=null,La(e,t,u,7));break;case 5:var c=null;switch(re.tag){case 26:c=re.memoizedState;case 5:case 27:var d=re;if(c?cm(c):d.stateNode.complete){pe=0,bt=null;var v=d.sibling;if(v!==null)re=v;else{var _=d.return;_!==null?(re=_,Ju(_)):re=null}break t}}pe=0,bt=null,La(e,t,u,5);break;case 6:pe=0,bt=null,La(e,t,u,6);break;case 8:xc(),Ue=6;break e;default:throw Error(r(462))}}ny();break}catch(q){pd(e,q)}while(!0);return Pt=$l=null,L.H=a,L.A=n,ge=l,re!==null?0:(Ae=null,oe=0,mu(),Ue)}function ny(){for(;re!==null&&!Ch();)jd(re)}function jd(e){var t=ko(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?Ju(e):re=t}function Nd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Yo(l,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=Yo(l,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Rs(t);default:Jo(l,t),t=re=bf(t,rl),t=ko(l,t,rl)}e.memoizedProps=e.pendingProps,t===null?Ju(e):re=t}function La(e,t,l,a){Pt=$l=null,Rs(t),Ca=null,hn=0;var n=t.return;try{if(k0(e,n,t,l,oe)){Ue=1,Uu(e,zt(l,e.current)),re=null;return}}catch(u){if(n!==null)throw re=n,u;Ue=1,Uu(e,zt(l,e.current)),re=null;return}t.flags&32768?(me||a===1?e=!0:Da||(oe&536870912)!==0?e=!1:(Cl=e=!0,(a===2||a===9||a===3||a===6)&&(a=pt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ed(t,e)):Ju(t)}function Ju(e){var t=e;do{if((t.flags&32768)!==0){Ed(t,Cl);return}e=t.return;var l=$0(t.alternate,t,rl);if(l!==null){re=l;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);Ue===0&&(Ue=5)}function Ed(e,t){do{var l=W0(e.alternate,e);if(l!==null){l.flags&=32767,re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){re=e;return}re=e=l}while(e!==null);Ue=6,re=null}function Ad(e,t,l,a,n,u,c,d,v){e.cancelPendingCommit=null;do $u();while(Ve!==0);if((ge&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=is,qh(e,l,u,c,d,v),e===Ae&&(re=Ae=null,oe=0),Ha=t,wl=e,fl=l,hc=u,yc=n,hd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cy(Fn,function(){return wd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,n=Z.p,Z.p=2,c=ge,ge|=4;try{F0(e,t,l)}finally{ge=c,Z.p=n,L.T=a}}Ve=1,Td(),Cd(),zd()}}function Td(){if(Ve===1){Ve=0;var e=wl,t=Ha,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var a=Z.p;Z.p=2;var n=ge;ge|=4;try{id(t,e);var u=wc,c=of(e.containerInfo),d=u.focusedElem,v=u.selectionRange;if(c!==d&&d&&d.ownerDocument&&ff(d.ownerDocument.documentElement,d)){if(v!==null&&ts(d)){var _=v.start,q=v.end;if(q===void 0&&(q=_),"selectionStart"in d)d.selectionStart=_,d.selectionEnd=Math.min(q,d.value.length);else{var Y=d.ownerDocument||document,D=Y&&Y.defaultView||window;if(D.getSelection){var U=D.getSelection(),J=d.textContent.length,P=Math.min(v.start,J),Ne=v.end===void 0?P:Math.min(v.end,J);!U.extend&&P>Ne&&(c=Ne,Ne=P,P=c);var C=rf(d,P),E=rf(d,Ne);if(C&&E&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==E.node||U.focusOffset!==E.offset)){var O=Y.createRange();O.setStart(C.node,C.offset),U.removeAllRanges(),P>Ne?(U.addRange(O),U.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),U.addRange(O))}}}}for(Y=[],U=d;U=U.parentNode;)U.nodeType===1&&Y.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<Y.length;d++){var B=Y[d];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}si=!!Mc,wc=Mc=null}finally{ge=n,Z.p=a,L.T=l}}e.current=t,Ve=2}}function Cd(){if(Ve===2){Ve=0;var e=wl,t=Ha,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var a=Z.p;Z.p=2;var n=ge;ge|=4;try{td(e,t.alternate,t)}finally{ge=n,Z.p=a,L.T=l}}Ve=3}}function zd(){if(Ve===4||Ve===3){Ve=0,zh();var e=wl,t=Ha,l=fl,a=hd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ve=5:(Ve=0,Ha=wl=null,Md(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ml=null),Hi(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=L.T,n=Z.p,Z.p=2,L.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];u(d.value,{componentStack:d.stack})}}finally{L.T=t,Z.p=n}}(fl&3)!==0&&$u(),Vt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===gc?On++:(On=0,gc=e):On=0,_n(0)}}function Md(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dn(t)))}function $u(){return Td(),Cd(),zd(),wd()}function wd(){if(Ve!==5)return!1;var e=wl,t=hc;hc=0;var l=Hi(fl),a=L.T,n=Z.p;try{Z.p=32>l?32:l,L.T=null,l=yc,yc=null;var u=wl,c=fl;if(Ve=0,Ha=wl=null,fl=0,(ge&6)!==0)throw Error(r(331));var d=ge;if(ge|=4,od(u.current),cd(u,u.current,c,l),ge=d,_n(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot($a,u)}catch{}return!0}finally{Z.p=n,L.T=a,Md(e,t)}}function Od(e,t,l){t=zt(l,t),t=Js(e.stateNode,t,2),e=Nl(e,t,2),e!==null&&(Fa(e,2),Vt(e))}function ve(e,t,l){if(e.tag===3)Od(e,e,l);else for(;t!==null;){if(t.tag===3){Od(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ml===null||!Ml.has(a))){e=zt(l,e),l=_o(2),a=Nl(t,l,2),a!==null&&(Ro(l,a,t,e),Fa(a,2),Vt(a));break}}t=t.return}}function vc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new ey;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(oc=!0,n.add(l),e=uy.bind(null,e,t,l),t.then(e,e))}function uy(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ae===e&&(oe&l)===l&&(Ue===4||Ue===3&&(oe&62914560)===oe&&300>mt()-Qu?(ge&2)===0&&qa(e,0):dc|=l,Ua===oe&&(Ua=0)),Vt(e)}function _d(e,t){t===0&&(t=Er()),e=kl(e,t),e!==null&&(Fa(e,t),Vt(e))}function iy(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),_d(e,l)}function sy(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),_d(e,l)}function cy(e,t){return _i(e,t)}var Wu=null,Ba=null,bc=!1,Fu=!1,Sc=!1,_l=0;function Vt(e){e!==Ba&&e.next===null&&(Ba===null?Wu=Ba=e:Ba=Ba.next=e),Fu=!0,bc||(bc=!0,fy())}function _n(e,t){if(!Sc&&Fu){Sc=!0;do for(var l=!1,a=Wu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-yt(42|e)+1)-1,u&=n&~(c&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Hd(a,u))}else u=oe,u=tu(a,a===Ae?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Wa(a,u)||(l=!0,Hd(a,u));a=a.next}while(l);Sc=!1}}function ry(){Rd()}function Rd(){Fu=bc=!1;var e=0;_l!==0&&by()&&(e=_l);for(var t=mt(),l=null,a=Wu;a!==null;){var n=a.next,u=Dd(a,t);u===0?(a.next=null,l===null?Wu=n:l.next=n,n===null&&(Ba=l)):(l=a,(e!==0||(u&3)!==0)&&(Fu=!0)),a=n}Ve!==0&&Ve!==5||_n(e),_l!==0&&(_l=0)}function Dd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-yt(u),d=1<<c,v=n[c];v===-1?((d&l)===0||(d&a)!==0)&&(n[c]=Hh(d,t)):v<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ae,l=oe,l=tu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(pe===2||pe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ri(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Wa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ri(a),Hi(l)){case 2:case 8:l=jr;break;case 32:l=Fn;break;case 268435456:l=Nr;break;default:l=Fn}return a=Ud.bind(null,e),l=_i(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ri(a),e.callbackPriority=2,e.callbackNode=null,2}function Ud(e,t){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if($u()&&e.callbackNode!==l)return null;var a=oe;return a=tu(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(gd(e,a,t),Dd(e,mt()),e.callbackNode!=null&&e.callbackNode===l?Ud.bind(null,e):null)}function Hd(e,t){if($u())return null;gd(e,t,!0)}function fy(){jy(function(){(ge&6)!==0?_i(Sr,ry):Rd()})}function jc(){if(_l===0){var e=Ea;e===0&&(e=In,In<<=1,(In&261888)===0&&(In=256)),_l=e}return _l}function qd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:uu(""+e)}function Ld(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function oy(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=qd((n[ut]||null).action),c=a.submitter;c&&(t=(t=c[ut]||null)?qd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var d=new ru("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(_l!==0){var v=c?Ld(n,c):new FormData(n);Xs(l,{pending:!0,data:v,method:n.method,action:u},null,v)}}else typeof u=="function"&&(d.preventDefault(),v=c?Ld(n,c):new FormData(n),Xs(l,{pending:!0,data:v,method:n.method,action:u},u,v))},currentTarget:n}]})}}for(var Nc=0;Nc<us.length;Nc++){var Ec=us[Nc],dy=Ec.toLowerCase(),my=Ec[0].toUpperCase()+Ec.slice(1);qt(dy,"on"+my)}qt(hf,"onAnimationEnd"),qt(yf,"onAnimationIteration"),qt(gf,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(M0,"onTransitionRun"),qt(w0,"onTransitionStart"),qt(O0,"onTransitionCancel"),qt(xf,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rn="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(" "),hy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rn));function Bd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],v=d.instance,_=d.currentTarget;if(d=d.listener,v!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=_;try{u(n)}catch(q){du(q)}n.currentTarget=null,u=v}else for(c=0;c<a.length;c++){if(d=a[c],v=d.instance,_=d.currentTarget,d=d.listener,v!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=_;try{u(n)}catch(q){du(q)}n.currentTarget=null,u=v}}}}function fe(e,t){var l=t[qi];l===void 0&&(l=t[qi]=new Set);var a=e+"__bubble";l.has(a)||(Yd(t,e,2,!1),l.add(a))}function Ac(e,t,l){var a=0;t&&(a|=4),Yd(l,e,a,t)}var Iu="_reactListening"+Math.random().toString(36).slice(2);function Tc(e){if(!e[Iu]){e[Iu]=!0,Or.forEach(function(l){l!=="selectionchange"&&(hy.has(l)||Ac(l,!1,e),Ac(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Iu]||(t[Iu]=!0,Ac("selectionchange",!1,t))}}function Yd(e,t,l,a){switch(ym(t)){case 2:var n=Xy;break;case 8:n=Qy;break;default:n=Gc}l=n.bind(null,t,l,e),n=void 0,!ki||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Cc(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var v=c.tag;if((v===3||v===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=sa(d),c===null)return;if(v=c.tag,v===5||v===6||v===26||v===27){a=u=c;continue e}d=d.parentNode}}a=a.return}Qr(function(){var _=u,q=Vi(l),Y=[];e:{var D=pf.get(e);if(D!==void 0){var U=ru,J=e;switch(e){case"keypress":if(su(l)===0)break e;case"keydown":case"keyup":U=s0;break;case"focusin":J="focus",U=Wi;break;case"focusout":J="blur",U=Wi;break;case"beforeblur":case"afterblur":U=Wi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=$h;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=f0;break;case hf:case yf:case gf:U=Ih;break;case xf:U=d0;break;case"scroll":case"scrollend":U=Kh;break;case"wheel":U=h0;break;case"copy":case"cut":case"paste":U=e0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Jr;break;case"toggle":case"beforetoggle":U=g0}var P=(t&4)!==0,Ne=!P&&(e==="scroll"||e==="scrollend"),C=P?D!==null?D+"Capture":null:D;P=[];for(var E=_,O;E!==null;){var B=E;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||C===null||(B=en(E,C),B!=null&&P.push(Dn(E,B,O))),Ne)break;E=E.return}0<P.length&&(D=new U(D,J,null,l,q),Y.push({event:D,listeners:P}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",D&&l!==Qi&&(J=l.relatedTarget||l.fromElement)&&(sa(J)||J[ia]))break e;if((U||D)&&(D=q.window===q?q:(D=q.ownerDocument)?D.defaultView||D.parentWindow:window,U?(J=l.relatedTarget||l.toElement,U=_,J=J?sa(J):null,J!==null&&(Ne=y(J),P=J.tag,J!==Ne||P!==5&&P!==27&&P!==6)&&(J=null)):(U=null,J=_),U!==J)){if(P=kr,B="onMouseLeave",C="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(P=Jr,B="onPointerLeave",C="onPointerEnter",E="pointer"),Ne=U==null?D:Pa(U),O=J==null?D:Pa(J),D=new P(B,E+"leave",U,l,q),D.target=Ne,D.relatedTarget=O,B=null,sa(q)===_&&(P=new P(C,E+"enter",J,l,q),P.target=O,P.relatedTarget=Ne,B=P),Ne=B,U&&J)t:{for(P=yy,C=U,E=J,O=0,B=C;B;B=P(B))O++;B=0;for(var I=E;I;I=P(I))B++;for(;0<O-B;)C=P(C),O--;for(;0<B-O;)E=P(E),B--;for(;O--;){if(C===E||E!==null&&C===E.alternate){P=C;break t}C=P(C),E=P(E)}P=null}else P=null;U!==null&&Gd(Y,D,U,P,!1),J!==null&&Ne!==null&&Gd(Y,Ne,J,P,!0)}}e:{if(D=_?Pa(_):window,U=D.nodeName&&D.nodeName.toLowerCase(),U==="select"||U==="input"&&D.type==="file")var he=lf;else if(ef(D))if(af)he=T0;else{he=E0;var W=N0}else U=D.nodeName,!U||U.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?_&&Xi(_.elementType)&&(he=lf):he=A0;if(he&&(he=he(e,_))){tf(Y,he,l,q);break e}W&&W(e,D,_),e==="focusout"&&_&&D.type==="number"&&_.memoizedProps.value!=null&&Gi(D,"number",D.value)}switch(W=_?Pa(_):window,e){case"focusin":(ef(W)||W.contentEditable==="true")&&(ga=W,ls=_,rn=null);break;case"focusout":rn=ls=ga=null;break;case"mousedown":as=!0;break;case"contextmenu":case"mouseup":case"dragend":as=!1,df(Y,l,q);break;case"selectionchange":if(z0)break;case"keydown":case"keyup":df(Y,l,q)}var ie;if(Ii)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else ya?Ir(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&($r&&l.locale!=="ko"&&(ya||de!=="onCompositionStart"?de==="onCompositionEnd"&&ya&&(ie=Vr()):(gl=q,Ki="value"in gl?gl.value:gl.textContent,ya=!0)),W=Pu(_,de),0<W.length&&(de=new Kr(de,e,null,l,q),Y.push({event:de,listeners:W}),ie?de.data=ie:(ie=Pr(l),ie!==null&&(de.data=ie)))),(ie=p0?v0(e,l):b0(e,l))&&(de=Pu(_,"onBeforeInput"),0<de.length&&(W=new Kr("onBeforeInput","beforeinput",null,l,q),Y.push({event:W,listeners:de}),W.data=ie)),oy(Y,e,_,l,q)}Bd(Y,t)})}function Dn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Pu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=en(e,l),n!=null&&a.unshift(Dn(e,n,u)),n=en(e,t),n!=null&&a.push(Dn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function yy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var d=l,v=d.alternate,_=d.stateNode;if(d=d.tag,v!==null&&v===a)break;d!==5&&d!==26&&d!==27||_===null||(v=_,n?(_=en(l,u),_!=null&&c.unshift(Dn(l,_,v))):n||(_=en(l,u),_!=null&&c.push(Dn(l,_,v)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var gy=/\r\n?/g,xy=/\u0000|\uFFFD/g;function Xd(e){return(typeof e=="string"?e:""+e).replace(gy,`
|
|
49
|
+
`).replace(xy,"")}function Qd(e,t){return t=Xd(t),Xd(e)===t}function je(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||da(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&da(e,""+a);break;case"className":au(e,"class",a);break;case"tabIndex":au(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":au(e,l,a);break;case"style":Gr(e,a,u);break;case"data":if(t!=="object"){au(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=uu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&je(e,t,"name",n.name,n,null),je(e,t,"formEncType",n.formEncType,n,null),je(e,t,"formMethod",n.formMethod,n,null),je(e,t,"formTarget",n.formTarget,n,null)):(je(e,t,"encType",n.encType,n,null),je(e,t,"method",n.method,n,null),je(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=uu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$t);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=uu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":fe("beforetoggle",e),fe("toggle",e),lu(e,"popover",a);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":lu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Zh.get(l)||l,lu(e,l,a))}}function zc(e,t,l,a,n,u){switch(l){case"style":Gr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?da(e,a):(typeof a=="number"||typeof a=="bigint")&&da(e,""+a);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_r.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[ut]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):lu(e,l,a)}}}function Pe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:je(e,t,u,c,l,null)}}n&&je(e,t,"srcSet",l.srcSet,l,null),a&&je(e,t,"src",l.src,l,null);return;case"input":fe("invalid",e);var d=u=c=n=null,v=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var q=l[a];if(q!=null)switch(a){case"name":n=q;break;case"type":c=q;break;case"checked":v=q;break;case"defaultChecked":_=q;break;case"value":u=q;break;case"defaultValue":d=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:je(e,t,a,q,l,null)}}qr(e,u,d,v,_,c,n,!1);return;case"select":fe("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:je(e,t,n,d,l,null)}t=u,l=c,e.multiple=!!a,t!=null?oa(e,!!a,t,!1):l!=null&&oa(e,!!a,l,!0);return;case"textarea":fe("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:je(e,t,c,d,l,null)}Br(e,a,n,u);return;case"option":for(v in l)if(l.hasOwnProperty(v)&&(a=l[v],a!=null))switch(v){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:je(e,t,v,a,l,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(a=0;a<Rn.length;a++)fe(Rn[a],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:je(e,t,_,a,l,null)}return;default:if(Xi(t)){for(q in l)l.hasOwnProperty(q)&&(a=l[q],a!==void 0&&zc(e,t,q,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&je(e,t,d,a,l,null))}function py(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,d=null,v=null,_=null,q=null;for(U in l){var Y=l[U];if(l.hasOwnProperty(U)&&Y!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":v=Y;default:a.hasOwnProperty(U)||je(e,t,U,null,a,Y)}}for(var D in a){var U=a[D];if(Y=l[D],a.hasOwnProperty(D)&&(U!=null||Y!=null))switch(D){case"type":u=U;break;case"name":n=U;break;case"checked":_=U;break;case"defaultChecked":q=U;break;case"value":c=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==Y&&je(e,t,D,U,a,Y)}}Yi(e,c,d,v,_,q,u,n);return;case"select":U=c=d=D=null;for(u in l)if(v=l[u],l.hasOwnProperty(u)&&v!=null)switch(u){case"value":break;case"multiple":U=v;default:a.hasOwnProperty(u)||je(e,t,u,null,a,v)}for(n in a)if(u=a[n],v=l[n],a.hasOwnProperty(n)&&(u!=null||v!=null))switch(n){case"value":D=u;break;case"defaultValue":d=u;break;case"multiple":c=u;default:u!==v&&je(e,t,n,u,a,v)}t=d,l=c,a=U,D!=null?oa(e,!!l,D,!1):!!a!=!!l&&(t!=null?oa(e,!!l,t,!0):oa(e,!!l,l?[]:"",!1));return;case"textarea":U=D=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:je(e,t,d,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":D=n;break;case"defaultValue":U=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&je(e,t,c,n,a,u)}Lr(e,D,U);return;case"option":for(var J in l)if(D=l[J],l.hasOwnProperty(J)&&D!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:je(e,t,J,null,a,D)}for(v in a)if(D=a[v],U=l[v],a.hasOwnProperty(v)&&D!==U&&(D!=null||U!=null))switch(v){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:je(e,t,v,D,a,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)D=l[P],l.hasOwnProperty(P)&&D!=null&&!a.hasOwnProperty(P)&&je(e,t,P,null,a,D);for(_ in a)if(D=a[_],U=l[_],a.hasOwnProperty(_)&&D!==U&&(D!=null||U!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:je(e,t,_,D,a,U)}return;default:if(Xi(t)){for(var Ne in l)D=l[Ne],l.hasOwnProperty(Ne)&&D!==void 0&&!a.hasOwnProperty(Ne)&&zc(e,t,Ne,void 0,a,D);for(q in a)D=a[q],U=l[q],!a.hasOwnProperty(q)||D===U||D===void 0&&U===void 0||zc(e,t,q,D,a,U);return}}for(var C in l)D=l[C],l.hasOwnProperty(C)&&D!=null&&!a.hasOwnProperty(C)&&je(e,t,C,null,a,D);for(Y in a)D=a[Y],U=l[Y],!a.hasOwnProperty(Y)||D===U||D==null&&U==null||je(e,t,Y,D,a,U)}function Vd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,d=n.duration;if(u&&d&&Vd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var v=l[a],_=v.startTime;if(_>d)break;var q=v.transferSize,Y=v.initiatorType;q&&Vd(Y)&&(v=v.responseEnd,c+=q*(v<d?1:(d-_)/(v-_)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mc=null,wc=null;function ei(e){return e.nodeType===9?e:e.ownerDocument}function Zd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Oc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _c=null;function by(){var e=window.event;return e&&e.type==="popstate"?e===_c?!1:(_c=e,!0):(_c=null,!1)}var Kd=typeof setTimeout=="function"?setTimeout:void 0,Sy=typeof clearTimeout=="function"?clearTimeout:void 0,Jd=typeof Promise=="function"?Promise:void 0,jy=typeof queueMicrotask=="function"?queueMicrotask:typeof Jd<"u"?function(e){return Jd.resolve(null).then(e).catch(Ny)}:Kd;function Ny(e){setTimeout(function(){throw e})}function Rl(e){return e==="head"}function $d(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Qa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Un(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Un(l);for(var u=l.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[Ia]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Un(e.ownerDocument.body);l=n}while(l);Qa(t)}function Wd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Rc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Rc(l),Li(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ey(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ia])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Rt(e.nextSibling),e===null)break}return null}function Ay(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Rt(e.nextSibling),e===null))return null;return e}function Fd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rt(e.nextSibling),e===null))return null;return e}function Dc(e){return e.data==="$?"||e.data==="$~"}function Uc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ty(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Rt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Hc=null;function Id(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Rt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Pd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function em(e,t,l){switch(t=ei(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Un(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Li(e)}var Dt=new Map,tm=new Set;function ti(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ol=Z.d;Z.d={f:Cy,r:zy,D:My,C:wy,L:Oy,m:_y,X:Dy,S:Ry,M:Uy};function Cy(){var e=ol.f(),t=ku();return e||t}function zy(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?po(t):ol.r(e)}var Ya=typeof document>"u"?null:document;function lm(e,t,l){var a=Ya;if(a&&typeof t=="string"&&t){var n=Tt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),tm.has(n)||(tm.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Pe(t,"link",e),Ze(t),a.head.appendChild(t)))}}function My(e){ol.D(e),lm("dns-prefetch",e,null)}function wy(e,t){ol.C(e,t),lm("preconnect",e,t)}function Oy(e,t,l){ol.L(e,t,l);var a=Ya;if(a&&e&&t){var n='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Tt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Tt(l.imageSizes)+'"]')):n+='[href="'+Tt(e)+'"]';var u=n;switch(t){case"style":u=Ga(e);break;case"script":u=Xa(e)}Dt.has(u)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Hn(u))||t==="script"&&a.querySelector(qn(u))||(t=a.createElement("link"),Pe(t,"link",e),Ze(t),a.head.appendChild(t)))}}function _y(e,t){ol.m(e,t);var l=Ya;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Tt(a)+'"][href="'+Tt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Xa(e)}if(!Dt.has(u)&&(e=b({rel:"modulepreload",href:e},t),Dt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(qn(u)))return}a=l.createElement("link"),Pe(a,"link",e),Ze(a),l.head.appendChild(a)}}}function Ry(e,t,l){ol.S(e,t,l);var a=Ya;if(a&&e){var n=ra(a).hoistableStyles,u=Ga(e);t=t||"default";var c=n.get(u);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Hn(u)))d.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dt.get(u))&&qc(e,l);var v=c=a.createElement("link");Ze(v),Pe(v,"link",e),v._p=new Promise(function(_,q){v.onload=_,v.onerror=q}),v.addEventListener("load",function(){d.loading|=1}),v.addEventListener("error",function(){d.loading|=2}),d.loading|=4,li(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(u,c)}}}function Dy(e,t){ol.X(e,t);var l=Ya;if(l&&e){var a=ra(l).hoistableScripts,n=Xa(e),u=a.get(n);u||(u=l.querySelector(qn(n)),u||(e=b({src:e,async:!0},t),(t=Dt.get(n))&&Lc(e,t),u=l.createElement("script"),Ze(u),Pe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Uy(e,t){ol.M(e,t);var l=Ya;if(l&&e){var a=ra(l).hoistableScripts,n=Xa(e),u=a.get(n);u||(u=l.querySelector(qn(n)),u||(e=b({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&Lc(e,t),u=l.createElement("script"),Ze(u),Pe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function am(e,t,l,a){var n=(n=ce.current)?ti(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ga(l.href),l=ra(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ga(l.href);var u=ra(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(Hn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Dt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dt.set(e,l),u||Hy(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xa(l),l=ra(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ga(e){return'href="'+Tt(e)+'"'}function Hn(e){return'link[rel="stylesheet"]['+e+"]"}function nm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Hy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Pe(t,"link",l),Ze(t),e.head.appendChild(t))}function Xa(e){return'[src="'+Tt(e)+'"]'}function qn(e){return"script[async]"+e}function um(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Tt(l.href)+'"]');if(a)return t.instance=a,Ze(a),a;var n=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ze(a),Pe(a,"style",n),li(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ga(l.href);var u=e.querySelector(Hn(n));if(u)return t.state.loading|=4,t.instance=u,Ze(u),u;a=nm(l),(n=Dt.get(n))&&qc(a,n),u=(e.ownerDocument||e).createElement("link"),Ze(u);var c=u;return c._p=new Promise(function(d,v){c.onload=d,c.onerror=v}),Pe(u,"link",a),t.state.loading|=4,li(u,l.precedence,e),t.instance=u;case"script":return u=Xa(l.src),(n=e.querySelector(qn(u)))?(t.instance=n,Ze(n),n):(a=l,(n=Dt.get(u))&&(a=b({},l),Lc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ze(n),Pe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,li(a,l.precedence,e));return t.instance}function li(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Lc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ai=null;function im(e,t,l){if(ai===null){var a=new Map,n=ai=new Map;n.set(l,a)}else n=ai,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ia]||u[$e]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(u):a.set(c,[u])}}return a}function sm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function qy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function cm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ly(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ga(a.href),u=t.querySelector(Hn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ni.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ze(u);return}u=t.ownerDocument||t,a=nm(a),(n=Dt.get(n))&&qc(a,n),u=u.createElement("link"),Ze(u);var c=u;c._p=new Promise(function(d,v){c.onload=d,c.onerror=v}),Pe(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ni.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Bc=0;function By(e,t){return e.stylesheets&&e.count===0&&ii(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ii(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Bc===0&&(Bc=62500*vy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ii(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Bc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ni(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ii(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ui=null;function ii(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ui=new Map,t.forEach(Yy,e),ui=null,ni.call(e))}function Yy(e,t){if(!(t.state.loading&4)){var l=ui.get(e);if(l)var a=l.get(null);else{l=new Map,ui.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=ni.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Ln={$$typeof:H,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Gy(e,t,l,a,n,u,c,d,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Di(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Di(0),this.hiddenUpdates=Di(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function rm(e,t,l,a,n,u,c,d,v,_,q,Y){return e=new Gy(e,t,l,c,v,_,q,Y,d),t=1,u===!0&&(t|=24),u=xt(3,null,null,t),e.current=u,u.stateNode=e,t=ps(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},js(u),e}function fm(e){return e?(e=va,e):va}function om(e,t,l,a,n,u){n=fm(n),a.context===null?a.context=n:a.pendingContext=n,a=jl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Nl(e,a,t),l!==null&&(ot(l,e,t),gn(l,e,t))}function dm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Yc(e,t){dm(e,t),(e=e.alternate)&&dm(e,t)}function mm(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&ot(t,e,67108864),Yc(e,67108864)}}function hm(e){if(e.tag===13||e.tag===31){var t=jt();t=Ui(t);var l=kl(e,t);l!==null&&ot(l,e,t),Yc(e,t)}}var si=!0;function Xy(e,t,l,a){var n=L.T;L.T=null;var u=Z.p;try{Z.p=2,Gc(e,t,l,a)}finally{Z.p=u,L.T=n}}function Qy(e,t,l,a){var n=L.T;L.T=null;var u=Z.p;try{Z.p=8,Gc(e,t,l,a)}finally{Z.p=u,L.T=n}}function Gc(e,t,l,a){if(si){var n=Xc(a);if(n===null)Cc(e,t,a,ci,l),gm(e,a);else if(Zy(n,e,t,l,a))a.stopPropagation();else if(gm(e,a),t&4&&-1<Vy.indexOf(e)){for(;n!==null;){var u=ca(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Gl(u.pendingLanes);if(c!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var v=1<<31-yt(c);d.entanglements[1]|=v,c&=~v}Vt(u),(ge&6)===0&&(Vu=mt()+500,_n(0))}}break;case 31:case 13:d=kl(u,2),d!==null&&ot(d,u,2),ku(),Yc(u,2)}if(u=Xc(a),u===null&&Cc(e,t,a,ci,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Cc(e,t,a,null,l)}}function Xc(e){return e=Vi(e),Qc(e)}var ci=null;function Qc(e){if(ci=null,e=sa(e),e!==null){var t=y(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===31){if(e=S(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ci=e,null}function ym(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Mh()){case Sr:return 2;case jr:return 8;case Fn:case wh:return 32;case Nr:return 268435456;default:return 32}default:return 32}}var Vc=!1,Dl=null,Ul=null,Hl=null,Bn=new Map,Yn=new Map,ql=[],Vy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function gm(e,t){switch(e){case"focusin":case"focusout":Dl=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":Bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(t.pointerId)}}function Gn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ca(t),t!==null&&mm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Zy(e,t,l,a,n){switch(t){case"focusin":return Dl=Gn(Dl,e,t,l,a,n),!0;case"dragenter":return Ul=Gn(Ul,e,t,l,a,n),!0;case"mouseover":return Hl=Gn(Hl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Bn.set(u,Gn(Bn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Yn.set(u,Gn(Yn.get(u)||null,e,t,l,a,n)),!0}return!1}function xm(e){var t=sa(e.target);if(t!==null){var l=y(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,Mr(e.priority,function(){hm(l)});return}}else if(t===31){if(t=S(l),t!==null){e.blockedOn=t,Mr(e.priority,function(){hm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ri(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Xc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Qi=a,l.target.dispatchEvent(a),Qi=null}else return t=ca(l),t!==null&&mm(t),e.blockedOn=l,!1;t.shift()}return!0}function pm(e,t,l){ri(e)&&l.delete(t)}function ky(){Vc=!1,Dl!==null&&ri(Dl)&&(Dl=null),Ul!==null&&ri(Ul)&&(Ul=null),Hl!==null&&ri(Hl)&&(Hl=null),Bn.forEach(pm),Yn.forEach(pm)}function fi(e,t){e.blockedOn===t&&(e.blockedOn=null,Vc||(Vc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ky)))}var oi=null;function vm(e){oi!==e&&(oi=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){oi===e&&(oi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Qc(a||l)===null)continue;break}var u=ca(l);u!==null&&(e.splice(t,3),t-=3,Xs(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Qa(e){function t(v){return fi(v,e)}Dl!==null&&fi(Dl,e),Ul!==null&&fi(Ul,e),Hl!==null&&fi(Hl,e),Bn.forEach(t),Yn.forEach(t);for(var l=0;l<ql.length;l++){var a=ql[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ql.length&&(l=ql[0],l.blockedOn===null);)xm(l),l.blockedOn===null&&ql.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[ut]||null;if(typeof u=="function")c||vm(l);else if(c){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[ut]||null)d=c.formAction;else if(Qc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),vm(l)}}}function bm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Zc(e){this._internalRoot=e}di.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=jt();om(l,a,e,t,null,null)},di.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;om(e.current,2,null,e,null,null),ku(),t[ia]=null}};function di(e){this._internalRoot=e}di.prototype.unstable_scheduleHydration=function(e){if(e){var t=zr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ql.length&&t!==0&&t<ql[l].priority;l++);ql.splice(l,0,e),l===0&&xm(e)}};var Sm=f.version;if(Sm!=="19.2.4")throw Error(r(527,Sm,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=h(t),e=e!==null?j(e):null,e=e===null?null:e.stateNode,e};var Ky={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{$a=mi.inject(Ky),ht=mi}catch{}}return Qn.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=zo,u=Mo,c=wo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=rm(e,1,!1,null,null,l,a,null,n,u,c,bm),e[ia]=t.current,Tc(e),new Zc(t)},Qn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",u=zo,c=Mo,d=wo,v=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),t=rm(e,1,!0,t,l??null,a,n,v,u,c,d,bm),t.context=fm(null),l=t.current,a=jt(),a=Ui(a),n=jl(a),n.callback=null,Nl(l,n,a),l=a,t.current.lanes=l,Fa(t,l),Vt(t),e[ia]=t.current,Tc(e),new di(t)},Qn.version="19.2.4",Qn}var Om;function ug(){if(Om)return Jc.exports;Om=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Jc.exports=ng(),Jc.exports}var ig=ug();/**
|
|
50
|
+
* react-router v7.13.1
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var _m="popstate";function Rm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function sg(i={}){function f(r,m){var h;let y=(h=m.state)==null?void 0:h.masked,{pathname:x,search:S,hash:g}=y||r.location;return lr("",{pathname:x,search:S,hash:g},m.state&&m.state.usr||null,m.state&&m.state.key||"default",y?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function o(r,m){return typeof m=="string"?m:Zn(m)}return rg(f,o,null,i)}function Oe(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Yt(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function cg(){return Math.random().toString(36).substring(2,10)}function Dm(i,f){return{usr:i.state,key:i.key,idx:f,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function lr(i,f,o=null,r,m){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?Za(f):f,state:o,key:f&&f.key||r||cg(),unstable_mask:m}}function Zn({pathname:i="/",search:f="",hash:o=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function Za(i){let f={};if(i){let o=i.indexOf("#");o>=0&&(f.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(f.search=i.substring(r),i=i.substring(0,r)),i&&(f.pathname=i)}return f}function rg(i,f,o,r={}){let{window:m=document.defaultView,v5Compat:y=!1}=r,x=m.history,S="POP",g=null,h=j();h==null&&(h=0,x.replaceState({...x.state,idx:h},""));function j(){return(x.state||{idx:null}).idx}function b(){S="POP";let w=j(),N=w==null?null:w-h;h=w,g&&g({action:S,location:R.location,delta:N})}function z(w,N){S="PUSH";let G=Rm(w)?w:lr(R.location,w,N);h=j()+1;let H=Dm(G,h),V=R.createHref(G.unstable_mask||G);try{x.pushState(H,"",V)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;m.location.assign(V)}y&&g&&g({action:S,location:R.location,delta:1})}function M(w,N){S="REPLACE";let G=Rm(w)?w:lr(R.location,w,N);h=j();let H=Dm(G,h),V=R.createHref(G.unstable_mask||G);x.replaceState(H,"",V),y&&g&&g({action:S,location:R.location,delta:0})}function T(w){return fg(w)}let R={get action(){return S},get location(){return i(m,x)},listen(w){if(g)throw new Error("A history only accepts one active listener");return m.addEventListener(_m,b),g=w,()=>{m.removeEventListener(_m,b),g=null}},createHref(w){return f(m,w)},createURL:T,encodeLocation(w){let N=T(w);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:z,replace:M,go(w){return x.go(w)}};return R}function fg(i,f=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Oe(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Zn(i);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function Km(i,f,o="/"){return og(i,f,o,!1)}function og(i,f,o,r){let m=typeof f=="string"?Za(f):f,y=dl(m.pathname||"/",o);if(y==null)return null;let x=Jm(i);dg(x);let S=null;for(let g=0;S==null&&g<x.length;++g){let h=Ng(y);S=Sg(x[g],h,r)}return S}function Jm(i,f=[],o=[],r="",m=!1){let y=(x,S,g=m,h)=>{let j={relativePath:h===void 0?x.path||"":h,caseSensitive:x.caseSensitive===!0,childrenIndex:S,route:x};if(j.relativePath.startsWith("/")){if(!j.relativePath.startsWith(r)&&g)return;Oe(j.relativePath.startsWith(r),`Absolute route path "${j.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),j.relativePath=j.relativePath.slice(r.length)}let b=kt([r,j.relativePath]),z=o.concat(j);x.children&&x.children.length>0&&(Oe(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Jm(x.children,f,z,b,g)),!(x.path==null&&!x.index)&&f.push({path:b,score:vg(b,x.index),routesMeta:z})};return i.forEach((x,S)=>{var g;if(x.path===""||!((g=x.path)!=null&&g.includes("?")))y(x,S);else for(let h of $m(x.path))y(x,S,!0,h)}),f}function $m(i){let f=i.split("/");if(f.length===0)return[];let[o,...r]=f,m=o.endsWith("?"),y=o.replace(/\?$/,"");if(r.length===0)return m?[y,""]:[y];let x=$m(r.join("/")),S=[];return S.push(...x.map(g=>g===""?y:[y,g].join("/"))),m&&S.push(...x),S.map(g=>i.startsWith("/")&&g===""?"/":g)}function dg(i){i.sort((f,o)=>f.score!==o.score?o.score-f.score:bg(f.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var mg=/^:[\w-]+$/,hg=3,yg=2,gg=1,xg=10,pg=-2,Um=i=>i==="*";function vg(i,f){let o=i.split("/"),r=o.length;return o.some(Um)&&(r+=pg),f&&(r+=yg),o.filter(m=>!Um(m)).reduce((m,y)=>m+(mg.test(y)?hg:y===""?gg:xg),r)}function bg(i,f){return i.length===f.length&&i.slice(0,-1).every((r,m)=>r===f[m])?i[i.length-1]-f[f.length-1]:0}function Sg(i,f,o=!1){let{routesMeta:r}=i,m={},y="/",x=[];for(let S=0;S<r.length;++S){let g=r[S],h=S===r.length-1,j=y==="/"?f:f.slice(y.length)||"/",b=Si({path:g.relativePath,caseSensitive:g.caseSensitive,end:h},j),z=g.route;if(!b&&h&&o&&!r[r.length-1].route.index&&(b=Si({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},j)),!b)return null;Object.assign(m,b.params),x.push({params:m,pathname:kt([y,b.pathname]),pathnameBase:Cg(kt([y,b.pathnameBase])),route:z}),b.pathnameBase!=="/"&&(y=kt([y,b.pathnameBase]))}return x}function Si(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=jg(i.path,i.caseSensitive,i.end),m=f.match(o);if(!m)return null;let y=m[0],x=y.replace(/(.)\/+$/,"$1"),S=m.slice(1);return{params:r.reduce((h,{paramName:j,isOptional:b},z)=>{if(j==="*"){let T=S[z]||"";x=y.slice(0,y.length-T.length).replace(/(.)\/+$/,"$1")}const M=S[z];return b&&!M?h[j]=void 0:h[j]=(M||"").replace(/%2F/g,"/"),h},{}),pathname:y,pathnameBase:x,pattern:i}}function jg(i,f=!1,o=!0){Yt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,S,g,h,j)=>{if(r.push({paramName:S,isOptional:g!=null}),g){let b=j.charAt(h+x.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,f?void 0:"i"),r]}function Ng(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Yt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function dl(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let o=f.endsWith("/")?f.length-1:f.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}var Eg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ag(i,f="/"){let{pathname:o,search:r="",hash:m=""}=typeof i=="string"?Za(i):i,y;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?y=Hm(o.substring(1),"/"):y=Hm(o,f)):y=f,{pathname:y,search:zg(r),hash:Mg(m)}}function Hm(i,f){let o=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?o.length>1&&o.pop():m!=="."&&o.push(m)}),o.length>1?o.join("/"):"/"}function Ic(i,f,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tg(i){return i.filter((f,o)=>o===0||f.route.path&&f.route.path.length>0)}function cr(i){let f=Tg(i);return f.map((o,r)=>r===f.length-1?o.pathname:o.pathnameBase)}function ji(i,f,o,r=!1){let m;typeof i=="string"?m=Za(i):(m={...i},Oe(!m.pathname||!m.pathname.includes("?"),Ic("?","pathname","search",m)),Oe(!m.pathname||!m.pathname.includes("#"),Ic("#","pathname","hash",m)),Oe(!m.search||!m.search.includes("#"),Ic("#","search","hash",m)));let y=i===""||m.pathname==="",x=y?"/":m.pathname,S;if(x==null)S=o;else{let b=f.length-1;if(!r&&x.startsWith("..")){let z=x.split("/");for(;z[0]==="..";)z.shift(),b-=1;m.pathname=z.join("/")}S=b>=0?f[b]:"/"}let g=Ag(m,S),h=x&&x!=="/"&&x.endsWith("/"),j=(y||x===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(h||j)&&(g.pathname+="/"),g}var kt=i=>i.join("/").replace(/\/\/+/g,"/"),Cg=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),zg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Mg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,wg=class{constructor(i,f,o,r=!1){this.status=i,this.statusText=f||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Og(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function _g(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Wm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Fm(i,f){let o=i;if(typeof o!="string"||!Eg.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,m=!1;if(Wm)try{let y=new URL(window.location.href),x=o.startsWith("//")?new URL(y.protocol+o):new URL(o),S=dl(x.pathname,f);x.origin===y.origin&&S!=null?o=S+x.search+x.hash:m=!0}catch{Yt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Im=["POST","PUT","PATCH","DELETE"];new Set(Im);var Rg=["GET",...Im];new Set(Rg);var ka=p.createContext(null);ka.displayName="DataRouter";var Ni=p.createContext(null);Ni.displayName="DataRouterState";var Dg=p.createContext(!1),Pm=p.createContext({isTransitioning:!1});Pm.displayName="ViewTransition";var Ug=p.createContext(new Map);Ug.displayName="Fetchers";var Hg=p.createContext(null);Hg.displayName="Await";var Et=p.createContext(null);Et.displayName="Navigation";var Kn=p.createContext(null);Kn.displayName="Location";var Ht=p.createContext({outlet:null,matches:[],isDataRoute:!1});Ht.displayName="Route";var rr=p.createContext(null);rr.displayName="RouteError";var eh="REACT_ROUTER_ERROR",qg="REDIRECT",Lg="ROUTE_ERROR_RESPONSE";function Bg(i){if(i.startsWith(`${eh}:${qg}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function Yg(i){if(i.startsWith(`${eh}:${Lg}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new wg(f.status,f.statusText,f.data)}catch{}}function Gg(i,{relative:f}={}){Oe(Ka(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=p.useContext(Et),{hash:m,pathname:y,search:x}=Jn(i,{relative:f}),S=y;return o!=="/"&&(S=y==="/"?o:kt([o,y])),r.createHref({pathname:S,search:x,hash:m})}function Ka(){return p.useContext(Kn)!=null}function Kt(){return Oe(Ka(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Kn).location}var th="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lh(i){p.useContext(Et).static||p.useLayoutEffect(i)}function Ei(){let{isDataRoute:i}=p.useContext(Ht);return i?a1():Xg()}function Xg(){Oe(Ka(),"useNavigate() may be used only in the context of a <Router> component.");let i=p.useContext(ka),{basename:f,navigator:o}=p.useContext(Et),{matches:r}=p.useContext(Ht),{pathname:m}=Kt(),y=JSON.stringify(cr(r)),x=p.useRef(!1);return lh(()=>{x.current=!0}),p.useCallback((g,h={})=>{if(Yt(x.current,th),!x.current)return;if(typeof g=="number"){o.go(g);return}let j=ji(g,JSON.parse(y),m,h.relative==="path");i==null&&f!=="/"&&(j.pathname=j.pathname==="/"?f:kt([f,j.pathname])),(h.replace?o.replace:o.push)(j,h.state,h)},[f,o,y,m,i])}var Qg=p.createContext(null);function Vg(i){let f=p.useContext(Ht).outlet;return p.useMemo(()=>f&&p.createElement(Qg.Provider,{value:i},f),[f,i])}function Zg(){let{matches:i}=p.useContext(Ht),f=i[i.length-1];return f?f.params:{}}function Jn(i,{relative:f}={}){let{matches:o}=p.useContext(Ht),{pathname:r}=Kt(),m=JSON.stringify(cr(o));return p.useMemo(()=>ji(i,JSON.parse(m),r,f==="path"),[i,m,r,f])}function kg(i,f){return ah(i,f)}function ah(i,f,o){var w;Oe(Ka(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=p.useContext(Et),{matches:m}=p.useContext(Ht),y=m[m.length-1],x=y?y.params:{},S=y?y.pathname:"/",g=y?y.pathnameBase:"/",h=y&&y.route;{let N=h&&h.path||"";uh(S,!h||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${S}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let j=Kt(),b;if(f){let N=typeof f=="string"?Za(f):f;Oe(g==="/"||((w=N.pathname)==null?void 0:w.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${N.pathname}" was given in the \`location\` prop.`),b=N}else b=j;let z=b.pathname||"/",M=z;if(g!=="/"){let N=g.replace(/^\//,"").split("/");M="/"+z.replace(/^\//,"").split("/").slice(N.length).join("/")}let T=Km(i,{pathname:M});Yt(h||T!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Yt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=Fg(T&&T.map(N=>Object.assign({},N,{params:Object.assign({},x,N.params),pathname:kt([g,r.encodeLocation?r.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?g:kt([g,r.encodeLocation?r.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),m,o);return f&&R?p.createElement(Kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},R):R}function Kg(){let i=l1(),f=Og(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},y={padding:"2px 4px",backgroundColor:r},x=null;return console.error("Error handled by React Router default ErrorBoundary:",i),x=p.createElement(p.Fragment,null,p.createElement("p",null,"๐ฟ Hey developer ๐"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:y},"ErrorBoundary")," or"," ",p.createElement("code",{style:y},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},f),o?p.createElement("pre",{style:m},o):null,x)}var Jg=p.createElement(Kg,null),nh=class extends p.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=Yg(i.digest);o&&(i=o)}let f=i!==void 0?p.createElement(Ht.Provider,{value:this.props.routeContext},p.createElement(rr.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?p.createElement($g,{error:i},f):f}};nh.contextType=Dg;var Pc=new WeakMap;function $g({children:i,error:f}){let{basename:o}=p.useContext(Et);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=Bg(f.digest);if(r){let m=Pc.get(f);if(m)throw m;let y=Fm(r.location,o);if(Wm&&!Pc.get(f))if(y.isExternal||r.reloadDocument)window.location.href=y.absoluteURL||y.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(y.to,{replace:r.replace}));throw Pc.set(f,x),x}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y.absoluteURL||y.to}`})}}return i}function Wg({routeContext:i,match:f,children:o}){let r=p.useContext(ka);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),p.createElement(Ht.Provider,{value:i},o)}function Fg(i,f=[],o){let r=o==null?void 0:o.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(f.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,y=r==null?void 0:r.errors;if(y!=null){let j=m.findIndex(b=>b.route.id&&(y==null?void 0:y[b.route.id])!==void 0);Oe(j>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),m=m.slice(0,Math.min(m.length,j+1))}let x=!1,S=-1;if(o&&r){x=r.renderFallback;for(let j=0;j<m.length;j++){let b=m[j];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(S=j),b.route.id){let{loaderData:z,errors:M}=r,T=b.route.loader&&!z.hasOwnProperty(b.route.id)&&(!M||M[b.route.id]===void 0);if(b.route.lazy||T){o.isStatic&&(x=!0),S>=0?m=m.slice(0,S+1):m=[m[0]];break}}}}let g=o==null?void 0:o.onError,h=r&&g?(j,b)=>{var z,M;g(j,{location:r.location,params:((M=(z=r.matches)==null?void 0:z[0])==null?void 0:M.params)??{},unstable_pattern:_g(r.matches),errorInfo:b})}:void 0;return m.reduceRight((j,b,z)=>{let M,T=!1,R=null,w=null;r&&(M=y&&b.route.id?y[b.route.id]:void 0,R=b.route.errorElement||Jg,x&&(S<0&&z===0?(uh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,w=null):S===z&&(T=!0,w=b.route.hydrateFallbackElement||null)));let N=f.concat(m.slice(0,z+1)),G=()=>{let H;return M?H=R:T?H=w:b.route.Component?H=p.createElement(b.route.Component,null):b.route.element?H=b.route.element:H=j,p.createElement(Wg,{match:b,routeContext:{outlet:j,matches:N,isDataRoute:r!=null},children:H})};return r&&(b.route.ErrorBoundary||b.route.errorElement||z===0)?p.createElement(nh,{location:r.location,revalidation:r.revalidation,component:R,error:M,children:G(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:h}):G()},null)}function fr(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ig(i){let f=p.useContext(ka);return Oe(f,fr(i)),f}function Pg(i){let f=p.useContext(Ni);return Oe(f,fr(i)),f}function e1(i){let f=p.useContext(Ht);return Oe(f,fr(i)),f}function or(i){let f=e1(i),o=f.matches[f.matches.length-1];return Oe(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function t1(){return or("useRouteId")}function l1(){var r;let i=p.useContext(rr),f=Pg("useRouteError"),o=or("useRouteError");return i!==void 0?i:(r=f.errors)==null?void 0:r[o]}function a1(){let{router:i}=Ig("useNavigate"),f=or("useNavigate"),o=p.useRef(!1);return lh(()=>{o.current=!0}),p.useCallback(async(m,y={})=>{Yt(o.current,th),o.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:f,...y}))},[i,f])}var qm={};function uh(i,f,o){!f&&!qm[i]&&(qm[i]=!0,Yt(!1,o))}p.memo(n1);function n1({routes:i,future:f,state:o,isStatic:r,onError:m}){return ah(i,void 0,{state:o,isStatic:r,onError:m})}function u1({to:i,replace:f,state:o,relative:r}){Oe(Ka(),"<Navigate> may be used only in the context of a <Router> component.");let{static:m}=p.useContext(Et);Yt(!m,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:y}=p.useContext(Ht),{pathname:x}=Kt(),S=Ei(),g=ji(i,cr(y),x,r==="path"),h=JSON.stringify(g);return p.useEffect(()=>{S(JSON.parse(h),{replace:f,state:o,relative:r})},[S,h,r,f,o]),null}function i1(i){return Vg(i.context)}function dt(i){Oe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function s1({basename:i="/",children:f=null,location:o,navigationType:r="POP",navigator:m,static:y=!1,unstable_useTransitions:x}){Oe(!Ka(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let S=i.replace(/^\/*/,"/"),g=p.useMemo(()=>({basename:S,navigator:m,static:y,unstable_useTransitions:x,future:{}}),[S,m,y,x]);typeof o=="string"&&(o=Za(o));let{pathname:h="/",search:j="",hash:b="",state:z=null,key:M="default",unstable_mask:T}=o,R=p.useMemo(()=>{let w=dl(h,S);return w==null?null:{location:{pathname:w,search:j,hash:b,state:z,key:M,unstable_mask:T},navigationType:r}},[S,h,j,b,z,M,r,T]);return Yt(R!=null,`<Router basename="${S}"> is not able to match the URL "${h}${j}${b}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:p.createElement(Et.Provider,{value:g},p.createElement(Kn.Provider,{children:f,value:R}))}function c1({children:i,location:f}){return kg(ar(i),f)}function ar(i,f=[]){let o=[];return p.Children.forEach(i,(r,m)=>{if(!p.isValidElement(r))return;let y=[...f,m];if(r.type===p.Fragment){o.push.apply(o,ar(r.props.children,y));return}Oe(r.type===dt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Oe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let x={id:r.props.id||y.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(x.children=ar(r.props.children,y)),o.push(x)}),o}var vi="get",bi="application/x-www-form-urlencoded";function Ai(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function r1(i){return Ai(i)&&i.tagName.toLowerCase()==="button"}function f1(i){return Ai(i)&&i.tagName.toLowerCase()==="form"}function o1(i){return Ai(i)&&i.tagName.toLowerCase()==="input"}function d1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function m1(i,f){return i.button===0&&(!f||f==="_self")&&!d1(i)}var hi=null;function h1(){if(hi===null)try{new FormData(document.createElement("form"),0),hi=!1}catch{hi=!0}return hi}var y1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function er(i){return i!=null&&!y1.has(i)?(Yt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bi}"`),null):i}function g1(i,f){let o,r,m,y,x;if(f1(i)){let S=i.getAttribute("action");r=S?dl(S,f):null,o=i.getAttribute("method")||vi,m=er(i.getAttribute("enctype"))||bi,y=new FormData(i)}else if(r1(i)||o1(i)&&(i.type==="submit"||i.type==="image")){let S=i.form;if(S==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||S.getAttribute("action");if(r=g?dl(g,f):null,o=i.getAttribute("formmethod")||S.getAttribute("method")||vi,m=er(i.getAttribute("formenctype"))||er(S.getAttribute("enctype"))||bi,y=new FormData(S,i),!h1()){let{name:h,type:j,value:b}=i;if(j==="image"){let z=h?`${h}.`:"";y.append(`${z}x`,"0"),y.append(`${z}y`,"0")}else h&&y.append(h,b)}}else{if(Ai(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=vi,r=null,m=bi,x=i}return y&&m==="text/plain"&&(x=y,y=void 0),{action:r,method:o.toLowerCase(),encType:m,formData:y,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function dr(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function x1(i,f,o,r){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:f&&dl(m.pathname,f)==="/"?m.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function p1(i,f){if(i.id in f)return f[i.id];try{let o=await import(i.module);return f[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function v1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function b1(i,f,o){let r=await Promise.all(i.map(async m=>{let y=f.routes[m.route.id];if(y){let x=await p1(y,o);return x.links?x.links():[]}return[]}));return E1(r.flat(1).filter(v1).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function Lm(i,f,o,r,m,y){let x=(g,h)=>o[h]?g.route.id!==o[h].route.id:!0,S=(g,h)=>{var j;return o[h].pathname!==g.pathname||((j=o[h].route.path)==null?void 0:j.endsWith("*"))&&o[h].params["*"]!==g.params["*"]};return y==="assets"?f.filter((g,h)=>x(g,h)||S(g,h)):y==="data"?f.filter((g,h)=>{var b;let j=r.routes[g.route.id];if(!j||!j.hasLoader)return!1;if(x(g,h)||S(g,h))return!0;if(g.route.shouldRevalidate){let z=g.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((b=o[0])==null?void 0:b.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function S1(i,f,{includeHydrateFallback:o}={}){return j1(i.map(r=>{let m=f.routes[r.route.id];if(!m)return[];let y=[m.module];return m.clientActionModule&&(y=y.concat(m.clientActionModule)),m.clientLoaderModule&&(y=y.concat(m.clientLoaderModule)),o&&m.hydrateFallbackModule&&(y=y.concat(m.hydrateFallbackModule)),m.imports&&(y=y.concat(m.imports)),y}).flat(1))}function j1(i){return[...new Set(i)]}function N1(i){let f={},o=Object.keys(i).sort();for(let r of o)f[r]=i[r];return f}function E1(i,f){let o=new Set;return new Set(f),i.reduce((r,m)=>{let y=JSON.stringify(N1(m));return o.has(y)||(o.add(y),r.push({key:y,link:m})),r},[])}function ih(){let i=p.useContext(ka);return dr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function A1(){let i=p.useContext(Ni);return dr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var mr=p.createContext(void 0);mr.displayName="FrameworkContext";function sh(){let i=p.useContext(mr);return dr(i,"You must render this element inside a <HydratedRouter> element"),i}function T1(i,f){let o=p.useContext(mr),[r,m]=p.useState(!1),[y,x]=p.useState(!1),{onFocus:S,onBlur:g,onMouseEnter:h,onMouseLeave:j,onTouchStart:b}=f,z=p.useRef(null);p.useEffect(()=>{if(i==="render"&&x(!0),i==="viewport"){let R=N=>{N.forEach(G=>{x(G.isIntersecting)})},w=new IntersectionObserver(R,{threshold:.5});return z.current&&w.observe(z.current),()=>{w.disconnect()}}},[i]),p.useEffect(()=>{if(r){let R=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(R)}}},[r]);let M=()=>{m(!0)},T=()=>{m(!1),x(!1)};return o?i!=="intent"?[y,z,{}]:[y,z,{onFocus:Vn(S,M),onBlur:Vn(g,T),onMouseEnter:Vn(h,M),onMouseLeave:Vn(j,T),onTouchStart:Vn(b,M)}]:[!1,z,{}]}function Vn(i,f){return o=>{i&&i(o),o.defaultPrevented||f(o)}}function C1({page:i,...f}){let{router:o}=ih(),r=p.useMemo(()=>Km(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?p.createElement(M1,{page:i,matches:r,...f}):null}function z1(i){let{manifest:f,routeModules:o}=sh(),[r,m]=p.useState([]);return p.useEffect(()=>{let y=!1;return b1(i,f,o).then(x=>{y||m(x)}),()=>{y=!0}},[i,f,o]),r}function M1({page:i,matches:f,...o}){let r=Kt(),{future:m,manifest:y,routeModules:x}=sh(),{basename:S}=ih(),{loaderData:g,matches:h}=A1(),j=p.useMemo(()=>Lm(i,f,h,y,r,"data"),[i,f,h,y,r]),b=p.useMemo(()=>Lm(i,f,h,y,r,"assets"),[i,f,h,y,r]),z=p.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let R=new Set,w=!1;if(f.forEach(G=>{var V;let H=y.routes[G.route.id];!H||!H.hasLoader||(!j.some(F=>F.route.id===G.route.id)&&G.route.id in g&&((V=x[G.route.id])!=null&&V.shouldRevalidate)||H.hasClientLoader?w=!0:R.add(G.route.id))}),R.size===0)return[];let N=x1(i,S,m.unstable_trailingSlashAwareDataRequests,"data");return w&&R.size>0&&N.searchParams.set("_routes",f.filter(G=>R.has(G.route.id)).map(G=>G.route.id).join(",")),[N.pathname+N.search]},[S,m.unstable_trailingSlashAwareDataRequests,g,r,y,j,f,i,x]),M=p.useMemo(()=>S1(b,y),[b,y]),T=z1(b);return p.createElement(p.Fragment,null,z.map(R=>p.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...o})),M.map(R=>p.createElement("link",{key:R,rel:"modulepreload",href:R,...o})),T.map(({key:R,link:w})=>p.createElement("link",{key:R,nonce:o.nonce,...w,crossOrigin:w.crossOrigin??o.crossOrigin})))}function w1(...i){return f=>{i.forEach(o=>{typeof o=="function"?o(f):o!=null&&(o.current=f)})}}var O1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{O1&&(window.__reactRouterVersion="7.13.1")}catch{}function _1({basename:i,children:f,unstable_useTransitions:o,window:r}){let m=p.useRef();m.current==null&&(m.current=sg({window:r,v5Compat:!0}));let y=m.current,[x,S]=p.useState({action:y.action,location:y.location}),g=p.useCallback(h=>{o===!1?S(h):p.startTransition(()=>S(h))},[o]);return p.useLayoutEffect(()=>y.listen(g),[y,g]),p.createElement(s1,{basename:i,children:f,location:x.location,navigationType:x.action,navigator:y,unstable_useTransitions:o})}var ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zt=p.forwardRef(function({onClick:f,discover:o="render",prefetch:r="none",relative:m,reloadDocument:y,replace:x,unstable_mask:S,state:g,target:h,to:j,preventScrollReset:b,viewTransition:z,unstable_defaultShouldRevalidate:M,...T},R){let{basename:w,navigator:N,unstable_useTransitions:G}=p.useContext(Et),H=typeof j=="string"&&ch.test(j),V=Fm(j,w);j=V.to;let F=Gg(j,{relative:m}),te=Kt(),K=null;if(S){let _e=ji(S,[],te.unstable_mask?te.unstable_mask.pathname:"/",!0);w!=="/"&&(_e.pathname=_e.pathname==="/"?w:kt([w,_e.pathname])),K=N.createHref(_e)}let[Q,se,Te]=T1(r,T),Ce=U1(j,{replace:x,unstable_mask:S,state:g,target:h,preventScrollReset:b,relative:m,viewTransition:z,unstable_defaultShouldRevalidate:M,unstable_useTransitions:G});function Qe(_e){f&&f(_e),_e.defaultPrevented||Ce(_e)}let Je=!(V.isExternal||y),nt=p.createElement("a",{...T,...Te,href:(Je?K:void 0)||V.absoluteURL||F,onClick:Je?Qe:f,ref:w1(R,se),target:h,"data-discover":!H&&o==="render"?"true":void 0});return Q&&!H?p.createElement(p.Fragment,null,nt,p.createElement(C1,{page:F})):nt});Zt.displayName="Link";var rh=p.forwardRef(function({"aria-current":f="page",caseSensitive:o=!1,className:r="",end:m=!1,style:y,to:x,viewTransition:S,children:g,...h},j){let b=Jn(x,{relative:h.relative}),z=Kt(),M=p.useContext(Ni),{navigator:T,basename:R}=p.useContext(Et),w=M!=null&&Y1(b)&&S===!0,N=T.encodeLocation?T.encodeLocation(b).pathname:b.pathname,G=z.pathname,H=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;o||(G=G.toLowerCase(),H=H?H.toLowerCase():null,N=N.toLowerCase()),H&&R&&(H=dl(H,R)||H);const V=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let F=G===N||!m&&G.startsWith(N)&&G.charAt(V)==="/",te=H!=null&&(H===N||!m&&H.startsWith(N)&&H.charAt(N.length)==="/"),K={isActive:F,isPending:te,isTransitioning:w},Q=F?f:void 0,se;typeof r=="function"?se=r(K):se=[r,F?"active":null,te?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Te=typeof y=="function"?y(K):y;return p.createElement(Zt,{...h,"aria-current":Q,className:se,ref:j,style:Te,to:x,viewTransition:S},typeof g=="function"?g(K):g)});rh.displayName="NavLink";var R1=p.forwardRef(({discover:i="render",fetcherKey:f,navigate:o,reloadDocument:r,replace:m,state:y,method:x=vi,action:S,onSubmit:g,relative:h,preventScrollReset:j,viewTransition:b,unstable_defaultShouldRevalidate:z,...M},T)=>{let{unstable_useTransitions:R}=p.useContext(Et),w=L1(),N=B1(S,{relative:h}),G=x.toLowerCase()==="get"?"get":"post",H=typeof S=="string"&&ch.test(S),V=F=>{if(g&&g(F),F.defaultPrevented)return;F.preventDefault();let te=F.nativeEvent.submitter,K=(te==null?void 0:te.getAttribute("formmethod"))||x,Q=()=>w(te||F.currentTarget,{fetcherKey:f,method:K,navigate:o,replace:m,state:y,relative:h,preventScrollReset:j,viewTransition:b,unstable_defaultShouldRevalidate:z});R&&o!==!1?p.startTransition(()=>Q()):Q()};return p.createElement("form",{ref:T,method:G,action:N,onSubmit:r?g:V,...M,"data-discover":!H&&i==="render"?"true":void 0})});R1.displayName="Form";function D1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fh(i){let f=p.useContext(ka);return Oe(f,D1(i)),f}function U1(i,{target:f,replace:o,unstable_mask:r,state:m,preventScrollReset:y,relative:x,viewTransition:S,unstable_defaultShouldRevalidate:g,unstable_useTransitions:h}={}){let j=Ei(),b=Kt(),z=Jn(i,{relative:x});return p.useCallback(M=>{if(m1(M,f)){M.preventDefault();let T=o!==void 0?o:Zn(b)===Zn(z),R=()=>j(i,{replace:T,unstable_mask:r,state:m,preventScrollReset:y,relative:x,viewTransition:S,unstable_defaultShouldRevalidate:g});h?p.startTransition(()=>R()):R()}},[b,j,z,o,r,m,f,i,y,x,S,g,h])}var H1=0,q1=()=>`__${String(++H1)}__`;function L1(){let{router:i}=fh("useSubmit"),{basename:f}=p.useContext(Et),o=t1(),r=i.fetch,m=i.navigate;return p.useCallback(async(y,x={})=>{let{action:S,method:g,encType:h,formData:j,body:b}=g1(y,f);if(x.navigate===!1){let z=x.fetcherKey||q1();await r(z,o,x.action||S,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:j,body:b,formMethod:x.method||g,formEncType:x.encType||h,flushSync:x.flushSync})}else await m(x.action||S,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:j,body:b,formMethod:x.method||g,formEncType:x.encType||h,replace:x.replace,state:x.state,fromRouteId:o,flushSync:x.flushSync,viewTransition:x.viewTransition})},[r,m,f,o])}function B1(i,{relative:f}={}){let{basename:o}=p.useContext(Et),r=p.useContext(Ht);Oe(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),y={...Jn(i||".",{relative:f})},x=Kt();if(i==null){y.search=x.search;let S=new URLSearchParams(y.search),g=S.getAll("index");if(g.some(j=>j==="")){S.delete("index"),g.filter(b=>b).forEach(b=>S.append("index",b));let j=S.toString();y.search=j?`?${j}`:""}}return(!i||i===".")&&m.route.index&&(y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(y.pathname=y.pathname==="/"?o:kt([o,y.pathname])),Zn(y)}function Y1(i,{relative:f}={}){let o=p.useContext(Pm);Oe(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=fh("useViewTransitionState"),m=Jn(i,{relative:f});if(!o.isTransitioning)return!1;let y=dl(o.currentLocation.pathname,r)||o.currentLocation.pathname,x=dl(o.nextLocation.pathname,r)||o.nextLocation.pathname;return Si(m.pathname,x)!=null||Si(m.pathname,y)!=null}/**
|
|
61
|
+
* @license lucide-react v0.468.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const G1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),oh=(...i)=>i.filter((f,o,r)=>!!f&&f.trim()!==""&&r.indexOf(f)===o).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v0.468.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/var X1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
+
* @license lucide-react v0.468.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const Q1=p.forwardRef(({color:i="currentColor",size:f=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:m="",children:y,iconNode:x,...S},g)=>p.createElement("svg",{ref:g,...X1,width:f,height:f,stroke:i,strokeWidth:r?Number(o)*24/Number(f):o,className:oh("lucide",m),...S},[...x.map(([h,j])=>p.createElement(h,j)),...Array.isArray(y)?y:[y]]));/**
|
|
76
|
+
* @license lucide-react v0.468.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const le=(i,f)=>{const o=p.forwardRef(({className:r,...m},y)=>p.createElement(Q1,{ref:y,iconNode:f,className:oh(`lucide-${G1(i)}`,r),...m}));return o.displayName=`${i}`,o};/**
|
|
81
|
+
* @license lucide-react v0.468.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const V1=le("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
86
|
+
* @license lucide-react v0.468.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const Z1=le("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]);/**
|
|
91
|
+
* @license lucide-react v0.468.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const k1=le("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
96
|
+
* @license lucide-react v0.468.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const K1=le("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
101
|
+
* @license lucide-react v0.468.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const J1=le("AtSign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]);/**
|
|
106
|
+
* @license lucide-react v0.468.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const ua=le("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
111
|
+
* @license lucide-react v0.468.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const dh=le("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
116
|
+
* @license lucide-react v0.468.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const mh=le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
121
|
+
* @license lucide-react v0.468.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const hh=le("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
126
|
+
* @license lucide-react v0.468.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const Ti=le("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
131
|
+
* @license lucide-react v0.468.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const nr=le("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
136
|
+
* @license lucide-react v0.468.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const Bm=le("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
141
|
+
* @license lucide-react v0.468.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const ur=le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
146
|
+
* @license lucide-react v0.468.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const $1=le("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
151
|
+
* @license lucide-react v0.468.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const Ym=le("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
156
|
+
* @license lucide-react v0.468.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const W1=le("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
161
|
+
* @license lucide-react v0.468.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const F1=le("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
166
|
+
* @license lucide-react v0.468.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const I1=le("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
171
|
+
* @license lucide-react v0.468.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const P1=le("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
176
|
+
* @license lucide-react v0.468.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const ex=le("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
181
|
+
* @license lucide-react v0.468.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const Nt=le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
186
|
+
* @license lucide-react v0.468.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const yh=le("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|
191
|
+
* @license lucide-react v0.468.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const tx=le("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
|
196
|
+
* @license lucide-react v0.468.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const lx=le("MessageSquareMore",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M16 10h.01",key:"1m94wz"}]]);/**
|
|
201
|
+
* @license lucide-react v0.468.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const $n=le("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
206
|
+
* @license lucide-react v0.468.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const ax=le("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/**
|
|
211
|
+
* @license lucide-react v0.468.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const nx=le("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
|
216
|
+
* @license lucide-react v0.468.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const Gm=le("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
221
|
+
* @license lucide-react v0.468.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const Xm=le("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
226
|
+
* @license lucide-react v0.468.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const Ci=le("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
|
|
231
|
+
* @license lucide-react v0.468.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const kn=le("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
236
|
+
* @license lucide-react v0.468.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const hr=le("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
241
|
+
* @license lucide-react v0.468.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const ux=le("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
246
|
+
* @license lucide-react v0.468.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const gh=le("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
251
|
+
* @license lucide-react v0.468.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const xh=le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
256
|
+
* @license lucide-react v0.468.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const ix=le("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
261
|
+
* @license lucide-react v0.468.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const yr=le("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
266
|
+
* @license lucide-react v0.468.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const sx=le("ShieldOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]);/**
|
|
271
|
+
* @license lucide-react v0.468.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const cx=le("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
|
|
276
|
+
* @license lucide-react v0.468.0 - ISC
|
|
277
|
+
*
|
|
278
|
+
* This source code is licensed under the ISC license.
|
|
279
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
+
*/const rx=le("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
|
|
281
|
+
* @license lucide-react v0.468.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const fx=le("ToggleRight",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]]);/**
|
|
286
|
+
* @license lucide-react v0.468.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const gr=le("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
291
|
+
* @license lucide-react v0.468.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const ox=le("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
296
|
+
* @license lucide-react v0.468.0 - ISC
|
|
297
|
+
*
|
|
298
|
+
* This source code is licensed under the ISC license.
|
|
299
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
+
*/const xr=le("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
301
|
+
* @license lucide-react v0.468.0 - ISC
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the ISC license.
|
|
304
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/const ph=le("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
306
|
+
* @license lucide-react v0.468.0 - ISC
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the ISC license.
|
|
309
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/const vh=le("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
|
311
|
+
* @license lucide-react v0.468.0 - ISC
|
|
312
|
+
*
|
|
313
|
+
* This source code is licensed under the ISC license.
|
|
314
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
315
|
+
*/const dx=le("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);let mx=0;function Qm(){return`op-${++mx}-${Date.now().toString(36)}`}const hx="webchat-ui";class yx{constructor(f,o){Ut(this,"ws",null);Ut(this,"pending",new Map);Ut(this,"eventHandlers",new Map);Ut(this,"closed",!1);Ut(this,"connectSent",!1);Ut(this,"connectTimer",null);Ut(this,"_connected",!1);Ut(this,"_snapshot",null);Ut(this,"reconnectTimer",null);Ut(this,"onConnectedChange");Ut(this,"onConnectError");this.url=f,this.token=o}get connected(){return this._connected}get snapshot(){return this._snapshot}setCallbacks(f){this.onConnectedChange=f.onConnectedChange,this.onConnectError=f.onConnectError}start(){this.closed=!1,this.doConnect()}stop(){var f;this.closed=!0,this._connected=!1,this.reconnectTimer!==null&&(window.clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.connectTimer!==null&&(window.clearTimeout(this.connectTimer),this.connectTimer=null),(f=this.ws)==null||f.close(),this.ws=null;for(const[,o]of this.pending)o.reject(new Error("client stopped"));this.pending.clear()}on(f,o){let r=this.eventHandlers.get(f);return r||(r=new Set,this.eventHandlers.set(f,r)),r.add(o),()=>r.delete(o)}async request(f,o){if(!this.ws||this.ws.readyState!==WebSocket.OPEN||!this._connected)throw new Error("gateway not connected");const r=Qm(),m={type:"req",id:r,method:f,params:o};return new Promise((y,x)=>{this.pending.set(r,{resolve:S=>y(S),reject:x}),this.ws.send(JSON.stringify(m))})}doConnect(){if(this.closed)return;const f=new WebSocket(this.url);this.ws=f,this.connectSent=!1,f.addEventListener("open",()=>{this.ws===f&&this.scheduleConnect()}),f.addEventListener("message",o=>{this.ws===f&&this.handleMessage(String(o.data??""))}),f.addEventListener("close",o=>{var m;if(this.ws!==f)return;this.ws=null;const r=this._connected;this._connected=!1,r&&((m=this.onConnectedChange)==null||m.call(this,!1));for(const[,y]of this.pending)y.reject(new Error(`closed: ${o.code}`));this.pending.clear(),!this.closed&&r&&(this.reconnectTimer=window.setTimeout(()=>this.doConnect(),2e3))}),f.addEventListener("error",()=>{})}scheduleConnect(){this.connectTimer!==null&&window.clearTimeout(this.connectTimer),this.connectTimer=window.setTimeout(()=>{this.sendConnect()},100)}async sendConnect(){var o,r,m;if(this.connectSent||!this.ws||this.ws.readyState!==WebSocket.OPEN)return;this.connectSent=!0,this.connectTimer!==null&&(window.clearTimeout(this.connectTimer),this.connectTimer=null);const f={minProtocol:3,maxProtocol:3,client:{id:hx,version:"0.1.0",platform:navigator.platform??"web",mode:"ui"},role:"operator",scopes:["operator.admin","operator.approvals","operator.pairing"],caps:[],auth:{token:this.token},userAgent:navigator.userAgent,locale:navigator.language};try{const y=await this.request_internal("connect",f);this._connected=!0,this._snapshot=(y==null?void 0:y.snapshot)??null,(o=this.onConnectedChange)==null||o.call(this,!0)}catch(y){const x=y instanceof Error?y.message:"connect failed";(r=this.onConnectError)==null||r.call(this,x),(m=this.ws)==null||m.close(4008,"connect failed")}}async request_internal(f,o){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("gateway not connected");const r=Qm(),m={type:"req",id:r,method:f,params:o};return new Promise((y,x)=>{this.pending.set(r,{resolve:S=>y(S),reject:x}),this.ws.send(JSON.stringify(m))})}handleMessage(f){var m;let o;try{o=JSON.parse(f)}catch{return}const r=o;if(r.type==="event"){const y=o;if(y.event==="connect.challenge"){const g=y.payload;g!=null&&g.nonce&&(this.connectSent=!1,this.sendConnect());return}const x=this.eventHandlers.get(y.event);if(x)for(const g of x)try{g(y.payload)}catch{}const S=this.eventHandlers.get("*");if(S)for(const g of S)try{g(y)}catch{}return}if(r.type==="res"){const y=o,x=this.pending.get(y.id);if(!x)return;this.pending.delete(y.id),y.ok?x.resolve(y.payload):x.reject(new Error(((m=y.error)==null?void 0:m.message)??"request failed"))}}}const bh=p.createContext({authenticated:!1,connected:!1,connecting:!1,error:null,gateway:null,login:()=>{},logout:()=>{}});function Re(){return p.useContext(bh)}function gx(){return`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}`}const yi="operator-ui-auth";function xx({children:i}){const[f,o]=p.useState(!1),[r,m]=p.useState(!1),[y,x]=p.useState(!1),[S,g]=p.useState(null),h=p.useRef(null),j=p.useRef(null);p.useEffect(()=>{const M=sessionStorage.getItem(yi);return M&&b(M),()=>{var T;(T=h.current)==null||T.stop()}},[]);const b=p.useCallback(M=>{var R;(R=h.current)==null||R.stop(),x(!0),g(null),j.current=M;const T=new yx(gx(),M);h.current=T,T.setCallbacks({onConnectedChange:w=>{x(!1),m(w),w&&(o(!0),g(null),sessionStorage.setItem(yi,M))},onConnectError:w=>{x(!1),m(!1),o(!1),sessionStorage.removeItem(yi),T.stop(),g(w)}}),T.start()},[]),z=p.useCallback(()=>{var M;(M=h.current)==null||M.stop(),h.current=null,j.current=null,o(!1),m(!1),g(null),sessionStorage.removeItem(yi)},[]);return s.jsx(bh.Provider,{value:{authenticated:f,connected:r,connecting:y,error:S,gateway:h.current,login:b,logout:z},children:i})}function Sh(i){var f,o,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var m=i.length;for(f=0;f<m;f++)i[f]&&(o=Sh(i[f]))&&(r&&(r+=" "),r+=o)}else for(o in i)i[o]&&(r&&(r+=" "),r+=o);return r}function Ke(){for(var i,f,o=0,r="",m=arguments.length;o<m;o++)(i=arguments[o])&&(f=Sh(i))&&(r&&(r+=" "),r+=f);return r}const px=[{to:"/",icon:ex,label:"Dashboard",end:!0},{to:"/agents",icon:ua,label:"Agents"},{to:"/channels",icon:kn,label:"Channels"},{to:"/groups",icon:xr,label:"Groups"},{to:"/skills",icon:Ci,label:"Skills"},{to:"/sessions",icon:$n,label:"Sessions"},{to:"/cron",icon:ur,label:"Cron"},{to:"/settings",icon:yr,label:"Settings"}];function vx(){return s.jsxs("aside",{className:"flex w-60 shrink-0 flex-col border-r border-surface-200 bg-white",children:[s.jsxs("div",{className:"flex h-14 items-center gap-2.5 border-b border-surface-200 px-5",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-600",children:s.jsx("span",{className:"text-sm font-bold text-white",children:"O"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-semibold text-surface-900",children:"Operator"}),s.jsx("p",{className:"text-[10px] font-medium text-surface-400",children:"OpenClaw"})]})]}),s.jsx("nav",{className:"flex-1 space-y-0.5 p-3",children:px.map(({to:i,icon:f,label:o,...r})=>s.jsxs(rh,{to:i,end:"end"in r,className:({isActive:m})=>Ke("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",m?"bg-primary-50 text-primary-700":"text-surface-600 hover:bg-surface-50 hover:text-surface-900"),children:[s.jsx(f,{className:"h-4 w-4"}),o]},i))}),s.jsx("div",{className:"border-t border-surface-200 p-3",children:s.jsx("p",{className:"px-3 text-[10px] text-surface-400",children:"v0.1.0 ยท OpenClaw Operator"})})]})}function bx(){const{logout:i,connected:f}=Re();return s.jsxs("div",{className:"flex h-screen overflow-hidden bg-surface-50",children:[s.jsx(vx,{}),s.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[s.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-end gap-3 border-b border-surface-200 bg-white px-6",children:[s.jsx("div",{className:"flex items-center gap-2 text-xs",children:f?s.jsxs("span",{className:"badge-green",children:[s.jsx(vh,{className:"mr-1 h-3 w-3"}),"Connected"]}):s.jsxs("span",{className:"badge-red",children:[s.jsx(ph,{className:"mr-1 h-3 w-3"}),"Reconnectingโฆ"]})}),s.jsx("button",{onClick:i,className:"btn-ghost !px-2 !py-1.5 text-surface-500 hover:text-surface-700",children:s.jsx(yh,{className:"h-4 w-4"})})]}),s.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:s.jsx(i1,{})})]})]})}function ml({title:i,description:f,actions:o}){return s.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-semibold text-surface-900",children:i}),f&&s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:f})]}),o&&s.jsx("div",{className:"flex items-center gap-2",children:o})]})}function Sx(){const{gateway:i}=Re(),f=Ei(),[o,r]=p.useState(!1),[m,y]=p.useState(null),[x,S]=p.useState({name:"",identity:"",emoji:""});function g(j,b){S(z=>({...z,[j]:b}))}async function h(j){if(j.preventDefault(),!!i){if(!x.name.trim()){y("Agent name is required");return}r(!0),y(null);try{const b=await i.request("agents.create",{name:x.name.trim(),workspace:x.name.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),emoji:x.emoji.trim()||void 0}),z=b==null?void 0:b.agentId;z&&x.identity.trim()&&await i.request("agents.files.set",{agentId:z,name:"AGENTS.md",content:x.identity.trim()}),f(`/agents/${z??""}`)}catch(b){y(b instanceof Error?b.message:"Failed to create agent"),r(!1)}}}return s.jsxs("div",{className:"mx-auto max-w-2xl",children:[s.jsx(ml,{title:"Create Agent",description:"Set up a new AI agent"}),s.jsxs("form",{onSubmit:h,className:"card space-y-5",children:[s.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Agent Name *"}),s.jsx("input",{className:"input",placeholder:"e.g. Support Assistant",value:x.name,onChange:j=>g("name",j.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"The display name for this agent"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Emoji"}),s.jsx("input",{className:"input",placeholder:"e.g. ๐ค",value:x.emoji,onChange:j=>g("emoji",j.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"Optional icon for the agent"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Identity / System Prompt"}),s.jsx("textarea",{className:"input min-h-[120px] resize-y",placeholder:"Describe the agent's personality, role, and behavior...",value:x.identity,onChange:j=>g("identity",j.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"This will be saved as the agent's AGENTS.md file"})]}),m&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-3 text-sm text-red-700",children:[s.jsx(Ti,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:m})]}),s.jsxs("div",{className:"flex justify-end gap-3 border-t border-surface-100 pt-5",children:[s.jsx("button",{type:"button",onClick:()=>f("/agents"),className:"btn-secondary",children:"Cancel"}),s.jsxs("button",{type:"submit",disabled:o,className:"btn-primary",children:[o?s.jsx(Nt,{className:"h-4 w-4 animate-spin"}):null,"Create Agent"]})]})]})]})}function at({className:i}){return s.jsx("div",{className:Ke("flex items-center justify-center py-12",i),children:s.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-surface-200 border-t-primary-600"})})}const jh=["settings","channels","groups","tools","skills","sessions","usage","chat"],jx={settings:{label:"Settings",icon:yr},channels:{label:"Channels",icon:kn},groups:{label:"Groups",icon:xr},tools:{label:"Tools",icon:dx},skills:{label:"Skills",icon:Ci},sessions:{label:"Sessions",icon:$n},usage:{label:"Usage",icon:dh},chat:{label:"Test Chat",icon:tx}},Bl=[{name:"IDENTITY.md",label:"Identity",description:"Agent name, style, emoji and persona basics",core:!0},{name:"SOUL.md",label:"Soul / Personality",description:"Character boundaries, tone, voice and behavioral rules",core:!0},{name:"AGENTS.md",label:"Instructions",description:"Operating instructions, memory usage guidelines and core directives",core:!0},{name:"TOOLS.md",label:"Tool Guidelines",description:"Custom tool usage conventions and constraints"},{name:"USER.md",label:"User Profile",description:"User preferences, preferred name and context"},{name:"MEMORY.md",label:"Long-term Memory",description:"Curated persistent memory across sessions"},{name:"HEARTBEAT.md",label:"Heartbeat Checklist",description:"Optional checklist for periodic heartbeat runs"},{name:"BOOTSTRAP.md",label:"Bootstrap (One-time)",description:"First-run ceremony script, deleted after initial setup"}];function Nx({agentId:i,meta:f,initialContent:o,initialMissing:r}){const{gateway:m}=Re(),[y,x]=p.useState(o),[S,g]=p.useState(!1),[h,j]=p.useState("idle"),[b,z]=p.useState(!1);async function M(){if(m){g(!0),j("idle");try{await m.request("agents.files.set",{agentId:i,name:f.name,content:y}),j("saved"),z(!1),setTimeout(()=>j("idle"),2500)}catch{j("error")}g(!1)}}return s.jsxs("div",{className:"card",children:[s.jsx("div",{className:"mb-3 flex items-center justify-between",children:s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:f.label}),s.jsx("code",{className:"rounded bg-surface-100 px-1.5 py-0.5 text-[10px] font-mono text-surface-500",children:f.name}),r&&!b&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5 text-[10px] text-surface-400",children:"Not created"}),b&&s.jsx("span",{className:"rounded bg-amber-50 px-1.5 py-0.5 text-[10px] text-amber-600",children:"Unsaved"})]}),s.jsx("p",{className:"mt-0.5 text-xs text-surface-400",children:f.description})]})}),s.jsx("textarea",{className:"input min-h-[160px] resize-y font-mono text-xs leading-relaxed",value:y,onChange:T=>{x(T.target.value),z(!0),j("idle")},placeholder:`Write ${f.label.toLowerCase()} content here...`,spellCheck:!1}),s.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[s.jsxs("button",{onClick:M,disabled:S||!b,className:"btn-primary !py-1.5 !text-xs",children:[S?s.jsx(Nt,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(gh,{className:"h-3.5 w-3.5"}),"Save"]}),h==="saved"&&s.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),h==="error"&&s.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]})]})}function Ex({agentId:i}){const{gateway:f,connected:o}=Re(),[r,m]=p.useState(new Map),[y,x]=p.useState(!0),[S,g]=p.useState(!1);if(p.useEffect(()=>{if(!f||!o)return;const M=new Map;f.request("agents.files.list",{agentId:i}).then(async T=>{const R=Array.isArray(T==null?void 0:T.files)?T.files:[];for(const H of R)M.set(H.name,H);const N=Bl.map(H=>H.name).filter(H=>!M.has(H)||M.get(H).content===void 0),G=await Promise.allSettled(N.map(H=>f.request("agents.files.get",{agentId:i,name:H}).then(V=>({name:H,file:V==null?void 0:V.file}))));for(const H of G)H.status==="fulfilled"&&H.value.file&&M.set(H.value.name,H.value.file);for(const H of Bl)M.has(H.name)||M.set(H.name,{name:H.name,missing:!0,content:""});m(M)}).catch(()=>{}).finally(()=>x(!1))},[f,o,i]),y)return s.jsx(at,{});const h=Bl.filter(M=>M.core),b=S?Bl:h,z={total:Bl.length,created:Bl.filter(M=>{const T=r.get(M.name);return T&&!T.missing}).length};return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("p",{className:"text-sm text-surface-500",children:S?"All workspace files":"Core configuration files"}),s.jsxs("span",{className:"text-xs text-surface-400",children:[z.created," / ",z.total," files active"]})]}),s.jsxs("button",{onClick:()=>g(!S),className:Ke("flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",S?"bg-primary-50 text-primary-700 hover:bg-primary-100":"bg-surface-100 text-surface-600 hover:bg-surface-200"),children:[s.jsx(yr,{className:"h-3.5 w-3.5"}),S?"Advanced Mode":"Basic Mode"]})]}),!S&&s.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-200 p-3 text-xs text-surface-500",children:["Showing the 3 core files that define your agent's behavior. Switch to"," ",s.jsx("strong",{children:"Advanced Mode"})," to edit all ",Bl.length," workspace files including tools, memory, heartbeat, and bootstrap."]}),s.jsx("div",{className:"space-y-4",children:b.map(M=>{const T=r.get(M.name);return s.jsx(Nx,{agentId:i,meta:M,initialContent:(T==null?void 0:T.content)??"",initialMissing:(T==null?void 0:T.missing)??!0},M.name)})}),S&&s.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-200 p-3",children:[s.jsx("h4",{className:"text-xs font-semibold text-surface-700 mb-2",children:"File Reference"}),s.jsx("div",{className:"grid gap-1.5 sm:grid-cols-2 text-[11px] text-surface-500",children:Bl.map(M=>{const T=r.get(M.name),R=T&&!T.missing;return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:Ke("h-1.5 w-1.5 rounded-full",R?"bg-emerald-500":"bg-surface-300")}),s.jsx("span",{className:"font-mono",children:M.name}),R&&(T==null?void 0:T.size)!=null&&s.jsxs("span",{className:"text-surface-400",children:["(",T.size,"B)"]})]},M.name)})})]})]})}const Nh={whatsapp:"๐ฌ",telegram:"โ๏ธ",discord:"๐ฎ",slack:"๐ผ",signal:"๐",feishu:"๐ฆ",msteams:"๐ข",webchat:"๐"};function gi(i,...f){if(!i||typeof i!="object")return;const o=i;for(const r of f){const m=o[r];if(typeof m=="string"&&m.trim())return m.trim()}}function ir(i){if(!i)return"";const f=Date.now()-i;return f<6e4?"just now":f<36e5?`${Math.floor(f/6e4)}m ago`:f<864e5?`${Math.floor(f/36e5)}h ago`:new Date(i).toLocaleDateString()}function Ax({agentId:i}){const{gateway:f,connected:o}=Re(),[r,m]=p.useState([]),[y,x]=p.useState({}),[S,g]=p.useState({}),[h,j]=p.useState(!0);if(p.useEffect(()=>{!f||!o||Promise.all([f.request("config.get").then(M=>{var R;const T=(R=M==null?void 0:M.config)==null?void 0:R.bindings;return Array.isArray(T)?T:[]}),f.request("channels.status",{}).then(M=>{const T=(M==null?void 0:M.channelAccounts)??{},R=(M==null?void 0:M.channelLabels)??{};return{accounts:T,labels:R}})]).then(([M,T])=>{m(M),x(T.accounts),g(T.labels),j(!1)}).catch(()=>j(!1))},[f,o]),h)return s.jsx(at,{});const b=r.filter(M=>M.agentId===i),z=[...new Set(b.map(M=>M.match.channel))];return s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Channels bound to this agent (",b.length," bindings)"]}),b.length===0?s.jsx("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-8 text-center text-sm text-surface-400",children:"No channel bindings for this agent. Configure bindings in Settings โ Config."}):s.jsx("div",{className:"space-y-3",children:z.map(M=>{const T=b.filter(K=>K.match.channel===M),R=y[M],N=(Array.isArray(R)?R:R&&typeof R=="object"?Object.entries(R).map(([K,Q])=>({...Q,accountId:K})):[])[0],G=(N==null?void 0:N.name)??gi(N==null?void 0:N.bot,"name","botName")??gi(N==null?void 0:N.profile,"name","displayName"),H=gi(N==null?void 0:N.application,"name","appName","app_name"),V=gi(N==null?void 0:N.application,"tenantName","tenant_name","companyName","company_name","orgName"),F=(N==null?void 0:N.connected)??(N==null?void 0:N.running)??!1,te=Nh[M]??"๐ก";return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"text-xl",children:te}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:S[M]??M}),s.jsx("div",{className:`h-2 w-2 rounded-full ${F?"bg-emerald-500":"bg-surface-300"}`})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-0.5 mt-0.5 text-xs text-surface-500",children:[G&&s.jsx("span",{children:G}),H&&s.jsxs("span",{children:["App: ",H]}),V&&s.jsxs("span",{children:["Org: ",V]}),(N==null?void 0:N.mode)&&s.jsx("span",{className:"rounded bg-surface-100 px-1 py-0.5 text-[10px]",children:N.mode})]})]})]}),s.jsx("span",{className:`text-xs font-medium ${F?"text-emerald-600":"text-surface-400"}`,children:F?"Online":"Offline"})]}),((N==null?void 0:N.lastInboundAt)||(N==null?void 0:N.lastOutboundAt))&&s.jsxs("div",{className:"mt-2 flex items-center gap-4 text-[11px] text-surface-400",children:[N.lastInboundAt&&s.jsxs("span",{children:["Last in: ",ir(N.lastInboundAt)]}),N.lastOutboundAt&&s.jsxs("span",{children:["Last out: ",ir(N.lastOutboundAt)]})]}),T.some(K=>K.match.peer)&&s.jsxs("div",{className:"mt-2 border-t border-surface-100 pt-2",children:[s.jsx("p",{className:"text-[11px] text-surface-400 mb-1",children:"Bindings:"}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:T.map((K,Q)=>s.jsx("span",{className:"rounded bg-surface-100 px-2 py-0.5 text-[11px] text-surface-600",children:K.match.peer?`${K.match.peer.kind}: ${K.match.peer.id.length>20?K.match.peer.id.slice(0,10)+"โฆ":K.match.peer.id}`:"all"},Q))})]})]},M)})})]})}function Tx({agentId:i}){const{gateway:f,connected:o}=Re(),[r,m]=p.useState([]),[y,x]=p.useState([]),[S,g]=p.useState({}),[h,j]=p.useState(!0);if(p.useEffect(()=>{!f||!o||Promise.all([f.request("config.get").then(T=>{var w;const R=(w=T==null?void 0:T.config)==null?void 0:w.bindings;return Array.isArray(R)?R:[]}),f.request("sessions.list",{}).then(T=>Array.isArray(T==null?void 0:T.sessions)?T.sessions:[]),f.request("channels.status",{}).then(T=>(T==null?void 0:T.channelLabels)??{})]).then(([T,R,w])=>{m(T),x(R),g(w),j(!1)}).catch(()=>j(!1))},[f,o]),h)return s.jsx(at,{});const b=r.filter(T=>{var R;return T.agentId===i&&(((R=T.match.peer)==null?void 0:R.kind)==="group"||T.match.guildId)}),z=y.filter(T=>T.kind==="group");function M(T,R){const w=z.find(N=>N.key.includes(T)||N.subject===T);return w?w.displayName||w.derivedTitle||w.label||T:T.length>24?T.slice(0,12)+"โฆ"+T.slice(-6):T}return s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Groups routed to this agent (",b.length,")"]}),b.length===0?s.jsx("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-8 text-center text-sm text-surface-400",children:"No group bindings for this agent"}):s.jsx("div",{className:"space-y-2",children:b.map((T,R)=>{var F;const w=((F=T.match.peer)==null?void 0:F.id)??T.match.guildId??"unknown",N=T.match.channel,G=M(w),H=Nh[N]??"๐ก",V=z.find(te=>te.key.includes(w)||te.subject===w);return s.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3.5",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-100",children:s.jsx("span",{className:"text-lg",children:H})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:G}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-0.5 text-xs text-surface-400",children:[s.jsx("span",{children:S[N]??N}),T.comment&&s.jsxs("span",{children:["ยท ",T.comment]}),(V==null?void 0:V.updatedAt)&&s.jsxs("span",{children:["ยท Active ",ir(V.updatedAt)]})]}),w!==G&&s.jsx("p",{className:"mt-0.5 text-[10px] font-mono text-surface-300 truncate max-w-[300px]",children:w})]})]}),s.jsx("span",{className:"badge-primary",children:"Group"})]},R)})})]})}function Cx({agentId:i}){const{gateway:f,connected:o}=Re(),[r,m]=p.useState([]),[y,x]=p.useState(!0);return p.useEffect(()=>{!f||!o||f.request("tools.catalog",{agentId:i}).then(S=>{const h=(Array.isArray(S==null?void 0:S.groups)?S.groups:[]).flatMap(j=>Array.isArray(j.tools)?j.tools:[]);m(h)}).catch(()=>{}).finally(()=>x(!1))},[f,o,i]),y?s.jsx(at,{}):s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Tools available to this agent (",r.length,")"]}),s.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[r.map(S=>s.jsxs("div",{className:"rounded-lg border border-surface-200 p-3",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:S.label||S.id}),S.description&&s.jsx("p",{className:"mt-0.5 text-xs text-surface-400 line-clamp-2",children:S.description}),S.pluginId&&s.jsxs("p",{className:"mt-1 text-[10px] text-surface-400",children:["Plugin: ",S.pluginId]})]},S.id)),r.length===0&&s.jsx("p",{className:"col-span-2 py-8 text-center text-sm text-surface-400",children:"No tools data available"})]})]})}function zx({agentId:i}){const{gateway:f,connected:o}=Re(),[r,m]=p.useState([]),[y,x]=p.useState(!0);return p.useEffect(()=>{!f||!o||f.request("skills.status",{agentId:i}).then(S=>m(Array.isArray(S==null?void 0:S.skills)?S.skills:[])).catch(()=>{}).finally(()=>x(!1))},[f,o,i]),y?s.jsx(at,{}):s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Skills for this agent (",r.length,")"]}),s.jsxs("div",{className:"space-y-2",children:[r.map(S=>{const g=S.eligible&&!S.disabled&&!S.blockedByAllowlist;return s.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[S.emoji?s.jsx("span",{className:"text-lg",children:S.emoji}):s.jsx(Ci,{className:"h-4 w-4 text-surface-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:S.name}),S.description&&s.jsx("p",{className:"text-xs text-surface-400 line-clamp-1",children:S.description}),s.jsxs("p",{className:"text-[10px] text-surface-400 font-mono",children:[S.skillKey," ยท ",S.source]})]})]}),g?s.jsx("span",{className:"badge-green",children:"Enabled"}):S.disabled?s.jsx("span",{className:"badge-gray",children:"Disabled"}):S.blockedByAllowlist?s.jsx("span",{className:"rounded bg-amber-50 px-2 py-0.5 text-xs text-amber-600",children:"Blocked"}):s.jsx("span",{className:"badge-gray",children:"Ineligible"})]},S.skillKey)}),r.length===0&&s.jsx("p",{className:"py-8 text-center text-sm text-surface-400",children:"No skills data available"})]})]})}function Mx(i){if(!i)return"";const f=Date.now()-i;return f<6e4?"just now":f<36e5?`${Math.floor(f/6e4)}m ago`:f<864e5?`${Math.floor(f/36e5)}h ago`:new Date(i).toLocaleDateString()}function wx(i){return i.derivedTitle||i.displayName||i.label||i.subject||i.key}function Ox({sessionKey:i,onClose:f}){const{gateway:o,connected:r}=Re(),[m,y]=p.useState([]),[x,S]=p.useState(!0),g=p.useRef(null);return p.useEffect(()=>{!o||!r||o.request("chat.history",{sessionKey:i,limit:100}).then(h=>{if(!Array.isArray(h==null?void 0:h.messages))return;const j=h.messages.map(b=>({role:String(b.role??"unknown"),text:Va(b.content??b.text??b.message??"")})).filter(b=>b.text&&(b.role==="user"||b.role==="assistant"));y(j)}).catch(()=>{}).finally(()=>S(!1))},[o,r,i]),p.useEffect(()=>{var h;(h=g.current)==null||h.scrollTo({top:g.current.scrollHeight})},[m]),s.jsxs("div",{className:"mt-3 rounded-lg border border-surface-200 bg-surface-50",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-surface-200 px-4 py-2",children:[s.jsxs("p",{className:"text-xs font-medium text-surface-600",children:["Chat History (",m.length," messages)"]}),s.jsx("button",{onClick:f,className:"text-xs text-surface-400 hover:text-surface-600 transition-colors",children:"Close"})]}),s.jsx("div",{ref:g,className:"max-h-[400px] overflow-y-auto p-4 space-y-2.5",children:x?s.jsx("div",{className:"py-8 text-center",children:s.jsx(Nt,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"})}):m.length===0?s.jsx("p",{className:"py-6 text-center text-xs text-surface-400",children:"No messages in this session"}):m.map((h,j)=>s.jsx("div",{className:Ke("max-w-[85%] rounded-lg px-3.5 py-2 text-sm whitespace-pre-wrap leading-relaxed",h.role==="user"?"ml-auto bg-primary-600 text-white":"bg-white text-surface-800 border border-surface-200"),children:h.text},j))})]})}function _x({agentId:i}){const{gateway:f,connected:o}=Re(),[r,m]=p.useState([]),[y,x]=p.useState(!0),[S,g]=p.useState(null);return p.useEffect(()=>{!f||!o||f.request("sessions.list",{agentId:i}).then(h=>m(Array.isArray(h==null?void 0:h.sessions)?h.sessions:[])).catch(()=>{}).finally(()=>x(!1))},[f,o,i]),y?s.jsx(at,{}):s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Active sessions for this agent (",r.length,")"]}),s.jsxs("div",{className:"space-y-2",children:[r.map(h=>s.jsxs("div",{children:[s.jsx("button",{onClick:()=>g(S===h.key?null:h.key),className:Ke("w-full rounded-lg border p-3.5 text-left transition-colors",S===h.key?"border-primary-300 bg-primary-50/30":"border-surface-200 hover:border-surface-300 hover:bg-surface-50"),children:s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900 truncate",children:wx(h)}),h.lastMessagePreview&&s.jsx("p",{className:"mt-1 text-xs text-surface-500 line-clamp-2",children:h.lastMessagePreview}),s.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 text-[11px] text-surface-400",children:[h.channel&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:h.channel}),h.kind&&h.kind!=="unknown"&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:h.kind}),h.updatedAt&&s.jsx("span",{children:Mx(h.updatedAt)})]})]}),s.jsx($n,{className:Ke("mt-0.5 h-4 w-4 shrink-0 transition-colors",S===h.key?"text-primary-600":"text-surface-300")})]})}),S===h.key&&s.jsx(Ox,{sessionKey:h.key,onClose:()=>g(null)})]},h.key)),r.length===0&&s.jsx("p",{className:"py-8 text-center text-sm text-surface-400",children:"No active sessions"})]})]})}function Rx(){return s.jsxs("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-12 text-center",children:[s.jsx(dh,{className:"mx-auto h-8 w-8 text-surface-300"}),s.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"Usage statistics coming soon"})]})}function Va(i){if(!i)return"";if(typeof i=="string")return i;if(Array.isArray(i))return i.map(o=>{if(typeof o=="string")return o;if(o&&typeof o=="object"){const r=o;if(typeof r.text=="string")return r.text;if(typeof r.content=="string")return r.content}return""}).filter(Boolean).join("");const f=i;return typeof f.text=="string"?f.text:typeof f.content=="string"?f.content:Array.isArray(f.content)?Va(f.content):""}function Dx({agentId:i}){const{gateway:f,connected:o}=Re(),[r,m]=p.useState(""),[y,x]=p.useState([]),[S,g]=p.useState(!1),[h,j]=p.useState(""),b=`agent:${i}:operator-ui-test`,z=p.useRef(null),M=p.useRef(null),T=p.useRef("");p.useEffect(()=>{!f||!o||f.request("chat.history",{sessionKey:b,limit:50}).then(N=>{if(!Array.isArray(N==null?void 0:N.messages))return;const G=[];for(const H of N.messages){const V=H,F=V.role==="user"?"user":V.role==="assistant"?"assistant":null;if(!F)continue;const te=Va(V.content??V.text??V.message??"");te&&G.push({role:F,content:te})}G.length>0&&x(G)}).catch(()=>{})},[f,o,i]),p.useEffect(()=>f?f.on("chat",G=>{const H=G;if(!(!H.runId||H.runId!==z.current))if(H.state==="delta"){const V=Va(H.message);V&&(T.current+=V,j(T.current))}else if(H.state==="final"){const V=Va(H.message)||T.current;z.current=null,T.current="",j(""),g(!1),V&&x(F=>[...F,{role:"assistant",content:V}])}else H.state==="error"?(z.current=null,T.current="",j(""),g(!1),x(V=>[...V,{role:"error",content:H.errorMessage??"Agent error"}])):H.state==="aborted"&&(z.current=null,T.current="",j(""),g(!1),x(V=>[...V,{role:"system",content:"Run was aborted"}]))}):void 0,[f]),p.useEffect(()=>{var N;(N=M.current)==null||N.scrollTo({top:M.current.scrollHeight,behavior:"smooth"})},[y,h]);async function R(){if(!r.trim()||S||!f)return;const N=r.trim();m(""),x(H=>[...H,{role:"user",content:N}]),g(!0),T.current="",j("");const G=`op-chat-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;try{const H=await f.request("chat.send",{sessionKey:b,message:N,idempotencyKey:G});if((H==null?void 0:H.status)==="error"){g(!1),x(V=>[...V,{role:"error",content:H.summary??"Failed to start"}]);return}z.current=(H==null?void 0:H.runId)??G,setTimeout(()=>{z.current&&f.request("chat.history",{sessionKey:b,limit:5}).then(V=>{if(!z.current||!Array.isArray(V==null?void 0:V.messages))return;const F=V.messages[V.messages.length-1];if((F==null?void 0:F.role)==="assistant"){const te=Va(F.content??F.text??"");te&&(z.current=null,T.current="",j(""),g(!1),x(K=>[...K,{role:"assistant",content:te}]))}}).catch(()=>{})},15e3)}catch(H){g(!1),x(V=>[...V,{role:"error",content:H instanceof Error?H.message:"Failed"}])}}function w(){f&&(f.request("sessions.reset",{key:b}).catch(()=>{}),x([]),j(""))}return s.jsxs("div",{className:"flex h-[500px] flex-col rounded-xl border border-surface-200",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-surface-100 px-4 py-2",children:[s.jsx("p",{className:"text-xs text-surface-400 font-mono",children:b}),s.jsx("button",{onClick:w,className:"text-xs text-surface-400 hover:text-red-600 transition-colors",children:"Clear history"})]}),s.jsxs("div",{ref:M,className:"flex-1 overflow-y-auto p-4 space-y-3",children:[y.length===0&&!h&&s.jsx("p",{className:"py-12 text-center text-sm text-surface-400",children:"Send a message to test this agent"}),y.map((N,G)=>s.jsx("div",{className:Ke("max-w-[80%] rounded-lg px-4 py-2.5 text-sm whitespace-pre-wrap",N.role==="user"?"ml-auto bg-primary-600 text-white":N.role==="error"?"bg-red-50 text-red-700":N.role==="system"?"mx-auto bg-surface-50 text-surface-500 text-center text-xs":"bg-surface-100 text-surface-900"),children:N.content},G)),h&&s.jsxs("div",{className:"max-w-[80%] rounded-lg px-4 py-2.5 text-sm bg-surface-100 text-surface-900 whitespace-pre-wrap",children:[h,s.jsx("span",{className:"inline-block w-1.5 h-4 bg-primary-500 animate-pulse ml-0.5 align-text-bottom"})]}),S&&!h&&s.jsxs("div",{className:"max-w-[80%] rounded-lg px-4 py-2.5 text-sm bg-surface-100 text-surface-400 flex items-center gap-2",children:[s.jsx(Nt,{className:"h-3.5 w-3.5 animate-spin"}),"Thinking..."]})]}),s.jsxs("div",{className:"border-t border-surface-200 p-3 flex gap-2",children:[s.jsx("input",{className:"input flex-1",placeholder:"Type a message...",value:r,onChange:N=>m(N.target.value),onKeyDown:N=>N.key==="Enter"&&!N.shiftKey&&R(),disabled:S}),s.jsx("button",{onClick:R,disabled:S||!r.trim(),className:"btn-primary",children:S?s.jsx(Nt,{className:"h-4 w-4 animate-spin"}):"Send"})]})]})}function Ux(i,f){const o=`/agents/${f}`,r=i.startsWith(o)?i.slice(o.length).replace(/^\//,""):"";return r&&jh.includes(r)?r:"settings"}function Hx({tab:i,agentId:f}){switch(i){case"settings":return s.jsx(Ex,{agentId:f});case"channels":return s.jsx(Ax,{agentId:f});case"groups":return s.jsx(Tx,{agentId:f});case"tools":return s.jsx(Cx,{agentId:f});case"skills":return s.jsx(zx,{agentId:f});case"sessions":return s.jsx(_x,{agentId:f});case"usage":return s.jsx(Rx,{});case"chat":return s.jsx(Dx,{agentId:f})}}function Vm(){var R;const{agentId:i}=Zg(),f=Kt(),o=Ei(),{gateway:r,connected:m}=Re(),[y,x]=p.useState(null),[S,g]=p.useState(!0),[h,j]=p.useState(!1),b=Ux(f.pathname,i??""),z=p.useCallback(()=>{!r||!m||r.request("agents.list",{}).then(w=>{const G=(Array.isArray(w==null?void 0:w.agents)?w.agents:[]).find(H=>H.id===i);x(G??null)}).catch(()=>{}).finally(()=>g(!1))},[r,m,i]);if(p.useEffect(()=>{z()},[z]),S)return s.jsx(at,{});if(!y)return s.jsxs("div",{className:"flex flex-col items-center py-20",children:[s.jsx(Ti,{className:"h-8 w-8 text-surface-300"}),s.jsxs("p",{className:"mt-2 text-sm text-surface-500",children:['Agent "',i,'" not found']})]});async function M(){if(!(!r||!confirm(`Delete agent "${i}"? This cannot be undone.`))){j(!0);try{await r.request("agents.delete",{id:i}),o("/agents",{replace:!0})}catch{j(!1)}}}function T(w){const N=`/agents/${i}`;o(w==="settings"?N:`${N}/${w}`)}return s.jsxs("div",{children:[s.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary-100",children:s.jsx(ua,{className:"h-6 w-6 text-primary-600"})}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-semibold text-surface-900",children:((R=y.identity)==null?void 0:R.name)||y.name||y.id}),s.jsxs("p",{className:"text-sm text-surface-400",children:["ID: ",s.jsx("code",{className:"font-mono",children:y.id}),y.model&&s.jsxs(s.Fragment,{children:[" ยท Model: ",y.model]})]})]})]}),s.jsxs("button",{onClick:M,disabled:h,className:"btn-ghost text-red-600 hover:text-red-700 hover:bg-red-50",children:[s.jsx(gr,{className:"h-4 w-4"}),"Delete"]})]}),s.jsx("div",{className:"mb-6 flex gap-1 overflow-x-auto border-b border-surface-200",children:jh.map(w=>{const{label:N,icon:G}=jx[w],H=w===b;return s.jsxs("button",{onClick:()=>T(w),className:Ke("flex items-center gap-2 whitespace-nowrap border-b-2 px-4 py-2.5 text-sm font-medium transition-colors",H?"border-primary-600 text-primary-600":"border-transparent text-surface-500 hover:text-surface-700"),children:[s.jsx(G,{className:"h-4 w-4"}),N]},w)})}),s.jsx(Hx,{tab:b,agentId:i})]})}function pr({icon:i,title:f,description:o,action:r}){return s.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border-2 border-dashed border-surface-200 py-16",children:[s.jsx("div",{className:"mb-4 text-surface-300",children:i}),s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:f}),s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:o}),r&&s.jsx("div",{className:"mt-4",children:r})]})}function qx(){const{gateway:i,connected:f}=Re(),[o,r]=p.useState([]),[m,y]=p.useState(""),[x,S]=p.useState(!0);return p.useEffect(()=>{!i||!f||i.request("agents.list",{}).then(g=>{r(Array.isArray(g==null?void 0:g.agents)?g.agents:[]),y((g==null?void 0:g.defaultId)??"")}).catch(()=>{}).finally(()=>S(!1))},[i,f]),x?s.jsx(at,{}):s.jsxs("div",{children:[s.jsx(ml,{title:"Agents",description:"Create and manage your AI agents",actions:s.jsxs(Zt,{to:"/agents/new",className:"btn-primary",children:[s.jsx(Xm,{className:"h-4 w-4"}),"New Agent"]})}),o.length===0?s.jsx(pr,{icon:s.jsx(ua,{className:"h-12 w-12"}),title:"No agents yet",description:"Create your first AI agent to get started",action:s.jsxs(Zt,{to:"/agents/new",className:"btn-primary",children:[s.jsx(Xm,{className:"h-4 w-4"}),"Create Agent"]})}):s.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:o.map(g=>{var h;return s.jsxs(Zt,{to:`/agents/${g.id}`,className:"card group flex flex-col transition-all hover:border-primary-200 hover:shadow-sm",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-primary-100",children:s.jsx(ua,{className:"h-5 w-5 text-primary-600"})}),s.jsx(hh,{className:"h-4 w-4 text-surface-300 transition-colors group-hover:text-primary-500"})]}),s.jsxs("div",{className:"mt-3 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:((h=g.identity)==null?void 0:h.name)||g.name||g.id}),g.id===m&&s.jsx(cx,{className:"h-3.5 w-3.5 fill-amber-400 text-amber-400"})]}),s.jsxs("p",{className:"mt-0.5 text-xs text-surface-400",children:["ID: ",s.jsx("code",{className:"font-mono",children:g.id})]})]}),g.model&&s.jsx("div",{className:"mt-3 border-t border-surface-100 pt-3",children:s.jsxs("p",{className:"text-xs text-surface-500",children:["Model: ",s.jsx("span",{className:"font-medium text-surface-700",children:g.model})]})})]},g.id)})})]})}const Lx={whatsapp:"๐ฌ",telegram:"โ๏ธ",discord:"๐ฎ",slack:"๐ผ",signal:"๐",imessage:"๐ฌ",bluebubbles:"๐ฌ",googlechat:"๐ฌ",msteams:"๐ข",feishu:"๐ฆ",matrix:"๐",webchat:"๐"};function xi(i,...f){if(!i||typeof i!="object")return;const o=i;for(const r of f){const m=o[r];if(typeof m=="string"&&m.trim())return m.trim()}}function Zm(i){if(!i)return"";const f=Date.now()-i;return f<6e4?"just now":f<36e5?`${Math.floor(f/6e4)}m ago`:f<864e5?`${Math.floor(f/36e5)}h ago`:new Date(i).toLocaleDateString()}function Bx(i){var g,h;if(!i||typeof i!="object")return[];const f=i,o=f.channels??{},r=f.channelAccounts??{},m=f.channelLabels??{},y=f.channelMeta??{},x=f.channelOrder??Object.keys(o),S=[];for(const j of x){const b=o[j];if(!b)continue;const z=r[j],T=(Array.isArray(z)?z:z&&typeof z=="object"?Object.entries(z).map(([R,w])=>({...w,accountId:R})):[]).map(R=>{const w=xi(R.application,"name","appName","app_name"),N=xi(R.application,"tenantName","tenant_name","companyName","company_name","orgName","org_name"),G=xi(R.bot,"name","botName","bot_name")??xi(R.profile,"name","displayName","display_name");return{id:String(R.accountId??"default"),name:R.name??G??String(R.accountId??"default"),connected:R.connected??R.running??!1,enabled:R.enabled!==!1,configured:R.configured??!1,mode:R.mode,lastInboundAt:R.lastInboundAt,lastOutboundAt:R.lastOutboundAt,appName:w,tenantName:N,botName:G,raw:R}});S.push({id:j,label:m[j]??((g=y[j])==null?void 0:g.label)??j,blurb:(h=y[j])==null?void 0:h.blurb,configured:(b==null?void 0:b.configured)??!1,accounts:T})}return S}function Yx(){const{gateway:i,connected:f}=Re(),[o,r]=p.useState([]),[m,y]=p.useState(!0),[x,S]=p.useState(null);function g(){!i||!f||(y(!0),i.request("channels.status",{probe:!0}).then(j=>r(Bx(j))).catch(()=>{}).finally(()=>y(!1)))}p.useEffect(()=>{g()},[i,f]);async function h(j,b){if(!(!i||!confirm(`Logout from ${j}?`))){S(`${j}:${b}`);try{await i.request("channels.logout",{channel:j,accountId:b}),g()}catch{}S(null)}}return m?s.jsx(at,{}):s.jsxs("div",{children:[s.jsx(ml,{title:"Channels",description:"Monitor and manage your messaging channels",actions:s.jsxs("button",{onClick:g,className:"btn-secondary",children:[s.jsx(hr,{className:"h-4 w-4"}),"Refresh"]})}),s.jsxs("div",{className:"space-y-3",children:[o.map(j=>{const b=j.accounts.some(M=>M.connected),z=Lx[j.id]??"๐ก";return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"text-2xl",children:z}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:j.label}),j.blurb&&s.jsx("p",{className:"text-xs text-surface-400",children:j.blurb})]})]}),s.jsx("div",{className:"flex items-center gap-2",children:b?s.jsxs("span",{className:"badge-green",children:[s.jsx(vh,{className:"mr-1 h-3 w-3"}),"Online"]}):j.configured?s.jsxs("span",{className:"badge-gray",children:[s.jsx(ph,{className:"mr-1 h-3 w-3"}),"Offline"]}):s.jsx("span",{className:"badge-gray",children:"Not Configured"})})]}),j.accounts.length>0&&s.jsx("div",{className:"mt-3 space-y-2 border-t border-surface-100 pt-3",children:j.accounts.map(M=>s.jsxs("div",{className:"rounded-lg bg-surface-50 px-4 py-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full shrink-0 ${M.connected?"bg-emerald-500":"bg-surface-300"}`}),s.jsxs("div",{children:[s.jsx("span",{className:"text-sm font-medium text-surface-800",children:M.name}),M.id!=="default"&&M.id!==M.name&&s.jsx("span",{className:"ml-2 text-[11px] text-surface-400 font-mono",children:M.id})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:`text-xs font-medium ${M.connected?"text-emerald-600":"text-surface-400"}`,children:M.connected?"Connected":M.configured?"Disconnected":"Not configured"}),M.connected&&s.jsx("button",{onClick:()=>h(j.id,M.id),disabled:x===`${j.id}:${M.id}`,className:"btn-ghost !px-2 !py-1 text-xs text-surface-500 hover:text-red-600",title:"Logout",children:x===`${j.id}:${M.id}`?s.jsx(Nt,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(yh,{className:"h-3.5 w-3.5"})})]})]}),s.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px] text-surface-500",children:[M.appName&&s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx(ix,{className:"h-3 w-3 text-surface-400"}),"App: ",M.appName]}),M.tenantName&&s.jsxs("span",{children:["Org: ",M.tenantName]}),M.botName&&M.botName!==M.name&&s.jsxs("span",{children:["Bot: ",M.botName]}),M.mode&&s.jsx("span",{className:"rounded bg-surface-200 px-1.5 py-0.5 text-[10px]",children:M.mode})]}),(M.lastInboundAt||M.lastOutboundAt)&&s.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px] text-surface-400",children:[M.lastInboundAt&&s.jsxs("span",{className:"flex items-center gap-1",title:"Last message received",children:[s.jsx(Z1,{className:"h-3 w-3"}),"In: ",Zm(M.lastInboundAt)]}),M.lastOutboundAt&&s.jsxs("span",{className:"flex items-center gap-1",title:"Last message sent",children:[s.jsx(K1,{className:"h-3 w-3"}),"Out: ",Zm(M.lastOutboundAt)]})]})]},M.id))})]},j.id)}),o.length===0&&s.jsxs("div",{className:"card py-12 text-center",children:[s.jsx(kn,{className:"mx-auto h-8 w-8 text-surface-300"}),s.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"No channels configured. Add channels in your openclaw.json configuration."})]})]})]})}function Gx(){const{gateway:i,connected:f}=Re(),[o,r]=p.useState([]),[m,y]=p.useState(!0),[x,S]=p.useState(null);function g(){!i||!f||i.request("cron.list",{}).then(z=>r(Array.isArray(z==null?void 0:z.jobs)?z.jobs:[])).catch(()=>r([])).finally(()=>y(!1))}p.useEffect(()=>{g()},[i,f]);async function h(z,M){if(i){S(z);try{await i.request("cron.update",{id:z,enabled:!M}),r(T=>T.map(R=>R.id===z?{...R,enabled:!M}:R))}catch{}S(null)}}async function j(z){if(i){S(z);try{await i.request("cron.run",{id:z})}catch{}S(null)}}async function b(z){if(!(!i||!confirm("Remove this cron job?"))){S(z);try{await i.request("cron.remove",{id:z}),r(M=>M.filter(T=>T.id!==z))}catch{}S(null)}}return m?s.jsx(at,{}):s.jsxs("div",{children:[s.jsx(ml,{title:"Cron Jobs",description:"Manage scheduled tasks"}),o.length===0?s.jsx(pr,{icon:s.jsx(ur,{className:"h-12 w-12"}),title:"No cron jobs",description:"Scheduled tasks will appear here. Create them via the agent chat."}):s.jsx("div",{className:"space-y-2",children:o.map(z=>s.jsxs("div",{className:"card flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-amber-50",children:s.jsx(ur,{className:"h-4 w-4 text-amber-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:z.message||z.id}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-surface-400",children:[s.jsx("code",{className:"font-mono",children:z.schedule}),z.agentId&&s.jsxs("span",{children:["Agent: ",z.agentId]}),z.nextRunAt&&s.jsxs("span",{children:["Next: ",z.nextRunAt]})]})]})]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>j(z.id),disabled:x===z.id,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-emerald-600",title:"Run now",children:x===z.id?s.jsx(Nt,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Gm,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>h(z.id,z.enabled),className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-amber-600",title:z.enabled?"Pause":"Resume",children:z.enabled?s.jsx(nx,{className:"h-3.5 w-3.5"}):s.jsx(Gm,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>b(z.id),className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-red-600",title:"Remove",children:s.jsx(gr,{className:"h-3.5 w-3.5"})})]})]},z.id))})]})}function Xx(){const{gateway:i,connected:f}=Re(),[o,r]=p.useState(!0),[m,y]=p.useState([]),[x,S]=p.useState(""),[g,h]=p.useState([]),[j,b]=p.useState(0);if(p.useEffect(()=>{if(!i||!f)return;let T=!1;return r(!0),Promise.all([i.request("agents.list",{}).catch(()=>null),i.request("channels.status",{}).catch(()=>null),i.request("sessions.list",{}).catch(()=>null)]).then(([R,w,N])=>{if(T)return;const G=Array.isArray(R==null?void 0:R.agents)?R.agents:[];y(G),S((R==null?void 0:R.defaultId)??"");const H=[];if(w!=null&&w.channels&&typeof w.channels=="object"){const V=w.channelAccounts??{};for(const[F,te]of Object.entries(w.channels)){const K=V[F];let Q=!1;K&&typeof K=="object"&&(Q=Object.values(K).some(se=>se&&typeof se=="object"&&se.status==="online")),H.push({id:F,configured:(te==null?void 0:te.configured)??!1,online:Q,label:F})}}h(H),b(typeof(N==null?void 0:N.count)=="number"?N.count:Array.isArray(N==null?void 0:N.sessions)?N.sessions.length:0),r(!1)}),()=>{T=!0}},[i,f]),o)return s.jsx(at,{});const z=g.filter(T=>T.online),M=[{label:"Active Agents",value:m.length,icon:ua,color:"bg-primary-50 text-primary-600",to:"/agents"},{label:"Channels Online",value:`${z.length} / ${g.length}`,icon:kn,color:"bg-emerald-50 text-emerald-600",to:"/channels"},{label:"Active Sessions",value:j,icon:$n,color:"bg-blue-50 text-blue-600",to:"/sessions"},{label:"System Health",value:"OK",icon:V1,color:"bg-amber-50 text-amber-600",to:"/settings"}];return s.jsxs("div",{children:[s.jsx(ml,{title:"Dashboard",description:"Overview of your AI assistant system"}),s.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:M.map(T=>s.jsxs(Zt,{to:T.to,className:"card group hover:border-primary-200 transition-colors",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-lg ${T.color}`,children:s.jsx(T.icon,{className:"h-5 w-5"})}),s.jsx(k1,{className:"h-4 w-4 text-surface-300 transition-colors group-hover:text-primary-500"})]}),s.jsx("p",{className:"mt-3 text-2xl font-semibold text-surface-900",children:T.value}),s.jsx("p",{className:"text-sm text-surface-500",children:T.label})]},T.label))}),s.jsxs("div",{className:"mt-8 grid gap-6 lg:grid-cols-2",children:[s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Agents"}),s.jsx(Zt,{to:"/agents",className:"text-xs font-medium text-primary-600 hover:text-primary-700",children:"View all โ"})]}),s.jsx("div",{className:"space-y-2",children:m.length===0?s.jsx("p",{className:"py-4 text-center text-sm text-surface-400",children:"No agents configured"}):m.slice(0,5).map(T=>{var R;return s.jsxs(Zt,{to:`/agents/${T.id}`,className:"flex items-center justify-between rounded-lg p-3 transition-colors hover:bg-surface-50",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-100 text-primary-700",children:s.jsx(ua,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:((R=T.identity)==null?void 0:R.name)||T.name||T.id}),s.jsxs("p",{className:"text-xs text-surface-400",children:["ID: ",T.id]})]})]}),T.id===x&&s.jsx("span",{className:"badge-primary",children:"Default"})]},T.id)})})]}),s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Channels"}),s.jsx(Zt,{to:"/channels",className:"text-xs font-medium text-primary-600 hover:text-primary-700",children:"View all โ"})]}),s.jsx("div",{className:"space-y-2",children:g.length===0?s.jsx("p",{className:"py-4 text-center text-sm text-surface-400",children:"No channels configured"}):g.slice(0,6).map(T=>s.jsxs("div",{className:"flex items-center justify-between rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-surface-100",children:s.jsx(kn,{className:"h-4 w-4 text-surface-600"})}),s.jsx("p",{className:"text-sm font-medium text-surface-900",children:T.label})]}),T.online?s.jsx("span",{className:"badge-green",children:"Online"}):T.configured?s.jsx("span",{className:"badge-gray",children:"Offline"}):s.jsx("span",{className:"badge-gray",children:"Not Configured"})]},T.id))})]})]})]})}const Qx={whatsapp:"๐ฌ",telegram:"โ๏ธ",discord:"๐ฎ",slack:"๐ผ",signal:"๐",feishu:"๐ฆ",msteams:"๐ข",webchat:"๐"};function Vx(i){if(!i)return"";const f=Date.now()-i;return f<6e4?"just now":f<36e5?`${Math.floor(f/6e4)}m ago`:f<864e5?`${Math.floor(f/36e5)}h ago`:new Date(i).toLocaleDateString()}function Zx(){const{gateway:i,connected:f}=Re(),[o,r]=p.useState([]),[m,y]=p.useState([]),[x,S]=p.useState([]),[g,h]=p.useState({}),[j,b]=p.useState(!0);if(p.useEffect(()=>{!i||!f||Promise.all([i.request("config.get"),i.request("agents.list",{}),i.request("sessions.list",{}),i.request("channels.status",{})]).then(([N,G,H,V])=>{var te;const F=(te=N==null?void 0:N.config)==null?void 0:te.bindings;r(Array.isArray(F)?F:[]),y(Array.isArray(G==null?void 0:G.agents)?G.agents:[]),S(Array.isArray(H==null?void 0:H.sessions)?H.sessions:[]),h((V==null?void 0:V.channelLabels)??{}),b(!1)}).catch(()=>b(!1))},[i,f]),j)return s.jsx(at,{});const z=x.filter(N=>N.kind==="group");function M(N){const G=z.find(H=>H.key.includes(N)||H.subject===N);return G?{name:G.displayName||G.derivedTitle||G.label||N,lastActive:G.updatedAt}:N.length>24?{name:N.slice(0,12)+"โฆ"+N.slice(-6)}:{name:N}}const T=o.filter(N=>{var G;return((G=N.match.peer)==null?void 0:G.kind)==="group"||N.match.guildId}).map(N=>{var V;const G=((V=N.match.peer)==null?void 0:V.id)??N.match.guildId??"Unknown group",H=M(G);return{...N,_groupId:G,_displayName:H.name,_lastActive:H.lastActive}}),R=new Map(m.map(N=>{var G;return[N.id,((G=N.identity)==null?void 0:G.name)||N.name||N.id]})),w=T.reduce((N,G)=>{const H=G.match.channel;return N[H]||(N[H]=[]),N[H].push(G),N},{});return s.jsxs("div",{children:[s.jsx(ml,{title:"Groups",description:"View and manage group-to-agent bindings across all channels"}),T.length===0?s.jsx(pr,{icon:s.jsx(xr,{className:"h-12 w-12"}),title:"No group bindings",description:"Group bindings route specific groups to specific agents. Configure them in Settings โ Config under 'bindings'."}):s.jsx("div",{className:"space-y-6",children:Object.entries(w).map(([N,G])=>{const H=Qx[N]??"๐ก";return s.jsxs("div",{children:[s.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[s.jsx("span",{className:"text-lg",children:H}),s.jsx("h2",{className:"text-sm font-semibold text-surface-700",children:g[N]??N}),s.jsxs("span",{className:"badge-gray",children:[G.length," groups"]})]}),s.jsx("div",{className:"space-y-2",children:G.map((V,F)=>s.jsxs("div",{className:"card flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-surface-100",children:s.jsx(ax,{className:"h-5 w-5 text-surface-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:V._displayName}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-0.5 text-xs text-surface-400",children:[V.comment&&s.jsx("span",{children:V.comment}),V._lastActive&&s.jsxs("span",{children:["Active ",Vx(V._lastActive)]})]}),V._groupId!==V._displayName&&s.jsx("p",{className:"mt-0.5 text-[10px] font-mono text-surface-300 truncate max-w-[300px]",children:V._groupId})]})]}),s.jsx("div",{className:"flex items-center gap-3",children:s.jsxs(Zt,{to:`/agents/${V.agentId}`,className:"flex items-center gap-1.5 rounded-lg bg-primary-50 px-2.5 py-1 text-xs font-medium text-primary-700 hover:bg-primary-100 transition-colors",children:[s.jsx(ua,{className:"h-3 w-3"}),R.get(V.agentId)??V.agentId]})})]},F))})]},N)})}),s.jsxs("div",{className:"mt-8 card bg-surface-50 border-surface-200",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-700 mb-2",children:"Group Behavior Reference"}),s.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 text-xs text-surface-500",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(J1,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-surface-400"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-surface-700",children:"Mention Mode"}),s.jsx("p",{children:"Bot only responds when @mentioned in the group"})]})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(lx,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-surface-400"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-surface-700",children:"Always Mode"}),s.jsx("p",{children:"Bot responds to all messages in the group"})]})]})]})]})]})}function kx(){return`${location.protocol}//${location.host}/`}function Kx(){const{login:i,connecting:f,error:o}=Re(),[r,m]=p.useState("");function y(x){x.preventDefault(),r.trim()&&i(r)}return s.jsx("div",{className:"flex min-h-screen items-center justify-center bg-white",children:s.jsxs("div",{className:"w-full max-w-sm",children:[s.jsxs("div",{className:"mb-8 text-center",children:[s.jsx("div",{className:"mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-primary-600",children:s.jsx("span",{className:"text-2xl font-bold text-white",children:"O"})}),s.jsx("h1",{className:"text-2xl font-semibold text-surface-900",children:"Operator"}),s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:"Sign in to manage your AI agents"})]}),s.jsxs("form",{onSubmit:y,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"token",className:"label",children:"Gateway Token"}),s.jsxs("div",{className:"relative",children:[s.jsx(I1,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{id:"token",type:"password",value:r,onChange:x=>m(x.target.value),className:"input !pl-10",placeholder:"Enter your gateway token",autoFocus:!0,disabled:f})]})]}),o&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-3 text-sm text-red-700",children:[s.jsx(Ti,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:o})]}),s.jsx("button",{type:"submit",disabled:f||!r.trim(),className:"btn-primary w-full",children:f?s.jsxs(s.Fragment,{children:[s.jsx(Nt,{className:"h-4 w-4 animate-spin"}),"Connecting..."]}):"Sign In"})]}),s.jsxs("p",{className:"mt-6 text-center text-xs leading-relaxed text-surface-400",children:["You can find the token in the"," ",s.jsxs("a",{href:kx(),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-primary-600 hover:text-primary-700 hover:underline",children:["Dashboard",s.jsx(W1,{className:"h-3 w-3"})]})," ","settings"]})]})})}function Eh(i){if(!i)return"";if(typeof i=="string")return i;if(Array.isArray(i))return i.map(o=>{if(typeof o=="string")return o;if(o&&typeof o=="object"){const r=o;if(typeof r.text=="string")return r.text;if(typeof r.content=="string")return r.content}return""}).filter(Boolean).join("");const f=i;return typeof f.text=="string"?f.text:typeof f.content=="string"?f.content:Array.isArray(f.content)?Eh(f.content):""}function Jx(i){if(!i)return"";const f=Date.now()-i;return f<6e4?"just now":f<36e5?`${Math.floor(f/6e4)}m ago`:f<864e5?`${Math.floor(f/36e5)}h ago`:new Date(i).toLocaleDateString()}function km(i){return i.derivedTitle||i.displayName||i.label||i.subject||i.key}function $x({sessionKey:i,onClose:f}){const{gateway:o,connected:r}=Re(),[m,y]=p.useState([]),[x,S]=p.useState(!0),g=p.useRef(null);return p.useEffect(()=>{!o||!r||o.request("chat.history",{sessionKey:i,limit:100}).then(h=>{if(!Array.isArray(h==null?void 0:h.messages))return;const j=h.messages.map(b=>({role:String(b.role??"unknown"),text:Eh(b.content??b.text??b.message??"")})).filter(b=>b.text&&(b.role==="user"||b.role==="assistant"));y(j)}).catch(()=>{}).finally(()=>S(!1))},[o,r,i]),p.useEffect(()=>{var h;(h=g.current)==null||h.scrollTo({top:g.current.scrollHeight})},[m]),s.jsxs("div",{className:"mt-2 rounded-lg border border-surface-200 bg-surface-50",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-surface-200 px-4 py-2",children:[s.jsxs("p",{className:"text-xs font-medium text-surface-600",children:["Chat History (",m.length," messages)"]}),s.jsx("button",{onClick:f,className:"text-xs text-surface-400 hover:text-surface-600 transition-colors",children:"Close"})]}),s.jsx("div",{ref:g,className:"max-h-[400px] overflow-y-auto p-4 space-y-2.5",children:x?s.jsx("div",{className:"py-8 text-center",children:s.jsx(Nt,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"})}):m.length===0?s.jsx("p",{className:"py-6 text-center text-xs text-surface-400",children:"No messages in this session"}):m.map((h,j)=>s.jsx("div",{className:Ke("max-w-[85%] rounded-lg px-3.5 py-2 text-sm whitespace-pre-wrap leading-relaxed",h.role==="user"?"ml-auto bg-primary-600 text-white":"bg-white text-surface-800 border border-surface-200"),children:h.text},j))})]})}function Wx(){const{gateway:i,connected:f}=Re(),[o,r]=p.useState([]),[m,y]=p.useState(!0),[x,S]=p.useState(""),[g,h]=p.useState(null),[j,b]=p.useState(null);function z(){!i||!f||(y(!0),i.request("sessions.list",{}).then(w=>r(Array.isArray(w==null?void 0:w.sessions)?w.sessions:[])).catch(()=>{}).finally(()=>y(!1)))}p.useEffect(()=>{z()},[i,f]);async function M(w){if(!(!i||!confirm("Reset this session? This will clear its history."))){h(w);try{await i.request("sessions.reset",{key:w}),j===w&&b(null),z()}catch{}h(null)}}async function T(w){if(!(!i||!confirm("Delete this session? This cannot be undone."))){h(w);try{await i.request("sessions.delete",{key:w}),r(N=>N.filter(G=>G.key!==w)),j===w&&b(null)}catch{}h(null)}}if(m)return s.jsx(at,{});const R=o.filter(w=>{var G,H,V;if(!x)return!0;const N=x.toLowerCase();return km(w).toLowerCase().includes(N)||w.key.toLowerCase().includes(N)||((G=w.lastMessagePreview)==null?void 0:G.toLowerCase().includes(N))||((H=w.channel)==null?void 0:H.toLowerCase().includes(N))||((V=w.agentId)==null?void 0:V.toLowerCase().includes(N))});return s.jsxs("div",{children:[s.jsx(ml,{title:"Sessions",description:"View and manage active conversations",actions:s.jsxs("button",{onClick:z,className:"btn-secondary",children:[s.jsx(hr,{className:"h-4 w-4"}),"Refresh"]})}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(xh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{className:"input !pl-10",placeholder:"Search by title, channel, agent...",value:x,onChange:w=>S(w.target.value)})]}),s.jsx("div",{className:"space-y-2",children:R.map(w=>{const N=km(w),G=j===w.key;return s.jsxs("div",{children:[s.jsx("div",{className:Ke("card transition-colors",G&&"border-primary-300 bg-primary-50/20"),children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsxs("button",{onClick:()=>b(G?null:w.key),className:"flex flex-1 items-start gap-3 min-w-0 text-left",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-blue-50 mt-0.5",children:s.jsx($n,{className:"h-4 w-4 text-blue-600"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900 truncate",children:N}),w.lastMessagePreview&&s.jsx("p",{className:"mt-0.5 text-xs text-surface-500 line-clamp-2",children:w.lastMessagePreview}),s.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 text-[11px] text-surface-400",children:[w.agentId&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:w.agentId}),w.channel&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:w.channel}),w.kind&&w.kind!=="unknown"&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:w.kind}),w.updatedAt&&s.jsx("span",{children:Jx(w.updatedAt)})]})]}),s.jsx(mh,{className:Ke("mt-1 h-4 w-4 shrink-0 text-surface-300 transition-transform",G&&"rotate-180 text-primary-600")})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-1 ml-1",children:[s.jsx("button",{onClick:()=>M(w.key),disabled:g===w.key,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-amber-600",title:"Reset session",children:g===w.key?s.jsx(Nt,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(ux,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>T(w.key),disabled:g===w.key,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-red-600",title:"Delete session",children:s.jsx(gr,{className:"h-3.5 w-3.5"})})]})]})}),G&&s.jsx($x,{sessionKey:w.key,onClose:()=>b(null)})]},w.key)})}),R.length===0&&s.jsx("div",{className:"py-12 text-center text-sm text-surface-400",children:x?"No sessions match your search":"No active sessions"})]})}function Fx(){const{gateway:i,connected:f}=Re(),[o,r]=p.useState(""),[m,y]=p.useState(!0),[x,S]=p.useState(!1),[g,h]=p.useState(null),[j,b]=p.useState(null),[z,M]=p.useState([]);p.useEffect(()=>{!i||!f||Promise.all([i.request("config.get"),i.request("health").catch(()=>null),i.request("models.list").catch(()=>({models:[]}))]).then(([R,w,N])=>{r(JSON.stringify((R==null?void 0:R.config)??{},null,2)),b(w),M(Array.isArray(N==null?void 0:N.models)?N.models:[]),y(!1)})},[i,f]);async function T(){if(i){S(!0),h(null);try{const R=JSON.parse(o);await i.request("config.set",{config:R}),h({ok:!0,msg:"Configuration saved. Some changes may require a restart."})}catch(R){h({ok:!1,msg:R instanceof Error?R.message:"Failed to save"})}S(!1)}}return m?s.jsx(at,{}):s.jsxs("div",{children:[s.jsx(ml,{title:"Settings",description:"System configuration and health"}),s.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[s.jsx("div",{className:"lg:col-span-2 space-y-6",children:s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Configuration"}),s.jsx("p",{className:"text-xs text-surface-400",children:"openclaw.json"})]}),s.jsx("textarea",{className:"input min-h-[400px] resize-y font-mono text-xs leading-relaxed",value:o,onChange:R=>{r(R.target.value),h(null)},spellCheck:!1}),g&&s.jsxs("div",{className:`mt-3 flex items-start gap-2 rounded-lg p-3 text-sm ${g.ok?"bg-emerald-50 text-emerald-700":"bg-red-50 text-red-700"}`,children:[g.ok?s.jsx(nr,{className:"mt-0.5 h-4 w-4 shrink-0"}):s.jsx(Ti,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:g.msg})]}),s.jsx("div",{className:"mt-3 flex gap-3",children:s.jsxs("button",{onClick:T,disabled:x,className:"btn-primary",children:[x?s.jsx(Nt,{className:"h-4 w-4 animate-spin"}):s.jsx(gh,{className:"h-4 w-4"}),"Save Configuration"]})})]})}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"card",children:[s.jsx("h3",{className:"mb-3 text-sm font-semibold text-surface-900",children:"System Health"}),j?s.jsxs("div",{className:"space-y-2 text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx($1,{className:"h-4 w-4 text-surface-400"}),s.jsx("span",{className:"text-surface-600",children:"Status:"}),s.jsx("span",{className:"badge-green",children:"Healthy"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(F1,{className:"h-4 w-4 text-surface-400"}),s.jsx("span",{className:"text-surface-600",children:"Version:"}),s.jsx("span",{className:"text-surface-900 font-mono text-xs",children:j.version??"unknown"})]})]}):s.jsx("p",{className:"text-sm text-surface-400",children:"Health data unavailable"})]}),s.jsxs("div",{className:"card",children:[s.jsx("h3",{className:"mb-3 text-sm font-semibold text-surface-900",children:"Available Models"}),s.jsxs("div",{className:"space-y-1",children:[z.length>0?z.slice(0,10).map(R=>s.jsxs("div",{className:"rounded px-2 py-1.5 text-xs",children:[s.jsx("p",{className:"font-mono text-surface-700",children:R.id}),R.provider&&s.jsx("p",{className:"text-surface-400",children:R.provider})]},R.id)):s.jsx("p",{className:"text-sm text-surface-400",children:"No models configured"}),z.length>10&&s.jsxs("p",{className:"text-xs text-surface-400",children:["+",z.length-10," more"]})]})]})]})]})]})}function pi(i){const f=Ah(i.missing);return i.disabled?"disabled":i.blockedByAllowlist&&f?"both":i.blockedByAllowlist?"blocked":f?"missing":"enabled"}const tr={enabled:{label:"Enabled",cls:"bg-emerald-50 text-emerald-700"},disabled:{label:"Disabled",cls:"bg-surface-100 text-surface-500"},blocked:{label:"Blocked by Allowlist",cls:"bg-amber-50 text-amber-700"},missing:{label:"Missing Requirements",cls:"bg-red-50 text-red-700"},both:{label:"Blocked + Missing Reqs",cls:"bg-red-50 text-red-700"}};function Ah(i){return i.bins.length>0||i.anyBins.length>0||i.env.length>0||i.config.length>0||i.os.length>0}function Ix(){const{gateway:i,connected:f}=Re(),[o,r]=p.useState([]),[m,y]=p.useState(!0),[x,S]=p.useState(""),[g,h]=p.useState(null),[j,b]=p.useState(null),[z,M]=p.useState(null),[T,R]=p.useState(new Set),[w,N]=p.useState("all");function G(){!i||!f||(y(!0),i.request("skills.status",{}).then(Q=>r(Array.isArray(Q==null?void 0:Q.skills)?Q.skills:[])).catch(()=>{}).finally(()=>y(!1)))}p.useEffect(()=>{G()},[i,f]);async function H(Q){if(!i)return;const Te=pi(Q)!=="enabled";h(Q.skillKey);try{await i.request("skills.update",{skillKey:Q.skillKey,enabled:Te}),G()}catch{}h(null)}async function V(Q,se){if(!i)return;const Te=`${Q}:${se}`;b(Te),M(null);try{const Ce=await i.request("skills.install",{name:Q,installId:se,timeoutMs:12e4});Ce!=null&&Ce.ok?(M({key:Q,ok:!0,msg:"Installed successfully"}),G()):M({key:Q,ok:!1,msg:(Ce==null?void 0:Ce.message)??"Install failed"})}catch(Ce){M({key:Q,ok:!1,msg:Ce instanceof Error?Ce.message:"Install failed"})}b(null)}function F(Q){R(se=>{const Te=new Set(se);return Te.has(Q)?Te.delete(Q):Te.add(Q),Te})}if(m)return s.jsx(at,{});const te=o.filter(Q=>{var Te;if(w!=="all"&&pi(Q)!==w)return!1;if(!x)return!0;const se=x.toLowerCase();return Q.skillKey.toLowerCase().includes(se)||Q.name.toLowerCase().includes(se)||((Te=Q.description)==null?void 0:Te.toLowerCase().includes(se))}),K={enabled:0,disabled:0,blocked:0,missing:0,both:0};for(const Q of o)K[pi(Q)]++;return s.jsxs("div",{children:[s.jsx(ml,{title:"Skills",description:"Browse and manage agent skills",actions:s.jsxs("button",{onClick:G,className:"btn-secondary",children:[s.jsx(hr,{className:"h-4 w-4"}),"Refresh"]})}),s.jsxs("div",{className:"mb-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(xh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{className:"input !pl-10",placeholder:"Search skills...",value:x,onChange:Q=>S(Q.target.value)})]}),s.jsxs("span",{className:"text-xs text-surface-500",children:[te.length," / ",o.length]})]}),s.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[s.jsxs("button",{onClick:()=>N("all"),className:Ke("rounded-full px-3 py-1 text-xs font-medium transition-colors",w==="all"?"bg-surface-900 text-white":"bg-surface-100 text-surface-600 hover:bg-surface-200"),children:["All (",o.length,")"]}),["enabled","blocked","missing","disabled"].map(Q=>K[Q]>0&&s.jsxs("button",{onClick:()=>N(w===Q?"all":Q),className:Ke("rounded-full px-3 py-1 text-xs font-medium transition-colors",w===Q?"bg-surface-900 text-white":`${tr[Q].cls} hover:opacity-80`),children:[tr[Q].label," (",K[Q],")"]},Q))]})]}),s.jsx("div",{className:"space-y-2",children:te.map(Q=>{const se=pi(Q),Te=tr[se],Ce=T.has(Q.skillKey),Qe=Ah(Q.missing);return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx("button",{onClick:()=>F(Q.skillKey),className:"shrink-0 text-surface-400 hover:text-surface-600",children:Ce?s.jsx(mh,{className:"h-4 w-4"}):s.jsx(hh,{className:"h-4 w-4"})}),s.jsx("div",{className:Ke("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",se==="enabled"?"bg-primary-100":"bg-surface-100"),children:Q.emoji?s.jsx("span",{className:"text-lg",children:Q.emoji}):s.jsx(Ci,{className:Ke("h-4 w-4",se==="enabled"?"text-primary-600":"text-surface-400")})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:Q.name}),s.jsx("span",{className:Ke("shrink-0 rounded px-1.5 py-0.5 text-[10px] font-medium",Te.cls),children:Te.label})]}),Q.description&&s.jsx("p",{className:"text-xs text-surface-400 truncate",children:Q.description})]})]}),s.jsx("button",{onClick:()=>H(Q),disabled:g===Q.skillKey,className:"ml-3 shrink-0",title:se==="enabled"?"Disable this skill":"Enable this skill",children:g===Q.skillKey?s.jsx(Nt,{className:"h-5 w-5 animate-spin text-surface-400"}):se==="enabled"?s.jsx(fx,{className:"h-6 w-6 text-primary-600"}):s.jsx(rx,{className:"h-6 w-6 text-surface-300"})})]}),Ce&&s.jsxs("div",{className:"mt-3 border-t border-surface-100 pt-3 space-y-2.5",children:[s.jsxs("div",{className:"grid gap-2 sm:grid-cols-2 text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Key:"}),s.jsx("code",{className:"font-mono",children:Q.skillKey})]}),s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Source:"}),s.jsx("span",{children:Q.source})]}),Q.primaryEnv&&s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx(P1,{className:"h-3 w-3"}),s.jsx("span",{className:"font-medium text-surface-700",children:"API Key env:"}),s.jsx("code",{className:"font-mono",children:Q.primaryEnv})]}),Q.homepage&&s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Homepage:"}),s.jsx("a",{href:Q.homepage,target:"_blank",rel:"noreferrer",className:"text-primary-600 hover:underline truncate",children:Q.homepage})]})]}),Q.blockedByAllowlist&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-amber-50 p-2.5 text-xs text-amber-800",children:[s.jsx(sx,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Blocked by allowlist"}),s.jsxs("p",{className:"text-amber-600",children:["This bundled skill is not in"," ",s.jsx("code",{className:"font-mono",children:"skills.allowBundled"}),". Add"," ",s.jsxs("code",{className:"font-mono",children:['"',Q.skillKey,'"']})," to the allowlist in Settings to unblock."]})]})]}),Qe&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-2.5 text-xs text-red-800",children:[s.jsx(ox,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Missing requirements"}),s.jsxs("ul",{className:"mt-1 space-y-0.5 text-red-700",children:[Q.missing.bins.length>0&&s.jsxs("li",{children:["Commands not found:"," ",s.jsx("code",{className:"font-mono",children:Q.missing.bins.join(", ")})]}),Q.missing.anyBins.length>0&&s.jsxs("li",{children:["Need one of:"," ",s.jsx("code",{className:"font-mono",children:Q.missing.anyBins.join(", ")})]}),Q.missing.env.length>0&&s.jsxs("li",{children:["Missing env vars:"," ",s.jsx("code",{className:"font-mono",children:Q.missing.env.join(", ")})]}),Q.missing.config.length>0&&s.jsxs("li",{children:["Missing config:"," ",s.jsx("code",{className:"font-mono",children:Q.missing.config.join(", ")})]}),Q.missing.os.length>0&&s.jsxs("li",{children:["Requires OS:"," ",s.jsx("code",{className:"font-mono",children:Q.missing.os.join(", ")})]})]})]})]}),Array.isArray(Q.install)&&Q.install.length>0&&Qe&&s.jsxs("div",{className:"rounded-lg bg-blue-50 p-2.5",children:[s.jsxs("p",{className:"text-xs font-medium text-blue-800 mb-2",children:[s.jsx(Ym,{className:"inline h-3 w-3 mr-1"}),"Install missing dependencies"]}),s.jsx("div",{className:"flex flex-wrap gap-2",children:Q.install.map(Je=>{const nt=`${Q.name}:${Je.id}`,_e=j===nt;return s.jsxs("button",{onClick:()=>V(Q.name,Je.id),disabled:_e||j!==null,className:"flex items-center gap-1.5 rounded-lg bg-white border border-blue-200 px-3 py-1.5 text-xs font-medium text-blue-700 hover:bg-blue-100 transition-colors disabled:opacity-50",children:[_e?s.jsx(Nt,{className:"h-3 w-3 animate-spin"}):s.jsx(Ym,{className:"h-3 w-3"}),Je.label,Je.bins.length>0&&s.jsxs("span",{className:"text-blue-400 font-mono",children:["(",Je.bins.join(", "),")"]})]},Je.id)})}),(z==null?void 0:z.key)===Q.name&&s.jsxs("div",{className:Ke("mt-2 text-xs",z.ok?"text-emerald-700":"text-red-700"),children:[z.ok?s.jsx(nr,{className:"inline h-3 w-3 mr-1"}):s.jsx(Bm,{className:"inline h-3 w-3 mr-1"}),z.msg]})]}),se==="enabled"&&s.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-emerald-50 p-2.5 text-xs text-emerald-700",children:[s.jsx(nr,{className:"h-3.5 w-3.5 shrink-0"}),s.jsx("span",{children:"All requirements met. Skill is active."})]}),Q.disabled&&s.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-surface-100 p-2.5 text-xs text-surface-600",children:[s.jsx(Bm,{className:"h-3.5 w-3.5 shrink-0"}),s.jsx("span",{children:"Explicitly disabled in config. Click the toggle to re-enable."})]})]})]},Q.skillKey)})}),te.length===0&&s.jsx("div",{className:"py-12 text-center text-sm text-surface-400",children:x||w!=="all"?"No skills match your filter":"No skills available"})]})}function Px(){return s.jsx(c1,{children:s.jsxs(dt,{element:s.jsx(bx,{}),children:[s.jsx(dt,{index:!0,element:s.jsx(Xx,{})}),s.jsx(dt,{path:"agents",element:s.jsx(qx,{})}),s.jsx(dt,{path:"agents/new",element:s.jsx(Sx,{})}),s.jsx(dt,{path:"agents/:agentId",element:s.jsx(Vm,{})}),s.jsx(dt,{path:"agents/:agentId/:tab",element:s.jsx(Vm,{})}),s.jsx(dt,{path:"channels",element:s.jsx(Yx,{})}),s.jsx(dt,{path:"groups",element:s.jsx(Zx,{})}),s.jsx(dt,{path:"skills",element:s.jsx(Ix,{})}),s.jsx(dt,{path:"sessions",element:s.jsx(Wx,{})}),s.jsx(dt,{path:"cron",element:s.jsx(Gx,{})}),s.jsx(dt,{path:"settings",element:s.jsx(Fx,{})}),s.jsx(dt,{path:"*",element:s.jsx(u1,{to:"/",replace:!0})})]})})}function ep(){const{authenticated:i}=Re();return i?s.jsx(Px,{}):s.jsx(Kx,{})}ig.createRoot(document.getElementById("root")).render(s.jsx(p.StrictMode,{children:s.jsx(_1,{basename:"/operator",children:s.jsx(xx,{children:s.jsx(ep,{})})})}));
|