agent-dj 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -0
- package/dist/cli.js +274979 -0
- package/dist/server.js +274084 -0
- package/package.json +71 -0
- package/web/dist/assets/index-C_p3GG7h.css +1 -0
- package/web/dist/assets/index-DkpIwp3f.js +348 -0
- package/web/dist/index.html +16 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const i of u.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function l(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(n){if(n.ep)return;n.ep=!0;const u=l(n);fetch(n.href,u)}})();function ro(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fo={exports:{}},Vu={};/**
|
|
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 Jh=Symbol.for("react.transitional.element"),$h=Symbol.for("react.fragment");function oo(e,t,l){var a=null;if(l!==void 0&&(a=""+l),t.key!==void 0&&(a=""+t.key),"key"in t){l={};for(var n in t)n!=="key"&&(l[n]=t[n])}else l=t;return t=l.ref,{$$typeof:Jh,type:e,key:a,ref:t!==void 0?t:null,props:l}}Vu.Fragment=$h;Vu.jsx=oo;Vu.jsxs=oo;fo.exports=Vu;var c=fo.exports,mo={exports:{}},R={};/**
|
|
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 us=Symbol.for("react.transitional.element"),Wh=Symbol.for("react.portal"),Fh=Symbol.for("react.fragment"),Ih=Symbol.for("react.strict_mode"),Ph=Symbol.for("react.profiler"),e0=Symbol.for("react.consumer"),t0=Symbol.for("react.context"),l0=Symbol.for("react.forward_ref"),a0=Symbol.for("react.suspense"),n0=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),u0=Symbol.for("react.activity"),xr=Symbol.iterator;function i0(e){return e===null||typeof e!="object"?null:(e=xr&&e[xr]||e["@@iterator"],typeof e=="function"?e:null)}var yo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},go=Object.assign,vo={};function ha(e,t,l){this.props=e,this.context=t,this.refs=vo,this.updater=l||yo}ha.prototype.isReactComponent={};ha.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ha.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function po(){}po.prototype=ha.prototype;function is(e,t,l){this.props=e,this.context=t,this.refs=vo,this.updater=l||yo}var cs=is.prototype=new po;cs.constructor=is;go(cs,ha.prototype);cs.isPureReactComponent=!0;var br=Array.isArray;function ac(){}var ee={H:null,A:null,T:null,S:null},xo=Object.prototype.hasOwnProperty;function ss(e,t,l){var a=l.ref;return{$$typeof:us,type:e,key:t,ref:a!==void 0?a:null,props:l}}function c0(e,t){return ss(e.type,t,e.props)}function rs(e){return typeof e=="object"&&e!==null&&e.$$typeof===us}function s0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return t[l]})}var Sr=/\/+/g;function gi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?s0(""+e.key):t.toString(36)}function r0(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ac,ac):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ul(e,t,l,a,n){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case us:case Wh:i=!0;break;case ho:return i=e._init,Ul(i(e._payload),t,l,a,n)}}if(i)return n=n(e),i=a===""?"."+gi(e,0):a,br(n)?(l="",i!=null&&(l=i.replace(Sr,"$&/")+"/"),Ul(n,t,l,"",function(o){return o})):n!=null&&(rs(n)&&(n=c0(n,l+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(Sr,"$&/")+"/")+i)),t.push(n)),1;i=0;var s=a===""?".":a+":";if(br(e))for(var r=0;r<e.length;r++)a=e[r],u=s+gi(a,r),i+=Ul(a,t,l,u,n);else if(r=i0(e),typeof r=="function")for(e=r.call(e),r=0;!(a=e.next()).done;)a=a.value,u=s+gi(a,r++),i+=Ul(a,t,l,u,n);else if(u==="object"){if(typeof e.then=="function")return Ul(r0(e),t,l,a,n);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function Dn(e,t,l){if(e==null)return e;var a=[],n=0;return Ul(e,a,"","",function(u){return t.call(l,u,n++)}),a}function f0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l)},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Nr=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)},o0={map:Dn,forEach:function(e,t,l){Dn(e,function(){t.apply(this,arguments)},l)},count:function(e){var t=0;return Dn(e,function(){t++}),t},toArray:function(e){return Dn(e,function(t){return t})||[]},only:function(e){if(!rs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};R.Activity=u0;R.Children=o0;R.Component=ha;R.Fragment=Fh;R.Profiler=Ph;R.PureComponent=is;R.StrictMode=Ih;R.Suspense=a0;R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee;R.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ee.H.useMemoCache(e)}};R.cache=function(e){return function(){return e.apply(null,arguments)}};R.cacheSignal=function(){return null};R.cloneElement=function(e,t,l){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=go({},e.props),n=e.key;if(t!=null)for(u in t.key!==void 0&&(n=""+t.key),t)!xo.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(a[u]=t[u]);var u=arguments.length-2;if(u===1)a.children=l;else if(1<u){for(var i=Array(u),s=0;s<u;s++)i[s]=arguments[s+2];a.children=i}return ss(e.type,n,a)};R.createContext=function(e){return e={$$typeof:t0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:e0,_context:e},e};R.createElement=function(e,t,l){var a,n={},u=null;if(t!=null)for(a in t.key!==void 0&&(u=""+t.key),t)xo.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(n[a]=t[a]);var i=arguments.length-2;if(i===1)n.children=l;else if(1<i){for(var s=Array(i),r=0;r<i;r++)s[r]=arguments[r+2];n.children=s}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)n[a]===void 0&&(n[a]=i[a]);return ss(e,u,n)};R.createRef=function(){return{current:null}};R.forwardRef=function(e){return{$$typeof:l0,render:e}};R.isValidElement=rs;R.lazy=function(e){return{$$typeof:ho,_payload:{_status:-1,_result:e},_init:f0}};R.memo=function(e,t){return{$$typeof:n0,type:e,compare:t===void 0?null:t}};R.startTransition=function(e){var t=ee.T,l={};ee.T=l;try{var a=e(),n=ee.S;n!==null&&n(l,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(ac,Nr)}catch(u){Nr(u)}finally{t!==null&&l.types!==null&&(t.types=l.types),ee.T=t}};R.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()};R.use=function(e){return ee.H.use(e)};R.useActionState=function(e,t,l){return ee.H.useActionState(e,t,l)};R.useCallback=function(e,t){return ee.H.useCallback(e,t)};R.useContext=function(e){return ee.H.useContext(e)};R.useDebugValue=function(){};R.useDeferredValue=function(e,t){return ee.H.useDeferredValue(e,t)};R.useEffect=function(e,t){return ee.H.useEffect(e,t)};R.useEffectEvent=function(e){return ee.H.useEffectEvent(e)};R.useId=function(){return ee.H.useId()};R.useImperativeHandle=function(e,t,l){return ee.H.useImperativeHandle(e,t,l)};R.useInsertionEffect=function(e,t){return ee.H.useInsertionEffect(e,t)};R.useLayoutEffect=function(e,t){return ee.H.useLayoutEffect(e,t)};R.useMemo=function(e,t){return ee.H.useMemo(e,t)};R.useOptimistic=function(e,t){return ee.H.useOptimistic(e,t)};R.useReducer=function(e,t,l){return ee.H.useReducer(e,t,l)};R.useRef=function(e){return ee.H.useRef(e)};R.useState=function(e){return ee.H.useState(e)};R.useSyncExternalStore=function(e,t,l){return ee.H.useSyncExternalStore(e,t,l)};R.useTransition=function(){return ee.H.useTransition()};R.version="19.2.4";mo.exports=R;var p=mo.exports;const wa=ro(p);var bo={exports:{}},Ku={},So={exports:{}},No={};/**
|
|
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
|
+
*/(function(e){function t(M,B){var H=M.length;M.push(B);e:for(;0<H;){var ie=H-1>>>1,ge=M[ie];if(0<n(ge,B))M[ie]=B,M[H]=ge,H=ie;else break e}}function l(M){return M.length===0?null:M[0]}function a(M){if(M.length===0)return null;var B=M[0],H=M.pop();if(H!==B){M[0]=H;e:for(var ie=0,ge=M.length,_n=ge>>>1;ie<_n;){var wn=2*(ie+1)-1,yi=M[wn],dl=wn+1,Rn=M[dl];if(0>n(yi,H))dl<ge&&0>n(Rn,yi)?(M[ie]=Rn,M[dl]=H,ie=dl):(M[ie]=yi,M[wn]=H,ie=wn);else if(dl<ge&&0>n(Rn,H))M[ie]=Rn,M[dl]=H,ie=dl;else break e}}return B}function n(M,B){var H=M.sortIndex-B.sortIndex;return H!==0?H:M.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var r=[],o=[],m=1,h=null,d=3,g=!1,x=!1,S=!1,j=!1,y=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function b(M){for(var B=l(o);B!==null;){if(B.callback===null)a(o);else if(B.startTime<=M)a(o),B.sortIndex=B.expirationTime,t(r,B);else break;B=l(o)}}function A(M){if(S=!1,b(M),!x)if(l(r)!==null)x=!0,C||(C=!0,re());else{var B=l(o);B!==null&&ze(A,B.startTime-M)}}var C=!1,T=-1,z=5,_=-1;function U(){return j?!0:!(e.unstable_now()-_<z)}function E(){if(j=!1,C){var M=e.unstable_now();_=M;var B=!0;try{e:{x=!1,S&&(S=!1,f(T),T=-1),g=!0;var H=d;try{t:{for(b(M),h=l(r);h!==null&&!(h.expirationTime>M&&U());){var ie=h.callback;if(typeof ie=="function"){h.callback=null,d=h.priorityLevel;var ge=ie(h.expirationTime<=M);if(M=e.unstable_now(),typeof ge=="function"){h.callback=ge,b(M),B=!0;break t}h===l(r)&&a(r),b(M)}else a(r);h=l(r)}if(h!==null)B=!0;else{var _n=l(o);_n!==null&&ze(A,_n.startTime-M),B=!1}}break e}finally{h=null,d=H,g=!1}B=void 0}}finally{B?re():C=!1}}}var re;if(typeof v=="function")re=function(){v(E)};else if(typeof MessageChannel<"u"){var Bt=new MessageChannel,ol=Bt.port2;Bt.port1.onmessage=E,re=function(){ol.postMessage(null)}}else re=function(){y(E,0)};function ze(M,B){T=y(function(){M(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(M){switch(d){case 1:case 2:case 3:var B=3;break;default:B=d}var H=d;d=B;try{return M()}finally{d=H}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(M,B){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var H=d;d=M;try{return B()}finally{d=H}},e.unstable_scheduleCallback=function(M,B,H){var ie=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?ie+H:ie):H=ie,M){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=H+ge,M={id:m++,callback:B,priorityLevel:M,startTime:H,expirationTime:ge,sortIndex:-1},H>ie?(M.sortIndex=H,t(o,M),l(r)===null&&M===l(o)&&(S?(f(T),T=-1):S=!0,ze(A,H-ie))):(M.sortIndex=ge,t(r,M),x||g||(x=!0,C||(C=!0,re()))),M},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(M){var B=d;return function(){var H=d;d=B;try{return M.apply(this,arguments)}finally{d=H}}}})(No);So.exports=No;var d0=So.exports,jo={exports:{}},Me={};/**
|
|
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 m0=p;function Eo(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 Lt(){}var Te={d:{f:Lt,r:function(){throw Error(Eo(522))},D:Lt,C:Lt,L:Lt,m:Lt,X:Lt,S:Lt,M:Lt},p:0,findDOMNode:null},h0=Symbol.for("react.portal");function y0(e,t,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h0,key:a==null?null:""+a,children:e,containerInfo:t,implementation:l}}var La=m0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ju(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Te;Me.createPortal=function(e,t){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Eo(299));return y0(e,t,null,l)};Me.flushSync=function(e){var t=La.T,l=Te.p;try{if(La.T=null,Te.p=2,e)return e()}finally{La.T=t,Te.p=l,Te.d.f()}};Me.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Te.d.C(e,t))};Me.prefetchDNS=function(e){typeof e=="string"&&Te.d.D(e)};Me.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var l=t.as,a=Ju(l,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,u=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;l==="style"?Te.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:u}):l==="script"&&Te.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:u,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Me.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var l=Ju(t.as,t.crossOrigin);Te.d.M(e,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Te.d.M(e)};Me.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var l=t.as,a=Ju(l,t.crossOrigin);Te.d.L(e,l,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Me.preloadModule=function(e,t){if(typeof e=="string")if(t){var l=Ju(t.as,t.crossOrigin);Te.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Te.d.m(e)};Me.requestFormReset=function(e){Te.d.r(e)};Me.unstable_batchedUpdates=function(e,t){return e(t)};Me.useFormState=function(e,t,l){return La.H.useFormState(e,t,l)};Me.useFormStatus=function(){return La.H.useHostTransitionStatus()};Me.version="19.2.4";function Ao(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ao)}catch(e){console.error(e)}}Ao(),jo.exports=Me;var g0=jo.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 ye=d0,To=p,v0=g0;function N(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 Mo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yn(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function zo(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 Co(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 jr(e){if(yn(e)!==e)throw Error(N(188))}function p0(e){var t=e.alternate;if(!t){if(t=yn(e),t===null)throw Error(N(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 jr(n),e;if(u===a)return jr(n),t;u=u.sibling}throw Error(N(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,s=n.child;s;){if(s===l){i=!0,l=n,a=u;break}if(s===a){i=!0,a=n,l=u;break}s=s.sibling}if(!i){for(s=u.child;s;){if(s===l){i=!0,l=u,a=n;break}if(s===a){i=!0,a=u,l=n;break}s=s.sibling}if(!i)throw Error(N(189))}}if(l.alternate!==a)throw Error(N(190))}if(l.tag!==3)throw Error(N(188));return l.stateNode.current===l?e:t}function Oo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Oo(e),t!==null)return t;e=e.sibling}return null}var te=Object.assign,x0=Symbol.for("react.element"),Un=Symbol.for("react.transitional.element"),Ra=Symbol.for("react.portal"),Ll=Symbol.for("react.fragment"),_o=Symbol.for("react.strict_mode"),nc=Symbol.for("react.profiler"),wo=Symbol.for("react.consumer"),jt=Symbol.for("react.context"),fs=Symbol.for("react.forward_ref"),uc=Symbol.for("react.suspense"),ic=Symbol.for("react.suspense_list"),os=Symbol.for("react.memo"),qt=Symbol.for("react.lazy"),cc=Symbol.for("react.activity"),b0=Symbol.for("react.memo_cache_sentinel"),Er=Symbol.iterator;function Ea(e){return e===null||typeof e!="object"?null:(e=Er&&e[Er]||e["@@iterator"],typeof e=="function"?e:null)}var S0=Symbol.for("react.client.reference");function sc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===S0?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ll:return"Fragment";case nc:return"Profiler";case _o:return"StrictMode";case uc:return"Suspense";case ic:return"SuspenseList";case cc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ra:return"Portal";case jt:return e.displayName||"Context";case wo:return(e._context.displayName||"Context")+".Consumer";case fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case os:return t=e.displayName||null,t!==null?t:sc(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return sc(e(t))}catch{}}return null}var Da=Array.isArray,w=To.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=v0.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pl={pending:!1,data:null,method:null,action:null},rc=[],ql=-1;function mt(e){return{current:e}}function xe(e){0>ql||(e.current=rc[ql],rc[ql]=null,ql--)}function F(e,t){ql++,rc[ql]=e.current,e.current=t}var ft=mt(null),Pa=mt(null),Wt=mt(null),yu=mt(null);function gu(e,t){switch(F(Wt,t),F(Pa,e),F(ft,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_f(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_f(t),e=Im(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}xe(ft),F(ft,e)}function aa(){xe(ft),xe(Pa),xe(Wt)}function fc(e){e.memoizedState!==null&&F(yu,e);var t=ft.current,l=Im(t,e.type);t!==l&&(F(Pa,e),F(ft,l))}function vu(e){Pa.current===e&&(xe(ft),xe(Pa)),yu.current===e&&(xe(yu),on._currentValue=pl)}var vi,Ar;function hl(e){if(vi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);vi=t&&t[1]||"",Ar=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+vi+e+Ar}var pi=!1;function xi(e,t){if(!e||pi)return"";pi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(g){var d=g}Reflect.construct(e,[],h)}else{try{h.call()}catch(g){d=g}e.call(h.prototype)}}else{try{throw Error()}catch(g){d=g}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(g){if(g&&d&&typeof g.stack=="string")return[g.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(),i=u[0],s=u[1];if(i&&s){var r=i.split(`
|
|
44
|
+
`),o=s.split(`
|
|
45
|
+
`);for(n=a=0;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;for(;n<o.length&&!o[n].includes("DetermineComponentFrameRoot");)n++;if(a===r.length||n===o.length)for(a=r.length-1,n=o.length-1;1<=a&&0<=n&&r[a]!==o[n];)n--;for(;1<=a&&0<=n;a--,n--)if(r[a]!==o[n]){if(a!==1||n!==1)do if(a--,n--,0>n||r[a]!==o[n]){var m=`
|
|
46
|
+
`+r[a].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=a&&0<=n);break}}}finally{pi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?hl(l):""}function N0(e,t){switch(e.tag){case 26:case 27:case 5:return hl(e.type);case 16:return hl("Lazy");case 13:return e.child!==t&&t!==null?hl("Suspense Fallback"):hl("Suspense");case 19:return hl("SuspenseList");case 0:case 15:return xi(e.type,!1);case 11:return xi(e.type.render,!1);case 1:return xi(e.type,!0);case 31:return hl("Activity");default:return""}}function Tr(e){try{var t="",l=null;do t+=N0(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var oc=Object.prototype.hasOwnProperty,ds=ye.unstable_scheduleCallback,bi=ye.unstable_cancelCallback,j0=ye.unstable_shouldYield,E0=ye.unstable_requestPaint,Ye=ye.unstable_now,A0=ye.unstable_getCurrentPriorityLevel,Ro=ye.unstable_ImmediatePriority,Do=ye.unstable_UserBlockingPriority,pu=ye.unstable_NormalPriority,T0=ye.unstable_LowPriority,Uo=ye.unstable_IdlePriority,M0=ye.log,z0=ye.unstable_setDisableYieldValue,gn=null,Ge=null;function Zt(e){if(typeof M0=="function"&&z0(e),Ge&&typeof Ge.setStrictMode=="function")try{Ge.setStrictMode(gn,e)}catch{}}var ke=Math.clz32?Math.clz32:_0,C0=Math.log,O0=Math.LN2;function _0(e){return e>>>=0,e===0?32:31-(C0(e)/O0|0)|0}var Hn=256,Bn=262144,Ln=4194304;function yl(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 $u(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~u,a!==0?n=yl(a):(i&=s,i!==0?n=yl(i):l||(l=s&~e,l!==0&&(n=yl(l))))):(s=a&~u,s!==0?n=yl(s):i!==0?n=yl(i):l||(l=a&~e,l!==0&&(n=yl(l)))),n===0?0:t!==0&&t!==n&&!(t&u)&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function w0(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 Ho(){var e=Ln;return Ln<<=1,!(Ln&62914560)&&(Ln=4194304),e}function Si(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function pn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function R0(e,t,l,a,n,u){var i=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 s=e.entanglements,r=e.expirationTimes,o=e.hiddenUpdates;for(l=i&~l;0<l;){var m=31-ke(l),h=1<<m;s[m]=0,r[m]=-1;var d=o[m];if(d!==null)for(o[m]=null,m=0;m<d.length;m++){var g=d[m];g!==null&&(g.lane&=-536870913)}l&=~h}a!==0&&Bo(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function Bo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ke(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Lo(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ke(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function qo(e,t){var l=t&-t;return l=l&42?1:ms(l),l&(e.suspendedLanes|t)?0:l}function ms(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 hs(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Yo(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:rh(e.type))}function Mr(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var rl=Math.random().toString(36).slice(2),Se="__reactFiber$"+rl,De="__reactProps$"+rl,ya="__reactContainer$"+rl,dc="__reactEvents$"+rl,D0="__reactListeners$"+rl,U0="__reactHandles$"+rl,zr="__reactResources$"+rl,xn="__reactMarker$"+rl;function ys(e){delete e[Se],delete e[De],delete e[dc],delete e[D0],delete e[U0]}function Yl(e){var t=e[Se];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ya]||l[Se]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Hf(e);e!==null;){if(l=e[Se])return l;e=Hf(e)}return t}e=l,l=e.parentNode}return null}function ga(e){if(e=e[Se]||e[ya]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ua(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(N(33))}function Wl(e){var t=e[zr];return t||(t=e[zr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pe(e){e[xn]=!0}var Go=new Set,ko={};function zl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(ko[e]=t,e=0;e<t.length;e++)Go.add(t[e])}var H0=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]*$"),Cr={},Or={};function B0(e){return oc.call(Or,e)?!0:oc.call(Cr,e)?!1:H0.test(e)?Or[e]=!0:(Cr[e]=!0,!1)}function Fn(e,t,l){if(B0(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 qn(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 gt(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 Ke(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function L0(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(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mc(e){if(!e._valueTracker){var t=Xo(e)?"checked":"value";e._valueTracker=L0(e,t,""+e[t])}}function Qo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Xo(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function xu(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 q0=/[\n"\\]/g;function We(e){return e.replace(q0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hc(e,t,l,a,n,u,i,s){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ke(t)):e.value!==""+Ke(t)&&(e.value=""+Ke(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?yc(e,i,Ke(t)):l!=null?yc(e,i,Ke(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Ke(s):e.removeAttribute("name")}function Zo(e,t,l,a,n,u,i,s){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)){mc(e);return}l=l!=null?""+Ke(l):"",t=t!=null?""+Ke(t):l,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),mc(e)}function yc(e,t,l){t==="number"&&xu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Fl(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=""+Ke(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 Vo(e,t,l){if(t!=null&&(t=""+Ke(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ke(l):""}function Ko(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(N(92));if(Da(a)){if(1<a.length)throw Error(N(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ke(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),mc(e)}function ua(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Y0=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 _r(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||Y0.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Jo(e,t,l){if(t!=null&&typeof t!="object")throw Error(N(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&&_r(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&_r(e,u,t[u])}function gs(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 G0=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"]]),k0=/^[\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 In(e){return k0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Et(){}var gc=null;function vs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gl=null,Il=null;function wr(e){var t=ga(e);if(t&&(e=t.stateNode)){var l=e[De]||null;e:switch(e=t.stateNode,t.type){case"input":if(hc(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="'+We(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[De]||null;if(!n)throw Error(N(90));hc(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&&Qo(a)}break e;case"textarea":Vo(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Fl(e,!!l.multiple,t,!1)}}}var Ni=!1;function $o(e,t,l){if(Ni)return e(t,l);Ni=!0;try{var a=e(t);return a}finally{if(Ni=!1,(Gl!==null||Il!==null)&&(ci(),Gl&&(t=Gl,e=Il,Il=Gl=null,wr(t),e)))for(t=0;t<e.length;t++)wr(e[t])}}function en(e,t){var l=e.stateNode;if(l===null)return null;var a=l[De]||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(N(231,t,typeof l));return l}var Ct=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vc=!1;if(Ct)try{var Aa={};Object.defineProperty(Aa,"passive",{get:function(){vc=!0}}),window.addEventListener("test",Aa,Aa),window.removeEventListener("test",Aa,Aa)}catch{vc=!1}var Vt=null,ps=null,Pn=null;function Wo(){if(Pn)return Pn;var e,t=ps,l=t.length,a,n="value"in Vt?Vt.value:Vt.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return Pn=n.slice(e,1<a?1-a:void 0)}function eu(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 Yn(){return!0}function Rr(){return!1}function Ue(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(l=e[s],this[s]=l?l(u):u[s]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Yn:Rr,this.isPropagationStopped=Rr,this}return te(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=Yn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Yn)},persist:function(){},isPersistent:Yn}),t}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=Ue(Cl),bn=te({},Cl,{view:0,detail:0}),X0=Ue(bn),ji,Ei,Ta,Fu=te({},bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xs,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!==Ta&&(Ta&&e.type==="mousemove"?(ji=e.screenX-Ta.screenX,Ei=e.screenY-Ta.screenY):Ei=ji=0,Ta=e),ji)},movementY:function(e){return"movementY"in e?e.movementY:Ei}}),Dr=Ue(Fu),Q0=te({},Fu,{dataTransfer:0}),Z0=Ue(Q0),V0=te({},bn,{relatedTarget:0}),Ai=Ue(V0),K0=te({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),J0=Ue(K0),$0=te({},Cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),W0=Ue($0),F0=te({},Cl,{data:0}),Ur=Ue(F0),I0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P0={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"},ey={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ty(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ey[e])?!!t[e]:!1}function xs(){return ty}var ly=te({},bn,{key:function(e){if(e.key){var t=I0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?P0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xs,charCode:function(e){return e.type==="keypress"?eu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ay=Ue(ly),ny=te({},Fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hr=Ue(ny),uy=te({},bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xs}),iy=Ue(uy),cy=te({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),sy=Ue(cy),ry=te({},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}),fy=Ue(ry),oy=te({},Cl,{newState:0,oldState:0}),dy=Ue(oy),my=[9,13,27,32],bs=Ct&&"CompositionEvent"in window,qa=null;Ct&&"documentMode"in document&&(qa=document.documentMode);var hy=Ct&&"TextEvent"in window&&!qa,Fo=Ct&&(!bs||qa&&8<qa&&11>=qa),Br=" ",Lr=!1;function Io(e,t){switch(e){case"keyup":return my.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Po(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kl=!1;function yy(e,t){switch(e){case"compositionend":return Po(t);case"keypress":return t.which!==32?null:(Lr=!0,Br);case"textInput":return e=t.data,e===Br&&Lr?null:e;default:return null}}function gy(e,t){if(kl)return e==="compositionend"||!bs&&Io(e,t)?(e=Wo(),Pn=ps=Vt=null,kl=!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 Fo&&t.locale!=="ko"?null:t.data;default:return null}}var vy={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 qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vy[e.type]:t==="textarea"}function ed(e,t,l,a){Gl?Il?Il.push(a):Il=[a]:Gl=a,t=Bu(t,"onChange"),0<t.length&&(l=new Wu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ya=null,tn=null;function py(e){$m(e,0)}function Iu(e){var t=Ua(e);if(Qo(t))return e}function Yr(e,t){if(e==="change")return t}var td=!1;if(Ct){var Ti;if(Ct){var Mi="oninput"in document;if(!Mi){var Gr=document.createElement("div");Gr.setAttribute("oninput","return;"),Mi=typeof Gr.oninput=="function"}Ti=Mi}else Ti=!1;td=Ti&&(!document.documentMode||9<document.documentMode)}function kr(){Ya&&(Ya.detachEvent("onpropertychange",ld),tn=Ya=null)}function ld(e){if(e.propertyName==="value"&&Iu(tn)){var t=[];ed(t,tn,e,vs(e)),$o(py,t)}}function xy(e,t,l){e==="focusin"?(kr(),Ya=t,tn=l,Ya.attachEvent("onpropertychange",ld)):e==="focusout"&&kr()}function by(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Iu(tn)}function Sy(e,t){if(e==="click")return Iu(t)}function Ny(e,t){if(e==="input"||e==="change")return Iu(t)}function jy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:jy;function ln(e,t){if(Qe(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(!oc.call(t,n)||!Qe(e[n],t[n]))return!1}return!0}function Xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qr(e,t){var l=Xr(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=Xr(l)}}function ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xu(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=xu(e.document)}return t}function Ss(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 Ey=Ct&&"documentMode"in document&&11>=document.documentMode,Xl=null,pc=null,Ga=null,xc=!1;function Zr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;xc||Xl==null||Xl!==xu(a)||(a=Xl,"selectionStart"in a&&Ss(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}),Ga&&ln(Ga,a)||(Ga=a,a=Bu(pc,"onSelect"),0<a.length&&(t=new Wu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Xl)))}function ml(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ql={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionrun:ml("Transition","TransitionRun"),transitionstart:ml("Transition","TransitionStart"),transitioncancel:ml("Transition","TransitionCancel"),transitionend:ml("Transition","TransitionEnd")},zi={},ud={};Ct&&(ud=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function Ol(e){if(zi[e])return zi[e];if(!Ql[e])return e;var t=Ql[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ud)return zi[e]=t[l];return e}var id=Ol("animationend"),cd=Ol("animationiteration"),sd=Ol("animationstart"),Ay=Ol("transitionrun"),Ty=Ol("transitionstart"),My=Ol("transitioncancel"),rd=Ol("transitionend"),fd=new Map,bc="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(" ");bc.push("scrollEnd");function it(e,t){fd.set(e,t),zl(t,[e])}var bu=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)},Ve=[],Zl=0,Ns=0;function Pu(){for(var e=Zl,t=Ns=Zl=0;t<e;){var l=Ve[t];Ve[t++]=null;var a=Ve[t];Ve[t++]=null;var n=Ve[t];Ve[t++]=null;var u=Ve[t];if(Ve[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&od(l,n,u)}}function ei(e,t,l,a){Ve[Zl++]=e,Ve[Zl++]=t,Ve[Zl++]=l,Ve[Zl++]=a,Ns|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function js(e,t,l,a){return ei(e,t,l,a),Su(e)}function _l(e,t){return ei(e,null,null,t),Su(e)}function od(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-ke(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Su(e){if(50<Wa)throw Wa=0,Gc=null,Error(N(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Vl={};function zy(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 Le(e,t,l,a){return new zy(e,t,l,a)}function Es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tt(e,t){var l=e.alternate;return l===null?(l=Le(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 dd(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 tu(e,t,l,a,n,u){var i=0;if(a=e,typeof e=="function")Es(e)&&(i=1);else if(typeof e=="string")i=R1(e,l,ft.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case cc:return e=Le(31,l,t,n),e.elementType=cc,e.lanes=u,e;case Ll:return xl(l.children,n,u,t);case _o:i=8,n|=24;break;case nc:return e=Le(12,l,t,n|2),e.elementType=nc,e.lanes=u,e;case uc:return e=Le(13,l,t,n),e.elementType=uc,e.lanes=u,e;case ic:return e=Le(19,l,t,n),e.elementType=ic,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jt:i=10;break e;case wo:i=9;break e;case fs:i=11;break e;case os:i=14;break e;case qt:i=16,a=null;break e}i=29,l=Error(N(130,e===null?"null":typeof e,"")),a=null}return t=Le(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function xl(e,t,l,a){return e=Le(7,e,a,t),e.lanes=l,e}function Ci(e,t,l){return e=Le(6,e,null,t),e.lanes=l,e}function md(e){var t=Le(18,null,null,0);return t.stateNode=e,t}function Oi(e,t,l){return t=Le(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vr=new WeakMap;function Fe(e,t){if(typeof e=="object"&&e!==null){var l=Vr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Tr(t)},Vr.set(e,t),t)}return{value:e,source:t,stack:Tr(t)}}var Kl=[],Jl=0,Nu=null,an=0,Je=[],$e=0,ul=null,ct=1,st="";function St(e,t){Kl[Jl++]=an,Kl[Jl++]=Nu,Nu=e,an=t}function hd(e,t,l){Je[$e++]=ct,Je[$e++]=st,Je[$e++]=ul,ul=e;var a=ct;e=st;var n=32-ke(a)-1;a&=~(1<<n),l+=1;var u=32-ke(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,ct=1<<32-ke(t)+n|l<<n|a,st=u+e}else ct=1<<u|l<<n|a,st=e}function As(e){e.return!==null&&(St(e,1),hd(e,1,0))}function Ts(e){for(;e===Nu;)Nu=Kl[--Jl],Kl[Jl]=null,an=Kl[--Jl],Kl[Jl]=null;for(;e===ul;)ul=Je[--$e],Je[$e]=null,st=Je[--$e],Je[$e]=null,ct=Je[--$e],Je[$e]=null}function yd(e,t){Je[$e++]=ct,Je[$e++]=st,Je[$e++]=ul,ct=t.id,st=t.overflow,ul=e}var Ne=null,P=null,k=!1,Ft=null,Ie=!1,Sc=Error(N(519));function il(e){var t=Error(N(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nn(Fe(t,e)),Sc}function Kr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Se]=e,t[De]=a,l){case"dialog":L("cancel",t),L("close",t);break;case"iframe":case"object":case"embed":L("load",t);break;case"video":case"audio":for(l=0;l<rn.length;l++)L(rn[l],t);break;case"source":L("error",t);break;case"img":case"image":case"link":L("error",t),L("load",t);break;case"details":L("toggle",t);break;case"input":L("invalid",t),Zo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":L("invalid",t);break;case"textarea":L("invalid",t),Ko(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||Fm(t.textContent,l)?(a.popover!=null&&(L("beforetoggle",t),L("toggle",t)),a.onScroll!=null&&L("scroll",t),a.onScrollEnd!=null&&L("scrollend",t),a.onClick!=null&&(t.onclick=Et),t=!0):t=!1,t||il(e,!0)}function Jr(e){for(Ne=e.return;Ne;)switch(Ne.tag){case 5:case 31:case 13:Ie=!1;return;case 27:case 3:Ie=!0;return;default:Ne=Ne.return}}function Rl(e){if(e!==Ne)return!1;if(!k)return Jr(e),k=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Vc(e.type,e.memoizedProps)),l=!l),l&&P&&il(e),Jr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));P=Uf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));P=Uf(e)}else t===27?(t=P,fl(e.type)?(e=Wc,Wc=null,P=e):P=t):P=Ne?et(e.stateNode.nextSibling):null;return!0}function jl(){P=Ne=null,k=!1}function _i(){var e=Ft;return e!==null&&(we===null?we=e:we.push.apply(we,e),Ft=null),e}function nn(e){Ft===null?Ft=[e]:Ft.push(e)}var Nc=mt(null),wl=null,At=null;function Gt(e,t,l){F(Nc,t._currentValue),t._currentValue=l}function Mt(e){e._currentValue=Nc.current,xe(Nc)}function jc(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 Ec(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var s=u;u=n;for(var r=0;r<t.length;r++)if(s.context===t[r]){u.lanes|=l,s=u.alternate,s!==null&&(s.lanes|=l),jc(u.return,l,e),a||(i=null);break e}u=s.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(N(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),jc(i,l,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function va(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if(n.flags&524288)u=!0;else if(n.flags&262144)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(N(387));if(i=i.memoizedProps,i!==null){var s=n.type;Qe(n.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(n===yu.current){if(i=n.alternate,i===null)throw Error(N(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(on):e=[on])}n=n.return}e!==null&&Ec(t,e,l,a),t.flags|=262144}function ju(e){for(e=e.firstContext;e!==null;){if(!Qe(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function El(e){wl=e,At=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function je(e){return gd(wl,e)}function Gn(e,t){return wl===null&&El(e),gd(e,t)}function gd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},At===null){if(e===null)throw Error(N(308));At=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else At=At.next=t;return l}var Cy=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()})}},Oy=ye.unstable_scheduleCallback,_y=ye.unstable_NormalPriority,de={$$typeof:jt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ms(){return{controller:new Cy,data:new Map,refCount:0}}function Sn(e){e.refCount--,e.refCount===0&&Oy(_y,function(){e.controller.abort()})}var ka=null,Ac=0,ia=0,Pl=null;function wy(e,t){if(ka===null){var l=ka=[];Ac=0,ia=Is(),Pl={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ac++,t.then($r,$r),t}function $r(){if(--Ac===0&&ka!==null){Pl!==null&&(Pl.status="fulfilled");var e=ka;ka=null,ia=0,Pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ry(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 Wr=w.S;w.S=function(e,t){Om=Ye(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&wy(e,t),Wr!==null&&Wr(e,t)};var bl=mt(null);function zs(){var e=bl.current;return e!==null?e:W.pooledCache}function lu(e,t){t===null?F(bl,bl.current):F(bl,t.pool)}function vd(){var e=zs();return e===null?null:{parent:de._currentValue,pool:e}}var pa=Error(N(460)),Cs=Error(N(474)),ti=Error(N(542)),Eu={then:function(){}};function Fr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function pd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Et,Et),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pr(e),e;default:if(typeof t.status=="string")t.then(Et,Et);else{if(e=W,e!==null&&100<e.shellSuspendCounter)throw Error(N(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,Pr(e),e}throw Sl=t,pa}}function gl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Sl=l,pa):l}}var Sl=null;function Ir(){if(Sl===null)throw Error(N(459));var e=Sl;return Sl=null,e}function Pr(e){if(e===pa||e===ti)throw Error(N(483))}var ea=null,un=0;function kn(e){var t=un;return un+=1,ea===null&&(ea=[]),pd(ea,e,t)}function Ma(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xn(e,t){throw t.$$typeof===x0?Error(N(525)):(e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xd(e){function t(y,f){if(e){var v=y.deletions;v===null?(y.deletions=[f],y.flags|=16):v.push(f)}}function l(y,f){if(!e)return null;for(;f!==null;)t(y,f),f=f.sibling;return null}function a(y){for(var f=new Map;y!==null;)y.key!==null?f.set(y.key,y):f.set(y.index,y),y=y.sibling;return f}function n(y,f){return y=Tt(y,f),y.index=0,y.sibling=null,y}function u(y,f,v){return y.index=v,e?(v=y.alternate,v!==null?(v=v.index,v<f?(y.flags|=67108866,f):v):(y.flags|=67108866,f)):(y.flags|=1048576,f)}function i(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function s(y,f,v,b){return f===null||f.tag!==6?(f=Ci(v,y.mode,b),f.return=y,f):(f=n(f,v),f.return=y,f)}function r(y,f,v,b){var A=v.type;return A===Ll?m(y,f,v.props.children,b,v.key):f!==null&&(f.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===qt&&gl(A)===f.type)?(f=n(f,v.props),Ma(f,v),f.return=y,f):(f=tu(v.type,v.key,v.props,null,y.mode,b),Ma(f,v),f.return=y,f)}function o(y,f,v,b){return f===null||f.tag!==4||f.stateNode.containerInfo!==v.containerInfo||f.stateNode.implementation!==v.implementation?(f=Oi(v,y.mode,b),f.return=y,f):(f=n(f,v.children||[]),f.return=y,f)}function m(y,f,v,b,A){return f===null||f.tag!==7?(f=xl(v,y.mode,b,A),f.return=y,f):(f=n(f,v),f.return=y,f)}function h(y,f,v){if(typeof f=="string"&&f!==""||typeof f=="number"||typeof f=="bigint")return f=Ci(""+f,y.mode,v),f.return=y,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Un:return v=tu(f.type,f.key,f.props,null,y.mode,v),Ma(v,f),v.return=y,v;case Ra:return f=Oi(f,y.mode,v),f.return=y,f;case qt:return f=gl(f),h(y,f,v)}if(Da(f)||Ea(f))return f=xl(f,y.mode,v,null),f.return=y,f;if(typeof f.then=="function")return h(y,kn(f),v);if(f.$$typeof===jt)return h(y,Gn(y,f),v);Xn(y,f)}return null}function d(y,f,v,b){var A=f!==null?f.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return A!==null?null:s(y,f,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Un:return v.key===A?r(y,f,v,b):null;case Ra:return v.key===A?o(y,f,v,b):null;case qt:return v=gl(v),d(y,f,v,b)}if(Da(v)||Ea(v))return A!==null?null:m(y,f,v,b,null);if(typeof v.then=="function")return d(y,f,kn(v),b);if(v.$$typeof===jt)return d(y,f,Gn(y,v),b);Xn(y,v)}return null}function g(y,f,v,b,A){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return y=y.get(v)||null,s(f,y,""+b,A);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Un:return y=y.get(b.key===null?v:b.key)||null,r(f,y,b,A);case Ra:return y=y.get(b.key===null?v:b.key)||null,o(f,y,b,A);case qt:return b=gl(b),g(y,f,v,b,A)}if(Da(b)||Ea(b))return y=y.get(v)||null,m(f,y,b,A,null);if(typeof b.then=="function")return g(y,f,v,kn(b),A);if(b.$$typeof===jt)return g(y,f,v,Gn(f,b),A);Xn(f,b)}return null}function x(y,f,v,b){for(var A=null,C=null,T=f,z=f=0,_=null;T!==null&&z<v.length;z++){T.index>z?(_=T,T=null):_=T.sibling;var U=d(y,T,v[z],b);if(U===null){T===null&&(T=_);break}e&&T&&U.alternate===null&&t(y,T),f=u(U,f,z),C===null?A=U:C.sibling=U,C=U,T=_}if(z===v.length)return l(y,T),k&&St(y,z),A;if(T===null){for(;z<v.length;z++)T=h(y,v[z],b),T!==null&&(f=u(T,f,z),C===null?A=T:C.sibling=T,C=T);return k&&St(y,z),A}for(T=a(T);z<v.length;z++)_=g(T,y,z,v[z],b),_!==null&&(e&&_.alternate!==null&&T.delete(_.key===null?z:_.key),f=u(_,f,z),C===null?A=_:C.sibling=_,C=_);return e&&T.forEach(function(E){return t(y,E)}),k&&St(y,z),A}function S(y,f,v,b){if(v==null)throw Error(N(151));for(var A=null,C=null,T=f,z=f=0,_=null,U=v.next();T!==null&&!U.done;z++,U=v.next()){T.index>z?(_=T,T=null):_=T.sibling;var E=d(y,T,U.value,b);if(E===null){T===null&&(T=_);break}e&&T&&E.alternate===null&&t(y,T),f=u(E,f,z),C===null?A=E:C.sibling=E,C=E,T=_}if(U.done)return l(y,T),k&&St(y,z),A;if(T===null){for(;!U.done;z++,U=v.next())U=h(y,U.value,b),U!==null&&(f=u(U,f,z),C===null?A=U:C.sibling=U,C=U);return k&&St(y,z),A}for(T=a(T);!U.done;z++,U=v.next())U=g(T,y,z,U.value,b),U!==null&&(e&&U.alternate!==null&&T.delete(U.key===null?z:U.key),f=u(U,f,z),C===null?A=U:C.sibling=U,C=U);return e&&T.forEach(function(re){return t(y,re)}),k&&St(y,z),A}function j(y,f,v,b){if(typeof v=="object"&&v!==null&&v.type===Ll&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Un:e:{for(var A=v.key;f!==null;){if(f.key===A){if(A=v.type,A===Ll){if(f.tag===7){l(y,f.sibling),b=n(f,v.props.children),b.return=y,y=b;break e}}else if(f.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===qt&&gl(A)===f.type){l(y,f.sibling),b=n(f,v.props),Ma(b,v),b.return=y,y=b;break e}l(y,f);break}else t(y,f);f=f.sibling}v.type===Ll?(b=xl(v.props.children,y.mode,b,v.key),b.return=y,y=b):(b=tu(v.type,v.key,v.props,null,y.mode,b),Ma(b,v),b.return=y,y=b)}return i(y);case Ra:e:{for(A=v.key;f!==null;){if(f.key===A)if(f.tag===4&&f.stateNode.containerInfo===v.containerInfo&&f.stateNode.implementation===v.implementation){l(y,f.sibling),b=n(f,v.children||[]),b.return=y,y=b;break e}else{l(y,f);break}else t(y,f);f=f.sibling}b=Oi(v,y.mode,b),b.return=y,y=b}return i(y);case qt:return v=gl(v),j(y,f,v,b)}if(Da(v))return x(y,f,v,b);if(Ea(v)){if(A=Ea(v),typeof A!="function")throw Error(N(150));return v=A.call(v),S(y,f,v,b)}if(typeof v.then=="function")return j(y,f,kn(v),b);if(v.$$typeof===jt)return j(y,f,Gn(y,v),b);Xn(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,f!==null&&f.tag===6?(l(y,f.sibling),b=n(f,v),b.return=y,y=b):(l(y,f),b=Ci(v,y.mode,b),b.return=y,y=b),i(y)):l(y,f)}return function(y,f,v,b){try{un=0;var A=j(y,f,v,b);return ea=null,A}catch(T){if(T===pa||T===ti)throw T;var C=Le(29,T,null,y.mode);return C.lanes=b,C.return=y,C}finally{}}}var Al=xd(!0),bd=xd(!1),Yt=!1;function Os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tc(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 It(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pt(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Q&2){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Su(e),od(e,null,l),t}return ei(e,a,t,l),Su(e)}function Xa(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,Lo(e,l)}}function wi(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 i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,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 Mc=!1;function Qa(){if(Mc){var e=Pl;if(e!==null)throw e}}function Za(e,t,l,a){Mc=!1;var n=e.updateQueue;Yt=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var r=s,o=r.next;r.next=null,i===null?u=o:i.next=o,i=r;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==i&&(s===null?m.firstBaseUpdate=o:s.next=o,m.lastBaseUpdate=r))}if(u!==null){var h=n.baseState;i=0,m=o=r=null,s=u;do{var d=s.lane&-536870913,g=d!==s.lane;if(g?(Y&d)===d:(a&d)===d){d!==0&&d===ia&&(Mc=!0),m!==null&&(m=m.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var x=e,S=s;d=t;var j=l;switch(S.tag){case 1:if(x=S.payload,typeof x=="function"){h=x.call(j,h,d);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=S.payload,d=typeof x=="function"?x.call(j,h,d):x,d==null)break e;h=te({},h,d);break e;case 2:Yt=!0}}d=s.callback,d!==null&&(e.flags|=64,g&&(e.flags|=8192),g=n.callbacks,g===null?n.callbacks=[d]:g.push(d))}else g={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(o=m=g,r=h):m=m.next=g,i|=d;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;g=s,s=g.next,g.next=null,n.lastBaseUpdate=g,n.shared.pending=null}}while(!0);m===null&&(r=h),n.baseState=r,n.firstBaseUpdate=o,n.lastBaseUpdate=m,u===null&&(n.shared.lanes=0),sl|=i,e.lanes=i,e.memoizedState=h}}function Sd(e,t){if(typeof e!="function")throw Error(N(191,e));e.call(t)}function Nd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Sd(l[e],t)}var ca=mt(null),Au=mt(0);function ef(e,t){e=Rt,F(Au,e),F(ca,t),Rt=e|t.baseLanes}function zc(){F(Au,Rt),F(ca,ca.current)}function _s(){Rt=Au.current,xe(ca),xe(Au)}var Ze=mt(null),Pe=null;function kt(e){var t=e.alternate;F(ce,ce.current&1),F(Ze,e),Pe===null&&(t===null||ca.current!==null||t.memoizedState!==null)&&(Pe=e)}function Cc(e){F(ce,ce.current),F(Ze,e),Pe===null&&(Pe=e)}function jd(e){e.tag===22?(F(ce,ce.current),F(Ze,e),Pe===null&&(Pe=e)):Xt()}function Xt(){F(ce,ce.current),F(Ze,Ze.current)}function Be(e){xe(Ze),Pe===e&&(Pe=null),xe(ce)}var ce=mt(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||Jc(l)||$c(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)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 Ot=0,D=null,$=null,fe=null,Mu=!1,ta=!1,Tl=!1,zu=0,cn=0,la=null,Dy=0;function ne(){throw Error(N(321))}function ws(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Qe(e[l],t[l]))return!1;return!0}function Rs(e,t,l,a,n,u){return Ot=u,D=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?em:Qs,Tl=!1,u=l(a,n),Tl=!1,ta&&(u=Ad(t,l,a,n)),Ed(e),u}function Ed(e){w.H=sn;var t=$!==null&&$.next!==null;if(Ot=0,fe=$=D=null,Mu=!1,cn=0,la=null,t)throw Error(N(300));e===null||me||(e=e.dependencies,e!==null&&ju(e)&&(me=!0))}function Ad(e,t,l,a){D=e;var n=0;do{if(ta&&(la=null),cn=0,ta=!1,25<=n)throw Error(N(301));if(n+=1,fe=$=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}w.H=tm,u=t(l,a)}while(ta);return u}function Uy(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?Nn(t):t,e=e.useState()[0],($!==null?$.memoizedState:null)!==e&&(D.flags|=1024),t}function Ds(){var e=zu!==0;return zu=0,e}function Us(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Hs(e){if(Mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mu=!1}Ot=0,fe=$=D=null,ta=!1,cn=zu=0,la=null}function Ae(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fe===null?D.memoizedState=fe=e:fe=fe.next=e,fe}function se(){if($===null){var e=D.alternate;e=e!==null?e.memoizedState:null}else e=$.next;var t=fe===null?D.memoizedState:fe.next;if(t!==null)fe=t,$=e;else{if(e===null)throw D.alternate===null?Error(N(467)):Error(N(310));$=e,e={memoizedState:$.memoizedState,baseState:$.baseState,baseQueue:$.baseQueue,queue:$.queue,next:null},fe===null?D.memoizedState=fe=e:fe=fe.next=e}return fe}function li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nn(e){var t=cn;return cn+=1,la===null&&(la=[]),e=pd(la,e,t),t=D,(fe===null?t.memoizedState:fe.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?em:Qs),e}function ai(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nn(e);if(e.$$typeof===jt)return je(e)}throw Error(N(438,String(e)))}function Bs(e){var t=null,l=D.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=D.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=li(),D.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]=b0;return t.index++,l}function _t(e,t){return typeof t=="function"?t(e):t}function au(e){var t=se();return Ls(t,$,e)}function Ls(e,t,l){var a=e.queue;if(a===null)throw Error(N(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var s=i=null,r=null,o=t,m=!1;do{var h=o.lane&-536870913;if(h!==o.lane?(Y&h)===h:(Ot&h)===h){var d=o.revertLane;if(d===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:o.action,hasEagerState:o.hasEagerState,eagerState:o.eagerState,next:null}),h===ia&&(m=!0);else if((Ot&d)===d){o=o.next,d===ia&&(m=!0);continue}else h={lane:0,revertLane:o.revertLane,gesture:null,action:o.action,hasEagerState:o.hasEagerState,eagerState:o.eagerState,next:null},r===null?(s=r=h,i=u):r=r.next=h,D.lanes|=d,sl|=d;h=o.action,Tl&&l(u,h),u=o.hasEagerState?o.eagerState:l(u,h)}else d={lane:h,revertLane:o.revertLane,gesture:o.gesture,action:o.action,hasEagerState:o.hasEagerState,eagerState:o.eagerState,next:null},r===null?(s=r=d,i=u):r=r.next=d,D.lanes|=h,sl|=h;o=o.next}while(o!==null&&o!==t);if(r===null?i=u:r.next=s,!Qe(u,e.memoizedState)&&(me=!0,m&&(l=Pl,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=r,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ri(e){var t=se(),l=t.queue;if(l===null)throw Error(N(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);Qe(u,t.memoizedState)||(me=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Td(e,t,l){var a=D,n=se(),u=k;if(u){if(l===void 0)throw Error(N(407));l=l()}else l=t();var i=!Qe(($||n).memoizedState,l);if(i&&(n.memoizedState=l,me=!0),n=n.queue,qs(Cd.bind(null,a,n,e),[e]),n.getSnapshot!==t||i||fe!==null&&fe.memoizedState.tag&1){if(a.flags|=2048,sa(9,{destroy:void 0},zd.bind(null,a,n,l,t),null),W===null)throw Error(N(349));u||Ot&127||Md(a,t,l)}return l}function Md(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=D.updateQueue,t===null?(t=li(),D.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function zd(e,t,l,a){t.value=l,t.getSnapshot=a,Od(t)&&_d(e)}function Cd(e,t,l){return l(function(){Od(t)&&_d(e)})}function Od(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Qe(e,l)}catch{return!0}}function _d(e){var t=_l(e,2);t!==null&&Re(t,e,2)}function Oc(e){var t=Ae();if(typeof e=="function"){var l=e;if(e=l(),Tl){Zt(!0);try{l()}finally{Zt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_t,lastRenderedState:e},t}function wd(e,t,l,a){return e.baseState=l,Ls(e,$,typeof a=="function"?a:_t)}function Hy(e,t,l,a,n){if(ui(e))throw Error(N(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(i){u.listeners.push(i)}};w.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Rd(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Rd(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=w.T,i={};w.T=i;try{var s=l(n,a),r=w.S;r!==null&&r(i,s),tf(e,t,s)}catch(o){_c(e,t,o)}finally{u!==null&&i.types!==null&&(u.types=i.types),w.T=u}}else try{u=l(n,a),tf(e,t,u)}catch(o){_c(e,t,o)}}function tf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){lf(e,t,a)},function(a){return _c(e,t,a)}):lf(e,t,l)}function lf(e,t,l){t.status="fulfilled",t.value=l,Dd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Rd(e,l)))}function _c(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Dd(t),t=t.next;while(t!==a)}e.action=null}function Dd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ud(e,t){return t}function af(e,t){if(k){var l=W.formState;if(l!==null){e:{var a=D;if(k){if(P){t:{for(var n=P,u=Ie;n.nodeType!==8;){if(!u){n=null;break t}if(n=et(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){P=et(n.nextSibling),a=n.data==="F!";break e}}il(a)}a=!1}a&&(t=l[0])}}return l=Ae(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ud,lastRenderedState:t},l.queue=a,l=Fd.bind(null,D,a),a.dispatch=l,a=Oc(!1),u=Xs.bind(null,D,!1,a.queue),a=Ae(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Hy.bind(null,D,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function nf(e){var t=se();return Hd(t,$,e)}function Hd(e,t,l){if(t=Ls(e,t,Ud)[0],e=au(_t)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Nn(t)}catch(i){throw i===pa?ti:i}else a=t;t=se();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(D.flags|=2048,sa(9,{destroy:void 0},By.bind(null,n,l),null)),[a,u,e]}function By(e,t){e.action=t}function uf(e){var t=se(),l=$;if(l!==null)return Hd(t,l,e);se(),t=t.memoizedState,l=se();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function sa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=D.updateQueue,t===null&&(t=li(),D.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 Bd(){return se().memoizedState}function nu(e,t,l,a){var n=Ae();D.flags|=e,n.memoizedState=sa(1|t,{destroy:void 0},l,a===void 0?null:a)}function ni(e,t,l,a){var n=se();a=a===void 0?null:a;var u=n.memoizedState.inst;$!==null&&a!==null&&ws(a,$.memoizedState.deps)?n.memoizedState=sa(t,u,l,a):(D.flags|=e,n.memoizedState=sa(1|t,u,l,a))}function cf(e,t){nu(8390656,8,e,t)}function qs(e,t){ni(2048,8,e,t)}function Ly(e){D.flags|=4;var t=D.updateQueue;if(t===null)t=li(),D.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Ld(e){var t=se().memoizedState;return Ly({ref:t,nextImpl:e}),function(){if(Q&2)throw Error(N(440));return t.impl.apply(void 0,arguments)}}function qd(e,t){return ni(4,2,e,t)}function Yd(e,t){return ni(4,4,e,t)}function Gd(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 kd(e,t,l){l=l!=null?l.concat([e]):null,ni(4,4,Gd.bind(null,t,e),l)}function Ys(){}function Xd(e,t){var l=se();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ws(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Qd(e,t){var l=se();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ws(t,a[1]))return a[0];if(a=e(),Tl){Zt(!0);try{e()}finally{Zt(!1)}}return l.memoizedState=[a,t],a}function Gs(e,t,l){return l===void 0||Ot&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=l,e=wm(),D.lanes|=e,sl|=e,l)}function Zd(e,t,l,a){return Qe(l,t)?l:ca.current!==null?(e=Gs(e,l,a),Qe(e,t)||(me=!0),e):!(Ot&42)||Ot&1073741824&&!(Y&261930)?(me=!0,e.memoizedState=l):(e=wm(),D.lanes|=e,sl|=e,t)}function Vd(e,t,l,a,n){var u=Z.p;Z.p=u!==0&&8>u?u:8;var i=w.T,s={};w.T=s,Xs(e,!1,t,l);try{var r=n(),o=w.S;if(o!==null&&o(s,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var m=Ry(r,a);Va(e,t,m,Xe(e))}else Va(e,t,a,Xe(e))}catch(h){Va(e,t,{then:function(){},status:"rejected",reason:h},Xe())}finally{Z.p=u,i!==null&&s.types!==null&&(i.types=s.types),w.T=i}}function qy(){}function wc(e,t,l,a){if(e.tag!==5)throw Error(N(476));var n=Kd(e).queue;Vd(e,n,t,pl,l===null?qy:function(){return Jd(e),l(a)})}function Kd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pl,baseState:pl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_t,lastRenderedState:pl},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_t,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jd(e){var t=Kd(e);t.next===null&&(t=e.alternate.memoizedState),Va(e,t.next.queue,{},Xe())}function ks(){return je(on)}function $d(){return se().memoizedState}function Wd(){return se().memoizedState}function Yy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Xe();e=It(l);var a=Pt(t,e,l);a!==null&&(Re(a,t,l),Xa(a,t,l)),t={cache:Ms()},e.payload=t;return}t=t.return}}function Gy(e,t,l){var a=Xe();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ui(e)?Id(t,l):(l=js(e,t,l,a),l!==null&&(Re(l,e,a),Pd(l,t,a)))}function Fd(e,t,l){var a=Xe();Va(e,t,l,a)}function Va(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ui(e))Id(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,s=u(i,l);if(n.hasEagerState=!0,n.eagerState=s,Qe(s,i))return ei(e,t,n,0),W===null&&Pu(),!1}catch{}finally{}if(l=js(e,t,n,a),l!==null)return Re(l,e,a),Pd(l,t,a),!0}return!1}function Xs(e,t,l,a){if(a={lane:2,revertLane:Is(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ui(e)){if(t)throw Error(N(479))}else t=js(e,l,a,2),t!==null&&Re(t,e,2)}function ui(e){var t=e.alternate;return e===D||t!==null&&t===D}function Id(e,t){ta=Mu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Pd(e,t,l){if(l&4194048){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Lo(e,l)}}var sn={readContext:je,use:ai,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useLayoutEffect:ne,useInsertionEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useSyncExternalStore:ne,useId:ne,useHostTransitionStatus:ne,useFormState:ne,useActionState:ne,useOptimistic:ne,useMemoCache:ne,useCacheRefresh:ne};sn.useEffectEvent=ne;var em={readContext:je,use:ai,useCallback:function(e,t){return Ae().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:cf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,nu(4194308,4,Gd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return nu(4194308,4,e,t)},useInsertionEffect:function(e,t){nu(4,2,e,t)},useMemo:function(e,t){var l=Ae();t=t===void 0?null:t;var a=e();if(Tl){Zt(!0);try{e()}finally{Zt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Ae();if(l!==void 0){var n=l(t);if(Tl){Zt(!0);try{l(t)}finally{Zt(!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=Gy.bind(null,D,e),[a.memoizedState,e]},useRef:function(e){var t=Ae();return e={current:e},t.memoizedState=e},useState:function(e){e=Oc(e);var t=e.queue,l=Fd.bind(null,D,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ys,useDeferredValue:function(e,t){var l=Ae();return Gs(l,e,t)},useTransition:function(){var e=Oc(!1);return e=Vd.bind(null,D,e.queue,!0,!1),Ae().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=D,n=Ae();if(k){if(l===void 0)throw Error(N(407));l=l()}else{if(l=t(),W===null)throw Error(N(349));Y&127||Md(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,cf(Cd.bind(null,a,u,e),[e]),a.flags|=2048,sa(9,{destroy:void 0},zd.bind(null,a,u,l,t),null),l},useId:function(){var e=Ae(),t=W.identifierPrefix;if(k){var l=st,a=ct;l=(a&~(1<<32-ke(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Dy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ks,useFormState:af,useActionState:af,useOptimistic:function(e){var t=Ae();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Xs.bind(null,D,!0,l),l.dispatch=t,[e,t]},useMemoCache:Bs,useCacheRefresh:function(){return Ae().memoizedState=Yy.bind(null,D)},useEffectEvent:function(e){var t=Ae(),l={impl:e};return t.memoizedState=l,function(){if(Q&2)throw Error(N(440));return l.impl.apply(void 0,arguments)}}},Qs={readContext:je,use:ai,useCallback:Xd,useContext:je,useEffect:qs,useImperativeHandle:kd,useInsertionEffect:qd,useLayoutEffect:Yd,useMemo:Qd,useReducer:au,useRef:Bd,useState:function(){return au(_t)},useDebugValue:Ys,useDeferredValue:function(e,t){var l=se();return Zd(l,$.memoizedState,e,t)},useTransition:function(){var e=au(_t)[0],t=se().memoizedState;return[typeof e=="boolean"?e:Nn(e),t]},useSyncExternalStore:Td,useId:$d,useHostTransitionStatus:ks,useFormState:nf,useActionState:nf,useOptimistic:function(e,t){var l=se();return wd(l,$,e,t)},useMemoCache:Bs,useCacheRefresh:Wd};Qs.useEffectEvent=Ld;var tm={readContext:je,use:ai,useCallback:Xd,useContext:je,useEffect:qs,useImperativeHandle:kd,useInsertionEffect:qd,useLayoutEffect:Yd,useMemo:Qd,useReducer:Ri,useRef:Bd,useState:function(){return Ri(_t)},useDebugValue:Ys,useDeferredValue:function(e,t){var l=se();return $===null?Gs(l,e,t):Zd(l,$.memoizedState,e,t)},useTransition:function(){var e=Ri(_t)[0],t=se().memoizedState;return[typeof e=="boolean"?e:Nn(e),t]},useSyncExternalStore:Td,useId:$d,useHostTransitionStatus:ks,useFormState:uf,useActionState:uf,useOptimistic:function(e,t){var l=se();return $!==null?wd(l,$,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Bs,useCacheRefresh:Wd};tm.useEffectEvent=Ld;function Di(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:te({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Rc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Xe(),n=It(a);n.payload=t,l!=null&&(n.callback=l),t=Pt(e,n,a),t!==null&&(Re(t,e,a),Xa(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Xe(),n=It(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Pt(e,n,a),t!==null&&(Re(t,e,a),Xa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Xe(),a=It(l);a.tag=2,t!=null&&(a.callback=t),t=Pt(e,a,l),t!==null&&(Re(t,e,l),Xa(t,e,l))}};function sf(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!ln(l,a)||!ln(n,u):!0}function rf(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&&Rc.enqueueReplaceState(t,t.state,null)}function Ml(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=te({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function lm(e){bu(e)}function am(e){console.error(e)}function nm(e){bu(e)}function Cu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ff(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 Dc(e,t,l){return l=It(l),l.tag=3,l.payload={element:null},l.callback=function(){Cu(e,t)},l}function um(e){return e=It(e),e.tag=3,e}function im(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(){ff(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){ff(t,l,a),typeof n!="function"&&(el===null?el=new Set([this]):el.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function ky(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&va(t,l,n,!0),l=Ze.current,l!==null){switch(l.tag){case 31:case 13:return Pe===null?Du():l.alternate===null&&ue===0&&(ue=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Eu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Zi(e,a,n)),!1;case 22:return l.flags|=65536,a===Eu?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)),Zi(e,a,n)),!1}throw Error(N(435,l.tag))}return Zi(e,a,n),Du(),!1}if(k)return t=Ze.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Sc&&(e=Error(N(422),{cause:a}),nn(Fe(e,l)))):(a!==Sc&&(t=Error(N(423),{cause:a}),nn(Fe(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Fe(a,l),n=Dc(e.stateNode,a,n),wi(e,n),ue!==4&&(ue=2)),!1;var u=Error(N(520),{cause:a});if(u=Fe(u,l),$a===null?$a=[u]:$a.push(u),ue!==4&&(ue=2),t===null)return!0;a=Fe(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Dc(l.stateNode,a,e),wi(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"&&(el===null||!el.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=um(n),im(n,e,l,a),wi(l,n),!1}l=l.return}while(l!==null);return!1}var Zs=Error(N(461)),me=!1;function be(e,t,l,a){t.child=e===null?bd(t,null,l,a):Al(t,e.child,l,a)}function of(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}else i=a;return El(t),a=Rs(e,t,l,i,u,n),s=Ds(),e!==null&&!me?(Us(e,t,n),wt(e,t,n)):(k&&s&&As(t),t.flags|=1,be(e,t,a,n),t.child)}function df(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Es(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,cm(e,t,u,a,n)):(e=tu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Vs(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:ln,l(i,a)&&e.ref===t.ref)return wt(e,t,n)}return t.flags|=1,e=Tt(u,a),e.ref=t.ref,e.return=t,t.child=e}function cm(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(ln(u,a)&&e.ref===t.ref)if(me=!1,t.pendingProps=a=u,Vs(e,n))e.flags&131072&&(me=!0);else return t.lanes=e.lanes,wt(e,t,n)}return Uc(e,t,l,a,n)}function sm(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){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 mf(e,t,u,l,a)}if(l&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&lu(t,u!==null?u.cachePool:null),u!==null?ef(t,u):zc(),jd(t);else return a=t.lanes=536870912,mf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(lu(t,u.cachePool),ef(t,u),Xt(),t.memoizedState=null):(e!==null&&lu(t,null),zc(),Xt());return be(e,t,n,l),t.child}function Ha(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function mf(e,t,l,a,n){var u=zs();return u=u===null?null:{parent:de._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&lu(t,null),zc(),jd(t),e!==null&&va(e,t,a,!0),t.childLanes=n,null}function uu(e,t){return t=Ou({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hf(e,t,l){return Al(t,e.child,null,l),e=uu(t,t.pendingProps),e.flags|=2,Be(t),t.memoizedState=null,e}function Xy(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(k){if(a.mode==="hidden")return e=uu(t,a),t.lanes=536870912,Ha(null,e);if(Cc(t),(e=P)?(e=eh(e,Ie),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:ct,overflow:st}:null,retryLane:536870912,hydrationErrors:null},l=md(e),l.return=t,t.child=l,Ne=t,P=null)):e=null,e===null)throw il(t);return t.lanes=536870912,null}return uu(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(Cc(t),n)if(t.flags&256)t.flags&=-257,t=hf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(N(558));else if(me||va(e,t,l,!1),n=(l&e.childLanes)!==0,me||n){if(a=W,a!==null&&(i=qo(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,_l(e,i),Re(a,e,i),Zs;Du(),t=hf(e,t,l)}else e=u.treeContext,P=et(i.nextSibling),Ne=t,k=!0,Ft=null,Ie=!1,e!==null&&yd(t,e),t=uu(t,a),t.flags|=4096;return t}return e=Tt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function iu(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(N(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Uc(e,t,l,a,n){return El(t),l=Rs(e,t,l,a,void 0,n),a=Ds(),e!==null&&!me?(Us(e,t,n),wt(e,t,n)):(k&&a&&As(t),t.flags|=1,be(e,t,l,n),t.child)}function yf(e,t,l,a,n,u){return El(t),t.updateQueue=null,l=Ad(t,a,l,n),Ed(e),a=Ds(),e!==null&&!me?(Us(e,t,u),wt(e,t,u)):(k&&a&&As(t),t.flags|=1,be(e,t,l,u),t.child)}function gf(e,t,l,a,n){if(El(t),t.stateNode===null){var u=Vl,i=l.contextType;typeof i=="object"&&i!==null&&(u=je(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Rc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Os(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?je(i):Vl,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Di(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&Rc.enqueueReplaceState(u,u.state,null),Za(t,a,u,n),Qa(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var s=t.memoizedProps,r=Ml(l,s);u.props=r;var o=u.context,m=l.contextType;i=Vl,typeof m=="object"&&m!==null&&(i=je(m));var h=l.getDerivedStateFromProps;m=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,m||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s||o!==i)&&rf(t,u,a,i),Yt=!1;var d=t.memoizedState;u.state=d,Za(t,a,u,n),Qa(),o=t.memoizedState,s||d!==o||Yt?(typeof h=="function"&&(Di(t,l,h,a),o=t.memoizedState),(r=Yt||sf(t,l,r,a,d,o,i))?(m||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=o),u.props=a,u.state=o,u.context=i,a=r):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Tc(e,t),i=t.memoizedProps,m=Ml(l,i),u.props=m,h=t.pendingProps,d=u.context,o=l.contextType,r=Vl,typeof o=="object"&&o!==null&&(r=je(o)),s=l.getDerivedStateFromProps,(o=typeof s=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==h||d!==r)&&rf(t,u,a,r),Yt=!1,d=t.memoizedState,u.state=d,Za(t,a,u,n),Qa();var g=t.memoizedState;i!==h||d!==g||Yt||e!==null&&e.dependencies!==null&&ju(e.dependencies)?(typeof s=="function"&&(Di(t,l,s,a),g=t.memoizedState),(m=Yt||sf(t,l,m,a,d,g,r)||e!==null&&e.dependencies!==null&&ju(e.dependencies))?(o||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,g,r),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,g,r)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=g),u.props=a,u.state=g,u.context=r,a=m):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,iu(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=Al(t,e.child,null,n),t.child=Al(t,null,l,n)):be(e,t,l,n),t.memoizedState=u.state,e=t.child):e=wt(e,t,n),e}function vf(e,t,l,a){return jl(),t.flags|=256,be(e,t,l,a),t.child}var Ui={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hi(e){return{baseLanes:e,cachePool:vd()}}function Bi(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=qe),e}function rm(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(ce.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(k){if(n?kt(t):Xt(),(e=P)?(e=eh(e,Ie),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:ct,overflow:st}:null,retryLane:536870912,hydrationErrors:null},l=md(e),l.return=t,t.child=l,Ne=t,P=null)):e=null,e===null)throw il(t);return $c(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(Xt(),n=t.mode,s=Ou({mode:"hidden",children:s},n),a=xl(a,n,l,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=Hi(l),a.childLanes=Bi(e,i,l),t.memoizedState=Ui,Ha(null,a)):(kt(t),Hc(t,s))}var r=e.memoizedState;if(r!==null&&(s=r.dehydrated,s!==null)){if(u)t.flags&256?(kt(t),t.flags&=-257,t=Li(e,t,l)):t.memoizedState!==null?(Xt(),t.child=e.child,t.flags|=128,t=null):(Xt(),s=a.fallback,n=t.mode,a=Ou({mode:"visible",children:a.children},n),s=xl(s,n,l,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,Al(t,e.child,null,l),a=t.child,a.memoizedState=Hi(l),a.childLanes=Bi(e,i,l),t.memoizedState=Ui,t=Ha(null,a));else if(kt(t),$c(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var o=i.dgst;i=o,a=Error(N(419)),a.stack="",a.digest=i,nn({value:a,source:null,stack:null}),t=Li(e,t,l)}else if(me||va(e,t,l,!1),i=(l&e.childLanes)!==0,me||i){if(i=W,i!==null&&(a=qo(i,l),a!==0&&a!==r.retryLane))throw r.retryLane=a,_l(e,a),Re(i,e,a),Zs;Jc(s)||Du(),t=Li(e,t,l)}else Jc(s)?(t.flags|=192,t.child=e.child,t=null):(e=r.treeContext,P=et(s.nextSibling),Ne=t,k=!0,Ft=null,Ie=!1,e!==null&&yd(t,e),t=Hc(t,a.children),t.flags|=4096);return t}return n?(Xt(),s=a.fallback,n=t.mode,r=e.child,o=r.sibling,a=Tt(r,{mode:"hidden",children:a.children}),a.subtreeFlags=r.subtreeFlags&65011712,o!==null?s=Tt(o,s):(s=xl(s,n,l,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,Ha(null,a),a=t.child,s=e.child.memoizedState,s===null?s=Hi(l):(n=s.cachePool,n!==null?(r=de._currentValue,n=n.parent!==r?{parent:r,pool:r}:n):n=vd(),s={baseLanes:s.baseLanes|l,cachePool:n}),a.memoizedState=s,a.childLanes=Bi(e,i,l),t.memoizedState=Ui,Ha(e.child,a)):(kt(t),l=e.child,e=l.sibling,l=Tt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function Hc(e,t){return t=Ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ou(e,t){return e=Le(22,e,null,t),e.lanes=0,e}function Li(e,t,l){return Al(t,e.child,null,l),e=Hc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),jc(e.return,t,l)}function qi(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function fm(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=ce.current,s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,F(ce,i),be(e,t,a,l),a=k?an:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pf(e,l,t);else if(e.tag===19)pf(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),qi(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}qi(t,!0,l,null,u,a);break;case"together":qi(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),sl|=t.lanes,!(l&t.childLanes))if(e!==null){if(va(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,l=Tt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Tt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Vs(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&ju(e)))}function Qy(e,t,l){switch(t.tag){case 3:gu(t,t.stateNode.containerInfo),Gt(t,de,e.memoizedState.cache),jl();break;case 27:case 5:fc(t);break;case 4:gu(t,t.stateNode.containerInfo);break;case 10:Gt(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Cc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(kt(t),t.flags|=128,null):l&t.child.childLanes?rm(e,t,l):(kt(t),e=wt(e,t,l),e!==null?e.sibling:null);kt(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(va(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return fm(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),F(ce,ce.current),a)break;return null;case 22:return t.lanes=0,sm(e,t,l,t.pendingProps);case 24:Gt(t,de,e.memoizedState.cache)}return wt(e,t,l)}function om(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)me=!0;else{if(!Vs(e,l)&&!(t.flags&128))return me=!1,Qy(e,t,l);me=!!(e.flags&131072)}else me=!1,k&&t.flags&1048576&&hd(t,an,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=gl(t.elementType),t.type=e,typeof e=="function")Es(e)?(a=Ml(e,a),t.tag=1,t=gf(null,t,e,a,l)):(t.tag=0,t=Uc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===fs){t.tag=11,t=of(null,t,e,a,l);break e}else if(n===os){t.tag=14,t=df(null,t,e,a,l);break e}}throw t=sc(e)||e,Error(N(306,t,""))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ml(a,t.pendingProps),gf(e,t,a,n,l);case 3:e:{if(gu(t,t.stateNode.containerInfo),e===null)throw Error(N(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Tc(e,t),Za(t,a,null,l);var i=t.memoizedState;if(a=i.cache,Gt(t,de,a),a!==u.cache&&Ec(t,[de],l,!0),Qa(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=vf(e,t,a,l);break e}else if(a!==n){n=Fe(Error(N(424)),t),nn(n),t=vf(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(P=et(e.firstChild),Ne=t,k=!0,Ft=null,Ie=!0,l=bd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(jl(),a===n){t=wt(e,t,l);break e}be(e,t,a,l)}t=t.child}return t;case 26:return iu(e,t),e===null?(l=Lf(t.type,null,t.pendingProps,null))?t.memoizedState=l:k||(l=t.type,e=t.pendingProps,a=Lu(Wt.current).createElement(l),a[Se]=t,a[De]=e,Ee(a,l,e),pe(a),t.stateNode=a):t.memoizedState=Lf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fc(t),e===null&&k&&(a=t.stateNode=th(t.type,t.pendingProps,Wt.current),Ne=t,Ie=!0,n=P,fl(t.type)?(Wc=n,P=et(a.firstChild)):P=n),be(e,t,t.pendingProps.children,l),iu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&k&&((n=a=P)&&(a=b1(a,t.type,t.pendingProps,Ie),a!==null?(t.stateNode=a,Ne=t,P=et(a.firstChild),Ie=!1,n=!0):n=!1),n||il(t)),fc(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,Vc(n,u)?a=null:i!==null&&Vc(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=Rs(e,t,Uy,null,null,l),on._currentValue=n),iu(e,t),be(e,t,a,l),t.child;case 6:return e===null&&k&&((e=l=P)&&(l=S1(l,t.pendingProps,Ie),l!==null?(t.stateNode=l,Ne=t,P=null,e=!0):e=!1),e||il(t)),null;case 13:return rm(e,t,l);case 4:return gu(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Al(t,null,a,l):be(e,t,a,l),t.child;case 11:return of(e,t,t.type,t.pendingProps,l);case 7:return be(e,t,t.pendingProps,l),t.child;case 8:return be(e,t,t.pendingProps.children,l),t.child;case 12:return be(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Gt(t,t.type,a.value),be(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,El(t),n=je(n),a=a(n),t.flags|=1,be(e,t,a,l),t.child;case 14:return df(e,t,t.type,t.pendingProps,l);case 15:return cm(e,t,t.type,t.pendingProps,l);case 19:return fm(e,t,l);case 31:return Xy(e,t,l);case 22:return sm(e,t,l,t.pendingProps);case 24:return El(t),a=je(de),e===null?(n=zs(),n===null&&(n=W,u=Ms(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Os(t),Gt(t,de,n)):(e.lanes&l&&(Tc(e,t),Za(t,null,null,l),Qa()),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),Gt(t,de,a)):(a=u.cache,Gt(t,de,a),a!==n.cache&&Ec(t,[de],l,!0))),be(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(N(156,t.tag))}function vt(e){e.flags|=4}function Yi(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(Um())e.flags|=8192;else throw Sl=Eu,Cs}else e.flags&=-16777217}function xf(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!nh(t))if(Um())e.flags|=8192;else throw Sl=Eu,Cs}function Qn(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ho():536870912,e.lanes|=t,ra|=t)}function za(e,t){if(!k)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 I(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 Zy(e,t,l){var a=t.pendingProps;switch(Ts(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return I(t),null;case 1:return I(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Mt(de),aa(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?vt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_i())),I(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(vt(t),u!==null?(I(t),xf(t,u)):(I(t),Yi(t,n,null,a,l))):u?u!==e.memoizedState?(vt(t),I(t),xf(t,u)):(I(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&vt(t),I(t),Yi(t,n,e,a,l)),null;case 27:if(vu(t),l=Wt.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vt(t);else{if(!a){if(t.stateNode===null)throw Error(N(166));return I(t),null}e=ft.current,Rl(t)?Kr(t):(e=th(n,a,l),t.stateNode=e,vt(t))}return I(t),null;case 5:if(vu(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vt(t);else{if(!a){if(t.stateNode===null)throw Error(N(166));return I(t),null}if(u=ft.current,Rl(t))Kr(t);else{var i=Lu(Wt.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Se]=t,u[De]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(Ee(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&&vt(t)}}return I(t),Yi(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&vt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(N(166));if(e=Wt.current,Rl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ne,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Se]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Fm(e.nodeValue,l)),e||il(t,!0)}else e=Lu(e).createTextNode(a),e[Se]=t,t.stateNode=e}return I(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Rl(t),l!==null){if(e===null){if(!a)throw Error(N(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(557));e[Se]=t}else jl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;I(t),e=!1}else l=_i(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Be(t),t):(Be(t),null);if(t.flags&128)throw Error(N(558))}return I(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Rl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(N(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(N(317));n[Se]=t}else jl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;I(t),n=!1}else n=_i(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Be(t),t):(Be(t),null)}return Be(t),t.flags&128?(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),Qn(t,t.updateQueue),I(t),null);case 4:return aa(),e===null&&Ps(t.stateNode.containerInfo),I(t),null;case 10:return Mt(t.type),I(t),null;case 19:if(xe(ce),a=t.memoizedState,a===null)return I(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)za(a,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Tu(e),u!==null){for(t.flags|=128,za(a,!1),e=u.updateQueue,t.updateQueue=e,Qn(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)dd(l,e),l=l.sibling;return F(ce,ce.current&1|2),k&&St(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ye()>wu&&(t.flags|=128,n=!0,za(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,Qn(t,e),za(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!k)return I(t),null}else 2*Ye()-a.renderingStartTime>wu&&l!==536870912&&(t.flags|=128,n=!0,za(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=Ye(),e.sibling=null,l=ce.current,F(ce,n?l&1|2:l&1),k&&St(t,a.treeForkCount),e):(I(t),null);case 22:case 23:return Be(t),_s(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?l&536870912&&!(t.flags&128)&&(I(t),t.subtreeFlags&6&&(t.flags|=8192)):I(t),l=t.updateQueue,l!==null&&Qn(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&&xe(bl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Mt(de),I(t),null;case 25:return null;case 30:return null}throw Error(N(156,t.tag))}function Vy(e,t){switch(Ts(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mt(de),aa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vu(t),null;case 31:if(t.memoizedState!==null){if(Be(t),t.alternate===null)throw Error(N(340));jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Be(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(ce),null;case 4:return aa(),null;case 10:return Mt(t.type),null;case 22:case 23:return Be(t),_s(),e!==null&&xe(bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mt(de),null;case 25:return null;default:return null}}function dm(e,t){switch(Ts(t),t.tag){case 3:Mt(de),aa();break;case 26:case 27:case 5:vu(t);break;case 4:aa();break;case 31:t.memoizedState!==null&&Be(t);break;case 13:Be(t);break;case 19:xe(ce);break;case 10:Mt(t.type);break;case 22:case 23:Be(t),_s(),e!==null&&xe(bl);break;case 24:Mt(de)}}function jn(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,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(s){K(t,t.return,s)}}function cl(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 i=a.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,n=t;var r=l,o=s;try{o()}catch(m){K(n,r,m)}}}a=a.next}while(a!==u)}}catch(m){K(t,t.return,m)}}function mm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Nd(t,l)}catch(a){K(e,e.return,a)}}}function hm(e,t,l){l.props=Ml(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){K(e,t,a)}}function Ka(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){K(e,t,n)}}function rt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){K(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){K(e,t,n)}else l.current=null}function ym(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){K(e,e.return,n)}}function Gi(e,t,l){try{var a=e.stateNode;h1(a,e.type,l,t),a[De]=t}catch(n){K(e,e.return,n)}}function gm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fl(e.type)||e.tag===4}function ki(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gm(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&&fl(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 Bc(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=Et));else if(a!==4&&(a===27&&fl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Bc(e,t,l),e=e.sibling;e!==null;)Bc(e,t,l),e=e.sibling}function _u(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&&fl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(_u(e,t,l),e=e.sibling;e!==null;)_u(e,t,l),e=e.sibling}function vm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ee(t,a,l),t[Se]=e,t[De]=l}catch(u){K(e,e.return,u)}}var Nt=!1,oe=!1,Xi=!1,bf=typeof WeakSet=="function"?WeakSet:Set,ve=null;function Ky(e,t){if(e=e.containerInfo,Qc=ku,e=nd(e),Ss(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 i=0,s=-1,r=-1,o=0,m=0,h=e,d=null;t:for(;;){for(var g;h!==l||n!==0&&h.nodeType!==3||(s=i+n),h!==u||a!==0&&h.nodeType!==3||(r=i+a),h.nodeType===3&&(i+=h.nodeValue.length),(g=h.firstChild)!==null;)d=h,h=g;for(;;){if(h===e)break t;if(d===l&&++o===n&&(s=i),d===u&&++m===a&&(r=i),(g=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=g}l=s===-1||r===-1?null:{start:s,end:r}}else l=null}l=l||{start:0,end:0}}else l=null;for(Zc={focusedElem:e,selectionRange:l},ku=!1,ve=t;ve!==null;)if(t=ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ve=e;else for(;ve!==null;){switch(t=ve,u=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(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&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var x=Ml(l.type,n);e=a.getSnapshotBeforeUpdate(x,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(S){K(l,l.return,S)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Kc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(N(163))}if(e=t.sibling,e!==null){e.return=t.return,ve=e;break}ve=t.return}}function pm(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:xt(e,l),a&4&&jn(5,l);break;case 1:if(xt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){K(l,l.return,i)}else{var n=Ml(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){K(l,l.return,i)}}a&64&&mm(l),a&512&&Ka(l,l.return);break;case 3:if(xt(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{Nd(e,t)}catch(i){K(l,l.return,i)}}break;case 27:t===null&&a&4&&vm(l);case 26:case 5:xt(e,l),t===null&&a&4&&ym(l),a&512&&Ka(l,l.return);break;case 12:xt(e,l);break;case 31:xt(e,l),a&4&&Sm(e,l);break;case 13:xt(e,l),a&4&&Nm(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=l1.bind(null,l),N1(e,l))));break;case 22:if(a=l.memoizedState!==null||Nt,!a){t=t!==null&&t.memoizedState!==null||oe,n=Nt;var u=oe;Nt=a,(oe=t)&&!u?bt(e,l,(l.subtreeFlags&8772)!==0):xt(e,l),Nt=n,oe=u}break;case 30:break;default:xt(e,l)}}function xm(e){var t=e.alternate;t!==null&&(e.alternate=null,xm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ys(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 le=null,_e=!1;function pt(e,t,l){for(l=l.child;l!==null;)bm(e,t,l),l=l.sibling}function bm(e,t,l){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(gn,l)}catch{}switch(l.tag){case 26:oe||rt(l,t),pt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:oe||rt(l,t);var a=le,n=_e;fl(l.type)&&(le=l.stateNode,_e=!1),pt(e,t,l),Fa(l.stateNode),le=a,_e=n;break;case 5:oe||rt(l,t);case 6:if(a=le,n=_e,le=null,pt(e,t,l),le=a,_e=n,le!==null)if(_e)try{(le.nodeType===9?le.body:le.nodeName==="HTML"?le.ownerDocument.body:le).removeChild(l.stateNode)}catch(u){K(l,t,u)}else try{le.removeChild(l.stateNode)}catch(u){K(l,t,u)}break;case 18:le!==null&&(_e?(e=le,Rf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ma(e)):Rf(le,l.stateNode));break;case 4:a=le,n=_e,le=l.stateNode.containerInfo,_e=!0,pt(e,t,l),le=a,_e=n;break;case 0:case 11:case 14:case 15:cl(2,l,t),oe||cl(4,l,t),pt(e,t,l);break;case 1:oe||(rt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&hm(l,t,a)),pt(e,t,l);break;case 21:pt(e,t,l);break;case 22:oe=(a=oe)||l.memoizedState!==null,pt(e,t,l),oe=a;break;default:pt(e,t,l)}}function Sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ma(e)}catch(l){K(t,t.return,l)}}}function Nm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ma(e)}catch(l){K(t,t.return,l)}}function Jy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bf),t;default:throw Error(N(435,e.tag))}}function Zn(e,t){var l=Jy(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=a1.bind(null,e,a);a.then(n,n)}})}function Ce(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 27:if(fl(s.type)){le=s.stateNode,_e=!1;break e}break;case 5:le=s.stateNode,_e=!1;break e;case 3:case 4:le=s.stateNode.containerInfo,_e=!0;break e}s=s.return}if(le===null)throw Error(N(160));bm(u,i,n),le=null,_e=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jm(t,e),t=t.sibling}var ut=null;function jm(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ce(t,e),Oe(e),a&4&&(cl(3,e,e.return),jn(3,e),cl(5,e,e.return));break;case 1:Ce(t,e),Oe(e),a&512&&(oe||l===null||rt(l,l.return)),a&64&&Nt&&(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=ut;if(Ce(t,e),Oe(e),a&512&&(oe||l===null||rt(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[xn]||u[Se]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ee(u,a,l),u[Se]=e,pe(u),a=u;break e;case"link":var i=Yf("link","href",n).get(a+(l.href||""));if(i){for(var s=0;s<i.length;s++)if(u=i[s],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)){i.splice(s,1);break t}}u=n.createElement(a),Ee(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Yf("meta","content",n).get(a+(l.content||""))){for(s=0;s<i.length;s++)if(u=i[s],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)){i.splice(s,1);break t}}u=n.createElement(a),Ee(u,a,l),n.head.appendChild(u);break;default:throw Error(N(468,a))}u[Se]=e,pe(u),a=u}e.stateNode=a}else Gf(n,e.type,e.stateNode);else e.stateNode=qf(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Gf(n,e.type,e.stateNode):qf(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Gi(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ce(t,e),Oe(e),a&512&&(oe||l===null||rt(l,l.return)),l!==null&&a&4&&Gi(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ce(t,e),Oe(e),a&512&&(oe||l===null||rt(l,l.return)),e.flags&32){n=e.stateNode;try{ua(n,"")}catch(x){K(e,e.return,x)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Gi(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Xi=!0);break;case 6:if(Ce(t,e),Oe(e),a&4){if(e.stateNode===null)throw Error(N(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(x){K(e,e.return,x)}}break;case 3:if(ru=null,n=ut,ut=qu(t.containerInfo),Ce(t,e),ut=n,Oe(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ma(t.containerInfo)}catch(x){K(e,e.return,x)}Xi&&(Xi=!1,Em(e));break;case 4:a=ut,ut=qu(e.stateNode.containerInfo),Ce(t,e),Oe(e),ut=a;break;case 12:Ce(t,e),Oe(e);break;case 31:Ce(t,e),Oe(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Zn(e,a)));break;case 13:Ce(t,e),Oe(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ii=Ye()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Zn(e,a)));break;case 22:n=e.memoizedState!==null;var r=l!==null&&l.memoizedState!==null,o=Nt,m=oe;if(Nt=o||n,oe=m||r,Ce(t,e),oe=m,Nt=o,Oe(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||r||Nt||oe||vl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){r=l=t;try{if(u=r.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=r.stateNode;var h=r.memoizedProps.style,d=h!=null&&h.hasOwnProperty("display")?h.display:null;s.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(x){K(r,r.return,x)}}}else if(t.tag===6){if(l===null){r=t;try{r.stateNode.nodeValue=n?"":r.memoizedProps}catch(x){K(r,r.return,x)}}}else if(t.tag===18){if(l===null){r=t;try{var g=r.stateNode;n?Df(g,!0):Df(r.stateNode,!1)}catch(x){K(r,r.return,x)}}}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,Zn(e,l))));break;case 19:Ce(t,e),Oe(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Zn(e,a)));break;case 30:break;case 21:break;default:Ce(t,e),Oe(e)}}function Oe(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(gm(a)){l=a;break}a=a.return}if(l==null)throw Error(N(160));switch(l.tag){case 27:var n=l.stateNode,u=ki(e);_u(e,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(ua(i,""),l.flags&=-33);var s=ki(e);_u(e,s,i);break;case 3:case 4:var r=l.stateNode.containerInfo,o=ki(e);Bc(e,o,r);break;default:throw Error(N(161))}}catch(m){K(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Em(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Em(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pm(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cl(4,t,t.return),vl(t);break;case 1:rt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&hm(t,t.return,l),vl(t);break;case 27:Fa(t.stateNode);case 26:case 5:rt(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function bt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:bt(n,u,l),jn(4,u);break;case 1:if(bt(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(o){K(a,a.return,o)}if(a=u,n=a.updateQueue,n!==null){var s=a.stateNode;try{var r=n.shared.hiddenCallbacks;if(r!==null)for(n.shared.hiddenCallbacks=null,n=0;n<r.length;n++)Sd(r[n],s)}catch(o){K(a,a.return,o)}}l&&i&64&&mm(u),Ka(u,u.return);break;case 27:vm(u);case 26:case 5:bt(n,u,l),l&&a===null&&i&4&&ym(u),Ka(u,u.return);break;case 12:bt(n,u,l);break;case 31:bt(n,u,l),l&&i&4&&Sm(n,u);break;case 13:bt(n,u,l),l&&i&4&&Nm(n,u);break;case 22:u.memoizedState===null&&bt(n,u,l),Ka(u,u.return);break;case 30:break;default:bt(n,u,l)}t=t.sibling}}function Ks(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&&Sn(l))}function Js(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Sn(e))}function at(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Am(e,t,l,a),t=t.sibling}function Am(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:at(e,t,l,a),n&2048&&jn(9,t);break;case 1:at(e,t,l,a);break;case 3:at(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&&Sn(e)));break;case 12:if(n&2048){at(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,i=u.id,s=u.onPostCommit;typeof s=="function"&&s(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(r){K(t,t.return,r)}}else at(e,t,l,a);break;case 31:at(e,t,l,a);break;case 13:at(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?at(e,t,l,a):Ja(e,t):u._visibility&2?at(e,t,l,a):(u._visibility|=2,Hl(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Ks(i,t);break;case 24:at(e,t,l,a),n&2048&&Js(t.alternate,t);break;default:at(e,t,l,a)}}function Hl(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,s=l,r=a,o=i.flags;switch(i.tag){case 0:case 11:case 15:Hl(u,i,s,r,n),jn(8,i);break;case 23:break;case 22:var m=i.stateNode;i.memoizedState!==null?m._visibility&2?Hl(u,i,s,r,n):Ja(u,i):(m._visibility|=2,Hl(u,i,s,r,n)),n&&o&2048&&Ks(i.alternate,i);break;case 24:Hl(u,i,s,r,n),n&&o&2048&&Js(i.alternate,i);break;default:Hl(u,i,s,r,n)}t=t.sibling}}function Ja(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:Ja(l,a),n&2048&&Ks(a.alternate,a);break;case 24:Ja(l,a),n&2048&&Js(a.alternate,a);break;default:Ja(l,a)}t=t.sibling}}var Ba=8192;function Dl(e,t,l){if(e.subtreeFlags&Ba)for(e=e.child;e!==null;)Tm(e,t,l),e=e.sibling}function Tm(e,t,l){switch(e.tag){case 26:Dl(e,t,l),e.flags&Ba&&e.memoizedState!==null&&D1(l,ut,e.memoizedState,e.memoizedProps);break;case 5:Dl(e,t,l);break;case 3:case 4:var a=ut;ut=qu(e.stateNode.containerInfo),Dl(e,t,l),ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ba,Ba=16777216,Dl(e,t,l),Ba=a):Dl(e,t,l));break;default:Dl(e,t,l)}}function Mm(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 Ca(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ve=a,Cm(a,e)}Mm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zm(e),e=e.sibling}function zm(e){switch(e.tag){case 0:case 11:case 15:Ca(e),e.flags&2048&&cl(9,e,e.return);break;case 3:Ca(e);break;case 12:Ca(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cu(e)):Ca(e);break;default:Ca(e)}}function cu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ve=a,Cm(a,e)}Mm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:cl(8,t,t.return),cu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,cu(t));break;default:cu(t)}e=e.sibling}}function Cm(e,t){for(;ve!==null;){var l=ve;switch(l.tag){case 0:case 11:case 15:cl(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:Sn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ve=a;else e:for(l=e;ve!==null;){a=ve;var n=a.sibling,u=a.return;if(xm(a),a===l){ve=null;break e}if(n!==null){n.return=u,ve=n;break e}ve=u}}}var $y={getCacheForType:function(e){var t=je(de),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return je(de).controller.signal}},Wy=typeof WeakMap=="function"?WeakMap:Map,Q=0,W=null,q=null,Y=0,V=0,He=null,Kt=!1,xa=!1,$s=!1,Rt=0,ue=0,sl=0,Nl=0,Ws=0,qe=0,ra=0,$a=null,we=null,Lc=!1,ii=0,Om=0,wu=1/0,Ru=null,el=null,he=0,tl=null,fa=null,zt=0,qc=0,Yc=null,_m=null,Wa=0,Gc=null;function Xe(){return Q&2&&Y!==0?Y&-Y:w.T!==null?Is():Yo()}function wm(){if(qe===0)if(!(Y&536870912)||k){var e=Bn;Bn<<=1,!(Bn&3932160)&&(Bn=262144),qe=e}else qe=536870912;return e=Ze.current,e!==null&&(e.flags|=32),qe}function Re(e,t,l){(e===W&&(V===2||V===9)||e.cancelPendingCommit!==null)&&(oa(e,0),Jt(e,Y,qe,!1)),pn(e,l),(!(Q&2)||e!==W)&&(e===W&&(!(Q&2)&&(Nl|=l),ue===4&&Jt(e,Y,qe,!1)),ht(e))}function Rm(e,t,l){if(Q&6)throw Error(N(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||vn(e,t),n=a?Py(e,t):Qi(e,t,!0),u=a;do{if(n===0){xa&&!a&&Jt(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Fy(l)){n=Qi(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;n=$a;var r=s.current.memoizedState.isDehydrated;if(r&&(oa(s,i).flags|=256),i=Qi(s,i,!1),i!==2){if($s&&!r){s.errorRecoveryDisabledLanes|=u,Nl|=u,n=4;break e}u=we,we=n,u!==null&&(we===null?we=u:we.push.apply(we,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){oa(e,0),Jt(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(N(345));case 4:if((t&4194048)!==t)break;case 6:Jt(a,t,qe,!Kt);break e;case 2:we=null;break;case 3:case 5:break;default:throw Error(N(329))}if((t&62914560)===t&&(n=ii+300-Ye(),10<n)){if(Jt(a,t,qe,!Kt),$u(a,0,!0)!==0)break e;zt=t,a.timeoutHandle=Pm(Sf.bind(null,a,l,we,Ru,Lc,t,qe,Nl,ra,Kt,u,"Throttled",-0,0),n);break e}Sf(a,l,we,Ru,Lc,t,qe,Nl,ra,Kt,u,null,-0,0)}}break}while(!0);ht(e)}function Sf(e,t,l,a,n,u,i,s,r,o,m,h,d,g){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Et},Tm(t,u,h);var x=(u&62914560)===u?ii-Ye():(u&4194048)===u?Om-Ye():0;if(x=U1(h,x),x!==null){zt=u,e.cancelPendingCommit=x(jf.bind(null,e,t,u,l,a,n,i,s,r,m,h,null,d,g)),Jt(e,u,i,!o);return}}jf(e,t,u,l,a,n,i,s,r)}function Fy(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(!Qe(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 Jt(e,t,l,a){t&=~Ws,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ke(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Bo(e,l,t)}function ci(){return Q&6?!0:(En(0),!1)}function Fs(){if(q!==null){if(V===0)var e=q.return;else e=q,At=wl=null,Hs(e),ea=null,un=0,e=q;for(;e!==null;)dm(e.alternate,e),e=e.return;q=null}}function oa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,v1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),zt=0,Fs(),W=e,q=l=Tt(e.current,null),Y=t,V=0,He=null,Kt=!1,xa=vn(e,t),$s=!1,ra=qe=Ws=Nl=sl=ue=0,we=$a=null,Lc=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ke(a),u=1<<n;t|=e[n],a&=~u}return Rt=t,Pu(),l}function Dm(e,t){D=null,w.H=sn,t===pa||t===ti?(t=Ir(),V=3):t===Cs?(t=Ir(),V=4):V=t===Zs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,He=t,q===null&&(ue=1,Cu(e,Fe(t,e.current)))}function Um(){var e=Ze.current;return e===null?!0:(Y&4194048)===Y?Pe===null:(Y&62914560)===Y||Y&536870912?e===Pe:!1}function Hm(){var e=w.H;return w.H=sn,e===null?sn:e}function Bm(){var e=w.A;return w.A=$y,e}function Du(){ue=4,Kt||(Y&4194048)!==Y&&Ze.current!==null||(xa=!0),!(sl&134217727)&&!(Nl&134217727)||W===null||Jt(W,Y,qe,!1)}function Qi(e,t,l){var a=Q;Q|=2;var n=Hm(),u=Bm();(W!==e||Y!==t)&&(Ru=null,oa(e,t)),t=!1;var i=ue;e:do try{if(V!==0&&q!==null){var s=q,r=He;switch(V){case 8:Fs(),i=6;break e;case 3:case 2:case 9:case 6:Ze.current===null&&(t=!0);var o=V;if(V=0,He=null,$l(e,s,r,o),l&&xa){i=0;break e}break;default:o=V,V=0,He=null,$l(e,s,r,o)}}Iy(),i=ue;break}catch(m){Dm(e,m)}while(!0);return t&&e.shellSuspendCounter++,At=wl=null,Q=a,w.H=n,w.A=u,q===null&&(W=null,Y=0,Pu()),i}function Iy(){for(;q!==null;)Lm(q)}function Py(e,t){var l=Q;Q|=2;var a=Hm(),n=Bm();W!==e||Y!==t?(Ru=null,wu=Ye()+500,oa(e,t)):xa=vn(e,t);e:do try{if(V!==0&&q!==null){t=q;var u=He;t:switch(V){case 1:V=0,He=null,$l(e,t,u,1);break;case 2:case 9:if(Fr(u)){V=0,He=null,Nf(t);break}t=function(){V!==2&&V!==9||W!==e||(V=7),ht(e)},u.then(t,t);break e;case 3:V=7;break e;case 4:V=5;break e;case 7:Fr(u)?(V=0,He=null,Nf(t)):(V=0,He=null,$l(e,t,u,7));break;case 5:var i=null;switch(q.tag){case 26:i=q.memoizedState;case 5:case 27:var s=q;if(i?nh(i):s.stateNode.complete){V=0,He=null;var r=s.sibling;if(r!==null)q=r;else{var o=s.return;o!==null?(q=o,si(o)):q=null}break t}}V=0,He=null,$l(e,t,u,5);break;case 6:V=0,He=null,$l(e,t,u,6);break;case 8:Fs(),ue=6;break e;default:throw Error(N(462))}}e1();break}catch(m){Dm(e,m)}while(!0);return At=wl=null,w.H=a,w.A=n,Q=l,q!==null?0:(W=null,Y=0,Pu(),ue)}function e1(){for(;q!==null&&!j0();)Lm(q)}function Lm(e){var t=om(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?si(e):q=t}function Nf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=yf(l,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=yf(l,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:Hs(t);default:dm(l,t),t=q=dd(t,Rt),t=om(l,t,Rt)}e.memoizedProps=e.pendingProps,t===null?si(e):q=t}function $l(e,t,l,a){At=wl=null,Hs(t),ea=null,un=0;var n=t.return;try{if(ky(e,n,t,l,Y)){ue=1,Cu(e,Fe(l,e.current)),q=null;return}}catch(u){if(n!==null)throw q=n,u;ue=1,Cu(e,Fe(l,e.current)),q=null;return}t.flags&32768?(k||a===1?e=!0:xa||Y&536870912?e=!1:(Kt=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ze.current,a!==null&&a.tag===13&&(a.flags|=16384))),qm(t,e)):si(t)}function si(e){var t=e;do{if(t.flags&32768){qm(t,Kt);return}e=t.return;var l=Zy(t.alternate,t,Rt);if(l!==null){q=l;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);ue===0&&(ue=5)}function qm(e,t){do{var l=Vy(e.alternate,e);if(l!==null){l.flags&=32767,q=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=l}while(e!==null);ue=6,q=null}function jf(e,t,l,a,n,u,i,s,r){e.cancelPendingCommit=null;do ri();while(he!==0);if(Q&6)throw Error(N(327));if(t!==null){if(t===e.current)throw Error(N(177));if(u=t.lanes|t.childLanes,u|=Ns,R0(e,l,u,i,s,r),e===W&&(q=W=null,Y=0),fa=t,tl=e,zt=l,qc=u,Yc=n,_m=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,n1(pu,function(){return Qm(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=w.T,w.T=null,n=Z.p,Z.p=2,i=Q,Q|=4;try{Ky(e,t,l)}finally{Q=i,Z.p=n,w.T=a}}he=1,Ym(),Gm(),km()}}function Ym(){if(he===1){he=0;var e=tl,t=fa,l=(t.flags&13878)!==0;if(t.subtreeFlags&13878||l){l=w.T,w.T=null;var a=Z.p;Z.p=2;var n=Q;Q|=4;try{jm(t,e);var u=Zc,i=nd(e.containerInfo),s=u.focusedElem,r=u.selectionRange;if(i!==s&&s&&s.ownerDocument&&ad(s.ownerDocument.documentElement,s)){if(r!==null&&Ss(s)){var o=r.start,m=r.end;if(m===void 0&&(m=o),"selectionStart"in s)s.selectionStart=o,s.selectionEnd=Math.min(m,s.value.length);else{var h=s.ownerDocument||document,d=h&&h.defaultView||window;if(d.getSelection){var g=d.getSelection(),x=s.textContent.length,S=Math.min(r.start,x),j=r.end===void 0?S:Math.min(r.end,x);!g.extend&&S>j&&(i=j,j=S,S=i);var y=Qr(s,S),f=Qr(s,j);if(y&&f&&(g.rangeCount!==1||g.anchorNode!==y.node||g.anchorOffset!==y.offset||g.focusNode!==f.node||g.focusOffset!==f.offset)){var v=h.createRange();v.setStart(y.node,y.offset),g.removeAllRanges(),S>j?(g.addRange(v),g.extend(f.node,f.offset)):(v.setEnd(f.node,f.offset),g.addRange(v))}}}}for(h=[],g=s;g=g.parentNode;)g.nodeType===1&&h.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<h.length;s++){var b=h[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}ku=!!Qc,Zc=Qc=null}finally{Q=n,Z.p=a,w.T=l}}e.current=t,he=2}}function Gm(){if(he===2){he=0;var e=tl,t=fa,l=(t.flags&8772)!==0;if(t.subtreeFlags&8772||l){l=w.T,w.T=null;var a=Z.p;Z.p=2;var n=Q;Q|=4;try{pm(e,t.alternate,t)}finally{Q=n,Z.p=a,w.T=l}}he=3}}function km(){if(he===4||he===3){he=0,E0();var e=tl,t=fa,l=zt,a=_m;t.subtreeFlags&10256||t.flags&10256?he=5:(he=0,fa=tl=null,Xm(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(el=null),hs(l),t=t.stateNode,Ge&&typeof Ge.onCommitFiberRoot=="function")try{Ge.onCommitFiberRoot(gn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=w.T,n=Z.p,Z.p=2,w.T=null;try{for(var u=e.onRecoverableError,i=0;i<a.length;i++){var s=a[i];u(s.value,{componentStack:s.stack})}}finally{w.T=t,Z.p=n}}zt&3&&ri(),ht(e),n=e.pendingLanes,l&261930&&n&42?e===Gc?Wa++:(Wa=0,Gc=e):Wa=0,En(0)}}function Xm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Sn(t)))}function ri(){return Ym(),Gm(),km(),Qm()}function Qm(){if(he!==5)return!1;var e=tl,t=qc;qc=0;var l=hs(zt),a=w.T,n=Z.p;try{Z.p=32>l?32:l,w.T=null,l=Yc,Yc=null;var u=tl,i=zt;if(he=0,fa=tl=null,zt=0,Q&6)throw Error(N(331));var s=Q;if(Q|=4,zm(u.current),Am(u,u.current,i,l),Q=s,En(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot=="function")try{Ge.onPostCommitFiberRoot(gn,u)}catch{}return!0}finally{Z.p=n,w.T=a,Xm(e,t)}}function Ef(e,t,l){t=Fe(l,t),t=Dc(e.stateNode,t,2),e=Pt(e,t,2),e!==null&&(pn(e,2),ht(e))}function K(e,t,l){if(e.tag===3)Ef(e,e,l);else for(;t!==null;){if(t.tag===3){Ef(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(el===null||!el.has(a))){e=Fe(l,e),l=um(2),a=Pt(t,l,2),a!==null&&(im(l,a,t,e),pn(a,2),ht(a));break}}t=t.return}}function Zi(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Wy;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)||($s=!0,n.add(l),e=t1.bind(null,e,t,l),t.then(e,e))}function t1(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,W===e&&(Y&l)===l&&(ue===4||ue===3&&(Y&62914560)===Y&&300>Ye()-ii?!(Q&2)&&oa(e,0):Ws|=l,ra===Y&&(ra=0)),ht(e)}function Zm(e,t){t===0&&(t=Ho()),e=_l(e,t),e!==null&&(pn(e,t),ht(e))}function l1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Zm(e,l)}function a1(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(N(314))}a!==null&&a.delete(t),Zm(e,l)}function n1(e,t){return ds(e,t)}var Uu=null,Bl=null,kc=!1,Hu=!1,Vi=!1,$t=0;function ht(e){e!==Bl&&e.next===null&&(Bl===null?Uu=Bl=e:Bl=Bl.next=e),Hu=!0,kc||(kc=!0,i1())}function En(e,t){if(!Vi&&Hu){Vi=!0;do for(var l=!1,a=Uu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,s=a.pingedLanes;u=(1<<31-ke(42|e)+1)-1,u&=n&~(i&~s),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Af(a,u))}else u=Y,u=$u(a,a===W?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(u&3)||vn(a,u)||(l=!0,Af(a,u));a=a.next}while(l);Vi=!1}}function u1(){Vm()}function Vm(){Hu=kc=!1;var e=0;$t!==0&&g1()&&(e=$t);for(var t=Ye(),l=null,a=Uu;a!==null;){var n=a.next,u=Km(a,t);u===0?(a.next=null,l===null?Uu=n:l.next=n,n===null&&(Bl=l)):(l=a,(e!==0||u&3)&&(Hu=!0)),a=n}he!==0&&he!==5||En(e),$t!==0&&($t=0)}function Km(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-ke(u),s=1<<i,r=n[i];r===-1?(!(s&l)||s&a)&&(n[i]=w0(s,t)):r<=t&&(e.expiredLanes|=s),u&=~s}if(t=W,l=Y,l=$u(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(V===2||V===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&bi(a),e.callbackNode=null,e.callbackPriority=0;if(!(l&3)||vn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&bi(a),hs(l)){case 2:case 8:l=Do;break;case 32:l=pu;break;case 268435456:l=Uo;break;default:l=pu}return a=Jm.bind(null,e),l=ds(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&bi(a),e.callbackPriority=2,e.callbackNode=null,2}function Jm(e,t){if(he!==0&&he!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ri()&&e.callbackNode!==l)return null;var a=Y;return a=$u(e,e===W?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Rm(e,a,t),Km(e,Ye()),e.callbackNode!=null&&e.callbackNode===l?Jm.bind(null,e):null)}function Af(e,t){if(ri())return null;Rm(e,t,!0)}function i1(){p1(function(){Q&6?ds(Ro,u1):Vm()})}function Is(){if($t===0){var e=ia;e===0&&(e=Hn,Hn<<=1,!(Hn&261888)&&(Hn=256)),$t=e}return $t}function Tf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:In(""+e)}function Mf(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 c1(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Tf((n[De]||null).action),i=a.submitter;i&&(t=(t=i[De]||null)?Tf(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var s=new Wu("action","action",null,a,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if($t!==0){var r=i?Mf(n,i):new FormData(n);wc(l,{pending:!0,data:r,method:n.method,action:u},null,r)}}else typeof u=="function"&&(s.preventDefault(),r=i?Mf(n,i):new FormData(n),wc(l,{pending:!0,data:r,method:n.method,action:u},u,r))},currentTarget:n}]})}}for(var Ki=0;Ki<bc.length;Ki++){var Ji=bc[Ki],s1=Ji.toLowerCase(),r1=Ji[0].toUpperCase()+Ji.slice(1);it(s1,"on"+r1)}it(id,"onAnimationEnd");it(cd,"onAnimationIteration");it(sd,"onAnimationStart");it("dblclick","onDoubleClick");it("focusin","onFocus");it("focusout","onBlur");it(Ay,"onTransitionRun");it(Ty,"onTransitionStart");it(My,"onTransitionCancel");it(rd,"onTransitionEnd");na("onMouseEnter",["mouseout","mouseover"]);na("onMouseLeave",["mouseout","mouseover"]);na("onPointerEnter",["pointerout","pointerover"]);na("onPointerLeave",["pointerout","pointerover"]);zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zl("onBeforeInput",["compositionend","keypress","textInput","paste"]);zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zl("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(" "),f1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rn));function $m(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 i=a.length-1;0<=i;i--){var s=a[i],r=s.instance,o=s.currentTarget;if(s=s.listener,r!==u&&n.isPropagationStopped())break e;u=s,n.currentTarget=o;try{u(n)}catch(m){bu(m)}n.currentTarget=null,u=r}else for(i=0;i<a.length;i++){if(s=a[i],r=s.instance,o=s.currentTarget,s=s.listener,r!==u&&n.isPropagationStopped())break e;u=s,n.currentTarget=o;try{u(n)}catch(m){bu(m)}n.currentTarget=null,u=r}}}}function L(e,t){var l=t[dc];l===void 0&&(l=t[dc]=new Set);var a=e+"__bubble";l.has(a)||(Wm(t,e,2,!1),l.add(a))}function $i(e,t,l){var a=0;t&&(a|=4),Wm(l,e,a,t)}var Vn="_reactListening"+Math.random().toString(36).slice(2);function Ps(e){if(!e[Vn]){e[Vn]=!0,Go.forEach(function(l){l!=="selectionchange"&&(f1.has(l)||$i(l,!1,e),$i(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vn]||(t[Vn]=!0,$i("selectionchange",!1,t))}}function Wm(e,t,l,a){switch(rh(t)){case 2:var n=L1;break;case 8:n=q1;break;default:n=ar}l=n.bind(null,t,l,e),n=void 0,!vc||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 Wi(e,t,l,a,n){var u=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n)break;if(i===4)for(i=a.return;i!==null;){var r=i.tag;if((r===3||r===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;s!==null;){if(i=Yl(s),i===null)return;if(r=i.tag,r===5||r===6||r===26||r===27){a=u=i;continue e}s=s.parentNode}}a=a.return}$o(function(){var o=u,m=vs(l),h=[];e:{var d=fd.get(e);if(d!==void 0){var g=Wu,x=e;switch(e){case"keypress":if(eu(l)===0)break e;case"keydown":case"keyup":g=ay;break;case"focusin":x="focus",g=Ai;break;case"focusout":x="blur",g=Ai;break;case"beforeblur":case"afterblur":g=Ai;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":g=Dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=iy;break;case id:case cd:case sd:g=J0;break;case rd:g=sy;break;case"scroll":case"scrollend":g=X0;break;case"wheel":g=fy;break;case"copy":case"cut":case"paste":g=W0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Hr;break;case"toggle":case"beforetoggle":g=dy}var S=(t&4)!==0,j=!S&&(e==="scroll"||e==="scrollend"),y=S?d!==null?d+"Capture":null:d;S=[];for(var f=o,v;f!==null;){var b=f;if(v=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||v===null||y===null||(b=en(f,y),b!=null&&S.push(fn(f,b,v))),j)break;f=f.return}0<S.length&&(d=new g(d,x,null,l,m),h.push({event:d,listeners:S}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&l!==gc&&(x=l.relatedTarget||l.fromElement)&&(Yl(x)||x[ya]))break e;if((g||d)&&(d=m.window===m?m:(d=m.ownerDocument)?d.defaultView||d.parentWindow:window,g?(x=l.relatedTarget||l.toElement,g=o,x=x?Yl(x):null,x!==null&&(j=yn(x),S=x.tag,x!==j||S!==5&&S!==27&&S!==6)&&(x=null)):(g=null,x=o),g!==x)){if(S=Dr,b="onMouseLeave",y="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(S=Hr,b="onPointerLeave",y="onPointerEnter",f="pointer"),j=g==null?d:Ua(g),v=x==null?d:Ua(x),d=new S(b,f+"leave",g,l,m),d.target=j,d.relatedTarget=v,b=null,Yl(m)===o&&(S=new S(y,f+"enter",x,l,m),S.target=v,S.relatedTarget=j,b=S),j=b,g&&x)t:{for(S=o1,y=g,f=x,v=0,b=y;b;b=S(b))v++;b=0;for(var A=f;A;A=S(A))b++;for(;0<v-b;)y=S(y),v--;for(;0<b-v;)f=S(f),b--;for(;v--;){if(y===f||f!==null&&y===f.alternate){S=y;break t}y=S(y),f=S(f)}S=null}else S=null;g!==null&&zf(h,d,g,S,!1),x!==null&&j!==null&&zf(h,j,x,S,!0)}}e:{if(d=o?Ua(o):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var C=Yr;else if(qr(d))if(td)C=Ny;else{C=by;var T=xy}else g=d.nodeName,!g||g.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?o&&gs(o.elementType)&&(C=Yr):C=Sy;if(C&&(C=C(e,o))){ed(h,C,l,m);break e}T&&T(e,d,o),e==="focusout"&&o&&d.type==="number"&&o.memoizedProps.value!=null&&yc(d,"number",d.value)}switch(T=o?Ua(o):window,e){case"focusin":(qr(T)||T.contentEditable==="true")&&(Xl=T,pc=o,Ga=null);break;case"focusout":Ga=pc=Xl=null;break;case"mousedown":xc=!0;break;case"contextmenu":case"mouseup":case"dragend":xc=!1,Zr(h,l,m);break;case"selectionchange":if(Ey)break;case"keydown":case"keyup":Zr(h,l,m)}var z;if(bs)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else kl?Io(e,l)&&(_="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(_="onCompositionStart");_&&(Fo&&l.locale!=="ko"&&(kl||_!=="onCompositionStart"?_==="onCompositionEnd"&&kl&&(z=Wo()):(Vt=m,ps="value"in Vt?Vt.value:Vt.textContent,kl=!0)),T=Bu(o,_),0<T.length&&(_=new Ur(_,e,null,l,m),h.push({event:_,listeners:T}),z?_.data=z:(z=Po(l),z!==null&&(_.data=z)))),(z=hy?yy(e,l):gy(e,l))&&(_=Bu(o,"onBeforeInput"),0<_.length&&(T=new Ur("onBeforeInput","beforeinput",null,l,m),h.push({event:T,listeners:_}),T.data=z)),c1(h,e,o,l,m)}$m(h,t)})}function fn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Bu(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(fn(e,n,u)),n=en(e,t),n!=null&&a.push(fn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function o1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zf(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var s=l,r=s.alternate,o=s.stateNode;if(s=s.tag,r!==null&&r===a)break;s!==5&&s!==26&&s!==27||o===null||(r=o,n?(o=en(l,u),o!=null&&i.unshift(fn(l,o,r))):n||(o=en(l,u),o!=null&&i.push(fn(l,o,r)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var d1=/\r\n?/g,m1=/\u0000|\uFFFD/g;function Cf(e){return(typeof e=="string"?e:""+e).replace(d1,`
|
|
49
|
+
`).replace(m1,"")}function Fm(e,t){return t=Cf(t),Cf(e)===t}function J(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ua(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ua(e,""+a);break;case"className":qn(e,"class",a);break;case"tabIndex":qn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":qn(e,l,a);break;case"style":Jo(e,a,u);break;case"data":if(t!=="object"){qn(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=In(""+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"&&J(e,t,"name",n.name,n,null),J(e,t,"formEncType",n.formEncType,n,null),J(e,t,"formMethod",n.formMethod,n,null),J(e,t,"formTarget",n.formTarget,n,null)):(J(e,t,"encType",n.encType,n,null),J(e,t,"method",n.method,n,null),J(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=In(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Et);break;case"onScroll":a!=null&&L("scroll",e);break;case"onScrollEnd":a!=null&&L("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(N(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(N(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=In(""+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":L("beforetoggle",e),L("toggle",e),Fn(e,"popover",a);break;case"xlinkActuate":gt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":gt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":gt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":gt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":gt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":gt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":gt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":gt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":gt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Fn(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=G0.get(l)||l,Fn(e,l,a))}}function Xc(e,t,l,a,n,u){switch(l){case"style":Jo(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(N(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(N(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ua(e,a):(typeof a=="number"||typeof a=="bigint")&&ua(e,""+a);break;case"onScroll":a!=null&&L("scroll",e);break;case"onScrollEnd":a!=null&&L("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ko.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[De]||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,""):Fn(e,l,a)}}}function Ee(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":L("error",e),L("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(N(137,t));default:J(e,t,u,i,l,null)}}n&&J(e,t,"srcSet",l.srcSet,l,null),a&&J(e,t,"src",l.src,l,null);return;case"input":L("invalid",e);var s=u=i=n=null,r=null,o=null;for(a in l)if(l.hasOwnProperty(a)){var m=l[a];if(m!=null)switch(a){case"name":n=m;break;case"type":i=m;break;case"checked":r=m;break;case"defaultChecked":o=m;break;case"value":u=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(N(137,t));break;default:J(e,t,a,m,l,null)}}Zo(e,u,s,r,o,i,n,!1);return;case"select":L("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(s=l[n],s!=null))switch(n){case"value":u=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:J(e,t,n,s,l,null)}t=u,l=i,e.multiple=!!a,t!=null?Fl(e,!!a,t,!1):l!=null&&Fl(e,!!a,l,!0);return;case"textarea":L("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(s=l[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":n=s;break;case"children":u=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(N(91));break;default:J(e,t,i,s,l,null)}Ko(e,a,n,u);return;case"option":for(r in l)if(l.hasOwnProperty(r)&&(a=l[r],a!=null))switch(r){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:J(e,t,r,a,l,null)}return;case"dialog":L("beforetoggle",e),L("toggle",e),L("cancel",e),L("close",e);break;case"iframe":case"object":L("load",e);break;case"video":case"audio":for(a=0;a<rn.length;a++)L(rn[a],e);break;case"image":L("error",e),L("load",e);break;case"details":L("toggle",e);break;case"embed":case"source":case"link":L("error",e),L("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(o in l)if(l.hasOwnProperty(o)&&(a=l[o],a!=null))switch(o){case"children":case"dangerouslySetInnerHTML":throw Error(N(137,t));default:J(e,t,o,a,l,null)}return;default:if(gs(t)){for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!==void 0&&Xc(e,t,m,a,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null&&J(e,t,s,a,l,null))}function h1(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,i=null,s=null,r=null,o=null,m=null;for(g in l){var h=l[g];if(l.hasOwnProperty(g)&&h!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":r=h;default:a.hasOwnProperty(g)||J(e,t,g,null,a,h)}}for(var d in a){var g=a[d];if(h=l[d],a.hasOwnProperty(d)&&(g!=null||h!=null))switch(d){case"type":u=g;break;case"name":n=g;break;case"checked":o=g;break;case"defaultChecked":m=g;break;case"value":i=g;break;case"defaultValue":s=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(N(137,t));break;default:g!==h&&J(e,t,d,g,a,h)}}hc(e,i,s,r,o,m,u,n);return;case"select":g=i=s=d=null;for(u in l)if(r=l[u],l.hasOwnProperty(u)&&r!=null)switch(u){case"value":break;case"multiple":g=r;default:a.hasOwnProperty(u)||J(e,t,u,null,a,r)}for(n in a)if(u=a[n],r=l[n],a.hasOwnProperty(n)&&(u!=null||r!=null))switch(n){case"value":d=u;break;case"defaultValue":s=u;break;case"multiple":i=u;default:u!==r&&J(e,t,n,u,a,r)}t=s,l=i,a=g,d!=null?Fl(e,!!l,d,!1):!!a!=!!l&&(t!=null?Fl(e,!!l,t,!0):Fl(e,!!l,l?[]:"",!1));return;case"textarea":g=d=null;for(s in l)if(n=l[s],l.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:J(e,t,s,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":d=n;break;case"defaultValue":g=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(N(91));break;default:n!==u&&J(e,t,i,n,a,u)}Vo(e,d,g);return;case"option":for(var x in l)if(d=l[x],l.hasOwnProperty(x)&&d!=null&&!a.hasOwnProperty(x))switch(x){case"selected":e.selected=!1;break;default:J(e,t,x,null,a,d)}for(r in a)if(d=a[r],g=l[r],a.hasOwnProperty(r)&&d!==g&&(d!=null||g!=null))switch(r){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:J(e,t,r,d,a,g)}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 S in l)d=l[S],l.hasOwnProperty(S)&&d!=null&&!a.hasOwnProperty(S)&&J(e,t,S,null,a,d);for(o in a)if(d=a[o],g=l[o],a.hasOwnProperty(o)&&d!==g&&(d!=null||g!=null))switch(o){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(N(137,t));break;default:J(e,t,o,d,a,g)}return;default:if(gs(t)){for(var j in l)d=l[j],l.hasOwnProperty(j)&&d!==void 0&&!a.hasOwnProperty(j)&&Xc(e,t,j,void 0,a,d);for(m in a)d=a[m],g=l[m],!a.hasOwnProperty(m)||d===g||d===void 0&&g===void 0||Xc(e,t,m,d,a,g);return}}for(var y in l)d=l[y],l.hasOwnProperty(y)&&d!=null&&!a.hasOwnProperty(y)&&J(e,t,y,null,a,d);for(h in a)d=a[h],g=l[h],!a.hasOwnProperty(h)||d===g||d==null&&g==null||J(e,t,h,d,a,g)}function Of(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y1(){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,i=n.initiatorType,s=n.duration;if(u&&s&&Of(i)){for(i=0,s=n.responseEnd,a+=1;a<l.length;a++){var r=l[a],o=r.startTime;if(o>s)break;var m=r.transferSize,h=r.initiatorType;m&&Of(h)&&(r=r.responseEnd,i+=m*(r<s?1:(s-o)/(r-o)))}if(--a,t+=8*(u+i)/(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 Qc=null,Zc=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function _f(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 Im(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 Vc(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 Fi=null;function g1(){var e=window.event;return e&&e.type==="popstate"?e===Fi?!1:(Fi=e,!0):(Fi=null,!1)}var Pm=typeof setTimeout=="function"?setTimeout:void 0,v1=typeof clearTimeout=="function"?clearTimeout:void 0,wf=typeof Promise=="function"?Promise:void 0,p1=typeof queueMicrotask=="function"?queueMicrotask:typeof wf<"u"?function(e){return wf.resolve(null).then(e).catch(x1)}:Pm;function x1(e){setTimeout(function(){throw e})}function fl(e){return e==="head"}function Rf(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),ma(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Fa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Fa(l);for(var u=l.firstChild;u;){var i=u.nextSibling,s=u.nodeName;u[xn]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Fa(e.ownerDocument.body);l=n}while(l);ma(t)}function Df(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 Kc(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":Kc(l),ys(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function b1(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[xn])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=et(e.nextSibling),e===null)break}return null}function S1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=et(e.nextSibling),e===null))return null;return e}function eh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=et(e.nextSibling),e===null))return null;return e}function Jc(e){return e.data==="$?"||e.data==="$~"}function $c(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function N1(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 et(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 Wc=null;function Uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return et(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Hf(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 th(e,t,l){switch(t=Lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(N(452));return e;case"head":if(e=t.head,!e)throw Error(N(453));return e;case"body":if(e=t.body,!e)throw Error(N(454));return e;default:throw Error(N(451))}}function Fa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ys(e)}var tt=new Map,Bf=new Set;function qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ut=Z.d;Z.d={f:j1,r:E1,D:A1,C:T1,L:M1,m:z1,X:O1,S:C1,M:_1};function j1(){var e=Ut.f(),t=ci();return e||t}function E1(e){var t=ga(e);t!==null&&t.tag===5&&t.type==="form"?Jd(t):Ut.r(e)}var ba=typeof document>"u"?null:document;function lh(e,t,l){var a=ba;if(a&&typeof t=="string"&&t){var n=We(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Bf.has(n)||(Bf.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ee(t,"link",e),pe(t),a.head.appendChild(t)))}}function A1(e){Ut.D(e),lh("dns-prefetch",e,null)}function T1(e,t){Ut.C(e,t),lh("preconnect",e,t)}function M1(e,t,l){Ut.L(e,t,l);var a=ba;if(a&&e&&t){var n='link[rel="preload"][as="'+We(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+We(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+We(l.imageSizes)+'"]')):n+='[href="'+We(e)+'"]';var u=n;switch(t){case"style":u=da(e);break;case"script":u=Sa(e)}tt.has(u)||(e=te({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),tt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(An(u))||t==="script"&&a.querySelector(Tn(u))||(t=a.createElement("link"),Ee(t,"link",e),pe(t),a.head.appendChild(t)))}}function z1(e,t){Ut.m(e,t);var l=ba;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+We(a)+'"][href="'+We(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Sa(e)}if(!tt.has(u)&&(e=te({rel:"modulepreload",href:e},t),tt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Tn(u)))return}a=l.createElement("link"),Ee(a,"link",e),pe(a),l.head.appendChild(a)}}}function C1(e,t,l){Ut.S(e,t,l);var a=ba;if(a&&e){var n=Wl(a).hoistableStyles,u=da(e);t=t||"default";var i=n.get(u);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(An(u)))s.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},l),(l=tt.get(u))&&er(e,l);var r=i=a.createElement("link");pe(r),Ee(r,"link",e),r._p=new Promise(function(o,m){r.onload=o,r.onerror=m}),r.addEventListener("load",function(){s.loading|=1}),r.addEventListener("error",function(){s.loading|=2}),s.loading|=4,su(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(u,i)}}}function O1(e,t){Ut.X(e,t);var l=ba;if(l&&e){var a=Wl(l).hoistableScripts,n=Sa(e),u=a.get(n);u||(u=l.querySelector(Tn(n)),u||(e=te({src:e,async:!0},t),(t=tt.get(n))&&tr(e,t),u=l.createElement("script"),pe(u),Ee(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function _1(e,t){Ut.M(e,t);var l=ba;if(l&&e){var a=Wl(l).hoistableScripts,n=Sa(e),u=a.get(n);u||(u=l.querySelector(Tn(n)),u||(e=te({src:e,async:!0,type:"module"},t),(t=tt.get(n))&&tr(e,t),u=l.createElement("script"),pe(u),Ee(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Lf(e,t,l,a){var n=(n=Wt.current)?qu(n):null;if(!n)throw Error(N(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=da(l.href),l=Wl(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=da(l.href);var u=Wl(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(An(e)))&&!u._p&&(i.instance=u,i.state.loading=5),tt.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},tt.set(e,l),u||w1(n,e,l,i.state))),t&&a===null)throw Error(N(528,""));return i}if(t&&a!==null)throw Error(N(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sa(l),l=Wl(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(N(444,e))}}function da(e){return'href="'+We(e)+'"'}function An(e){return'link[rel="stylesheet"]['+e+"]"}function ah(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function w1(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}),Ee(t,"link",l),pe(t),e.head.appendChild(t))}function Sa(e){return'[src="'+We(e)+'"]'}function Tn(e){return"script[async]"+e}function qf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+We(l.href)+'"]');if(a)return t.instance=a,pe(a),a;var n=te({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),pe(a),Ee(a,"style",n),su(a,l.precedence,e),t.instance=a;case"stylesheet":n=da(l.href);var u=e.querySelector(An(n));if(u)return t.state.loading|=4,t.instance=u,pe(u),u;a=ah(l),(n=tt.get(n))&&er(a,n),u=(e.ownerDocument||e).createElement("link"),pe(u);var i=u;return i._p=new Promise(function(s,r){i.onload=s,i.onerror=r}),Ee(u,"link",a),t.state.loading|=4,su(u,l.precedence,e),t.instance=u;case"script":return u=Sa(l.src),(n=e.querySelector(Tn(u)))?(t.instance=n,pe(n),n):(a=l,(n=tt.get(u))&&(a=te({},l),tr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),pe(n),Ee(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(N(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,su(a,l.precedence,e));return t.instance}function su(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,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===t)u=s;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 er(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function tr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ru=null;function Yf(e,t,l){if(ru===null){var a=new Map,n=ru=new Map;n.set(l,a)}else n=ru,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[xn]||u[Se]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var s=a.get(i);s?s.push(u):a.set(i,[u])}}return a}function Gf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function R1(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 nh(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function D1(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var n=da(a.href),u=t.querySelector(An(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,pe(u);return}u=t.ownerDocument||t,a=ah(a),(n=tt.get(n))&&er(a,n),u=u.createElement("link"),pe(u);var i=u;i._p=new Promise(function(s,r){i.onload=s,i.onerror=r}),Ee(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)&&(e.count++,l=Yu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ii=0;function U1(e,t){return e.stylesheets&&e.count===0&&fu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&fu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Ii===0&&(Ii=62500*y1());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Ii?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gu=null;function fu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gu=new Map,t.forEach(H1,e),Gu=null,Yu.call(e))}function H1(e,t){if(!(t.state.loading&4)){var l=Gu.get(e);if(l)var a=l.get(null);else{l=new Map,Gu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=Yu.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 on={$$typeof:jt,Provider:null,Consumer:null,_currentValue:pl,_currentValue2:pl,_threadCount:0};function B1(e,t,l,a,n,u,i,s,r){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=Si(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Si(0),this.hiddenUpdates=Si(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function uh(e,t,l,a,n,u,i,s,r,o,m,h){return e=new B1(e,t,l,i,r,o,m,h,s),t=1,u===!0&&(t|=24),u=Le(3,null,null,t),e.current=u,u.stateNode=e,t=Ms(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Os(u),e}function ih(e){return e?(e=Vl,e):Vl}function ch(e,t,l,a,n,u){n=ih(n),a.context===null?a.context=n:a.pendingContext=n,a=It(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Pt(e,a,t),l!==null&&(Re(l,e,t),Xa(l,e,t))}function kf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function lr(e,t){kf(e,t),(e=e.alternate)&&kf(e,t)}function sh(e){if(e.tag===13||e.tag===31){var t=_l(e,67108864);t!==null&&Re(t,e,67108864),lr(e,67108864)}}function Xf(e){if(e.tag===13||e.tag===31){var t=Xe();t=ms(t);var l=_l(e,t);l!==null&&Re(l,e,t),lr(e,t)}}var ku=!0;function L1(e,t,l,a){var n=w.T;w.T=null;var u=Z.p;try{Z.p=2,ar(e,t,l,a)}finally{Z.p=u,w.T=n}}function q1(e,t,l,a){var n=w.T;w.T=null;var u=Z.p;try{Z.p=8,ar(e,t,l,a)}finally{Z.p=u,w.T=n}}function ar(e,t,l,a){if(ku){var n=Fc(a);if(n===null)Wi(e,t,a,Xu,l),Qf(e,a);else if(G1(n,e,t,l,a))a.stopPropagation();else if(Qf(e,a),t&4&&-1<Y1.indexOf(e)){for(;n!==null;){var u=ga(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=yl(u.pendingLanes);if(i!==0){var s=u;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var r=1<<31-ke(i);s.entanglements[1]|=r,i&=~r}ht(u),!(Q&6)&&(wu=Ye()+500,En(0))}}break;case 31:case 13:s=_l(u,2),s!==null&&Re(s,u,2),ci(),lr(u,2)}if(u=Fc(a),u===null&&Wi(e,t,a,Xu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Wi(e,t,a,null,l)}}function Fc(e){return e=vs(e),nr(e)}var Xu=null;function nr(e){if(Xu=null,e=Yl(e),e!==null){var t=yn(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=zo(t),e!==null)return e;e=null}else if(l===31){if(e=Co(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 Xu=e,null}function rh(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(A0()){case Ro:return 2;case Do:return 8;case pu:case T0:return 32;case Uo:return 268435456;default:return 32}default:return 32}}var Ic=!1,ll=null,al=null,nl=null,dn=new Map,mn=new Map,Qt=[],Y1="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 Qf(e,t){switch(e){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":al=null;break;case"mouseover":case"mouseout":nl=null;break;case"pointerover":case"pointerout":dn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mn.delete(t.pointerId)}}function Oa(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=ga(t),t!==null&&sh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function G1(e,t,l,a,n){switch(t){case"focusin":return ll=Oa(ll,e,t,l,a,n),!0;case"dragenter":return al=Oa(al,e,t,l,a,n),!0;case"mouseover":return nl=Oa(nl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return dn.set(u,Oa(dn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,mn.set(u,Oa(mn.get(u)||null,e,t,l,a,n)),!0}return!1}function fh(e){var t=Yl(e.target);if(t!==null){var l=yn(t);if(l!==null){if(t=l.tag,t===13){if(t=zo(l),t!==null){e.blockedOn=t,Mr(e.priority,function(){Xf(l)});return}}else if(t===31){if(t=Co(l),t!==null){e.blockedOn=t,Mr(e.priority,function(){Xf(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 ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Fc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);gc=a,l.target.dispatchEvent(a),gc=null}else return t=ga(l),t!==null&&sh(t),e.blockedOn=l,!1;t.shift()}return!0}function Zf(e,t,l){ou(e)&&l.delete(t)}function k1(){Ic=!1,ll!==null&&ou(ll)&&(ll=null),al!==null&&ou(al)&&(al=null),nl!==null&&ou(nl)&&(nl=null),dn.forEach(Zf),mn.forEach(Zf)}function Kn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ic||(Ic=!0,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,k1)))}var Jn=null;function Vf(e){Jn!==e&&(Jn=e,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,function(){Jn===e&&(Jn=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(nr(a||l)===null)continue;break}var u=ga(l);u!==null&&(e.splice(t,3),t-=3,wc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function ma(e){function t(r){return Kn(r,e)}ll!==null&&Kn(ll,e),al!==null&&Kn(al,e),nl!==null&&Kn(nl,e),dn.forEach(t),mn.forEach(t);for(var l=0;l<Qt.length;l++){var a=Qt[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Qt.length&&(l=Qt[0],l.blockedOn===null);)fh(l),l.blockedOn===null&&Qt.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],i=n[De]||null;if(typeof u=="function")i||Vf(l);else if(i){var s=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[De]||null)s=i.formAction;else if(nr(n)!==null)continue}else s=i.action;typeof s=="function"?l[a+1]=s:(l.splice(a,3),a-=3),Vf(l)}}}function oh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},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 ur(e){this._internalRoot=e}fi.prototype.render=ur.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));var l=t.current,a=Xe();ch(l,a,e,t,null,null)};fi.prototype.unmount=ur.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ch(e.current,2,null,e,null,null),ci(),t[ya]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yo();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Qt.length&&t!==0&&t<Qt[l].priority;l++);Qt.splice(l,0,e),l===0&&fh(e)}};var Kf=To.version;if(Kf!=="19.2.4")throw Error(N(527,Kf,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=p0(t),e=e!==null?Oo(e):null,e=e===null?null:e.stateNode,e};var X1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$n.isDisabled&&$n.supportsFiber)try{gn=$n.inject(X1),Ge=$n}catch{}}Ku.createRoot=function(e,t){if(!Mo(e))throw Error(N(299));var l=!1,a="",n=lm,u=am,i=nm;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&&(i=t.onRecoverableError)),t=uh(e,1,!1,null,null,l,a,null,n,u,i,oh),e[ya]=t.current,Ps(e),new ur(t)};Ku.hydrateRoot=function(e,t,l){if(!Mo(e))throw Error(N(299));var a=!1,n="",u=lm,i=am,s=nm,r=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&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(s=l.onRecoverableError),l.formState!==void 0&&(r=l.formState)),t=uh(e,1,!0,t,l??null,a,n,r,u,i,s,oh),t.context=ih(null),l=t.current,a=Xe(),a=ms(a),n=It(a),n.callback=null,Pt(l,n,a),l=a,t.current.lanes=l,pn(t,l),ht(t),e[ya]=t.current,Ps(e),new fi(t)};Ku.version="19.2.4";function dh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dh)}catch(e){console.error(e)}}dh(),bo.exports=Ku;var Q1=bo.exports;const Z1=ro(Q1);/**
|
|
50
|
+
* react-router v7.13.2
|
|
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 Jf="popstate";function $f(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function V1(e={}){function t(a,n){var o;let u=(o=n.state)==null?void 0:o.masked,{pathname:i,search:s,hash:r}=u||a.location;return Pc("",{pathname:i,search:s,hash:r},n.state&&n.state.usr||null,n.state&&n.state.key||"default",u?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function l(a,n){return typeof n=="string"?n:hn(n)}return J1(t,l,null,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function K1(){return Math.random().toString(36).substring(2,10)}function Wf(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Pc(e,t,l=null,a,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Na(t):t,state:l,key:t&&t.key||a||K1(),unstable_mask:n}}function hn({pathname:e="/",search:t="",hash:l=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),l&&l!=="#"&&(e+=l.charAt(0)==="#"?l:"#"+l),e}function Na(e){let t={};if(e){let l=e.indexOf("#");l>=0&&(t.hash=e.substring(l),e=e.substring(0,l));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function J1(e,t,l,a={}){let{window:n=document.defaultView,v5Compat:u=!1}=a,i=n.history,s="POP",r=null,o=m();o==null&&(o=0,i.replaceState({...i.state,idx:o},""));function m(){return(i.state||{idx:null}).idx}function h(){s="POP";let j=m(),y=j==null?null:j-o;o=j,r&&r({action:s,location:S.location,delta:y})}function d(j,y){s="PUSH";let f=$f(j)?j:Pc(S.location,j,y);o=m()+1;let v=Wf(f,o),b=S.createHref(f.unstable_mask||f);try{i.pushState(v,"",b)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;n.location.assign(b)}u&&r&&r({action:s,location:S.location,delta:1})}function g(j,y){s="REPLACE";let f=$f(j)?j:Pc(S.location,j,y);o=m();let v=Wf(f,o),b=S.createHref(f.unstable_mask||f);i.replaceState(v,"",b),u&&r&&r({action:s,location:S.location,delta:0})}function x(j){return $1(j)}let S={get action(){return s},get location(){return e(n,i)},listen(j){if(r)throw new Error("A history only accepts one active listener");return n.addEventListener(Jf,h),r=j,()=>{n.removeEventListener(Jf,h),r=null}},createHref(j){return t(n,j)},createURL:x,encodeLocation(j){let y=x(j);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:g,go(j){return i.go(j)}};return S}function $1(e,t=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),ae(l,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:hn(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=l+a),new URL(a,l)}function mh(e,t,l="/"){return W1(e,t,l,!1)}function W1(e,t,l,a){let n=typeof t=="string"?Na(t):t,u=Dt(n.pathname||"/",l);if(u==null)return null;let i=hh(e);F1(i);let s=null;for(let r=0;s==null&&r<i.length;++r){let o=sg(u);s=ig(i[r],o,a)}return s}function hh(e,t=[],l=[],a="",n=!1){let u=(i,s,r=n,o)=>{let m={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(a)&&r)return;ae(m.relativePath.startsWith(a),`Absolute route path "${m.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(a.length)}let h=ot([a,m.relativePath]),d=l.concat(m);i.children&&i.children.length>0&&(ae(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),hh(i.children,t,d,h,r)),!(i.path==null&&!i.index)&&t.push({path:h,score:ng(h,i.index),routesMeta:d})};return e.forEach((i,s)=>{var r;if(i.path===""||!((r=i.path)!=null&&r.includes("?")))u(i,s);else for(let o of yh(i.path))u(i,s,!0,o)}),t}function yh(e){let t=e.split("/");if(t.length===0)return[];let[l,...a]=t,n=l.endsWith("?"),u=l.replace(/\?$/,"");if(a.length===0)return n?[u,""]:[u];let i=yh(a.join("/")),s=[];return s.push(...i.map(r=>r===""?u:[u,r].join("/"))),n&&s.push(...i),s.map(r=>e.startsWith("/")&&r===""?"/":r)}function F1(e){e.sort((t,l)=>t.score!==l.score?l.score-t.score:ug(t.routesMeta.map(a=>a.childrenIndex),l.routesMeta.map(a=>a.childrenIndex)))}var I1=/^:[\w-]+$/,P1=3,eg=2,tg=1,lg=10,ag=-2,Ff=e=>e==="*";function ng(e,t){let l=e.split("/"),a=l.length;return l.some(Ff)&&(a+=ag),t&&(a+=eg),l.filter(n=>!Ff(n)).reduce((n,u)=>n+(I1.test(u)?P1:u===""?tg:lg),a)}function ug(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function ig(e,t,l=!1){let{routesMeta:a}=e,n={},u="/",i=[];for(let s=0;s<a.length;++s){let r=a[s],o=s===a.length-1,m=u==="/"?t:t.slice(u.length)||"/",h=Qu({path:r.relativePath,caseSensitive:r.caseSensitive,end:o},m),d=r.route;if(!h&&o&&l&&!a[a.length-1].route.index&&(h=Qu({path:r.relativePath,caseSensitive:r.caseSensitive,end:!1},m)),!h)return null;Object.assign(n,h.params),i.push({params:n,pathname:ot([u,h.pathname]),pathnameBase:dg(ot([u,h.pathnameBase])),route:d}),h.pathnameBase!=="/"&&(u=ot([u,h.pathnameBase]))}return i}function Qu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,a]=cg(e.path,e.caseSensitive,e.end),n=t.match(l);if(!n)return null;let u=n[0],i=u.replace(/(.)\/+$/,"$1"),s=n.slice(1);return{params:a.reduce((o,{paramName:m,isOptional:h},d)=>{if(m==="*"){let x=s[d]||"";i=u.slice(0,u.length-x.length).replace(/(.)\/+$/,"$1")}const g=s[d];return h&&!g?o[m]=void 0:o[m]=(g||"").replace(/%2F/g,"/"),o},{}),pathname:u,pathnameBase:i,pattern:e}}function cg(e,t=!1,l=!0){dt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,r,o,m)=>{if(a.push({paramName:s,isOptional:r!=null}),r){let h=m.charAt(o+i.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function sg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Dt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let l=t.endsWith("/")?t.length-1:t.length,a=e.charAt(l);return a&&a!=="/"?null:e.slice(l)||"/"}var rg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function fg(e,t="/"){let{pathname:l,search:a="",hash:n=""}=typeof e=="string"?Na(e):e,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=If(l.substring(1),"/"):u=If(l,t)):u=t,{pathname:u,search:mg(a),hash:hg(n)}}function If(e,t){let l=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?l.length>1&&l.pop():n!=="."&&l.push(n)}),l.length>1?l.join("/"):"/"}function Pi(e,t,l,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function og(e){return e.filter((t,l)=>l===0||t.route.path&&t.route.path.length>0)}function gh(e){let t=og(e);return t.map((l,a)=>a===t.length-1?l.pathname:l.pathnameBase)}function ir(e,t,l,a=!1){let n;typeof e=="string"?n=Na(e):(n={...e},ae(!n.pathname||!n.pathname.includes("?"),Pi("?","pathname","search",n)),ae(!n.pathname||!n.pathname.includes("#"),Pi("#","pathname","hash",n)),ae(!n.search||!n.search.includes("#"),Pi("#","search","hash",n)));let u=e===""||n.pathname==="",i=u?"/":n.pathname,s;if(i==null)s=l;else{let h=t.length-1;if(!a&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),h-=1;n.pathname=d.join("/")}s=h>=0?t[h]:"/"}let r=fg(n,s),o=i&&i!=="/"&&i.endsWith("/"),m=(u||i===".")&&l.endsWith("/");return!r.pathname.endsWith("/")&&(o||m)&&(r.pathname+="/"),r}var ot=e=>e.join("/").replace(/\/\/+/g,"/"),dg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,yg=class{constructor(e,t,l,a=!1){this.status=e,this.statusText=t||"",this.internal=a,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function gg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function vg(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var vh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ph(e,t){let l=e;if(typeof l!="string"||!rg.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let a=l,n=!1;if(vh)try{let u=new URL(window.location.href),i=l.startsWith("//")?new URL(u.protocol+l):new URL(l),s=Dt(i.pathname,t);i.origin===u.origin&&s!=null?l=s+i.search+i.hash:n=!0}catch{dt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var xh=["POST","PUT","PATCH","DELETE"];new Set(xh);var pg=["GET",...xh];new Set(pg);var ja=p.createContext(null);ja.displayName="DataRouter";var oi=p.createContext(null);oi.displayName="DataRouterState";var xg=p.createContext(!1),bh=p.createContext({isTransitioning:!1});bh.displayName="ViewTransition";var bg=p.createContext(new Map);bg.displayName="Fetchers";var Sg=p.createContext(null);Sg.displayName="Await";var lt=p.createContext(null);lt.displayName="Navigation";var Mn=p.createContext(null);Mn.displayName="Location";var yt=p.createContext({outlet:null,matches:[],isDataRoute:!1});yt.displayName="Route";var cr=p.createContext(null);cr.displayName="RouteError";var Sh="REACT_ROUTER_ERROR",Ng="REDIRECT",jg="ROUTE_ERROR_RESPONSE";function Eg(e){if(e.startsWith(`${Sh}:${Ng}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ag(e){if(e.startsWith(`${Sh}:${jg}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new yg(t.status,t.statusText,t.data)}catch{}}function Tg(e,{relative:t}={}){ae(zn(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:a}=p.useContext(lt),{hash:n,pathname:u,search:i}=Cn(e,{relative:t}),s=u;return l!=="/"&&(s=u==="/"?l:ot([l,u])),a.createHref({pathname:s,search:i,hash:n})}function zn(){return p.useContext(Mn)!=null}function Ht(){return ae(zn(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Mn).location}var Nh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function jh(e){p.useContext(lt).static||p.useLayoutEffect(e)}function sr(){let{isDataRoute:e}=p.useContext(yt);return e?Yg():Mg()}function Mg(){ae(zn(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(ja),{basename:t,navigator:l}=p.useContext(lt),{matches:a}=p.useContext(yt),{pathname:n}=Ht(),u=JSON.stringify(gh(a)),i=p.useRef(!1);return jh(()=>{i.current=!0}),p.useCallback((r,o={})=>{if(dt(i.current,Nh),!i.current)return;if(typeof r=="number"){l.go(r);return}let m=ir(r,JSON.parse(u),n,o.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ot([t,m.pathname])),(o.replace?l.replace:l.push)(m,o.state,o)},[t,l,u,n,e])}p.createContext(null);function zg(){let{matches:e}=p.useContext(yt),t=e[e.length-1];return t?t.params:{}}function Cn(e,{relative:t}={}){let{matches:l}=p.useContext(yt),{pathname:a}=Ht(),n=JSON.stringify(gh(l));return p.useMemo(()=>ir(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function Cg(e,t){return Eh(e,t)}function Eh(e,t,l){var j;ae(zn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=p.useContext(lt),{matches:n}=p.useContext(yt),u=n[n.length-1],i=u?u.params:{},s=u?u.pathname:"/",r=u?u.pathnameBase:"/",o=u&&u.route;{let y=o&&o.path||"";Th(s,!o||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${y}">) 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="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let m=Ht(),h;if(t){let y=typeof t=="string"?Na(t):t;ae(r==="/"||((j=y.pathname)==null?void 0:j.startsWith(r)),`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 "${r}" but pathname "${y.pathname}" was given in the \`location\` prop.`),h=y}else h=m;let d=h.pathname||"/",g=d;if(r!=="/"){let y=r.replace(/^\//,"").split("/");g="/"+d.replace(/^\//,"").split("/").slice(y.length).join("/")}let x=mh(e,{pathname:g});dt(o||x!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),dt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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 S=Dg(x&&x.map(y=>Object.assign({},y,{params:Object.assign({},i,y.params),pathname:ot([r,a.encodeLocation?a.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?r:ot([r,a.encodeLocation?a.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),n,l);return t&&S?p.createElement(Mn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},S):S}function Og(){let e=qg(),t=gg(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),l=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},u={padding:"2px 4px",backgroundColor:a},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=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:u},"ErrorBoundary")," or"," ",p.createElement("code",{style:u},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),l?p.createElement("pre",{style:n},l):null,i)}var _g=p.createElement(Og,null),Ah=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const l=Ag(e.digest);l&&(e=l)}let t=e!==void 0?p.createElement(yt.Provider,{value:this.props.routeContext},p.createElement(cr.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?p.createElement(wg,{error:e},t):t}};Ah.contextType=xg;var ec=new WeakMap;function wg({children:e,error:t}){let{basename:l}=p.useContext(lt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Eg(t.digest);if(a){let n=ec.get(t);if(n)throw n;let u=ph(a.location,l);if(vh&&!ec.get(t))if(u.isExternal||a.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:a.replace}));throw ec.set(t,i),i}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function Rg({routeContext:e,match:t,children:l}){let a=p.useContext(ja);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(yt.Provider,{value:e},l)}function Dg(e,t=[],l){let a=l==null?void 0:l.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let n=e,u=a==null?void 0:a.errors;if(u!=null){let m=n.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);ae(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),n=n.slice(0,Math.min(n.length,m+1))}let i=!1,s=-1;if(l&&a){i=a.renderFallback;for(let m=0;m<n.length;m++){let h=n[m];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(s=m),h.route.id){let{loaderData:d,errors:g}=a,x=h.route.loader&&!d.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||x){l.isStatic&&(i=!0),s>=0?n=n.slice(0,s+1):n=[n[0]];break}}}}let r=l==null?void 0:l.onError,o=a&&r?(m,h)=>{var d,g;r(m,{location:a.location,params:((g=(d=a.matches)==null?void 0:d[0])==null?void 0:g.params)??{},unstable_pattern:vg(a.matches),errorInfo:h})}:void 0;return n.reduceRight((m,h,d)=>{let g,x=!1,S=null,j=null;a&&(g=u&&h.route.id?u[h.route.id]:void 0,S=h.route.errorElement||_g,i&&(s<0&&d===0?(Th("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,j=null):s===d&&(x=!0,j=h.route.hydrateFallbackElement||null)));let y=t.concat(n.slice(0,d+1)),f=()=>{let v;return g?v=S:x?v=j:h.route.Component?v=p.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=m,p.createElement(Rg,{match:h,routeContext:{outlet:m,matches:y,isDataRoute:a!=null},children:v})};return a&&(h.route.ErrorBoundary||h.route.errorElement||d===0)?p.createElement(Ah,{location:a.location,revalidation:a.revalidation,component:S,error:g,children:f(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:o}):f()},null)}function rr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ug(e){let t=p.useContext(ja);return ae(t,rr(e)),t}function Hg(e){let t=p.useContext(oi);return ae(t,rr(e)),t}function Bg(e){let t=p.useContext(yt);return ae(t,rr(e)),t}function fr(e){let t=Bg(e),l=t.matches[t.matches.length-1];return ae(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function Lg(){return fr("useRouteId")}function qg(){var a;let e=p.useContext(cr),t=Hg("useRouteError"),l=fr("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[l]}function Yg(){let{router:e}=Ug("useNavigate"),t=fr("useNavigate"),l=p.useRef(!1);return jh(()=>{l.current=!0}),p.useCallback(async(n,u={})=>{dt(l.current,Nh),l.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...u}))},[e,t])}var Pf={};function Th(e,t,l){!t&&!Pf[e]&&(Pf[e]=!0,dt(!1,l))}p.memo(Gg);function Gg({routes:e,future:t,state:l,isStatic:a,onError:n}){return Eh(e,void 0,{state:l,isStatic:a,onError:n})}function nt(e){ae(!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 kg({basename:e="/",children:t=null,location:l,navigationType:a="POP",navigator:n,static:u=!1,unstable_useTransitions:i}){ae(!zn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),r=p.useMemo(()=>({basename:s,navigator:n,static:u,unstable_useTransitions:i,future:{}}),[s,n,u,i]);typeof l=="string"&&(l=Na(l));let{pathname:o="/",search:m="",hash:h="",state:d=null,key:g="default",unstable_mask:x}=l,S=p.useMemo(()=>{let j=Dt(o,s);return j==null?null:{location:{pathname:j,search:m,hash:h,state:d,key:g,unstable_mask:x},navigationType:a}},[s,o,m,h,d,g,a,x]);return dt(S!=null,`<Router basename="${s}"> is not able to match the URL "${o}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:p.createElement(lt.Provider,{value:r},p.createElement(Mn.Provider,{children:t,value:S}))}function Xg({children:e,location:t}){return Cg(es(e),t)}function es(e,t=[]){let l=[];return p.Children.forEach(e,(a,n)=>{if(!p.isValidElement(a))return;let u=[...t,n];if(a.type===p.Fragment){l.push.apply(l,es(a.props.children,u));return}ae(a.type===nt,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ae(!a.props.index||!a.props.children,"An index route cannot have child routes.");let i={id:a.props.id||u.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=es(a.props.children,u)),l.push(i)}),l}var du="get",mu="application/x-www-form-urlencoded";function di(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Qg(e){return di(e)&&e.tagName.toLowerCase()==="button"}function Zg(e){return di(e)&&e.tagName.toLowerCase()==="form"}function Vg(e){return di(e)&&e.tagName.toLowerCase()==="input"}function Kg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jg(e,t){return e.button===0&&(!t||t==="_self")&&!Kg(e)}var Wn=null;function $g(){if(Wn===null)try{new FormData(document.createElement("form"),0),Wn=!1}catch{Wn=!0}return Wn}var Wg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function tc(e){return e!=null&&!Wg.has(e)?(dt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${mu}"`),null):e}function Fg(e,t){let l,a,n,u,i;if(Zg(e)){let s=e.getAttribute("action");a=s?Dt(s,t):null,l=e.getAttribute("method")||du,n=tc(e.getAttribute("enctype"))||mu,u=new FormData(e)}else if(Qg(e)||Vg(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let r=e.getAttribute("formaction")||s.getAttribute("action");if(a=r?Dt(r,t):null,l=e.getAttribute("formmethod")||s.getAttribute("method")||du,n=tc(e.getAttribute("formenctype"))||tc(s.getAttribute("enctype"))||mu,u=new FormData(s,e),!$g()){let{name:o,type:m,value:h}=e;if(m==="image"){let d=o?`${o}.`:"";u.append(`${d}x`,"0"),u.append(`${d}y`,"0")}else o&&u.append(o,h)}}else{if(di(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=du,a=null,n=mu,i=e}return u&&n==="text/plain"&&(i=u,u=void 0),{action:a,method:l.toLowerCase(),encType:n,formData:u,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function or(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ig(e,t,l,a){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l?n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${a}`:n.pathname=`${n.pathname}.${a}`:n.pathname==="/"?n.pathname=`_root.${a}`:t&&Dt(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${a}`,n}async function Pg(e,t){if(e.id in t)return t[e.id];try{let l=await import(e.module);return t[e.id]=l,l}catch(l){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ev(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function tv(e,t,l){let a=await Promise.all(e.map(async n=>{let u=t.routes[n.route.id];if(u){let i=await Pg(u,l);return i.links?i.links():[]}return[]}));return uv(a.flat(1).filter(ev).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function eo(e,t,l,a,n,u){let i=(r,o)=>l[o]?r.route.id!==l[o].route.id:!0,s=(r,o)=>{var m;return l[o].pathname!==r.pathname||((m=l[o].route.path)==null?void 0:m.endsWith("*"))&&l[o].params["*"]!==r.params["*"]};return u==="assets"?t.filter((r,o)=>i(r,o)||s(r,o)):u==="data"?t.filter((r,o)=>{var h;let m=a.routes[r.route.id];if(!m||!m.hasLoader)return!1;if(i(r,o)||s(r,o))return!0;if(r.route.shouldRevalidate){let d=r.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((h=l[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:r.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function lv(e,t,{includeHydrateFallback:l}={}){return av(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let u=[n.module];return n.clientActionModule&&(u=u.concat(n.clientActionModule)),n.clientLoaderModule&&(u=u.concat(n.clientLoaderModule)),l&&n.hydrateFallbackModule&&(u=u.concat(n.hydrateFallbackModule)),n.imports&&(u=u.concat(n.imports)),u}).flat(1))}function av(e){return[...new Set(e)]}function nv(e){let t={},l=Object.keys(e).sort();for(let a of l)t[a]=e[a];return t}function uv(e,t){let l=new Set;return new Set(t),e.reduce((a,n)=>{let u=JSON.stringify(nv(n));return l.has(u)||(l.add(u),a.push({key:u,link:n})),a},[])}function Mh(){let e=p.useContext(ja);return or(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function iv(){let e=p.useContext(oi);return or(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var dr=p.createContext(void 0);dr.displayName="FrameworkContext";function zh(){let e=p.useContext(dr);return or(e,"You must render this element inside a <HydratedRouter> element"),e}function cv(e,t){let l=p.useContext(dr),[a,n]=p.useState(!1),[u,i]=p.useState(!1),{onFocus:s,onBlur:r,onMouseEnter:o,onMouseLeave:m,onTouchStart:h}=t,d=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let S=y=>{y.forEach(f=>{i(f.isIntersecting)})},j=new IntersectionObserver(S,{threshold:.5});return d.current&&j.observe(d.current),()=>{j.disconnect()}}},[e]),p.useEffect(()=>{if(a){let S=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(S)}}},[a]);let g=()=>{n(!0)},x=()=>{n(!1),i(!1)};return l?e!=="intent"?[u,d,{}]:[u,d,{onFocus:_a(s,g),onBlur:_a(r,x),onMouseEnter:_a(o,g),onMouseLeave:_a(m,x),onTouchStart:_a(h,g)}]:[!1,d,{}]}function _a(e,t){return l=>{e&&e(l),l.defaultPrevented||t(l)}}function sv({page:e,...t}){let{router:l}=Mh(),a=p.useMemo(()=>mh(l.routes,e,l.basename),[l.routes,e,l.basename]);return a?p.createElement(fv,{page:e,matches:a,...t}):null}function rv(e){let{manifest:t,routeModules:l}=zh(),[a,n]=p.useState([]);return p.useEffect(()=>{let u=!1;return tv(e,t,l).then(i=>{u||n(i)}),()=>{u=!0}},[e,t,l]),a}function fv({page:e,matches:t,...l}){let a=Ht(),{future:n,manifest:u,routeModules:i}=zh(),{basename:s}=Mh(),{loaderData:r,matches:o}=iv(),m=p.useMemo(()=>eo(e,t,o,u,a,"data"),[e,t,o,u,a]),h=p.useMemo(()=>eo(e,t,o,u,a,"assets"),[e,t,o,u,a]),d=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let S=new Set,j=!1;if(t.forEach(f=>{var b;let v=u.routes[f.route.id];!v||!v.hasLoader||(!m.some(A=>A.route.id===f.route.id)&&f.route.id in r&&((b=i[f.route.id])!=null&&b.shouldRevalidate)||v.hasClientLoader?j=!0:S.add(f.route.id))}),S.size===0)return[];let y=Ig(e,s,n.unstable_trailingSlashAwareDataRequests,"data");return j&&S.size>0&&y.searchParams.set("_routes",t.filter(f=>S.has(f.route.id)).map(f=>f.route.id).join(",")),[y.pathname+y.search]},[s,n.unstable_trailingSlashAwareDataRequests,r,a,u,m,t,e,i]),g=p.useMemo(()=>lv(h,u),[h,u]),x=rv(h);return p.createElement(p.Fragment,null,d.map(S=>p.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...l})),g.map(S=>p.createElement("link",{key:S,rel:"modulepreload",href:S,...l})),x.map(({key:S,link:j})=>p.createElement("link",{key:S,nonce:l.nonce,...j,crossOrigin:j.crossOrigin??l.crossOrigin})))}function ov(...e){return t=>{e.forEach(l=>{typeof l=="function"?l(t):l!=null&&(l.current=t)})}}var dv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dv&&(window.__reactRouterVersion="7.13.2")}catch{}function mv({basename:e,children:t,unstable_useTransitions:l,window:a}){let n=p.useRef();n.current==null&&(n.current=V1({window:a,v5Compat:!0}));let u=n.current,[i,s]=p.useState({action:u.action,location:u.location}),r=p.useCallback(o=>{l===!1?s(o):p.startTransition(()=>s(o))},[l]);return p.useLayoutEffect(()=>u.listen(r),[u,r]),p.createElement(kg,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:u,unstable_useTransitions:l})}var Ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Oh=p.forwardRef(function({onClick:t,discover:l="render",prefetch:a="none",relative:n,reloadDocument:u,replace:i,unstable_mask:s,state:r,target:o,to:m,preventScrollReset:h,viewTransition:d,unstable_defaultShouldRevalidate:g,...x},S){let{basename:j,navigator:y,unstable_useTransitions:f}=p.useContext(lt),v=typeof m=="string"&&Ch.test(m),b=ph(m,j);m=b.to;let A=Tg(m,{relative:n}),C=Ht(),T=null;if(s){let ze=ir(s,[],C.unstable_mask?C.unstable_mask.pathname:"/",!0);j!=="/"&&(ze.pathname=ze.pathname==="/"?j:ot([j,ze.pathname])),T=y.createHref(ze)}let[z,_,U]=cv(a,x),E=gv(m,{replace:i,unstable_mask:s,state:r,target:o,preventScrollReset:h,relative:n,viewTransition:d,unstable_defaultShouldRevalidate:g,unstable_useTransitions:f});function re(ze){t&&t(ze),ze.defaultPrevented||E(ze)}let Bt=!(b.isExternal||u),ol=p.createElement("a",{...x,...U,href:(Bt?T:void 0)||b.absoluteURL||A,onClick:Bt?re:t,ref:ov(S,_),target:o,"data-discover":!v&&l==="render"?"true":void 0});return z&&!v?p.createElement(p.Fragment,null,ol,p.createElement(sv,{page:A})):ol});Oh.displayName="Link";var _h=p.forwardRef(function({"aria-current":t="page",caseSensitive:l=!1,className:a="",end:n=!1,style:u,to:i,viewTransition:s,children:r,...o},m){let h=Cn(i,{relative:o.relative}),d=Ht(),g=p.useContext(oi),{navigator:x,basename:S}=p.useContext(lt),j=g!=null&&Sv(h)&&s===!0,y=x.encodeLocation?x.encodeLocation(h).pathname:h.pathname,f=d.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;l||(f=f.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&S&&(v=Dt(v,S)||v);const b=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let A=f===y||!n&&f.startsWith(y)&&f.charAt(b)==="/",C=v!=null&&(v===y||!n&&v.startsWith(y)&&v.charAt(y.length)==="/"),T={isActive:A,isPending:C,isTransitioning:j},z=A?t:void 0,_;typeof a=="function"?_=a(T):_=[a,A?"active":null,C?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let U=typeof u=="function"?u(T):u;return p.createElement(Oh,{...o,"aria-current":z,className:_,ref:m,style:U,to:i,viewTransition:s},typeof r=="function"?r(T):r)});_h.displayName="NavLink";var hv=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:l,reloadDocument:a,replace:n,state:u,method:i=du,action:s,onSubmit:r,relative:o,preventScrollReset:m,viewTransition:h,unstable_defaultShouldRevalidate:d,...g},x)=>{let{unstable_useTransitions:S}=p.useContext(lt),j=xv(),y=bv(s,{relative:o}),f=i.toLowerCase()==="get"?"get":"post",v=typeof s=="string"&&Ch.test(s),b=A=>{if(r&&r(A),A.defaultPrevented)return;A.preventDefault();let C=A.nativeEvent.submitter,T=(C==null?void 0:C.getAttribute("formmethod"))||i,z=()=>j(C||A.currentTarget,{fetcherKey:t,method:T,navigate:l,replace:n,state:u,relative:o,preventScrollReset:m,viewTransition:h,unstable_defaultShouldRevalidate:d});S&&l!==!1?p.startTransition(()=>z()):z()};return p.createElement("form",{ref:x,method:f,action:y,onSubmit:a?r:b,...g,"data-discover":!v&&e==="render"?"true":void 0})});hv.displayName="Form";function yv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wh(e){let t=p.useContext(ja);return ae(t,yv(e)),t}function gv(e,{target:t,replace:l,unstable_mask:a,state:n,preventScrollReset:u,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:r,unstable_useTransitions:o}={}){let m=sr(),h=Ht(),d=Cn(e,{relative:i});return p.useCallback(g=>{if(Jg(g,t)){g.preventDefault();let x=l!==void 0?l:hn(h)===hn(d),S=()=>m(e,{replace:x,unstable_mask:a,state:n,preventScrollReset:u,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:r});o?p.startTransition(()=>S()):S()}},[h,m,d,l,a,n,t,e,u,i,s,r,o])}var vv=0,pv=()=>`__${String(++vv)}__`;function xv(){let{router:e}=wh("useSubmit"),{basename:t}=p.useContext(lt),l=Lg(),a=e.fetch,n=e.navigate;return p.useCallback(async(u,i={})=>{let{action:s,method:r,encType:o,formData:m,body:h}=Fg(u,t);if(i.navigate===!1){let d=i.fetcherKey||pv();await a(d,l,i.action||s,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:h,formMethod:i.method||r,formEncType:i.encType||o,flushSync:i.flushSync})}else await n(i.action||s,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:m,body:h,formMethod:i.method||r,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:l,flushSync:i.flushSync,viewTransition:i.viewTransition})},[a,n,t,l])}function bv(e,{relative:t}={}){let{basename:l}=p.useContext(lt),a=p.useContext(yt);ae(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),u={...Cn(e||".",{relative:t})},i=Ht();if(e==null){u.search=i.search;let s=new URLSearchParams(u.search),r=s.getAll("index");if(r.some(m=>m==="")){s.delete("index"),r.filter(h=>h).forEach(h=>s.append("index",h));let m=s.toString();u.search=m?`?${m}`:""}}return(!e||e===".")&&n.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:ot([l,u.pathname])),hn(u)}function Sv(e,{relative:t}={}){let l=p.useContext(bh);ae(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=wh("useViewTransitionState"),n=Cn(e,{relative:t});if(!l.isTransitioning)return!1;let u=Dt(l.currentLocation.pathname,a)||l.currentLocation.pathname,i=Dt(l.nextLocation.pathname,a)||l.nextLocation.pathname;return Qu(n.pathname,i)!=null||Qu(n.pathname,u)!=null}const to=e=>{let t;const l=new Set,a=(o,m)=>{const h=typeof o=="function"?o(t):o;if(!Object.is(h,t)){const d=t;t=m??(typeof h!="object"||h===null)?h:Object.assign({},t,h),l.forEach(g=>g(t,d))}},n=()=>t,s={setState:a,getState:n,getInitialState:()=>r,subscribe:o=>(l.add(o),()=>l.delete(o))},r=t=e(a,n,s);return s},Nv=e=>e?to(e):to,jv=e=>e;function Ev(e,t=jv){const l=wa.useSyncExternalStore(e.subscribe,wa.useCallback(()=>t(e.getState()),[e,t]),wa.useCallback(()=>t(e.getInitialState()),[e,t]));return wa.useDebugValue(l),l}const lo=e=>{const t=Nv(e),l=a=>Ev(t,a);return Object.assign(l,t),l},Rh=e=>e?lo(e):lo,hu="/api";async function X(e,t){const l=await fetch(`${hu}${e}`,{headers:{"Content-Type":"application/json",...t==null?void 0:t.headers},...t});if(!l.ok){const a=await l.json().catch(()=>({error:l.statusText}));throw new Error(a.error||`HTTP ${l.status}`)}return l.json()}const G={listConversations:()=>X("/conversations"),createConversation:e=>X("/conversations",{method:"POST",body:JSON.stringify({title:e})}),getConversation:e=>X(`/conversations/${e}`),deleteConversation:e=>X("/conversations/"+e,{method:"DELETE"}),updateConversationTitle:(e,t)=>X(`/conversations/${e}`,{method:"PATCH",body:JSON.stringify({title:t})}),sendMessage:(e,t)=>fetch(`${hu}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:e,message:t})}),streamMessage:async(e,t,l)=>{var s;const a=await fetch(`${hu}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:e,message:t})});if(!a.ok){const r=await a.json().catch(()=>({error:a.statusText}));throw new Error(r.error||`HTTP ${a.status}`)}const n=(s=a.body)==null?void 0:s.getReader();if(!n)throw new Error("No response body");const u=new TextDecoder;let i="";for(;;){const{done:r,value:o}=await n.read();if(r)break;i+=u.decode(o,{stream:!0});const m=i.split(`
|
|
61
|
+
`);i=m.pop()||"";let h="message";for(const d of m)if(d.startsWith("event: "))h=d.slice(7).trim();else if(d.startsWith("data: "))try{const g=JSON.parse(d.slice(6));l(h,g)}catch{}else d===""&&(h="message")}},listTasks:e=>X(`/tasks${e?`?conversationId=${e}`:""}`),getTask:e=>X(`/tasks/${e}`),cancelTask:e=>X(`/tasks/${e}`,{method:"PATCH",body:JSON.stringify({status:"cancelled"})}),listCollections:()=>X("/knowledge/collections"),listDocuments:e=>X(`/knowledge/documents${e?`?collection=${e}`:""}`),uploadDocument:(e,t="default")=>{const l=new FormData;return l.append("file",e),l.append("collection",t),fetch(`${hu}/knowledge/upload`,{method:"POST",body:l}).then(a=>a.json())},searchKnowledge:(e,t)=>X("/knowledge/search",{method:"POST",body:JSON.stringify({query:e,collection:t})}),deleteDocument:e=>X(`/knowledge/documents/${e}`,{method:"DELETE"}),listAgents:()=>X("/agents"),listTools:()=>X("/agents/tools"),listMcpServers:()=>X("/mcp/servers"),getMcpSuggestions:()=>X("/mcp/suggestions"),addMcpServer:e=>X("/mcp/servers",{method:"POST",body:JSON.stringify(e)}),connectMcpServer:e=>X(`/mcp/servers/${e}/connect`,{method:"POST"}),disconnectMcpServer:e=>X(`/mcp/servers/${e}/disconnect`,{method:"POST"}),removeMcpServer:e=>X(`/mcp/servers/${e}`,{method:"DELETE"}),getSettings:()=>X("/settings"),updateSettings:e=>X("/settings",{method:"PATCH",body:JSON.stringify(e)}),addProvider:e=>X("/settings/providers",{method:"POST",body:JSON.stringify(e)}),getSystemStats:()=>X("/settings/system"),getAuditLog:(e=100,t=0)=>X(`/settings/audit?limit=${e}&offset=${t}`),getMemory:()=>X("/memory"),getProfile:()=>X("/memory/profile"),searchMemory:e=>X(`/memory/search?q=${encodeURIComponent(e)}`),getAppCatalog:()=>X("/apps/catalog"),listApps:e=>{const t=new URLSearchParams;e!=null&&e.search&&t.set("search",e.search),e!=null&&e.category&&t.set("category",e.category);const l=t.toString();return X(`/apps${l?`?${l}`:""}`)},getApp:e=>X(`/apps/${e}`),getAppCategories:()=>X("/apps/categories")},Dh=Rh((e,t)=>({conversations:[],activeConversationId:null,messages:[],isStreaming:!1,streamingContent:"",activeAgent:null,error:null,loadConversations:async()=>{try{const l=await G.listConversations();e({conversations:l})}catch(l){console.error("Failed to load conversations:",l)}},selectConversation:async l=>{e({activeConversationId:l});const a=await G.getConversation(l);e({messages:a.messages||[]})},createConversation:async()=>{const{id:l}=await G.createConversation();return await t().loadConversations(),e({activeConversationId:l,messages:[]}),l},deleteConversation:async l=>{await G.deleteConversation(l),t().activeConversationId===l&&e({activeConversationId:null,messages:[]}),await t().loadConversations()},sendMessage:async l=>{let n=t().activeConversationId;const u={id:crypto.randomUUID(),role:"user",content:l,createdAt:new Date().toISOString()};e(i=>({messages:[...i.messages,u],error:null})),e({isStreaming:!0,streamingContent:"",activeAgent:null});try{let i="orchestrator",s="";await G.streamMessage(n,l,(o,m)=>{switch(o){case"conversation":m.conversationId&&(n=m.conversationId,e({activeConversationId:n}));break;case"agent_switch":i=m.agent||"orchestrator",e({activeAgent:i});break;case"text_delta":m.text&&(s+=m.text,e({streamingContent:s}));break;case"text":m.text&&(s=m.text,e({streamingContent:s}));break;case"tool_call":e(h=>({streamingContent:h.streamingContent+`
|
|
62
|
+
|
|
63
|
+
> Using tool: **${m.tool}**
|
|
64
|
+
`}));break;case"tool_result":break;case"task_update":break;case"done":m.content&&(s=m.content);break;case"error":throw new Error(m.message||"Unknown error")}});const r={id:crypto.randomUUID(),role:"assistant",content:s,agentName:i,createdAt:new Date().toISOString()};e(o=>({messages:[...o.messages,r],streamingContent:""})),await t().loadConversations()}catch(i){console.error("Chat error:",i),e({error:i.message||"Failed to get response"});const s={id:crypto.randomUUID(),role:"assistant",content:`Error: ${i.message||"Failed to get response from AI"}`,createdAt:new Date().toISOString()};e(r=>({messages:[...r.messages,s]}))}finally{e({isStreaming:!1,streamingContent:"",activeAgent:null})}}}));/**
|
|
65
|
+
* @license lucide-react v0.460.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Av=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uh=(...e)=>e.filter((t,l,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===l).join(" ").trim();/**
|
|
70
|
+
* @license lucide-react v0.460.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var Tv={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"};/**
|
|
75
|
+
* @license lucide-react v0.460.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const Mv=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:n="",children:u,iconNode:i,...s},r)=>p.createElement("svg",{ref:r,...Tv,width:t,height:t,stroke:e,strokeWidth:a?Number(l)*24/Number(t):l,className:Uh("lucide",n),...s},[...i.map(([o,m])=>p.createElement(o,m)),...Array.isArray(u)?u:[u]]));/**
|
|
80
|
+
* @license lucide-react v0.460.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const O=(e,t)=>{const l=p.forwardRef(({className:a,...n},u)=>p.createElement(Mv,{ref:u,iconNode:t,className:Uh(`lucide-${Av(e)}`,a),...n}));return l.displayName=`${e}`,l};/**
|
|
85
|
+
* @license lucide-react v0.460.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const Hh=O("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"}]]);/**
|
|
90
|
+
* @license lucide-react v0.460.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const zv=O("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
95
|
+
* @license lucide-react v0.460.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Bh=O("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
|
|
100
|
+
* @license lucide-react v0.460.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const ts=O("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
105
|
+
* @license lucide-react v0.460.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const mi=O("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"}]]);/**
|
|
110
|
+
* @license lucide-react v0.460.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const Ia=O("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
115
|
+
* @license lucide-react v0.460.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Cv=O("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
120
|
+
* @license lucide-react v0.460.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const Ov=O("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"}]]);/**
|
|
125
|
+
* @license lucide-react v0.460.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const hi=O("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
130
|
+
* @license lucide-react v0.460.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Lh=O("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
135
|
+
* @license lucide-react v0.460.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const mr=O("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"}]]);/**
|
|
140
|
+
* @license lucide-react v0.460.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const _v=O("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
145
|
+
* @license lucide-react v0.460.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const hr=O("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
150
|
+
* @license lucide-react v0.460.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const wv=O("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
155
|
+
* @license lucide-react v0.460.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const qh=O("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"}]]);/**
|
|
160
|
+
* @license lucide-react v0.460.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const Rv=O("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
165
|
+
* @license lucide-react v0.460.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const Yh=O("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"}]]);/**
|
|
170
|
+
* @license lucide-react v0.460.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const Dv=O("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
175
|
+
* @license lucide-react v0.460.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const Uv=O("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
180
|
+
* @license lucide-react v0.460.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const Hv=O("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
185
|
+
* @license lucide-react v0.460.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const Bv=O("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/**
|
|
190
|
+
* @license lucide-react v0.460.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const Gh=O("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
195
|
+
* @license lucide-react v0.460.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const kh=O("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"}]]);/**
|
|
200
|
+
* @license lucide-react v0.460.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const Xh=O("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"}]]);/**
|
|
205
|
+
* @license lucide-react v0.460.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const Lv=O("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"}]]);/**
|
|
210
|
+
* @license lucide-react v0.460.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const qv=O("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
215
|
+
* @license lucide-react v0.460.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const Qh=O("MemoryStick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]);/**
|
|
220
|
+
* @license lucide-react v0.460.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const yr=O("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"}]]);/**
|
|
225
|
+
* @license lucide-react v0.460.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const Yv=O("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
230
|
+
* @license lucide-react v0.460.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const Gv=O("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/**
|
|
235
|
+
* @license lucide-react v0.460.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const kv=O("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
240
|
+
* @license lucide-react v0.460.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const ls=O("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
245
|
+
* @license lucide-react v0.460.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const Zh=O("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
250
|
+
* @license lucide-react v0.460.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const ao=O("PowerOff",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
255
|
+
* @license lucide-react v0.460.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const Xv=O("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
260
|
+
* @license lucide-react v0.460.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const no=O("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"}]]);/**
|
|
265
|
+
* @license lucide-react v0.460.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const Qv=O("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"}]]);/**
|
|
270
|
+
* @license lucide-react v0.460.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const On=O("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
275
|
+
* @license lucide-react v0.460.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const Zv=O("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
280
|
+
* @license lucide-react v0.460.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const Vv=O("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"}]]);/**
|
|
285
|
+
* @license lucide-react v0.460.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const Zu=O("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
290
|
+
* @license lucide-react v0.460.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const gr=O("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
295
|
+
* @license lucide-react v0.460.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const vr=O("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
300
|
+
* @license lucide-react v0.460.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const Kv=O("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
305
|
+
* @license lucide-react v0.460.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const Jv=O("Tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]);/**
|
|
310
|
+
* @license lucide-react v0.460.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const $v=O("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
315
|
+
* @license lucide-react v0.460.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const pr=O("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"}]]);/**
|
|
320
|
+
* @license lucide-react v0.460.0 - ISC
|
|
321
|
+
*
|
|
322
|
+
* This source code is licensed under the ISC license.
|
|
323
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
+
*/const Wv=O("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"}]]);/**
|
|
325
|
+
* @license lucide-react v0.460.0 - ISC
|
|
326
|
+
*
|
|
327
|
+
* This source code is licensed under the ISC license.
|
|
328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
+
*/const Fv=O("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
330
|
+
* @license lucide-react v0.460.0 - ISC
|
|
331
|
+
*
|
|
332
|
+
* This source code is licensed under the ISC license.
|
|
333
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
+
*/const as=O("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
335
|
+
* @license lucide-react v0.460.0 - ISC
|
|
336
|
+
*
|
|
337
|
+
* This source code is licensed under the ISC license.
|
|
338
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
+
*/const Vh=O("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"}]]);/**
|
|
340
|
+
* @license lucide-react v0.460.0 - ISC
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the ISC license.
|
|
343
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/const Iv=O("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Pv=[{path:"/",icon:yr,label:"Chat"},{path:"/tasks",icon:Lv,label:"Tasks"},{path:"/knowledge",icon:ts,label:"Knowledge"},{path:"/agents",icon:mi,label:"Agents"},{path:"/mcp",icon:ls,label:"MCP Servers"},{path:"/memory",icon:Ia,label:"Memory"},{path:"/audit",icon:Zu,label:"Audit Log"},{path:"/apps",icon:gr,label:"Apps"},{path:"/settings",icon:Vv,label:"Settings"}];function ep(){const e=Ht(),{conversations:t,activeConversationId:l,loadConversations:a,selectConversation:n,createConversation:u,deleteConversation:i}=Dh(),[s,r]=p.useState(null),o=e.pathname==="/";p.useEffect(()=>{a()},[]),p.useEffect(()=>{const h=()=>{G.getSystemStats().then(r).catch(()=>{})};h();const d=setInterval(h,3e3);return()=>clearInterval(d)},[]);const m=h=>`${(h/1073741824).toFixed(1)} GB`;return c.jsxs("aside",{className:"w-64 h-screen bg-surface border-r border-border flex flex-col shrink-0",children:[c.jsxs("div",{className:"h-14 flex items-center gap-2.5 px-4 border-b border-border",children:[c.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:c.jsx(Hh,{className:"w-4 h-4 text-white"})}),c.jsx("span",{className:"font-semibold text-foreground",children:"Agent DJ"})]}),c.jsx("nav",{className:"px-2 py-3 space-y-0.5",children:Pv.map(({path:h,icon:d,label:g})=>c.jsxs(_h,{to:h,className:({isActive:x})=>`flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors ${x?"bg-primary/10 text-primary font-medium":"text-foreground-secondary hover:bg-surface-hover hover:text-foreground"}`,children:[c.jsx(d,{className:"w-4 h-4"}),g]},h))}),o&&c.jsxs("div",{className:"flex-1 overflow-y-auto border-t border-border mt-2",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[c.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"Chats"}),c.jsx("button",{onClick:()=>u(),className:"p-1 rounded hover:bg-surface-hover text-muted hover:text-foreground transition-colors",title:"New chat",children:c.jsx(Zh,{className:"w-3.5 h-3.5"})})]}),c.jsx("div",{className:"px-2 space-y-0.5",children:t.map(h=>c.jsxs("div",{className:`group flex items-center gap-2 px-3 py-2 rounded-lg text-sm cursor-pointer transition-colors ${l===h.id?"bg-surface-hover text-foreground":"text-foreground-secondary hover:bg-surface-hover"}`,onClick:()=>n(h.id),children:[c.jsx(yr,{className:"w-3.5 h-3.5 shrink-0"}),c.jsx("span",{className:"truncate flex-1",children:h.title}),c.jsx("button",{onClick:d=>{d.stopPropagation(),i(h.id)},className:"opacity-0 group-hover:opacity-100 p-0.5 rounded hover:bg-danger/10 text-muted hover:text-danger transition-all",children:c.jsx(pr,{className:"w-3 h-3"})})]},h.id))})]}),s&&c.jsxs("div",{className:"border-t border-border p-3 space-y-2.5",children:[c.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"System"}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{className:"flex items-center justify-between text-xs",children:[c.jsxs("span",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(qh,{className:"w-3 h-3"})," CPU"]}),c.jsxs("span",{className:s.cpu.loadPercent>80?"text-danger":s.cpu.loadPercent>50?"text-warning":"text-success",children:[s.cpu.loadPercent,"%"]})]}),c.jsx("div",{className:"h-1.5 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${s.cpu.loadPercent>80?"bg-danger":s.cpu.loadPercent>50?"bg-warning":"bg-success"}`,style:{width:`${s.cpu.loadPercent}%`}})})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{className:"flex items-center justify-between text-xs",children:[c.jsxs("span",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(Qh,{className:"w-3 h-3"})," RAM"]}),c.jsxs("span",{className:s.memory.usagePercent>85?"text-danger":s.memory.usagePercent>60?"text-warning":"text-success",children:[m(s.memory.usedBytes)," / ",m(s.memory.totalBytes)]})]}),c.jsx("div",{className:"h-1.5 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${s.memory.usagePercent>85?"bg-danger":s.memory.usagePercent>60?"bg-warning":"bg-success"}`,style:{width:`${s.memory.usagePercent}%`}})})]}),c.jsxs("div",{className:"text-xs text-muted",children:["Uptime: ",s.uptime]})]})]})}const Kh=Rh(e=>({tasks:[],loadTasks:async t=>{const l=await G.listTasks(t);e({tasks:l})},cancelTask:async t=>{await G.cancelTask(t),e(l=>({tasks:l.tasks.map(a=>a.id===t?{...a,status:"cancelled"}:a)}))}})),tp={orchestrator:"text-primary",coder:"text-accent",researcher:"text-warning",writer:"text-success",system:"text-foreground-secondary",rag:"text-purple-400"};function lc({role:e,content:t,agentName:l,isStreaming:a}){return e==="user"?c.jsxs("div",{className:"flex gap-3 animate-fade-in",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:c.jsx(as,{className:"w-4 h-4 text-primary"})}),c.jsx("div",{className:"flex-1 pt-1",children:c.jsx("p",{className:"text-sm text-foreground whitespace-pre-wrap",children:t})})]}):c.jsxs("div",{className:"flex gap-3 animate-fade-in",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-surface border border-border flex items-center justify-center shrink-0",children:c.jsx(mi,{className:"w-4 h-4 text-foreground-secondary"})}),c.jsxs("div",{className:"flex-1 pt-1 min-w-0",children:[l&&c.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[c.jsx("span",{className:`text-xs font-medium ${tp[l]||"text-muted"}`,children:l}),a&&c.jsxs("span",{className:"flex gap-0.5",children:[c.jsx("span",{className:"w-1 h-1 rounded-full bg-primary animate-pulse"}),c.jsx("span",{className:"w-1 h-1 rounded-full bg-primary animate-pulse [animation-delay:150ms]"}),c.jsx("span",{className:"w-1 h-1 rounded-full bg-primary animate-pulse [animation-delay:300ms]"})]})]}),c.jsx("div",{className:"prose text-sm",children:lp(t)}),a&&!t&&c.jsxs("div",{className:"flex gap-1 py-2",children:[c.jsx("div",{className:"w-2 h-2 rounded-full bg-muted animate-bounce"}),c.jsx("div",{className:"w-2 h-2 rounded-full bg-muted animate-bounce [animation-delay:150ms]"}),c.jsx("div",{className:"w-2 h-2 rounded-full bg-muted animate-bounce [animation-delay:300ms]"})]})]})]})}function lp(e){return e.split(/(```[\s\S]*?```)/g).map((l,a)=>{if(l.startsWith("```")){const u=l.slice(3,-3).split(`
|
|
345
|
+
`),i=u[0]||"",s=u.slice(1).join(`
|
|
346
|
+
`);return c.jsxs("pre",{className:"bg-background border border-border rounded-lg p-3 overflow-x-auto my-2",children:[i&&c.jsx("div",{className:"text-xs text-muted mb-2 font-mono",children:i}),c.jsx("code",{className:"text-sm font-mono text-foreground",children:s})]},a)}let n=l.replace(/\*\*(.*?)\*\*/g,'<strong class="text-foreground font-semibold">$1</strong>');return n=n.replace(/`([^`]+)`/g,'<code class="bg-surface px-1.5 py-0.5 rounded text-xs font-mono text-accent">$1</code>'),n=n.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" class="text-primary hover:text-primary-hover underline" target="_blank" rel="noopener">$1</a>'),c.jsx("span",{dangerouslySetInnerHTML:{__html:n}},a)})}const uo={pending:{icon:hr,color:"text-muted",bg:"bg-muted/10",label:"Pending"},running:{icon:qv,color:"text-primary",bg:"bg-primary/10",label:"Running"},done:{icon:Lh,color:"text-success",bg:"bg-success/10",label:"Done"},failed:{icon:mr,color:"text-danger",bg:"bg-danger/10",label:"Failed"},cancelled:{icon:Bh,color:"text-warning",bg:"bg-warning/10",label:"Cancelled"}},ap={orchestrator:"border-primary/30",coder:"border-accent/30",researcher:"border-warning/30",writer:"border-success/30",system:"border-foreground-secondary/30",rag:"border-purple-400/30"};function ns({task:e,onCancel:t}){const l=uo[e.status]||uo.pending,a=l.icon,n=ap[e.agentName]||"border-border",u=e.startedAt?np(new Date(e.completedAt||Date.now()).getTime()-new Date(e.startedAt).getTime()):null;return c.jsxs("div",{className:`card border-l-2 ${n} animate-slide-up`,children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsxs("span",{className:`badge ${l.bg} ${l.color}`,children:[c.jsx(a,{className:`w-3 h-3 ${e.status==="running"?"animate-spin":""}`}),l.label]}),c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1",children:[c.jsx(mi,{className:"w-3 h-3"}),e.agentName]})]}),c.jsx("h4",{className:"text-sm font-medium text-foreground truncate",children:e.title})]}),e.status==="running"&&t&&c.jsx("button",{onClick:()=>t(e.id),className:"btn-ghost btn-sm text-muted hover:text-danger",children:c.jsx(Bh,{className:"w-3 h-3"})})]}),e.status==="running"&&c.jsxs("div",{className:"mt-3",children:[c.jsx("div",{className:"h-1.5 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-300",style:{width:`${e.progress||0}%`}})}),e.progress>0&&c.jsxs("span",{className:"text-xs text-muted mt-1",children:[e.progress,"%"]})]}),e.output&&e.status==="done"&&c.jsx("div",{className:"mt-2 p-2 bg-background rounded-lg",children:c.jsx("p",{className:"text-xs text-foreground-secondary font-mono line-clamp-3",children:e.output.slice(0,200)})}),e.error&&c.jsx("div",{className:"mt-2 p-2 bg-danger/5 rounded-lg border border-danger/20",children:c.jsx("p",{className:"text-xs text-danger font-mono",children:e.error})}),c.jsxs("div",{className:"flex items-center justify-between mt-2",children:[c.jsx("span",{className:"text-xs text-muted",children:new Date(e.createdAt).toLocaleTimeString()}),u&&c.jsx("span",{className:"text-xs text-muted",children:u})]})]})}function np(e){if(e<1e3)return`${e}ms`;const t=Math.floor(e/1e3);if(t<60)return`${t}s`;const l=Math.floor(t/60),a=t%60;return`${l}m ${a}s`}function up(){const{messages:e,activeConversationId:t,isStreaming:l,streamingContent:a,activeAgent:n,sendMessage:u,createConversation:i}=Dh(),{tasks:s,loadTasks:r,cancelTask:o}=Kh(),[m,h]=p.useState(""),d=p.useRef(null),g=p.useRef(null);p.useEffect(()=>{if(t){r(t);const f=setInterval(()=>r(t),2e3);return()=>clearInterval(f)}},[t]),p.useEffect(()=>{var f;(f=d.current)==null||f.scrollIntoView({behavior:"smooth"})},[e,a]);const x=async()=>{const f=m.trim();!f||l||(h(""),await u(f))},S=f=>{f.key==="Enter"&&!f.shiftKey&&(f.preventDefault(),x())},j=s.filter(f=>f.status==="running"||f.status==="pending"),y=s.filter(f=>f.status==="done"||f.status==="failed").slice(0,5);return c.jsxs("div",{className:"flex h-full",children:[c.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[c.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-4 space-y-6",children:[e.length===0&&!l&&c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mb-4",children:c.jsx(vr,{className:"w-8 h-8 text-primary"})}),c.jsx("h2",{className:"text-xl font-semibold text-foreground mb-2",children:"Agent DJ"}),c.jsx("p",{className:"text-sm text-muted max-w-md",children:"Your AI team is ready. Ask me to analyze code, research topics, write documents, manage files, or automate tasks. Every action is tracked on the task board."}),c.jsx("div",{className:"flex flex-wrap gap-2 mt-6 max-w-lg justify-center",children:["Analyze my project structure","Search the web for React best practices","List all large files on my system","Write a README for this project"].map(f=>c.jsx("button",{onClick:()=>{var v;h(f),(v=g.current)==null||v.focus()},className:"btn-secondary btn-sm text-xs",children:f},f))})]}),e.map(f=>c.jsx(lc,{role:f.role,content:f.content,agentName:f.agentName},f.id)),l&&a&&c.jsx(lc,{role:"assistant",content:a,agentName:n||void 0,isStreaming:!0}),l&&!a&&c.jsx(lc,{role:"assistant",content:"",agentName:n||void 0,isStreaming:!0}),c.jsx("div",{ref:d})]}),c.jsxs("div",{className:"border-t border-border px-6 py-4",children:[c.jsx("div",{className:"relative flex items-end gap-2 max-w-4xl mx-auto",children:c.jsxs("div",{className:"flex-1 relative",children:[c.jsx("textarea",{ref:g,value:m,onChange:f=>h(f.target.value),onKeyDown:S,placeholder:"Send a message...",rows:1,className:"input resize-none pr-12 min-h-[44px] max-h-[200px]",style:{height:"auto"},onInput:f=>{const v=f.target;v.style.height="auto",v.style.height=`${Math.min(v.scrollHeight,200)}px`},disabled:l}),c.jsx("button",{onClick:x,disabled:!m.trim()||l,className:"absolute right-2 bottom-2 p-1.5 rounded-lg bg-primary text-white hover:bg-primary-hover disabled:opacity-30 disabled:hover:bg-primary transition-colors",children:c.jsx(Zv,{className:"w-4 h-4"})})]})}),c.jsx("p",{className:"text-xs text-muted text-center mt-2",children:"Press Enter to send, Shift+Enter for new line"})]})]}),c.jsx("div",{className:"w-80 border-l border-border bg-surface overflow-y-auto shrink-0 hidden lg:block",children:c.jsxs("div",{className:"p-4",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Task Board"}),j.length===0&&y.length===0&&c.jsx("div",{className:"text-center py-8",children:c.jsx("p",{className:"text-xs text-muted",children:"Tasks will appear here when agents perform actions"})}),j.length>0&&c.jsxs("div",{className:"space-y-2 mb-4",children:[c.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"Active"}),j.map(f=>c.jsx(ns,{task:f,onCancel:o},f.id))]}),y.length>0&&c.jsxs("div",{className:"space-y-2",children:[c.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"Recent"}),y.map(f=>c.jsx(ns,{task:f},f.id))]})]})})]})}function ip(){const{tasks:e,loadTasks:t,cancelTask:l}=Kh();p.useEffect(()=>{t();const r=setInterval(()=>t(),3e3);return()=>clearInterval(r)},[]);const a=e.filter(r=>r.status==="pending"),n=e.filter(r=>r.status==="running"),u=e.filter(r=>r.status==="done"),i=e.filter(r=>r.status==="failed"||r.status==="cancelled"),s=[{title:"Pending",icon:hr,tasks:a,color:"text-muted"},{title:"Running",icon:kv,tasks:n,color:"text-primary"},{title:"Done",icon:Lh,tasks:u,color:"text-success"},{title:"Failed",icon:mr,tasks:i,color:"text-danger"}];return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"border-b border-border px-6 py-4",children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Task Board"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"Track agent actions in real-time"})]}),c.jsx("div",{className:"flex-1 overflow-x-auto p-6",children:c.jsx("div",{className:"flex gap-4 min-w-max h-full",children:s.map(({title:r,icon:o,tasks:m,color:h})=>c.jsxs("div",{className:"w-80 flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsx(o,{className:`w-4 h-4 ${h}`}),c.jsx("h3",{className:"text-sm font-medium text-foreground",children:r}),c.jsx("span",{className:"badge-muted",children:m.length})]}),c.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto",children:[m.map(d=>c.jsx(ns,{task:d,onCancel:d.status==="running"?l:void 0},d.id)),m.length===0&&c.jsx("div",{className:"card border-dashed text-center py-8",children:c.jsx("p",{className:"text-xs text-muted",children:"No tasks"})})]})]},r))})})]})}function cp(){const[e,t]=p.useState([]),[l,a]=p.useState([]),[n,u]=p.useState(null),[i,s]=p.useState(""),[r,o]=p.useState([]),[m,h]=p.useState(!1),d=p.useRef(null);p.useEffect(()=>{g()},[n]);const g=async()=>{const[f,v]=await Promise.all([G.listCollections(),G.listDocuments(n||void 0)]);t(f),a(v)},x=async f=>{const v=f.target.files;if(!(!v||v.length===0)){h(!0);try{for(const b of v)await G.uploadDocument(b,n||"default");await g()}catch(b){console.error("Upload error:",b)}finally{h(!1),d.current&&(d.current.value="")}}},S=async()=>{if(!i.trim())return;const f=await G.searchKnowledge(i,n||void 0);o(f)},j=async f=>{await G.deleteDocument(f),await g()},y=f=>f<1024?`${f} B`:f<1048576?`${(f/1024).toFixed(1)} KB`:`${(f/1048576).toFixed(1)} MB`;return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsx("div",{className:"border-b border-border px-6 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Knowledge Base"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"Upload documents for RAG search"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{onClick:()=>{var f;return(f=d.current)==null?void 0:f.click()},className:"btn-primary btn-sm",disabled:m,children:[c.jsx(Fv,{className:"w-3.5 h-3.5"}),m?"Uploading...":"Upload"]}),c.jsx("input",{ref:d,type:"file",multiple:!0,accept:".pdf,.docx,.txt,.md,.json,.yaml,.yml,.py,.ts,.js,.go,.rs,.java,.html,.css",className:"hidden",onChange:x})]})]})}),c.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[c.jsxs("div",{className:"w-56 border-r border-border p-4 overflow-y-auto",children:[c.jsx("h3",{className:"text-xs font-medium text-muted uppercase tracking-wider mb-2",children:"Collections"}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs("button",{onClick:()=>u(null),className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-left transition-colors ${n?"text-foreground-secondary hover:bg-surface-hover":"bg-primary/10 text-primary"}`,children:[c.jsx(ts,{className:"w-3.5 h-3.5"}),"All Documents"]}),e.map(f=>c.jsxs("button",{onClick:()=>u(f.name),className:`w-full flex items-center justify-between gap-2 px-3 py-2 rounded-lg text-sm text-left transition-colors ${n===f.name?"bg-primary/10 text-primary":"text-foreground-secondary hover:bg-surface-hover"}`,children:[c.jsxs("span",{className:"flex items-center gap-2 truncate",children:[c.jsx(Gh,{className:"w-3.5 h-3.5 shrink-0"}),f.name]}),c.jsx("span",{className:"badge-muted",children:f.documentCount})]},f.name))]})]}),c.jsxs("div",{className:"flex-1 p-6 overflow-y-auto",children:[c.jsxs("div",{className:"flex gap-2 mb-6",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx(On,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted"}),c.jsx("input",{type:"text",value:i,onChange:f=>s(f.target.value),onKeyDown:f=>f.key==="Enter"&&S(),placeholder:"Search knowledge base...",className:"input pl-10"})]}),c.jsx("button",{onClick:S,className:"btn-primary btn-sm",children:"Search"})]}),r.length>0&&c.jsxs("div",{className:"mb-6",children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground mb-3",children:["Search Results (",r.length,")"]}),c.jsx("div",{className:"space-y-2",children:r.map((f,v)=>c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"badge-info",children:f.collection}),c.jsx("span",{className:"text-xs text-muted",children:f.filename}),c.jsxs("span",{className:"text-xs text-muted",children:["Score: ",f.score.toFixed(3)]})]}),c.jsx("p",{className:"text-sm text-foreground-secondary line-clamp-3",children:f.content})]},v))})]}),c.jsxs("h3",{className:"text-sm font-medium text-foreground mb-3",children:["Documents (",l.length,")"]}),l.length===0?c.jsxs("div",{className:"card border-dashed text-center py-12",children:[c.jsx(ts,{className:"w-8 h-8 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-muted",children:"No documents yet"}),c.jsx("p",{className:"text-xs text-muted mt-1",children:"Upload files to build your knowledge base"})]}):c.jsx("div",{className:"space-y-2",children:l.map(f=>c.jsxs("div",{className:"card flex items-center gap-3 group",children:[c.jsx(Hv,{className:"w-5 h-5 text-muted shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:f.filename}),c.jsxs("p",{className:"text-xs text-muted",children:[f.chunk_count," chunks ยท ",y(f.size_bytes)," ยท ",f.collection]})]}),c.jsx("span",{className:"text-xs text-muted",children:new Date(f.created_at).toLocaleDateString()}),c.jsx("button",{onClick:()=>j(f.id),className:"opacity-0 group-hover:opacity-100 p-1.5 rounded-lg hover:bg-danger/10 text-muted hover:text-danger transition-all",children:c.jsx(pr,{className:"w-3.5 h-3.5"})})]},f.id))})]})]})]})}const sp={orchestrator:Ia,coder:wv,researcher:On,writer:Gv,system:$v,rag:Rv},rp={orchestrator:"bg-primary/10 text-primary border-primary/20",coder:"bg-accent/10 text-accent border-accent/20",researcher:"bg-warning/10 text-warning border-warning/20",writer:"bg-success/10 text-success border-success/20",system:"bg-foreground-secondary/10 text-foreground-secondary border-foreground-secondary/20",rag:"bg-purple-400/10 text-purple-400 border-purple-400/20"};function fp(){const[e,t]=p.useState([]),[l,a]=p.useState([]);return p.useEffect(()=>{Promise.all([G.listAgents(),G.listTools()]).then(([n,u])=>{t(n),a(u)})},[]),c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"border-b border-border px-6 py-4",children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Agents"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"Your AI team of specialized agents"})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4 mb-8",children:e.map(n=>{const u=sp[n.name]||mi,i=rp[n.name]||"bg-surface text-muted";return c.jsx("div",{className:"card hover:border-border-hover transition-colors",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center ${i} border`,children:c.jsx(u,{className:"w-5 h-5"})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h3",{className:"text-sm font-semibold text-foreground capitalize",children:n.name}),c.jsxs("div",{className:"flex items-center gap-1",children:[n.enabled?c.jsx(hi,{className:"w-3.5 h-3.5 text-success"}):c.jsx(_v,{className:"w-3.5 h-3.5 text-muted"}),c.jsx("span",{className:"text-xs text-muted",children:n.enabled?"Active":"Disabled"})]})]}),c.jsx("p",{className:"text-xs text-foreground-secondary mt-1",children:n.description}),c.jsx("div",{className:"flex items-center gap-1 mt-3",children:c.jsx("span",{className:`badge ${n.status==="running"?"badge-warning":"badge-muted"}`,children:n.status||"idle"})})]})]})},n.name)})}),c.jsxs("div",{children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Vh,{className:"w-4 h-4"}),"Available Tools (",l.length,")"]}),c.jsx("div",{className:"flex flex-wrap gap-2",children:l.map(n=>c.jsx("span",{className:"badge bg-surface border border-border text-foreground-secondary",children:n},n))})]})]})]})}function op(){const[e,t]=p.useState([]),[l,a]=p.useState([]),[n,u]=p.useState(!1),[i,s]=p.useState({name:"",command:"",args:""}),[r,o]=p.useState(null),[m,h]=p.useState("all"),[d,g]=p.useState("");p.useEffect(()=>{x(),S()},[]);const x=async()=>{try{const E=await G.listMcpServers();t(E)}catch(E){console.error("Failed to load MCP servers:",E)}},S=async()=>{try{const E=await G.getMcpSuggestions();a(E)}catch(E){console.error("Failed to load suggested servers:",E)}},j=async()=>{if(!(!i.name||!i.command)){o("add");try{await G.addMcpServer({name:i.name,command:i.command,args:i.args.split(" ").filter(Boolean)}),s({name:"",command:"",args:""}),u(!1),await x()}finally{o(null)}}},y=async E=>{const re={},Bt=Object.entries(E.envHint);if(Bt.length>0)for(const[ol,ze]of Bt){const M=window.prompt(`${ol}
|
|
347
|
+
|
|
348
|
+
${ze}`);if(M===null)return;M.trim()&&(re[ol]=M.trim())}o(E.name);try{await G.addMcpServer({name:E.name,command:E.command,args:E.args,env:Object.keys(re).length>0?re:void 0}),await x()}finally{o(null)}},f=async E=>{o(E);try{await G.connectMcpServer(E),await x()}finally{o(null)}},v=async E=>{await G.disconnectMcpServer(E),await x()},b=async E=>{await G.removeMcpServer(E),await x()},A={connected:c.jsx(hi,{className:"w-4 h-4 text-success"}),disconnected:c.jsx(ao,{className:"w-4 h-4 text-muted"}),error:c.jsx(Ov,{className:"w-4 h-4 text-danger"})},C=new Set(e.map(E=>E.name)),T=["all",...Array.from(new Set(l.map(E=>E.category||"Other")))],z=l.filter(E=>!C.has(E.name)).filter(E=>m==="all"||(E.category||"Other")===m).filter(E=>!d||E.name.toLowerCase().includes(d.toLowerCase())||E.description.toLowerCase().includes(d.toLowerCase())),_=e.filter(E=>E.status==="connected").length,U=e.reduce((E,re)=>E+re.tools.length,0);return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsx("div",{className:"border-b border-border px-6 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"MCP Servers"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:_>0?`${_} connected ยท ${U} tools available`:"Connect external tool servers via Model Context Protocol"})]}),c.jsxs("button",{onClick:()=>u(!n),className:"btn-primary btn-sm",children:[c.jsx(Zh,{className:"w-3.5 h-3.5"}),"Custom Server"]})]})}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[n&&c.jsxs("div",{className:"card mb-6 animate-slide-up",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Add Custom MCP Server"}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("input",{type:"text",placeholder:"Server name (e.g., My Custom Server)",value:i.name,onChange:E=>s({...i,name:E.target.value}),className:"input"}),c.jsx("input",{type:"text",placeholder:"Command (e.g., npx)",value:i.command,onChange:E=>s({...i,command:E.target.value}),className:"input"}),c.jsx("input",{type:"text",placeholder:"Arguments (e.g., -y @my-org/my-mcp-server)",value:i.args,onChange:E=>s({...i,args:E.target.value}),className:"input"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:j,disabled:r==="add",className:"btn-primary btn-sm",children:r==="add"?"Adding...":"Add & Connect"}),c.jsx("button",{onClick:()=>u(!1),className:"btn-secondary btn-sm",children:"Cancel"})]})]})]}),e.length>0&&c.jsxs("div",{className:"mb-6",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Your Servers"}),c.jsx("div",{className:"space-y-3",children:e.map(E=>c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface border border-border flex items-center justify-center",children:c.jsx(ls,{className:"w-5 h-5 text-foreground-secondary"})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground",children:E.name}),A[E.status],c.jsx("span",{className:"text-xs text-muted capitalize",children:E.status})]}),c.jsxs("p",{className:"text-xs text-muted font-mono",children:[E.command," ",E.args.join(" ")]})]})]}),c.jsxs("div",{className:"flex gap-1",children:[E.status==="connected"?c.jsx("button",{onClick:()=>v(E.id),className:"btn-ghost btn-sm text-warning",title:"Disconnect",children:c.jsx(ao,{className:"w-3.5 h-3.5"})}):c.jsx("button",{onClick:()=>f(E.id),disabled:r===E.id,className:"btn-ghost btn-sm text-success",title:"Connect",children:c.jsx(Xv,{className:"w-3.5 h-3.5"})}),c.jsx("button",{onClick:()=>b(E.id),className:"btn-ghost btn-sm text-danger",title:"Remove",children:c.jsx(pr,{className:"w-3.5 h-3.5"})})]})]}),E.error&&c.jsx("div",{className:"mt-2 p-2 bg-danger/5 rounded-lg border border-danger/20",children:c.jsx("p",{className:"text-xs text-danger",children:E.error})}),E.tools.length>0&&c.jsxs("div",{className:"mt-3",children:[c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1 mb-2",children:[c.jsx(Vh,{className:"w-3 h-3"}),E.tools.length," tools available"]}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:E.tools.map(re=>c.jsx("span",{className:"badge bg-surface border border-border text-foreground-secondary",title:re.description,children:re.name},re.name))})]})]},E.id))})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[c.jsx(vr,{className:"w-4 h-4 text-primary"}),"Server Catalog"]}),c.jsx("div",{className:"flex items-center gap-2",children:c.jsxs("div",{className:"relative",children:[c.jsx(On,{className:"w-3.5 h-3.5 text-muted absolute left-2.5 top-1/2 -translate-y-1/2"}),c.jsx("input",{type:"text",placeholder:"Search...",value:d,onChange:E=>g(E.target.value),className:"input pl-8 py-1.5 text-xs w-40"})]})})]}),c.jsx("div",{className:"flex flex-wrap gap-1.5 mb-4",children:T.map(E=>c.jsx("button",{onClick:()=>h(E),className:`text-xs px-2.5 py-1 rounded-full transition-colors ${m===E?"bg-primary text-white":"bg-surface border border-border text-muted hover:text-foreground"}`,children:E==="all"?"All":E},E))}),z.length===0?c.jsx("div",{className:"card border-dashed text-center py-8",children:c.jsx("p",{className:"text-sm text-muted",children:C.size>0&&l.length>0?"All available servers are already added":"No servers match your search"})}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:z.map(E=>c.jsxs("div",{className:"card border-dashed hover:border-primary/40 transition-colors group",children:[c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h4",{className:"text-sm font-medium text-foreground",children:E.name}),E.category&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-surface border border-border text-muted",children:E.category})]}),c.jsx("p",{className:"text-xs text-muted mt-0.5 line-clamp-2",children:E.description})]}),c.jsx("button",{onClick:()=>y(E),disabled:r===E.name,className:"btn-ghost btn-sm text-primary shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",title:"Add & Connect",children:r===E.name?c.jsx("span",{className:"text-xs animate-pulse",children:"..."}):c.jsx(Yh,{className:"w-3.5 h-3.5"})})]}),Object.keys(E.envHint).length>0&&c.jsxs("div",{className:"mt-2 flex items-center gap-1",children:[c.jsx(Xh,{className:"w-3 h-3 text-muted shrink-0"}),c.jsxs("span",{className:"text-[10px] text-muted truncate",children:["Requires: ",Object.keys(E.envHint).join(", ")]})]})]},E.name))})]}),e.length===0&&!n&&z.length===0&&l.length===0&&c.jsxs("div",{className:"card border-dashed text-center py-12",children:[c.jsx(ls,{className:"w-8 h-8 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-muted",children:"No MCP servers configured"}),c.jsx("p",{className:"text-xs text-muted mt-1",children:"Add servers to extend your agent's capabilities"})]})]})]})}function dp(){const[e,t]=p.useState(null),[l,a]=p.useState(null),[n,u]=p.useState(!1),[i,s]=p.useState({provider:"anthropic",apiKey:"",model:""}),[r,o]=p.useState(!1);p.useEffect(()=>{G.getSettings().then(t),G.getSystemStats().then(a);const g=setInterval(()=>G.getSystemStats().then(a),3e3);return()=>clearInterval(g)},[]);const m=async()=>{e&&(o(!0),await G.updateSettings({security:e.security,workspace:e.workspace}),o(!1))},h=async()=>{if(!i.apiKey)return;await G.addProvider(i),s({provider:"anthropic",apiKey:"",model:""});const g=await G.getSettings();t(g)},d=g=>`${(g/1073741824).toFixed(1)} GB`;return e?c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"border-b border-border px-6 py-4",children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Settings"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"Configure your Agent DJ instance"})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6 max-w-3xl space-y-8",children:[l&&c.jsxs("section",{children:[c.jsxs("h2",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Hh,{className:"w-4 h-4"})," System Resources"]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1.5",children:[c.jsx(qh,{className:"w-3.5 h-3.5"})," CPU"]}),c.jsxs("span",{className:`text-sm font-semibold ${l.cpu.loadPercent>80?"text-danger":l.cpu.loadPercent>50?"text-warning":"text-success"}`,children:[l.cpu.loadPercent,"%"]})]}),c.jsx("div",{className:"h-2 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-700 ${l.cpu.loadPercent>80?"bg-danger":l.cpu.loadPercent>50?"bg-warning":"bg-success"}`,style:{width:`${l.cpu.loadPercent}%`}})}),c.jsxs("p",{className:"text-xs text-muted mt-1",children:[l.cpu.cores," cores"]})]}),c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1.5",children:[c.jsx(Qh,{className:"w-3.5 h-3.5"})," Memory"]}),c.jsxs("span",{className:`text-sm font-semibold ${l.memory.usagePercent>85?"text-danger":l.memory.usagePercent>60?"text-warning":"text-success"}`,children:[l.memory.usagePercent,"%"]})]}),c.jsx("div",{className:"h-2 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-700 ${l.memory.usagePercent>85?"bg-danger":l.memory.usagePercent>60?"bg-warning":"bg-success"}`,style:{width:`${l.memory.usagePercent}%`}})}),c.jsxs("p",{className:"text-xs text-muted mt-1",children:[d(l.memory.usedBytes)," / ",d(l.memory.totalBytes)]})]}),c.jsxs("div",{className:"card",children:[c.jsx("div",{className:"flex items-center justify-between mb-2",children:c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1.5",children:[c.jsx(kh,{className:"w-3.5 h-3.5"})," Uptime"]})}),c.jsx("p",{className:"text-lg font-semibold text-foreground",children:l.uptime})]})]})]}),c.jsxs("section",{children:[c.jsxs("h2",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Xh,{className:"w-4 h-4"})," API Keys"]}),c.jsx("div",{className:"space-y-2 mb-4",children:e.providers.map(g=>c.jsxs("div",{className:"card flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-sm font-medium text-foreground capitalize",children:g.provider}),c.jsx("span",{className:"text-xs text-muted ml-2 font-mono",children:n?g.apiKey:"****...****"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[g.provider===e.defaultProvider&&c.jsx("span",{className:"badge-success",children:"default"}),c.jsx("button",{onClick:()=>u(!n),className:"btn-ghost btn-sm",children:n?c.jsx(Dv,{className:"w-3.5 h-3.5"}):c.jsx(Uv,{className:"w-3.5 h-3.5"})})]})]},g.provider))}),c.jsxs("div",{className:"card",children:[c.jsx("h4",{className:"text-xs font-medium text-muted mb-2",children:"Add Provider"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("select",{value:i.provider,onChange:g=>s({...i,provider:g.target.value}),className:"input w-36",children:[c.jsx("option",{value:"anthropic",children:"Anthropic"}),c.jsx("option",{value:"openai",children:"OpenAI"}),c.jsx("option",{value:"google",children:"Google"}),c.jsx("option",{value:"groq",children:"Groq"}),c.jsx("option",{value:"ollama",children:"Ollama"})]}),c.jsx("input",{type:"password",placeholder:"API Key",value:i.apiKey,onChange:g=>s({...i,apiKey:g.target.value}),className:"input flex-1"}),c.jsx("button",{onClick:h,className:"btn-primary btn-sm",children:"Add"})]})]})]}),c.jsxs("section",{children:[c.jsxs("h2",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Zu,{className:"w-4 h-4"})," Security"]}),c.jsxs("div",{className:"card",children:[c.jsx("label",{className:"text-xs text-muted block mb-2",children:"Permission Level"}),c.jsx("div",{className:"flex gap-2",children:["strict","balanced","permissive"].map(g=>c.jsx("button",{onClick:()=>t({...e,security:g}),className:`btn-sm rounded-lg capitalize ${e.security===g?"bg-primary text-white":"bg-surface border border-border text-foreground-secondary hover:bg-surface-hover"}`,children:g},g))}),c.jsxs("p",{className:"text-xs text-muted mt-2",children:[e.security==="strict"&&"Ask before every file access and command execution",e.security==="balanced"&&"Auto-allow reads in workspace, ask for writes and commands",e.security==="permissive"&&"Only ask for destructive operations"]})]})]}),c.jsxs("section",{children:[c.jsxs("h2",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Gh,{className:"w-4 h-4"})," Workspace"]}),c.jsxs("div",{className:"card",children:[c.jsx("input",{type:"text",value:e.workspace,onChange:g=>t({...e,workspace:g.target.value}),className:"input font-mono"}),c.jsx("p",{className:"text-xs text-muted mt-2",children:"Directory where agents operate by default"})]})]}),c.jsxs("button",{onClick:m,className:"btn-primary",disabled:r,children:[c.jsx(Qv,{className:"w-4 h-4"}),r?"Saving...":"Save Changes"]})]})]}):c.jsx("div",{className:"p-6 text-muted",children:"Loading..."})}function mp(){const[e,t]=p.useState([]),[l,a]=p.useState("");p.useEffect(()=>{G.getAuditLog(200).then(t);const i=setInterval(()=>G.getAuditLog(200).then(t),5e3);return()=>clearInterval(i)},[]);const n=l?e.filter(i=>{var s,r,o;return i.action.toLowerCase().includes(l.toLowerCase())||((s=i.tool_name)==null?void 0:s.toLowerCase().includes(l.toLowerCase()))||((r=i.agent_name)==null?void 0:r.toLowerCase().includes(l.toLowerCase()))||((o=i.input)==null?void 0:o.toLowerCase().includes(l.toLowerCase()))}):e,u=i=>{switch(i){case"success":return c.jsx(hi,{className:"w-3.5 h-3.5 text-success"});case"error":return c.jsx(mr,{className:"w-3.5 h-3.5 text-danger"});case"denied":return c.jsx(Wv,{className:"w-3.5 h-3.5 text-warning"});default:return c.jsx(Zu,{className:"w-3.5 h-3.5 text-muted"})}};return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"border-b border-border px-6 py-4",children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Audit Log"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"History of all agent actions and tool executions"})]}),c.jsx("div",{className:"px-6 py-3 border-b border-border",children:c.jsxs("div",{className:"relative max-w-md",children:[c.jsx(On,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted"}),c.jsx("input",{type:"text",placeholder:"Filter by action, tool, agent...",value:l,onChange:i=>a(i.target.value),className:"input pl-10"})]})}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:n.length===0?c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Zu,{className:"w-8 h-8 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-muted",children:"No audit entries yet"})]}):c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-border text-left",children:[c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Status"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Time"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Agent"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Action"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Input"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Duration"})]})}),c.jsx("tbody",{children:n.map(i=>{var s;return c.jsxs("tr",{className:"border-b border-border hover:bg-surface-hover transition-colors",children:[c.jsx("td",{className:"px-6 py-3",children:u(i.status)}),c.jsx("td",{className:"px-6 py-3 text-xs text-muted font-mono",children:new Date(i.timestamp).toLocaleTimeString()}),c.jsx("td",{className:"px-6 py-3",children:c.jsx("span",{className:"text-xs font-medium text-foreground-secondary",children:i.agent_name||"-"})}),c.jsx("td",{className:"px-6 py-3",children:c.jsx("span",{className:"badge bg-surface border border-border text-foreground-secondary",children:i.action})}),c.jsx("td",{className:"px-6 py-3 max-w-xs",children:c.jsx("span",{className:"text-xs text-muted font-mono truncate block",children:((s=i.input)==null?void 0:s.slice(0,80))||"-"})}),c.jsx("td",{className:"px-6 py-3 text-xs text-muted",children:i.duration_ms?`${i.duration_ms}ms`:"-"})]},i.id)})})]})})]})}function hp(){const[e,t]=p.useState([]),[l,a]=p.useState(null),[n,u]=p.useState(!0),[i,s]=p.useState(null);p.useEffect(()=>{r()},[]);const r=async()=>{u(!0),s(null);try{const[d,g]=await Promise.all([G.getMemory().catch(()=>null),G.getProfile().catch(()=>null)]),x=[];if(d!=null&&d.categories){for(const[S,j]of Object.entries(d.categories))if(Array.isArray(j))for(const y of j)x.push({category:S,key:y,data:null})}t(x),a(g&&Object.keys(g).length>0?g:null)}catch(d){console.error("Failed to load memory:",d),s(d.message||"Failed to load memory")}finally{u(!1)}},o={user:c.jsx(as,{className:"w-4 h-4"}),projects:c.jsx(Bv,{className:"w-4 h-4"}),feedback:c.jsx(yr,{className:"w-4 h-4"}),entities:c.jsx(Jv,{className:"w-4 h-4"})},m={user:"text-primary border-primary/20 bg-primary/10",projects:"text-success border-success/20 bg-success/10",feedback:"text-warning border-warning/20 bg-warning/10",entities:"text-accent border-accent/20 bg-accent/10"},h=e.reduce((d,g)=>(d[g.category]||(d[g.category]=[]),d[g.category].push(g),d),{});return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsx("div",{className:"border-b border-border px-6 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsxs("h1",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[c.jsx(Ia,{className:"w-5 h-5 text-primary"}),"Memory"]}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"What Agent DJ remembers about you and your projects"})]}),c.jsxs("button",{onClick:r,className:"btn-secondary btn-sm",children:[c.jsx(no,{className:`w-3.5 h-3.5 ${n?"animate-spin":""}`}),"Refresh"]})]})}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-6",children:[n&&c.jsxs("div",{className:"text-center py-12",children:[c.jsx(no,{className:"w-6 h-6 text-muted animate-spin mx-auto mb-2"}),c.jsx("p",{className:"text-sm text-muted",children:"Loading memories..."})]}),i&&!n&&c.jsxs("div",{className:"card border-danger/20 bg-danger/5 text-center py-6",children:[c.jsx("p",{className:"text-sm text-danger",children:i}),c.jsx("button",{onClick:r,className:"btn-secondary btn-sm mt-3",children:"Try Again"})]}),!n&&l&&c.jsxs("div",{className:"card",children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2 mb-3",children:[c.jsx(as,{className:"w-4 h-4 text-primary"}),"User Profile"]}),c.jsx("div",{className:"grid grid-cols-2 gap-2",children:Object.entries(l).map(([d,g])=>c.jsxs("div",{className:"text-xs",children:[c.jsxs("span",{className:"text-muted",children:[d,": "]}),c.jsx("span",{className:"text-foreground-secondary",children:typeof g=="object"?JSON.stringify(g):String(g)})]},d))})]}),!n&&Object.entries(h).map(([d,g])=>c.jsxs("div",{children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2 mb-3",children:[o[d]||c.jsx(Ia,{className:"w-4 h-4"}),c.jsx("span",{className:"capitalize",children:d}),c.jsx("span",{className:"badge-muted",children:g.length})]}),c.jsx("div",{className:"space-y-2",children:g.map(x=>c.jsx("div",{className:`card border-l-2 ${m[d]||"border-border"}`,children:c.jsx("div",{className:"flex items-start justify-between",children:c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("h4",{className:"text-sm font-medium text-foreground",children:x.key}),x.data&&c.jsx("pre",{className:"text-xs text-foreground-secondary mt-1 whitespace-pre-wrap break-words max-h-32 overflow-y-auto",children:typeof x.data=="object"?JSON.stringify(x.data,null,2):String(x.data)})]})})},`${x.category}-${x.key}`))})]},d)),!n&&!i&&e.length===0&&!l&&c.jsxs("div",{className:"card border-dashed text-center py-12",children:[c.jsx(Ia,{className:"w-8 h-8 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-muted",children:"No memories stored yet"}),c.jsx("p",{className:"text-xs text-muted mt-1",children:"Agent DJ will remember things as you interact with it"})]})]})]})}const io={education:"bg-blue-500/20 text-blue-400",health:"bg-green-500/20 text-green-400",photography:"bg-purple-500/20 text-purple-400",utilities:"bg-yellow-500/20 text-yellow-400",entertainment:"bg-pink-500/20 text-pink-400",lifestyle:"bg-cyan-500/20 text-cyan-400",productivity:"bg-orange-500/20 text-orange-400",social:"bg-indigo-500/20 text-indigo-400",finance:"bg-emerald-500/20 text-emerald-400",developer:"bg-red-500/20 text-red-400",other:"bg-gray-500/20 text-gray-400"},co={education:"๐",health:"๐ช",photography:"๐ธ",utilities:"๐ง",entertainment:"๐ฎ",lifestyle:"โจ",productivity:"โก",social:"๐ฌ",finance:"๐ฐ",developer:"๐จโ๐ป",other:"๐ฆ"};function yp(){const e=sr(),[t,l]=p.useState([]),[a,n]=p.useState([]),[u,i]=p.useState(""),[s,r]=p.useState("all"),[o,m]=p.useState(!0);p.useEffect(()=>{h(),d()},[]),p.useEffect(()=>{h()},[u,s]);async function h(){try{const x={};u&&(x.search=u),s!=="all"&&(x.category=s);const S=await G.listApps(x);l(S)}catch(x){console.error("Failed to load apps:",x)}finally{m(!1)}}async function d(){try{const x=await G.getAppCategories();n(x)}catch(x){console.error("Failed to load categories:",x)}}const g=a.reduce((x,S)=>x+S.count,0);return c.jsx("div",{className:"h-full overflow-y-auto",children:c.jsxs("div",{className:"max-w-6xl mx-auto p-6 space-y-6",children:[c.jsx("div",{children:c.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[c.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:c.jsx(gr,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Apps"}),c.jsxs("p",{className:"text-sm text-foreground-secondary",children:[g," iOS apps available for install"]})]})]})}),c.jsxs("div",{className:"relative",children:[c.jsx(On,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted"}),c.jsx("input",{type:"text",placeholder:"Search apps...",value:u,onChange:x=>i(x.target.value),className:"input pl-10 w-full"})]}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsxs("button",{onClick:()=>r("all"),className:`px-3 py-1.5 rounded-full text-xs font-medium transition-colors ${s==="all"?"bg-primary text-white":"bg-surface-hover text-foreground-secondary hover:text-foreground"}`,children:["All (",g,")"]}),a.map(x=>c.jsxs("button",{onClick:()=>r(x.name),className:`px-3 py-1.5 rounded-full text-xs font-medium transition-colors ${s===x.name?"bg-primary text-white":"bg-surface-hover text-foreground-secondary hover:text-foreground"}`,children:[co[x.name]||"๐ฆ"," ",x.name," (",x.count,")"]},x.name))]}),o?c.jsx("div",{className:"text-center py-12 text-muted",children:"Loading apps..."}):t.length===0?c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Yv,{className:"w-12 h-12 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-foreground-secondary",children:"No apps found"}),c.jsx("p",{className:"text-sm text-muted mt-1",children:"Try a different search or category"})]}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:t.map(x=>c.jsx("div",{onClick:()=>e(`/apps/${x.id}`),className:"card hover:border-primary/30 cursor-pointer transition-all group",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-primary/20 to-accent/20 flex items-center justify-center shrink-0 text-2xl",children:co[x.category]||"๐ฆ"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h3",{className:"font-semibold text-foreground truncate",children:x.name}),x.status==="available"&&c.jsx(vr,{className:"w-3.5 h-3.5 text-accent shrink-0"})]}),c.jsx("p",{className:"text-xs text-foreground-secondary mt-0.5 line-clamp-2",children:x.shortDescription}),c.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[c.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full ${io[x.category]||io.other}`,children:x.category}),c.jsxs("span",{className:"text-xs text-muted",children:["v",x.version]}),c.jsxs("span",{className:"text-xs text-muted",children:[x.sizeMb," MB"]})]})]}),c.jsx(Cv,{className:"w-4 h-4 text-muted group-hover:text-primary transition-colors shrink-0 mt-1"})]})},x.id))})]})})}const so={quick_install:{name:"Quick Install",icon:"๐ข",description:"Connect iPhone via USB with Developer Mode enabled. Agent signs and installs directly.",requirements:"Developer Mode ON, USB cable, Mac/PC",available:!0},altstore:{name:"AltStore",icon:"๐ต",description:"Install via AltStore on your device. Requires AltServer running on a computer.",requirements:"AltStore installed, AltServer on Mac/PC",available:!0},trollstore:{name:"TrollStore",icon:"๐ฃ",description:"Permanent sideloading with no resign. Only available on specific iOS versions.",requirements:"iOS 14.0-16.6.1 or 17.0, TrollStore installed",available:!0},testflight:{name:"TestFlight",icon:"๐ก",description:"Easiest option โ just tap a link. May take up to 24h for access.",requirements:"TestFlight app installed, email for invite",available:!0}},gp={education:"๐",health:"๐ช",photography:"๐ธ",utilities:"๐ง",entertainment:"๐ฎ",lifestyle:"โจ",productivity:"โก",social:"๐ฌ",finance:"๐ฐ",developer:"๐จโ๐ป",other:"๐ฆ"};function vp(){const{id:e}=zg(),t=sr(),[l,a]=p.useState(null),[n,u]=p.useState(!0),[i,s]=p.useState(!1);p.useEffect(()=>{e&&r(e)},[e]);async function r(o){try{const m=await G.getApp(o);a(m)}catch(m){console.error("Failed to load app:",m)}finally{u(!1)}}return n?c.jsx("div",{className:"h-full flex items-center justify-center text-muted",children:"Loading..."}):l?c.jsxs("div",{className:"h-full overflow-y-auto",children:[c.jsxs("div",{className:"max-w-4xl mx-auto p-6 space-y-6",children:[c.jsxs("button",{onClick:()=>t("/apps"),className:"flex items-center gap-1.5 text-sm text-foreground-secondary hover:text-foreground transition-colors",children:[c.jsx(zv,{className:"w-4 h-4"}),"Back to Apps"]}),c.jsx("div",{className:"card",children:c.jsxs("div",{className:"flex items-start gap-5",children:[c.jsx("div",{className:"w-20 h-20 rounded-2xl bg-gradient-to-br from-primary/20 to-accent/20 flex items-center justify-center shrink-0 text-4xl",children:gp[l.category]||"๐ฆ"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:l.name}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:l.shortDescription}),c.jsxs("p",{className:"text-xs text-muted mt-1",children:["by ",l.developer]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-4 text-sm",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(Kv,{className:"w-3.5 h-3.5"}),"v",l.version]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(kh,{className:"w-3.5 h-3.5"}),l.sizeMb," MB"]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(gr,{className:"w-3.5 h-3.5"}),"iOS ",l.minIosVersion,"+"]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(hr,{className:"w-3.5 h-3.5"}),"Updated ",new Date(l.lastUpdated).toLocaleDateString()]})]})]}),c.jsxs("button",{onClick:()=>s(!0),className:"btn btn-primary flex items-center gap-2 shrink-0",children:[c.jsx(Yh,{className:"w-4 h-4"}),"Install"]})]})}),l.tags.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2",children:l.tags.map(o=>c.jsx("span",{className:"badge badge-info text-xs",children:o},o))}),c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-lg font-semibold text-foreground mb-3",children:"About"}),c.jsx("p",{className:"text-foreground-secondary leading-relaxed",children:l.description})]}),l.changelog&&c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-lg font-semibold text-foreground mb-3",children:"What's New"}),c.jsx("p",{className:"text-foreground-secondary",children:l.changelog}),c.jsxs("p",{className:"text-xs text-muted mt-2",children:["Released ",new Date(l.releaseDate).toLocaleDateString()]})]}),c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-lg font-semibold text-foreground mb-3",children:"Install Methods"}),c.jsx("div",{className:"space-y-2",children:l.installMethods.map(o=>{const m=so[o];return m?c.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-surface-hover",children:[c.jsx("span",{className:"text-xl",children:m.icon}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-sm font-medium text-foreground",children:m.name}),c.jsx("p",{className:"text-xs text-muted",children:m.requirements})]}),c.jsx(hi,{className:"w-4 h-4 text-success"})]},o):null})})]})]}),i&&c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",children:c.jsxs("div",{className:"bg-surface border border-border rounded-2xl w-full max-w-lg mx-4 shadow-2xl",children:[c.jsxs("div",{className:"flex items-center justify-between p-5 border-b border-border",children:[c.jsxs("h2",{className:"text-lg font-semibold text-foreground",children:["Install ",l.name]}),c.jsx("button",{onClick:()=>s(!1),className:"p-1 rounded-lg hover:bg-surface-hover text-muted hover:text-foreground transition-colors",children:c.jsx(Iv,{className:"w-5 h-5"})})]}),c.jsxs("div",{className:"p-5 space-y-3",children:[c.jsx("p",{className:"text-sm text-foreground-secondary mb-4",children:"Choose how you'd like to install this app on your iPhone:"}),l.installMethods.map(o=>{const m=so[o];return m?c.jsx("button",{className:"w-full text-left p-4 rounded-xl border border-border hover:border-primary/30 hover:bg-primary/5 transition-all",onClick:()=>{s(!1),alert(`${m.name} install flow coming soon!`)},children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"text-2xl",children:m.icon}),c.jsxs("div",{children:[c.jsx("p",{className:"font-medium text-foreground",children:m.name}),c.jsx("p",{className:"text-sm text-foreground-secondary mt-0.5",children:m.description}),c.jsxs("p",{className:"text-xs text-muted mt-1",children:["Requires: ",m.requirements]})]})]})},o):null}),c.jsx("div",{className:"text-center pt-2",children:c.jsx("button",{className:"text-xs text-primary hover:text-primary/80 transition-colors",children:"Not sure? Help me choose the right method"})})]})]})})]}):c.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-3",children:[c.jsx("p",{className:"text-foreground-secondary",children:"App not found"}),c.jsx("button",{onClick:()=>t("/apps"),className:"btn btn-primary",children:"Back to Apps"})]})}function pp(){return c.jsxs("div",{className:"flex h-screen bg-background overflow-hidden",children:[c.jsx(ep,{}),c.jsx("main",{className:"flex-1 overflow-hidden",children:c.jsxs(Xg,{children:[c.jsx(nt,{path:"/",element:c.jsx(up,{})}),c.jsx(nt,{path:"/tasks",element:c.jsx(ip,{})}),c.jsx(nt,{path:"/knowledge",element:c.jsx(cp,{})}),c.jsx(nt,{path:"/agents",element:c.jsx(fp,{})}),c.jsx(nt,{path:"/mcp",element:c.jsx(op,{})}),c.jsx(nt,{path:"/settings",element:c.jsx(dp,{})}),c.jsx(nt,{path:"/audit",element:c.jsx(mp,{})}),c.jsx(nt,{path:"/memory",element:c.jsx(hp,{})}),c.jsx(nt,{path:"/apps",element:c.jsx(yp,{})}),c.jsx(nt,{path:"/apps/:id",element:c.jsx(vp,{})})]})})]})}Z1.createRoot(document.getElementById("root")).render(c.jsx(wa.StrictMode,{children:c.jsx(mv,{children:c.jsx(pp,{})})}));
|