@openparachute/agent 0.2.3-rc.5 → 0.2.3-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/agent-defs.ts +9 -0
- package/src/auth.ts +79 -0
- package/src/daemon.ts +235 -3
- package/src/preflight.ts +139 -0
- package/src/spawn-agent.ts +16 -0
- package/src/step-up.ts +316 -0
- package/src/terminal-ui.ts +73 -0
- package/web/ui/dist/assets/index-CAQMmePW.js +60 -0
- package/web/ui/dist/assets/{index-tvKbxee4.css → index-Dhr5Kl_d.css} +1 -1
- package/web/ui/dist/index.html +2 -2
- package/web/ui/dist/assets/index-CqIi6rPT.js +0 -60
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))s(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function f(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function s(d){if(d.ep)return;d.ep=!0;const m=f(d);fetch(d.href,m)}})();var Js={exports:{}},Gn={};/**
|
|
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 zh;function ng(){if(zh)return Gn;zh=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(s,d,m){var p=null;if(m!==void 0&&(p=""+m),d.key!==void 0&&(p=""+d.key),"key"in d){m={};for(var E in d)E!=="key"&&(m[E]=d[E])}else m=d;return d=m.ref,{$$typeof:i,type:s,key:p,ref:d!==void 0?d:null,props:m}}return Gn.Fragment=o,Gn.jsx=f,Gn.jsxs=f,Gn}var _h;function ug(){return _h||(_h=1,Js.exports=ng()),Js.exports}var c=ug(),$s={exports:{}},ie={};/**
|
|
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 Dh;function ig(){if(Dh)return ie;Dh=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),z=Symbol.iterator;function k(g){return g===null||typeof g!="object"?null:(g=z&&g[z]||g["@@iterator"],typeof g=="function"?g:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,X={};function M(g,O,H){this.props=g,this.context=O,this.refs=X,this.updater=H||Y}M.prototype.isReactComponent={},M.prototype.setState=function(g,O){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,O,"setState")},M.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function D(){}D.prototype=M.prototype;function G(g,O,H){this.props=g,this.context=O,this.refs=X,this.updater=H||Y}var Z=G.prototype=new D;Z.constructor=G,L(Z,M.prototype),Z.isPureReactComponent=!0;var $=Array.isArray;function ue(){}var V={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function P(g,O,H){var J=H.ref;return{$$typeof:i,type:g,key:O,ref:J!==void 0?J:null,props:H}}function Re(g,O){return P(g.type,O,g.props)}function le(g){return typeof g=="object"&&g!==null&&g.$$typeof===i}function xe(g){var O={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(H){return O[H]})}var Ie=/\/+/g;function Ze(g,O){return typeof g=="object"&&g!==null&&g.key!=null?xe(""+g.key):O.toString(36)}function De(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(ue,ue):(g.status="pending",g.then(function(O){g.status==="pending"&&(g.status="fulfilled",g.value=O)},function(O){g.status==="pending"&&(g.status="rejected",g.reason=O)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function U(g,O,H,J,ae){var re=typeof g;(re==="undefined"||re==="boolean")&&(g=null);var ge=!1;if(g===null)ge=!0;else switch(re){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(g.$$typeof){case i:case o:ge=!0;break;case C:return ge=g._init,U(ge(g._payload),O,H,J,ae)}}if(ge)return ae=ae(g),ge=J===""?"."+Ze(g,0):J,$(ae)?(H="",ge!=null&&(H=ge.replace(Ie,"$&/")+"/"),U(ae,O,H,"",function(ft){return ft})):ae!=null&&(le(ae)&&(ae=Re(ae,H+(ae.key==null||g&&g.key===ae.key?"":(""+ae.key).replace(Ie,"$&/")+"/")+ge)),O.push(ae)),1;ge=0;var Ue=J===""?".":J+":";if($(g))for(var he=0;he<g.length;he++)J=g[he],re=Ue+Ze(J,he),ge+=U(J,O,H,re,ae);else if(he=k(g),typeof he=="function")for(g=he.call(g),he=0;!(J=g.next()).done;)J=J.value,re=Ue+Ze(J,he++),ge+=U(J,O,H,re,ae);else if(re==="object"){if(typeof g.then=="function")return U(De(g),O,H,J,ae);throw O=String(g),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return ge}function K(g,O,H){if(g==null)return g;var J=[],ae=0;return U(g,J,"","",function(re){return O.call(H,re,ae++)}),J}function Q(g){if(g._status===-1){var O=g._result;O=O(),O.then(function(H){(g._status===0||g._status===-1)&&(g._status=1,g._result=H)},function(H){(g._status===0||g._status===-1)&&(g._status=2,g._result=H)}),g._status===-1&&(g._status=0,g._result=O)}if(g._status===1)return g._result.default;throw g._result}var ne=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},oe={map:K,forEach:function(g,O,H){K(g,function(){O.apply(this,arguments)},H)},count:function(g){var O=0;return K(g,function(){O++}),O},toArray:function(g){return K(g,function(O){return O})||[]},only:function(g){if(!le(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return ie.Activity=j,ie.Children=oe,ie.Component=M,ie.Fragment=f,ie.Profiler=d,ie.PureComponent=G,ie.StrictMode=s,ie.Suspense=S,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ie.__COMPILER_RUNTIME={__proto__:null,c:function(g){return V.H.useMemoCache(g)}},ie.cache=function(g){return function(){return g.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(g,O,H){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var J=L({},g.props),ae=g.key;if(O!=null)for(re in O.key!==void 0&&(ae=""+O.key),O)!I.call(O,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&O.ref===void 0||(J[re]=O[re]);var re=arguments.length-2;if(re===1)J.children=H;else if(1<re){for(var ge=Array(re),Ue=0;Ue<re;Ue++)ge[Ue]=arguments[Ue+2];J.children=ge}return P(g.type,ae,J)},ie.createContext=function(g){return g={$$typeof:p,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:m,_context:g},g},ie.createElement=function(g,O,H){var J,ae={},re=null;if(O!=null)for(J in O.key!==void 0&&(re=""+O.key),O)I.call(O,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ae[J]=O[J]);var ge=arguments.length-2;if(ge===1)ae.children=H;else if(1<ge){for(var Ue=Array(ge),he=0;he<ge;he++)Ue[he]=arguments[he+2];ae.children=Ue}if(g&&g.defaultProps)for(J in ge=g.defaultProps,ge)ae[J]===void 0&&(ae[J]=ge[J]);return P(g,re,ae)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(g){return{$$typeof:E,render:g}},ie.isValidElement=le,ie.lazy=function(g){return{$$typeof:C,_payload:{_status:-1,_result:g},_init:Q}},ie.memo=function(g,O){return{$$typeof:v,type:g,compare:O===void 0?null:O}},ie.startTransition=function(g){var O=V.T,H={};V.T=H;try{var J=g(),ae=V.S;ae!==null&&ae(H,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ue,ne)}catch(re){ne(re)}finally{O!==null&&H.types!==null&&(O.types=H.types),V.T=O}},ie.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ie.use=function(g){return V.H.use(g)},ie.useActionState=function(g,O,H){return V.H.useActionState(g,O,H)},ie.useCallback=function(g,O){return V.H.useCallback(g,O)},ie.useContext=function(g){return V.H.useContext(g)},ie.useDebugValue=function(){},ie.useDeferredValue=function(g,O){return V.H.useDeferredValue(g,O)},ie.useEffect=function(g,O){return V.H.useEffect(g,O)},ie.useEffectEvent=function(g){return V.H.useEffectEvent(g)},ie.useId=function(){return V.H.useId()},ie.useImperativeHandle=function(g,O,H){return V.H.useImperativeHandle(g,O,H)},ie.useInsertionEffect=function(g,O){return V.H.useInsertionEffect(g,O)},ie.useLayoutEffect=function(g,O){return V.H.useLayoutEffect(g,O)},ie.useMemo=function(g,O){return V.H.useMemo(g,O)},ie.useOptimistic=function(g,O){return V.H.useOptimistic(g,O)},ie.useReducer=function(g,O,H){return V.H.useReducer(g,O,H)},ie.useRef=function(g){return V.H.useRef(g)},ie.useState=function(g){return V.H.useState(g)},ie.useSyncExternalStore=function(g,O,H){return V.H.useSyncExternalStore(g,O,H)},ie.useTransition=function(){return V.H.useTransition()},ie.version="19.2.7",ie}var Oh;function rr(){return Oh||(Oh=1,$s.exports=ig()),$s.exports}var y=rr(),Ws={exports:{}},Xn={},Fs={exports:{}},Is={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Mh;function cg(){return Mh||(Mh=1,(function(i){function o(U,K){var Q=U.length;U.push(K);e:for(;0<Q;){var ne=Q-1>>>1,oe=U[ne];if(0<d(oe,K))U[ne]=K,U[Q]=oe,Q=ne;else break e}}function f(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var K=U[0],Q=U.pop();if(Q!==K){U[0]=Q;e:for(var ne=0,oe=U.length,g=oe>>>1;ne<g;){var O=2*(ne+1)-1,H=U[O],J=O+1,ae=U[J];if(0>d(H,Q))J<oe&&0>d(ae,H)?(U[ne]=ae,U[J]=Q,ne=J):(U[ne]=H,U[O]=Q,ne=O);else if(J<oe&&0>d(ae,Q))U[ne]=ae,U[J]=Q,ne=J;else break e}}return K}function d(U,K){var Q=U.sortIndex-K.sortIndex;return Q!==0?Q:U.id-K.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var p=Date,E=p.now();i.unstable_now=function(){return p.now()-E}}var S=[],v=[],C=1,j=null,z=3,k=!1,Y=!1,L=!1,X=!1,M=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function Z(U){for(var K=f(v);K!==null;){if(K.callback===null)s(v);else if(K.startTime<=U)s(v),K.sortIndex=K.expirationTime,o(S,K);else break;K=f(v)}}function $(U){if(L=!1,Z(U),!Y)if(f(S)!==null)Y=!0,ue||(ue=!0,xe());else{var K=f(v);K!==null&&De($,K.startTime-U)}}var ue=!1,V=-1,I=5,P=-1;function Re(){return X?!0:!(i.unstable_now()-P<I)}function le(){if(X=!1,ue){var U=i.unstable_now();P=U;var K=!0;try{e:{Y=!1,L&&(L=!1,D(V),V=-1),k=!0;var Q=z;try{t:{for(Z(U),j=f(S);j!==null&&!(j.expirationTime>U&&Re());){var ne=j.callback;if(typeof ne=="function"){j.callback=null,z=j.priorityLevel;var oe=ne(j.expirationTime<=U);if(U=i.unstable_now(),typeof oe=="function"){j.callback=oe,Z(U),K=!0;break t}j===f(S)&&s(S),Z(U)}else s(S);j=f(S)}if(j!==null)K=!0;else{var g=f(v);g!==null&&De($,g.startTime-U),K=!1}}break e}finally{j=null,z=Q,k=!1}K=void 0}}finally{K?xe():ue=!1}}}var xe;if(typeof G=="function")xe=function(){G(le)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,Ze=Ie.port2;Ie.port1.onmessage=le,xe=function(){Ze.postMessage(null)}}else xe=function(){M(le,0)};function De(U,K){V=M(function(){U(i.unstable_now())},K)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return z},i.unstable_next=function(U){switch(z){case 1:case 2:case 3:var K=3;break;default:K=z}var Q=z;z=K;try{return U()}finally{z=Q}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(U,K){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Q=z;z=U;try{return K()}finally{z=Q}},i.unstable_scheduleCallback=function(U,K,Q){var ne=i.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ne+Q:ne):Q=ne,U){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=Q+oe,U={id:C++,callback:K,priorityLevel:U,startTime:Q,expirationTime:oe,sortIndex:-1},Q>ne?(U.sortIndex=Q,o(v,U),f(S)===null&&U===f(v)&&(L?(D(V),V=-1):L=!0,De($,Q-ne))):(U.sortIndex=oe,o(S,U),Y||k||(Y=!0,ue||(ue=!0,xe()))),U},i.unstable_shouldYield=Re,i.unstable_wrapCallback=function(U){var K=z;return function(){var Q=z;z=K;try{return U.apply(this,arguments)}finally{z=Q}}}})(Is)),Is}var Uh;function sg(){return Uh||(Uh=1,Fs.exports=cg()),Fs.exports}var Ps={exports:{}},Pe={};/**
|
|
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 wh;function rg(){if(wh)return Pe;wh=1;var i=rr();function o(S){var v="https://react.dev/errors/"+S;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)v+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+S+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var s={d:{f,r:function(){throw Error(o(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(S,v,C){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:j==null?null:""+j,children:S,containerInfo:v,implementation:C}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(S,v){if(S==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Pe.createPortal=function(S,v){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(o(299));return m(S,v,null,C)},Pe.flushSync=function(S){var v=p.T,C=s.p;try{if(p.T=null,s.p=2,S)return S()}finally{p.T=v,s.p=C,s.d.f()}},Pe.preconnect=function(S,v){typeof S=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,s.d.C(S,v))},Pe.prefetchDNS=function(S){typeof S=="string"&&s.d.D(S)},Pe.preinit=function(S,v){if(typeof S=="string"&&v&&typeof v.as=="string"){var C=v.as,j=E(C,v.crossOrigin),z=typeof v.integrity=="string"?v.integrity:void 0,k=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;C==="style"?s.d.S(S,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:j,integrity:z,fetchPriority:k}):C==="script"&&s.d.X(S,{crossOrigin:j,integrity:z,fetchPriority:k,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Pe.preinitModule=function(S,v){if(typeof S=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var C=E(v.as,v.crossOrigin);s.d.M(S,{crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&s.d.M(S)},Pe.preload=function(S,v){if(typeof S=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var C=v.as,j=E(C,v.crossOrigin);s.d.L(S,C,{crossOrigin:j,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},Pe.preloadModule=function(S,v){if(typeof S=="string")if(v){var C=E(v.as,v.crossOrigin);s.d.m(S,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else s.d.m(S)},Pe.requestFormReset=function(S){s.d.r(S)},Pe.unstable_batchedUpdates=function(S,v){return S(v)},Pe.useFormState=function(S,v,C){return p.H.useFormState(S,v,C)},Pe.useFormStatus=function(){return p.H.useHostTransitionStatus()},Pe.version="19.2.7",Pe}var Hh;function og(){if(Hh)return Ps.exports;Hh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Ps.exports=rg(),Ps.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 Bh;function fg(){if(Bh)return Xn;Bh=1;var i=sg(),o=rr(),f=og();function s(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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function p(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 E(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 S(e){if(m(e)!==e)throw Error(s(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(s(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 S(n),e;if(u===a)return S(n),t;u=u.sibling}throw Error(s(188))}if(l.return!==a.return)l=n,a=u;else{for(var r=!1,h=n.child;h;){if(h===l){r=!0,l=n,a=u;break}if(h===a){r=!0,a=n,l=u;break}h=h.sibling}if(!r){for(h=u.child;h;){if(h===l){r=!0,l=u,a=n;break}if(h===a){r=!0,a=u,l=n;break}h=h.sibling}if(!r)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,z=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),G=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),Re=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function xe(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Symbol.for("react.client.reference");function Ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case M:return"Profiler";case X:return"StrictMode";case $:return"Suspense";case ue:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case G:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:Ze(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return Ze(e(t))}catch{}}return null}var De=Array.isArray,U=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ne=[],oe=-1;function g(e){return{current:e}}function O(e){0>oe||(e.current=ne[oe],ne[oe]=null,oe--)}function H(e,t){oe++,ne[oe]=e.current,e.current=t}var J=g(null),ae=g(null),re=g(null),ge=g(null);function Ue(e,t){switch(H(re,t),H(ae,e),H(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Id(t),e=Pd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(J),H(J,e)}function he(){O(J),O(ae),O(re)}function ft(e){e.memoizedState!==null&&H(ge,e);var t=J.current,l=Pd(t,e.type);t!==l&&(H(ae,e),H(J,l))}function tt(e){ae.current===e&&(O(J),O(ae)),ge.current===e&&(O(ge),qn._currentValue=Q)}var Ja,Tr;function Ll(e){if(Ja===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ja=t&&t[1]||"",Tr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ja+e+Tr}var Di=!1;function Oi(e,t){if(!e||Di)return"";Di=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(_){var R=_}Reflect.construct(e,[],q)}else{try{q.call()}catch(_){R=_}e.call(q.prototype)}}else{try{throw Error()}catch(_){R=_}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(_){if(_&&R&&typeof _.stack=="string")return[_.stack,R.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(),r=u[0],h=u[1];if(r&&h){var b=r.split(`
|
|
44
|
+
`),A=h.split(`
|
|
45
|
+
`);for(n=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(a===b.length||n===A.length)for(a=b.length-1,n=A.length-1;1<=a&&0<=n&&b[a]!==A[n];)n--;for(;1<=a&&0<=n;a--,n--)if(b[a]!==A[n]){if(a!==1||n!==1)do if(a--,n--,0>n||b[a]!==A[n]){var w=`
|
|
46
|
+
`+b[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{Di=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ll(l):""}function wm(e,t){switch(e.tag){case 26:case 27:case 5:return Ll(e.type);case 16:return Ll("Lazy");case 13:return e.child!==t&&t!==null?Ll("Suspense Fallback"):Ll("Suspense");case 19:return Ll("SuspenseList");case 0:case 15:return Oi(e.type,!1);case 11:return Oi(e.type.render,!1);case 1:return Oi(e.type,!0);case 31:return Ll("Activity");default:return""}}function Ar(e){try{var t="",l=null;do t+=wm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Mi=Object.prototype.hasOwnProperty,Ui=i.unstable_scheduleCallback,wi=i.unstable_cancelCallback,Hm=i.unstable_shouldYield,Bm=i.unstable_requestPaint,dt=i.unstable_now,qm=i.unstable_getCurrentPriorityLevel,Rr=i.unstable_ImmediatePriority,zr=i.unstable_UserBlockingPriority,In=i.unstable_NormalPriority,Lm=i.unstable_LowPriority,_r=i.unstable_IdlePriority,km=i.log,Ym=i.unstable_setDisableYieldValue,$a=null,ht=null;function dl(e){if(typeof km=="function"&&Ym(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode($a,e)}catch{}}var mt=Math.clz32?Math.clz32:Qm,Gm=Math.log,Xm=Math.LN2;function Qm(e){return e>>>=0,e===0?32:31-(Gm(e)/Xm|0)|0}var Pn=256,eu=262144,tu=4194304;function kl(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 lu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~u,a!==0?n=kl(a):(r&=h,r!==0?n=kl(r):l||(l=h&~e,l!==0&&(n=kl(l))))):(h=a&~u,h!==0?n=kl(h):r!==0?n=kl(r):l||(l=a&~e,l!==0&&(n=kl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Wa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Vm(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 Dr(){var e=tu;return tu<<=1,(tu&62914560)===0&&(tu=4194304),e}function Hi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zm(e,t,l,a,n,u){var r=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 h=e.entanglements,b=e.expirationTimes,A=e.hiddenUpdates;for(l=r&~l;0<l;){var w=31-mt(l),q=1<<w;h[w]=0,b[w]=-1;var R=A[w];if(R!==null)for(A[w]=null,w=0;w<R.length;w++){var _=R[w];_!==null&&(_.lane&=-536870913)}l&=~q}a!==0&&Or(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(r&~t))}function Or(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-mt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Mr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-mt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ur(e,t){var l=t&-t;return l=(l&42)!==0?1:Bi(l),(l&(e.suspendedLanes|t))!==0?0:l}function Bi(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 qi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function wr(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Eh(e.type))}function Hr(e,t){var l=K.p;try{return K.p=e,t()}finally{K.p=l}}var hl=Math.random().toString(36).slice(2),Ke="__reactFiber$"+hl,nt="__reactProps$"+hl,ua="__reactContainer$"+hl,Li="__reactEvents$"+hl,Km="__reactListeners$"+hl,Jm="__reactHandles$"+hl,Br="__reactResources$"+hl,Ia="__reactMarker$"+hl;function ki(e){delete e[Ke],delete e[nt],delete e[Li],delete e[Km],delete e[Jm]}function ia(e){var t=e[Ke];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ua]||l[Ke]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=ih(e);e!==null;){if(l=e[Ke])return l;e=ih(e)}return t}e=l,l=e.parentNode}return null}function ca(e){if(e=e[Ke]||e[ua]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function sa(e){var t=e[Br];return t||(t=e[Br]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[Ia]=!0}var qr=new Set,Lr={};function Yl(e,t){ra(e,t),ra(e+"Capture",t)}function ra(e,t){for(Lr[e]=t,e=0;e<t.length;e++)qr.add(t[e])}var $m=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]*$"),kr={},Yr={};function Wm(e){return Mi.call(Yr,e)?!0:Mi.call(kr,e)?!1:$m.test(e)?Yr[e]=!0:(kr[e]=!0,!1)}function au(e,t,l){if(Wm(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 nu(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 Vt(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 Et(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fm(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(r){l=""+r,u.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yi(e){if(!e._valueTracker){var t=Gr(e)?"checked":"value";e._valueTracker=Fm(e,t,""+e[t])}}function Xr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Gr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function uu(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 Im=/[\n"\\]/g;function jt(e){return e.replace(Im,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gi(e,t,l,a,n,u,r,h){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Et(t)):e.value!==""+Et(t)&&(e.value=""+Et(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Xi(e,r,Et(t)):l!=null?Xi(e,r,Et(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Et(h):e.removeAttribute("name")}function Qr(e,t,l,a,n,u,r,h){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)){Yi(e);return}l=l!=null?""+Et(l):"",t=t!=null?""+Et(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Yi(e)}function Xi(e,t,l){t==="number"&&uu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function oa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Et(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 Vr(e,t,l){if(t!=null&&(t=""+Et(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Et(l):""}function Zr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(De(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Et(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Yi(e)}function fa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Pm=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 Kr(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||Pm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Jr(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(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&&Kr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Kr(e,u,t[u])}function Qi(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 ev=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"]]),tv=/^[\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 iu(e){return tv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Vi=null;function Zi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var da=null,ha=null;function $r(e){var t=ca(e);if(t&&(e=t.stateNode)){var l=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gi(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="'+jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[nt]||null;if(!n)throw Error(s(90));Gi(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&&Xr(a)}break e;case"textarea":Vr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&oa(e,!!l.multiple,t,!1)}}}var Ki=!1;function Wr(e,t,l){if(Ki)return e(t,l);Ki=!0;try{var a=e(t);return a}finally{if(Ki=!1,(da!==null||ha!==null)&&(Ku(),da&&(t=da,e=ha,ha=da=null,$r(t),e)))for(t=0;t<e.length;t++)$r(e[t])}}function en(e,t){var l=e.stateNode;if(l===null)return null;var a=l[nt]||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(s(231,t,typeof l));return l}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ji=!1;if(Kt)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){Ji=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{Ji=!1}var ml=null,$i=null,cu=null;function Fr(){if(cu)return cu;var e,t=$i,l=t.length,a,n="value"in ml?ml.value:ml.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var r=l-e;for(a=1;a<=r&&t[l-a]===n[u-a];a++);return cu=n.slice(e,1<a?1-a:void 0)}function su(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ru(){return!0}function Ir(){return!1}function ut(e){function t(l,a,n,u,r){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=r,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ru:Ir,this.isPropagationStopped=Ir,this}return j(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=ru)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ru)},persist:function(){},isPersistent:ru}),t}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ou=ut(Gl),ln=j({},Gl,{view:0,detail:0}),lv=ut(ln),Wi,Fi,an,fu=j({},ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&e.type==="mousemove"?(Wi=e.screenX-an.screenX,Fi=e.screenY-an.screenY):Fi=Wi=0,an=e),Wi)},movementY:function(e){return"movementY"in e?e.movementY:Fi}}),Pr=ut(fu),av=j({},fu,{dataTransfer:0}),nv=ut(av),uv=j({},ln,{relatedTarget:0}),Ii=ut(uv),iv=j({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),cv=ut(iv),sv=j({},Gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rv=ut(sv),ov=j({},Gl,{data:0}),eo=ut(ov),fv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dv={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"},hv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hv[e])?!!t[e]:!1}function Pi(){return mv}var vv=j({},ln,{key:function(e){if(e.key){var t=fv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=su(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pi,charCode:function(e){return e.type==="keypress"?su(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?su(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yv=ut(vv),gv=j({},fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),to=ut(gv),pv=j({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pi}),bv=ut(pv),Sv=j({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),xv=ut(Sv),Ev=j({},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}),jv=ut(Ev),Nv=j({},Gl,{newState:0,oldState:0}),Cv=ut(Nv),Tv=[9,13,27,32],ec=Kt&&"CompositionEvent"in window,nn=null;Kt&&"documentMode"in document&&(nn=document.documentMode);var Av=Kt&&"TextEvent"in window&&!nn,lo=Kt&&(!ec||nn&&8<nn&&11>=nn),ao=" ",no=!1;function uo(e,t){switch(e){case"keyup":return Tv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function io(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ma=!1;function Rv(e,t){switch(e){case"compositionend":return io(t);case"keypress":return t.which!==32?null:(no=!0,ao);case"textInput":return e=t.data,e===ao&&no?null:e;default:return null}}function zv(e,t){if(ma)return e==="compositionend"||!ec&&uo(e,t)?(e=Fr(),cu=$i=ml=null,ma=!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 lo&&t.locale!=="ko"?null:t.data;default:return null}}var _v={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 co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_v[e.type]:t==="textarea"}function so(e,t,l,a){da?ha?ha.push(a):ha=[a]:da=a,t=ei(t,"onChange"),0<t.length&&(l=new ou("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var un=null,cn=null;function Dv(e){Zd(e,0)}function du(e){var t=Pa(e);if(Xr(t))return e}function ro(e,t){if(e==="change")return t}var oo=!1;if(Kt){var tc;if(Kt){var lc="oninput"in document;if(!lc){var fo=document.createElement("div");fo.setAttribute("oninput","return;"),lc=typeof fo.oninput=="function"}tc=lc}else tc=!1;oo=tc&&(!document.documentMode||9<document.documentMode)}function ho(){un&&(un.detachEvent("onpropertychange",mo),cn=un=null)}function mo(e){if(e.propertyName==="value"&&du(cn)){var t=[];so(t,cn,e,Zi(e)),Wr(Dv,t)}}function Ov(e,t,l){e==="focusin"?(ho(),un=t,cn=l,un.attachEvent("onpropertychange",mo)):e==="focusout"&&ho()}function Mv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return du(cn)}function Uv(e,t){if(e==="click")return du(t)}function wv(e,t){if(e==="input"||e==="change")return du(t)}function Hv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Hv;function sn(e,t){if(vt(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(!Mi.call(t,n)||!vt(e[n],t[n]))return!1}return!0}function vo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yo(e,t){var l=vo(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=vo(l)}}function go(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?go(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function po(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uu(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=uu(e.document)}return t}function ac(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 Bv=Kt&&"documentMode"in document&&11>=document.documentMode,va=null,nc=null,rn=null,uc=!1;function bo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;uc||va==null||va!==uu(a)||(a=va,"selectionStart"in a&&ac(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),rn&&sn(rn,a)||(rn=a,a=ei(nc,"onSelect"),0<a.length&&(t=new ou("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=va)))}function Xl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ya={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionrun:Xl("Transition","TransitionRun"),transitionstart:Xl("Transition","TransitionStart"),transitioncancel:Xl("Transition","TransitionCancel"),transitionend:Xl("Transition","TransitionEnd")},ic={},So={};Kt&&(So=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function Ql(e){if(ic[e])return ic[e];if(!ya[e])return e;var t=ya[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in So)return ic[e]=t[l];return e}var xo=Ql("animationend"),Eo=Ql("animationiteration"),jo=Ql("animationstart"),qv=Ql("transitionrun"),Lv=Ql("transitionstart"),kv=Ql("transitioncancel"),No=Ql("transitionend"),Co=new Map,cc="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(" ");cc.push("scrollEnd");function Mt(e,t){Co.set(e,t),Yl(t,[e])}var hu=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)},Nt=[],ga=0,sc=0;function mu(){for(var e=ga,t=sc=ga=0;t<e;){var l=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var n=Nt[t];Nt[t++]=null;var u=Nt[t];if(Nt[t++]=null,a!==null&&n!==null){var r=a.pending;r===null?n.next=n:(n.next=r.next,r.next=n),a.pending=n}u!==0&&To(l,n,u)}}function vu(e,t,l,a){Nt[ga++]=e,Nt[ga++]=t,Nt[ga++]=l,Nt[ga++]=a,sc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function rc(e,t,l,a){return vu(e,t,l,a),yu(e)}function Vl(e,t){return vu(e,null,null,t),yu(e)}function To(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-mt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function yu(e){if(50<Dn)throw Dn=0,ps=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};function Yv(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 yt(e,t,l,a){return new Yv(e,t,l,a)}function oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var l=e.alternate;return l===null?(l=yt(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 Ao(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gu(e,t,l,a,n,u){var r=0;if(a=e,typeof e=="function")oc(e)&&(r=1);else if(typeof e=="string")r=Zy(e,l,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=yt(31,l,t,n),e.elementType=P,e.lanes=u,e;case L:return Zl(l.children,n,u,t);case X:r=8,n|=24;break;case M:return e=yt(12,l,t,n|2),e.elementType=M,e.lanes=u,e;case $:return e=yt(13,l,t,n),e.elementType=$,e.lanes=u,e;case ue:return e=yt(19,l,t,n),e.elementType=ue,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:r=10;break e;case D:r=9;break e;case Z:r=11;break e;case V:r=14;break e;case I:r=16,a=null;break e}r=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=yt(r,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Zl(e,t,l,a){return e=yt(7,e,a,t),e.lanes=l,e}function fc(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function Ro(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function dc(e,t,l){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zo=new WeakMap;function Ct(e,t){if(typeof e=="object"&&e!==null){var l=zo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ar(t)},zo.set(e,t),t)}return{value:e,source:t,stack:Ar(t)}}var ba=[],Sa=0,pu=null,on=0,Tt=[],At=0,vl=null,qt=1,Lt="";function $t(e,t){ba[Sa++]=on,ba[Sa++]=pu,pu=e,on=t}function _o(e,t,l){Tt[At++]=qt,Tt[At++]=Lt,Tt[At++]=vl,vl=e;var a=qt;e=Lt;var n=32-mt(a)-1;a&=~(1<<n),l+=1;var u=32-mt(t)+n;if(30<u){var r=n-n%5;u=(a&(1<<r)-1).toString(32),a>>=r,n-=r,qt=1<<32-mt(t)+n|l<<n|a,Lt=u+e}else qt=1<<u|l<<n|a,Lt=e}function hc(e){e.return!==null&&($t(e,1),_o(e,1,0))}function mc(e){for(;e===pu;)pu=ba[--Sa],ba[Sa]=null,on=ba[--Sa],ba[Sa]=null;for(;e===vl;)vl=Tt[--At],Tt[At]=null,Lt=Tt[--At],Tt[At]=null,qt=Tt[--At],Tt[At]=null}function Do(e,t){Tt[At++]=qt,Tt[At++]=Lt,Tt[At++]=vl,qt=t.id,Lt=t.overflow,vl=e}var Je=null,ze=null,ye=!1,yl=null,Rt=!1,vc=Error(s(519));function gl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fn(Ct(t,e)),vc}function Oo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ke]=e,t[nt]=a,l){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(l=0;l<Mn.length;l++)de(Mn[l],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),Qr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),Zr(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||Wd(t.textContent,l)?(a.popover!=null&&(de("beforetoggle",t),de("toggle",t)),a.onScroll!=null&&de("scroll",t),a.onScrollEnd!=null&&de("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||gl(e,!0)}function Mo(e){for(Je=e.return;Je;)switch(Je.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:Je=Je.return}}function xa(e){if(e!==Je)return!1;if(!ye)return Mo(e),ye=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ms(e.type,e.memoizedProps)),l=!l),l&&ze&&gl(e),Mo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ze=uh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ze=uh(e)}else t===27?(t=ze,Dl(e.type)?(e=qs,qs=null,ze=e):ze=t):ze=Je?_t(e.stateNode.nextSibling):null;return!0}function Kl(){ze=Je=null,ye=!1}function yc(){var e=yl;return e!==null&&(rt===null?rt=e:rt.push.apply(rt,e),yl=null),e}function fn(e){yl===null?yl=[e]:yl.push(e)}var gc=g(null),Jl=null,Wt=null;function pl(e,t,l){H(gc,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=gc.current,O(gc)}function pc(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 bc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var r=n.child;u=u.firstContext;e:for(;u!==null;){var h=u;u=n;for(var b=0;b<t.length;b++)if(h.context===t[b]){u.lanes|=l,h=u.alternate,h!==null&&(h.lanes|=l),pc(u.return,l,e),a||(r=null);break e}u=h.next}}else if(n.tag===18){if(r=n.return,r===null)throw Error(s(341));r.lanes|=l,u=r.alternate,u!==null&&(u.lanes|=l),pc(r,l,e),r=null}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}}function Ea(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var r=n.alternate;if(r===null)throw Error(s(387));if(r=r.memoizedProps,r!==null){var h=n.type;vt(n.pendingProps.value,r.value)||(e!==null?e.push(h):e=[h])}}else if(n===ge.current){if(r=n.alternate,r===null)throw Error(s(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(qn):e=[qn])}n=n.return}e!==null&&bc(t,e,l,a),t.flags|=262144}function bu(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $l(e){Jl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return Uo(Jl,e)}function Su(e,t){return Jl===null&&$l(e),Uo(e,t)}function Uo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(s(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var Gv=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()})}},Xv=i.unstable_scheduleCallback,Qv=i.unstable_NormalPriority,Le={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sc(){return{controller:new Gv,data:new Map,refCount:0}}function dn(e){e.refCount--,e.refCount===0&&Xv(Qv,function(){e.controller.abort()})}var hn=null,xc=0,ja=0,Na=null;function Vv(e,t){if(hn===null){var l=hn=[];xc=0,ja=Ns(),Na={status:"pending",value:void 0,then:function(a){l.push(a)}}}return xc++,t.then(wo,wo),t}function wo(){if(--xc===0&&hn!==null){Na!==null&&(Na.status="fulfilled");var e=hn;hn=null,ja=0,Na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Zv(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 Ho=U.S;U.S=function(e,t){Sd=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Vv(e,t),Ho!==null&&Ho(e,t)};var Wl=g(null);function Ec(){var e=Wl.current;return e!==null?e:Ae.pooledCache}function xu(e,t){t===null?H(Wl,Wl.current):H(Wl,t.pool)}function Bo(){var e=Ec();return e===null?null:{parent:Le._currentValue,pool:e}}var Ca=Error(s(460)),jc=Error(s(474)),Eu=Error(s(542)),ju={then:function(){}};function qo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Lo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yo(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,Yo(e),e}throw Il=t,Ca}}function Fl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Il=l,Ca):l}}var Il=null;function ko(){if(Il===null)throw Error(s(459));var e=Il;return Il=null,e}function Yo(e){if(e===Ca||e===Eu)throw Error(s(483))}var Ta=null,mn=0;function Nu(e){var t=mn;return mn+=1,Ta===null&&(Ta=[]),Lo(Ta,e,t)}function vn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Cu(e,t){throw t.$$typeof===z?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Go(e){function t(N,x){if(e){var T=N.deletions;T===null?(N.deletions=[x],N.flags|=16):T.push(x)}}function l(N,x){if(!e)return null;for(;x!==null;)t(N,x),x=x.sibling;return null}function a(N){for(var x=new Map;N!==null;)N.key!==null?x.set(N.key,N):x.set(N.index,N),N=N.sibling;return x}function n(N,x){return N=Jt(N,x),N.index=0,N.sibling=null,N}function u(N,x,T){return N.index=T,e?(T=N.alternate,T!==null?(T=T.index,T<x?(N.flags|=67108866,x):T):(N.flags|=67108866,x)):(N.flags|=1048576,x)}function r(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function h(N,x,T,B){return x===null||x.tag!==6?(x=fc(T,N.mode,B),x.return=N,x):(x=n(x,T),x.return=N,x)}function b(N,x,T,B){var ee=T.type;return ee===L?w(N,x,T.props.children,B,T.key):x!==null&&(x.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===I&&Fl(ee)===x.type)?(x=n(x,T.props),vn(x,T),x.return=N,x):(x=gu(T.type,T.key,T.props,null,N.mode,B),vn(x,T),x.return=N,x)}function A(N,x,T,B){return x===null||x.tag!==4||x.stateNode.containerInfo!==T.containerInfo||x.stateNode.implementation!==T.implementation?(x=dc(T,N.mode,B),x.return=N,x):(x=n(x,T.children||[]),x.return=N,x)}function w(N,x,T,B,ee){return x===null||x.tag!==7?(x=Zl(T,N.mode,B,ee),x.return=N,x):(x=n(x,T),x.return=N,x)}function q(N,x,T){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=fc(""+x,N.mode,T),x.return=N,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case k:return T=gu(x.type,x.key,x.props,null,N.mode,T),vn(T,x),T.return=N,T;case Y:return x=dc(x,N.mode,T),x.return=N,x;case I:return x=Fl(x),q(N,x,T)}if(De(x)||xe(x))return x=Zl(x,N.mode,T,null),x.return=N,x;if(typeof x.then=="function")return q(N,Nu(x),T);if(x.$$typeof===G)return q(N,Su(N,x),T);Cu(N,x)}return null}function R(N,x,T,B){var ee=x!==null?x.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return ee!==null?null:h(N,x,""+T,B);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case k:return T.key===ee?b(N,x,T,B):null;case Y:return T.key===ee?A(N,x,T,B):null;case I:return T=Fl(T),R(N,x,T,B)}if(De(T)||xe(T))return ee!==null?null:w(N,x,T,B,null);if(typeof T.then=="function")return R(N,x,Nu(T),B);if(T.$$typeof===G)return R(N,x,Su(N,T),B);Cu(N,T)}return null}function _(N,x,T,B,ee){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return N=N.get(T)||null,h(x,N,""+B,ee);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case k:return N=N.get(B.key===null?T:B.key)||null,b(x,N,B,ee);case Y:return N=N.get(B.key===null?T:B.key)||null,A(x,N,B,ee);case I:return B=Fl(B),_(N,x,T,B,ee)}if(De(B)||xe(B))return N=N.get(T)||null,w(x,N,B,ee,null);if(typeof B.then=="function")return _(N,x,T,Nu(B),ee);if(B.$$typeof===G)return _(N,x,T,Su(x,B),ee);Cu(x,B)}return null}function W(N,x,T,B){for(var ee=null,pe=null,F=x,se=x=0,ve=null;F!==null&&se<T.length;se++){F.index>se?(ve=F,F=null):ve=F.sibling;var be=R(N,F,T[se],B);if(be===null){F===null&&(F=ve);break}e&&F&&be.alternate===null&&t(N,F),x=u(be,x,se),pe===null?ee=be:pe.sibling=be,pe=be,F=ve}if(se===T.length)return l(N,F),ye&&$t(N,se),ee;if(F===null){for(;se<T.length;se++)F=q(N,T[se],B),F!==null&&(x=u(F,x,se),pe===null?ee=F:pe.sibling=F,pe=F);return ye&&$t(N,se),ee}for(F=a(F);se<T.length;se++)ve=_(F,N,se,T[se],B),ve!==null&&(e&&ve.alternate!==null&&F.delete(ve.key===null?se:ve.key),x=u(ve,x,se),pe===null?ee=ve:pe.sibling=ve,pe=ve);return e&&F.forEach(function(Hl){return t(N,Hl)}),ye&&$t(N,se),ee}function te(N,x,T,B){if(T==null)throw Error(s(151));for(var ee=null,pe=null,F=x,se=x=0,ve=null,be=T.next();F!==null&&!be.done;se++,be=T.next()){F.index>se?(ve=F,F=null):ve=F.sibling;var Hl=R(N,F,be.value,B);if(Hl===null){F===null&&(F=ve);break}e&&F&&Hl.alternate===null&&t(N,F),x=u(Hl,x,se),pe===null?ee=Hl:pe.sibling=Hl,pe=Hl,F=ve}if(be.done)return l(N,F),ye&&$t(N,se),ee;if(F===null){for(;!be.done;se++,be=T.next())be=q(N,be.value,B),be!==null&&(x=u(be,x,se),pe===null?ee=be:pe.sibling=be,pe=be);return ye&&$t(N,se),ee}for(F=a(F);!be.done;se++,be=T.next())be=_(F,N,se,be.value,B),be!==null&&(e&&be.alternate!==null&&F.delete(be.key===null?se:be.key),x=u(be,x,se),pe===null?ee=be:pe.sibling=be,pe=be);return e&&F.forEach(function(ag){return t(N,ag)}),ye&&$t(N,se),ee}function Te(N,x,T,B){if(typeof T=="object"&&T!==null&&T.type===L&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case k:e:{for(var ee=T.key;x!==null;){if(x.key===ee){if(ee=T.type,ee===L){if(x.tag===7){l(N,x.sibling),B=n(x,T.props.children),B.return=N,N=B;break e}}else if(x.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===I&&Fl(ee)===x.type){l(N,x.sibling),B=n(x,T.props),vn(B,T),B.return=N,N=B;break e}l(N,x);break}else t(N,x);x=x.sibling}T.type===L?(B=Zl(T.props.children,N.mode,B,T.key),B.return=N,N=B):(B=gu(T.type,T.key,T.props,null,N.mode,B),vn(B,T),B.return=N,N=B)}return r(N);case Y:e:{for(ee=T.key;x!==null;){if(x.key===ee)if(x.tag===4&&x.stateNode.containerInfo===T.containerInfo&&x.stateNode.implementation===T.implementation){l(N,x.sibling),B=n(x,T.children||[]),B.return=N,N=B;break e}else{l(N,x);break}else t(N,x);x=x.sibling}B=dc(T,N.mode,B),B.return=N,N=B}return r(N);case I:return T=Fl(T),Te(N,x,T,B)}if(De(T))return W(N,x,T,B);if(xe(T)){if(ee=xe(T),typeof ee!="function")throw Error(s(150));return T=ee.call(T),te(N,x,T,B)}if(typeof T.then=="function")return Te(N,x,Nu(T),B);if(T.$$typeof===G)return Te(N,x,Su(N,T),B);Cu(N,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,x!==null&&x.tag===6?(l(N,x.sibling),B=n(x,T),B.return=N,N=B):(l(N,x),B=fc(T,N.mode,B),B.return=N,N=B),r(N)):l(N,x)}return function(N,x,T,B){try{mn=0;var ee=Te(N,x,T,B);return Ta=null,ee}catch(F){if(F===Ca||F===Eu)throw F;var pe=yt(29,F,null,N.mode);return pe.lanes=B,pe.return=N,pe}finally{}}}var Pl=Go(!0),Xo=Go(!1),bl=!1;function Nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cc(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 Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=yu(e),To(e,null,l),t}return vu(e,a,t,l),yu(e)}function yn(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,Mr(e,l)}}function Tc(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 r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=r:u=u.next=r,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 Ac=!1;function gn(){if(Ac){var e=Na;if(e!==null)throw e}}function pn(e,t,l,a){Ac=!1;var n=e.updateQueue;bl=!1;var u=n.firstBaseUpdate,r=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var b=h,A=b.next;b.next=null,r===null?u=A:r.next=A,r=b;var w=e.alternate;w!==null&&(w=w.updateQueue,h=w.lastBaseUpdate,h!==r&&(h===null?w.firstBaseUpdate=A:h.next=A,w.lastBaseUpdate=b))}if(u!==null){var q=n.baseState;r=0,w=A=b=null,h=u;do{var R=h.lane&-536870913,_=R!==h.lane;if(_?(me&R)===R:(a&R)===R){R!==0&&R===ja&&(Ac=!0),w!==null&&(w=w.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,te=h;R=t;var Te=l;switch(te.tag){case 1:if(W=te.payload,typeof W=="function"){q=W.call(Te,q,R);break e}q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=te.payload,R=typeof W=="function"?W.call(Te,q,R):W,R==null)break e;q=j({},q,R);break e;case 2:bl=!0}}R=h.callback,R!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[R]:_.push(R))}else _={lane:R,tag:h.tag,payload:h.payload,callback:h.callback,next:null},w===null?(A=w=_,b=q):w=w.next=_,r|=R;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;_=h,h=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);w===null&&(b=q),n.baseState=b,n.firstBaseUpdate=A,n.lastBaseUpdate=w,u===null&&(n.shared.lanes=0),Tl|=r,e.lanes=r,e.memoizedState=q}}function Qo(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Vo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Qo(l[e],t)}var Aa=g(null),Tu=g(0);function Zo(e,t){e=il,H(Tu,e),H(Aa,t),il=e|t.baseLanes}function Rc(){H(Tu,il),H(Aa,Aa.current)}function zc(){il=Tu.current,O(Aa),O(Tu)}var gt=g(null),zt=null;function El(e){var t=e.alternate;H(Be,Be.current&1),H(gt,e),zt===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(zt=e)}function _c(e){H(Be,Be.current),H(gt,e),zt===null&&(zt=e)}function Ko(e){e.tag===22?(H(Be,Be.current),H(gt,e),zt===null&&(zt=e)):jl()}function jl(){H(Be,Be.current),H(gt,gt.current)}function pt(e){O(gt),zt===e&&(zt=null),O(Be)}var Be=g(0);function Au(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Hs(l)||Bs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var It=0,ce=null,Ne=null,ke=null,Ru=!1,Ra=!1,ea=!1,zu=0,bn=0,za=null,Kv=0;function we(){throw Error(s(321))}function Dc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!vt(e[l],t[l]))return!1;return!0}function Oc(e,t,l,a,n,u){return It=u,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Df:Kc,ea=!1,u=l(a,n),ea=!1,Ra&&(u=$o(t,l,a,n)),Jo(e),u}function Jo(e){U.H=En;var t=Ne!==null&&Ne.next!==null;if(It=0,ke=Ne=ce=null,Ru=!1,bn=0,za=null,t)throw Error(s(300));e===null||Ye||(e=e.dependencies,e!==null&&bu(e)&&(Ye=!0))}function $o(e,t,l,a){ce=e;var n=0;do{if(Ra&&(za=null),bn=0,Ra=!1,25<=n)throw Error(s(301));if(n+=1,ke=Ne=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=Of,u=t(l,a)}while(Ra);return u}function Jv(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Sn(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(ce.flags|=1024),t}function Mc(){var e=zu!==0;return zu=0,e}function Uc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function wc(e){if(Ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ru=!1}It=0,ke=Ne=ce=null,Ra=!1,bn=zu=0,za=null}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ce.memoizedState=ke=e:ke=ke.next=e,ke}function qe(){if(Ne===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=ke===null?ce.memoizedState:ke.next;if(t!==null)ke=t,Ne=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},ke===null?ce.memoizedState=ke=e:ke=ke.next=e}return ke}function _u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sn(e){var t=bn;return bn+=1,za===null&&(za=[]),e=Lo(za,e,t),t=ce,(ke===null?t.memoizedState:ke.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Df:Kc),e}function Du(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sn(e);if(e.$$typeof===G)return $e(e)}throw Error(s(438,String(e)))}function Hc(e){var t=null,l=ce.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ce.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=_u(),ce.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]=Re;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function Ou(e){var t=qe();return Bc(t,Ne,e)}function Bc(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var r=n.next;n.next=u.next,u.next=r}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var h=r=null,b=null,A=t,w=!1;do{var q=A.lane&-536870913;if(q!==A.lane?(me&q)===q:(It&q)===q){var R=A.revertLane;if(R===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),q===ja&&(w=!0);else if((It&R)===R){A=A.next,R===ja&&(w=!0);continue}else q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(h=b=q,r=u):b=b.next=q,ce.lanes|=R,Tl|=R;q=A.action,ea&&l(u,q),u=A.hasEagerState?A.eagerState:l(u,q)}else R={lane:q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(h=b=R,r=u):b=b.next=R,ce.lanes|=q,Tl|=q;A=A.next}while(A!==null&&A!==t);if(b===null?r=u:b.next=h,!vt(u,e.memoizedState)&&(Ye=!0,w&&(l=Na,l!==null)))throw l;e.memoizedState=u,e.baseState=r,e.baseQueue=b,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function qc(e){var t=qe(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var r=n=n.next;do u=e(u,r.action),r=r.next;while(r!==n);vt(u,t.memoizedState)||(Ye=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Wo(e,t,l){var a=ce,n=qe(),u=ye;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=t();var r=!vt((Ne||n).memoizedState,l);if(r&&(n.memoizedState=l,Ye=!0),n=n.queue,Yc(Po.bind(null,a,n,e),[e]),n.getSnapshot!==t||r||ke!==null&&ke.memoizedState.tag&1){if(a.flags|=2048,_a(9,{destroy:void 0},Io.bind(null,a,n,l,t),null),Ae===null)throw Error(s(349));u||(It&127)!==0||Fo(a,t,l)}return l}function Fo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ce.updateQueue,t===null?(t=_u(),ce.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Io(e,t,l,a){t.value=l,t.getSnapshot=a,ef(t)&&tf(e)}function Po(e,t,l){return l(function(){ef(t)&&tf(e)})}function ef(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!vt(e,l)}catch{return!0}}function tf(e){var t=Vl(e,2);t!==null&&ot(t,e,2)}function Lc(e){var t=lt();if(typeof e=="function"){var l=e;if(e=l(),ea){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function lf(e,t,l,a){return e.baseState=l,Bc(e,Ne,typeof a=="function"?a:Pt)}function $v(e,t,l,a,n){if(wu(e))throw Error(s(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(r){u.listeners.push(r)}};U.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,af(t,u)):(u.next=l.next,t.pending=l.next=u)}}function af(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=U.T,r={};U.T=r;try{var h=l(n,a),b=U.S;b!==null&&b(r,h),nf(e,t,h)}catch(A){kc(e,t,A)}finally{u!==null&&r.types!==null&&(u.types=r.types),U.T=u}}else try{u=l(n,a),nf(e,t,u)}catch(A){kc(e,t,A)}}function nf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){uf(e,t,a)},function(a){return kc(e,t,a)}):uf(e,t,l)}function uf(e,t,l){t.status="fulfilled",t.value=l,cf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,af(e,l)))}function kc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,cf(t),t=t.next;while(t!==a)}e.action=null}function cf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sf(e,t){return t}function rf(e,t){if(ye){var l=Ae.formState;if(l!==null){e:{var a=ce;if(ye){if(ze){t:{for(var n=ze,u=Rt;n.nodeType!==8;){if(!u){n=null;break t}if(n=_t(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){ze=_t(n.nextSibling),a=n.data==="F!";break e}}gl(a)}a=!1}a&&(t=l[0])}}return l=lt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sf,lastRenderedState:t},l.queue=a,l=Rf.bind(null,ce,a),a.dispatch=l,a=Lc(!1),u=Zc.bind(null,ce,!1,a.queue),a=lt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=$v.bind(null,ce,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function of(e){var t=qe();return ff(t,Ne,e)}function ff(e,t,l){if(t=Bc(e,t,sf)[0],e=Ou(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Sn(t)}catch(r){throw r===Ca?Eu:r}else a=t;t=qe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ce.flags|=2048,_a(9,{destroy:void 0},Wv.bind(null,n,l),null)),[a,u,e]}function Wv(e,t){e.action=t}function df(e){var t=qe(),l=Ne;if(l!==null)return ff(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function _a(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=_u(),ce.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 hf(){return qe().memoizedState}function Mu(e,t,l,a){var n=lt();ce.flags|=e,n.memoizedState=_a(1|t,{destroy:void 0},l,a===void 0?null:a)}function Uu(e,t,l,a){var n=qe();a=a===void 0?null:a;var u=n.memoizedState.inst;Ne!==null&&a!==null&&Dc(a,Ne.memoizedState.deps)?n.memoizedState=_a(t,u,l,a):(ce.flags|=e,n.memoizedState=_a(1|t,u,l,a))}function mf(e,t){Mu(8390656,8,e,t)}function Yc(e,t){Uu(2048,8,e,t)}function Fv(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=_u(),ce.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function vf(e){var t=qe().memoizedState;return Fv({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function yf(e,t){return Uu(4,2,e,t)}function gf(e,t){return Uu(4,4,e,t)}function pf(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 bf(e,t,l){l=l!=null?l.concat([e]):null,Uu(4,4,pf.bind(null,t,e),l)}function Gc(){}function Sf(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Dc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function xf(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Dc(t,a[1]))return a[0];if(a=e(),ea){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a}function Xc(e,t,l){return l===void 0||(It&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ed(),ce.lanes|=e,Tl|=e,l)}function Ef(e,t,l,a){return vt(l,t)?l:Aa.current!==null?(e=Xc(e,l,a),vt(e,t)||(Ye=!0),e):(It&42)===0||(It&1073741824)!==0&&(me&261930)===0?(Ye=!0,e.memoizedState=l):(e=Ed(),ce.lanes|=e,Tl|=e,t)}function jf(e,t,l,a,n){var u=K.p;K.p=u!==0&&8>u?u:8;var r=U.T,h={};U.T=h,Zc(e,!1,t,l);try{var b=n(),A=U.S;if(A!==null&&A(h,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var w=Zv(b,a);xn(e,t,w,xt(e))}else xn(e,t,a,xt(e))}catch(q){xn(e,t,{then:function(){},status:"rejected",reason:q},xt())}finally{K.p=u,r!==null&&h.types!==null&&(r.types=h.types),U.T=r}}function Iv(){}function Qc(e,t,l,a){if(e.tag!==5)throw Error(s(476));var n=Nf(e).queue;jf(e,n,t,Q,l===null?Iv:function(){return Cf(e),l(a)})}function Nf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:Q},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cf(e){var t=Nf(e);t.next===null&&(t=e.alternate.memoizedState),xn(e,t.next.queue,{},xt())}function Vc(){return $e(qn)}function Tf(){return qe().memoizedState}function Af(){return qe().memoizedState}function Pv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=xt();e=Sl(l);var a=xl(t,e,l);a!==null&&(ot(a,t,l),yn(a,t,l)),t={cache:Sc()},e.payload=t;return}t=t.return}}function ey(e,t,l){var a=xt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wu(e)?zf(t,l):(l=rc(e,t,l,a),l!==null&&(ot(l,e,a),_f(l,t,a)))}function Rf(e,t,l){var a=xt();xn(e,t,l,a)}function xn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(wu(e))zf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var r=t.lastRenderedState,h=u(r,l);if(n.hasEagerState=!0,n.eagerState=h,vt(h,r))return vu(e,t,n,0),Ae===null&&mu(),!1}catch{}finally{}if(l=rc(e,t,n,a),l!==null)return ot(l,e,a),_f(l,t,a),!0}return!1}function Zc(e,t,l,a){if(a={lane:2,revertLane:Ns(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wu(e)){if(t)throw Error(s(479))}else t=rc(e,l,a,2),t!==null&&ot(t,e,2)}function wu(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function zf(e,t){Ra=Ru=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function _f(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Mr(e,l)}}var En={readContext:$e,use:Du,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useInsertionEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useSyncExternalStore:we,useId:we,useHostTransitionStatus:we,useFormState:we,useActionState:we,useOptimistic:we,useMemoCache:we,useCacheRefresh:we};En.useEffectEvent=we;var Df={readContext:$e,use:Du,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:mf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Mu(4194308,4,pf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Mu(4194308,4,e,t)},useInsertionEffect:function(e,t){Mu(4,2,e,t)},useMemo:function(e,t){var l=lt();t=t===void 0?null:t;var a=e();if(ea){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=lt();if(l!==void 0){var n=l(t);if(ea){dl(!0);try{l(t)}finally{dl(!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=ey.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:function(e){e=Lc(e);var t=e.queue,l=Rf.bind(null,ce,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Gc,useDeferredValue:function(e,t){var l=lt();return Xc(l,e,t)},useTransition:function(){var e=Lc(!1);return e=jf.bind(null,ce,e.queue,!0,!1),lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ce,n=lt();if(ye){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Ae===null)throw Error(s(349));(me&127)!==0||Fo(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,mf(Po.bind(null,a,u,e),[e]),a.flags|=2048,_a(9,{destroy:void 0},Io.bind(null,a,u,l,t),null),l},useId:function(){var e=lt(),t=Ae.identifierPrefix;if(ye){var l=Lt,a=qt;l=(a&~(1<<32-mt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Kv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Vc,useFormState:rf,useActionState:rf,useOptimistic:function(e){var t=lt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Zc.bind(null,ce,!0,l),l.dispatch=t,[e,t]},useMemoCache:Hc,useCacheRefresh:function(){return lt().memoizedState=Pv.bind(null,ce)},useEffectEvent:function(e){var t=lt(),l={impl:e};return t.memoizedState=l,function(){if((Se&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},Kc={readContext:$e,use:Du,useCallback:Sf,useContext:$e,useEffect:Yc,useImperativeHandle:bf,useInsertionEffect:yf,useLayoutEffect:gf,useMemo:xf,useReducer:Ou,useRef:hf,useState:function(){return Ou(Pt)},useDebugValue:Gc,useDeferredValue:function(e,t){var l=qe();return Ef(l,Ne.memoizedState,e,t)},useTransition:function(){var e=Ou(Pt)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:Wo,useId:Tf,useHostTransitionStatus:Vc,useFormState:of,useActionState:of,useOptimistic:function(e,t){var l=qe();return lf(l,Ne,e,t)},useMemoCache:Hc,useCacheRefresh:Af};Kc.useEffectEvent=vf;var Of={readContext:$e,use:Du,useCallback:Sf,useContext:$e,useEffect:Yc,useImperativeHandle:bf,useInsertionEffect:yf,useLayoutEffect:gf,useMemo:xf,useReducer:qc,useRef:hf,useState:function(){return qc(Pt)},useDebugValue:Gc,useDeferredValue:function(e,t){var l=qe();return Ne===null?Xc(l,e,t):Ef(l,Ne.memoizedState,e,t)},useTransition:function(){var e=qc(Pt)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:Wo,useId:Tf,useHostTransitionStatus:Vc,useFormState:df,useActionState:df,useOptimistic:function(e,t){var l=qe();return Ne!==null?lf(l,Ne,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Hc,useCacheRefresh:Af};Of.useEffectEvent=vf;function Jc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:j({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var $c={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=xt(),n=Sl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(ot(t,e,a),yn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=xt(),n=Sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(ot(t,e,a),yn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=xt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(ot(t,e,l),yn(t,e,l))}};function Mf(e,t,l,a,n,u,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,r):t.prototype&&t.prototype.isPureReactComponent?!sn(l,a)||!sn(n,u):!0}function Uf(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&&$c.enqueueReplaceState(t,t.state,null)}function ta(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=j({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function wf(e){hu(e)}function Hf(e){console.error(e)}function Bf(e){hu(e)}function Hu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function qf(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 Wc(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){Hu(e,t)},l}function Lf(e){return e=Sl(e),e.tag=3,e}function kf(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(){qf(t,l,a)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){qf(t,l,a),typeof n!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function ty(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ea(t,l,n,!0),l=gt.current,l!==null){switch(l.tag){case 31:case 13:return zt===null?Ju():l.alternate===null&&He===0&&(He=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ju?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),xs(e,a,n)),!1;case 22:return l.flags|=65536,a===ju?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),xs(e,a,n)),!1}throw Error(s(435,l.tag))}return xs(e,a,n),Ju(),!1}if(ye)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==vc&&(e=Error(s(422),{cause:a}),fn(Ct(e,l)))):(a!==vc&&(t=Error(s(423),{cause:a}),fn(Ct(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Ct(a,l),n=Wc(e.stateNode,a,n),Tc(e,n),He!==4&&(He=2)),!1;var u=Error(s(520),{cause:a});if(u=Ct(u,l),_n===null?_n=[u]:_n.push(u),He!==4&&(He=2),t===null)return!0;a=Ct(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Wc(l.stateNode,a,e),Tc(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"&&(Al===null||!Al.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Lf(n),kf(n,e,l,a),Tc(l,n),!1}l=l.return}while(l!==null);return!1}var Fc=Error(s(461)),Ye=!1;function We(e,t,l,a){t.child=e===null?Xo(t,null,l,a):Pl(t,e.child,l,a)}function Yf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var r={};for(var h in a)h!=="ref"&&(r[h]=a[h])}else r=a;return $l(t),a=Oc(e,t,l,r,u,n),h=Mc(),e!==null&&!Ye?(Uc(e,t,n),el(e,t,n)):(ye&&h&&hc(t),t.flags|=1,We(e,t,a,n),t.child)}function Gf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!oc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Xf(e,t,u,a,n)):(e=gu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!us(e,n)){var r=u.memoizedProps;if(l=l.compare,l=l!==null?l:sn,l(r,a)&&e.ref===t.ref)return el(e,t,n)}return t.flags|=1,e=Jt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Xf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(sn(u,a)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=a=u,us(e,n))(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,el(e,t,n)}return Ic(e,t,l,a,n)}function Qf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Vf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xu(t,u!==null?u.cachePool:null),u!==null?Zo(t,u):Rc(),Ko(t);else return a=t.lanes=536870912,Vf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(xu(t,u.cachePool),Zo(t,u),jl(),t.memoizedState=null):(e!==null&&xu(t,null),Rc(),jl());return We(e,t,n,l),t.child}function jn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vf(e,t,l,a,n){var u=Ec();return u=u===null?null:{parent:Le._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&xu(t,null),Rc(),Ko(t),e!==null&&Ea(e,t,a,!0),t.childLanes=n,null}function Bu(e,t){return t=Lu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zf(e,t,l){return Pl(t,e.child,null,l),e=Bu(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function ly(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(a.mode==="hidden")return e=Bu(t,a),t.lanes=536870912,jn(null,e);if(_c(t),(e=ze)?(e=nh(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:qt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=Ro(e),l.return=t,t.child=l,Je=t,ze=null)):e=null,e===null)throw gl(t);return t.lanes=536870912,null}return Bu(t,a)}var u=e.memoizedState;if(u!==null){var r=u.dehydrated;if(_c(t),n)if(t.flags&256)t.flags&=-257,t=Zf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ye||Ea(e,t,l,!1),n=(l&e.childLanes)!==0,Ye||n){if(a=Ae,a!==null&&(r=Ur(a,l),r!==0&&r!==u.retryLane))throw u.retryLane=r,Vl(e,r),ot(a,e,r),Fc;Ju(),t=Zf(e,t,l)}else e=u.treeContext,ze=_t(r.nextSibling),Je=t,ye=!0,yl=null,Rt=!1,e!==null&&Do(t,e),t=Bu(t,a),t.flags|=4096;return t}return e=Jt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ic(e,t,l,a,n){return $l(t),l=Oc(e,t,l,a,void 0,n),a=Mc(),e!==null&&!Ye?(Uc(e,t,n),el(e,t,n)):(ye&&a&&hc(t),t.flags|=1,We(e,t,l,n),t.child)}function Kf(e,t,l,a,n,u){return $l(t),t.updateQueue=null,l=$o(t,a,l,n),Jo(e),a=Mc(),e!==null&&!Ye?(Uc(e,t,u),el(e,t,u)):(ye&&a&&hc(t),t.flags|=1,We(e,t,l,u),t.child)}function Jf(e,t,l,a,n){if($l(t),t.stateNode===null){var u=pa,r=l.contextType;typeof r=="object"&&r!==null&&(u=$e(r)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=$c,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Nc(t),r=l.contextType,u.context=typeof r=="object"&&r!==null?$e(r):pa,u.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(Jc(t,l,r,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&$c.enqueueReplaceState(u,u.state,null),pn(t,a,u,n),gn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var h=t.memoizedProps,b=ta(l,h);u.props=b;var A=u.context,w=l.contextType;r=pa,typeof w=="object"&&w!==null&&(r=$e(w));var q=l.getDerivedStateFromProps;w=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,w||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||A!==r)&&Uf(t,u,a,r),bl=!1;var R=t.memoizedState;u.state=R,pn(t,a,u,n),gn(),A=t.memoizedState,h||R!==A||bl?(typeof q=="function"&&(Jc(t,l,q,a),A=t.memoizedState),(b=bl||Mf(t,l,b,a,R,A,r))?(w||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=A),u.props=a,u.state=A,u.context=r,a=b):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Cc(e,t),r=t.memoizedProps,w=ta(l,r),u.props=w,q=t.pendingProps,R=u.context,A=l.contextType,b=pa,typeof A=="object"&&A!==null&&(b=$e(A)),h=l.getDerivedStateFromProps,(A=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==q||R!==b)&&Uf(t,u,a,b),bl=!1,R=t.memoizedState,u.state=R,pn(t,a,u,n),gn();var _=t.memoizedState;r!==q||R!==_||bl||e!==null&&e.dependencies!==null&&bu(e.dependencies)?(typeof h=="function"&&(Jc(t,l,h,a),_=t.memoizedState),(w=bl||Mf(t,l,w,a,R,_,b)||e!==null&&e.dependencies!==null&&bu(e.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,_,b),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,_,b)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=b,a=w):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,qu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Pl(t,e.child,null,n),t.child=Pl(t,null,l,n)):We(e,t,l,n),t.memoizedState=u.state,e=t.child):e=el(e,t,n),e}function $f(e,t,l,a){return Kl(),t.flags|=256,We(e,t,l,a),t.child}var Pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function es(e){return{baseLanes:e,cachePool:Bo()}}function ts(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function Wf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,r;if((r=u)||(r=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),r&&(n=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(n?El(t):jl(),(e=ze)?(e=nh(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:qt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=Ro(e),l.return=t,t.child=l,Je=t,ze=null)):e=null,e===null)throw gl(t);return Bs(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(jl(),n=t.mode,h=Lu({mode:"hidden",children:h},n),a=Zl(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=es(l),a.childLanes=ts(e,r,l),t.memoizedState=Pc,jn(null,a)):(El(t),ls(t,h))}var b=e.memoizedState;if(b!==null&&(h=b.dehydrated,h!==null)){if(u)t.flags&256?(El(t),t.flags&=-257,t=as(e,t,l)):t.memoizedState!==null?(jl(),t.child=e.child,t.flags|=128,t=null):(jl(),h=a.fallback,n=t.mode,a=Lu({mode:"visible",children:a.children},n),h=Zl(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Pl(t,e.child,null,l),a=t.child,a.memoizedState=es(l),a.childLanes=ts(e,r,l),t.memoizedState=Pc,t=jn(null,a));else if(El(t),Bs(h)){if(r=h.nextSibling&&h.nextSibling.dataset,r)var A=r.dgst;r=A,a=Error(s(419)),a.stack="",a.digest=r,fn({value:a,source:null,stack:null}),t=as(e,t,l)}else if(Ye||Ea(e,t,l,!1),r=(l&e.childLanes)!==0,Ye||r){if(r=Ae,r!==null&&(a=Ur(r,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,Vl(e,a),ot(r,e,a),Fc;Hs(h)||Ju(),t=as(e,t,l)}else Hs(h)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,ze=_t(h.nextSibling),Je=t,ye=!0,yl=null,Rt=!1,e!==null&&Do(t,e),t=ls(t,a.children),t.flags|=4096);return t}return n?(jl(),h=a.fallback,n=t.mode,b=e.child,A=b.sibling,a=Jt(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,A!==null?h=Jt(A,h):(h=Zl(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,jn(null,a),a=t.child,h=e.child.memoizedState,h===null?h=es(l):(n=h.cachePool,n!==null?(b=Le._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=Bo(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=ts(e,r,l),t.memoizedState=Pc,jn(e.child,a)):(El(t),l=e.child,e=l.sibling,l=Jt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function ls(e,t){return t=Lu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Lu(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function as(e,t,l){return Pl(t,e.child,null,l),e=ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ff(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),pc(e.return,t,l)}function ns(e,t,l,a,n,u){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=l,r.tailMode=n,r.treeForkCount=u)}function If(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var r=Be.current,h=(r&2)!==0;if(h?(r=r&1|2,t.flags|=128):r&=1,H(Be,r),We(e,t,a,l),a=ye?on:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ff(e,l,t);else if(e.tag===19)Ff(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&&Au(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),ns(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&&Au(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}ns(t,!0,l,null,u,a);break;case"together":ns(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function el(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ea(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=Jt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Jt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function us(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&bu(e)))}function ay(e,t,l){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),pl(t,Le,e.memoizedState.cache),Kl();break;case 27:case 5:ft(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_c(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Wf(e,t,l):(El(t),e=el(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ea(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return If(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),H(Be,Be.current),a)break;return null;case 22:return t.lanes=0,Qf(e,t,l,t.pendingProps);case 24:pl(t,Le,e.memoizedState.cache)}return el(e,t,l)}function Pf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=!0;else{if(!us(e,l)&&(t.flags&128)===0)return Ye=!1,ay(e,t,l);Ye=(e.flags&131072)!==0}else Ye=!1,ye&&(t.flags&1048576)!==0&&_o(t,on,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Fl(t.elementType),t.type=e,typeof e=="function")oc(e)?(a=ta(e,a),t.tag=1,t=Jf(null,t,e,a,l)):(t.tag=0,t=Ic(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Z){t.tag=11,t=Yf(null,t,e,a,l);break e}else if(n===V){t.tag=14,t=Gf(null,t,e,a,l);break e}}throw t=Ze(e)||e,Error(s(306,t,""))}}return t;case 0:return Ic(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ta(a,t.pendingProps),Jf(e,t,a,n,l);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Cc(e,t),pn(t,a,null,l);var r=t.memoizedState;if(a=r.cache,pl(t,Le,a),a!==u.cache&&bc(t,[Le],l,!0),gn(),a=r.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=$f(e,t,a,l);break e}else if(a!==n){n=Ct(Error(s(424)),t),fn(n),t=$f(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=_t(e.firstChild),Je=t,ye=!0,yl=null,Rt=!0,l=Xo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Kl(),a===n){t=el(e,t,l);break e}We(e,t,a,l)}t=t.child}return t;case 26:return qu(e,t),e===null?(l=oh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ye||(l=t.type,e=t.pendingProps,a=ti(re.current).createElement(l),a[Ke]=t,a[nt]=e,Fe(a,l,e),Qe(a),t.stateNode=a):t.memoizedState=oh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ft(t),e===null&&ye&&(a=t.stateNode=ch(t.type,t.pendingProps,re.current),Je=t,Rt=!0,n=ze,Dl(t.type)?(qs=n,ze=_t(a.firstChild)):ze=n),We(e,t,t.pendingProps.children,l),qu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((n=a=ze)&&(a=My(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,Je=t,ze=_t(a.firstChild),Rt=!1,n=!0):n=!1),n||gl(t)),ft(t),n=t.type,u=t.pendingProps,r=e!==null?e.memoizedProps:null,a=u.children,Ms(n,u)?a=null:r!==null&&Ms(n,r)&&(t.flags|=32),t.memoizedState!==null&&(n=Oc(e,t,Jv,null,null,l),qn._currentValue=n),qu(e,t),We(e,t,a,l),t.child;case 6:return e===null&&ye&&((e=l=ze)&&(l=Uy(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,Je=t,ze=null,e=!0):e=!1),e||gl(t)),null;case 13:return Wf(e,t,l);case 4:return Ue(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Pl(t,null,a,l):We(e,t,a,l),t.child;case 11:return Yf(e,t,t.type,t.pendingProps,l);case 7:return We(e,t,t.pendingProps,l),t.child;case 8:return We(e,t,t.pendingProps.children,l),t.child;case 12:return We(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pl(t,t.type,a.value),We(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,$l(t),n=$e(n),a=a(n),t.flags|=1,We(e,t,a,l),t.child;case 14:return Gf(e,t,t.type,t.pendingProps,l);case 15:return Xf(e,t,t.type,t.pendingProps,l);case 19:return If(e,t,l);case 31:return ly(e,t,l);case 22:return Qf(e,t,l,t.pendingProps);case 24:return $l(t),a=$e(Le),e===null?(n=Ec(),n===null&&(n=Ae,u=Sc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Nc(t),pl(t,Le,n)):((e.lanes&l)!==0&&(Cc(e,t),pn(t,null,null,l),gn()),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),pl(t,Le,a)):(a=u.cache,pl(t,Le,a),a!==n.cache&&bc(t,[Le],l,!0))),We(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function tl(e){e.flags|=4}function is(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(Td())e.flags|=8192;else throw Il=ju,jc}else e.flags&=-16777217}function ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vh(t))if(Td())e.flags|=8192;else throw Il=ju,jc}function ku(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dr():536870912,e.lanes|=t,Ua|=t)}function Nn(e,t){if(!ye)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 _e(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 ny(e,t,l){var a=t.pendingProps;switch(mc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ft(Le),he(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(xa(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yc())),_e(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(tl(t),u!==null?(_e(t),ed(t,u)):(_e(t),is(t,n,null,a,l))):u?u!==e.memoizedState?(tl(t),_e(t),ed(t,u)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&tl(t),_e(t),is(t,n,e,a,l)),null;case 27:if(tt(t),l=re.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return _e(t),null}e=J.current,xa(t)?Oo(t):(e=ch(n,a,l),t.stateNode=e,tl(t))}return _e(t),null;case 5:if(tt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return _e(t),null}if(u=J.current,xa(t))Oo(t);else{var r=ti(re.current);switch(u){case 1:u=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=r.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?r.createElement(n,{is:a.is}):r.createElement(n)}}u[Ke]=t,u[nt]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)u.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=u;e:switch(Fe(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&&tl(t)}}return _e(t),is(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=re.current,xa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Je,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ke]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Wd(e.nodeValue,l)),e||gl(t,!0)}else e=ti(e).createTextNode(a),e[Ke]=t,t.stateNode=e}return _e(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=xa(t),l!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Ke]=t}else Kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else l=yc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=xa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[Ke]=t}else Kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),n=!1}else n=yc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ku(t,t.updateQueue),_e(t),null);case 4:return he(),e===null&&Rs(t.stateNode.containerInfo),_e(t),null;case 10:return Ft(t.type),_e(t),null;case 19:if(O(Be),a=t.memoizedState,a===null)return _e(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Nn(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Au(e),u!==null){for(t.flags|=128,Nn(a,!1),e=u.updateQueue,t.updateQueue=e,ku(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ao(l,e),l=l.sibling;return H(Be,Be.current&1|2),ye&&$t(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&dt()>Vu&&(t.flags|=128,n=!0,Nn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Au(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,ku(t,e),Nn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ye)return _e(t),null}else 2*dt()-a.renderingStartTime>Vu&&l!==536870912&&(t.flags|=128,n=!0,Nn(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=dt(),e.sibling=null,l=Be.current,H(Be,n?l&1|2:l&1),ye&&$t(t,a.treeForkCount),e):(_e(t),null);case 22:case 23:return pt(t),zc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),l=t.updateQueue,l!==null&&ku(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&&O(Wl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(Le),_e(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function uy(e,t){switch(mc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(Le),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return tt(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(s(340));Kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(Be),null;case 4:return he(),null;case 10:return Ft(t.type),null;case 22:case 23:return pt(t),zc(),e!==null&&O(Wl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(Le),null;case 25:return null;default:return null}}function td(e,t){switch(mc(t),t.tag){case 3:Ft(Le),he();break;case 26:case 27:case 5:tt(t);break;case 4:he();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:O(Be);break;case 10:Ft(t.type);break;case 22:case 23:pt(t),zc(),e!==null&&O(Wl);break;case 24:Ft(Le)}}function Cn(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,r=l.inst;a=u(),r.destroy=a}l=l.next}while(l!==n)}}catch(h){je(t,t.return,h)}}function Nl(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 r=a.inst,h=r.destroy;if(h!==void 0){r.destroy=void 0,n=t;var b=l,A=h;try{A()}catch(w){je(n,b,w)}}}a=a.next}while(a!==u)}}catch(w){je(t,t.return,w)}}function ld(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Vo(t,l)}catch(a){je(e,e.return,a)}}}function ad(e,t,l){l.props=ta(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){je(e,t,a)}}function Tn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){je(e,t,n)}}function kt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){je(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){je(e,t,n)}else l.current=null}function nd(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){je(e,e.return,n)}}function cs(e,t,l){try{var a=e.stateNode;Ay(a,e.type,l,t),a[nt]=t}catch(n){je(e,e.return,n)}}function ud(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ud(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&&Dl(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 rs(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=Zt));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(rs(e,t,l),e=e.sibling;e!==null;)rs(e,t,l),e=e.sibling}function Yu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Yu(e,t,l),e=e.sibling;e!==null;)Yu(e,t,l),e=e.sibling}function id(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Fe(t,a,l),t[Ke]=e,t[nt]=l}catch(u){je(e,e.return,u)}}var ll=!1,Ge=!1,os=!1,cd=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function iy(e,t){if(e=e.containerInfo,Ds=si,e=po(e),ac(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 r=0,h=-1,b=-1,A=0,w=0,q=e,R=null;t:for(;;){for(var _;q!==l||n!==0&&q.nodeType!==3||(h=r+n),q!==u||a!==0&&q.nodeType!==3||(b=r+a),q.nodeType===3&&(r+=q.nodeValue.length),(_=q.firstChild)!==null;)R=q,q=_;for(;;){if(q===e)break t;if(R===l&&++A===n&&(h=r),R===u&&++w===a&&(b=r),(_=q.nextSibling)!==null)break;q=R,R=q.parentNode}q=_}l=h===-1||b===-1?null:{start:h,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Os={focusedElem:e,selectionRange:l},si=!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)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var W=ta(l.type,n);e=a.getSnapshotBeforeUpdate(W,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){je(l,l.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ws(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ws(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}}function sd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:nl(e,l),a&4&&Cn(5,l);break;case 1:if(nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){je(l,l.return,r)}else{var n=ta(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){je(l,l.return,r)}}a&64&&ld(l),a&512&&Tn(l,l.return);break;case 3:if(nl(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{Vo(e,t)}catch(r){je(l,l.return,r)}}break;case 27:t===null&&a&4&&id(l);case 26:case 5:nl(e,l),t===null&&a&4&&nd(l),a&512&&Tn(l,l.return);break;case 12:nl(e,l);break;case 31:nl(e,l),a&4&&fd(e,l);break;case 13:nl(e,l),a&4&&dd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=vy.bind(null,l),wy(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||Ge,n=ll;var u=Ge;ll=a,(Ge=t)&&!u?ul(e,l,(l.subtreeFlags&8772)!==0):nl(e,l),ll=n,Ge=u}break;case 30:break;default:nl(e,l)}}function rd(e){var t=e.alternate;t!==null&&(e.alternate=null,rd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ki(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 Oe=null,it=!1;function al(e,t,l){for(l=l.child;l!==null;)od(e,t,l),l=l.sibling}function od(e,t,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount($a,l)}catch{}switch(l.tag){case 26:Ge||kt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ge||kt(l,t);var a=Oe,n=it;Dl(l.type)&&(Oe=l.stateNode,it=!1),al(e,t,l),wn(l.stateNode),Oe=a,it=n;break;case 5:Ge||kt(l,t);case 6:if(a=Oe,n=it,Oe=null,al(e,t,l),Oe=a,it=n,Oe!==null)if(it)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(l.stateNode)}catch(u){je(l,t,u)}else try{Oe.removeChild(l.stateNode)}catch(u){je(l,t,u)}break;case 18:Oe!==null&&(it?(e=Oe,lh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ga(e)):lh(Oe,l.stateNode));break;case 4:a=Oe,n=it,Oe=l.stateNode.containerInfo,it=!0,al(e,t,l),Oe=a,it=n;break;case 0:case 11:case 14:case 15:Nl(2,l,t),Ge||Nl(4,l,t),al(e,t,l);break;case 1:Ge||(kt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ad(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Ge=(a=Ge)||l.memoizedState!==null,al(e,t,l),Ge=a;break;default:al(e,t,l)}}function fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ga(e)}catch(l){je(t,t.return,l)}}}function dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ga(e)}catch(l){je(t,t.return,l)}}function cy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cd),t;default:throw Error(s(435,e.tag))}}function Gu(e,t){var l=cy(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=yy.bind(null,e,a);a.then(n,n)}})}function ct(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,r=t,h=r;e:for(;h!==null;){switch(h.tag){case 27:if(Dl(h.type)){Oe=h.stateNode,it=!1;break e}break;case 5:Oe=h.stateNode,it=!1;break e;case 3:case 4:Oe=h.stateNode.containerInfo,it=!0;break e}h=h.return}if(Oe===null)throw Error(s(160));od(u,r,n),Oe=null,it=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hd(t,e),t=t.sibling}var Ut=null;function hd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ct(t,e),st(e),a&4&&(Nl(3,e,e.return),Cn(3,e),Nl(5,e,e.return));break;case 1:ct(t,e),st(e),a&512&&(Ge||l===null||kt(l,l.return)),a&64&&ll&&(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(ct(t,e),st(e),a&512&&(Ge||l===null||kt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ia]||u[Ke]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Fe(u,a,l),u[Ke]=e,Qe(u),a=u;break e;case"link":var r=hh("link","href",n).get(a+(l.href||""));if(r){for(var h=0;h<r.length;h++)if(u=r[h],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)){r.splice(h,1);break t}}u=n.createElement(a),Fe(u,a,l),n.head.appendChild(u);break;case"meta":if(r=hh("meta","content",n).get(a+(l.content||""))){for(h=0;h<r.length;h++)if(u=r[h],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)){r.splice(h,1);break t}}u=n.createElement(a),Fe(u,a,l),n.head.appendChild(u);break;default:throw Error(s(468,a))}u[Ke]=e,Qe(u),a=u}e.stateNode=a}else mh(n,e.type,e.stateNode);else e.stateNode=dh(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?mh(n,e.type,e.stateNode):dh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&cs(e,e.memoizedProps,l.memoizedProps)}break;case 27:ct(t,e),st(e),a&512&&(Ge||l===null||kt(l,l.return)),l!==null&&a&4&&cs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ct(t,e),st(e),a&512&&(Ge||l===null||kt(l,l.return)),e.flags&32){n=e.stateNode;try{fa(n,"")}catch(W){je(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,cs(e,n,l!==null?l.memoizedProps:n)),a&1024&&(os=!0);break;case 6:if(ct(t,e),st(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){je(e,e.return,W)}}break;case 3:if(ni=null,n=Ut,Ut=li(t.containerInfo),ct(t,e),Ut=n,st(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ga(t.containerInfo)}catch(W){je(e,e.return,W)}os&&(os=!1,md(e));break;case 4:a=Ut,Ut=li(e.stateNode.containerInfo),ct(t,e),st(e),Ut=a;break;case 12:ct(t,e),st(e);break;case 31:ct(t,e),st(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gu(e,a)));break;case 13:ct(t,e),st(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qu=dt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gu(e,a)));break;case 22:n=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,A=ll,w=Ge;if(ll=A||n,Ge=w||b,ct(t,e),Ge=w,ll=A,st(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||b||ll||Ge||la(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(u=b.stateNode,n)r=u.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{h=b.stateNode;var q=b.memoizedProps.style,R=q!=null&&q.hasOwnProperty("display")?q.display:null;h.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(W){je(b,b.return,W)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(W){je(b,b.return,W)}}}else if(t.tag===18){if(l===null){b=t;try{var _=b.stateNode;n?ah(_,!0):ah(b.stateNode,!1)}catch(W){je(b,b.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Gu(e,l))));break;case 19:ct(t,e),st(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gu(e,a)));break;case 30:break;case 21:break;default:ct(t,e),st(e)}}function st(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ud(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var n=l.stateNode,u=ss(e);Yu(e,u,n);break;case 5:var r=l.stateNode;l.flags&32&&(fa(r,""),l.flags&=-33);var h=ss(e);Yu(e,h,r);break;case 3:case 4:var b=l.stateNode.containerInfo,A=ss(e);rs(e,A,b);break;default:throw Error(s(161))}}catch(w){je(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sd(e,t.alternate,t),t=t.sibling}function la(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nl(4,t,t.return),la(t);break;case 1:kt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ad(t,t.return,l),la(t);break;case 27:wn(t.stateNode);case 26:case 5:kt(t,t.return),la(t);break;case 22:t.memoizedState===null&&la(t);break;case 30:la(t);break;default:la(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,r=u.flags;switch(u.tag){case 0:case 11:case 15:ul(n,u,l),Cn(4,u);break;case 1:if(ul(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){je(a,a.return,A)}if(a=u,n=a.updateQueue,n!==null){var h=a.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)Qo(b[n],h)}catch(A){je(a,a.return,A)}}l&&r&64&&ld(u),Tn(u,u.return);break;case 27:id(u);case 26:case 5:ul(n,u,l),l&&a===null&&r&4&&nd(u),Tn(u,u.return);break;case 12:ul(n,u,l);break;case 31:ul(n,u,l),l&&r&4&&fd(n,u);break;case 13:ul(n,u,l),l&&r&4&&dd(n,u);break;case 22:u.memoizedState===null&&ul(n,u,l),Tn(u,u.return);break;case 30:break;default:ul(n,u,l)}t=t.sibling}}function fs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&dn(l))}function ds(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e))}function wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vd(e,t,l,a),t=t.sibling}function vd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:wt(e,t,l,a),n&2048&&Cn(9,t);break;case 1:wt(e,t,l,a);break;case 3:wt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e)));break;case 12:if(n&2048){wt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,r=u.id,h=u.onPostCommit;typeof h=="function"&&h(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){je(t,t.return,b)}}else wt(e,t,l,a);break;case 31:wt(e,t,l,a);break;case 13:wt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,r=t.alternate,t.memoizedState!==null?u._visibility&2?wt(e,t,l,a):An(e,t):u._visibility&2?wt(e,t,l,a):(u._visibility|=2,Da(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&fs(r,t);break;case 24:wt(e,t,l,a),n&2048&&ds(t.alternate,t);break;default:wt(e,t,l,a)}}function Da(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,r=t,h=l,b=a,A=r.flags;switch(r.tag){case 0:case 11:case 15:Da(u,r,h,b,n),Cn(8,r);break;case 23:break;case 22:var w=r.stateNode;r.memoizedState!==null?w._visibility&2?Da(u,r,h,b,n):An(u,r):(w._visibility|=2,Da(u,r,h,b,n)),n&&A&2048&&fs(r.alternate,r);break;case 24:Da(u,r,h,b,n),n&&A&2048&&ds(r.alternate,r);break;default:Da(u,r,h,b,n)}t=t.sibling}}function An(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:An(l,a),n&2048&&fs(a.alternate,a);break;case 24:An(l,a),n&2048&&ds(a.alternate,a);break;default:An(l,a)}t=t.sibling}}var Rn=8192;function Oa(e,t,l){if(e.subtreeFlags&Rn)for(e=e.child;e!==null;)yd(e,t,l),e=e.sibling}function yd(e,t,l){switch(e.tag){case 26:Oa(e,t,l),e.flags&Rn&&e.memoizedState!==null&&Ky(l,Ut,e.memoizedState,e.memoizedProps);break;case 5:Oa(e,t,l);break;case 3:case 4:var a=Ut;Ut=li(e.stateNode.containerInfo),Oa(e,t,l),Ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Rn,Rn=16777216,Oa(e,t,l),Rn=a):Oa(e,t,l));break;default:Oa(e,t,l)}}function gd(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 zn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ve=a,bd(a,e)}gd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pd(e),e=e.sibling}function pd(e){switch(e.tag){case 0:case 11:case 15:zn(e),e.flags&2048&&Nl(9,e,e.return);break;case 3:zn(e);break;case 12:zn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xu(e)):zn(e);break;default:zn(e)}}function Xu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ve=a,bd(a,e)}gd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nl(8,t,t.return),Xu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Xu(t));break;default:Xu(t)}e=e.sibling}}function bd(e,t){for(;Ve!==null;){var l=Ve;switch(l.tag){case 0:case 11:case 15:Nl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:dn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ve=a;else e:for(l=e;Ve!==null;){a=Ve;var n=a.sibling,u=a.return;if(rd(a),a===l){Ve=null;break e}if(n!==null){n.return=u,Ve=n;break e}Ve=u}}}var sy={getCacheForType:function(e){var t=$e(Le),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return $e(Le).controller.signal}},ry=typeof WeakMap=="function"?WeakMap:Map,Se=0,Ae=null,fe=null,me=0,Ee=0,bt=null,Cl=!1,Ma=!1,hs=!1,il=0,He=0,Tl=0,aa=0,ms=0,St=0,Ua=0,_n=null,rt=null,vs=!1,Qu=0,Sd=0,Vu=1/0,Zu=null,Al=null,Xe=0,Rl=null,wa=null,cl=0,ys=0,gs=null,xd=null,Dn=0,ps=null;function xt(){return(Se&2)!==0&&me!==0?me&-me:U.T!==null?Ns():wr()}function Ed(){if(St===0)if((me&536870912)===0||ye){var e=eu;eu<<=1,(eu&3932160)===0&&(eu=262144),St=e}else St=536870912;return e=gt.current,e!==null&&(e.flags|=32),St}function ot(e,t,l){(e===Ae&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Ha(e,0),zl(e,me,St,!1)),Fa(e,l),((Se&2)===0||e!==Ae)&&(e===Ae&&((Se&2)===0&&(aa|=l),He===4&&zl(e,me,St,!1)),Yt(e))}function jd(e,t,l){if((Se&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wa(e,t),n=a?dy(e,t):Ss(e,t,!0),u=a;do{if(n===0){Ma&&!a&&zl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!oy(l)){n=Ss(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var h=e;n=_n;var b=h.current.memoizedState.isDehydrated;if(b&&(Ha(h,r).flags|=256),r=Ss(h,r,!1),r!==2){if(hs&&!b){h.errorRecoveryDisabledLanes|=u,aa|=u,n=4;break e}u=rt,rt=n,u!==null&&(rt===null?rt=u:rt.push.apply(rt,u))}n=r}if(u=!1,n!==2)continue}}if(n===1){Ha(e,0),zl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:zl(a,t,St,!Cl);break e;case 2:rt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=Qu+300-dt(),10<n)){if(zl(a,t,St,!Cl),lu(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=eh(Nd.bind(null,a,l,rt,Zu,vs,t,St,aa,Ua,Cl,u,"Throttled",-0,0),n);break e}Nd(a,l,rt,Zu,vs,t,St,aa,Ua,Cl,u,null,-0,0)}}break}while(!0);Yt(e)}function Nd(e,t,l,a,n,u,r,h,b,A,w,q,R,_){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},yd(t,u,q);var W=(u&62914560)===u?Qu-dt():(u&4194048)===u?Sd-dt():0;if(W=Jy(q,W),W!==null){cl=u,e.cancelPendingCommit=W(Od.bind(null,e,t,u,l,a,n,r,h,b,w,q,null,R,_)),zl(e,u,r,!A);return}}Od(e,t,u,l,a,n,r,h,b)}function oy(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(!vt(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 zl(e,t,l,a){t&=~ms,t&=~aa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-mt(n),r=1<<u;a[u]=-1,n&=~r}l!==0&&Or(e,l,t)}function Ku(){return(Se&6)===0?(On(0),!1):!0}function bs(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,Wt=Jl=null,wc(e),Ta=null,mn=0,e=fe;for(;e!==null;)td(e.alternate,e),e=e.return;fe=null}}function Ha(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,_y(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,bs(),Ae=e,fe=l=Jt(e.current,null),me=t,Ee=0,bt=null,Cl=!1,Ma=Wa(e,t),hs=!1,Ua=St=ms=aa=Tl=He=0,rt=_n=null,vs=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-mt(a),u=1<<n;t|=e[n],a&=~u}return il=t,mu(),l}function Cd(e,t){ce=null,U.H=En,t===Ca||t===Eu?(t=ko(),Ee=3):t===jc?(t=ko(),Ee=4):Ee=t===Fc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,fe===null&&(He=1,Hu(e,Ct(t,e.current)))}function Td(){var e=gt.current;return e===null?!0:(me&4194048)===me?zt===null:(me&62914560)===me||(me&536870912)!==0?e===zt:!1}function Ad(){var e=U.H;return U.H=En,e===null?En:e}function Rd(){var e=U.A;return U.A=sy,e}function Ju(){He=4,Cl||(me&4194048)!==me&>.current!==null||(Ma=!0),(Tl&134217727)===0&&(aa&134217727)===0||Ae===null||zl(Ae,me,St,!1)}function Ss(e,t,l){var a=Se;Se|=2;var n=Ad(),u=Rd();(Ae!==e||me!==t)&&(Zu=null,Ha(e,t)),t=!1;var r=He;e:do try{if(Ee!==0&&fe!==null){var h=fe,b=bt;switch(Ee){case 8:bs(),r=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var A=Ee;if(Ee=0,bt=null,Ba(e,h,b,A),l&&Ma){r=0;break e}break;default:A=Ee,Ee=0,bt=null,Ba(e,h,b,A)}}fy(),r=He;break}catch(w){Cd(e,w)}while(!0);return t&&e.shellSuspendCounter++,Wt=Jl=null,Se=a,U.H=n,U.A=u,fe===null&&(Ae=null,me=0,mu()),r}function fy(){for(;fe!==null;)zd(fe)}function dy(e,t){var l=Se;Se|=2;var a=Ad(),n=Rd();Ae!==e||me!==t?(Zu=null,Vu=dt()+500,Ha(e,t)):Ma=Wa(e,t);e:do try{if(Ee!==0&&fe!==null){t=fe;var u=bt;t:switch(Ee){case 1:Ee=0,bt=null,Ba(e,t,u,1);break;case 2:case 9:if(qo(u)){Ee=0,bt=null,_d(t);break}t=function(){Ee!==2&&Ee!==9||Ae!==e||(Ee=7),Yt(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:qo(u)?(Ee=0,bt=null,_d(t)):(Ee=0,bt=null,Ba(e,t,u,7));break;case 5:var r=null;switch(fe.tag){case 26:r=fe.memoizedState;case 5:case 27:var h=fe;if(r?vh(r):h.stateNode.complete){Ee=0,bt=null;var b=h.sibling;if(b!==null)fe=b;else{var A=h.return;A!==null?(fe=A,$u(A)):fe=null}break t}}Ee=0,bt=null,Ba(e,t,u,5);break;case 6:Ee=0,bt=null,Ba(e,t,u,6);break;case 8:bs(),He=6;break e;default:throw Error(s(462))}}hy();break}catch(w){Cd(e,w)}while(!0);return Wt=Jl=null,U.H=a,U.A=n,Se=l,fe!==null?0:(Ae=null,me=0,mu(),He)}function hy(){for(;fe!==null&&!Hm();)zd(fe)}function zd(e){var t=Pf(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?$u(e):fe=t}function _d(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kf(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=Kf(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:wc(t);default:td(l,t),t=fe=Ao(t,il),t=Pf(l,t,il)}e.memoizedProps=e.pendingProps,t===null?$u(e):fe=t}function Ba(e,t,l,a){Wt=Jl=null,wc(t),Ta=null,mn=0;var n=t.return;try{if(ty(e,n,t,l,me)){He=1,Hu(e,Ct(l,e.current)),fe=null;return}}catch(u){if(n!==null)throw fe=n,u;He=1,Hu(e,Ct(l,e.current)),fe=null;return}t.flags&32768?(ye||a===1?e=!0:Ma||(me&536870912)!==0?e=!1:(Cl=e=!0,(a===2||a===9||a===3||a===6)&&(a=gt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Dd(t,e)):$u(t)}function $u(e){var t=e;do{if((t.flags&32768)!==0){Dd(t,Cl);return}e=t.return;var l=ny(t.alternate,t,il);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);He===0&&(He=5)}function Dd(e,t){do{var l=uy(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);He=6,fe=null}function Od(e,t,l,a,n,u,r,h,b){e.cancelPendingCommit=null;do Wu();while(Xe!==0);if((Se&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=sc,Zm(e,l,u,r,h,b),e===Ae&&(fe=Ae=null,me=0),wa=t,Rl=e,cl=l,ys=u,gs=n,xd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gy(In,function(){return Bd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,n=K.p,K.p=2,r=Se,Se|=4;try{iy(e,t,l)}finally{Se=r,K.p=n,U.T=a}}Xe=1,Md(),Ud(),wd()}}function Md(){if(Xe===1){Xe=0;var e=Rl,t=wa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var a=K.p;K.p=2;var n=Se;Se|=4;try{hd(t,e);var u=Os,r=po(e.containerInfo),h=u.focusedElem,b=u.selectionRange;if(r!==h&&h&&h.ownerDocument&&go(h.ownerDocument.documentElement,h)){if(b!==null&&ac(h)){var A=b.start,w=b.end;if(w===void 0&&(w=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(w,h.value.length);else{var q=h.ownerDocument||document,R=q&&q.defaultView||window;if(R.getSelection){var _=R.getSelection(),W=h.textContent.length,te=Math.min(b.start,W),Te=b.end===void 0?te:Math.min(b.end,W);!_.extend&&te>Te&&(r=Te,Te=te,te=r);var N=yo(h,te),x=yo(h,Te);if(N&&x&&(_.rangeCount!==1||_.anchorNode!==N.node||_.anchorOffset!==N.offset||_.focusNode!==x.node||_.focusOffset!==x.offset)){var T=q.createRange();T.setStart(N.node,N.offset),_.removeAllRanges(),te>Te?(_.addRange(T),_.extend(x.node,x.offset)):(T.setEnd(x.node,x.offset),_.addRange(T))}}}}for(q=[],_=h;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<q.length;h++){var B=q[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}si=!!Ds,Os=Ds=null}finally{Se=n,K.p=a,U.T=l}}e.current=t,Xe=2}}function Ud(){if(Xe===2){Xe=0;var e=Rl,t=wa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var a=K.p;K.p=2;var n=Se;Se|=4;try{sd(e,t.alternate,t)}finally{Se=n,K.p=a,U.T=l}}Xe=3}}function wd(){if(Xe===4||Xe===3){Xe=0,Bm();var e=Rl,t=wa,l=cl,a=xd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xe=5:(Xe=0,wa=Rl=null,Hd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Al=null),qi(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,n=K.p,K.p=2,U.T=null;try{for(var u=e.onRecoverableError,r=0;r<a.length;r++){var h=a[r];u(h.value,{componentStack:h.stack})}}finally{U.T=t,K.p=n}}(cl&3)!==0&&Wu(),Yt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===ps?Dn++:(Dn=0,ps=e):Dn=0,On(0)}}function Hd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dn(t)))}function Wu(){return Md(),Ud(),wd(),Bd()}function Bd(){if(Xe!==5)return!1;var e=Rl,t=ys;ys=0;var l=qi(cl),a=U.T,n=K.p;try{K.p=32>l?32:l,U.T=null,l=gs,gs=null;var u=Rl,r=cl;if(Xe=0,wa=Rl=null,cl=0,(Se&6)!==0)throw Error(s(331));var h=Se;if(Se|=4,pd(u.current),vd(u,u.current,r,l),Se=h,On(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot($a,u)}catch{}return!0}finally{K.p=n,U.T=a,Hd(e,t)}}function qd(e,t,l){t=Ct(l,t),t=Wc(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(Fa(e,2),Yt(e))}function je(e,t,l){if(e.tag===3)qd(e,e,l);else for(;t!==null;){if(t.tag===3){qd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=Ct(l,e),l=Lf(2),a=xl(t,l,2),a!==null&&(kf(l,a,t,e),Fa(a,2),Yt(a));break}}t=t.return}}function xs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new ry;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)||(hs=!0,n.add(l),e=my.bind(null,e,t,l),t.then(e,e))}function my(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ae===e&&(me&l)===l&&(He===4||He===3&&(me&62914560)===me&&300>dt()-Qu?(Se&2)===0&&Ha(e,0):ms|=l,Ua===me&&(Ua=0)),Yt(e)}function Ld(e,t){t===0&&(t=Dr()),e=Vl(e,t),e!==null&&(Fa(e,t),Yt(e))}function vy(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ld(e,l)}function yy(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(s(314))}a!==null&&a.delete(t),Ld(e,l)}function gy(e,t){return Ui(e,t)}var Fu=null,qa=null,Es=!1,Iu=!1,js=!1,_l=0;function Yt(e){e!==qa&&e.next===null&&(qa===null?Fu=qa=e:qa=qa.next=e),Iu=!0,Es||(Es=!0,by())}function On(e,t){if(!js&&Iu){js=!0;do for(var l=!1,a=Fu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var r=a.suspendedLanes,h=a.pingedLanes;u=(1<<31-mt(42|e)+1)-1,u&=n&~(r&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Xd(a,u))}else u=me,u=lu(a,a===Ae?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Wa(a,u)||(l=!0,Xd(a,u));a=a.next}while(l);js=!1}}function py(){kd()}function kd(){Iu=Es=!1;var e=0;_l!==0&&zy()&&(e=_l);for(var t=dt(),l=null,a=Fu;a!==null;){var n=a.next,u=Yd(a,t);u===0?(a.next=null,l===null?Fu=n:l.next=n,n===null&&(qa=l)):(l=a,(e!==0||(u&3)!==0)&&(Iu=!0)),a=n}Xe!==0&&Xe!==5||On(e),_l!==0&&(_l=0)}function Yd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var r=31-mt(u),h=1<<r,b=n[r];b===-1?((h&l)===0||(h&a)!==0)&&(n[r]=Vm(h,t)):b<=t&&(e.expiredLanes|=h),u&=~h}if(t=Ae,l=me,l=lu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&wi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Wa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&wi(a),qi(l)){case 2:case 8:l=zr;break;case 32:l=In;break;case 268435456:l=_r;break;default:l=In}return a=Gd.bind(null,e),l=Ui(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&wi(a),e.callbackPriority=2,e.callbackNode=null,2}function Gd(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Wu()&&e.callbackNode!==l)return null;var a=me;return a=lu(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(jd(e,a,t),Yd(e,dt()),e.callbackNode!=null&&e.callbackNode===l?Gd.bind(null,e):null)}function Xd(e,t){if(Wu())return null;jd(e,t,!0)}function by(){Dy(function(){(Se&6)!==0?Ui(Rr,py):kd()})}function Ns(){if(_l===0){var e=ja;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),_l=e}return _l}function Qd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:iu(""+e)}function Vd(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 Sy(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Qd((n[nt]||null).action),r=a.submitter;r&&(t=(t=r[nt]||null)?Qd(t.formAction):r.getAttribute("formAction"),t!==null&&(u=t,r=null));var h=new ou("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(_l!==0){var b=r?Vd(n,r):new FormData(n);Qc(l,{pending:!0,data:b,method:n.method,action:u},null,b)}}else typeof u=="function"&&(h.preventDefault(),b=r?Vd(n,r):new FormData(n),Qc(l,{pending:!0,data:b,method:n.method,action:u},u,b))},currentTarget:n}]})}}for(var Cs=0;Cs<cc.length;Cs++){var Ts=cc[Cs],xy=Ts.toLowerCase(),Ey=Ts[0].toUpperCase()+Ts.slice(1);Mt(xy,"on"+Ey)}Mt(xo,"onAnimationEnd"),Mt(Eo,"onAnimationIteration"),Mt(jo,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(qv,"onTransitionRun"),Mt(Lv,"onTransitionStart"),Mt(kv,"onTransitionCancel"),Mt(No,"onTransitionEnd"),ra("onMouseEnter",["mouseout","mouseover"]),ra("onMouseLeave",["mouseout","mouseover"]),ra("onPointerEnter",["pointerout","pointerover"]),ra("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="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(" "),jy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mn));function Zd(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 r=a.length-1;0<=r;r--){var h=a[r],b=h.instance,A=h.currentTarget;if(h=h.listener,b!==u&&n.isPropagationStopped())break e;u=h,n.currentTarget=A;try{u(n)}catch(w){hu(w)}n.currentTarget=null,u=b}else for(r=0;r<a.length;r++){if(h=a[r],b=h.instance,A=h.currentTarget,h=h.listener,b!==u&&n.isPropagationStopped())break e;u=h,n.currentTarget=A;try{u(n)}catch(w){hu(w)}n.currentTarget=null,u=b}}}}function de(e,t){var l=t[Li];l===void 0&&(l=t[Li]=new Set);var a=e+"__bubble";l.has(a)||(Kd(t,e,2,!1),l.add(a))}function As(e,t,l){var a=0;t&&(a|=4),Kd(l,e,a,t)}var Pu="_reactListening"+Math.random().toString(36).slice(2);function Rs(e){if(!e[Pu]){e[Pu]=!0,qr.forEach(function(l){l!=="selectionchange"&&(jy.has(l)||As(l,!1,e),As(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pu]||(t[Pu]=!0,As("selectionchange",!1,t))}}function Kd(e,t,l,a){switch(Eh(t)){case 2:var n=Fy;break;case 8:n=Iy;break;default:n=Xs}l=n.bind(null,t,l,e),n=void 0,!Ji||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 zs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var h=a.stateNode.containerInfo;if(h===n)break;if(r===4)for(r=a.return;r!==null;){var b=r.tag;if((b===3||b===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;h!==null;){if(r=ia(h),r===null)return;if(b=r.tag,b===5||b===6||b===26||b===27){a=u=r;continue e}h=h.parentNode}}a=a.return}Wr(function(){var A=u,w=Zi(l),q=[];e:{var R=Co.get(e);if(R!==void 0){var _=ou,W=e;switch(e){case"keypress":if(su(l)===0)break e;case"keydown":case"keyup":_=yv;break;case"focusin":W="focus",_=Ii;break;case"focusout":W="blur",_=Ii;break;case"beforeblur":case"afterblur":_=Ii;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":_=Pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=nv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=bv;break;case xo:case Eo:case jo:_=cv;break;case No:_=xv;break;case"scroll":case"scrollend":_=lv;break;case"wheel":_=jv;break;case"copy":case"cut":case"paste":_=rv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=to;break;case"toggle":case"beforetoggle":_=Cv}var te=(t&4)!==0,Te=!te&&(e==="scroll"||e==="scrollend"),N=te?R!==null?R+"Capture":null:R;te=[];for(var x=A,T;x!==null;){var B=x;if(T=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||T===null||N===null||(B=en(x,N),B!=null&&te.push(Un(x,B,T))),Te)break;x=x.return}0<te.length&&(R=new _(R,W,null,l,w),q.push({event:R,listeners:te}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",R&&l!==Vi&&(W=l.relatedTarget||l.fromElement)&&(ia(W)||W[ua]))break e;if((_||R)&&(R=w.window===w?w:(R=w.ownerDocument)?R.defaultView||R.parentWindow:window,_?(W=l.relatedTarget||l.toElement,_=A,W=W?ia(W):null,W!==null&&(Te=m(W),te=W.tag,W!==Te||te!==5&&te!==27&&te!==6)&&(W=null)):(_=null,W=A),_!==W)){if(te=Pr,B="onMouseLeave",N="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(te=to,B="onPointerLeave",N="onPointerEnter",x="pointer"),Te=_==null?R:Pa(_),T=W==null?R:Pa(W),R=new te(B,x+"leave",_,l,w),R.target=Te,R.relatedTarget=T,B=null,ia(w)===A&&(te=new te(N,x+"enter",W,l,w),te.target=T,te.relatedTarget=Te,B=te),Te=B,_&&W)t:{for(te=Ny,N=_,x=W,T=0,B=N;B;B=te(B))T++;B=0;for(var ee=x;ee;ee=te(ee))B++;for(;0<T-B;)N=te(N),T--;for(;0<B-T;)x=te(x),B--;for(;T--;){if(N===x||x!==null&&N===x.alternate){te=N;break t}N=te(N),x=te(x)}te=null}else te=null;_!==null&&Jd(q,R,_,te,!1),W!==null&&Te!==null&&Jd(q,Te,W,te,!0)}}e:{if(R=A?Pa(A):window,_=R.nodeName&&R.nodeName.toLowerCase(),_==="select"||_==="input"&&R.type==="file")var pe=ro;else if(co(R))if(oo)pe=wv;else{pe=Mv;var F=Ov}else _=R.nodeName,!_||_.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?A&&Qi(A.elementType)&&(pe=ro):pe=Uv;if(pe&&(pe=pe(e,A))){so(q,pe,l,w);break e}F&&F(e,R,A),e==="focusout"&&A&&R.type==="number"&&A.memoizedProps.value!=null&&Xi(R,"number",R.value)}switch(F=A?Pa(A):window,e){case"focusin":(co(F)||F.contentEditable==="true")&&(va=F,nc=A,rn=null);break;case"focusout":rn=nc=va=null;break;case"mousedown":uc=!0;break;case"contextmenu":case"mouseup":case"dragend":uc=!1,bo(q,l,w);break;case"selectionchange":if(Bv)break;case"keydown":case"keyup":bo(q,l,w)}var se;if(ec)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else ma?uo(e,l)&&(ve="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ve="onCompositionStart");ve&&(lo&&l.locale!=="ko"&&(ma||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ma&&(se=Fr()):(ml=w,$i="value"in ml?ml.value:ml.textContent,ma=!0)),F=ei(A,ve),0<F.length&&(ve=new eo(ve,e,null,l,w),q.push({event:ve,listeners:F}),se?ve.data=se:(se=io(l),se!==null&&(ve.data=se)))),(se=Av?Rv(e,l):zv(e,l))&&(ve=ei(A,"onBeforeInput"),0<ve.length&&(F=new eo("onBeforeInput","beforeinput",null,l,w),q.push({event:F,listeners:ve}),F.data=se)),Sy(q,e,A,l,w)}Zd(q,t)})}function Un(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ei(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(Un(e,n,u)),n=en(e,t),n!=null&&a.push(Un(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Ny(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jd(e,t,l,a,n){for(var u=t._reactName,r=[];l!==null&&l!==a;){var h=l,b=h.alternate,A=h.stateNode;if(h=h.tag,b!==null&&b===a)break;h!==5&&h!==26&&h!==27||A===null||(b=A,n?(A=en(l,u),A!=null&&r.unshift(Un(l,A,b))):n||(A=en(l,u),A!=null&&r.push(Un(l,A,b)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var Cy=/\r\n?/g,Ty=/\u0000|\uFFFD/g;function $d(e){return(typeof e=="string"?e:""+e).replace(Cy,`
|
|
49
|
+
`).replace(Ty,"")}function Wd(e,t){return t=$d(t),$d(e)===t}function Ce(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||fa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&fa(e,""+a);break;case"className":nu(e,"class",a);break;case"tabIndex":nu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":nu(e,l,a);break;case"style":Jr(e,a,u);break;case"data":if(t!=="object"){nu(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=iu(""+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"&&Ce(e,t,"name",n.name,n,null),Ce(e,t,"formEncType",n.formEncType,n,null),Ce(e,t,"formMethod",n.formMethod,n,null),Ce(e,t,"formTarget",n.formTarget,n,null)):(Ce(e,t,"encType",n.encType,n,null),Ce(e,t,"method",n.method,n,null),Ce(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=iu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(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=iu(""+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":de("beforetoggle",e),de("toggle",e),au(e,"popover",a);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":au(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=ev.get(l)||l,au(e,l,a))}}function _s(e,t,l,a,n,u){switch(l){case"style":Jr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof a=="string"?fa(e,a):(typeof a=="number"||typeof a=="bigint")&&fa(e,""+a);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lr.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[nt]||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,""):au(e,l,a)}}}function Fe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var r=l[u];if(r!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,u,r,l,null)}}n&&Ce(e,t,"srcSet",l.srcSet,l,null),a&&Ce(e,t,"src",l.src,l,null);return;case"input":de("invalid",e);var h=u=r=n=null,b=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":r=w;break;case"checked":b=w;break;case"defaultChecked":A=w;break;case"value":u=w;break;case"defaultValue":h=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(137,t));break;default:Ce(e,t,a,w,l,null)}}Qr(e,u,h,b,A,r,n,!1);return;case"select":de("invalid",e),a=r=u=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":u=h;break;case"defaultValue":r=h;break;case"multiple":a=h;default:Ce(e,t,n,h,l,null)}t=u,l=r,e.multiple=!!a,t!=null?oa(e,!!a,t,!1):l!=null&&oa(e,!!a,l,!0);return;case"textarea":de("invalid",e),u=n=a=null;for(r in l)if(l.hasOwnProperty(r)&&(h=l[r],h!=null))switch(r){case"value":a=h;break;case"defaultValue":n=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:Ce(e,t,r,h,l,null)}Zr(e,a,n,u);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ce(e,t,b,a,l,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(a=0;a<Mn.length;a++)de(Mn[a],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,A,a,l,null)}return;default:if(Qi(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&_s(e,t,w,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Ce(e,t,h,a,l,null))}function Ay(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,r=null,h=null,b=null,A=null,w=null;for(_ in l){var q=l[_];if(l.hasOwnProperty(_)&&q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":b=q;default:a.hasOwnProperty(_)||Ce(e,t,_,null,a,q)}}for(var R in a){var _=a[R];if(q=l[R],a.hasOwnProperty(R)&&(_!=null||q!=null))switch(R){case"type":u=_;break;case"name":n=_;break;case"checked":A=_;break;case"defaultChecked":w=_;break;case"value":r=_;break;case"defaultValue":h=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,t));break;default:_!==q&&Ce(e,t,R,_,a,q)}}Gi(e,r,h,b,A,w,u,n);return;case"select":_=r=h=R=null;for(u in l)if(b=l[u],l.hasOwnProperty(u)&&b!=null)switch(u){case"value":break;case"multiple":_=b;default:a.hasOwnProperty(u)||Ce(e,t,u,null,a,b)}for(n in a)if(u=a[n],b=l[n],a.hasOwnProperty(n)&&(u!=null||b!=null))switch(n){case"value":R=u;break;case"defaultValue":h=u;break;case"multiple":r=u;default:u!==b&&Ce(e,t,n,u,a,b)}t=h,l=r,a=_,R!=null?oa(e,!!l,R,!1):!!a!=!!l&&(t!=null?oa(e,!!l,t,!0):oa(e,!!l,l?[]:"",!1));return;case"textarea":_=R=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ce(e,t,h,null,a,n)}for(r in a)if(n=a[r],u=l[r],a.hasOwnProperty(r)&&(n!=null||u!=null))switch(r){case"value":R=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&Ce(e,t,r,n,a,u)}Vr(e,R,_);return;case"option":for(var W in l)if(R=l[W],l.hasOwnProperty(W)&&R!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Ce(e,t,W,null,a,R)}for(b in a)if(R=a[b],_=l[b],a.hasOwnProperty(b)&&R!==_&&(R!=null||_!=null))switch(b){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Ce(e,t,b,R,a,_)}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 te in l)R=l[te],l.hasOwnProperty(te)&&R!=null&&!a.hasOwnProperty(te)&&Ce(e,t,te,null,a,R);for(A in a)if(R=a[A],_=l[A],a.hasOwnProperty(A)&&R!==_&&(R!=null||_!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,t));break;default:Ce(e,t,A,R,a,_)}return;default:if(Qi(t)){for(var Te in l)R=l[Te],l.hasOwnProperty(Te)&&R!==void 0&&!a.hasOwnProperty(Te)&&_s(e,t,Te,void 0,a,R);for(w in a)R=a[w],_=l[w],!a.hasOwnProperty(w)||R===_||R===void 0&&_===void 0||_s(e,t,w,R,a,_);return}}for(var N in l)R=l[N],l.hasOwnProperty(N)&&R!=null&&!a.hasOwnProperty(N)&&Ce(e,t,N,null,a,R);for(q in a)R=a[q],_=l[q],!a.hasOwnProperty(q)||R===_||R==null&&_==null||Ce(e,t,q,R,a,_)}function Fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ry(){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,r=n.initiatorType,h=n.duration;if(u&&h&&Fd(r)){for(r=0,h=n.responseEnd,a+=1;a<l.length;a++){var b=l[a],A=b.startTime;if(A>h)break;var w=b.transferSize,q=b.initiatorType;w&&Fd(q)&&(b=b.responseEnd,r+=w*(b<h?1:(h-A)/(b-A)))}if(--a,t+=8*(u+r)/(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 Ds=null,Os=null;function ti(e){return e.nodeType===9?e:e.ownerDocument}function Id(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 Pd(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 Ms(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 Us=null;function zy(){var e=window.event;return e&&e.type==="popstate"?e===Us?!1:(Us=e,!0):(Us=null,!1)}var eh=typeof setTimeout=="function"?setTimeout:void 0,_y=typeof clearTimeout=="function"?clearTimeout:void 0,th=typeof Promise=="function"?Promise:void 0,Dy=typeof queueMicrotask=="function"?queueMicrotask:typeof th<"u"?function(e){return th.resolve(null).then(e).catch(Oy)}:eh;function Oy(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function lh(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),Ga(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")wn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,wn(l);for(var u=l.firstChild;u;){var r=u.nextSibling,h=u.nodeName;u[Ia]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=r}}else l==="body"&&wn(e.ownerDocument.body);l=n}while(l);Ga(t)}function ah(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 ws(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":ws(l),ki(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function My(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ia])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function Uy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_t(e.nextSibling),e===null))return null;return e}function nh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function Hs(e){return e.data==="$?"||e.data==="$~"}function Bs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wy(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 _t(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 qs=null;function uh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return _t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function ih(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 ch(e,t,l){switch(t=ti(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function wn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ki(e)}var Dt=new Map,sh=new Set;function li(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=K.d;K.d={f:Hy,r:By,D:qy,C:Ly,L:ky,m:Yy,X:Xy,S:Gy,M:Qy};function Hy(){var e=sl.f(),t=Ku();return e||t}function By(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?Cf(t):sl.r(e)}var La=typeof document>"u"?null:document;function rh(e,t,l){var a=La;if(a&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),sh.has(n)||(sh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Fe(t,"link",e),Qe(t),a.head.appendChild(t)))}}function qy(e){sl.D(e),rh("dns-prefetch",e,null)}function Ly(e,t){sl.C(e,t),rh("preconnect",e,t)}function ky(e,t,l){sl.L(e,t,l);var a=La;if(a&&e&&t){var n='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+jt(l.imageSizes)+'"]')):n+='[href="'+jt(e)+'"]';var u=n;switch(t){case"style":u=ka(e);break;case"script":u=Ya(e)}Dt.has(u)||(e=j({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Hn(u))||t==="script"&&a.querySelector(Bn(u))||(t=a.createElement("link"),Fe(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Yy(e,t){sl.m(e,t);var l=La;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ya(e)}if(!Dt.has(u)&&(e=j({rel:"modulepreload",href:e},t),Dt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Bn(u)))return}a=l.createElement("link"),Fe(a,"link",e),Qe(a),l.head.appendChild(a)}}}function Gy(e,t,l){sl.S(e,t,l);var a=La;if(a&&e){var n=sa(a).hoistableStyles,u=ka(e);t=t||"default";var r=n.get(u);if(!r){var h={loading:0,preload:null};if(r=a.querySelector(Hn(u)))h.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dt.get(u))&&Ls(e,l);var b=r=a.createElement("link");Qe(b),Fe(b,"link",e),b._p=new Promise(function(A,w){b.onload=A,b.onerror=w}),b.addEventListener("load",function(){h.loading|=1}),b.addEventListener("error",function(){h.loading|=2}),h.loading|=4,ai(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:h},n.set(u,r)}}}function Xy(e,t){sl.X(e,t);var l=La;if(l&&e){var a=sa(l).hoistableScripts,n=Ya(e),u=a.get(n);u||(u=l.querySelector(Bn(n)),u||(e=j({src:e,async:!0},t),(t=Dt.get(n))&&ks(e,t),u=l.createElement("script"),Qe(u),Fe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Qy(e,t){sl.M(e,t);var l=La;if(l&&e){var a=sa(l).hoistableScripts,n=Ya(e),u=a.get(n);u||(u=l.querySelector(Bn(n)),u||(e=j({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&ks(e,t),u=l.createElement("script"),Qe(u),Fe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function oh(e,t,l,a){var n=(n=re.current)?li(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ka(l.href),l=sa(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=ka(l.href);var u=sa(n).hoistableStyles,r=u.get(e);if(r||(n=n.ownerDocument||n,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,r),(u=n.querySelector(Hn(e)))&&!u._p&&(r.instance=u,r.state.loading=5),Dt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dt.set(e,l),u||Vy(n,e,l,r.state))),t&&a===null)throw Error(s(528,""));return r}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ya(l),l=sa(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(s(444,e))}}function ka(e){return'href="'+jt(e)+'"'}function Hn(e){return'link[rel="stylesheet"]['+e+"]"}function fh(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function Vy(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}),Fe(t,"link",l),Qe(t),e.head.appendChild(t))}function Ya(e){return'[src="'+jt(e)+'"]'}function Bn(e){return"script[async]"+e}function dh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(l.href)+'"]');if(a)return t.instance=a,Qe(a),a;var n=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),Fe(a,"style",n),ai(a,l.precedence,e),t.instance=a;case"stylesheet":n=ka(l.href);var u=e.querySelector(Hn(n));if(u)return t.state.loading|=4,t.instance=u,Qe(u),u;a=fh(l),(n=Dt.get(n))&&Ls(a,n),u=(e.ownerDocument||e).createElement("link"),Qe(u);var r=u;return r._p=new Promise(function(h,b){r.onload=h,r.onerror=b}),Fe(u,"link",a),t.state.loading|=4,ai(u,l.precedence,e),t.instance=u;case"script":return u=Ya(l.src),(n=e.querySelector(Bn(u)))?(t.instance=n,Qe(n),n):(a=l,(n=Dt.get(u))&&(a=j({},l),ks(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Qe(n),Fe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ai(a,l.precedence,e));return t.instance}function ai(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,r=0;r<a.length;r++){var h=a[r];if(h.dataset.precedence===t)u=h;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 Ls(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ks(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ni=null;function hh(e,t,l){if(ni===null){var a=new Map,n=ni=new Map;n.set(l,a)}else n=ni,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ia]||u[Ke]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var r=u.getAttribute(t)||"";r=e+r;var h=a.get(r);h?h.push(u):a.set(r,[u])}}return a}function mh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Zy(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 vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ky(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=ka(a.href),u=t.querySelector(Hn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ui.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Qe(u);return}u=t.ownerDocument||t,a=fh(a),(n=Dt.get(n))&&Ls(a,n),u=u.createElement("link"),Qe(u);var r=u;r._p=new Promise(function(h,b){r.onload=h,r.onerror=b}),Fe(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ui.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ys=0;function Jy(e,t){return e.stylesheets&&e.count===0&&ci(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ci(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Ys===0&&(Ys=62500*Ry());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ci(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Ys?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ci(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ii=null;function ci(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ii=new Map,t.forEach($y,e),ii=null,ui.call(e))}function $y(e,t){if(!(t.state.loading&4)){var l=ii.get(e);if(l)var a=l.get(null);else{l=new Map,ii.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var r=n[u];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),a=r)}a&&l.set(null,a)}n=t.instance,r=n.getAttribute("data-precedence"),u=l.get(r)||a,u===a&&l.set(null,n),l.set(r,n),this.count++,a=ui.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 qn={$$typeof:G,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Wy(e,t,l,a,n,u,r,h,b){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=Hi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hi(0),this.hiddenUpdates=Hi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function yh(e,t,l,a,n,u,r,h,b,A,w,q){return e=new Wy(e,t,l,r,b,A,w,q,h),t=1,u===!0&&(t|=24),u=yt(3,null,null,t),e.current=u,u.stateNode=e,t=Sc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Nc(u),e}function gh(e){return e?(e=pa,e):pa}function ph(e,t,l,a,n,u){n=gh(n),a.context===null?a.context=n:a.pendingContext=n,a=Sl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=xl(e,a,t),l!==null&&(ot(l,e,t),yn(l,e,t))}function bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Gs(e,t){bh(e,t),(e=e.alternate)&&bh(e,t)}function Sh(e){if(e.tag===13||e.tag===31){var t=Vl(e,67108864);t!==null&&ot(t,e,67108864),Gs(e,67108864)}}function xh(e){if(e.tag===13||e.tag===31){var t=xt();t=Bi(t);var l=Vl(e,t);l!==null&&ot(l,e,t),Gs(e,t)}}var si=!0;function Fy(e,t,l,a){var n=U.T;U.T=null;var u=K.p;try{K.p=2,Xs(e,t,l,a)}finally{K.p=u,U.T=n}}function Iy(e,t,l,a){var n=U.T;U.T=null;var u=K.p;try{K.p=8,Xs(e,t,l,a)}finally{K.p=u,U.T=n}}function Xs(e,t,l,a){if(si){var n=Qs(a);if(n===null)zs(e,t,a,ri,l),jh(e,a);else if(eg(n,e,t,l,a))a.stopPropagation();else if(jh(e,a),t&4&&-1<Py.indexOf(e)){for(;n!==null;){var u=ca(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=kl(u.pendingLanes);if(r!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;r;){var b=1<<31-mt(r);h.entanglements[1]|=b,r&=~b}Yt(u),(Se&6)===0&&(Vu=dt()+500,On(0))}}break;case 31:case 13:h=Vl(u,2),h!==null&&ot(h,u,2),Ku(),Gs(u,2)}if(u=Qs(a),u===null&&zs(e,t,a,ri,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else zs(e,t,a,null,l)}}function Qs(e){return e=Zi(e),Vs(e)}var ri=null;function Vs(e){if(ri=null,e=ia(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===31){if(e=E(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 ri=e,null}function Eh(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(qm()){case Rr:return 2;case zr:return 8;case In:case Lm:return 32;case _r:return 268435456;default:return 32}default:return 32}}var Zs=!1,Ol=null,Ml=null,Ul=null,Ln=new Map,kn=new Map,wl=[],Py="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 jh(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Ul=null;break;case"pointerover":case"pointerout":Ln.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kn.delete(t.pointerId)}}function Yn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ca(t),t!==null&&Sh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function eg(e,t,l,a,n){switch(t){case"focusin":return Ol=Yn(Ol,e,t,l,a,n),!0;case"dragenter":return Ml=Yn(Ml,e,t,l,a,n),!0;case"mouseover":return Ul=Yn(Ul,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Ln.set(u,Yn(Ln.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,kn.set(u,Yn(kn.get(u)||null,e,t,l,a,n)),!0}return!1}function Nh(e){var t=ia(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,Hr(e.priority,function(){xh(l)});return}}else if(t===31){if(t=E(l),t!==null){e.blockedOn=t,Hr(e.priority,function(){xh(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 oi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Qs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Vi=a,l.target.dispatchEvent(a),Vi=null}else return t=ca(l),t!==null&&Sh(t),e.blockedOn=l,!1;t.shift()}return!0}function Ch(e,t,l){oi(e)&&l.delete(t)}function tg(){Zs=!1,Ol!==null&&oi(Ol)&&(Ol=null),Ml!==null&&oi(Ml)&&(Ml=null),Ul!==null&&oi(Ul)&&(Ul=null),Ln.forEach(Ch),kn.forEach(Ch)}function fi(e,t){e.blockedOn===t&&(e.blockedOn=null,Zs||(Zs=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,tg)))}var di=null;function Th(e){di!==e&&(di=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){di===e&&(di=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(Vs(a||l)===null)continue;break}var u=ca(l);u!==null&&(e.splice(t,3),t-=3,Qc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ga(e){function t(b){return fi(b,e)}Ol!==null&&fi(Ol,e),Ml!==null&&fi(Ml,e),Ul!==null&&fi(Ul,e),Ln.forEach(t),kn.forEach(t);for(var l=0;l<wl.length;l++){var a=wl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wl.length&&(l=wl[0],l.blockedOn===null);)Nh(l),l.blockedOn===null&&wl.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],r=n[nt]||null;if(typeof u=="function")r||Th(l);else if(r){var h=null;if(u&&u.hasAttribute("formAction")){if(n=u,r=u[nt]||null)h=r.formAction;else if(Vs(n)!==null)continue}else h=r.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Th(l)}}}function Ah(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(r){return n=r})},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 Ks(e){this._internalRoot=e}hi.prototype.render=Ks.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=xt();ph(l,a,e,t,null,null)},hi.prototype.unmount=Ks.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),Ku(),t[ua]=null}};function hi(e){this._internalRoot=e}hi.prototype.unstable_scheduleHydration=function(e){if(e){var t=wr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<wl.length&&t!==0&&t<wl[l].priority;l++);wl.splice(l,0,e),l===0&&Nh(e)}};var Rh=o.version;if(Rh!=="19.2.7")throw Error(s(527,Rh,"19.2.7"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var lg={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{$a=mi.inject(lg),ht=mi}catch{}}return Xn.createRoot=function(e,t){if(!d(e))throw Error(s(299));var l=!1,a="",n=wf,u=Hf,r=Bf;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&&(r=t.onRecoverableError)),t=yh(e,1,!1,null,null,l,a,null,n,u,r,Ah),e[ua]=t.current,Rs(e),new Ks(t)},Xn.hydrateRoot=function(e,t,l){if(!d(e))throw Error(s(299));var a=!1,n="",u=wf,r=Hf,h=Bf,b=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&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=yh(e,1,!0,t,l??null,a,n,b,u,r,h,Ah),t.context=gh(null),l=t.current,a=xt(),a=Bi(a),n=Sl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,Fa(t,l),Yt(t),e[ua]=t.current,Rs(e),new hi(t)},Xn.version="19.2.7",Xn}var qh;function dg(){if(qh)return Ws.exports;qh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Ws.exports=fg(),Ws.exports}var hg=dg();/**
|
|
50
|
+
* react-router v7.18.0
|
|
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 or=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,cm=/^[\\/]{2}/;function mg(i,o){return o+i.replace(/\\/g,"/")}var Lh="popstate";function kh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function vg(i={}){function o(s,d){var v;let m=(v=d.state)==null?void 0:v.masked,{pathname:p,search:E,hash:S}=m||s.location;return ur("",{pathname:p,search:E,hash:S},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function f(s,d){return typeof d=="string"?d:Zn(d)}return gg(o,f,null,i)}function Me(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Gt(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function yg(){return Math.random().toString(36).substring(2,10)}function Yh(i,o){return{usr:i.state,key:i.key,idx:o,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function ur(i,o,f=null,s,d){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?Za(o):o,state:f,key:o&&o.key||s||yg(),mask:d}}function Zn({pathname:i="/",search:o="",hash:f=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function Za(i){let o={};if(i){let f=i.indexOf("#");f>=0&&(o.hash=i.substring(f),i=i.substring(0,f));let s=i.indexOf("?");s>=0&&(o.search=i.substring(s),i=i.substring(0,s)),i&&(o.pathname=i)}return o}function gg(i,o,f,s={}){let{window:d=document.defaultView,v5Compat:m=!1}=s,p=d.history,E="POP",S=null,v=C();v==null&&(v=0,p.replaceState({...p.state,idx:v},""));function C(){return(p.state||{idx:null}).idx}function j(){E="POP";let X=C(),M=X==null?null:X-v;v=X,S&&S({action:E,location:L.location,delta:M})}function z(X,M){E="PUSH";let D=kh(X)?X:ur(L.location,X,M);v=C()+1;let G=Yh(D,v),Z=L.createHref(D.mask||D);try{p.pushState(G,"",Z)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;d.location.assign(Z)}m&&S&&S({action:E,location:L.location,delta:1})}function k(X,M){E="REPLACE";let D=kh(X)?X:ur(L.location,X,M);v=C();let G=Yh(D,v),Z=L.createHref(D.mask||D);p.replaceState(G,"",Z),m&&S&&S({action:E,location:L.location,delta:0})}function Y(X){return pg(d,X)}let L={get action(){return E},get location(){return i(d,p)},listen(X){if(S)throw new Error("A history only accepts one active listener");return d.addEventListener(Lh,j),S=X,()=>{d.removeEventListener(Lh,j),S=null}},createHref(X){return o(d,X)},createURL:Y,encodeLocation(X){let M=Y(X);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:z,replace:k,go(X){return p.go(X)}};return L}function pg(i,o,f=!1){let s="http://localhost";i&&(s=i.location.origin!=="null"?i.location.origin:i.location.href),Me(s,"No window.location.(origin|href) available to create URL");let d=typeof o=="string"?o:Zn(o);return d=d.replace(/ $/,"%20"),!f&&cm.test(d)&&(d=s+d),new URL(d,s)}function sm(i,o,f="/"){return bg(i,o,f,!1)}function bg(i,o,f,s,d){let m=typeof o=="string"?Za(o):o,p=ol(m.pathname||"/",f);if(p==null)return null;let E=Sg(i),S=null,v=Dg(p);for(let C=0;S==null&&C<E.length;++C)S=_g(E[C],v,s);return S}function Sg(i){let o=rm(i);return xg(o),o}function rm(i,o=[],f=[],s="",d=!1){let m=(p,E,S=d,v)=>{let C={relativePath:v===void 0?p.path||"":v,caseSensitive:p.caseSensitive===!0,childrenIndex:E,route:p};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(s)&&S)return;Me(C.relativePath.startsWith(s),`Absolute route path "${C.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(s.length)}let j=Ht([s,C.relativePath]),z=f.concat(C);p.children&&p.children.length>0&&(Me(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${j}".`),rm(p.children,o,z,j,S)),!(p.path==null&&!p.index)&&o.push({path:j,score:Rg(j,p.index),routesMeta:z.map((k,Y)=>{let[L,X]=dm(k.relativePath,k.caseSensitive,Y===z.length-1);return{...k,matcher:L,compiledParams:X}})})};return i.forEach((p,E)=>{var S;if(p.path===""||!((S=p.path)!=null&&S.includes("?")))m(p,E);else for(let v of om(p.path))m(p,E,!0,v)}),o}function om(i){let o=i.split("/");if(o.length===0)return[];let[f,...s]=o,d=f.endsWith("?"),m=f.replace(/\?$/,"");if(s.length===0)return d?[m,""]:[m];let p=om(s.join("/")),E=[];return E.push(...p.map(S=>S===""?m:[m,S].join("/"))),d&&E.push(...p),E.map(S=>i.startsWith("/")&&S===""?"/":S)}function xg(i){i.sort((o,f)=>o.score!==f.score?f.score-o.score:zg(o.routesMeta.map(s=>s.childrenIndex),f.routesMeta.map(s=>s.childrenIndex)))}var Eg=/^:[\w-]+$/,jg=3,Ng=2,Cg=1,Tg=10,Ag=-2,Gh=i=>i==="*";function Rg(i,o){let f=i.split("/"),s=f.length;return f.some(Gh)&&(s+=Ag),o&&(s+=Ng),f.filter(d=>!Gh(d)).reduce((d,m)=>d+(Eg.test(m)?jg:m===""?Cg:Tg),s)}function zg(i,o){return i.length===o.length&&i.slice(0,-1).every((s,d)=>s===o[d])?i[i.length-1]-o[o.length-1]:0}function _g(i,o,f=!1){let{routesMeta:s}=i,d={},m="/",p=[];for(let E=0;E<s.length;++E){let S=s[E],v=E===s.length-1,C=m==="/"?o:o.slice(m.length)||"/",j={path:S.relativePath,caseSensitive:S.caseSensitive,end:v},z=S.matcher&&S.compiledParams?fm(j,C,S.matcher,S.compiledParams):Si(j,C),k=S.route;if(!z&&v&&f&&!s[s.length-1].route.index&&(z=Si({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},C)),!z)return null;Object.assign(d,z.params),p.push({params:d,pathname:Ht([m,z.pathname]),pathnameBase:Ug(Ht([m,z.pathnameBase])),route:k}),z.pathnameBase!=="/"&&(m=Ht([m,z.pathnameBase]))}return p}function Si(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,s]=dm(i.path,i.caseSensitive,i.end);return fm(i,o,f,s)}function fm(i,o,f,s){let d=o.match(f);if(!d)return null;let m=d[0],p=m.replace(/(.)\/+$/,"$1"),E=d.slice(1);return{params:s.reduce((v,{paramName:C,isOptional:j},z)=>{if(C==="*"){let Y=E[z]||"";p=m.slice(0,m.length-Y.length).replace(/(.)\/+$/,"$1")}const k=E[z];return j&&!k?v[C]=void 0:v[C]=(k||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:p,pattern:i}}function dm(i,o=!1,f=!0){Gt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,E,S,v,C)=>{if(s.push({paramName:E,isOptional:S!=null}),S){let j=C.charAt(v+p.length);return j&&j!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),s]}function Dg(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Gt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),i}}function ol(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let f=o.endsWith("/")?o.length-1:o.length,s=i.charAt(f);return s&&s!=="/"?null:i.slice(f)||"/"}function Og(i,o="/"){let{pathname:f,search:s="",hash:d=""}=typeof i=="string"?Za(i):i,m;return f?(f=mm(f),f.startsWith("/")?m=Xh(f.substring(1),"/"):m=Xh(f,o)):m=o,{pathname:m,search:wg(s),hash:Hg(d)}}function Xh(i,o){let f=xi(o).split("/");return i.split("/").forEach(d=>{d===".."?f.length>1&&f.pop():d!=="."&&f.push(d)}),f.length>1?f.join("/"):"/"}function er(i,o,f,s){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Mg(i){return i.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function hm(i){let o=Mg(i);return o.map((f,s)=>s===o.length-1?f.pathname:f.pathnameBase)}function fr(i,o,f,s=!1){let d;typeof i=="string"?d=Za(i):(d={...i},Me(!d.pathname||!d.pathname.includes("?"),er("?","pathname","search",d)),Me(!d.pathname||!d.pathname.includes("#"),er("#","pathname","hash",d)),Me(!d.search||!d.search.includes("#"),er("#","search","hash",d)));let m=i===""||d.pathname==="",p=m?"/":d.pathname,E;if(p==null)E=f;else{let j=o.length-1;if(!s&&p.startsWith("..")){let z=p.split("/");for(;z[0]==="..";)z.shift(),j-=1;d.pathname=z.join("/")}E=j>=0?o[j]:"/"}let S=Og(d,E),v=p&&p!=="/"&&p.endsWith("/"),C=(m||p===".")&&f.endsWith("/");return!S.pathname.endsWith("/")&&(v||C)&&(S.pathname+="/"),S}var mm=i=>i.replace(/[\\/]{2,}/g,"/"),Ht=i=>mm(i.join("/")),xi=i=>i.replace(/\/+$/,""),Ug=i=>xi(i).replace(/^\/*/,"/"),wg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Hg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Bg=class{constructor(i,o,f,s=!1){this.status=i,this.statusText=o||"",this.internal=s,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function qg(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Lg(i){let o=i.map(f=>f.route.path).filter(Boolean);return Ht(o)||"/"}var vm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ym(i,o){let f=i;if(typeof f!="string"||!or.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let s=f,d=!1;if(vm)try{let m=new URL(window.location.href),p=cm.test(f)?new URL(mg(f,m.protocol)):new URL(f),E=ol(p.pathname,o);p.origin===m.origin&&E!=null?f=E+p.search+p.hash:d=!0}catch{Gt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:d,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var gm=["POST","PUT","PATCH","DELETE"];new Set(gm);var kg=["GET",...gm];new Set(kg);var Yg=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Gg(i){try{return Yg.includes(new URL(i).protocol)}catch{return!1}}var Ka=y.createContext(null);Ka.displayName="DataRouter";var ji=y.createContext(null);ji.displayName="DataRouterState";var pm=y.createContext(!1);function Xg(){return y.useContext(pm)}var bm=y.createContext({isTransitioning:!1});bm.displayName="ViewTransition";var Qg=y.createContext(new Map);Qg.displayName="Fetchers";var Vg=y.createContext(null);Vg.displayName="Await";var Ot=y.createContext(null);Ot.displayName="Navigation";var Jn=y.createContext(null);Jn.displayName="Location";var Xt=y.createContext({outlet:null,matches:[],isDataRoute:!1});Xt.displayName="Route";var dr=y.createContext(null);dr.displayName="RouteError";var Sm="REACT_ROUTER_ERROR",Zg="REDIRECT",Kg="ROUTE_ERROR_RESPONSE";function Jg(i){if(i.startsWith(`${Sm}:${Zg}:{`))try{let o=JSON.parse(i.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function $g(i){if(i.startsWith(`${Sm}:${Kg}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Bg(o.status,o.statusText,o.data)}catch{}}function Wg(i,{relative:o}={}){Me($n(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:s}=y.useContext(Ot),{hash:d,pathname:m,search:p}=Wn(i,{relative:o}),E=m;return f!=="/"&&(E=m==="/"?f:Ht([f,m])),s.createHref({pathname:E,search:p,hash:d})}function $n(){return y.useContext(Jn)!=null}function Bt(){return Me($n(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Jn).location}var xm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Em(i){y.useContext(Ot).static||y.useLayoutEffect(i)}function jm(){let{isDataRoute:i}=y.useContext(Xt);return i?op():Fg()}function Fg(){Me($n(),"useNavigate() may be used only in the context of a <Router> component.");let i=y.useContext(Ka),{basename:o,navigator:f}=y.useContext(Ot),{matches:s}=y.useContext(Xt),{pathname:d}=Bt(),m=JSON.stringify(hm(s)),p=y.useRef(!1);return Em(()=>{p.current=!0}),y.useCallback((S,v={})=>{if(Gt(p.current,xm),!p.current)return;if(typeof S=="number"){f.go(S);return}let C=fr(S,JSON.parse(m),d,v.relative==="path");i==null&&o!=="/"&&(C.pathname=C.pathname==="/"?o:Ht([o,C.pathname])),(v.replace?f.replace:f.push)(C,v.state,v)},[o,f,m,d,i])}y.createContext(null);function Ig(){let{matches:i}=y.useContext(Xt),o=i[i.length-1];return(o==null?void 0:o.params)??{}}function Wn(i,{relative:o}={}){let{matches:f}=y.useContext(Xt),{pathname:s}=Bt(),d=JSON.stringify(hm(f));return y.useMemo(()=>fr(i,JSON.parse(d),s,o==="path"),[i,d,s,o])}function Pg(i,o){return Nm(i,o)}function Nm(i,o,f){var X;Me($n(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=y.useContext(Ot),{matches:d}=y.useContext(Xt),m=d[d.length-1],p=m?m.params:{},E=m?m.pathname:"/",S=m?m.pathnameBase:"/",v=m&&m.route;{let M=v&&v.path||"";Tm(E,!v||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${E}" (under <Route path="${M}">) 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="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let C=Bt(),j;if(o){let M=typeof o=="string"?Za(o):o;Me(S==="/"||((X=M.pathname)==null?void 0:X.startsWith(S)),`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 "${S}" but pathname "${M.pathname}" was given in the \`location\` prop.`),j=M}else j=C;let z=j.pathname||"/",k=z;if(S!=="/"){let M=S.replace(/^\//,"").split("/");k="/"+z.replace(/^\//,"").split("/").slice(M.length).join("/")}let Y=f&&f.state.matches.length?f.state.matches.map(M=>Object.assign(M,{route:f.manifest[M.route.id]||M.route})):sm(i,{pathname:k});Gt(v||Y!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),Gt(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.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 L=np(Y&&Y.map(M=>Object.assign({},M,{params:Object.assign({},p,M.params),pathname:Ht([S,s.encodeLocation?s.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?S:Ht([S,s.encodeLocation?s.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),d,f);return o&&L?y.createElement(Jn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...j},navigationType:"POP"}},L):L}function ep(){let i=rp(),o=qg(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:s},m={padding:"2px 4px",backgroundColor:s},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:m},"ErrorBoundary")," or"," ",y.createElement("code",{style:m},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},o),f?y.createElement("pre",{style:d},f):null,p)}var tp=y.createElement(ep,null),Cm=class extends y.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){this.props.onError?this.props.onError(i,o):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const f=$g(i.digest);f&&(i=f)}let o=i!==void 0?y.createElement(Xt.Provider,{value:this.props.routeContext},y.createElement(dr.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?y.createElement(lp,{error:i},o):o}};Cm.contextType=pm;var tr=new WeakMap;function lp({children:i,error:o}){let{basename:f}=y.useContext(Ot);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=Jg(o.digest);if(s){let d=tr.get(o);if(d)throw d;let m=ym(s.location,f),p=m.absoluteURL||m.to;if(Gg(p))throw new Error("Invalid redirect location");if(vm&&!tr.get(o))if(m.isExternal||s.reloadDocument)window.location.href=p;else{const E=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:s.replace}));throw tr.set(o,E),E}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p}`})}}return i}function ap({routeContext:i,match:o,children:f}){let s=y.useContext(Ka);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),y.createElement(Xt.Provider,{value:i},f)}function np(i,o=[],f){let s=f==null?void 0:f.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let d=i,m=s==null?void 0:s.errors;if(m!=null){let C=d.findIndex(j=>j.route.id&&(m==null?void 0:m[j.route.id])!==void 0);Me(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,C+1))}let p=!1,E=-1;if(f&&s){p=s.renderFallback;for(let C=0;C<d.length;C++){let j=d[C];if((j.route.HydrateFallback||j.route.hydrateFallbackElement)&&(E=C),j.route.id){let{loaderData:z,errors:k}=s,Y=j.route.loader&&!z.hasOwnProperty(j.route.id)&&(!k||k[j.route.id]===void 0);if(j.route.lazy||Y){f.isStatic&&(p=!0),E>=0?d=d.slice(0,E+1):d=[d[0]];break}}}}let S=f==null?void 0:f.onError,v=s&&S?(C,j)=>{var z,k;S(C,{location:s.location,params:((k=(z=s.matches)==null?void 0:z[0])==null?void 0:k.params)??{},pattern:Lg(s.matches),errorInfo:j})}:void 0;return d.reduceRight((C,j,z)=>{let k,Y=!1,L=null,X=null;s&&(k=m&&j.route.id?m[j.route.id]:void 0,L=j.route.errorElement||tp,p&&(E<0&&z===0?(Tm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Y=!0,X=null):E===z&&(Y=!0,X=j.route.hydrateFallbackElement||null)));let M=o.concat(d.slice(0,z+1)),D=()=>{let G;return k?G=L:Y?G=X:j.route.Component?G=y.createElement(j.route.Component,null):j.route.element?G=j.route.element:G=C,y.createElement(ap,{match:j,routeContext:{outlet:C,matches:M,isDataRoute:s!=null},children:G})};return s&&(j.route.ErrorBoundary||j.route.errorElement||z===0)?y.createElement(Cm,{location:s.location,revalidation:s.revalidation,component:L,error:k,children:D(),routeContext:{outlet:null,matches:M,isDataRoute:!0},onError:v}):D()},null)}function hr(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function up(i){let o=y.useContext(Ka);return Me(o,hr(i)),o}function ip(i){let o=y.useContext(ji);return Me(o,hr(i)),o}function cp(i){let o=y.useContext(Xt);return Me(o,hr(i)),o}function mr(i){let o=cp(i),f=o.matches[o.matches.length-1];return Me(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function sp(){return mr("useRouteId")}function rp(){var s;let i=y.useContext(dr),o=ip("useRouteError"),f=mr("useRouteError");return i!==void 0?i:(s=o.errors)==null?void 0:s[f]}function op(){let{router:i}=up("useNavigate"),o=mr("useNavigate"),f=y.useRef(!1);return Em(()=>{f.current=!0}),y.useCallback(async(d,m={})=>{Gt(f.current,xm),f.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:o,...m}))},[i,o])}var Qh={};function Tm(i,o,f){!o&&!Qh[i]&&(Qh[i]=!0,Gt(!1,f))}y.memo(fp);function fp({routes:i,manifest:o,future:f,state:s,isStatic:d,onError:m}){return Nm(i,void 0,{manifest:o,state:s,isStatic:d,onError:m})}function na(i){Me(!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 dp({basename:i="/",children:o=null,location:f,navigationType:s="POP",navigator:d,static:m=!1,useTransitions:p}){Me(!$n(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let E=i.replace(/^\/*/,"/"),S=y.useMemo(()=>({basename:E,navigator:d,static:m,useTransitions:p,future:{}}),[E,d,m,p]);typeof f=="string"&&(f=Za(f));let{pathname:v="/",search:C="",hash:j="",state:z=null,key:k="default",mask:Y}=f,L=y.useMemo(()=>{let X=ol(v,E);return X==null?null:{location:{pathname:X,search:C,hash:j,state:z,key:k,mask:Y},navigationType:s}},[E,v,C,j,z,k,s,Y]);return Gt(L!=null,`<Router basename="${E}"> is not able to match the URL "${v}${C}${j}" because it does not start with the basename, so the <Router> won't render anything.`),L==null?null:y.createElement(Ot.Provider,{value:S},y.createElement(Jn.Provider,{children:o,value:L}))}function hp({children:i,location:o}){return Pg(ir(i),o)}function ir(i,o=[]){let f=[];return y.Children.forEach(i,(s,d)=>{if(!y.isValidElement(s))return;let m=[...o,d];if(s.type===y.Fragment){f.push.apply(f,ir(s.props.children,m));return}Me(s.type===na,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Me(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||m.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=ir(s.props.children,m)),f.push(p)}),f}var gi="get",pi="application/x-www-form-urlencoded";function Ni(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function mp(i){return Ni(i)&&i.tagName.toLowerCase()==="button"}function vp(i){return Ni(i)&&i.tagName.toLowerCase()==="form"}function yp(i){return Ni(i)&&i.tagName.toLowerCase()==="input"}function gp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function pp(i,o){return i.button===0&&(!o||o==="_self")&&!gp(i)}var vi=null;function bp(){if(vi===null)try{new FormData(document.createElement("form"),0),vi=!1}catch{vi=!0}return vi}var Sp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function lr(i){return i!=null&&!Sp.has(i)?(Gt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pi}"`),null):i}function xp(i,o){let f,s,d,m,p;if(vp(i)){let E=i.getAttribute("action");s=E?ol(E,o):null,f=i.getAttribute("method")||gi,d=lr(i.getAttribute("enctype"))||pi,m=new FormData(i)}else if(mp(i)||yp(i)&&(i.type==="submit"||i.type==="image")){let E=i.form;if(E==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||E.getAttribute("action");if(s=S?ol(S,o):null,f=i.getAttribute("formmethod")||E.getAttribute("method")||gi,d=lr(i.getAttribute("formenctype"))||lr(E.getAttribute("enctype"))||pi,m=new FormData(E,i),!bp()){let{name:v,type:C,value:j}=i;if(C==="image"){let z=v?`${v}.`:"";m.append(`${z}x`,"0"),m.append(`${z}y`,"0")}else v&&m.append(v,j)}}else{if(Ni(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=gi,s=null,d=pi,p=i}return m&&d==="text/plain"&&(p=m,m=void 0),{action:s,method:f.toLowerCase(),encType:d,formData:m,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vr(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Am(i,o,f,s){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return f?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${s}`:d.pathname=`${d.pathname}.${s}`:d.pathname==="/"?d.pathname=`_root.${s}`:o&&ol(d.pathname,o)==="/"?d.pathname=`${xi(o)}/_root.${s}`:d.pathname=`${xi(d.pathname)}.${s}`,d}async function Ep(i,o){if(i.id in o)return o[i.id];try{let f=await import(i.module);return o[i.id]=f,f}catch(f){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jp(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Np(i,o,f){let s=await Promise.all(i.map(async d=>{let m=o.routes[d.route.id];if(m){let p=await Ep(m,f);return p.links?p.links():[]}return[]}));return Rp(s.flat(1).filter(jp).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Vh(i,o,f,s,d,m){let p=(S,v)=>f[v]?S.route.id!==f[v].route.id:!0,E=(S,v)=>{var C;return f[v].pathname!==S.pathname||((C=f[v].route.path)==null?void 0:C.endsWith("*"))&&f[v].params["*"]!==S.params["*"]};return m==="assets"?o.filter((S,v)=>p(S,v)||E(S,v)):m==="data"?o.filter((S,v)=>{var j;let C=s.routes[S.route.id];if(!C||!C.hasLoader)return!1;if(p(S,v)||E(S,v))return!0;if(S.route.shouldRevalidate){let z=S.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((j=f[0])==null?void 0:j.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function Cp(i,o,{includeHydrateFallback:f}={}){return Tp(i.map(s=>{let d=o.routes[s.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),f&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function Tp(i){return[...new Set(i)]}function Ap(i){let o={},f=Object.keys(i).sort();for(let s of f)o[s]=i[s];return o}function Rp(i,o){let f=new Set;return new Set(o),i.reduce((s,d)=>{let m=JSON.stringify(Ap(d));return f.has(m)||(f.add(m),s.push({key:m,link:d})),s},[])}function yr(){let i=y.useContext(Ka);return vr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function zp(){let i=y.useContext(ji);return vr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var gr=y.createContext(void 0);gr.displayName="FrameworkContext";function Ci(){let i=y.useContext(gr);return vr(i,"You must render this element inside a <HydratedRouter> element"),i}function _p(i,o){let f=y.useContext(gr),[s,d]=y.useState(!1),[m,p]=y.useState(!1),{onFocus:E,onBlur:S,onMouseEnter:v,onMouseLeave:C,onTouchStart:j}=o,z=y.useRef(null);y.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let L=M=>{M.forEach(D=>{p(D.isIntersecting)})},X=new IntersectionObserver(L,{threshold:.5});return z.current&&X.observe(z.current),()=>{X.disconnect()}}},[i]),y.useEffect(()=>{if(s){let L=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(L)}}},[s]);let k=()=>{d(!0)},Y=()=>{d(!1),p(!1)};return f?i!=="intent"?[m,z,{}]:[m,z,{onFocus:Qn(E,k),onBlur:Qn(S,Y),onMouseEnter:Qn(v,k),onMouseLeave:Qn(C,Y),onTouchStart:Qn(j,k)}]:[!1,z,{}]}function Qn(i,o){return f=>{i&&i(f),f.defaultPrevented||o(f)}}function Dp({page:i,...o}){let f=Xg(),{nonce:s}=Ci(),{router:d}=yr(),m=y.useMemo(()=>sm(d.routes,i,d.basename),[d.routes,i,d.basename]);return m?(o.nonce==null&&s&&(o={...o,nonce:s}),f?y.createElement(Mp,{page:i,matches:m,...o}):y.createElement(Up,{page:i,matches:m,...o})):null}function Op(i){let{manifest:o,routeModules:f}=Ci(),[s,d]=y.useState([]);return y.useEffect(()=>{let m=!1;return Np(i,o,f).then(p=>{m||d(p)}),()=>{m=!0}},[i,o,f]),s}function Mp({page:i,matches:o,...f}){let s=Bt(),{future:d}=Ci(),{basename:m}=yr(),p=y.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let E=Am(i,m,d.v8_trailingSlashAwareDataRequests,"rsc"),S=!1,v=[];for(let C of o)typeof C.route.shouldRevalidate=="function"?S=!0:v.push(C.route.id);return S&&v.length>0&&E.searchParams.set("_routes",v.join(",")),[E.pathname+E.search]},[m,d.v8_trailingSlashAwareDataRequests,i,s,o]);return y.createElement(y.Fragment,null,p.map(E=>y.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...f})))}function Up({page:i,matches:o,...f}){let s=Bt(),{future:d,manifest:m,routeModules:p}=Ci(),{basename:E}=yr(),{loaderData:S,matches:v}=zp(),C=y.useMemo(()=>Vh(i,o,v,m,s,"data"),[i,o,v,m,s]),j=y.useMemo(()=>Vh(i,o,v,m,s,"assets"),[i,o,v,m,s]),z=y.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let L=new Set,X=!1;if(o.forEach(D=>{var Z;let G=m.routes[D.route.id];!G||!G.hasLoader||(!C.some($=>$.route.id===D.route.id)&&D.route.id in S&&((Z=p[D.route.id])!=null&&Z.shouldRevalidate)||G.hasClientLoader?X=!0:L.add(D.route.id))}),L.size===0)return[];let M=Am(i,E,d.v8_trailingSlashAwareDataRequests,"data");return X&&L.size>0&&M.searchParams.set("_routes",o.filter(D=>L.has(D.route.id)).map(D=>D.route.id).join(",")),[M.pathname+M.search]},[E,d.v8_trailingSlashAwareDataRequests,S,s,m,C,o,i,p]),k=y.useMemo(()=>Cp(j,m),[j,m]),Y=Op(j);return y.createElement(y.Fragment,null,z.map(L=>y.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...f})),k.map(L=>y.createElement("link",{key:L,rel:"modulepreload",href:L,...f})),Y.map(({key:L,link:X})=>y.createElement("link",{key:L,nonce:f.nonce,...X,crossOrigin:X.crossOrigin??f.crossOrigin})))}function wp(...i){return o=>{i.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var Hp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Hp&&(window.__reactRouterVersion="7.18.0")}catch{}function Bp({basename:i,children:o,useTransitions:f,window:s}){let d=y.useRef();d.current==null&&(d.current=vg({window:s,v5Compat:!0}));let m=d.current,[p,E]=y.useState({action:m.action,location:m.location}),S=y.useCallback(v=>{f===!1?E(v):y.startTransition(()=>E(v))},[f]);return y.useLayoutEffect(()=>m.listen(S),[m,S]),y.createElement(dp,{basename:i,children:o,location:p.location,navigationType:p.action,navigator:m,useTransitions:f})}var fl=y.forwardRef(function({onClick:o,discover:f="render",prefetch:s="none",relative:d,reloadDocument:m,replace:p,mask:E,state:S,target:v,to:C,preventScrollReset:j,viewTransition:z,defaultShouldRevalidate:k,...Y},L){let{basename:X,navigator:M,useTransitions:D}=y.useContext(Ot),G=typeof C=="string"&&or.test(C),Z=ym(C,X);C=Z.to;let $=Wg(C,{relative:d}),ue=Bt(),V=null;if(E){let De=fr(E,[],ue.mask?ue.mask.pathname:"/",!0);X!=="/"&&(De.pathname=De.pathname==="/"?X:Ht([X,De.pathname])),V=M.createHref(De)}let[I,P,Re]=_p(s,Y),le=Yp(C,{replace:p,mask:E,state:S,target:v,preventScrollReset:j,relative:d,viewTransition:z,defaultShouldRevalidate:k,useTransitions:D});function xe(De){o&&o(De),De.defaultPrevented||le(De)}let Ie=!(Z.isExternal||m),Ze=y.createElement("a",{...Y,...Re,href:(Ie?V:void 0)||Z.absoluteURL||$,onClick:Ie?xe:o,ref:wp(L,P),target:v,"data-discover":!G&&f==="render"?"true":void 0});return I&&!G?y.createElement(y.Fragment,null,Ze,y.createElement(Dp,{page:$})):Ze});fl.displayName="Link";var qp=y.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:s="",end:d=!1,style:m,to:p,viewTransition:E,children:S,...v},C){let j=Wn(p,{relative:v.relative}),z=Bt(),k=y.useContext(ji),{navigator:Y,basename:L}=y.useContext(Ot),X=k!=null&&Zp(j)&&E===!0,M=Y.encodeLocation?Y.encodeLocation(j).pathname:j.pathname,D=z.pathname,G=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;f||(D=D.toLowerCase(),G=G?G.toLowerCase():null,M=M.toLowerCase()),G&&L&&(G=ol(G,L)||G);const Z=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let $=D===M||!d&&D.startsWith(M)&&D.charAt(Z)==="/",ue=G!=null&&(G===M||!d&&G.startsWith(M)&&G.charAt(M.length)==="/"),V={isActive:$,isPending:ue,isTransitioning:X},I=$?o:void 0,P;typeof s=="function"?P=s(V):P=[s,$?"active":null,ue?"pending":null,X?"transitioning":null].filter(Boolean).join(" ");let Re=typeof m=="function"?m(V):m;return y.createElement(fl,{...v,"aria-current":I,className:P,ref:C,style:Re,to:p,viewTransition:E},typeof S=="function"?S(V):S)});qp.displayName="NavLink";var Lp=y.forwardRef(({discover:i="render",fetcherKey:o,navigate:f,reloadDocument:s,replace:d,state:m,method:p=gi,action:E,onSubmit:S,relative:v,preventScrollReset:C,viewTransition:j,defaultShouldRevalidate:z,...k},Y)=>{let{useTransitions:L}=y.useContext(Ot),X=Qp(),M=Vp(E,{relative:v}),D=p.toLowerCase()==="get"?"get":"post",G=typeof E=="string"&&or.test(E),Z=$=>{if(S&&S($),$.defaultPrevented)return;$.preventDefault();let ue=$.nativeEvent.submitter,V=(ue==null?void 0:ue.getAttribute("formmethod"))||p,I=()=>X(ue||$.currentTarget,{fetcherKey:o,method:V,navigate:f,replace:d,state:m,relative:v,preventScrollReset:C,viewTransition:j,defaultShouldRevalidate:z});L&&f!==!1?y.startTransition(()=>I()):I()};return y.createElement("form",{ref:Y,method:D,action:M,onSubmit:s?S:Z,...k,"data-discover":!G&&i==="render"?"true":void 0})});Lp.displayName="Form";function kp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rm(i){let o=y.useContext(Ka);return Me(o,kp(i)),o}function Yp(i,{target:o,replace:f,mask:s,state:d,preventScrollReset:m,relative:p,viewTransition:E,defaultShouldRevalidate:S,useTransitions:v}={}){let C=jm(),j=Bt(),z=Wn(i,{relative:p});return y.useCallback(k=>{if(pp(k,o)){k.preventDefault();let Y=f!==void 0?f:Zn(j)===Zn(z),L=()=>C(i,{replace:Y,mask:s,state:d,preventScrollReset:m,relative:p,viewTransition:E,defaultShouldRevalidate:S});v?y.startTransition(()=>L()):L()}},[j,C,z,f,s,d,o,i,m,p,E,S,v])}var Gp=0,Xp=()=>`__${String(++Gp)}__`;function Qp(){let{router:i}=Rm("useSubmit"),{basename:o}=y.useContext(Ot),f=sp(),s=i.fetch,d=i.navigate;return y.useCallback(async(m,p={})=>{let{action:E,method:S,encType:v,formData:C,body:j}=xp(m,o);if(p.navigate===!1){let z=p.fetcherKey||Xp();await s(z,f,p.action||E,{defaultShouldRevalidate:p.defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:C,body:j,formMethod:p.method||S,formEncType:p.encType||v,flushSync:p.flushSync})}else await d(p.action||E,{defaultShouldRevalidate:p.defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:C,body:j,formMethod:p.method||S,formEncType:p.encType||v,replace:p.replace,state:p.state,fromRouteId:f,flushSync:p.flushSync,viewTransition:p.viewTransition})},[s,d,o,f])}function Vp(i,{relative:o}={}){let{basename:f}=y.useContext(Ot),s=y.useContext(Xt);Me(s,"useFormAction must be used inside a RouteContext");let[d]=s.matches.slice(-1),m={...Wn(i||".",{relative:o})},p=Bt();if(i==null){m.search=p.search;let E=new URLSearchParams(m.search),S=E.getAll("index");if(S.some(C=>C==="")){E.delete("index"),S.filter(j=>j).forEach(j=>E.append("index",j));let C=E.toString();m.search=C?`?${C}`:""}}return(!i||i===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(m.pathname=m.pathname==="/"?f:Ht([f,m.pathname])),Zn(m)}function Zp(i,{relative:o}={}){let f=y.useContext(bm);Me(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Rm("useViewTransitionState"),d=Wn(i,{relative:o});if(!f.isTransitioning)return!1;let m=ol(f.currentLocation.pathname,s)||f.currentLocation.pathname,p=ol(f.nextLocation.pathname,s)||f.nextLocation.pathname;return Si(d.pathname,p)!=null||Si(d.pathname,m)!=null}let rl=null,Vn=null;const Kp=3e4,Jp=600*1e3;function $p(){return`${typeof window<"u"?window.location.origin:""}/admin/agent-token`}async function Va(){const i=Date.now();return rl&&rl.expiresAt-i>Kp?rl.token:Vn||(Vn=Wp().finally(()=>{Vn=null}),Vn)}async function Wp(){let i;try{i=await fetch($p(),{method:"GET",headers:{accept:"application/json"},credentials:"include"})}catch{return rl=null,null}if(!i.ok)return rl=null,null;let o;try{o=await i.json()}catch{return rl=null,null}if(!o.token)return rl=null,null;const f=o.expires_at?new Date(o.expires_at).getTime():Date.now()+Jp;return rl={token:o.token,expiresAt:f},o.token}function Ti(){rl=null}async function Zh(){const i=await Va();if(!i)return null;let o;try{o=await fetch(Kh(),{method:"POST",headers:{accept:"application/json",authorization:`Bearer ${i}`},credentials:"include"})}catch{return null}if(o.status===401){Ti();const s=await Va();if(!s)return null;try{o=await fetch(Kh(),{method:"POST",headers:{accept:"application/json",authorization:`Bearer ${s}`},credentials:"include"})}catch{return null}}if(!o.ok)return null;let f;try{f=await o.json()}catch{return null}return f.ticket??null}function Kh(){const o="/agent/app/".match(/^(.*\/)app\/?$/);return`${o?`${o[1]}api`:"/agent/api"}/ui/sse-ticket`}const Jh="x-step-up-token";let Qa=null;const Fp=5e3;function bi(){return Qa?Qa.expiresAt-Date.now()<=Fp?(Qa=null,null):Qa.token:null}function Ip(i,o){Qa={token:i,expiresAt:o}}function Pp(){Qa=null}async function pr(i,o={}){const f=await Va(),s=new Headers(o.headers);s.set("accept","application/json"),f&&s.set("authorization",`Bearer ${f}`);const d=await fetch(`${Bl()}${i}`,{...o,headers:s});if(d.status!==401)return d;Ti();const m=await Va();if(!m)return d;const p=new Headers(o.headers);return p.set("accept","application/json"),p.set("authorization",`Bearer ${m}`),fetch(`${Bl()}${i}`,{...o,headers:p})}async function br(i){try{return(await i.json()).error??""}catch{return await i.text().catch(()=>"")}}async function e0(){const i=await pr("/step-up");if(!i.ok)throw new et(i.status,await br(i)||`step-up status failed: ${i.status}`);return await i.json()}async function $h(i){const o=await pr("/step-up",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({pin:i})});if(!o.ok)throw new et(o.status,await br(o)||`PIN exchange failed: ${o.status}`);const f=await o.json(),s=new Date(f.expires_at).getTime();return Ip(f.stepUpToken,s),f.stepUpToken}async function Wh(i,o){const f=await pr("/step-up/pin",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({newPin:i,...o?{currentPin:o}:{}})});if(!f.ok)throw new et(f.status,await br(f)||`set PIN failed: ${f.status}`)}let cr=null;function Fh(i){cr=i}async function t0(i){const o=bi();return o&&i==="token"?o:cr?cr(i):null}class et extends Error{constructor(o,f){super(f),this.status=o,this.name="HttpError"}}function Bl(){const o="/agent/app/".match(/^(.*\/)app\/?$/);return o?`${o[1]}api`:"/agent/api"}async function Ai(i,o={},f=!1){const s=await Va(),d=new Headers(o.headers);d.set("accept","application/json"),s&&d.set("authorization",`Bearer ${s}`);const m=bi();m&&d.set(Jh,m);const p=await fetch(i,{...o,headers:d});if(p.status===403&&!f){const C=await l0(p);if(C)return bi()&&Pp(),await t0(C)?Ai(i,o,!0):p}if(p.status!==401)return p;Ti();const E=await Va();if(!E)return p;const S=new Headers(o.headers);S.set("accept","application/json"),S.set("authorization",`Bearer ${E}`);const v=bi();return v&&S.set(Jh,v),fetch(i,{...o,headers:S})}async function l0(i){try{const o=await i.clone().json();return o.error!=="step_up_required"?null:o.reason==="setup"?"setup":o.reason==="token"?"token":null}catch{return null}}async function Sr(i){try{return(await i.json()).error??""}catch{return await i.text().catch(()=>"")}}async function Qt(i){const o=await Ai(`${Bl()}${i}`);if(!o.ok)throw new et(o.status,await Sr(o)||`${i} failed: ${o.status}`);return await o.json()}async function ql(i,o){return xr("POST",i,o)}async function a0(i,o){return xr("PATCH",i,o)}async function Ri(i){const o=await Ai(`${Bl()}${i}`,{method:"DELETE"});if(!o.ok)throw new et(o.status,await Sr(o)||`${i} failed: ${o.status}`);return await o.json()}async function xr(i,o,f){const s=await Ai(`${Bl()}${o}`,{method:i,headers:{"content-type":"application/json"},body:JSON.stringify(f)});if(!s.ok)throw new et(s.status,await Sr(s)||`${o} failed: ${s.status}`);return await s.json()}function n0(i,o){return xr("DELETE",i,o)}function u0(){return Qt("/agents")}function i0(){return Qt("/agent-defs")}function zm(){return Qt("/agent-vaults")}function c0(i){return ql("/agent-defs",i)}function s0(i){return Qt(`/agent-defs/${encodeURIComponent(i)}`)}function _m(i,o){return a0(`/agent-defs/${encodeURIComponent(i)}`,o)}function r0(i){return Ri(`/agent-defs/${encodeURIComponent(i)}`)}function o0(i){return ql("/agent-vaults",i)}function f0(i){return Ri(`/agent-vaults/${encodeURIComponent(i)}`)}const d0=new Set(["ANTHROPIC_API_KEY","CLAUDE_API_KEY","CLAUDE_CODE_OAUTH_TOKEN"]),h0=/^[A-Za-z_][A-Za-z0-9_]*$/;function m0(){return Qt("/credentials/env")}function v0(i){return ql("/credentials/env",i)}function y0(i){return n0("/credentials/env",i)}function g0(){return Qt("/credentials/claude")}function p0(i){var f;const o=(f=i.channel)==null?void 0:f.trim();return o&&o.length>0?ql(`/credentials/claude/${encodeURIComponent(o)}`,{token:i.token}):ql("/credentials/claude",{token:i.token})}function b0(i){return Ri(`/credentials/claude/${encodeURIComponent(i)}`)}function S0(i){return Qt(`/agents/${encodeURIComponent(i)}/env`)}function x0(){return Qt("/jobs")}function E0(i){return ql("/jobs",i)}function j0(i){return ql(`/jobs/${encodeURIComponent(i)}/run`,{})}function N0(i){return Ri(`/jobs/${encodeURIComponent(i)}`)}function C0(i,o){const f=Bl().replace(/\/api$/,"");return`claude mcp add --transport http --scope user agent-${i} ${o}${f}/mcp/${i}`}function T0(){return Qt("/channels")}function Ih(i){return Qt(`/channels/${encodeURIComponent(i)}/messages`)}function A0(i,o){return ql(`/channels/${encodeURIComponent(i)}/send`,{text:o})}function R0(i,o){let s=`${Bl().replace(/\/api$/,"")}/ui/events?channel=${encodeURIComponent(i)}`;return o&&(s+=`&ticket=${encodeURIComponent(o)}`),s}function z0(i,o){let s=`${Bl().replace(/\/api$/,"")}/api/channels/${encodeURIComponent(i)}/turn-events`;return o&&(s+=`?ticket=${encodeURIComponent(o)}`),s}class Fn extends Error{constructor(o,f){super(f),this.status=o,this.name="HubError"}}function _0(){return typeof window<"u"?window.location.origin:""}function D0(){if(typeof window>"u")return!1;const{hostname:i,port:o}=window.location;return(i==="127.0.0.1"||i==="localhost"||i==="[::1]")&&o==="1941"}const Er="definition.reload",jr="note.created",Nr="note.updated",O0="agent/definition";function sr(i,o){return`agentdefs-${o}-${i}`}function M0(i,o){return{id:sr(i,o),requestedBy:"agent",source:{module:"vault",vault:i,event:o==="create"?jr:Nr,filter:{tags:[O0]}},sink:{module:"agent",action:Er}}}async function zi(i,o={}){const f=new Headers(o.headers);return f.set("accept","application/json"),fetch(`${_0()}${i}`,{...o,credentials:"include",headers:f})}function Kn(i,o){return i===401?"Not signed in to the hub portal — sign in, then retry.":i===403?"Not authorized — reactive reload needs host-admin access.":i===404?"Reactive reload needs the hub-proxied URL — open the agent app via your hub origin, not the loopback daemon.":o||`hub request failed (${i})`}async function _i(i){try{const o=await i.json();return o.error_description??o.error??""}catch{return await i.text().catch(()=>"")}}async function Ph(){const i=await zi("/admin/connections");if(!i.ok)throw new Fn(i.status,Kn(i.status,await _i(i)));return(await i.json()).connections??[]}function U0(i,o){const f=m=>o.some(p=>p.source.module==="vault"&&p.source.vault===i&&p.source.event===m&&p.sink.module==="agent"&&p.sink.action===Er),s=f(jr),d=f(Nr);return{create:s,edit:d,active:s&&d}}async function em(i){const o=["create","edit"],f=[];let s=0,d="";for(const m of o){const p=await zi("/admin/connections",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(M0(i,m))});if(!p.ok){const E=await _i(p);s===0&&(s=p.status,d=E),f.push(`${m}: ${Kn(p.status,E)}`)}}if(f.length===o.length)throw new Fn(s,Kn(s,d||"provisioning failed"));return{ok:f.length===0,failures:f}}async function tm(i,o,f){const s={};o!==void 0&&(s.token=o),f&&(s.returnTo=f);const d=await zi(`/admin/grants/${encodeURIComponent(i)}/approve`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!d.ok)throw new Fn(d.status,Kn(d.status,await _i(d)));return await d.json()}async function lm(i,o=[]){const f=new Set([sr(i,"create"),sr(i,"edit")]);for(const s of o)s.source.module==="vault"&&s.source.vault===i&&(s.source.event===jr||s.source.event===Nr)&&s.sink.module==="agent"&&s.sink.action===Er&&f.add(s.id);for(const s of f){const d=await zi(`/admin/connections/${encodeURIComponent(s)}`,{method:"DELETE"});if(!d.ok&&d.status!==404)throw new Fn(d.status,Kn(d.status,await _i(d)))}}const Cr=[{value:"",label:"Default (Claude Code's default)"},{value:"opus",label:"Opus — most capable"},{value:"sonnet",label:"Sonnet — balanced"},{value:"haiku",label:"Haiku — fastest"}];function w0(i){var o;return i?((o=Cr.find(f=>f.value===i))==null?void 0:o.label)??i:"Default"}function H0(i,o){const f=new Map;for(const s of i)f.set(s.name,{name:s.name,backend:s.backend,...s.channel?{channel:s.channel}:{},...s.vault?{vault:s.vault}:{},...s.status?{status:s.status}:{},live:!0});for(const s of o){const d=f.get(s.name);d?(d.def=s,d.mode=s.mode,!d.channel&&s.channel&&(d.channel=s.channel),!d.vault&&s.vault&&(d.vault=s.vault)):f.set(s.name,{name:s.name,backend:s.backend,channel:s.channel,vault:s.vault,status:s.status,mode:s.mode,live:!1,def:s})}return[...f.values()].sort((s,d)=>s.name.localeCompare(d.name))}function Dm(i){return i==="programmatic"?"pill backend-programmatic":i==="channel"?"pill backend-channel":"pill"}function Om(i){return i==="enabled"||i==="idle"?"pill status-enabled":i==="working"?"pill status-working":i==="pending"||i.startsWith("queued")?"pill status-queued":i==="error"?"pill status-error":"pill"}function am(){const[i,o]=y.useState({kind:"loading"}),[f,s]=y.useState(null),[d,m]=y.useState(!1),p=y.useCallback(async()=>{o({kind:"loading"});try{const[v,C,j]=await Promise.all([u0(),i0(),zm()]);o({kind:"ok",agents:v.agents,defs:C.defs,vaults:j.vaults})}catch(v){const C=v instanceof et?v.status===401?"Not signed in to the hub — sign in to the portal, then reload.":`Failed to load agents: ${v.message}`:`Failed to load agents: ${v.message}`;o({kind:"error",message:C})}},[]);y.useEffect(()=>{p()},[p]),y.useEffect(()=>{const v=new URLSearchParams(window.location.search);if(v.get("mcp_connected")!=="1")return;m(!0),v.delete("mcp_connected");const C=v.toString();window.history.replaceState(null,"",window.location.pathname+(C?`?${C}`:"")+window.location.hash)},[]);const E=y.useMemo(()=>i.kind==="ok"?H0(i.agents,i.defs):[],[i]),S=y.useMemo(()=>E.find(v=>v.name===f)??null,[E,f]);return c.jsxs("div",{children:[c.jsx("h1",{children:"Agents"}),c.jsx("p",{className:"lede",children:"Every agent across all backends, in one place — programmatic and channel. Read-only for now; the create flow and def-vault editor land in later phases."}),i.kind==="error"?c.jsxs("div",{className:"error-banner",role:"alert",children:[i.message," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>void p(),children:"Retry"})]}):null,d?c.jsxs("div",{className:"success-banner",role:"status",children:["✓ MCP server connected — it'll be available to the agent on its next run."," ",c.jsx("button",{type:"button",className:"link",onClick:()=>m(!1),children:"Dismiss"})]}):null,i.kind==="loading"?c.jsx("div",{className:"loading",children:"Loading agents…"}):null,i.kind==="ok"?c.jsxs(c.Fragment,{children:[S?c.jsx(B0,{agent:S,onClose:()=>s(null),onChanged:()=>void p(),onDeleted:()=>{s(null),p()}}):null,c.jsxs("section",{className:"card","aria-label":"Agents",children:[c.jsxs("div",{className:"section-head",children:[c.jsx("h2",{children:"All agents"}),c.jsxs("span",{className:"section-head-actions",children:[c.jsxs("span",{className:"count","data-testid":"agents-count",children:[E.length," ",E.length===1?"agent":"agents"]}),c.jsx(fl,{to:"/create",className:"button-link","data-testid":"new-agent-link",children:"New agent"})]})]}),E.length===0?c.jsxs("div",{className:"empty",children:["No agents yet. Define one in a vault as an"," ",c.jsx("code",{children:"#agent/definition"})," note, or spawn one from the create flow (coming in a later phase)."]}):c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name"}),c.jsx("th",{children:"Backend"}),c.jsx("th",{children:"Channel"}),c.jsx("th",{children:"Status"}),c.jsx("th",{children:"Vault"})]})}),c.jsx("tbody",{children:E.map(v=>c.jsxs("tr",{className:`agent-row${f===v.name?" selected":""}`,"data-testid":`agent-row-${v.name}`,onClick:()=>s(f===v.name?null:v.name),children:[c.jsx("td",{className:"cell-name",children:v.name}),c.jsx("td",{children:c.jsx("span",{className:Dm(v.backend),children:v.backend})}),c.jsx("td",{className:v.channel?"":"cell-dim",children:v.channel??"—"}),c.jsx("td",{children:v.status?c.jsx("span",{className:Om(v.status),children:v.status}):v.live?c.jsx("span",{className:"cell-dim",children:"live"}):c.jsx("span",{className:"cell-dim",children:"not running"})}),c.jsx("td",{className:v.vault?"":"cell-dim",children:v.vault??"—"})]},v.name))})]})]}),c.jsx(I0,{}),c.jsx(P0,{vaults:i.vaults,onChanged:()=>void p()})]}):null]})}function B0({agent:i,onClose:o,onChanged:f,onDeleted:s}){const d=i.def,m=d==null?void 0:d.noteId,[p,E]=y.useState("view");return y.useEffect(()=>{E("view")},[i.name]),p==="edit"&&m?c.jsx(L0,{noteId:m,name:i.name,onCancel:()=>E("view"),onSaved:()=>{E("view"),f()}}):c.jsxs("div",{className:"detail","data-testid":"agent-detail",children:[c.jsxs("div",{className:"detail-head",children:[c.jsx("h2",{children:i.name}),c.jsx("span",{className:Dm(i.backend),children:i.backend}),i.status?c.jsx("span",{className:Om(i.status),children:i.status}):null,c.jsx("button",{type:"button",className:"detail-close",onClick:o,children:"Close"})]}),c.jsxs("dl",{className:"detail-grid",children:[c.jsx("dt",{children:"Backend"}),c.jsx("dd",{children:i.backend}),c.jsx("dt",{children:"Mode"}),c.jsx("dd",{"data-testid":"detail-mode",children:i.mode?q0(i.mode):"—"}),c.jsx("dt",{children:"Channel"}),c.jsx("dd",{children:i.channel??"—"}),c.jsx("dt",{children:"Vault"}),c.jsx("dd",{children:i.vault??"—"}),c.jsx("dt",{children:"Running"}),c.jsx("dd",{children:i.live?"yes":"no (defined, not instantiated)"}),d?c.jsxs(c.Fragment,{children:[c.jsx("dt",{children:"Model"}),c.jsx("dd",{"data-testid":"detail-model",children:w0(d.model)}),c.jsx("dt",{children:"Def status"}),c.jsx("dd",{children:d.status})]}):null]}),d?c.jsxs(c.Fragment,{children:[c.jsx("h3",{children:"System prompt"}),d.systemPromptPreview?c.jsx("p",{className:"detail-prompt","data-testid":"detail-prompt",children:d.systemPromptPreview}):c.jsx("p",{className:"dim",children:"No system prompt set (Claude Code's default)."}),c.jsx("h3",{children:"Wants"}),d.wants.length>0?c.jsx("div",{className:"tag-list",children:d.wants.map(S=>c.jsx("span",{className:"tag",children:S},S))}):c.jsx("p",{className:"dim",children:"Own-vault only — no extra connections requested."}),d.pending.length>0?c.jsxs(c.Fragment,{children:[c.jsx("h3",{children:"Pending approval"}),c.jsx("div",{className:"tag-list",children:d.pending.map(S=>c.jsx("span",{className:"tag",children:S},S))})]}):null,m?c.jsx(X0,{noteId:m,def:d,onChanged:f}):null]}):c.jsxs("p",{className:"dim","data-testid":"detail-no-def",children:["This agent isn't backed by a vault-native ",c.jsx("code",{children:"#agent/definition"})," note, so there's no system prompt or wants to show."]}),i.backend==="channel"?c.jsx("p",{className:"detail-note","data-testid":"detail-channel-note",children:'Channel backend — the queue depth and the "connect your Claude Code session" affordance arrive in a later phase.'}):null,i.channel?c.jsx(Z0,{channel:i.channel}):null,i.channel?c.jsx(F0,{channel:i.channel,backend:i.backend}):null,i.channel?c.jsx(W0,{name:i.name}):null,m?p==="delete"?c.jsx(k0,{noteId:m,name:i.name,onCancel:()=>E("view"),onDeleted:s}):c.jsxs("div",{className:"detail-actions","data-testid":"detail-actions",children:[c.jsx("button",{type:"button",className:"secondary","data-testid":"edit-agent",onClick:()=>E("edit"),children:"Edit"}),c.jsx("button",{type:"button",className:"button-danger","data-testid":"delete-agent",onClick:()=>E("delete"),children:"Delete"})]}):null]})}function q0(i){return i==="single-threaded"?"Single-threaded":"Multi-threaded"}function L0({noteId:i,name:o,onCancel:f,onSaved:s}){const[d,m]=y.useState({kind:"loading"}),[p,E]=y.useState(""),[S,v]=y.useState("single-threaded"),[C,j]=y.useState(""),[z,k]=y.useState(""),[Y,L]=y.useState(!1),[X,M]=y.useState(null),D=y.useCallback(async()=>{m({kind:"loading"});try{const $=(await s0(i)).def;E($.systemPrompt),v($.mode),j($.model??""),k($.wants.join(", ")),m({kind:"ready",systemPrompt:$.systemPrompt,mode:$.mode,wants:$.wants.join(", ")})}catch(Z){const $=Z instanceof et?Z.status===401?"Not signed in to the hub — sign in to the portal, then reload.":`Failed to load the def: ${Z.message}`:`Failed to load the def: ${Z.message}`;m({kind:"error",message:$})}},[i]);y.useEffect(()=>{D()},[D]);async function G(Z){if(Z.preventDefault(),!Y){L(!0),M(null);try{await _m(i,{systemPrompt:p,metadata:{mode:S,model:C},wants:z.trim()}),s()}catch($){const ue=$ instanceof et&&$.status===401?"Not signed in to the hub — sign in to the portal, then reload.":$.message;M(ue)}finally{L(!1)}}}return c.jsxs("div",{className:"detail","data-testid":"edit-agent-form",children:[c.jsxs("div",{className:"detail-head",children:[c.jsxs("h2",{children:["Edit ",o]}),c.jsx("button",{type:"button",className:"detail-close",onClick:f,children:"Close"})]}),d.kind==="loading"?c.jsx("div",{className:"loading",children:"Loading def…"}):null,d.kind==="error"?c.jsxs("div",{className:"error-banner",role:"alert","data-testid":"edit-load-error",children:[d.message," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>void D(),children:"Retry"})]}):null,d.kind==="ready"?c.jsxs("form",{className:"card",onSubmit:G,"aria-label":"Edit agent",children:[X?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"edit-error",children:X}):null,c.jsxs("fieldset",{className:"field",children:[c.jsx("legend",{children:"Mode"}),c.jsx(Ei,{name:"edit-mode",value:"single-threaded",checked:S==="single-threaded",onChange:()=>v("single-threaded"),label:"Single-threaded",help:"One continuous conversation — remembers everything on this channel.",testid:"edit-mode-single-threaded"}),c.jsx(Ei,{name:"edit-mode",value:"multi-threaded",checked:S==="multi-threaded",onChange:()=>v("multi-threaded"),label:"Multi-threaded",help:"Each run is its own thread — good for scheduled or stateless tasks.",testid:"edit-mode-multi-threaded"})]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"edit-model",children:"Model"}),c.jsx("select",{id:"edit-model",value:C,"data-testid":"edit-model",onChange:Z=>j(Z.target.value),children:Cr.map(Z=>c.jsx("option",{value:Z.value,children:Z.label},Z.value))}),c.jsx("p",{className:"field-hint",children:"Which model Parachute runs this agent on (programmatic backend). A channel-backend agent uses whatever model your own session runs."})]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"edit-prompt",children:"System prompt"}),c.jsx("textarea",{id:"edit-prompt",rows:8,value:p,placeholder:"You are…",onChange:Z=>E(Z.target.value)}),c.jsx("p",{className:"field-hint",children:"The agent's persona + instructions (the note body). Leave blank for Claude Code's default."})]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"edit-wants",children:"Wants (connections)"}),c.jsx("input",{id:"edit-wants",type:"text",value:z,placeholder:"vault:other, service:github",autoComplete:"off",onChange:Z=>k(Z.target.value)}),c.jsx("p",{className:"field-hint",children:"Comma-separated connection keys the agent requests beyond its own vault. Each needs approval before it's granted."})]}),c.jsxs("div",{className:"form-actions",children:[c.jsx("button",{type:"submit",disabled:Y,children:Y?"Saving…":"Save changes"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:f,children:"Cancel"})]})]}):null]})}function k0({noteId:i,name:o,onCancel:f,onDeleted:s}){const[d,m]=y.useState(""),[p,E]=y.useState(!1),[S,v]=y.useState(null),C=d===o&&!p;async function j(){if(C){E(!0),v(null);try{await r0(i),s()}catch(z){const k=z instanceof et&&z.status===401?"Not signed in to the hub — sign in to the portal, then reload.":z.message;v(k),E(!1)}}}return c.jsxs("div",{className:"confirm-box","data-testid":"delete-confirm",children:[c.jsxs("p",{className:"confirm-prompt",children:["Delete ",c.jsx("strong",{children:o}),"? This removes the definition note and deregisters the agent. Type the agent name to confirm."]}),S?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"delete-error",children:S}):null,c.jsx("div",{className:"field",children:c.jsx("input",{type:"text",value:d,placeholder:o,autoComplete:"off","aria-label":"Type the agent name to confirm deletion","data-testid":"delete-confirm-input",onChange:z=>m(z.target.value)})}),c.jsxs("div",{className:"form-actions",children:[c.jsx("button",{type:"button",className:"button-danger","data-testid":"delete-confirm-button",disabled:!C,onClick:()=>void j(),children:p?"Deleting…":"Delete agent"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:f,children:"Cancel"})]})]})}function Y0({status:i}){return i==="approved"?c.jsx("span",{className:"pill status-enabled","data-testid":"conn-status-approved",children:"Connected"}):i==="needs_consent"?c.jsx("span",{className:"pill status-error","data-testid":"conn-status-needs_consent",children:"Needs reconnect"}):i==="revoked"?c.jsx("span",{className:"pill status-error","data-testid":"conn-status-revoked",children:"Revoked"}):c.jsx("span",{className:"pill status-pending","data-testid":"conn-status-pending",children:"Pending"})}function G0(i){if(i.connections&&i.connections.length>0)return i.connections.filter(f=>f.kind==="mcp");const o=new Set(i.pending);return i.wants.filter(f=>f.startsWith("mcp:")&&/^mcp:https?:\/\//i.test(f)).map(f=>({key:f,kind:"mcp",target:f.slice(4),status:o.has(f)?"pending":"approved"}))}function X0({noteId:i,def:o,onChanged:f}){const[s,d]=y.useState(!1),[m,p]=y.useState(null),[E,S]=y.useState(null),[v,C]=y.useState(""),[j,z]=y.useState(null),k=G0(o),Y=D0();async function L(M){p(M),z(null);try{const D=window.location.pathname+window.location.search+window.location.hash,G=await tm(M,void 0,D);if(G.authorizeUrl){window.location.assign(G.authorizeUrl);return}f()}catch(D){z(nm(D))}finally{p(null)}}async function X(M){const D=v.trim();if(D.length!==0){p(M),z(null);try{await tm(M,D),S(null),C(""),f()}catch(G){z(nm(G))}finally{p(null)}}}return c.jsxs("section",{className:"detail-section","aria-label":"Connections","data-testid":"connections-section",children:[c.jsxs("div",{className:"section-head",children:[c.jsx("h3",{children:"Connections / MCP servers"}),c.jsx("button",{type:"button",className:"secondary","data-testid":"add-mcp-toggle",onClick:()=>{d(M=>!M),z(null)},children:s?"Cancel":"Add MCP server"})]}),c.jsx("p",{className:"muted",children:"Remote MCP servers this agent can reach. Add one, then connect it via OAuth (or paste a static bearer). Each connection is operator-approved before it's granted."}),Y?c.jsx("div",{className:"info-banner",role:"status","data-testid":"connections-daemon-direct",children:"Open this surface via your hub to connect MCP servers — the OAuth/approve step needs the hub origin (you're on the loopback daemon)."}):null,s?c.jsx(Q0,{noteId:i,def:o,onCancel:()=>d(!1),onAdded:()=>{d(!1),f()}}):null,j?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"connections-row-error",children:j}):null,k.length===0?c.jsx("div",{className:"empty","data-testid":"connections-empty",children:"No MCP servers connected to this agent yet."}):c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"MCP server"}),c.jsx("th",{children:"Status"}),c.jsx("th",{})]})}),c.jsx("tbody",{children:k.map(M=>{const D=M.status!=="approved",G=D&&!!M.grantId&&!Y;return c.jsxs("tr",{"data-testid":`connection-row-${M.target}`,children:[c.jsx("td",{className:"cell-name",children:c.jsx("code",{children:M.target})}),c.jsx("td",{children:c.jsx(Y0,{status:M.status})}),c.jsx("td",{children:D?E===M.grantId?c.jsxs("span",{className:"confirm-inline",children:[c.jsx("input",{type:"password",value:v,placeholder:"bearer token",autoComplete:"off",spellCheck:!1,"aria-label":"Static bearer token","data-testid":`paste-token-input-${M.target}`,onChange:Z=>C(Z.target.value)}),c.jsx("button",{type:"button",disabled:m===M.grantId||v.trim().length===0,"data-testid":`paste-token-save-${M.target}`,onClick:()=>void X(M.grantId),children:m===M.grantId?"Saving…":"Save"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:()=>{S(null),C("")},children:"Cancel"})]}):c.jsxs("span",{className:"schedule-row-actions",children:[c.jsx("button",{type:"button",disabled:!G||m===M.grantId,"data-testid":`connect-${M.target}`,title:Y?"Open the agent app via your hub origin to connect.":M.grantId?void 0:"No grant registered yet — reload after the daemon registers it.",onClick:()=>void L(M.grantId),children:m===M.grantId?"Connecting…":M.status==="needs_consent"?"Reconnect":"Connect"}),M.grantId&&!Y?c.jsx("button",{type:"button",className:"cancel-link","data-testid":`paste-token-${M.target}`,onClick:()=>{z(null),C(""),S(M.grantId)},children:"Paste token"}):null]}):c.jsx("span",{className:"cell-dim",children:"—"})})]},M.key)})})]})]})}function nm(i){return i instanceof Fn,i.message}function Q0({noteId:i,def:o,onCancel:f,onAdded:s}){const[d,m]=y.useState(""),[p,E]=y.useState("oauth"),[S,v]=y.useState(!1),[C,j]=y.useState(null),z=d.trim(),k=/^https?:\/\/.+/i.test(z)&&V0(z),Y=o.wants.includes(`mcp:${z}`),L=k&&!Y&&!S;async function X(M){if(M.preventDefault(),!!L){v(!0),j(null);try{const D=[...o.wants,`mcp:${z}`].join(", ");await _m(i,{wants:D}),s()}catch(D){const G=D instanceof et&&D.status===401?"Not signed in to the hub — sign in to the portal, then reload.":D.message;j(G)}finally{v(!1)}}}return c.jsxs("form",{className:"inline-form",onSubmit:X,"aria-label":"Add MCP server","data-testid":"add-mcp-form",children:[C?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"add-mcp-error",children:C}):null,c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"mcp-url",children:"MCP server URL"}),c.jsx("input",{id:"mcp-url",type:"text",value:d,placeholder:"https://mcp.example.com/mcp",autoComplete:"off",spellCheck:!1,onChange:M=>m(M.target.value)}),z.length>0&&!k?c.jsx("p",{className:"field-error","data-testid":"mcp-url-invalid",children:"Must be a full http(s) URL."}):null,Y?c.jsx("p",{className:"field-error","data-testid":"mcp-url-duplicate",children:"This MCP server is already connected to the agent."}):null]}),c.jsxs("fieldset",{className:"field",children:[c.jsx("legend",{children:"Authentication"}),c.jsx("p",{className:"muted",children:"You'll enter credentials in the next step — on the connection's row after it's added."}),c.jsx(Ei,{name:"mcp-auth",value:"oauth",checked:p==="oauth",onChange:()=>E("oauth"),label:"OAuth",help:"Sign in to the MCP server in your browser (recommended). Connect on the row after adding.",testid:"mcp-auth-oauth"}),c.jsx(Ei,{name:"mcp-auth",value:"token",checked:p==="token",onChange:()=>E("token"),label:"Paste a token",help:"For an MCP server with a static bearer token. Paste it on the row's “Paste token” after adding.",testid:"mcp-auth-token"})]}),c.jsxs("div",{className:"form-actions",children:[c.jsx("button",{type:"submit",disabled:!L,"data-testid":"add-mcp-submit",children:S?"Adding…":"Add MCP server"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:f,children:"Cancel"})]})]})}function V0(i){try{return new URL(i),!0}catch{return!1}}function Z0({channel:i}){const[o,f]=y.useState({kind:"loading"}),[s,d]=y.useState(!1),[m,p]=y.useState(null),[E,S]=y.useState(null),[v,C]=y.useState(null),[j,z]=y.useState(null),[k,Y]=y.useState(null),L=y.useCallback(async()=>{f({kind:"loading"});try{const G=(await x0()).jobs.filter(Z=>Z.channel===i);f({kind:"ok",jobs:G})}catch(D){f({kind:"error",message:at(D)})}},[i]);y.useEffect(()=>{L()},[L]);async function X(D){p(D),z(null),Y(null);try{const G=await j0(D);Y(`Ran ${D} (${G.status}).`),await L()}catch(G){z(`Run failed: ${at(G)}`)}finally{p(null)}}async function M(D){C(D),z(null);try{await N0(D),S(null),await L()}catch(G){z(at(G))}finally{C(null)}}return c.jsxs("section",{className:"schedules","aria-label":"Schedules","data-testid":"schedules-section",children:[c.jsxs("div",{className:"section-head",children:[c.jsx("h3",{children:"Schedules"}),c.jsx("span",{className:"section-head-actions",children:c.jsx("button",{type:"button",className:"secondary","data-testid":"add-schedule-toggle",onClick:()=>d(D=>!D),children:s?"Cancel":"New schedule"})})]}),c.jsx("p",{className:"muted",children:"Send this agent a message on a cron schedule. The runner writes the message as an inbound note; the agent runs its turn as if you typed it."}),s?c.jsx(J0,{channel:i,onCancel:()=>d(!1),onCreated:()=>{d(!1),L()}}):null,k?c.jsx("p",{className:"schedule-status","data-testid":"schedule-row-status",children:k}):null,j?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"schedule-row-error",children:j}):null,o.kind==="loading"?c.jsx("div",{className:"loading",children:"Loading schedules…"}):null,o.kind==="error"?c.jsxs("div",{className:"error-banner",role:"alert","data-testid":"schedules-error",children:[o.message," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>void L(),children:"Retry"})]}):null,o.kind==="ok"?o.jobs.length===0?c.jsx("div",{className:"empty","data-testid":"schedules-empty",children:"No schedules yet for this agent."}):c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Id"}),c.jsx("th",{children:"Cron"}),c.jsx("th",{children:"Next run"}),c.jsx("th",{children:"Last status"}),c.jsx("th",{})]})}),c.jsx("tbody",{children:o.jobs.map(D=>c.jsxs("tr",{"data-testid":`schedule-row-${D.id}`,children:[c.jsxs("td",{className:"cell-name",children:[c.jsx("code",{children:D.id}),D.enabled?null:c.jsx("span",{className:"cell-dim",children:" (disabled)"})]}),c.jsxs("td",{children:[c.jsx("code",{children:D.schedule.cron}),D.schedule.tz?c.jsxs("span",{className:"cell-dim",children:[" ",D.schedule.tz]}):null]}),c.jsx("td",{className:D.nextRunAt?"":"cell-dim",children:um(D.nextRunAt)}),c.jsxs("td",{children:[D.lastStatus?c.jsx("span",{className:D.lastStatus.startsWith("error")?"pill status-error":"pill status-enabled",children:D.lastStatus}):c.jsx("span",{className:"cell-dim",children:"—"}),D.lastRunAt?c.jsxs("span",{className:"cell-dim",children:[" ",um(D.lastRunAt)]}):null]}),c.jsx("td",{children:E===D.id?c.jsxs("span",{className:"confirm-inline",children:[c.jsx("button",{type:"button",className:"button-danger","data-testid":`schedule-delete-confirm-${D.id}`,disabled:v===D.id,onClick:()=>void M(D.id),children:v===D.id?"Deleting…":"Confirm delete"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:()=>S(null),children:"Cancel"})]}):c.jsxs("span",{className:"schedule-row-actions",children:[c.jsx("button",{type:"button",className:"secondary","data-testid":`schedule-run-${D.id}`,disabled:m===D.id,onClick:()=>void X(D.id),children:m===D.id?"Running…":"Run now"}),c.jsx("button",{type:"button",className:"button-danger","data-testid":`schedule-delete-${D.id}`,onClick:()=>{z(null),S(D.id)},children:"Delete"})]})})]},D.id))})]}):null]})}const K0=[{label:"daily 8am",cron:"0 8 * * *"},{label:"hourly",cron:"0 * * * *"},{label:"every 15m",cron:"*/15 * * * *"},{label:"weekdays 9am",cron:"0 9 * * 1-5"},{label:"weekly Mon 8am",cron:"0 8 * * 1"}];function J0({channel:i,onCancel:o,onCreated:f}){const[s,d]=y.useState(""),[m,p]=y.useState(""),[E,S]=y.useState(""),[v,C]=y.useState(""),[j,z]=y.useState(!1),[k,Y]=y.useState(null),L=/^[a-zA-Z0-9_-]+$/.test(s),X=L&&m.trim().length>0&&E.trim().length>0&&!j;async function M(D){if(D.preventDefault(),!!X){z(!0),Y(null);try{await E0({id:s,channel:i,message:m.trim(),schedule:{cron:E.trim(),...v.trim()?{tz:v.trim()}:{}},enabled:!0}),f()}catch(G){Y(at(G))}finally{z(!1)}}}return c.jsxs("form",{className:"inline-form",onSubmit:M,"aria-label":"New schedule","data-testid":"schedule-form",children:[k?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"schedule-form-error",children:k}):null,c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"schedule-id",children:"Job id (slug)"}),c.jsx("input",{id:"schedule-id",type:"text",value:s,placeholder:"morning-standup",autoComplete:"off",onChange:D=>d(D.target.value)}),s.length>0&&!L?c.jsx("p",{className:"field-error","data-testid":"schedule-id-invalid",children:"Must be a slug — letters, numbers, dash, underscore only."}):null]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"schedule-message",children:"Message to send"}),c.jsx("textarea",{id:"schedule-message",rows:3,value:m,placeholder:"Run the morning weave…",onChange:D=>p(D.target.value)})]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"schedule-cron",children:"Cron (min hour dom mon dow)"}),c.jsx("input",{id:"schedule-cron",type:"text",value:E,placeholder:"0 8 * * *",autoComplete:"off",onChange:D=>S(D.target.value)}),c.jsx("div",{className:"schedule-presets",children:K0.map(D=>c.jsx("button",{type:"button",className:"secondary",onClick:()=>S(D.cron),children:D.label},D.cron))})]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"schedule-tz",children:"Timezone (IANA, optional)"}),c.jsx("input",{id:"schedule-tz",type:"text",value:v,placeholder:"America/Los_Angeles",autoComplete:"off",onChange:D=>C(D.target.value)}),c.jsx("p",{className:"field-hint",children:"Leave blank to use the daemon's local timezone."})]}),c.jsxs("div",{className:"form-actions",children:[c.jsx("button",{type:"submit",disabled:!X,children:j?"Scheduling…":"Create schedule"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:o,children:"Cancel"})]})]})}function um(i){if(!i)return"—";try{return new Date(i).toLocaleString()}catch{return i}}function Ei(i){return c.jsxs("label",{className:`radio-row${i.checked?" selected":""}`,"data-testid":i.testid,children:[c.jsx("input",{type:"radio",name:i.name,value:i.value,checked:i.checked,onChange:i.onChange}),c.jsxs("span",{className:"radio-body",children:[c.jsx("span",{className:"radio-label",children:i.label}),c.jsx("span",{className:"radio-help",children:i.help})]})]})}function $0(i){return i==="channel"?"pill backend-channel":i.startsWith("grant:")?"pill backend-programmatic":"pill"}function W0({name:i}){const[o,f]=y.useState({kind:"loading"}),s=y.useCallback(async()=>{f({kind:"loading"});try{const d=await S0(i);f({kind:"ok",env:d.env,...d.note?{note:d.note}:{}})}catch(d){f({kind:"error",message:at(d)})}},[i]);return y.useEffect(()=>{s()},[s]),c.jsxs("section",{className:"detail-section","aria-label":"Effective env","data-testid":"effective-env-section",children:[c.jsxs("div",{className:"section-head",children:[c.jsx("h3",{children:"Effective env"}),c.jsx("button",{type:"button",className:"secondary","data-testid":"effective-env-refresh",onClick:()=>void s(),children:"Refresh"})]}),c.jsxs("p",{className:"muted",children:["The env-var ",c.jsx("strong",{children:"names"})," this agent's sandboxed turn runs with, resolved across the operator default, this agent's override, and approved-grant service env."," ",c.jsx("strong",{children:"Names only"})," — values are never shown. Precedence: channel > default > grant."]}),o.kind==="loading"?c.jsx("div",{className:"loading",children:"Loading effective env…"}):null,o.kind==="error"?c.jsxs("div",{className:"error-banner",role:"alert","data-testid":"effective-env-error",children:[o.message," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>void s(),children:"Retry"})]}):null,o.kind==="ok"?c.jsxs(c.Fragment,{children:[o.note?c.jsx("p",{className:"muted","data-testid":"effective-env-note",children:o.note}):null,o.env.length===0?c.jsx("div",{className:"empty","data-testid":"effective-env-empty",children:"No env vars resolved for this agent."}):c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name"}),c.jsx("th",{children:"Source"}),c.jsx("th",{})]})}),c.jsx("tbody",{children:o.env.map((d,m)=>c.jsxs("tr",{className:d.overridden?"cell-dim":"","data-testid":`effective-env-${d.name}-${d.source}`,children:[c.jsx("td",{className:"cell-name",children:d.name}),c.jsx("td",{children:c.jsx("span",{className:$0(d.source),children:d.source})}),c.jsx("td",{children:d.overridden?c.jsx("span",{className:"cell-dim","data-testid":`effective-env-overridden-${d.name}-${d.source}`,children:"overridden"}):null})]},`${d.name}-${d.source}-${m}`))})]})]}):null]})}function F0({channel:i,backend:o}){const[f,s]=y.useState({kind:"loading"}),[d,m]=y.useState(!1),[p,E]=y.useState(""),[S,v]=y.useState(""),[C,j]=y.useState(!1),[z,k]=y.useState(null),[Y,L]=y.useState(null),[X,M]=y.useState(null),[D,G]=y.useState(null),Z=y.useCallback(async()=>{s({kind:"loading"});try{const le=await m0();s({kind:"ok",names:(le.channels[i]??[]).slice().sort()})}catch(le){s({kind:"error",message:at(le)})}},[i]);y.useEffect(()=>{Z()},[Z]);const $=p.trim(),ue=d0.has($),V=$.length===0||h0.test($),I=$.length>0&&V&&!ue&&S.length>0&&!C;async function P(le){if(le.preventDefault(),!!I){j(!0),k(null);try{await v0({channel:i,name:$,value:S}),E(""),v(""),m(!1),await Z()}catch(xe){k(at(xe))}finally{j(!1)}}}async function Re(le){M(le),G(null);try{await y0({channel:i,name:le}),L(null),await Z()}catch(xe){G(at(xe))}finally{M(null)}}return c.jsxs("section",{className:"detail-section","aria-label":"Secrets","data-testid":"secrets-section",children:[c.jsxs("div",{className:"section-head",children:[c.jsx("h3",{children:"Secrets (env vars)"}),c.jsx("button",{type:"button",className:"secondary","data-testid":"add-secret-toggle",onClick:()=>{m(le=>!le),k(null)},children:d?"Cancel":"Add secret"})]}),c.jsxs("p",{className:"muted",children:["Local env vars (e.g. ",c.jsx("code",{children:"GH_TOKEN"}),") injected into this agent's sandboxed turns — stored 0600 on this machine, ",c.jsx("strong",{children:"never in the vault"}),". Values are write-only: they're never shown again.",o==="channel"?c.jsxs(c.Fragment,{children:[" ","This agent uses the ",c.jsx("strong",{children:"channel"})," backend, so it runs in your own Claude Code session with your own environment — these vars apply only to programmatic turns."]}):null]}),d?c.jsxs("form",{className:"inline-form",onSubmit:P,"aria-label":"Add secret","aria-busy":C,"data-testid":"add-secret-form",children:[z?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"add-secret-error",children:z}):null,c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"secret-name",children:"Name"}),c.jsx("input",{id:"secret-name",type:"text",value:p,placeholder:"GH_TOKEN",autoComplete:"off",autoCapitalize:"off",spellCheck:!1,onChange:le=>E(le.target.value)}),$.length>0&&!V?c.jsx("p",{className:"field-error","data-testid":"secret-name-invalid",children:"A valid env var name — letters, numbers, underscore; not starting with a digit."}):null,ue?c.jsxs("p",{className:"field-error","data-testid":"secret-name-denylisted",children:["Reserved — ",$," would hijack the agent's managed billing/auth."]}):null]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"secret-value",children:"Value"}),c.jsx("input",{id:"secret-value",type:"password",value:S,placeholder:"ghp_…",autoComplete:"off",spellCheck:!1,onChange:le=>v(le.target.value)}),c.jsx("p",{className:"field-hint",children:"Stored 0600 on disk (access-controlled, not encrypted). Write-only — never re-displayed."})]}),c.jsx("div",{className:"form-actions",children:c.jsx("button",{type:"submit",disabled:!I,children:C?"Saving…":"Save secret"})})]}):null,D?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"secret-row-error",children:D}):null,f.kind==="loading"?c.jsx("div",{className:"loading",children:"Loading secrets…"}):null,f.kind==="error"?c.jsxs("div",{className:"error-banner",role:"alert","data-testid":"secrets-load-error",children:[f.message," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>void Z(),children:"Retry"})]}):null,f.kind==="ok"?f.names.length===0?c.jsx("div",{className:"empty","data-testid":"secrets-empty",children:"No secrets set for this agent."}):c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name"}),c.jsx("th",{children:"Value"}),c.jsx("th",{})]})}),c.jsx("tbody",{children:f.names.map(le=>c.jsxs("tr",{"data-testid":`secret-${le}`,children:[c.jsx("td",{className:"cell-name",children:le}),c.jsx("td",{className:"cell-dim",children:"••••••••"}),c.jsx("td",{children:Y===le?c.jsxs("span",{className:"confirm-inline",children:[c.jsx("button",{type:"button",className:"button-danger","data-testid":`secret-remove-confirm-${le}`,disabled:X===le,onClick:()=>void Re(le),children:X===le?"Removing…":"Confirm remove"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:()=>L(null),children:"Cancel"})]}):c.jsx("button",{type:"button",className:"button-danger","data-testid":`secret-remove-${le}`,onClick:()=>{G(null),L(le)},children:"Remove"})})]},le))})]}):null]})}function I0(){const[i,o]=y.useState({kind:"loading"}),[f,s]=y.useState(!1),[d,m]=y.useState(""),[p,E]=y.useState(""),[S,v]=y.useState(!1),[C,j]=y.useState(null),[z,k]=y.useState(null),[Y,L]=y.useState(null),[X,M]=y.useState(null),[D,G]=y.useState(null),Z=y.useCallback(async()=>{o({kind:"loading"});try{const P=await g0();o({kind:"ok",status:P})}catch(P){o({kind:"error",message:at(P)})}},[]);y.useEffect(()=>{Z()},[Z]);const $=p.trim(),ue=d.length>0&&!S;async function V(P){if(P.preventDefault(),!!ue){v(!0),j(null),k(null);try{await p0({token:d,...$.length>0?{channel:$}:{}}),m(""),E(""),s(!1),k($.length>0?`Saved a Claude token override for "${$}".`:"Saved the default Claude token."),await Z()}catch(Re){j(at(Re))}finally{v(!1)}}}async function I(P){M(P),G(null);try{await b0(P),L(null),await Z()}catch(Re){G(at(Re))}finally{M(null)}}return c.jsxs("section",{className:"card","aria-label":"Claude auth","data-testid":"claude-auth-section",children:[c.jsxs("div",{className:"section-head",children:[c.jsx("h2",{children:"Claude auth"}),c.jsxs("span",{className:"section-head-actions",children:[i.kind==="ok"?i.status.defaultSet?c.jsx("span",{className:"pill status-enabled","data-testid":"claude-default-configured",children:"configured"}):c.jsx("span",{className:"pill status-error","data-testid":"claude-default-missing",children:"not configured"}):null,c.jsx("button",{type:"button",className:"secondary","data-testid":"set-claude-token-toggle",onClick:()=>{s(P=>(P&&(m(""),E("")),!P)),j(null),k(null)},children:f?"Cancel":"Set token"})]})]}),c.jsxs("p",{className:"muted",children:["The token from ",c.jsx("code",{children:"claude setup-token"})," that the daemon runs each agent turn on. It's stored locally (",c.jsx("code",{children:"credentials.json"}),", 0600) and used to run turns on your ",c.jsx("strong",{children:"Claude subscription"})," — ",c.jsx("strong",{children:"not"})," API billing. It's write-only: the value is never shown again. Set a ",c.jsx("strong",{children:"default"})," token (used by every agent) or a per-",c.jsx("strong",{children:"channel"})," override."]}),z?c.jsx("div",{className:"info-banner",role:"status","data-testid":"claude-saved-notice",children:z}):null,f?c.jsxs("form",{className:"inline-form",onSubmit:V,"aria-label":"Set Claude token","aria-busy":S,"data-testid":"set-claude-token-form",children:[C?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"set-claude-token-error",children:C}):null,c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"claude-token",children:"Token"}),c.jsx("input",{id:"claude-token",type:"password",value:d,placeholder:"paste the output of `claude setup-token`",autoComplete:"off",autoCapitalize:"off",spellCheck:!1,onChange:P=>m(P.target.value)}),c.jsxs("p",{className:"field-hint",children:["Run ",c.jsx("code",{children:"claude setup-token"})," on a machine where you're signed in, then paste it here. Stored 0600 on disk (access-controlled, not encrypted). Write-only — never re-displayed."]})]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"claude-channel",children:"Channel (optional)"}),c.jsx("input",{id:"claude-channel",type:"text",value:p,placeholder:"leave blank for the default (operator) token",autoComplete:"off",autoCapitalize:"off",spellCheck:!1,onChange:P=>E(P.target.value)}),c.jsx("p",{className:"field-hint",children:"A channel name to override just that agent; blank sets the default token every agent falls back to."})]}),c.jsx("div",{className:"form-actions",children:c.jsx("button",{type:"submit",disabled:!ue,children:S?"Saving…":"Save token"})})]}):null,D?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"claude-row-error",children:D}):null,i.kind==="loading"?c.jsx("div",{className:"loading",children:"Loading Claude auth…"}):null,i.kind==="error"?c.jsxs("div",{className:"error-banner",role:"alert","data-testid":"claude-auth-load-error",children:[i.message," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>void Z(),children:"Retry"})]}):null,i.kind==="ok"?c.jsxs(c.Fragment,{children:[i.status.defaultSet?null:c.jsx("div",{className:"empty","data-testid":"claude-default-empty",children:"No default Claude token set — programmatic agents can't run turns until one is set (or a per-channel override covers them)."}),i.status.channels.length>0?c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Channel override"}),c.jsx("th",{children:"Token"}),c.jsx("th",{})]})}),c.jsx("tbody",{children:i.status.channels.map(P=>c.jsxs("tr",{"data-testid":`claude-override-${P}`,children:[c.jsx("td",{className:"cell-name",children:P}),c.jsx("td",{className:"cell-dim",children:"••••••••"}),c.jsx("td",{children:Y===P?c.jsxs("span",{className:"confirm-inline",children:[c.jsx("button",{type:"button",className:"button-danger","data-testid":`claude-override-remove-confirm-${P}`,disabled:X===P,onClick:()=>void I(P),children:X===P?"Removing…":"Confirm remove"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:()=>L(null),children:"Cancel"})]}):c.jsx("button",{type:"button",className:"button-danger","data-testid":`claude-override-remove-${P}`,onClick:()=>{G(null),L(P)},children:"Remove"})})]},P))})]}):null]}):null]})}function P0({vaults:i,onChanged:o}){const[f,s]=y.useState(!1),[d,m]=y.useState(""),[p,E]=y.useState(""),[S,v]=y.useState(!1),[C,j]=y.useState(null),[z,k]=y.useState(null),[Y,L]=y.useState(null),[X,M]=y.useState(null),[D,G]=y.useState(null),[Z,$]=y.useState([]),[ue,V]=y.useState(!1),[I,P]=y.useState(null),[Re,le]=y.useState(null),xe=y.useCallback(async()=>{try{const Q=await Ph();$(Q),V(!0)}catch{V(!1)}},[]);y.useEffect(()=>{xe()},[xe]);const Ie=/^[a-zA-Z0-9_-]+$/.test(d),Ze=Ie&&!S;async function De(Q){if(Q.preventDefault(),!Ze)return;v(!0),j(null),k(null);const ne=d;try{await o0({vault:ne,...p.trim().length>0?{url:p.trim()}:{}}),m(""),E(""),s(!1),o();try{const{ok:oe}=await em(ne);k(oe?`Added "${ne}" — reactive reload is on (def changes apply instantly).`:`Added "${ne}" — reactive reload partially wired; defs still converge within 60s.`)}catch(oe){k(`Added "${ne}". Reactive reload couldn't be enabled (${at(oe)}) — def changes converge within 60s; you can enable it below.`)}await xe()}catch(oe){j(at(oe))}finally{v(!1)}}async function U(Q){M(Q),G(null);try{await f0(Q);try{const ne=await Ph().catch(()=>Z);await lm(Q,ne)}catch{}L(null),o(),await xe()}catch(ne){G(at(ne))}finally{M(null)}}async function K(Q,ne){P(Q),le(null);try{ne?await lm(Q,Z):await em(Q),await xe()}catch(oe){le(at(oe))}finally{P(null)}}return c.jsxs("section",{className:"card","aria-label":"Def-vaults",children:[c.jsxs("div",{className:"section-head",children:[c.jsx("h2",{children:"Def-vaults"}),c.jsxs("span",{className:"section-head-actions",children:[c.jsx("span",{className:"count",children:i.length}),c.jsx("button",{type:"button",className:"secondary","data-testid":"add-def-vault-toggle",onClick:()=>s(Q=>!Q),children:f?"Cancel":"Add def-vault"})]})]}),c.jsxs("p",{className:"muted",children:["Vaults this module reads ",c.jsx("code",{children:"#agent/definition"})," notes from. Removing one deregisters every agent defined in it. ",c.jsx("strong",{children:"Reactive reload"})," wires a vault trigger so def changes apply instantly instead of waiting up to 60s."]}),z?c.jsx("div",{className:"info-banner",role:"status","data-testid":"add-def-vault-notice",children:z}):null,Re?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"reactive-reload-error",children:Re}):null,f?c.jsxs("form",{className:"inline-form",onSubmit:De,"aria-label":"Add def-vault","data-testid":"add-def-vault-form",children:[C?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"add-def-vault-error",children:C}):null,c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"new-vault-name",children:"Vault name"}),c.jsx("input",{id:"new-vault-name",type:"text",value:d,placeholder:"research",autoComplete:"off",onChange:Q=>m(Q.target.value)}),d.length>0&&!Ie?c.jsx("p",{className:"field-error","data-testid":"new-vault-invalid",children:"Must be a slug — letters, numbers, dash, underscore only."}):null]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"new-vault-url",children:"Vault URL (optional)"}),c.jsx("input",{id:"new-vault-url",type:"text",value:p,placeholder:"http://127.0.0.1:1940",autoComplete:"off",onChange:Q=>E(Q.target.value)}),c.jsx("p",{className:"field-hint",children:"The vault REST origin. Defaults to the loopback vault."})]}),c.jsx("div",{className:"form-actions",children:c.jsx("button",{type:"submit",disabled:!Ze,children:S?"Adding…":"Add def-vault"})})]}):null,D?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"remove-def-vault-error",children:D}):null,i.length===0?c.jsx("div",{className:"empty","data-testid":"def-vaults-empty",children:"No def-vaults configured yet."}):c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Vault"}),c.jsx("th",{children:"URL"}),c.jsx("th",{children:"Token"}),c.jsx("th",{children:"Reactive reload"}),c.jsx("th",{})]})}),c.jsx("tbody",{children:i.map(Q=>{const ne=U0(Q.vault,Z);return c.jsxs("tr",{"data-testid":`def-vault-${Q.vault}`,children:[c.jsx("td",{className:"cell-name",children:Q.vault}),c.jsx("td",{className:"cell-dim",children:Q.url}),c.jsx("td",{children:Q.tokenPresent?c.jsx("span",{className:"pill status-enabled",children:"present"}):c.jsx("span",{className:"pill status-error",children:"missing"})}),c.jsx("td",{"data-testid":`reactive-reload-cell-${Q.vault}`,children:ue?c.jsxs("span",{className:"confirm-inline",children:[ne.active?c.jsx("span",{className:"pill status-enabled","data-testid":`reactive-on-${Q.vault}`,children:"on"}):c.jsx("span",{className:"pill","data-testid":`reactive-off-${Q.vault}`,children:"off"}),c.jsx("button",{type:"button",className:"cancel-link","data-testid":`reactive-toggle-${Q.vault}`,disabled:I===Q.vault,onClick:()=>void K(Q.vault,ne.active),children:I===Q.vault?"Working…":ne.active?"Disable":"Enable"})]}):c.jsx("span",{className:"cell-dim",title:"Open the agent app via your hub origin to manage reactive reload.",children:"—"})}),c.jsx("td",{children:Y===Q.vault?c.jsxs("span",{className:"confirm-inline",children:[c.jsx("button",{type:"button",className:"button-danger","data-testid":`remove-def-vault-confirm-${Q.vault}`,disabled:X===Q.vault,onClick:()=>void U(Q.vault),children:X===Q.vault?"Removing…":"Confirm remove"}),c.jsx("button",{type:"button",className:"cancel-link",onClick:()=>L(null),children:"Cancel"})]}):c.jsx("button",{type:"button",className:"button-danger","data-testid":`remove-def-vault-${Q.vault}`,onClick:()=>{G(null),L(Q.vault)},children:"Remove"})})]},Q.vault)})})]})]})}function at(i){return i instanceof et&&i.status===401?"Not signed in to the hub — sign in to the portal, then reload.":i.message}function eb(i){return{key:i.id,kind:i.direction==="outbound"?"them":"you",text:i.text}}function im(){const i=Ig(),o=jm(),[f,s]=y.useState(null),[d,m]=y.useState(null),[p,E]=y.useState(i.channel??null),[S,v]=y.useState([]),[C,j]=y.useState(null),[z,k]=y.useState({text:"",kind:""}),[Y,L]=y.useState(""),[X,M]=y.useState(!1),D=y.useRef(new Set),G=y.useRef(null),Z=y.useRef(null),$=y.useRef(!1),ue=y.useRef(0),V=y.useRef(null),I=y.useCallback(g=>{var O;return((O=f==null?void 0:f.find(H=>H.name===g))==null?void 0:O.transport)??""},[f]),P=y.useCallback(g=>I(g)==="vault",[I]),Re=y.useCallback(g=>{v(O=>[...O,{key:crypto.randomUUID(),kind:"sys",text:g}])},[]),le=y.useCallback(g=>{!g.id||D.current.has(g.id)||(D.current.add(g.id),v(O=>[...O,eb(g)]))},[]);y.useEffect(()=>{const g=V.current;g&&(g.scrollTop=g.scrollHeight)},[S,C]);const xe=y.useCallback(async g=>{var re,ge;const O=ue.current;(re=G.current)==null||re.close(),G.current=null,(ge=Z.current)==null||ge.close(),Z.current=null;const H=I(g),J=()=>{$.current=!1,k({text:`live - ${g}`,kind:"live"})},ae=()=>{var Ue,he;if(!$.current){$.current=!0,k({text:"re-authenticating...",kind:""}),(Ue=G.current)==null||Ue.close(),G.current=null,(he=Z.current)==null||he.close(),Z.current=null,Ti(),xe(g);return}k({text:"reconnecting...",kind:""})};if(H==="http-ui"){const Ue=await Zh();if(O!==ue.current)return;const he=new EventSource(R0(g,Ue));he.onopen=J,he.addEventListener("reply",ft=>{try{const tt=JSON.parse(ft.data);tt.id?le({id:tt.id,text:tt.text??"",direction:"outbound",sender:"session",ts:""}):v(Ja=>[...Ja,{key:crypto.randomUUID(),kind:"them",text:tt.text??""}])}catch{}}),he.addEventListener("edit",ft=>{try{const tt=JSON.parse(ft.data);Re(`(edited) ${tt.text??""}`)}catch{}}),he.addEventListener("permission",ft=>{try{const tt=JSON.parse(ft.data);Re(`permission: ${tt.tool_name??""}${tt.description?` - ${tt.description}`:""} (respond in the session terminal)`)}catch{}}),he.onerror=ae,G.current=he}if(P(g)){const Ue=await Zh();if(O!==ue.current)return;const he=new EventSource(z0(g,Ue));he.onopen=J,he.addEventListener("turn",ft=>{try{Ze(JSON.parse(ft.data),g)}catch{}}),he.onerror=ae,Z.current=he}},[le,Re,P,I]),Ie=y.useCallback(async g=>{try{(await Ih(g)).messages.forEach(le)}catch{}},[le]),Ze=y.useCallback((g,O)=>{switch(g.kind){case"init":j({text:"",tools:[]});return;case"text":j(H=>({text:((H==null?void 0:H.text)??"")+g.text,tools:(H==null?void 0:H.tools)??[],...H!=null&&H.error?{error:H.error}:{}}));return;case"tool":j(H=>{const J=(H==null?void 0:H.tools)??[];return{text:(H==null?void 0:H.text)??"",tools:J.includes(g.tool)?J:[...J,g.tool]}});return;case"done":j(null),Ie(O);return;case"error":j(H=>({text:(H==null?void 0:H.text)??"",tools:(H==null?void 0:H.tools)??[],error:g.error}));return}},[Ie]);y.useEffect(()=>{let g=!1;return(async()=>{try{const O=await T0();if(g)return;s(O.channels),E(H=>{var J;return H&&O.channels.some(ae=>ae.name===H)?H:((J=O.channels[0])==null?void 0:J.name)??null})}catch(O){g||m(ar(O))}})(),()=>{g=!0}},[]),y.useEffect(()=>{const g=p;if(!g){k({text:"no channel",kind:""});return}let O=!1;return ue.current+=1,D.current=new Set,$.current=!1,v([]),j(null),k({text:"loading history...",kind:""}),(async()=>{try{const H=await Ih(g);if(O)return;H.messages.forEach(le),k({text:`live - ${g}`,kind:"live"})}catch(H){if(O)return;k({text:`history error: ${ar(H)}`,kind:"err"})}O||await xe(g)})(),()=>{var H,J;O=!0,ue.current+=1,(H=G.current)==null||H.close(),G.current=null,(J=Z.current)==null||J.close(),Z.current=null}},[p]);function De(g){E(g),o(`/chat/${encodeURIComponent(g)}`,{replace:!0})}async function U(){const g=Y.trim(),O=p;if(!(!g||!O||X)){M(!0),v(H=>[...H,{key:crypto.randomUUID(),kind:"you",text:g}]),L("");try{const H=await A0(O,g);H.id&&D.current.add(H.id)}catch(H){Re(`send failed: ${ar(H)}`)}finally{M(!1)}}}function K(g){g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),U())}const Q=((f==null?void 0:f.length)??0)>0,ne=!!p&&Y.trim().length>0&&!X,oe=y.useMemo(()=>z.kind==="live"?"chat-status status-live":z.kind==="err"?"chat-status status-err":"chat-status",[z.kind]);return c.jsxs("div",{className:"chat","data-testid":"chat-view",children:[c.jsxs("div",{className:"chat-head",children:[c.jsx("h1",{children:"Chat"}),f&&Q?c.jsxs("label",{className:"chat-picker",children:[c.jsx("span",{className:"chat-picker-label",children:"Channel"}),c.jsx("select",{"data-testid":"chat-channel-select",value:p??"",onChange:g=>De(g.target.value),children:f.map(g=>c.jsxs("option",{value:g.name,children:[g.name," (",g.transport,")"]},g.name))})]}):null,z.text?c.jsx("span",{className:oe,"data-testid":"chat-status",children:z.text}):null]}),d?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"chat-channels-error",children:d}):null,f&&!Q&&!d?c.jsx("div",{className:"empty","data-testid":"chat-no-channels",children:"No channels yet. Create a channel-backed agent in the create flow, then chat with it here."}):null,Q?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"transcript",ref:V,"data-testid":"chat-transcript",children:[S.map(g=>c.jsx("div",{className:`msg ${g.kind}`,"data-testid":`chat-msg-${g.kind}`,children:g.text},g.key)),C?c.jsx(tb,{turn:C}):null]}),c.jsxs("form",{className:"composer","data-testid":"chat-composer",onSubmit:g=>{g.preventDefault(),U()},children:[c.jsx("textarea",{className:"chat-input","data-testid":"chat-input",rows:1,value:Y,placeholder:"Type a message... (Enter to send, Shift+Enter for newline)",autoComplete:"off",onChange:g=>L(g.target.value),onKeyDown:K}),c.jsx("button",{type:"submit","data-testid":"chat-send",disabled:!ne,children:X?"Sending...":"Send"})]})]}):null]})}function tb({turn:i}){return c.jsxs("div",{className:`msg them live${i.error?" errored":""}`,"data-testid":"chat-live-turn",children:[i.text?c.jsx("div",{className:"live-text",children:i.text}):null,i.tools.length>0?c.jsx("div",{className:"live-tools",children:i.tools.map(o=>c.jsx("span",{className:"tool-chip","data-testid":`chat-tool-${o}`,children:o},o))}):null,c.jsx("div",{className:"live-working","data-testid":"chat-live-status",children:i.error?`turn failed: ${i.error}`:"working..."})]})}function ar(i){return i instanceof et&&i.status===401?"Not signed in to the hub - sign in to the portal, then reload.":i.message}const lb=/^[a-zA-Z0-9_-]+$/;function ab({vaults:i}){var V;const o=i.length>0,[f,s]=y.useState(""),[d,m]=y.useState(((V=i[0])==null?void 0:V.vault)??""),[p,E]=y.useState("single-threaded"),[S,v]=y.useState("programmatic"),[C,j]=y.useState(""),[z,k]=y.useState(""),[Y,L]=y.useState(""),[X,M]=y.useState(!1),[D,G]=y.useState({kind:"idle"}),Z=lb.test(f),$=o&&Z&&d.length>0&&D.kind!=="submitting";async function ue(I){if(I.preventDefault(),!!$){G({kind:"submitting"});try{const P=await c0({vault:d,name:f,backend:S,systemPrompt:z,metadata:{mode:p,...C?{model:C}:{}},...Y.trim().length>0?{wants:Y.trim()}:{}});G({kind:"ok",result:P,mode:p})}catch(P){const Re=P instanceof et&&P.status===401?"Not signed in to the hub — sign in to the portal, then reload.":P.message;G({kind:"error",message:Re})}}}return D.kind==="ok"?c.jsx(ub,{result:D.result,mode:D.mode}):c.jsxs("div",{children:[c.jsx("h1",{children:"New agent"}),c.jsxs("p",{className:"lede",children:["A ",c.jsx("code",{children:"#agent/definition"})," note IS the agent — writing it instantiates the agent and its channel routing in one step. The def-vault editor, schedules, and editing land in a later phase."]}),o?null:c.jsxs("div",{className:"error-banner",role:"alert","data-testid":"no-def-vaults",children:["No def-vault is configured, and one is required to create an agent. The add / remove def-vault editor arrives in a later phase; until then, configure a def-vault out-of-band. Submitting anyway will return the daemon's"," ",c.jsx("code",{children:"no def-vaults configured"})," error."]}),D.kind==="error"?c.jsx("div",{className:"error-banner",role:"alert","data-testid":"create-error",children:D.message}):null,c.jsxs("form",{className:"card",onSubmit:ue,"aria-label":"Create agent",children:[c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"agent-name",children:"Name"}),c.jsx("input",{id:"agent-name",type:"text",value:f,placeholder:"my-agent",autoComplete:"off",onChange:I=>s(I.target.value)}),c.jsx("p",{className:"field-hint",children:"A slug (letters, numbers, dash, underscore). This is also the agent's channel."}),f.length>0&&!Z?c.jsx("p",{className:"field-error","data-testid":"name-invalid",children:"Must be a slug — letters, numbers, dash, underscore only."}):null]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"agent-vault",children:"Def-vault"}),c.jsx("select",{id:"agent-vault",value:d,disabled:!o,onChange:I=>m(I.target.value),children:o?i.map(I=>c.jsxs("option",{value:I.vault,children:[I.vault,I.tokenPresent?"":" (token missing)"]},I.vault)):c.jsx("option",{value:"",children:"No def-vaults configured"})}),c.jsx("p",{className:"field-hint",children:"The vault this agent's definition note is written to."})]}),c.jsxs("fieldset",{className:"field",children:[c.jsx("legend",{children:"Mode"}),c.jsx(yi,{name:"mode",value:"single-threaded",checked:p==="single-threaded",onChange:()=>E("single-threaded"),label:"Single-threaded",help:"One continuous conversation — remembers everything on this channel.",testid:"mode-single-threaded"}),c.jsx(yi,{name:"mode",value:"multi-threaded",checked:p==="multi-threaded",onChange:()=>E("multi-threaded"),label:"Multi-threaded",help:"Each run is its own thread; today every run starts fresh (per-conversation continuation is coming) — good for scheduled or stateless tasks.",testid:"mode-multi-threaded"})]}),c.jsxs("fieldset",{className:"field",children:[c.jsx("legend",{children:"Backend"}),c.jsx(yi,{name:"backend",value:"programmatic",checked:S==="programmatic",onChange:()=>v("programmatic"),label:"Programmatic",help:"Parachute runs it headless — always on, sandboxed.",testid:"backend-programmatic"}),c.jsx(yi,{name:"backend",value:"channel",checked:S==="channel",onChange:()=>v("channel"),label:"Channel",help:"You run a Claude Code session on your own machine and connect it — your env, unsandboxed.",testid:"backend-channel"})]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"agent-model",children:"Model"}),c.jsx("select",{id:"agent-model",value:C,"data-testid":"agent-model",onChange:I=>j(I.target.value),children:Cr.map(I=>c.jsx("option",{value:I.value,children:I.label},I.value))}),c.jsx("p",{className:"field-hint",children:"Which model Parachute runs this agent on (programmatic backend). A channel-backend agent uses whatever model your own session runs."})]}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"agent-prompt",children:"System prompt"}),c.jsx("textarea",{id:"agent-prompt",rows:6,value:z,placeholder:"You are…",onChange:I=>k(I.target.value)}),c.jsx("p",{className:"field-hint",children:"The agent's persona + instructions (the note body). Leave blank for Claude Code's default."})]}),c.jsxs("details",{className:"advanced",open:X,onToggle:I=>M(I.target.open),children:[c.jsx("summary",{children:"Advanced"}),c.jsxs("div",{className:"field",children:[c.jsx("label",{htmlFor:"agent-wants",children:"Wants (connections)"}),c.jsx("input",{id:"agent-wants",type:"text",value:Y,placeholder:"vault:other, service:github",autoComplete:"off",onChange:I=>L(I.target.value)}),c.jsx("p",{className:"field-hint",children:"Comma-separated connection keys the agent requests beyond its own vault. Each needs approval before it's granted."})]})]}),c.jsxs("div",{className:"form-actions",children:[c.jsx("button",{type:"submit",disabled:!$,children:D.kind==="submitting"?"Creating…":"Create agent"}),c.jsx(fl,{to:"/",className:"cancel-link",children:"Cancel"})]})]})]})}function nb(){const[i,o]=y.useState({kind:"loading"}),f=y.useCallback(async()=>{o({kind:"loading"});try{const s=await zm();o({kind:"ok",vaults:s.vaults})}catch(s){const d=s instanceof et?s.status===401?"Not signed in to the hub — sign in to the portal, then reload.":`Failed to load def-vaults: ${s.message}`:`Failed to load def-vaults: ${s.message}`;o({kind:"error",message:d})}},[]);return y.useEffect(()=>{f()},[f]),i.kind==="loading"?c.jsx("div",{className:"loading",children:"Loading…"}):i.kind==="error"?c.jsxs("div",{className:"error-banner",role:"alert",children:[i.message," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>void f(),children:"Retry"})]}):c.jsx(ab,{vaults:i.vaults},i.vaults.map(s=>s.vault).join(","))}function yi(i){return c.jsxs("label",{className:`radio-row${i.checked?" selected":""}`,"data-testid":i.testid,children:[c.jsx("input",{type:"radio",name:i.name,value:i.value,checked:i.checked,onChange:i.onChange}),c.jsxs("span",{className:"radio-body",children:[c.jsx("span",{className:"radio-label",children:i.label}),c.jsx("span",{className:"radio-help",children:i.help})]})]})}function ub({result:i,mode:o}){const f=i.def;return c.jsxs("div",{"data-testid":"create-success",children:[c.jsx("h1",{children:"Agent created"}),c.jsxs("div",{className:"success-banner",role:"status",children:[c.jsx("strong",{children:f.name})," · ",o," · ",f.backend]}),c.jsxs("p",{className:"lede",children:["The definition was written to ",c.jsx("code",{children:f.vault})," and instantiated. It now appears in the ",c.jsx(fl,{to:"/",children:"Agents list"}),"."]}),f.backend==="channel"?c.jsx(ib,{name:f.name}):null,c.jsx("p",{children:c.jsx(fl,{to:"/",children:"← Back to agents"})})]})}function ib({name:i}){const[o,f]=y.useState(!1),s=typeof window<"u"?window.location.origin:"",d=y.useMemo(()=>C0(i,s),[i,s]);async function m(){var p;try{await((p=navigator.clipboard)==null?void 0:p.writeText(d)),f(!0),setTimeout(()=>f(!1),2e3)}catch{}}return c.jsxs("section",{className:"card","aria-label":"Connect a session","data-testid":"connect-session",children:[c.jsx("h2",{children:"Connect your Claude Code session"}),c.jsx("p",{className:"muted",children:"Run this on your own machine to make a Claude Code session a responder for this channel:"}),c.jsxs("div",{className:"snippet-row",children:[c.jsx("code",{className:"snippet","data-testid":"connect-command",children:d}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>void m(),children:o?"Copied":"Copy"})]}),c.jsx("p",{className:"field-hint",children:"Your Claude Code session pulls messages from this channel; until you connect, inbound messages queue durably in the vault."})]})}const Mm=y.createContext(null);function cb(){const i=y.useContext(Mm);if(!i)throw new Error("useStepUp must be used inside <StepUpProvider>");return i}function sb({children:i}){const[o,f]=y.useState(null);y.useEffect(()=>(Fh(m=>new Promise(p=>{f({mode:m==="setup"?"setup":"prompt",resolve:p})})),()=>Fh(null)),[]);const s=y.useCallback(m=>{f(p=>{var E;return(E=p==null?void 0:p.resolve)==null||E.call(p,m),null})},[]),d=y.useMemo(()=>({openSettings:()=>f({mode:"settings",resolve:null})}),[]);return c.jsxs(Mm.Provider,{value:d,children:[i,o&&c.jsx(rb,{state:o,onClose:s})]})}function rb({state:i,onClose:o}){const{mode:f}=i,[s,d]=y.useState(""),[m,p]=y.useState(""),[E,S]=y.useState(""),[v,C]=y.useState(""),[j,z]=y.useState(!1),[k,Y]=y.useState(null),[L,X]=y.useState(f==="settings"?null:f!=="setup"),M=y.useRef(null);y.useEffect(()=>{var V;(V=M.current)==null||V.focus()},[]),y.useEffect(()=>{if(f!=="settings")return;let V=!0;return e0().then(I=>V&&X(I.configured)).catch(()=>V&&X(!1)),()=>{V=!1}},[f]);const D=y.useCallback(V=>{V.key==="Escape"&&o(null)},[o]);function G(V){return V instanceof et?V.status===401?"Incorrect PIN.":V.status===429?"Too many attempts — wait a minute and try again.":V.status===400?"PIN must be 4–12 digits.":V.message||"Something went wrong.":V instanceof Error?V.message:"Something went wrong."}async function Z(){Y(null),z(!0);try{const V=await $h(s);o(V)}catch(V){Y(G(V)),z(!1)}}async function $(){if(Y(null),m!==E){Y("The PINs don't match.");return}z(!0);try{await Wh(m);const V=await $h(m);o(V)}catch(V){Y(G(V)),z(!1)}}async function ue(){if(Y(null),m!==E){Y("The PINs don't match.");return}z(!0);try{await Wh(m,L?v:void 0),o(null)}catch(V){Y(G(V)),z(!1)}}return c.jsx("div",{className:"step-up-backdrop",role:"presentation",onClick:()=>o(null),children:c.jsxs("div",{className:"step-up-modal",role:"dialog","aria-modal":"true","aria-label":"Step-up PIN",onClick:V=>V.stopPropagation(),onKeyDown:D,children:[f==="prompt"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{children:"Confirm with your PIN"}),c.jsx("p",{className:"step-up-sub",children:"This is a high-privilege action. Enter your step-up PIN to continue."}),c.jsx(Xa,{label:"PIN",value:s,onChange:d,inputRef:M})]}),f==="setup"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{children:"Set a step-up PIN"}),c.jsx("p",{className:"step-up-sub",children:"High-privilege actions (set credentials, open a terminal, spawn a full-filesystem agent) require a PIN. Set one now to continue."}),c.jsx(Xa,{label:"New PIN (4–12 digits)",value:m,onChange:p,inputRef:M}),c.jsx(Xa,{label:"Confirm PIN",value:E,onChange:S})]}),f==="settings"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{children:L?"Change step-up PIN":"Set step-up PIN"}),c.jsx("p",{className:"step-up-sub",children:"The step-up PIN gates high-privilege admin actions (set credentials, open a terminal, spawn a full-filesystem agent) as a second factor on top of your login."}),L&&c.jsx(Xa,{label:"Current PIN",value:v,onChange:C,inputRef:M}),c.jsx(Xa,{label:"New PIN (4–12 digits)",value:m,onChange:p,inputRef:L?void 0:M}),c.jsx(Xa,{label:"Confirm PIN",value:E,onChange:S})]}),k&&c.jsx("p",{className:"step-up-error",role:"alert",children:k}),c.jsxs("div",{className:"step-up-actions",children:[c.jsx("button",{type:"button",className:"secondary",onClick:()=>o(null),disabled:j,children:"Cancel"}),c.jsx("button",{type:"button",onClick:f==="prompt"?Z:f==="setup"?$:ue,disabled:j||f==="settings"&&L===null,children:j?"Working…":f==="prompt"?"Confirm":"Save PIN"})]})]})})}function Xa({label:i,value:o,onChange:f,inputRef:s}){return c.jsxs("label",{className:"step-up-field",children:[c.jsx("span",{children:i}),c.jsx("input",{ref:s,type:"password",inputMode:"numeric",autoComplete:"off",value:o,onChange:d=>f(d.target.value.replace(/[^0-9]/g,"").slice(0,12))})]})}const ob="Parachute Agent";function fb(i){return i==="/create"||i.startsWith("/create/")?"new agent":i==="/chat"||i.startsWith("/chat/")?"chat":"agents"}function db(){return c.jsx(sb,{children:c.jsx(hb,{})})}function hb(){const{pathname:i}=Bt(),o=fb(i),{openSettings:f}=cb();return c.jsxs("div",{className:"page",children:[c.jsxs("nav",{className:"nav",children:[c.jsxs(fl,{to:"/",className:"brand",children:[c.jsx("span",{className:"brand-wordmark",children:ob}),c.jsx("span",{className:"sub",children:o})]}),c.jsx(nr,{to:"/",label:"Agents",exact:!0}),c.jsx(nr,{to:"/create",label:"New agent"}),c.jsx(nr,{to:"/chat",label:"Chat"}),c.jsx("button",{type:"button",className:"nav-link nav-link-button",onClick:f,title:"Set or change the step-up PIN that gates high-privilege actions",children:"Step-up PIN"})]}),c.jsxs(hp,{children:[c.jsx(na,{path:"/",element:c.jsx(am,{})}),c.jsx(na,{path:"/agents",element:c.jsx(am,{})}),c.jsx(na,{path:"/create",element:c.jsx(nb,{})}),c.jsx(na,{path:"/chat",element:c.jsx(im,{})}),c.jsx(na,{path:"/chat/:channel",element:c.jsx(im,{})}),c.jsx(na,{path:"*",element:c.jsxs("div",{className:"empty",children:["404 — back to ",c.jsx(fl,{to:"/",children:"Agents"}),"."]})})]})]})}function nr({to:i,label:o,exact:f}){const{pathname:s}=Bt(),d=f?s===i||s==="/agents":s===i||s.startsWith(`${i}/`);return c.jsx(fl,{to:i,className:d?"nav-link nav-link-active":"nav-link","aria-current":d?"page":void 0,children:o})}function mb(i){return i==="/agent/app"||i.startsWith("/agent/app/")?"/agent/app":i==="/app"||i.startsWith("/app/")?"/app":""}const Um=document.getElementById("root");if(!Um)throw new Error("#root not found");hg.createRoot(Um).render(c.jsx(y.StrictMode,{children:c.jsx(Bp,{basename:mb(window.location.pathname),children:c.jsx(db,{})})}));
|