zugzbot 1.0.13 → 1.0.14
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/.utils/zugzweb/client/dist/assets/index-B8li_PQD.js +291 -0
- package/.utils/zugzweb/client/dist/assets/index-S6XzvY4z.css +1 -0
- package/.utils/zugzweb/client/dist/index.html +2 -2
- package/.utils/zugzweb/client/src/App.tsx +597 -46
- package/.utils/zugzweb/daemon.js +57 -3
- package/.utils/zugzweb/daemon.log +5 -0
- package/bin/web.js +20 -0
- package/package.json +48 -3
- package/.utils/zugzweb/client/dist/assets/index-CcbbJtSz.css +0 -1
- package/.utils/zugzweb/client/dist/assets/index-DXxAlmSX.js +0 -266
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
var d0=Object.defineProperty;var h0=(d,c,r)=>c in d?d0(d,c,{enumerable:!0,configurable:!0,writable:!0,value:r}):d[c]=r;var Ee=(d,c,r)=>h0(d,typeof c!="symbol"?c+"":c,r);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))s(h);new MutationObserver(h=>{for(const b of h)if(b.type==="childList")for(const A of b.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&s(A)}).observe(document,{childList:!0,subtree:!0});function r(h){const b={};return h.integrity&&(b.integrity=h.integrity),h.referrerPolicy&&(b.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?b.credentials="include":h.crossOrigin==="anonymous"?b.credentials="omit":b.credentials="same-origin",b}function s(h){if(h.ep)return;h.ep=!0;const b=r(h);fetch(h.href,b)}})();var Sr={exports:{}},Mi={};/**
|
|
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 Ah;function p0(){if(Ah)return Mi;Ah=1;var d=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(s,h,b){var A=null;if(b!==void 0&&(A=""+b),h.key!==void 0&&(A=""+h.key),"key"in h){b={};for(var w in h)w!=="key"&&(b[w]=h[w])}else b=h;return h=b.ref,{$$typeof:d,type:s,key:A,ref:h!==void 0?h:null,props:b}}return Mi.Fragment=c,Mi.jsx=r,Mi.jsxs=r,Mi}var _h;function m0(){return _h||(_h=1,Sr.exports=p0()),Sr.exports}var f=m0(),zr={exports:{}},P={};/**
|
|
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 kh;function g0(){if(kh)return P;kh=1;var d=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),A=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),H=Symbol.iterator;function le(x){return x===null||typeof x!="object"?null:(x=H&&x[H]||x["@@iterator"],typeof x=="function"?x:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},he=Object.assign,ce={};function Qe(x,C,Y){this.props=x,this.context=C,this.refs=ce,this.updater=Y||B}Qe.prototype.isReactComponent={},Qe.prototype.setState=function(x,C){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,C,"setState")},Qe.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function Pe(){}Pe.prototype=Qe.prototype;function ke(x,C,Y){this.props=x,this.context=C,this.refs=ce,this.updater=Y||B}var I=ke.prototype=new Pe;I.constructor=ke,he(I,Qe.prototype),I.isPureReactComponent=!0;var Ce=Array.isArray;function Ue(){}var ne={H:null,A:null,T:null,S:null},ct=Object.prototype.hasOwnProperty;function ot(x,C,Y){var Q=Y.ref;return{$$typeof:d,type:x,key:C,ref:Q!==void 0?Q:null,props:Y}}function wl(x,C){return ot(x.type,C,x.props)}function Ze(x){return typeof x=="object"&&x!==null&&x.$$typeof===d}function Xe(x){var C={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(Y){return C[Y]})}var Gt=/\/+/g;function st(x,C){return typeof x=="object"&&x!==null&&x.key!=null?Xe(""+x.key):C.toString(36)}function Me(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(Ue,Ue):(x.status="pending",x.then(function(C){x.status==="pending"&&(x.status="fulfilled",x.value=C)},function(C){x.status==="pending"&&(x.status="rejected",x.reason=C)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function _(x,C,Y,Q,W){var ae=typeof x;(ae==="undefined"||ae==="boolean")&&(x=null);var fe=!1;if(x===null)fe=!0;else switch(ae){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(x.$$typeof){case d:case c:fe=!0;break;case k:return fe=x._init,_(fe(x._payload),C,Y,Q,W)}}if(fe)return W=W(x),fe=Q===""?"."+st(x,0):Q,Ce(W)?(Y="",fe!=null&&(Y=fe.replace(Gt,"$&/")+"/"),_(W,C,Y,"",function(Ol){return Ol})):W!=null&&(Ze(W)&&(W=wl(W,Y+(W.key==null||x&&x.key===W.key?"":(""+W.key).replace(Gt,"$&/")+"/")+fe)),C.push(W)),1;fe=0;var et=Q===""?".":Q+":";if(Ce(x))for(var Re=0;Re<x.length;Re++)Q=x[Re],ae=et+st(Q,Re),fe+=_(Q,C,Y,ae,W);else if(Re=le(x),typeof Re=="function")for(x=Re.call(x),Re=0;!(Q=x.next()).done;)Q=Q.value,ae=et+st(Q,Re++),fe+=_(Q,C,Y,ae,W);else if(ae==="object"){if(typeof x.then=="function")return _(Me(x),C,Y,Q,W);throw C=String(x),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return fe}function L(x,C,Y){if(x==null)return x;var Q=[],W=0;return _(x,Q,"","",function(ae){return C.call(Y,ae,W++)}),Q}function K(x){if(x._status===-1){var C=x._result;C=C(),C.then(function(Y){(x._status===0||x._status===-1)&&(x._status=1,x._result=Y)},function(Y){(x._status===0||x._status===-1)&&(x._status=2,x._result=Y)}),x._status===-1&&(x._status=0,x._result=C)}if(x._status===1)return x._result.default;throw x._result}var ye=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},xe={map:L,forEach:function(x,C,Y){L(x,function(){C.apply(this,arguments)},Y)},count:function(x){var C=0;return L(x,function(){C++}),C},toArray:function(x){return L(x,function(C){return C})||[]},only:function(x){if(!Ze(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return P.Activity=R,P.Children=xe,P.Component=Qe,P.Fragment=r,P.Profiler=h,P.PureComponent=ke,P.StrictMode=s,P.Suspense=g,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,P.__COMPILER_RUNTIME={__proto__:null,c:function(x){return ne.H.useMemoCache(x)}},P.cache=function(x){return function(){return x.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(x,C,Y){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Q=he({},x.props),W=x.key;if(C!=null)for(ae in C.key!==void 0&&(W=""+C.key),C)!ct.call(C,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&C.ref===void 0||(Q[ae]=C[ae]);var ae=arguments.length-2;if(ae===1)Q.children=Y;else if(1<ae){for(var fe=Array(ae),et=0;et<ae;et++)fe[et]=arguments[et+2];Q.children=fe}return ot(x.type,W,Q)},P.createContext=function(x){return x={$$typeof:A,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:b,_context:x},x},P.createElement=function(x,C,Y){var Q,W={},ae=null;if(C!=null)for(Q in C.key!==void 0&&(ae=""+C.key),C)ct.call(C,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(W[Q]=C[Q]);var fe=arguments.length-2;if(fe===1)W.children=Y;else if(1<fe){for(var et=Array(fe),Re=0;Re<fe;Re++)et[Re]=arguments[Re+2];W.children=et}if(x&&x.defaultProps)for(Q in fe=x.defaultProps,fe)W[Q]===void 0&&(W[Q]=fe[Q]);return ot(x,ae,W)},P.createRef=function(){return{current:null}},P.forwardRef=function(x){return{$$typeof:w,render:x}},P.isValidElement=Ze,P.lazy=function(x){return{$$typeof:k,_payload:{_status:-1,_result:x},_init:K}},P.memo=function(x,C){return{$$typeof:v,type:x,compare:C===void 0?null:C}},P.startTransition=function(x){var C=ne.T,Y={};ne.T=Y;try{var Q=x(),W=ne.S;W!==null&&W(Y,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(Ue,ye)}catch(ae){ye(ae)}finally{C!==null&&Y.types!==null&&(C.types=Y.types),ne.T=C}},P.unstable_useCacheRefresh=function(){return ne.H.useCacheRefresh()},P.use=function(x){return ne.H.use(x)},P.useActionState=function(x,C,Y){return ne.H.useActionState(x,C,Y)},P.useCallback=function(x,C){return ne.H.useCallback(x,C)},P.useContext=function(x){return ne.H.useContext(x)},P.useDebugValue=function(){},P.useDeferredValue=function(x,C){return ne.H.useDeferredValue(x,C)},P.useEffect=function(x,C){return ne.H.useEffect(x,C)},P.useEffectEvent=function(x){return ne.H.useEffectEvent(x)},P.useId=function(){return ne.H.useId()},P.useImperativeHandle=function(x,C,Y){return ne.H.useImperativeHandle(x,C,Y)},P.useInsertionEffect=function(x,C){return ne.H.useInsertionEffect(x,C)},P.useLayoutEffect=function(x,C){return ne.H.useLayoutEffect(x,C)},P.useMemo=function(x,C){return ne.H.useMemo(x,C)},P.useOptimistic=function(x,C){return ne.H.useOptimistic(x,C)},P.useReducer=function(x,C,Y){return ne.H.useReducer(x,C,Y)},P.useRef=function(x){return ne.H.useRef(x)},P.useState=function(x){return ne.H.useState(x)},P.useSyncExternalStore=function(x,C,Y){return ne.H.useSyncExternalStore(x,C,Y)},P.useTransition=function(){return ne.H.useTransition()},P.version="19.2.7",P}var wh;function Hr(){return wh||(wh=1,zr.exports=g0()),zr.exports}var X=Hr(),jr={exports:{}},Di={},Nr={exports:{}},Tr={};/**
|
|
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 Oh;function y0(){return Oh||(Oh=1,(function(d){function c(_,L){var K=_.length;_.push(L);e:for(;0<K;){var ye=K-1>>>1,xe=_[ye];if(0<h(xe,L))_[ye]=L,_[K]=xe,K=ye;else break e}}function r(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var L=_[0],K=_.pop();if(K!==L){_[0]=K;e:for(var ye=0,xe=_.length,x=xe>>>1;ye<x;){var C=2*(ye+1)-1,Y=_[C],Q=C+1,W=_[Q];if(0>h(Y,K))Q<xe&&0>h(W,Y)?(_[ye]=W,_[Q]=K,ye=Q):(_[ye]=Y,_[C]=K,ye=C);else if(Q<xe&&0>h(W,K))_[ye]=W,_[Q]=K,ye=Q;else break e}}return L}function h(_,L){var K=_.sortIndex-L.sortIndex;return K!==0?K:_.id-L.id}if(d.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var b=performance;d.unstable_now=function(){return b.now()}}else{var A=Date,w=A.now();d.unstable_now=function(){return A.now()-w}}var g=[],v=[],k=1,R=null,H=3,le=!1,B=!1,he=!1,ce=!1,Qe=typeof setTimeout=="function"?setTimeout:null,Pe=typeof clearTimeout=="function"?clearTimeout:null,ke=typeof setImmediate<"u"?setImmediate:null;function I(_){for(var L=r(v);L!==null;){if(L.callback===null)s(v);else if(L.startTime<=_)s(v),L.sortIndex=L.expirationTime,c(g,L);else break;L=r(v)}}function Ce(_){if(he=!1,I(_),!B)if(r(g)!==null)B=!0,Ue||(Ue=!0,Xe());else{var L=r(v);L!==null&&Me(Ce,L.startTime-_)}}var Ue=!1,ne=-1,ct=5,ot=-1;function wl(){return ce?!0:!(d.unstable_now()-ot<ct)}function Ze(){if(ce=!1,Ue){var _=d.unstable_now();ot=_;var L=!0;try{e:{B=!1,he&&(he=!1,Pe(ne),ne=-1),le=!0;var K=H;try{t:{for(I(_),R=r(g);R!==null&&!(R.expirationTime>_&&wl());){var ye=R.callback;if(typeof ye=="function"){R.callback=null,H=R.priorityLevel;var xe=ye(R.expirationTime<=_);if(_=d.unstable_now(),typeof xe=="function"){R.callback=xe,I(_),L=!0;break t}R===r(g)&&s(g),I(_)}else s(g);R=r(g)}if(R!==null)L=!0;else{var x=r(v);x!==null&&Me(Ce,x.startTime-_),L=!1}}break e}finally{R=null,H=K,le=!1}L=void 0}}finally{L?Xe():Ue=!1}}}var Xe;if(typeof ke=="function")Xe=function(){ke(Ze)};else if(typeof MessageChannel<"u"){var Gt=new MessageChannel,st=Gt.port2;Gt.port1.onmessage=Ze,Xe=function(){st.postMessage(null)}}else Xe=function(){Qe(Ze,0)};function Me(_,L){ne=Qe(function(){_(d.unstable_now())},L)}d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(_){_.callback=null},d.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ct=0<_?Math.floor(1e3/_):5},d.unstable_getCurrentPriorityLevel=function(){return H},d.unstable_next=function(_){switch(H){case 1:case 2:case 3:var L=3;break;default:L=H}var K=H;H=L;try{return _()}finally{H=K}},d.unstable_requestPaint=function(){ce=!0},d.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var K=H;H=_;try{return L()}finally{H=K}},d.unstable_scheduleCallback=function(_,L,K){var ye=d.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ye+K:ye):K=ye,_){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=K+xe,_={id:k++,callback:L,priorityLevel:_,startTime:K,expirationTime:xe,sortIndex:-1},K>ye?(_.sortIndex=K,c(v,_),r(g)===null&&_===r(v)&&(he?(Pe(ne),ne=-1):he=!0,Me(Ce,K-ye))):(_.sortIndex=xe,c(g,_),B||le||(B=!0,Ue||(Ue=!0,Xe()))),_},d.unstable_shouldYield=wl,d.unstable_wrapCallback=function(_){var L=H;return function(){var K=H;H=L;try{return _.apply(this,arguments)}finally{H=K}}}})(Tr)),Tr}var Mh;function x0(){return Mh||(Mh=1,Nr.exports=y0()),Nr.exports}var Er={exports:{}},rt={};/**
|
|
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 Dh;function b0(){if(Dh)return rt;Dh=1;var d=Hr();function c(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)v+="&args[]="+encodeURIComponent(arguments[k])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},h=Symbol.for("react.portal");function b(g,v,k){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:R==null?null:""+R,children:g,containerInfo:v,implementation:k}}var A=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function w(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,rt.createPortal=function(g,v){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(c(299));return b(g,v,null,k)},rt.flushSync=function(g){var v=A.T,k=s.p;try{if(A.T=null,s.p=2,g)return g()}finally{A.T=v,s.p=k,s.d.f()}},rt.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,s.d.C(g,v))},rt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},rt.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var k=v.as,R=w(k,v.crossOrigin),H=typeof v.integrity=="string"?v.integrity:void 0,le=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;k==="style"?s.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:R,integrity:H,fetchPriority:le}):k==="script"&&s.d.X(g,{crossOrigin:R,integrity:H,fetchPriority:le,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},rt.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var k=w(v.as,v.crossOrigin);s.d.M(g,{crossOrigin:k,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&s.d.M(g)},rt.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var k=v.as,R=w(k,v.crossOrigin);s.d.L(g,k,{crossOrigin:R,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})}},rt.preloadModule=function(g,v){if(typeof g=="string")if(v){var k=w(v.as,v.crossOrigin);s.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:k,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else s.d.m(g)},rt.requestFormReset=function(g){s.d.r(g)},rt.unstable_batchedUpdates=function(g,v){return g(v)},rt.useFormState=function(g,v,k){return A.H.useFormState(g,v,k)},rt.useFormStatus=function(){return A.H.useHostTransitionStatus()},rt.version="19.2.7",rt}var Ch;function v0(){if(Ch)return Er.exports;Ch=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(c){console.error(c)}}return d(),Er.exports=b0(),Er.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 Rh;function S0(){if(Rh)return Di;Rh=1;var d=x0(),c=Hr(),r=v0();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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function b(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 A(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 w(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(b(e)!==e)throw Error(s(188))}function v(e){var t=e.alternate;if(!t){if(t=b(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 i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return g(n),e;if(i===a)return g(n),t;i=i.sibling}throw Error(s(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,o=n.child;o;){if(o===l){u=!0,l=n,a=i;break}if(o===a){u=!0,a=n,l=i;break}o=o.sibling}if(!u){for(o=i.child;o;){if(o===l){u=!0,l=i,a=n;break}if(o===a){u=!0,a=i,l=n;break}o=o.sibling}if(!u)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 k(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=k(e),t!==null)return t;e=e.sibling}return null}var R=Object.assign,H=Symbol.for("react.element"),le=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),Qe=Symbol.for("react.profiler"),Pe=Symbol.for("react.consumer"),ke=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ct=Symbol.for("react.lazy"),ot=Symbol.for("react.activity"),wl=Symbol.for("react.memo_cache_sentinel"),Ze=Symbol.iterator;function Xe(e){return e===null||typeof e!="object"?null:(e=Ze&&e[Ze]||e["@@iterator"],typeof e=="function"?e:null)}var Gt=Symbol.for("react.client.reference");function st(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Gt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case Qe:return"Profiler";case ce:return"StrictMode";case Ce:return"Suspense";case Ue:return"SuspenseList";case ot:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case ke:return e.displayName||"Context";case Pe:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:st(e.type)||"Memo";case ct:t=e._payload,e=e._init;try{return st(e(t))}catch{}}return null}var Me=Array.isArray,_=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ye=[],xe=-1;function x(e){return{current:e}}function C(e){0>xe||(e.current=ye[xe],ye[xe]=null,xe--)}function Y(e,t){xe++,ye[xe]=e.current,e.current=t}var Q=x(null),W=x(null),ae=x(null),fe=x(null);function et(e,t){switch(Y(ae,t),Y(W,e),Y(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Fd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}C(Q),Y(Q,e)}function Re(){C(Q),C(W),C(ae)}function Ol(e){e.memoizedState!==null&&Y(fe,e);var t=Q.current,l=Fd(t,e.type);t!==l&&(Y(W,e),Y(Q,l))}function Ba(e){W.current===e&&(C(Q),C(W)),fe.current===e&&(C(fe),_i._currentValue=K)}var Ya,Ga;function Ft(e){if(Ya===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ya=t&&t[1]||"",Ga=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ya+e+Ga}var sa=!1;function Rn(e,t){if(!e||sa)return"";sa=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(E){var N=E}Reflect.construct(e,[],D)}else{try{D.call()}catch(E){N=E}e.call(D.prototype)}}else{try{throw Error()}catch(E){N=E}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(E){if(E&&N&&typeof E.stack=="string")return[E.stack,N.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 i=a.DetermineComponentFrameRoot(),u=i[0],o=i[1];if(u&&o){var m=u.split(`
|
|
44
|
+
`),j=o.split(`
|
|
45
|
+
`);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===j.length)for(a=m.length-1,n=j.length-1;1<=a&&0<=n&&m[a]!==j[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==j[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==j[n]){var O=`
|
|
46
|
+
`+m[a].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=a&&0<=n);break}}}finally{sa=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ft(l):""}function ra(e,t){switch(e.tag){case 26:case 27:case 5:return Ft(e.type);case 16:return Ft("Lazy");case 13:return e.child!==t&&t!==null?Ft("Suspense Fallback"):Ft("Suspense");case 19:return Ft("SuspenseList");case 0:case 15:return Rn(e.type,!1);case 11:return Rn(e.type.render,!1);case 1:return Rn(e.type,!0);case 31:return Ft("Activity");default:return""}}function qi(e){try{var t="",l=null;do t+=ra(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var La=Object.prototype.hasOwnProperty,Qa=d.unstable_scheduleCallback,It=d.unstable_cancelCallback,Un=d.unstable_shouldYield,sc=d.unstable_requestPaint,dt=d.unstable_now,rc=d.unstable_getCurrentPriorityLevel,Za=d.unstable_ImmediatePriority,Ot=d.unstable_UserBlockingPriority,Ml=d.unstable_NormalPriority,Hn=d.unstable_LowPriority,Bi=d.unstable_IdlePriority,Yi=d.log,fc=d.unstable_setDisableYieldValue,fa=null,ht=null;function Pt(e){if(typeof Yi=="function"&&fc(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(fa,e)}catch{}}var pt=Math.clz32?Math.clz32:oc,Gi=Math.log,Xa=Math.LN2;function oc(e){return e>>>=0,e===0?32:31-(Gi(e)/Xa|0)|0}var oa=256,da=262144,Va=4194304;function fl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ja(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?n=fl(a):(u&=o,u!==0?n=fl(u):l||(l=o&~e,l!==0&&(n=fl(l))))):(o=a&~i,o!==0?n=fl(o):u!==0?n=fl(u):l||(l=a&~e,l!==0&&(n=fl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function gt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Li(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 qn(){var e=Va;return Va<<=1,(Va&62914560)===0&&(Va=4194304),e}function el(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dc(e,t,l,a,n,i){var u=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 o=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(l=u&~l;0<l;){var O=31-pt(l),D=1<<O;o[O]=0,m[O]=-1;var N=j[O];if(N!==null)for(j[O]=null,O=0;O<N.length;O++){var E=N[O];E!==null&&(E.lane&=-536870913)}l&=~D}a!==0&&Ka(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function Ka(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Mt(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-pt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Dl(e,t){var l=t&-t;return l=(l&42)!==0?1:ha(l),(l&(e.suspendedLanes|t))!==0?0:l}function ha(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 ll(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pa(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:vh(e.type))}function Qi(e,t){var l=L.p;try{return L.p=e,t()}finally{L.p=l}}var al=Math.random().toString(36).slice(2),Fe="__reactFiber$"+al,tt="__reactProps$"+al,Cl="__reactContainer$"+al,Bn="__reactEvents$"+al,hc="__reactListeners$"+al,$a="__reactHandles$"+al,nl="__reactResources$"+al,Lt="__reactMarker$"+al;function ol(e){delete e[Fe],delete e[tt],delete e[Bn],delete e[hc],delete e[$a]}function Qt(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Cl]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=nh(e);e!==null;){if(l=e[Fe])return l;e=nh(e)}return t}e=l,l=e.parentNode}return null}function Rl(e){if(e=e[Fe]||e[Cl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ma(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ul(e){var t=e[nl];return t||(t=e[nl]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Lt]=!0}var Zi=new Set,Xi={};function dl(e,t){Hl(e,t),Hl(e+"Capture",t)}function Hl(e,t){for(Xi[e]=t,e=0;e<t.length;e++)Zi.add(t[e])}var pc=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]*$"),Yn={},ga={};function mc(e){return La.call(ga,e)?!0:La.call(Yn,e)?!1:pc.test(e)?ga[e]=!0:(Yn[e]=!0,!1)}function ya(e,t,l){if(mc(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 Wa(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 Zt(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 yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gc(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,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){l=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xa(e){if(!e._valueTracker){var t=Gn(e)?"checked":"value";e._valueTracker=gc(e,t,""+e[t])}}function Fa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Gn(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ba(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 p=/[\n"\\]/g;function T(e){return e.replace(p,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function U(e,t,l,a,n,i,u,o){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yt(t)):e.value!==""+yt(t)&&(e.value=""+yt(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?q(e,u,yt(t)):l!=null?q(e,u,yt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+yt(o):e.removeAttribute("name")}function G(e,t,l,a,n,i,u,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){xa(e);return}l=l!=null?""+yt(l):"",t=t!=null?""+yt(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),xa(e)}function q(e,t,l){t==="number"&&ba(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function F(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=""+yt(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 oe(e,t,l){if(t!=null&&(t=""+yt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+yt(l):""}function Ve(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(Me(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=yt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),xa(e)}function He(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Xt=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 Ln(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||Xt.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Qn(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&&Ln(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Ln(e,i,t[i])}function Ia(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 Zn=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"]]),yc=/^[\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 Pa(e){return yc.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hl(){}var xc=null;function bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var en=null,tn=null;function Jr(e){var t=Rl(e);if(t&&(e=t.stateNode)){var l=e[tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(U(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="'+T(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[tt]||null;if(!n)throw Error(s(90));U(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&&Fa(a)}break e;case"textarea":oe(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&F(e,!!l.multiple,t,!1)}}}var vc=!1;function Kr(e,t,l){if(vc)return e(t,l);vc=!0;try{var a=e(t);return a}finally{if(vc=!1,(en!==null||tn!==null)&&(Mu(),en&&(t=en,e=tn,tn=en=null,Jr(t),e)))for(t=0;t<e.length;t++)Jr(e[t])}}function Xn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[tt]||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 pl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sc=!1;if(pl)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Sc=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Sc=!1}var ql=null,zc=null,Vi=null;function $r(){if(Vi)return Vi;var e,t=zc,l=t.length,a,n="value"in ql?ql.value:ql.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var u=l-e;for(a=1;a<=u&&t[l-a]===n[i-a];a++);return Vi=n.slice(e,1<a?1-a:void 0)}function Ji(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 Ki(){return!0}function Wr(){return!1}function xt(e){function t(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ki:Wr,this.isPropagationStopped=Wr,this}return R(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=Ki)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$i=xt(va),Jn=R({},va,{view:0,detail:0}),fp=xt(Jn),jc,Nc,Kn,Wi=R({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,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!==Kn&&(Kn&&e.type==="mousemove"?(jc=e.screenX-Kn.screenX,Nc=e.screenY-Kn.screenY):Nc=jc=0,Kn=e),jc)},movementY:function(e){return"movementY"in e?e.movementY:Nc}}),Fr=xt(Wi),op=R({},Wi,{dataTransfer:0}),dp=xt(op),hp=R({},Jn,{relatedTarget:0}),Tc=xt(hp),pp=R({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),mp=xt(pp),gp=R({},va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yp=xt(gp),xp=R({},va,{data:0}),Ir=xt(xp),bp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vp={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"},Sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sp[e])?!!t[e]:!1}function Ec(){return zp}var jp=R({},Jn,{key:function(e){if(e.key){var t=bp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Np=xt(jp),Tp=R({},Wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pr=xt(Tp),Ep=R({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),Ap=xt(Ep),_p=R({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),kp=xt(_p),wp=R({},Wi,{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}),Op=xt(wp),Mp=R({},va,{newState:0,oldState:0}),Dp=xt(Mp),Cp=[9,13,27,32],Ac=pl&&"CompositionEvent"in window,$n=null;pl&&"documentMode"in document&&($n=document.documentMode);var Rp=pl&&"TextEvent"in window&&!$n,ef=pl&&(!Ac||$n&&8<$n&&11>=$n),tf=" ",lf=!1;function af(e,t){switch(e){case"keyup":return Cp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ln=!1;function Up(e,t){switch(e){case"compositionend":return nf(t);case"keypress":return t.which!==32?null:(lf=!0,tf);case"textInput":return e=t.data,e===tf&&lf?null:e;default:return null}}function Hp(e,t){if(ln)return e==="compositionend"||!Ac&&af(e,t)?(e=$r(),Vi=zc=ql=null,ln=!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 ef&&t.locale!=="ko"?null:t.data;default:return null}}var qp={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 uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qp[e.type]:t==="textarea"}function cf(e,t,l,a){en?tn?tn.push(a):tn=[a]:en=a,t=Bu(t,"onChange"),0<t.length&&(l=new $i("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Wn=null,Fn=null;function Bp(e){Zd(e,0)}function Fi(e){var t=ma(e);if(Fa(t))return e}function sf(e,t){if(e==="change")return t}var rf=!1;if(pl){var _c;if(pl){var kc="oninput"in document;if(!kc){var ff=document.createElement("div");ff.setAttribute("oninput","return;"),kc=typeof ff.oninput=="function"}_c=kc}else _c=!1;rf=_c&&(!document.documentMode||9<document.documentMode)}function of(){Wn&&(Wn.detachEvent("onpropertychange",df),Fn=Wn=null)}function df(e){if(e.propertyName==="value"&&Fi(Fn)){var t=[];cf(t,Fn,e,bc(e)),Kr(Bp,t)}}function Yp(e,t,l){e==="focusin"?(of(),Wn=t,Fn=l,Wn.attachEvent("onpropertychange",df)):e==="focusout"&&of()}function Gp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fi(Fn)}function Lp(e,t){if(e==="click")return Fi(t)}function Qp(e,t){if(e==="input"||e==="change")return Fi(t)}function Zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Zp;function In(e,t){if(Nt(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(!La.call(t,n)||!Nt(e[n],t[n]))return!1}return!0}function hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pf(e,t){var l=hf(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=hf(l)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ba(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=ba(e.document)}return t}function wc(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 Xp=pl&&"documentMode"in document&&11>=document.documentMode,an=null,Oc=null,Pn=null,Mc=!1;function yf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Mc||an==null||an!==ba(a)||(a=an,"selectionStart"in a&&wc(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}),Pn&&In(Pn,a)||(Pn=a,a=Bu(Oc,"onSelect"),0<a.length&&(t=new $i("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=an)))}function Sa(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var nn={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionrun:Sa("Transition","TransitionRun"),transitionstart:Sa("Transition","TransitionStart"),transitioncancel:Sa("Transition","TransitionCancel"),transitionend:Sa("Transition","TransitionEnd")},Dc={},xf={};pl&&(xf=document.createElement("div").style,"AnimationEvent"in window||(delete nn.animationend.animation,delete nn.animationiteration.animation,delete nn.animationstart.animation),"TransitionEvent"in window||delete nn.transitionend.transition);function za(e){if(Dc[e])return Dc[e];if(!nn[e])return e;var t=nn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in xf)return Dc[e]=t[l];return e}var bf=za("animationend"),vf=za("animationiteration"),Sf=za("animationstart"),Vp=za("transitionrun"),Jp=za("transitionstart"),Kp=za("transitioncancel"),zf=za("transitionend"),jf=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 Vt(e,t){jf.set(e,t),dl(t,[e])}var Ii=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)},Dt=[],un=0,Rc=0;function Pi(){for(var e=un,t=Rc=un=0;t<e;){var l=Dt[t];Dt[t++]=null;var a=Dt[t];Dt[t++]=null;var n=Dt[t];Dt[t++]=null;var i=Dt[t];if(Dt[t++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&Nf(l,n,i)}}function eu(e,t,l,a){Dt[un++]=e,Dt[un++]=t,Dt[un++]=l,Dt[un++]=a,Rc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Uc(e,t,l,a){return eu(e,t,l,a),tu(e)}function ja(e,t){return eu(e,null,null,t),tu(e)}function Nf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-pt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function tu(e){if(50<Si)throw Si=0,Xs=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var cn={};function $p(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 Tt(e,t,l,a){return new $p(e,t,l,a)}function Hc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ml(e,t){var l=e.alternate;return l===null?(l=Tt(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 Tf(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 lu(e,t,l,a,n,i){var u=0;if(a=e,typeof e=="function")Hc(e)&&(u=1);else if(typeof e=="string")u=e0(e,l,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ot:return e=Tt(31,l,t,n),e.elementType=ot,e.lanes=i,e;case he:return Na(l.children,n,i,t);case ce:u=8,n|=24;break;case Qe:return e=Tt(12,l,t,n|2),e.elementType=Qe,e.lanes=i,e;case Ce:return e=Tt(13,l,t,n),e.elementType=Ce,e.lanes=i,e;case Ue:return e=Tt(19,l,t,n),e.elementType=Ue,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ke:u=10;break e;case Pe:u=9;break e;case I:u=11;break e;case ne:u=14;break e;case ct:u=16,a=null;break e}u=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Tt(u,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Na(e,t,l,a){return e=Tt(7,e,a,t),e.lanes=l,e}function qc(e,t,l){return e=Tt(6,e,null,t),e.lanes=l,e}function Ef(e){var t=Tt(18,null,null,0);return t.stateNode=e,t}function Bc(e,t,l){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Af=new WeakMap;function Ct(e,t){if(typeof e=="object"&&e!==null){var l=Af.get(e);return l!==void 0?l:(t={value:e,source:t,stack:qi(t)},Af.set(e,t),t)}return{value:e,source:t,stack:qi(t)}}var sn=[],rn=0,au=null,ei=0,Rt=[],Ut=0,Bl=null,il=1,ul="";function gl(e,t){sn[rn++]=ei,sn[rn++]=au,au=e,ei=t}function _f(e,t,l){Rt[Ut++]=il,Rt[Ut++]=ul,Rt[Ut++]=Bl,Bl=e;var a=il;e=ul;var n=32-pt(a)-1;a&=~(1<<n),l+=1;var i=32-pt(t)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,il=1<<32-pt(t)+n|l<<n|a,ul=i+e}else il=1<<i|l<<n|a,ul=e}function Yc(e){e.return!==null&&(gl(e,1),_f(e,1,0))}function Gc(e){for(;e===au;)au=sn[--rn],sn[rn]=null,ei=sn[--rn],sn[rn]=null;for(;e===Bl;)Bl=Rt[--Ut],Rt[Ut]=null,ul=Rt[--Ut],Rt[Ut]=null,il=Rt[--Ut],Rt[Ut]=null}function kf(e,t){Rt[Ut++]=il,Rt[Ut++]=ul,Rt[Ut++]=Bl,il=t.id,ul=t.overflow,Bl=e}var at=null,we=null,de=!1,Yl=null,Ht=!1,Lc=Error(s(519));function Gl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ti(Ct(t,e)),Lc}function wf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[tt]=a,l){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(l=0;l<ji.length;l++)ue(ji[l],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),G(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),Ve(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||Kd(t.textContent,l)?(a.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),a.onScroll!=null&&ue("scroll",t),a.onScrollEnd!=null&&ue("scrollend",t),a.onClick!=null&&(t.onclick=hl),t=!0):t=!1,t||Gl(e,!0)}function Of(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:at=at.return}}function fn(e){if(e!==at)return!1;if(!de)return Of(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ur(e.type,e.memoizedProps)),l=!l),l&&we&&Gl(e),Of(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));we=ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));we=ah(e)}else t===27?(t=we,ta(e.type)?(e=or,or=null,we=e):we=t):we=at?Bt(e.stateNode.nextSibling):null;return!0}function Ta(){we=at=null,de=!1}function Qc(){var e=Yl;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),Yl=null),e}function ti(e){Yl===null?Yl=[e]:Yl.push(e)}var Zc=x(null),Ea=null,yl=null;function Ll(e,t,l){Y(Zc,t._currentValue),t._currentValue=l}function xl(e){e._currentValue=Zc.current,C(Zc)}function Xc(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 Vc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=n;for(var m=0;m<t.length;m++)if(o.context===t[m]){i.lanes|=l,o=i.alternate,o!==null&&(o.lanes|=l),Xc(i.return,l,e),a||(u=null);break e}i=o.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(s(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),Xc(u,l,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function on(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(s(387));if(u=u.memoizedProps,u!==null){var o=n.type;Nt(n.pendingProps.value,u.value)||(e!==null?e.push(o):e=[o])}}else if(n===fe.current){if(u=n.alternate,u===null)throw Error(s(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(_i):e=[_i])}n=n.return}e!==null&&Vc(t,e,l,a),t.flags|=262144}function nu(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Aa(e){Ea=e,yl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Mf(Ea,e)}function iu(e,t){return Ea===null&&Aa(e),Mf(e,t)}function Mf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},yl===null){if(e===null)throw Error(s(308));yl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yl=yl.next=t;return l}var Wp=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()})}},Fp=d.unstable_scheduleCallback,Ip=d.unstable_NormalPriority,Je={$$typeof:ke,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jc(){return{controller:new Wp,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&Fp(Ip,function(){e.controller.abort()})}var ai=null,Kc=0,dn=0,hn=null;function Pp(e,t){if(ai===null){var l=ai=[];Kc=0,dn=Fs(),hn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Kc++,t.then(Df,Df),t}function Df(){if(--Kc===0&&ai!==null){hn!==null&&(hn.status="fulfilled");var e=ai;ai=null,dn=0,hn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function em(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 Cf=_.S;_.S=function(e,t){xd=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Pp(e,t),Cf!==null&&Cf(e,t)};var _a=x(null);function $c(){var e=_a.current;return e!==null?e:_e.pooledCache}function uu(e,t){t===null?Y(_a,_a.current):Y(_a,t.pool)}function Rf(){var e=$c();return e===null?null:{parent:Je._currentValue,pool:e}}var pn=Error(s(460)),Wc=Error(s(474)),cu=Error(s(542)),su={then:function(){}};function Uf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(hl,hl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e;default:if(typeof t.status=="string")t.then(hl,hl);else{if(e=_e,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,Bf(e),e}throw wa=t,pn}}function ka(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wa=l,pn):l}}var wa=null;function qf(){if(wa===null)throw Error(s(459));var e=wa;return wa=null,e}function Bf(e){if(e===pn||e===cu)throw Error(s(483))}var mn=null,ni=0;function ru(e){var t=ni;return ni+=1,mn===null&&(mn=[]),Hf(mn,e,t)}function ii(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===H?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yf(e){function t(S,y){if(e){var z=S.deletions;z===null?(S.deletions=[y],S.flags|=16):z.push(y)}}function l(S,y){if(!e)return null;for(;y!==null;)t(S,y),y=y.sibling;return null}function a(S){for(var y=new Map;S!==null;)S.key!==null?y.set(S.key,S):y.set(S.index,S),S=S.sibling;return y}function n(S,y){return S=ml(S,y),S.index=0,S.sibling=null,S}function i(S,y,z){return S.index=z,e?(z=S.alternate,z!==null?(z=z.index,z<y?(S.flags|=67108866,y):z):(S.flags|=67108866,y)):(S.flags|=1048576,y)}function u(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function o(S,y,z,M){return y===null||y.tag!==6?(y=qc(z,S.mode,M),y.return=S,y):(y=n(y,z),y.return=S,y)}function m(S,y,z,M){var J=z.type;return J===he?O(S,y,z.props.children,M,z.key):y!==null&&(y.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ct&&ka(J)===y.type)?(y=n(y,z.props),ii(y,z),y.return=S,y):(y=lu(z.type,z.key,z.props,null,S.mode,M),ii(y,z),y.return=S,y)}function j(S,y,z,M){return y===null||y.tag!==4||y.stateNode.containerInfo!==z.containerInfo||y.stateNode.implementation!==z.implementation?(y=Bc(z,S.mode,M),y.return=S,y):(y=n(y,z.children||[]),y.return=S,y)}function O(S,y,z,M,J){return y===null||y.tag!==7?(y=Na(z,S.mode,M,J),y.return=S,y):(y=n(y,z),y.return=S,y)}function D(S,y,z){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=qc(""+y,S.mode,z),y.return=S,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case le:return z=lu(y.type,y.key,y.props,null,S.mode,z),ii(z,y),z.return=S,z;case B:return y=Bc(y,S.mode,z),y.return=S,y;case ct:return y=ka(y),D(S,y,z)}if(Me(y)||Xe(y))return y=Na(y,S.mode,z,null),y.return=S,y;if(typeof y.then=="function")return D(S,ru(y),z);if(y.$$typeof===ke)return D(S,iu(S,y),z);fu(S,y)}return null}function N(S,y,z,M){var J=y!==null?y.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return J!==null?null:o(S,y,""+z,M);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case le:return z.key===J?m(S,y,z,M):null;case B:return z.key===J?j(S,y,z,M):null;case ct:return z=ka(z),N(S,y,z,M)}if(Me(z)||Xe(z))return J!==null?null:O(S,y,z,M,null);if(typeof z.then=="function")return N(S,y,ru(z),M);if(z.$$typeof===ke)return N(S,y,iu(S,z),M);fu(S,z)}return null}function E(S,y,z,M,J){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return S=S.get(z)||null,o(y,S,""+M,J);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case le:return S=S.get(M.key===null?z:M.key)||null,m(y,S,M,J);case B:return S=S.get(M.key===null?z:M.key)||null,j(y,S,M,J);case ct:return M=ka(M),E(S,y,z,M,J)}if(Me(M)||Xe(M))return S=S.get(z)||null,O(y,S,M,J,null);if(typeof M.then=="function")return E(S,y,z,ru(M),J);if(M.$$typeof===ke)return E(S,y,z,iu(y,M),J);fu(y,M)}return null}function Z(S,y,z,M){for(var J=null,me=null,V=y,te=y=0,re=null;V!==null&&te<z.length;te++){V.index>te?(re=V,V=null):re=V.sibling;var ge=N(S,V,z[te],M);if(ge===null){V===null&&(V=re);break}e&&V&&ge.alternate===null&&t(S,V),y=i(ge,y,te),me===null?J=ge:me.sibling=ge,me=ge,V=re}if(te===z.length)return l(S,V),de&&gl(S,te),J;if(V===null){for(;te<z.length;te++)V=D(S,z[te],M),V!==null&&(y=i(V,y,te),me===null?J=V:me.sibling=V,me=V);return de&&gl(S,te),J}for(V=a(V);te<z.length;te++)re=E(V,S,te,z[te],M),re!==null&&(e&&re.alternate!==null&&V.delete(re.key===null?te:re.key),y=i(re,y,te),me===null?J=re:me.sibling=re,me=re);return e&&V.forEach(function(ua){return t(S,ua)}),de&&gl(S,te),J}function $(S,y,z,M){if(z==null)throw Error(s(151));for(var J=null,me=null,V=y,te=y=0,re=null,ge=z.next();V!==null&&!ge.done;te++,ge=z.next()){V.index>te?(re=V,V=null):re=V.sibling;var ua=N(S,V,ge.value,M);if(ua===null){V===null&&(V=re);break}e&&V&&ua.alternate===null&&t(S,V),y=i(ua,y,te),me===null?J=ua:me.sibling=ua,me=ua,V=re}if(ge.done)return l(S,V),de&&gl(S,te),J;if(V===null){for(;!ge.done;te++,ge=z.next())ge=D(S,ge.value,M),ge!==null&&(y=i(ge,y,te),me===null?J=ge:me.sibling=ge,me=ge);return de&&gl(S,te),J}for(V=a(V);!ge.done;te++,ge=z.next())ge=E(V,S,te,ge.value,M),ge!==null&&(e&&ge.alternate!==null&&V.delete(ge.key===null?te:ge.key),y=i(ge,y,te),me===null?J=ge:me.sibling=ge,me=ge);return e&&V.forEach(function(o0){return t(S,o0)}),de&&gl(S,te),J}function Te(S,y,z,M){if(typeof z=="object"&&z!==null&&z.type===he&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case le:e:{for(var J=z.key;y!==null;){if(y.key===J){if(J=z.type,J===he){if(y.tag===7){l(S,y.sibling),M=n(y,z.props.children),M.return=S,S=M;break e}}else if(y.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ct&&ka(J)===y.type){l(S,y.sibling),M=n(y,z.props),ii(M,z),M.return=S,S=M;break e}l(S,y);break}else t(S,y);y=y.sibling}z.type===he?(M=Na(z.props.children,S.mode,M,z.key),M.return=S,S=M):(M=lu(z.type,z.key,z.props,null,S.mode,M),ii(M,z),M.return=S,S=M)}return u(S);case B:e:{for(J=z.key;y!==null;){if(y.key===J)if(y.tag===4&&y.stateNode.containerInfo===z.containerInfo&&y.stateNode.implementation===z.implementation){l(S,y.sibling),M=n(y,z.children||[]),M.return=S,S=M;break e}else{l(S,y);break}else t(S,y);y=y.sibling}M=Bc(z,S.mode,M),M.return=S,S=M}return u(S);case ct:return z=ka(z),Te(S,y,z,M)}if(Me(z))return Z(S,y,z,M);if(Xe(z)){if(J=Xe(z),typeof J!="function")throw Error(s(150));return z=J.call(z),$(S,y,z,M)}if(typeof z.then=="function")return Te(S,y,ru(z),M);if(z.$$typeof===ke)return Te(S,y,iu(S,z),M);fu(S,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,y!==null&&y.tag===6?(l(S,y.sibling),M=n(y,z),M.return=S,S=M):(l(S,y),M=qc(z,S.mode,M),M.return=S,S=M),u(S)):l(S,y)}return function(S,y,z,M){try{ni=0;var J=Te(S,y,z,M);return mn=null,J}catch(V){if(V===pn||V===cu)throw V;var me=Tt(29,V,null,S.mode);return me.lanes=M,me.return=S,me}finally{}}}var Oa=Yf(!0),Gf=Yf(!1),Ql=!1;function Fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ic(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 Zl(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,(be&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=tu(e),Nf(e,null,l),t}return eu(e,a,t,l),tu(e)}function ui(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,Mt(e,l)}}function Pc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,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 es=!1;function ci(){if(es){var e=hn;if(e!==null)throw e}}function si(e,t,l,a){es=!1;var n=e.updateQueue;Ql=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var m=o,j=m.next;m.next=null,u===null?i=j:u.next=j,u=m;var O=e.alternate;O!==null&&(O=O.updateQueue,o=O.lastBaseUpdate,o!==u&&(o===null?O.firstBaseUpdate=j:o.next=j,O.lastBaseUpdate=m))}if(i!==null){var D=n.baseState;u=0,O=j=m=null,o=i;do{var N=o.lane&-536870913,E=N!==o.lane;if(E?(se&N)===N:(a&N)===N){N!==0&&N===dn&&(es=!0),O!==null&&(O=O.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var Z=e,$=o;N=t;var Te=l;switch($.tag){case 1:if(Z=$.payload,typeof Z=="function"){D=Z.call(Te,D,N);break e}D=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=$.payload,N=typeof Z=="function"?Z.call(Te,D,N):Z,N==null)break e;D=R({},D,N);break e;case 2:Ql=!0}}N=o.callback,N!==null&&(e.flags|=64,E&&(e.flags|=8192),E=n.callbacks,E===null?n.callbacks=[N]:E.push(N))}else E={lane:N,tag:o.tag,payload:o.payload,callback:o.callback,next:null},O===null?(j=O=E,m=D):O=O.next=E,u|=N;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;E=o,o=E.next,E.next=null,n.lastBaseUpdate=E,n.shared.pending=null}}while(!0);O===null&&(m=D),n.baseState=m,n.firstBaseUpdate=j,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),Wl|=u,e.lanes=u,e.memoizedState=D}}function Lf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Qf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Lf(l[e],t)}var gn=x(null),ou=x(0);function Zf(e,t){e=Al,Y(ou,e),Y(gn,t),Al=e|t.baseLanes}function ts(){Y(ou,Al),Y(gn,gn.current)}function ls(){Al=ou.current,C(gn),C(ou)}var Et=x(null),qt=null;function Vl(e){var t=e.alternate;Y(Ge,Ge.current&1),Y(Et,e),qt===null&&(t===null||gn.current!==null||t.memoizedState!==null)&&(qt=e)}function as(e){Y(Ge,Ge.current),Y(Et,e),qt===null&&(qt=e)}function Xf(e){e.tag===22?(Y(Ge,Ge.current),Y(Et,e),qt===null&&(qt=e)):Jl()}function Jl(){Y(Ge,Ge.current),Y(Et,Et.current)}function At(e){C(Et),qt===e&&(qt=null),C(Ge)}var Ge=x(0);function du(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||rr(l)||fr(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 bl=0,ee=null,je=null,Ke=null,hu=!1,yn=!1,Ma=!1,pu=0,ri=0,xn=null,tm=0;function qe(){throw Error(s(321))}function ns(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Nt(e[l],t[l]))return!1;return!0}function is(e,t,l,a,n,i){return bl=i,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?ko:vs,Ma=!1,i=l(a,n),Ma=!1,yn&&(i=Jf(t,l,a,n)),Vf(e),i}function Vf(e){_.H=di;var t=je!==null&&je.next!==null;if(bl=0,Ke=je=ee=null,hu=!1,ri=0,xn=null,t)throw Error(s(300));e===null||$e||(e=e.dependencies,e!==null&&nu(e)&&($e=!0))}function Jf(e,t,l,a){ee=e;var n=0;do{if(yn&&(xn=null),ri=0,yn=!1,25<=n)throw Error(s(301));if(n+=1,Ke=je=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}_.H=wo,i=t(l,a)}while(yn);return i}function lm(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?fi(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ee.flags|=1024),t}function us(){var e=pu!==0;return pu=0,e}function cs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ss(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}bl=0,Ke=je=ee=null,yn=!1,ri=pu=0,xn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ee.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Le(){if(je===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Ke===null?ee.memoizedState:Ke.next;if(t!==null)Ke=t,je=e;else{if(e===null)throw ee.alternate===null?Error(s(467)):Error(s(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ke===null?ee.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fi(e){var t=ri;return ri+=1,xn===null&&(xn=[]),e=Hf(xn,e,t),t=ee,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?ko:vs),e}function gu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fi(e);if(e.$$typeof===ke)return nt(e)}throw Error(s(438,String(e)))}function rs(e){var t=null,l=ee.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ee.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=mu(),ee.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]=wl;return t.index++,l}function vl(e,t){return typeof t=="function"?t(e):t}function yu(e){var t=Le();return fs(t,je,e)}function fs(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var o=u=null,m=null,j=t,O=!1;do{var D=j.lane&-536870913;if(D!==j.lane?(se&D)===D:(bl&D)===D){var N=j.revertLane;if(N===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),D===dn&&(O=!0);else if((bl&N)===N){j=j.next,N===dn&&(O=!0);continue}else D={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(o=m=D,u=i):m=m.next=D,ee.lanes|=N,Wl|=N;D=j.action,Ma&&l(i,D),i=j.hasEagerState?j.eagerState:l(i,D)}else N={lane:D,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(o=m=N,u=i):m=m.next=N,ee.lanes|=D,Wl|=D;j=j.next}while(j!==null&&j!==t);if(m===null?u=i:m.next=o,!Nt(i,e.memoizedState)&&($e=!0,O&&(l=hn,l!==null)))throw l;e.memoizedState=i,e.baseState=u,e.baseQueue=m,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function os(e){var t=Le(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=e(i,u.action),u=u.next;while(u!==n);Nt(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Kf(e,t,l){var a=ee,n=Le(),i=de;if(i){if(l===void 0)throw Error(s(407));l=l()}else l=t();var u=!Nt((je||n).memoizedState,l);if(u&&(n.memoizedState=l,$e=!0),n=n.queue,ps(Ff.bind(null,a,n,e),[e]),n.getSnapshot!==t||u||Ke!==null&&Ke.memoizedState.tag&1){if(a.flags|=2048,bn(9,{destroy:void 0},Wf.bind(null,a,n,l,t),null),_e===null)throw Error(s(349));i||(bl&127)!==0||$f(a,t,l)}return l}function $f(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ee.updateQueue,t===null?(t=mu(),ee.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Wf(e,t,l,a){t.value=l,t.getSnapshot=a,If(t)&&Pf(e)}function Ff(e,t,l){return l(function(){If(t)&&Pf(e)})}function If(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Nt(e,l)}catch{return!0}}function Pf(e){var t=ja(e,2);t!==null&&jt(t,e,2)}function ds(e){var t=mt();if(typeof e=="function"){var l=e;if(e=l(),Ma){Pt(!0);try{l()}finally{Pt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:e},t}function eo(e,t,l,a){return e.baseState=l,fs(e,je,typeof a=="function"?a:vl)}function am(e,t,l,a,n){if(vu(e))throw Error(s(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};_.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,to(t,i)):(i.next=l.next,t.pending=l.next=i)}}function to(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=_.T,u={};_.T=u;try{var o=l(n,a),m=_.S;m!==null&&m(u,o),lo(e,t,o)}catch(j){hs(e,t,j)}finally{i!==null&&u.types!==null&&(i.types=u.types),_.T=i}}else try{i=l(n,a),lo(e,t,i)}catch(j){hs(e,t,j)}}function lo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ao(e,t,a)},function(a){return hs(e,t,a)}):ao(e,t,l)}function ao(e,t,l){t.status="fulfilled",t.value=l,no(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,to(e,l)))}function hs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,no(t),t=t.next;while(t!==a)}e.action=null}function no(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function io(e,t){return t}function uo(e,t){if(de){var l=_e.formState;if(l!==null){e:{var a=ee;if(de){if(we){t:{for(var n=we,i=Ht;n.nodeType!==8;){if(!i){n=null;break t}if(n=Bt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){we=Bt(n.nextSibling),a=n.data==="F!";break e}}Gl(a)}a=!1}a&&(t=l[0])}}return l=mt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:io,lastRenderedState:t},l.queue=a,l=Eo.bind(null,ee,a),a.dispatch=l,a=ds(!1),i=bs.bind(null,ee,!1,a.queue),a=mt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=am.bind(null,ee,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function co(e){var t=Le();return so(t,je,e)}function so(e,t,l){if(t=fs(e,t,io)[0],e=yu(vl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=fi(t)}catch(u){throw u===pn?cu:u}else a=t;t=Le();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ee.flags|=2048,bn(9,{destroy:void 0},nm.bind(null,n,l),null)),[a,i,e]}function nm(e,t){e.action=t}function ro(e){var t=Le(),l=je;if(l!==null)return so(t,l,e);Le(),t=t.memoizedState,l=Le();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function bn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ee.updateQueue,t===null&&(t=mu(),ee.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 fo(){return Le().memoizedState}function xu(e,t,l,a){var n=mt();ee.flags|=e,n.memoizedState=bn(1|t,{destroy:void 0},l,a===void 0?null:a)}function bu(e,t,l,a){var n=Le();a=a===void 0?null:a;var i=n.memoizedState.inst;je!==null&&a!==null&&ns(a,je.memoizedState.deps)?n.memoizedState=bn(t,i,l,a):(ee.flags|=e,n.memoizedState=bn(1|t,i,l,a))}function oo(e,t){xu(8390656,8,e,t)}function ps(e,t){bu(2048,8,e,t)}function im(e){ee.flags|=4;var t=ee.updateQueue;if(t===null)t=mu(),ee.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ho(e){var t=Le().memoizedState;return im({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function po(e,t){return bu(4,2,e,t)}function mo(e,t){return bu(4,4,e,t)}function go(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 yo(e,t,l){l=l!=null?l.concat([e]):null,bu(4,4,go.bind(null,t,e),l)}function ms(){}function xo(e,t){var l=Le();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ns(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function bo(e,t){var l=Le();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ns(t,a[1]))return a[0];if(a=e(),Ma){Pt(!0);try{e()}finally{Pt(!1)}}return l.memoizedState=[a,t],a}function gs(e,t,l){return l===void 0||(bl&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=vd(),ee.lanes|=e,Wl|=e,l)}function vo(e,t,l,a){return Nt(l,t)?l:gn.current!==null?(e=gs(e,l,a),Nt(e,t)||($e=!0),e):(bl&42)===0||(bl&1073741824)!==0&&(se&261930)===0?($e=!0,e.memoizedState=l):(e=vd(),ee.lanes|=e,Wl|=e,t)}function So(e,t,l,a,n){var i=L.p;L.p=i!==0&&8>i?i:8;var u=_.T,o={};_.T=o,bs(e,!1,t,l);try{var m=n(),j=_.S;if(j!==null&&j(o,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=em(m,a);oi(e,t,O,wt(e))}else oi(e,t,a,wt(e))}catch(D){oi(e,t,{then:function(){},status:"rejected",reason:D},wt())}finally{L.p=i,u!==null&&o.types!==null&&(u.types=o.types),_.T=u}}function um(){}function ys(e,t,l,a){if(e.tag!==5)throw Error(s(476));var n=zo(e).queue;So(e,n,t,K,l===null?um:function(){return jo(e),l(a)})}function zo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:K},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function jo(e){var t=zo(e);t.next===null&&(t=e.alternate.memoizedState),oi(e,t.next.queue,{},wt())}function xs(){return nt(_i)}function No(){return Le().memoizedState}function To(){return Le().memoizedState}function cm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=wt();e=Zl(l);var a=Xl(t,e,l);a!==null&&(jt(a,t,l),ui(a,t,l)),t={cache:Jc()},e.payload=t;return}t=t.return}}function sm(e,t,l){var a=wt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},vu(e)?Ao(t,l):(l=Uc(e,t,l,a),l!==null&&(jt(l,e,a),_o(l,t,a)))}function Eo(e,t,l){var a=wt();oi(e,t,l,a)}function oi(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(vu(e))Ao(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,o=i(u,l);if(n.hasEagerState=!0,n.eagerState=o,Nt(o,u))return eu(e,t,n,0),_e===null&&Pi(),!1}catch{}finally{}if(l=Uc(e,t,n,a),l!==null)return jt(l,e,a),_o(l,t,a),!0}return!1}function bs(e,t,l,a){if(a={lane:2,revertLane:Fs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vu(e)){if(t)throw Error(s(479))}else t=Uc(e,l,a,2),t!==null&&jt(t,e,2)}function vu(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Ao(e,t){yn=hu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function _o(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Mt(e,l)}}var di={readContext:nt,use:gu,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};di.useEffectEvent=qe;var ko={readContext:nt,use:gu,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:oo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,xu(4194308,4,go.bind(null,t,e),l)},useLayoutEffect:function(e,t){return xu(4194308,4,e,t)},useInsertionEffect:function(e,t){xu(4,2,e,t)},useMemo:function(e,t){var l=mt();t=t===void 0?null:t;var a=e();if(Ma){Pt(!0);try{e()}finally{Pt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=mt();if(l!==void 0){var n=l(t);if(Ma){Pt(!0);try{l(t)}finally{Pt(!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=sm.bind(null,ee,e),[a.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=ds(e);var t=e.queue,l=Eo.bind(null,ee,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ms,useDeferredValue:function(e,t){var l=mt();return gs(l,e,t)},useTransition:function(){var e=ds(!1);return e=So.bind(null,ee,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ee,n=mt();if(de){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),_e===null)throw Error(s(349));(se&127)!==0||$f(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,oo(Ff.bind(null,a,i,e),[e]),a.flags|=2048,bn(9,{destroy:void 0},Wf.bind(null,a,i,l,t),null),l},useId:function(){var e=mt(),t=_e.identifierPrefix;if(de){var l=ul,a=il;l=(a&~(1<<32-pt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=pu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:uo,useActionState:uo,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=bs.bind(null,ee,!0,l),l.dispatch=t,[e,t]},useMemoCache:rs,useCacheRefresh:function(){return mt().memoizedState=cm.bind(null,ee)},useEffectEvent:function(e){var t=mt(),l={impl:e};return t.memoizedState=l,function(){if((be&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},vs={readContext:nt,use:gu,useCallback:xo,useContext:nt,useEffect:ps,useImperativeHandle:yo,useInsertionEffect:po,useLayoutEffect:mo,useMemo:bo,useReducer:yu,useRef:fo,useState:function(){return yu(vl)},useDebugValue:ms,useDeferredValue:function(e,t){var l=Le();return vo(l,je.memoizedState,e,t)},useTransition:function(){var e=yu(vl)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:Kf,useId:No,useHostTransitionStatus:xs,useFormState:co,useActionState:co,useOptimistic:function(e,t){var l=Le();return eo(l,je,e,t)},useMemoCache:rs,useCacheRefresh:To};vs.useEffectEvent=ho;var wo={readContext:nt,use:gu,useCallback:xo,useContext:nt,useEffect:ps,useImperativeHandle:yo,useInsertionEffect:po,useLayoutEffect:mo,useMemo:bo,useReducer:os,useRef:fo,useState:function(){return os(vl)},useDebugValue:ms,useDeferredValue:function(e,t){var l=Le();return je===null?gs(l,e,t):vo(l,je.memoizedState,e,t)},useTransition:function(){var e=os(vl)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:Kf,useId:No,useHostTransitionStatus:xs,useFormState:ro,useActionState:ro,useOptimistic:function(e,t){var l=Le();return je!==null?eo(l,je,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:rs,useCacheRefresh:To};wo.useEffectEvent=ho;function Ss(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:R({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var zs={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=wt(),n=Zl(a);n.payload=t,l!=null&&(n.callback=l),t=Xl(e,n,a),t!==null&&(jt(t,e,a),ui(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=wt(),n=Zl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Xl(e,n,a),t!==null&&(jt(t,e,a),ui(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=wt(),a=Zl(l);a.tag=2,t!=null&&(a.callback=t),t=Xl(e,a,l),t!==null&&(jt(t,e,l),ui(t,e,l))}};function Oo(e,t,l,a,n,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,u):t.prototype&&t.prototype.isPureReactComponent?!In(l,a)||!In(n,i):!0}function Mo(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&&zs.enqueueReplaceState(t,t.state,null)}function Da(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=R({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Do(e){Ii(e)}function Co(e){console.error(e)}function Ro(e){Ii(e)}function Su(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Uo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function js(e,t,l){return l=Zl(l),l.tag=3,l.payload={element:null},l.callback=function(){Su(e,t)},l}function Ho(e){return e=Zl(e),e.tag=3,e}function qo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Uo(t,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Uo(t,l,a),typeof n!="function"&&(Fl===null?Fl=new Set([this]):Fl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function rm(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&on(t,l,n,!0),l=Et.current,l!==null){switch(l.tag){case 31:case 13:return qt===null?Du():l.alternate===null&&Be===0&&(Be=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===su?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Ks(e,a,n)),!1;case 22:return l.flags|=65536,a===su?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)),Ks(e,a,n)),!1}throw Error(s(435,l.tag))}return Ks(e,a,n),Du(),!1}if(de)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Lc&&(e=Error(s(422),{cause:a}),ti(Ct(e,l)))):(a!==Lc&&(t=Error(s(423),{cause:a}),ti(Ct(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Ct(a,l),n=js(e.stateNode,a,n),Pc(e,n),Be!==4&&(Be=2)),!1;var i=Error(s(520),{cause:a});if(i=Ct(i,l),vi===null?vi=[i]:vi.push(i),Be!==4&&(Be=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=js(l.stateNode,a,e),Pc(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Fl===null||!Fl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ho(n),qo(n,e,l,a),Pc(l,n),!1}l=l.return}while(l!==null);return!1}var Ns=Error(s(461)),$e=!1;function it(e,t,l,a){t.child=e===null?Gf(t,null,l,a):Oa(t,e.child,l,a)}function Bo(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var u={};for(var o in a)o!=="ref"&&(u[o]=a[o])}else u=a;return Aa(t),a=is(e,t,l,u,i,n),o=us(),e!==null&&!$e?(cs(e,t,n),Sl(e,t,n)):(de&&o&&Yc(t),t.flags|=1,it(e,t,a,n),t.child)}function Yo(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Hc(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Go(e,t,i,a,n)):(e=lu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ms(e,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:In,l(u,a)&&e.ref===t.ref)return Sl(e,t,n)}return t.flags|=1,e=ml(i,a),e.ref=t.ref,e.return=t,t.child=e}function Go(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(In(i,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=i,Ms(e,n))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,Sl(e,t,n)}return Ts(e,t,l,a,n)}function Lo(e,t,l,a){var n=a.children,i=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(i=i!==null?i.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&~i}else a=0,t.child=null;return Qo(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&uu(t,i!==null?i.cachePool:null),i!==null?Zf(t,i):ts(),Xf(t);else return a=t.lanes=536870912,Qo(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(uu(t,i.cachePool),Zf(t,i),Jl(),t.memoizedState=null):(e!==null&&uu(t,null),ts(),Jl());return it(e,t,n,l),t.child}function hi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qo(e,t,l,a,n){var i=$c();return i=i===null?null:{parent:Je._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&uu(t,null),ts(),Xf(t),e!==null&&on(e,t,a,!0),t.childLanes=n,null}function zu(e,t){return t=Nu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zo(e,t,l){return Oa(t,e.child,null,l),e=zu(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function fm(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=zu(t,a),t.lanes=536870912,hi(null,e);if(as(t),(e=we)?(e=lh(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bl!==null?{id:il,overflow:ul}:null,retryLane:536870912,hydrationErrors:null},l=Ef(e),l.return=t,t.child=l,at=t,we=null)):e=null,e===null)throw Gl(t);return t.lanes=536870912,null}return zu(t,a)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(as(t),n)if(t.flags&256)t.flags&=-257,t=Zo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if($e||on(e,t,l,!1),n=(l&e.childLanes)!==0,$e||n){if(a=_e,a!==null&&(u=Dl(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,ja(e,u),jt(a,e,u),Ns;Du(),t=Zo(e,t,l)}else e=i.treeContext,we=Bt(u.nextSibling),at=t,de=!0,Yl=null,Ht=!1,e!==null&&kf(t,e),t=zu(t,a),t.flags|=4096;return t}return e=ml(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ju(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 Ts(e,t,l,a,n){return Aa(t),l=is(e,t,l,a,void 0,n),a=us(),e!==null&&!$e?(cs(e,t,n),Sl(e,t,n)):(de&&a&&Yc(t),t.flags|=1,it(e,t,l,n),t.child)}function Xo(e,t,l,a,n,i){return Aa(t),t.updateQueue=null,l=Jf(t,a,l,n),Vf(e),a=us(),e!==null&&!$e?(cs(e,t,i),Sl(e,t,i)):(de&&a&&Yc(t),t.flags|=1,it(e,t,l,i),t.child)}function Vo(e,t,l,a,n){if(Aa(t),t.stateNode===null){var i=cn,u=l.contextType;typeof u=="object"&&u!==null&&(i=nt(u)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=zs,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Fc(t),u=l.contextType,i.context=typeof u=="object"&&u!==null?nt(u):cn,i.state=t.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Ss(t,l,u,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&zs.enqueueReplaceState(i,i.state,null),si(t,a,i,n),ci(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,m=Da(l,o);i.props=m;var j=i.context,O=l.contextType;u=cn,typeof O=="object"&&O!==null&&(u=nt(O));var D=l.getDerivedStateFromProps;O=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||j!==u)&&Mo(t,i,a,u),Ql=!1;var N=t.memoizedState;i.state=N,si(t,a,i,n),ci(),j=t.memoizedState,o||N!==j||Ql?(typeof D=="function"&&(Ss(t,l,D,a),j=t.memoizedState),(m=Ql||Oo(t,l,m,a,N,j,u))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=j),i.props=a,i.state=j,i.context=u,a=m):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Ic(e,t),u=t.memoizedProps,O=Da(l,u),i.props=O,D=t.pendingProps,N=i.context,j=l.contextType,m=cn,typeof j=="object"&&j!==null&&(m=nt(j)),o=l.getDerivedStateFromProps,(j=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==D||N!==m)&&Mo(t,i,a,m),Ql=!1,N=t.memoizedState,i.state=N,si(t,a,i,n),ci();var E=t.memoizedState;u!==D||N!==E||Ql||e!==null&&e.dependencies!==null&&nu(e.dependencies)?(typeof o=="function"&&(Ss(t,l,o,a),E=t.memoizedState),(O=Ql||Oo(t,l,O,a,N,E,m)||e!==null&&e.dependencies!==null&&nu(e.dependencies))?(j||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,E,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,E,m)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=E),i.props=a,i.state=E,i.context=m,a=O):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,ju(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Oa(t,e.child,null,n),t.child=Oa(t,null,l,n)):it(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Sl(e,t,n),e}function Jo(e,t,l,a){return Ta(),t.flags|=256,it(e,t,l,a),t.child}var Es={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function As(e){return{baseLanes:e,cachePool:Rf()}}function _s(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=kt),e}function Ko(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(n?Vl(t):Jl(),(e=we)?(e=lh(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bl!==null?{id:il,overflow:ul}:null,retryLane:536870912,hydrationErrors:null},l=Ef(e),l.return=t,t.child=l,at=t,we=null)):e=null,e===null)throw Gl(t);return fr(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(Jl(),n=t.mode,o=Nu({mode:"hidden",children:o},n),a=Na(a,n,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=As(l),a.childLanes=_s(e,u,l),t.memoizedState=Es,hi(null,a)):(Vl(t),ks(t,o))}var m=e.memoizedState;if(m!==null&&(o=m.dehydrated,o!==null)){if(i)t.flags&256?(Vl(t),t.flags&=-257,t=ws(e,t,l)):t.memoizedState!==null?(Jl(),t.child=e.child,t.flags|=128,t=null):(Jl(),o=a.fallback,n=t.mode,a=Nu({mode:"visible",children:a.children},n),o=Na(o,n,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Oa(t,e.child,null,l),a=t.child,a.memoizedState=As(l),a.childLanes=_s(e,u,l),t.memoizedState=Es,t=hi(null,a));else if(Vl(t),fr(o)){if(u=o.nextSibling&&o.nextSibling.dataset,u)var j=u.dgst;u=j,a=Error(s(419)),a.stack="",a.digest=u,ti({value:a,source:null,stack:null}),t=ws(e,t,l)}else if($e||on(e,t,l,!1),u=(l&e.childLanes)!==0,$e||u){if(u=_e,u!==null&&(a=Dl(u,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,ja(e,a),jt(u,e,a),Ns;rr(o)||Du(),t=ws(e,t,l)}else rr(o)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,we=Bt(o.nextSibling),at=t,de=!0,Yl=null,Ht=!1,e!==null&&kf(t,e),t=ks(t,a.children),t.flags|=4096);return t}return n?(Jl(),o=a.fallback,n=t.mode,m=e.child,j=m.sibling,a=ml(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,j!==null?o=ml(j,o):(o=Na(o,n,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,hi(null,a),a=t.child,o=e.child.memoizedState,o===null?o=As(l):(n=o.cachePool,n!==null?(m=Je._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=Rf(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=_s(e,u,l),t.memoizedState=Es,hi(e.child,a)):(Vl(t),l=e.child,e=l.sibling,l=ml(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function ks(e,t){return t=Nu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nu(e,t){return e=Tt(22,e,null,t),e.lanes=0,e}function ws(e,t,l){return Oa(t,e.child,null,l),e=ks(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $o(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Xc(e.return,t,l)}function Os(e,t,l,a,n,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n,u.treeForkCount=i)}function Wo(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=Ge.current,o=(u&2)!==0;if(o?(u=u&1|2,t.flags|=128):u&=1,Y(Ge,u),it(e,t,a,l),a=de?ei:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$o(e,l,t);else if(e.tag===19)$o(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&&du(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Os(t,!1,n,l,i,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&&du(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Os(t,!0,l,null,i,a);break;case"together":Os(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Sl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Wl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(on(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=ml(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ml(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ms(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&nu(e)))}function om(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),Ll(t,Je,e.memoizedState.cache),Ta();break;case 27:case 5:Ol(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:Ll(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,as(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Vl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Ko(e,t,l):(Vl(t),e=Sl(e,t,l),e!==null?e.sibling:null);Vl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(on(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Wo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Y(Ge,Ge.current),a)break;return null;case 22:return t.lanes=0,Lo(e,t,l,t.pendingProps);case 24:Ll(t,Je,e.memoizedState.cache)}return Sl(e,t,l)}function Fo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!Ms(e,l)&&(t.flags&128)===0)return $e=!1,om(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,de&&(t.flags&1048576)!==0&&_f(t,ei,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e=="function")Hc(e)?(a=Da(e,a),t.tag=1,t=Vo(null,t,e,a,l)):(t.tag=0,t=Ts(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===I){t.tag=11,t=Bo(null,t,e,a,l);break e}else if(n===ne){t.tag=14,t=Yo(null,t,e,a,l);break e}}throw t=st(e)||e,Error(s(306,t,""))}}return t;case 0:return Ts(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Da(a,t.pendingProps),Vo(e,t,a,n,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Ic(e,t),si(t,a,null,l);var u=t.memoizedState;if(a=u.cache,Ll(t,Je,a),a!==i.cache&&Vc(t,[Je],l,!0),ci(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Jo(e,t,a,l);break e}else if(a!==n){n=Ct(Error(s(424)),t),ti(n),t=Jo(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(we=Bt(e.firstChild),at=t,de=!0,Yl=null,Ht=!0,l=Gf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ta(),a===n){t=Sl(e,t,l);break e}it(e,t,a,l)}t=t.child}return t;case 26:return ju(e,t),e===null?(l=sh(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Yu(ae.current).createElement(l),a[Fe]=t,a[tt]=e,ut(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=sh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ol(t),e===null&&de&&(a=t.stateNode=ih(t.type,t.pendingProps,ae.current),at=t,Ht=!0,n=we,ta(t.type)?(or=n,we=Bt(a.firstChild)):we=n),it(e,t,t.pendingProps.children,l),ju(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((n=a=we)&&(a=Gm(a,t.type,t.pendingProps,Ht),a!==null?(t.stateNode=a,at=t,we=Bt(a.firstChild),Ht=!1,n=!0):n=!1),n||Gl(t)),Ol(t),n=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,a=i.children,ur(n,i)?a=null:u!==null&&ur(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=is(e,t,lm,null,null,l),_i._currentValue=n),ju(e,t),it(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=we)&&(l=Lm(l,t.pendingProps,Ht),l!==null?(t.stateNode=l,at=t,we=null,e=!0):e=!1),e||Gl(t)),null;case 13:return Ko(e,t,l);case 4:return et(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Oa(t,null,a,l):it(e,t,a,l),t.child;case 11:return Bo(e,t,t.type,t.pendingProps,l);case 7:return it(e,t,t.pendingProps,l),t.child;case 8:return it(e,t,t.pendingProps.children,l),t.child;case 12:return it(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Ll(t,t.type,a.value),it(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Aa(t),n=nt(n),a=a(n),t.flags|=1,it(e,t,a,l),t.child;case 14:return Yo(e,t,t.type,t.pendingProps,l);case 15:return Go(e,t,t.type,t.pendingProps,l);case 19:return Wo(e,t,l);case 31:return fm(e,t,l);case 22:return Lo(e,t,l,t.pendingProps);case 24:return Aa(t),a=nt(Je),e===null?(n=$c(),n===null&&(n=_e,i=Jc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Fc(t),Ll(t,Je,n)):((e.lanes&l)!==0&&(Ic(e,t),si(t,null,null,l),ci()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ll(t,Je,a)):(a=i.cache,Ll(t,Je,a),a!==n.cache&&Vc(t,[Je],l,!0))),it(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function zl(e){e.flags|=4}function Ds(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(Nd())e.flags|=8192;else throw wa=su,Wc}else e.flags&=-16777217}function Io(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hh(t))if(Nd())e.flags|=8192;else throw wa=su,Wc}function Tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qn():536870912,e.lanes|=t,jn|=t)}function pi(e,t){if(!de)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 Oe(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 dm(e,t,l){var a=t.pendingProps;switch(Gc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xl(Je),Re(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(fn(t)?zl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qc())),Oe(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(zl(t),i!==null?(Oe(t),Io(t,i)):(Oe(t),Ds(t,n,null,a,l))):i?i!==e.memoizedState?(zl(t),Oe(t),Io(t,i)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&zl(t),Oe(t),Ds(t,n,e,a,l)),null;case 27:if(Ba(t),l=ae.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&zl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}e=Q.current,fn(t)?wf(t):(e=ih(n,a,l),t.stateNode=e,zl(t))}return Oe(t),null;case 5:if(Ba(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&zl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}if(i=Q.current,fn(t))wf(t);else{var u=Yu(ae.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}i[Fe]=t,i[tt]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=i;e:switch(ut(i,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&&zl(t)}}return Oe(t),Ds(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&zl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,fn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=at,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Kd(e.nodeValue,l)),e||Gl(t,!0)}else e=Yu(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=fn(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[Fe]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=Qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=fn(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[Fe]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=Qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(At(t),t):(At(t),null)}return At(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),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Tu(t,t.updateQueue),Oe(t),null);case 4:return Re(),e===null&&tr(t.stateNode.containerInfo),Oe(t),null;case 10:return xl(t.type),Oe(t),null;case 19:if(C(Ge),a=t.memoizedState,a===null)return Oe(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)pi(a,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=du(e),i!==null){for(t.flags|=128,pi(a,!1),e=i.updateQueue,t.updateQueue=e,Tu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Tf(l,e),l=l.sibling;return Y(Ge,Ge.current&1|2),de&&gl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&dt()>wu&&(t.flags|=128,n=!0,pi(a,!1),t.lanes=4194304)}else{if(!n)if(e=du(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Tu(t,e),pi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!de)return Oe(t),null}else 2*dt()-a.renderingStartTime>wu&&l!==536870912&&(t.flags|=128,n=!0,pi(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=dt(),e.sibling=null,l=Ge.current,Y(Ge,n?l&1|2:l&1),de&&gl(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return At(t),ls(),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&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&Tu(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&&C(_a),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),xl(Je),Oe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function hm(e,t){switch(Gc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xl(Je),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ba(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(s(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return C(Ge),null;case 4:return Re(),null;case 10:return xl(t.type),null;case 22:case 23:return At(t),ls(),e!==null&&C(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xl(Je),null;case 25:return null;default:return null}}function Po(e,t){switch(Gc(t),t.tag){case 3:xl(Je),Re();break;case 26:case 27:case 5:Ba(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:C(Ge);break;case 10:xl(t.type);break;case 22:case 23:At(t),ls(),e!==null&&C(_a);break;case 24:xl(Je)}}function mi(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 i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(o){Se(t,t.return,o)}}function Kl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var u=a.inst,o=u.destroy;if(o!==void 0){u.destroy=void 0,n=t;var m=l,j=o;try{j()}catch(O){Se(n,m,O)}}}a=a.next}while(a!==i)}}catch(O){Se(t,t.return,O)}}function ed(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Qf(t,l)}catch(a){Se(e,e.return,a)}}}function td(e,t,l){l.props=Da(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Se(e,t,a)}}function gi(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){Se(e,t,n)}}function cl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Se(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){Se(e,t,n)}else l.current=null}function ld(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){Se(e,e.return,n)}}function Cs(e,t,l){try{var a=e.stateNode;Rm(a,e.type,l,t),a[tt]=t}catch(n){Se(e,e.return,n)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ta(e.type)||e.tag===4}function Rs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(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&&ta(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 Us(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=hl));else if(a!==4&&(a===27&&ta(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Us(e,t,l),e=e.sibling;e!==null;)Us(e,t,l),e=e.sibling}function Eu(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&&ta(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Eu(e,t,l),e=e.sibling;e!==null;)Eu(e,t,l),e=e.sibling}function nd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);ut(t,a,l),t[Fe]=e,t[tt]=l}catch(i){Se(e,e.return,i)}}var jl=!1,We=!1,Hs=!1,id=typeof WeakSet=="function"?WeakSet:Set,lt=null;function pm(e,t){if(e=e.containerInfo,nr=Ju,e=gf(e),wc(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,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var u=0,o=-1,m=-1,j=0,O=0,D=e,N=null;t:for(;;){for(var E;D!==l||n!==0&&D.nodeType!==3||(o=u+n),D!==i||a!==0&&D.nodeType!==3||(m=u+a),D.nodeType===3&&(u+=D.nodeValue.length),(E=D.firstChild)!==null;)N=D,D=E;for(;;){if(D===e)break t;if(N===l&&++j===n&&(o=u),N===i&&++O===a&&(m=u),(E=D.nextSibling)!==null)break;D=N,N=D.parentNode}D=E}l=o===-1||m===-1?null:{start:o,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(ir={focusedElem:e,selectionRange:l},Ju=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,i=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&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var Z=Da(l.type,n);e=a.getSnapshotBeforeUpdate(Z,i),a.__reactInternalSnapshotBeforeUpdate=e}catch($){Se(l,l.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)sr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sr(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,lt=e;break}lt=t.return}}function ud(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Tl(e,l),a&4&&mi(5,l);break;case 1:if(Tl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(u){Se(l,l.return,u)}else{var n=Da(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){Se(l,l.return,u)}}a&64&&ed(l),a&512&&gi(l,l.return);break;case 3:if(Tl(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{Qf(e,t)}catch(u){Se(l,l.return,u)}}break;case 27:t===null&&a&4&&nd(l);case 26:case 5:Tl(e,l),t===null&&a&4&&ld(l),a&512&&gi(l,l.return);break;case 12:Tl(e,l);break;case 31:Tl(e,l),a&4&&rd(e,l);break;case 13:Tl(e,l),a&4&&fd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=jm.bind(null,l),Qm(e,l))));break;case 22:if(a=l.memoizedState!==null||jl,!a){t=t!==null&&t.memoizedState!==null||We,n=jl;var i=We;jl=a,(We=t)&&!i?El(e,l,(l.subtreeFlags&8772)!==0):Tl(e,l),jl=n,We=i}break;case 30:break;default:Tl(e,l)}}function cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ol(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 De=null,bt=!1;function Nl(e,t,l){for(l=l.child;l!==null;)sd(e,t,l),l=l.sibling}function sd(e,t,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(fa,l)}catch{}switch(l.tag){case 26:We||cl(l,t),Nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:We||cl(l,t);var a=De,n=bt;ta(l.type)&&(De=l.stateNode,bt=!1),Nl(e,t,l),Ti(l.stateNode),De=a,bt=n;break;case 5:We||cl(l,t);case 6:if(a=De,n=bt,De=null,Nl(e,t,l),De=a,bt=n,De!==null)if(bt)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(l.stateNode)}catch(i){Se(l,t,i)}else try{De.removeChild(l.stateNode)}catch(i){Se(l,t,i)}break;case 18:De!==null&&(bt?(e=De,eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),On(e)):eh(De,l.stateNode));break;case 4:a=De,n=bt,De=l.stateNode.containerInfo,bt=!0,Nl(e,t,l),De=a,bt=n;break;case 0:case 11:case 14:case 15:Kl(2,l,t),We||Kl(4,l,t),Nl(e,t,l);break;case 1:We||(cl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&td(l,t,a)),Nl(e,t,l);break;case 21:Nl(e,t,l);break;case 22:We=(a=We)||l.memoizedState!==null,Nl(e,t,l),We=a;break;default:Nl(e,t,l)}}function rd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{On(e)}catch(l){Se(t,t.return,l)}}}function fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{On(e)}catch(l){Se(t,t.return,l)}}function mm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new id),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new id),t;default:throw Error(s(435,e.tag))}}function Au(e,t){var l=mm(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Nm.bind(null,e,a);a.then(n,n)}})}function vt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,u=t,o=u;e:for(;o!==null;){switch(o.tag){case 27:if(ta(o.type)){De=o.stateNode,bt=!1;break e}break;case 5:De=o.stateNode,bt=!1;break e;case 3:case 4:De=o.stateNode.containerInfo,bt=!0;break e}o=o.return}if(De===null)throw Error(s(160));sd(i,u,n),De=null,bt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)od(t,e),t=t.sibling}var Jt=null;function od(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),St(e),a&4&&(Kl(3,e,e.return),mi(3,e),Kl(5,e,e.return));break;case 1:vt(t,e),St(e),a&512&&(We||l===null||cl(l,l.return)),a&64&&jl&&(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=Jt;if(vt(t,e),St(e),a&512&&(We||l===null||cl(l,l.return)),a&4){var i=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":i=n.getElementsByTagName("title")[0],(!i||i[Lt]||i[Fe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),ut(i,a,l),i[Fe]=e,Ye(i),a=i;break e;case"link":var u=oh("link","href",n).get(a+(l.href||""));if(u){for(var o=0;o<u.length;o++)if(i=u[o],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(o,1);break t}}i=n.createElement(a),ut(i,a,l),n.head.appendChild(i);break;case"meta":if(u=oh("meta","content",n).get(a+(l.content||""))){for(o=0;o<u.length;o++)if(i=u[o],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(o,1);break t}}i=n.createElement(a),ut(i,a,l),n.head.appendChild(i);break;default:throw Error(s(468,a))}i[Fe]=e,Ye(i),a=i}e.stateNode=a}else dh(n,e.type,e.stateNode);else e.stateNode=fh(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?dh(n,e.type,e.stateNode):fh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Cs(e,e.memoizedProps,l.memoizedProps)}break;case 27:vt(t,e),St(e),a&512&&(We||l===null||cl(l,l.return)),l!==null&&a&4&&Cs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(vt(t,e),St(e),a&512&&(We||l===null||cl(l,l.return)),e.flags&32){n=e.stateNode;try{He(n,"")}catch(Z){Se(e,e.return,Z)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Cs(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Hs=!0);break;case 6:if(vt(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(Z){Se(e,e.return,Z)}}break;case 3:if(Qu=null,n=Jt,Jt=Gu(t.containerInfo),vt(t,e),Jt=n,St(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{On(t.containerInfo)}catch(Z){Se(e,e.return,Z)}Hs&&(Hs=!1,dd(e));break;case 4:a=Jt,Jt=Gu(e.stateNode.containerInfo),vt(t,e),St(e),Jt=a;break;case 12:vt(t,e),St(e);break;case 31:vt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Au(e,a)));break;case 13:vt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ku=dt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Au(e,a)));break;case 22:n=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,j=jl,O=We;if(jl=j||n,We=O||m,vt(t,e),We=O,jl=j,St(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||m||jl||We||Ca(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(i=m.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{o=m.stateNode;var D=m.memoizedProps.style,N=D!=null&&D.hasOwnProperty("display")?D.display:null;o.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(Z){Se(m,m.return,Z)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(Z){Se(m,m.return,Z)}}}else if(t.tag===18){if(l===null){m=t;try{var E=m.stateNode;n?th(E,!0):th(m.stateNode,!1)}catch(Z){Se(m,m.return,Z)}}}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,Au(e,l))));break;case 19:vt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Au(e,a)));break;case 30:break;case 21:break;default:vt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ad(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var n=l.stateNode,i=Rs(e);Eu(e,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(He(u,""),l.flags&=-33);var o=Rs(e);Eu(e,o,u);break;case 3:case 4:var m=l.stateNode.containerInfo,j=Rs(e);Us(e,j,m);break;default:throw Error(s(161))}}catch(O){Se(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ud(e,t.alternate,t),t=t.sibling}function Ca(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Kl(4,t,t.return),Ca(t);break;case 1:cl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&td(t,t.return,l),Ca(t);break;case 27:Ti(t.stateNode);case 26:case 5:cl(t,t.return),Ca(t);break;case 22:t.memoizedState===null&&Ca(t);break;case 30:Ca(t);break;default:Ca(t)}e=e.sibling}}function El(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:El(n,i,l),mi(4,i);break;case 1:if(El(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(j){Se(a,a.return,j)}if(a=i,n=a.updateQueue,n!==null){var o=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)Lf(m[n],o)}catch(j){Se(a,a.return,j)}}l&&u&64&&ed(i),gi(i,i.return);break;case 27:nd(i);case 26:case 5:El(n,i,l),l&&a===null&&u&4&&ld(i),gi(i,i.return);break;case 12:El(n,i,l);break;case 31:El(n,i,l),l&&u&4&&rd(n,i);break;case 13:El(n,i,l),l&&u&4&&fd(n,i);break;case 22:i.memoizedState===null&&El(n,i,l),gi(i,i.return);break;case 30:break;default:El(n,i,l)}t=t.sibling}}function qs(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&&li(l))}function Bs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function Kt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hd(e,t,l,a),t=t.sibling}function hd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,l,a),n&2048&&mi(9,t);break;case 1:Kt(e,t,l,a);break;case 3:Kt(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&&li(e)));break;case 12:if(n&2048){Kt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,o=i.onPostCommit;typeof o=="function"&&o(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Se(t,t.return,m)}}else Kt(e,t,l,a);break;case 31:Kt(e,t,l,a);break;case 13:Kt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?Kt(e,t,l,a):yi(e,t):i._visibility&2?Kt(e,t,l,a):(i._visibility|=2,vn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&qs(u,t);break;case 24:Kt(e,t,l,a),n&2048&&Bs(t.alternate,t);break;default:Kt(e,t,l,a)}}function vn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,u=t,o=l,m=a,j=u.flags;switch(u.tag){case 0:case 11:case 15:vn(i,u,o,m,n),mi(8,u);break;case 23:break;case 22:var O=u.stateNode;u.memoizedState!==null?O._visibility&2?vn(i,u,o,m,n):yi(i,u):(O._visibility|=2,vn(i,u,o,m,n)),n&&j&2048&&qs(u.alternate,u);break;case 24:vn(i,u,o,m,n),n&&j&2048&&Bs(u.alternate,u);break;default:vn(i,u,o,m,n)}t=t.sibling}}function yi(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:yi(l,a),n&2048&&qs(a.alternate,a);break;case 24:yi(l,a),n&2048&&Bs(a.alternate,a);break;default:yi(l,a)}t=t.sibling}}var xi=8192;function Sn(e,t,l){if(e.subtreeFlags&xi)for(e=e.child;e!==null;)pd(e,t,l),e=e.sibling}function pd(e,t,l){switch(e.tag){case 26:Sn(e,t,l),e.flags&xi&&e.memoizedState!==null&&t0(l,Jt,e.memoizedState,e.memoizedProps);break;case 5:Sn(e,t,l);break;case 3:case 4:var a=Jt;Jt=Gu(e.stateNode.containerInfo),Sn(e,t,l),Jt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=xi,xi=16777216,Sn(e,t,l),xi=a):Sn(e,t,l));break;default:Sn(e,t,l)}}function md(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 bi(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];lt=a,yd(a,e)}md(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gd(e),e=e.sibling}function gd(e){switch(e.tag){case 0:case 11:case 15:bi(e),e.flags&2048&&Kl(9,e,e.return);break;case 3:bi(e);break;case 12:bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_u(e)):bi(e);break;default:bi(e)}}function _u(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];lt=a,yd(a,e)}md(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Kl(8,t,t.return),_u(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,_u(t));break;default:_u(t)}e=e.sibling}}function yd(e,t){for(;lt!==null;){var l=lt;switch(l.tag){case 0:case 11:case 15:Kl(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:li(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,lt=a;else e:for(l=e;lt!==null;){a=lt;var n=a.sibling,i=a.return;if(cd(a),a===l){lt=null;break e}if(n!==null){n.return=i,lt=n;break e}lt=i}}}var gm={getCacheForType:function(e){var t=nt(Je),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return nt(Je).controller.signal}},ym=typeof WeakMap=="function"?WeakMap:Map,be=0,_e=null,ie=null,se=0,ve=0,_t=null,$l=!1,zn=!1,Ys=!1,Al=0,Be=0,Wl=0,Ra=0,Gs=0,kt=0,jn=0,vi=null,zt=null,Ls=!1,ku=0,xd=0,wu=1/0,Ou=null,Fl=null,Ie=0,Il=null,Nn=null,_l=0,Qs=0,Zs=null,bd=null,Si=0,Xs=null;function wt(){return(be&2)!==0&&se!==0?se&-se:_.T!==null?Fs():pa()}function vd(){if(kt===0)if((se&536870912)===0||de){var e=da;da<<=1,(da&3932160)===0&&(da=262144),kt=e}else kt=536870912;return e=Et.current,e!==null&&(e.flags|=32),kt}function jt(e,t,l){(e===_e&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Tn(e,0),Pl(e,se,kt,!1)),tl(e,l),((be&2)===0||e!==_e)&&(e===_e&&((be&2)===0&&(Ra|=l),Be===4&&Pl(e,se,kt,!1)),sl(e))}function Sd(e,t,l){if((be&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||gt(e,t),n=a?vm(e,t):Js(e,t,!0),i=a;do{if(n===0){zn&&!a&&Pl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!xm(l)){n=Js(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var o=e;n=vi;var m=o.current.memoizedState.isDehydrated;if(m&&(Tn(o,u).flags|=256),u=Js(o,u,!1),u!==2){if(Ys&&!m){o.errorRecoveryDisabledLanes|=i,Ra|=i,n=4;break e}i=zt,zt=n,i!==null&&(zt===null?zt=i:zt.push.apply(zt,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){Tn(e,0),Pl(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Pl(a,t,kt,!$l);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=ku+300-dt(),10<n)){if(Pl(a,t,kt,!$l),Ja(a,0,!0)!==0)break e;_l=t,a.timeoutHandle=Id(zd.bind(null,a,l,zt,Ou,Ls,t,kt,Ra,jn,$l,i,"Throttled",-0,0),n);break e}zd(a,l,zt,Ou,Ls,t,kt,Ra,jn,$l,i,null,-0,0)}}break}while(!0);sl(e)}function zd(e,t,l,a,n,i,u,o,m,j,O,D,N,E){if(e.timeoutHandle=-1,D=t.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hl},pd(t,i,D);var Z=(i&62914560)===i?ku-dt():(i&4194048)===i?xd-dt():0;if(Z=l0(D,Z),Z!==null){_l=i,e.cancelPendingCommit=Z(wd.bind(null,e,t,i,l,a,n,u,o,m,O,D,null,N,E)),Pl(e,i,u,!j);return}}wd(e,t,i,l,a,n,u,o,m)}function xm(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],i=n.getSnapshot;n=n.value;try{if(!Nt(i(),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 Pl(e,t,l,a){t&=~Gs,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-pt(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&Ka(e,l,t)}function Mu(){return(be&6)===0?(zi(0),!1):!0}function Vs(){if(ie!==null){if(ve===0)var e=ie.return;else e=ie,yl=Ea=null,ss(e),mn=null,ni=0,e=ie;for(;e!==null;)Po(e.alternate,e),e=e.return;ie=null}}function Tn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,qm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),_l=0,Vs(),_e=e,ie=l=ml(e.current,null),se=t,ve=0,_t=null,$l=!1,zn=gt(e,t),Ys=!1,jn=kt=Gs=Ra=Wl=Be=0,zt=vi=null,Ls=!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-pt(a),i=1<<n;t|=e[n],a&=~i}return Al=t,Pi(),l}function jd(e,t){ee=null,_.H=di,t===pn||t===cu?(t=qf(),ve=3):t===Wc?(t=qf(),ve=4):ve=t===Ns?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,ie===null&&(Be=1,Su(e,Ct(t,e.current)))}function Nd(){var e=Et.current;return e===null?!0:(se&4194048)===se?qt===null:(se&62914560)===se||(se&536870912)!==0?e===qt:!1}function Td(){var e=_.H;return _.H=di,e===null?di:e}function Ed(){var e=_.A;return _.A=gm,e}function Du(){Be=4,$l||(se&4194048)!==se&&Et.current!==null||(zn=!0),(Wl&134217727)===0&&(Ra&134217727)===0||_e===null||Pl(_e,se,kt,!1)}function Js(e,t,l){var a=be;be|=2;var n=Td(),i=Ed();(_e!==e||se!==t)&&(Ou=null,Tn(e,t)),t=!1;var u=Be;e:do try{if(ve!==0&&ie!==null){var o=ie,m=_t;switch(ve){case 8:Vs(),u=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var j=ve;if(ve=0,_t=null,En(e,o,m,j),l&&zn){u=0;break e}break;default:j=ve,ve=0,_t=null,En(e,o,m,j)}}bm(),u=Be;break}catch(O){jd(e,O)}while(!0);return t&&e.shellSuspendCounter++,yl=Ea=null,be=a,_.H=n,_.A=i,ie===null&&(_e=null,se=0,Pi()),u}function bm(){for(;ie!==null;)Ad(ie)}function vm(e,t){var l=be;be|=2;var a=Td(),n=Ed();_e!==e||se!==t?(Ou=null,wu=dt()+500,Tn(e,t)):zn=gt(e,t);e:do try{if(ve!==0&&ie!==null){t=ie;var i=_t;t:switch(ve){case 1:ve=0,_t=null,En(e,t,i,1);break;case 2:case 9:if(Uf(i)){ve=0,_t=null,_d(t);break}t=function(){ve!==2&&ve!==9||_e!==e||(ve=7),sl(e)},i.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Uf(i)?(ve=0,_t=null,_d(t)):(ve=0,_t=null,En(e,t,i,7));break;case 5:var u=null;switch(ie.tag){case 26:u=ie.memoizedState;case 5:case 27:var o=ie;if(u?hh(u):o.stateNode.complete){ve=0,_t=null;var m=o.sibling;if(m!==null)ie=m;else{var j=o.return;j!==null?(ie=j,Cu(j)):ie=null}break t}}ve=0,_t=null,En(e,t,i,5);break;case 6:ve=0,_t=null,En(e,t,i,6);break;case 8:Vs(),Be=6;break e;default:throw Error(s(462))}}Sm();break}catch(O){jd(e,O)}while(!0);return yl=Ea=null,_.H=a,_.A=n,be=l,ie!==null?0:(_e=null,se=0,Pi(),Be)}function Sm(){for(;ie!==null&&!Un();)Ad(ie)}function Ad(e){var t=Fo(e.alternate,e,Al);e.memoizedProps=e.pendingProps,t===null?Cu(e):ie=t}function _d(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Xo(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=Xo(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:ss(t);default:Po(l,t),t=ie=Tf(t,Al),t=Fo(l,t,Al)}e.memoizedProps=e.pendingProps,t===null?Cu(e):ie=t}function En(e,t,l,a){yl=Ea=null,ss(t),mn=null,ni=0;var n=t.return;try{if(rm(e,n,t,l,se)){Be=1,Su(e,Ct(l,e.current)),ie=null;return}}catch(i){if(n!==null)throw ie=n,i;Be=1,Su(e,Ct(l,e.current)),ie=null;return}t.flags&32768?(de||a===1?e=!0:zn||(se&536870912)!==0?e=!1:($l=e=!0,(a===2||a===9||a===3||a===6)&&(a=Et.current,a!==null&&a.tag===13&&(a.flags|=16384))),kd(t,e)):Cu(t)}function Cu(e){var t=e;do{if((t.flags&32768)!==0){kd(t,$l);return}e=t.return;var l=dm(t.alternate,t,Al);if(l!==null){ie=l;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);Be===0&&(Be=5)}function kd(e,t){do{var l=hm(e.alternate,e);if(l!==null){l.flags&=32767,ie=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=l}while(e!==null);Be=6,ie=null}function wd(e,t,l,a,n,i,u,o,m){e.cancelPendingCommit=null;do Ru();while(Ie!==0);if((be&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(i=t.lanes|t.childLanes,i|=Rc,dc(e,l,i,u,o,m),e===_e&&(ie=_e=null,se=0),Nn=t,Il=e,_l=l,Qs=i,Zs=n,bd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tm(Ml,function(){return Rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,n=L.p,L.p=2,u=be,be|=4;try{pm(e,t,l)}finally{be=u,L.p=n,_.T=a}}Ie=1,Od(),Md(),Dd()}}function Od(){if(Ie===1){Ie=0;var e=Il,t=Nn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=L.p;L.p=2;var n=be;be|=4;try{od(t,e);var i=ir,u=gf(e.containerInfo),o=i.focusedElem,m=i.selectionRange;if(u!==o&&o&&o.ownerDocument&&mf(o.ownerDocument.documentElement,o)){if(m!==null&&wc(o)){var j=m.start,O=m.end;if(O===void 0&&(O=j),"selectionStart"in o)o.selectionStart=j,o.selectionEnd=Math.min(O,o.value.length);else{var D=o.ownerDocument||document,N=D&&D.defaultView||window;if(N.getSelection){var E=N.getSelection(),Z=o.textContent.length,$=Math.min(m.start,Z),Te=m.end===void 0?$:Math.min(m.end,Z);!E.extend&&$>Te&&(u=Te,Te=$,$=u);var S=pf(o,$),y=pf(o,Te);if(S&&y&&(E.rangeCount!==1||E.anchorNode!==S.node||E.anchorOffset!==S.offset||E.focusNode!==y.node||E.focusOffset!==y.offset)){var z=D.createRange();z.setStart(S.node,S.offset),E.removeAllRanges(),$>Te?(E.addRange(z),E.extend(y.node,y.offset)):(z.setEnd(y.node,y.offset),E.addRange(z))}}}}for(D=[],E=o;E=E.parentNode;)E.nodeType===1&&D.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<D.length;o++){var M=D[o];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}Ju=!!nr,ir=nr=null}finally{be=n,L.p=a,_.T=l}}e.current=t,Ie=2}}function Md(){if(Ie===2){Ie=0;var e=Il,t=Nn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=L.p;L.p=2;var n=be;be|=4;try{ud(e,t.alternate,t)}finally{be=n,L.p=a,_.T=l}}Ie=3}}function Dd(){if(Ie===4||Ie===3){Ie=0,sc();var e=Il,t=Nn,l=_l,a=bd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,Nn=Il=null,Cd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Fl=null),ll(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(fa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,n=L.p,L.p=2,_.T=null;try{for(var i=e.onRecoverableError,u=0;u<a.length;u++){var o=a[u];i(o.value,{componentStack:o.stack})}}finally{_.T=t,L.p=n}}(_l&3)!==0&&Ru(),sl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Xs?Si++:(Si=0,Xs=e):Si=0,zi(0)}}function Cd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function Ru(){return Od(),Md(),Dd(),Rd()}function Rd(){if(Ie!==5)return!1;var e=Il,t=Qs;Qs=0;var l=ll(_l),a=_.T,n=L.p;try{L.p=32>l?32:l,_.T=null,l=Zs,Zs=null;var i=Il,u=_l;if(Ie=0,Nn=Il=null,_l=0,(be&6)!==0)throw Error(s(331));var o=be;if(be|=4,gd(i.current),hd(i,i.current,u,l),be=o,zi(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(fa,i)}catch{}return!0}finally{L.p=n,_.T=a,Cd(e,t)}}function Ud(e,t,l){t=Ct(l,t),t=js(e.stateNode,t,2),e=Xl(e,t,2),e!==null&&(tl(e,2),sl(e))}function Se(e,t,l){if(e.tag===3)Ud(e,e,l);else for(;t!==null;){if(t.tag===3){Ud(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Fl===null||!Fl.has(a))){e=Ct(l,e),l=Ho(2),a=Xl(t,l,2),a!==null&&(qo(l,a,t,e),tl(a,2),sl(a));break}}t=t.return}}function Ks(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new ym;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)||(Ys=!0,n.add(l),e=zm.bind(null,e,t,l),t.then(e,e))}function zm(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,_e===e&&(se&l)===l&&(Be===4||Be===3&&(se&62914560)===se&&300>dt()-ku?(be&2)===0&&Tn(e,0):Gs|=l,jn===se&&(jn=0)),sl(e)}function Hd(e,t){t===0&&(t=qn()),e=ja(e,t),e!==null&&(tl(e,t),sl(e))}function jm(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hd(e,l)}function Nm(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),Hd(e,l)}function Tm(e,t){return Qa(e,t)}var Uu=null,An=null,$s=!1,Hu=!1,Ws=!1,ea=0;function sl(e){e!==An&&e.next===null&&(An===null?Uu=An=e:An=An.next=e),Hu=!0,$s||($s=!0,Am())}function zi(e,t){if(!Ws&&Hu){Ws=!0;do for(var l=!1,a=Uu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-pt(42|e)+1)-1,i&=n&~(u&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Gd(a,i))}else i=se,i=Ja(a,a===_e?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||gt(a,i)||(l=!0,Gd(a,i));a=a.next}while(l);Ws=!1}}function Em(){qd()}function qd(){Hu=$s=!1;var e=0;ea!==0&&Hm()&&(e=ea);for(var t=dt(),l=null,a=Uu;a!==null;){var n=a.next,i=Bd(a,t);i===0?(a.next=null,l===null?Uu=n:l.next=n,n===null&&(An=l)):(l=a,(e!==0||(i&3)!==0)&&(Hu=!0)),a=n}Ie!==0&&Ie!==5||zi(e),ea!==0&&(ea=0)}function Bd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-pt(i),o=1<<u,m=n[u];m===-1?((o&l)===0||(o&a)!==0)&&(n[u]=Li(o,t)):m<=t&&(e.expiredLanes|=o),i&=~o}if(t=_e,l=se,l=Ja(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&It(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||gt(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&It(a),ll(l)){case 2:case 8:l=Ot;break;case 32:l=Ml;break;case 268435456:l=Bi;break;default:l=Ml}return a=Yd.bind(null,e),l=Qa(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&It(a),e.callbackPriority=2,e.callbackNode=null,2}function Yd(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ru()&&e.callbackNode!==l)return null;var a=se;return a=Ja(e,e===_e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Sd(e,a,t),Bd(e,dt()),e.callbackNode!=null&&e.callbackNode===l?Yd.bind(null,e):null)}function Gd(e,t){if(Ru())return null;Sd(e,t,!0)}function Am(){Bm(function(){(be&6)!==0?Qa(Za,Em):qd()})}function Fs(){if(ea===0){var e=dn;e===0&&(e=oa,oa<<=1,(oa&261888)===0&&(oa=256)),ea=e}return ea}function Ld(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pa(""+e)}function Qd(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 _m(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Ld((n[tt]||null).action),u=a.submitter;u&&(t=(t=u[tt]||null)?Ld(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var o=new $i("action","action",null,a,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ea!==0){var m=u?Qd(n,u):new FormData(n);ys(l,{pending:!0,data:m,method:n.method,action:i},null,m)}}else typeof i=="function"&&(o.preventDefault(),m=u?Qd(n,u):new FormData(n),ys(l,{pending:!0,data:m,method:n.method,action:i},i,m))},currentTarget:n}]})}}for(var Is=0;Is<Cc.length;Is++){var Ps=Cc[Is],km=Ps.toLowerCase(),wm=Ps[0].toUpperCase()+Ps.slice(1);Vt(km,"on"+wm)}Vt(bf,"onAnimationEnd"),Vt(vf,"onAnimationIteration"),Vt(Sf,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(Vp,"onTransitionRun"),Vt(Jp,"onTransitionStart"),Vt(Kp,"onTransitionCancel"),Vt(zf,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),Om=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ji));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 i=void 0;if(t)for(var u=a.length-1;0<=u;u--){var o=a[u],m=o.instance,j=o.currentTarget;if(o=o.listener,m!==i&&n.isPropagationStopped())break e;i=o,n.currentTarget=j;try{i(n)}catch(O){Ii(O)}n.currentTarget=null,i=m}else for(u=0;u<a.length;u++){if(o=a[u],m=o.instance,j=o.currentTarget,o=o.listener,m!==i&&n.isPropagationStopped())break e;i=o,n.currentTarget=j;try{i(n)}catch(O){Ii(O)}n.currentTarget=null,i=m}}}}function ue(e,t){var l=t[Bn];l===void 0&&(l=t[Bn]=new Set);var a=e+"__bubble";l.has(a)||(Xd(t,e,2,!1),l.add(a))}function er(e,t,l){var a=0;t&&(a|=4),Xd(l,e,a,t)}var qu="_reactListening"+Math.random().toString(36).slice(2);function tr(e){if(!e[qu]){e[qu]=!0,Zi.forEach(function(l){l!=="selectionchange"&&(Om.has(l)||er(l,!1,e),er(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qu]||(t[qu]=!0,er("selectionchange",!1,t))}}function Xd(e,t,l,a){switch(vh(t)){case 2:var n=i0;break;case 8:n=u0;break;default:n=gr}l=n.bind(null,t,l,e),n=void 0,!Sc||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 lr(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var o=a.stateNode.containerInfo;if(o===n)break;if(u===4)for(u=a.return;u!==null;){var m=u.tag;if((m===3||m===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;o!==null;){if(u=Qt(o),u===null)return;if(m=u.tag,m===5||m===6||m===26||m===27){a=i=u;continue e}o=o.parentNode}}a=a.return}Kr(function(){var j=i,O=bc(l),D=[];e:{var N=jf.get(e);if(N!==void 0){var E=$i,Z=e;switch(e){case"keypress":if(Ji(l)===0)break e;case"keydown":case"keyup":E=Np;break;case"focusin":Z="focus",E=Tc;break;case"focusout":Z="blur",E=Tc;break;case"beforeblur":case"afterblur":E=Tc;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":E=Fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=dp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=Ap;break;case bf:case vf:case Sf:E=mp;break;case zf:E=kp;break;case"scroll":case"scrollend":E=fp;break;case"wheel":E=Op;break;case"copy":case"cut":case"paste":E=yp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=Pr;break;case"toggle":case"beforetoggle":E=Dp}var $=(t&4)!==0,Te=!$&&(e==="scroll"||e==="scrollend"),S=$?N!==null?N+"Capture":null:N;$=[];for(var y=j,z;y!==null;){var M=y;if(z=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||z===null||S===null||(M=Xn(y,S),M!=null&&$.push(Ni(y,M,z))),Te)break;y=y.return}0<$.length&&(N=new E(N,Z,null,l,O),D.push({event:N,listeners:$}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",N&&l!==xc&&(Z=l.relatedTarget||l.fromElement)&&(Qt(Z)||Z[Cl]))break e;if((E||N)&&(N=O.window===O?O:(N=O.ownerDocument)?N.defaultView||N.parentWindow:window,E?(Z=l.relatedTarget||l.toElement,E=j,Z=Z?Qt(Z):null,Z!==null&&(Te=b(Z),$=Z.tag,Z!==Te||$!==5&&$!==27&&$!==6)&&(Z=null)):(E=null,Z=j),E!==Z)){if($=Fr,M="onMouseLeave",S="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&($=Pr,M="onPointerLeave",S="onPointerEnter",y="pointer"),Te=E==null?N:ma(E),z=Z==null?N:ma(Z),N=new $(M,y+"leave",E,l,O),N.target=Te,N.relatedTarget=z,M=null,Qt(O)===j&&($=new $(S,y+"enter",Z,l,O),$.target=z,$.relatedTarget=Te,M=$),Te=M,E&&Z)t:{for($=Mm,S=E,y=Z,z=0,M=S;M;M=$(M))z++;M=0;for(var J=y;J;J=$(J))M++;for(;0<z-M;)S=$(S),z--;for(;0<M-z;)y=$(y),M--;for(;z--;){if(S===y||y!==null&&S===y.alternate){$=S;break t}S=$(S),y=$(y)}$=null}else $=null;E!==null&&Vd(D,N,E,$,!1),Z!==null&&Te!==null&&Vd(D,Te,Z,$,!0)}}e:{if(N=j?ma(j):window,E=N.nodeName&&N.nodeName.toLowerCase(),E==="select"||E==="input"&&N.type==="file")var me=sf;else if(uf(N))if(rf)me=Qp;else{me=Gp;var V=Yp}else E=N.nodeName,!E||E.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?j&&Ia(j.elementType)&&(me=sf):me=Lp;if(me&&(me=me(e,j))){cf(D,me,l,O);break e}V&&V(e,N,j),e==="focusout"&&j&&N.type==="number"&&j.memoizedProps.value!=null&&q(N,"number",N.value)}switch(V=j?ma(j):window,e){case"focusin":(uf(V)||V.contentEditable==="true")&&(an=V,Oc=j,Pn=null);break;case"focusout":Pn=Oc=an=null;break;case"mousedown":Mc=!0;break;case"contextmenu":case"mouseup":case"dragend":Mc=!1,yf(D,l,O);break;case"selectionchange":if(Xp)break;case"keydown":case"keyup":yf(D,l,O)}var te;if(Ac)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else ln?af(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(ef&&l.locale!=="ko"&&(ln||re!=="onCompositionStart"?re==="onCompositionEnd"&&ln&&(te=$r()):(ql=O,zc="value"in ql?ql.value:ql.textContent,ln=!0)),V=Bu(j,re),0<V.length&&(re=new Ir(re,e,null,l,O),D.push({event:re,listeners:V}),te?re.data=te:(te=nf(l),te!==null&&(re.data=te)))),(te=Rp?Up(e,l):Hp(e,l))&&(re=Bu(j,"onBeforeInput"),0<re.length&&(V=new Ir("onBeforeInput","beforeinput",null,l,O),D.push({event:V,listeners:re}),V.data=te)),_m(D,e,j,l,O)}Zd(D,t)})}function Ni(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Bu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Xn(e,l),n!=null&&a.unshift(Ni(e,n,i)),n=Xn(e,t),n!=null&&a.push(Ni(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Mm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vd(e,t,l,a,n){for(var i=t._reactName,u=[];l!==null&&l!==a;){var o=l,m=o.alternate,j=o.stateNode;if(o=o.tag,m!==null&&m===a)break;o!==5&&o!==26&&o!==27||j===null||(m=j,n?(j=Xn(l,i),j!=null&&u.unshift(Ni(l,j,m))):n||(j=Xn(l,i),j!=null&&u.push(Ni(l,j,m)))),l=l.return}u.length!==0&&e.push({event:t,listeners:u})}var Dm=/\r\n?/g,Cm=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(Dm,`
|
|
49
|
+
`).replace(Cm,"")}function Kd(e,t){return t=Jd(t),Jd(e)===t}function Ne(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||He(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&He(e,""+a);break;case"className":Wa(e,"class",a);break;case"tabIndex":Wa(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Wa(e,l,a);break;case"style":Qn(e,a,i);break;case"data":if(t!=="object"){Wa(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=Pa(""+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 i=="function"&&(l==="formAction"?(t!=="input"&&Ne(e,t,"name",n.name,n,null),Ne(e,t,"formEncType",n.formEncType,n,null),Ne(e,t,"formMethod",n.formMethod,n,null),Ne(e,t,"formTarget",n.formTarget,n,null)):(Ne(e,t,"encType",n.encType,n,null),Ne(e,t,"method",n.method,n,null),Ne(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Pa(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=hl);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("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=Pa(""+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":ue("beforetoggle",e),ue("toggle",e),ya(e,"popover",a);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ya(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=Zn.get(l)||l,ya(e,l,a))}}function ar(e,t,l,a,n,i){switch(l){case"style":Qn(e,a,i);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"?He(e,a):(typeof a=="number"||typeof a=="bigint")&&He(e,""+a);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"onClick":a!=null&&(e.onclick=hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xi.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[tt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==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,""):ya(e,l,a)}}}function ut(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ne(e,t,i,u,l,null)}}n&&Ne(e,t,"srcSet",l.srcSet,l,null),a&&Ne(e,t,"src",l.src,l,null);return;case"input":ue("invalid",e);var o=i=u=n=null,m=null,j=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":u=O;break;case"checked":m=O;break;case"defaultChecked":j=O;break;case"value":i=O;break;case"defaultValue":o=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,t));break;default:Ne(e,t,a,O,l,null)}}G(e,i,o,m,j,u,n,!1);return;case"select":ue("invalid",e),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":i=o;break;case"defaultValue":u=o;break;case"multiple":a=o;default:Ne(e,t,n,o,l,null)}t=i,l=u,e.multiple=!!a,t!=null?F(e,!!a,t,!1):l!=null&&F(e,!!a,l,!0);return;case"textarea":ue("invalid",e),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(o=l[u],o!=null))switch(u){case"value":a=o;break;case"defaultValue":n=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:Ne(e,t,u,o,l,null)}Ve(e,a,n,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ne(e,t,m,a,l,null)}return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(a=0;a<ji.length;a++)ue(ji[a],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("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(j in l)if(l.hasOwnProperty(j)&&(a=l[j],a!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ne(e,t,j,a,l,null)}return;default:if(Ia(t)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&ar(e,t,O,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&Ne(e,t,o,a,l,null))}function Rm(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,i=null,u=null,o=null,m=null,j=null,O=null;for(E in l){var D=l[E];if(l.hasOwnProperty(E)&&D!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":m=D;default:a.hasOwnProperty(E)||Ne(e,t,E,null,a,D)}}for(var N in a){var E=a[N];if(D=l[N],a.hasOwnProperty(N)&&(E!=null||D!=null))switch(N){case"type":i=E;break;case"name":n=E;break;case"checked":j=E;break;case"defaultChecked":O=E;break;case"value":u=E;break;case"defaultValue":o=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(137,t));break;default:E!==D&&Ne(e,t,N,E,a,D)}}U(e,u,o,m,j,O,i,n);return;case"select":E=u=o=N=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":E=m;default:a.hasOwnProperty(i)||Ne(e,t,i,null,a,m)}for(n in a)if(i=a[n],m=l[n],a.hasOwnProperty(n)&&(i!=null||m!=null))switch(n){case"value":N=i;break;case"defaultValue":o=i;break;case"multiple":u=i;default:i!==m&&Ne(e,t,n,i,a,m)}t=o,l=u,a=E,N!=null?F(e,!!l,N,!1):!!a!=!!l&&(t!=null?F(e,!!l,t,!0):F(e,!!l,l?[]:"",!1));return;case"textarea":E=N=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ne(e,t,o,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":N=n;break;case"defaultValue":E=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==i&&Ne(e,t,u,n,a,i)}oe(e,N,E);return;case"option":for(var Z in l)if(N=l[Z],l.hasOwnProperty(Z)&&N!=null&&!a.hasOwnProperty(Z))switch(Z){case"selected":e.selected=!1;break;default:Ne(e,t,Z,null,a,N)}for(m in a)if(N=a[m],E=l[m],a.hasOwnProperty(m)&&N!==E&&(N!=null||E!=null))switch(m){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Ne(e,t,m,N,a,E)}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 $ in l)N=l[$],l.hasOwnProperty($)&&N!=null&&!a.hasOwnProperty($)&&Ne(e,t,$,null,a,N);for(j in a)if(N=a[j],E=l[j],a.hasOwnProperty(j)&&N!==E&&(N!=null||E!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:Ne(e,t,j,N,a,E)}return;default:if(Ia(t)){for(var Te in l)N=l[Te],l.hasOwnProperty(Te)&&N!==void 0&&!a.hasOwnProperty(Te)&&ar(e,t,Te,void 0,a,N);for(O in a)N=a[O],E=l[O],!a.hasOwnProperty(O)||N===E||N===void 0&&E===void 0||ar(e,t,O,N,a,E);return}}for(var S in l)N=l[S],l.hasOwnProperty(S)&&N!=null&&!a.hasOwnProperty(S)&&Ne(e,t,S,null,a,N);for(D in a)N=a[D],E=l[D],!a.hasOwnProperty(D)||N===E||N==null&&E==null||Ne(e,t,D,N,a,E)}function $d(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Um(){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],i=n.transferSize,u=n.initiatorType,o=n.duration;if(i&&o&&$d(u)){for(u=0,o=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],j=m.startTime;if(j>o)break;var O=m.transferSize,D=m.initiatorType;O&&$d(D)&&(m=m.responseEnd,u+=O*(m<o?1:(o-j)/(m-j)))}if(--a,t+=8*(i+u)/(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 nr=null,ir=null;function Yu(e){return e.nodeType===9?e:e.ownerDocument}function Wd(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 Fd(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 ur(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 cr=null;function Hm(){var e=window.event;return e&&e.type==="popstate"?e===cr?!1:(cr=e,!0):(cr=null,!1)}var Id=typeof setTimeout=="function"?setTimeout:void 0,qm=typeof clearTimeout=="function"?clearTimeout:void 0,Pd=typeof Promise=="function"?Promise:void 0,Bm=typeof queueMicrotask=="function"?queueMicrotask:typeof Pd<"u"?function(e){return Pd.resolve(null).then(e).catch(Ym)}:Id;function Ym(e){setTimeout(function(){throw e})}function ta(e){return e==="head"}function eh(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),On(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Ti(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ti(l);for(var i=l.firstChild;i;){var u=i.nextSibling,o=i.nodeName;i[Lt]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&Ti(e.ownerDocument.body);l=n}while(l);On(t)}function th(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 sr(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":sr(l),ol(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Gm(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[Lt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==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(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function Lm(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Bt(e.nextSibling),e===null))return null;return e}function lh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bt(e.nextSibling),e===null))return null;return e}function rr(e){return e.data==="$?"||e.data==="$~"}function fr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qm(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 Bt(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 or=null;function ah(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Bt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function nh(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 ih(e,t,l){switch(t=Yu(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 Ti(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ol(e)}var Yt=new Map,uh=new Set;function Gu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kl=L.d;L.d={f:Zm,r:Xm,D:Vm,C:Jm,L:Km,m:$m,X:Fm,S:Wm,M:Im};function Zm(){var e=kl.f(),t=Mu();return e||t}function Xm(e){var t=Rl(e);t!==null&&t.tag===5&&t.type==="form"?jo(t):kl.r(e)}var _n=typeof document>"u"?null:document;function ch(e,t,l){var a=_n;if(a&&typeof t=="string"&&t){var n=T(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),uh.has(n)||(uh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),ut(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Vm(e){kl.D(e),ch("dns-prefetch",e,null)}function Jm(e,t){kl.C(e,t),ch("preconnect",e,t)}function Km(e,t,l){kl.L(e,t,l);var a=_n;if(a&&e&&t){var n='link[rel="preload"][as="'+T(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+T(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+T(l.imageSizes)+'"]')):n+='[href="'+T(e)+'"]';var i=n;switch(t){case"style":i=kn(e);break;case"script":i=wn(e)}Yt.has(i)||(e=R({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Yt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Ei(i))||t==="script"&&a.querySelector(Ai(i))||(t=a.createElement("link"),ut(t,"link",e),Ye(t),a.head.appendChild(t)))}}function $m(e,t){kl.m(e,t);var l=_n;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+T(a)+'"][href="'+T(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=wn(e)}if(!Yt.has(i)&&(e=R({rel:"modulepreload",href:e},t),Yt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ai(i)))return}a=l.createElement("link"),ut(a,"link",e),Ye(a),l.head.appendChild(a)}}}function Wm(e,t,l){kl.S(e,t,l);var a=_n;if(a&&e){var n=Ul(a).hoistableStyles,i=kn(e);t=t||"default";var u=n.get(i);if(!u){var o={loading:0,preload:null};if(u=a.querySelector(Ei(i)))o.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Yt.get(i))&&dr(e,l);var m=u=a.createElement("link");Ye(m),ut(m,"link",e),m._p=new Promise(function(j,O){m.onload=j,m.onerror=O}),m.addEventListener("load",function(){o.loading|=1}),m.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Lu(u,t,a)}u={type:"stylesheet",instance:u,count:1,state:o},n.set(i,u)}}}function Fm(e,t){kl.X(e,t);var l=_n;if(l&&e){var a=Ul(l).hoistableScripts,n=wn(e),i=a.get(n);i||(i=l.querySelector(Ai(n)),i||(e=R({src:e,async:!0},t),(t=Yt.get(n))&&hr(e,t),i=l.createElement("script"),Ye(i),ut(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Im(e,t){kl.M(e,t);var l=_n;if(l&&e){var a=Ul(l).hoistableScripts,n=wn(e),i=a.get(n);i||(i=l.querySelector(Ai(n)),i||(e=R({src:e,async:!0,type:"module"},t),(t=Yt.get(n))&&hr(e,t),i=l.createElement("script"),Ye(i),ut(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function sh(e,t,l,a){var n=(n=ae.current)?Gu(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=kn(l.href),l=Ul(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=kn(l.href);var i=Ul(n).hoistableStyles,u=i.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=n.querySelector(Ei(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Yt.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},Yt.set(e,l),i||Pm(n,e,l,u.state))),t&&a===null)throw Error(s(528,""));return u}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=wn(l),l=Ul(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 kn(e){return'href="'+T(e)+'"'}function Ei(e){return'link[rel="stylesheet"]['+e+"]"}function rh(e){return R({},e,{"data-precedence":e.precedence,precedence:null})}function Pm(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}),ut(t,"link",l),Ye(t),e.head.appendChild(t))}function wn(e){return'[src="'+T(e)+'"]'}function Ai(e){return"script[async]"+e}function fh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+T(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),ut(a,"style",n),Lu(a,l.precedence,e),t.instance=a;case"stylesheet":n=kn(l.href);var i=e.querySelector(Ei(n));if(i)return t.state.loading|=4,t.instance=i,Ye(i),i;a=rh(l),(n=Yt.get(n))&&dr(a,n),i=(e.ownerDocument||e).createElement("link"),Ye(i);var u=i;return u._p=new Promise(function(o,m){u.onload=o,u.onerror=m}),ut(i,"link",a),t.state.loading|=4,Lu(i,l.precedence,e),t.instance=i;case"script":return i=wn(l.src),(n=e.querySelector(Ai(i)))?(t.instance=n,Ye(n),n):(a=l,(n=Yt.get(i))&&(a=R({},l),hr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),ut(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,Lu(a,l.precedence,e));return t.instance}function Lu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var o=a[u];if(o.dataset.precedence===t)i=o;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function dr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function hr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Qu=null;function oh(e,t,l){if(Qu===null){var a=new Map,n=Qu=new Map;n.set(l,a)}else n=Qu,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 i=l[n];if(!(i[Lt]||i[Fe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var o=a.get(u);o?o.push(i):a.set(u,[i])}}return a}function dh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function e0(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 hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function t0(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=kn(a.href),i=t.querySelector(Ei(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Zu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ye(i);return}i=t.ownerDocument||t,a=rh(a),(n=Yt.get(n))&&dr(a,n),i=i.createElement("link"),Ye(i);var u=i;u._p=new Promise(function(o,m){u.onload=o,u.onerror=m}),ut(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Zu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var pr=0;function l0(e,t){return e.stylesheets&&e.count===0&&Vu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&pr===0&&(pr=62500*Um());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>pr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Zu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xu=null;function Vu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xu=new Map,t.forEach(a0,e),Xu=null,Zu.call(e))}function a0(e,t){if(!(t.state.loading&4)){var l=Xu.get(e);if(l)var a=l.get(null);else{l=new Map,Xu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=t.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=Zu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var _i={$$typeof:ke,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function n0(e,t,l,a,n,i,u,o,m){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=el(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.hiddenUpdates=el(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function ph(e,t,l,a,n,i,u,o,m,j,O,D){return e=new n0(e,t,l,u,m,j,O,D,o),t=1,i===!0&&(t|=24),i=Tt(3,null,null,t),e.current=i,i.stateNode=e,t=Jc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Fc(i),e}function mh(e){return e?(e=cn,e):cn}function gh(e,t,l,a,n,i){n=mh(n),a.context===null?a.context=n:a.pendingContext=n,a=Zl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Xl(e,a,t),l!==null&&(jt(l,e,t),ui(l,e,t))}function yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function mr(e,t){yh(e,t),(e=e.alternate)&&yh(e,t)}function xh(e){if(e.tag===13||e.tag===31){var t=ja(e,67108864);t!==null&&jt(t,e,67108864),mr(e,67108864)}}function bh(e){if(e.tag===13||e.tag===31){var t=wt();t=ha(t);var l=ja(e,t);l!==null&&jt(l,e,t),mr(e,t)}}var Ju=!0;function i0(e,t,l,a){var n=_.T;_.T=null;var i=L.p;try{L.p=2,gr(e,t,l,a)}finally{L.p=i,_.T=n}}function u0(e,t,l,a){var n=_.T;_.T=null;var i=L.p;try{L.p=8,gr(e,t,l,a)}finally{L.p=i,_.T=n}}function gr(e,t,l,a){if(Ju){var n=yr(a);if(n===null)lr(e,t,a,Ku,l),Sh(e,a);else if(s0(n,e,t,l,a))a.stopPropagation();else if(Sh(e,a),t&4&&-1<c0.indexOf(e)){for(;n!==null;){var i=Rl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=fl(i.pendingLanes);if(u!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;u;){var m=1<<31-pt(u);o.entanglements[1]|=m,u&=~m}sl(i),(be&6)===0&&(wu=dt()+500,zi(0))}}break;case 31:case 13:o=ja(i,2),o!==null&&jt(o,i,2),Mu(),mr(i,2)}if(i=yr(a),i===null&&lr(e,t,a,Ku,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else lr(e,t,a,null,l)}}function yr(e){return e=bc(e),xr(e)}var Ku=null;function xr(e){if(Ku=null,e=Qt(e),e!==null){var t=b(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=A(t),e!==null)return e;e=null}else if(l===31){if(e=w(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 Ku=e,null}function vh(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(rc()){case Za:return 2;case Ot:return 8;case Ml:case Hn:return 32;case Bi:return 268435456;default:return 32}default:return 32}}var br=!1,la=null,aa=null,na=null,ki=new Map,wi=new Map,ia=[],c0="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 Sh(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":aa=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wi.delete(t.pointerId)}}function Oi(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Rl(t),t!==null&&xh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function s0(e,t,l,a,n){switch(t){case"focusin":return la=Oi(la,e,t,l,a,n),!0;case"dragenter":return aa=Oi(aa,e,t,l,a,n),!0;case"mouseover":return na=Oi(na,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return ki.set(i,Oi(ki.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,wi.set(i,Oi(wi.get(i)||null,e,t,l,a,n)),!0}return!1}function zh(e){var t=Qt(e.target);if(t!==null){var l=b(t);if(l!==null){if(t=l.tag,t===13){if(t=A(l),t!==null){e.blockedOn=t,Qi(e.priority,function(){bh(l)});return}}else if(t===31){if(t=w(l),t!==null){e.blockedOn=t,Qi(e.priority,function(){bh(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 $u(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=yr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);xc=a,l.target.dispatchEvent(a),xc=null}else return t=Rl(l),t!==null&&xh(t),e.blockedOn=l,!1;t.shift()}return!0}function jh(e,t,l){$u(e)&&l.delete(t)}function r0(){br=!1,la!==null&&$u(la)&&(la=null),aa!==null&&$u(aa)&&(aa=null),na!==null&&$u(na)&&(na=null),ki.forEach(jh),wi.forEach(jh)}function Wu(e,t){e.blockedOn===t&&(e.blockedOn=null,br||(br=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,r0)))}var Fu=null;function Nh(e){Fu!==e&&(Fu=e,d.unstable_scheduleCallback(d.unstable_NormalPriority,function(){Fu===e&&(Fu=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(xr(a||l)===null)continue;break}var i=Rl(l);i!==null&&(e.splice(t,3),t-=3,ys(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function On(e){function t(m){return Wu(m,e)}la!==null&&Wu(la,e),aa!==null&&Wu(aa,e),na!==null&&Wu(na,e),ki.forEach(t),wi.forEach(t);for(var l=0;l<ia.length;l++){var a=ia[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ia.length&&(l=ia[0],l.blockedOn===null);)zh(l),l.blockedOn===null&&ia.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[tt]||null;if(typeof i=="function")u||Nh(l);else if(u){var o=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[tt]||null)o=u.formAction;else if(xr(n)!==null)continue}else o=u.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),Nh(l)}}}function Th(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.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 vr(e){this._internalRoot=e}Iu.prototype.render=vr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=wt();gh(l,a,e,t,null,null)},Iu.prototype.unmount=vr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gh(e.current,2,null,e,null,null),Mu(),t[Cl]=null}};function Iu(e){this._internalRoot=e}Iu.prototype.unstable_scheduleHydration=function(e){if(e){var t=pa();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ia.length&&t!==0&&t<ia[l].priority;l++);ia.splice(l,0,e),l===0&&zh(e)}};var Eh=c.version;if(Eh!=="19.2.7")throw Error(s(527,Eh,"19.2.7"));L.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?k(e):null,e=e===null?null:e.stateNode,e};var f0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{fa=Pu.inject(f0),ht=Pu}catch{}}return Di.createRoot=function(e,t){if(!h(e))throw Error(s(299));var l=!1,a="",n=Do,i=Co,u=Ro;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&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=ph(e,1,!1,null,null,l,a,null,n,i,u,Th),e[Cl]=t.current,tr(e),new vr(t)},Di.hydrateRoot=function(e,t,l){if(!h(e))throw Error(s(299));var a=!1,n="",i=Do,u=Co,o=Ro,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=ph(e,1,!0,t,l??null,a,n,m,i,u,o,Th),t.context=mh(null),l=t.current,a=wt(),a=ha(a),n=Zl(a),n.callback=null,Xl(l,n,a),l=a,t.current.lanes=l,tl(t,l),sl(t),e[Cl]=t.current,tr(e),new Iu(t)},Di.version="19.2.7",Di}var Uh;function z0(){if(Uh)return jr.exports;Uh=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(c){console.error(c)}}return d(),jr.exports=S0(),jr.exports}var j0=z0();function qr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var qa=qr();function Ph(d){qa=d}var Ua={exec:()=>null};function Mn(d){let c=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),h=c[s];return h||(h=d(s),c[s]=h),h}}function pe(d,c=""){let r=typeof d=="string"?d:d.source,s={replace:(h,b)=>{let A=typeof b=="string"?b:b.source;return A=A.replace(ft.caret,"$1"),r=r.replace(h,A),s},getRegex:()=>new RegExp(r,c)};return s}var N0=((d="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+d)}catch{return!1}})(),ft={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:d=>new RegExp(`^( {0,3}${d})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Mn(d=>new RegExp(`^ {0,${d}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Mn(d=>new RegExp(`^ {0,${d}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Mn(d=>new RegExp(`^ {0,${d}}(?:\`\`\`|~~~)`)),headingBeginRegex:Mn(d=>new RegExp(`^ {0,${d}}#`)),htmlBeginRegex:Mn(d=>new RegExp(`^ {0,${d}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Mn(d=>new RegExp(`^ {0,${d}}>`))},T0=/^(?:[ \t]*(?:\n|$))+/,E0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,A0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Br=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ep=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,tp=pe(ep).replace(/bull/g,Br).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),k0=pe(ep).replace(/bull/g,Br).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Yr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w0=/^[^\n]+/,Gr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,O0=pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Gr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),M0=pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Br).getRegex(),uc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Lr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,D0=pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Lr).replace("tag",uc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lp=pe(Yr).replace("hr",Hi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uc).getRegex(),C0=pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lp).getRegex(),Qr={blockquote:C0,code:E0,def:O0,fences:A0,heading:_0,hr:Hi,html:D0,lheading:tp,list:M0,newline:T0,paragraph:lp,table:Ua,text:w0},Hh=pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uc).getRegex(),R0={...Qr,lheading:k0,table:Hh,paragraph:pe(Yr).replace("hr",Hi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hh).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uc).getRegex()},U0={...Qr,html:pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Lr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ua,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pe(Yr).replace("hr",Hi).replace("heading",` *#{1,6} *[^
|
|
50
|
+
]`).replace("lheading",tp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},H0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,q0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ap=/^( {2,}|\\)\n(?!\s*$)/,B0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Cn=/[\p{P}\p{S}]/u,cc=/[\s\p{P}\p{S}]/u,Zr=/[^\s\p{P}\p{S}]/u,Y0=pe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,cc).getRegex(),np=/(?!~)[\p{P}\p{S}]/u,G0=/(?!~)[\s\p{P}\p{S}]/u,L0=/(?:[^\s\p{P}\p{S}]|~)/u,Q0=pe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",N0?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ip=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Z0=pe(ip,"u").replace(/punct/g,Cn).getRegex(),X0=pe(ip,"u").replace(/punct/g,np).getRegex(),up="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",V0=pe(up,"gu").replace(/notPunctSpace/g,Zr).replace(/punctSpace/g,cc).replace(/punct/g,Cn).getRegex(),J0=pe(up,"gu").replace(/notPunctSpace/g,L0).replace(/punctSpace/g,G0).replace(/punct/g,np).getRegex(),K0=pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zr).replace(/punctSpace/g,cc).replace(/punct/g,Cn).getRegex(),$0=pe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Cn).getRegex(),W0="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",F0=pe(W0,"gu").replace(/notPunctSpace/g,Zr).replace(/punctSpace/g,cc).replace(/punct/g,Cn).getRegex(),I0=pe(/\\(punct)/,"gu").replace(/punct/g,Cn).getRegex(),P0=pe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),e1=pe(Lr).replace("(?:-->|$)","-->").getRegex(),t1=pe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",e1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ac=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,l1=pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ac).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cp=pe(/^!?\[(label)\]\[(ref)\]/).replace("label",ac).replace("ref",Gr).getRegex(),sp=pe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Gr).getRegex(),a1=pe("reflink|nolink(?!\\()","g").replace("reflink",cp).replace("nolink",sp).getRegex(),qh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Xr={_backpedal:Ua,anyPunctuation:I0,autolink:P0,blockSkip:Q0,br:ap,code:q0,del:Ua,delLDelim:Ua,delRDelim:Ua,emStrongLDelim:Z0,emStrongRDelimAst:V0,emStrongRDelimUnd:K0,escape:H0,link:l1,nolink:sp,punctuation:Y0,reflink:cp,reflinkSearch:a1,tag:t1,text:B0,url:Ua},n1={...Xr,link:pe(/^!?\[(label)\]\((.*?)\)/).replace("label",ac).getRegex(),reflink:pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ac).getRegex()},Cr={...Xr,emStrongRDelimAst:J0,emStrongLDelim:X0,delLDelim:$0,delRDelim:F0,url:pe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qh).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qh).getRegex()},i1={...Cr,br:pe(ap).replace("{2,}","*").getRegex(),text:pe(Cr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ec={normal:Qr,gfm:R0,pedantic:U0},Ci={normal:Xr,gfm:Cr,breaks:i1,pedantic:n1},u1={"&":"&","<":"<",">":">",'"':""","'":"'"},Bh=d=>u1[d];function rl(d,c){if(c){if(ft.escapeTest.test(d))return d.replace(ft.escapeReplace,Bh)}else if(ft.escapeTestNoEncode.test(d))return d.replace(ft.escapeReplaceNoEncode,Bh);return d}function Yh(d){try{d=encodeURI(d).replace(ft.percentDecode,"%")}catch{return null}return d}function Gh(d,c){var b;let r=d.replace(ft.findPipe,(A,w,g)=>{let v=!1,k=w;for(;--k>=0&&g[k]==="\\";)v=!v;return v?"|":" |"}),s=r.split(ft.splitPipe),h=0;if(s[0].trim()||s.shift(),s.length>0&&!((b=s.at(-1))!=null&&b.trim())&&s.pop(),c)if(s.length>c)s.splice(c);else for(;s.length<c;)s.push("");for(;h<s.length;h++)s[h]=s[h].trim().replace(ft.slashPipe,"|");return s}function ca(d,c,r){let s=d.length;if(s===0)return"";let h=0;for(;h<s&&d.charAt(s-h-1)===c;)h++;return d.slice(0,s-h)}function Lh(d){let c=d.split(`
|
|
51
|
+
`),r=c.length-1;for(;r>=0&&ft.blankLine.test(c[r]);)r--;return c.length-r<=2?d:c.slice(0,r+1).join(`
|
|
52
|
+
`)}function c1(d,c){if(d.indexOf(c[1])===-1)return-1;let r=0;for(let s=0;s<d.length;s++)if(d[s]==="\\")s++;else if(d[s]===c[0])r++;else if(d[s]===c[1]&&(r--,r<0))return s;return r>0?-2:-1}function s1(d,c=0){let r=c,s="";for(let h of d)if(h===" "){let b=4-r%4;s+=" ".repeat(b),r+=b}else s+=h,r++;return s}function Qh(d,c,r,s,h){let b=c.href,A=c.title||null,w=d[1].replace(h.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:d[0].charAt(0)==="!"?"image":"link",raw:r,href:b,title:A,text:w,tokens:s.inlineTokens(w)};return s.state.inLink=!1,g}function r1(d,c,r){let s=d.match(r.other.indentCodeCompensation);if(s===null)return c;let h=s[1];return c.split(`
|
|
53
|
+
`).map(b=>{let A=b.match(r.other.beginningSpace);if(A===null)return b;let[w]=A;return w.length>=h.length?b.slice(h.length):b}).join(`
|
|
54
|
+
`)}var nc=class{constructor(d){Ee(this,"options");Ee(this,"rules");Ee(this,"lexer");this.options=d||qa}space(d){let c=this.rules.block.newline.exec(d);if(c&&c[0].length>0)return{type:"space",raw:c[0]}}code(d){let c=this.rules.block.code.exec(d);if(c){let r=this.options.pedantic?c[0]:Lh(c[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(d){let c=this.rules.block.fences.exec(d);if(c){let r=c[0],s=r1(r,c[3]||"",this.rules);return{type:"code",raw:r,lang:c[2]?c[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):c[2],text:s}}}heading(d){let c=this.rules.block.heading.exec(d);if(c){let r=c[2].trim();if(this.rules.other.endingHash.test(r)){let s=ca(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:ca(c[0],`
|
|
55
|
+
`),depth:c[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(d){let c=this.rules.block.hr.exec(d);if(c)return{type:"hr",raw:ca(c[0],`
|
|
56
|
+
`)}}blockquote(d){let c=this.rules.block.blockquote.exec(d);if(c){let r=ca(c[0],`
|
|
57
|
+
`).split(`
|
|
58
|
+
`),s="",h="",b=[];for(;r.length>0;){let A=!1,w=[],g;for(g=0;g<r.length;g++)if(this.rules.other.blockquoteStart.test(r[g]))w.push(r[g]),A=!0;else if(!A)w.push(r[g]);else break;r=r.slice(g);let v=w.join(`
|
|
59
|
+
`),k=v.replace(this.rules.other.blockquoteSetextReplace,`
|
|
60
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
61
|
+
${v}`:v,h=h?`${h}
|
|
62
|
+
${k}`:k;let R=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(k,b,!0),this.lexer.state.top=R,r.length===0)break;let H=b.at(-1);if((H==null?void 0:H.type)==="code")break;if((H==null?void 0:H.type)==="blockquote"){let le=H,B=le.raw+`
|
|
63
|
+
`+r.join(`
|
|
64
|
+
`),he=this.blockquote(B);b[b.length-1]=he,s=s.substring(0,s.length-le.raw.length)+he.raw,h=h.substring(0,h.length-le.text.length)+he.text;break}else if((H==null?void 0:H.type)==="list"){let le=H,B=le.raw+`
|
|
65
|
+
`+r.join(`
|
|
66
|
+
`),he=this.list(B);b[b.length-1]=he,s=s.substring(0,s.length-H.raw.length)+he.raw,h=h.substring(0,h.length-le.raw.length)+he.raw,r=B.substring(b.at(-1).raw.length).split(`
|
|
67
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:b,text:h}}}list(d){let c=this.rules.block.list.exec(d);if(c){let r=c[1].trim(),s=r.length>1,h={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let b=this.rules.other.listItemRegex(r),A=!1;for(;d;){let g=!1,v="",k="";if(!(c=b.exec(d))||this.rules.block.hr.test(d))break;v=c[0],d=d.substring(v.length);let R=s1(c[2].split(`
|
|
68
|
+
`,1)[0],c[1].length),H=d.split(`
|
|
69
|
+
`,1)[0],le=!R.trim(),B=0;if(this.options.pedantic?(B=2,k=R.trimStart()):le?B=c[1].length+1:(B=R.search(this.rules.other.nonSpaceChar),B=B>4?1:B,k=R.slice(B),B+=c[1].length),le&&this.rules.other.blankLine.test(H)&&(v+=H+`
|
|
70
|
+
`,d=d.substring(H.length+1),g=!0),!g){let he=this.rules.other.nextBulletRegex(B),ce=this.rules.other.hrRegex(B),Qe=this.rules.other.fencesBeginRegex(B),Pe=this.rules.other.headingBeginRegex(B),ke=this.rules.other.htmlBeginRegex(B),I=this.rules.other.blockquoteBeginRegex(B);for(;d;){let Ce=d.split(`
|
|
71
|
+
`,1)[0],Ue;if(H=Ce,this.options.pedantic?(H=H.replace(this.rules.other.listReplaceNesting," "),Ue=H):Ue=H.replace(this.rules.other.tabCharGlobal," "),Qe.test(H)||Pe.test(H)||ke.test(H)||I.test(H)||he.test(H)||ce.test(H))break;if(Ue.search(this.rules.other.nonSpaceChar)>=B||!H.trim())k+=`
|
|
72
|
+
`+Ue.slice(B);else{if(le||R.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Qe.test(R)||Pe.test(R)||ce.test(R))break;k+=`
|
|
73
|
+
`+H}le=!H.trim(),v+=Ce+`
|
|
74
|
+
`,d=d.substring(Ce.length+1),R=Ue.slice(B)}}h.loose||(A?h.loose=!0:this.rules.other.doubleBlankLine.test(v)&&(A=!0)),h.items.push({type:"list_item",raw:v,task:!!this.options.gfm&&this.rules.other.listIsTask.test(k),loose:!1,text:k,tokens:[]}),h.raw+=v}let w=h.items.at(-1);if(w)w.raw=w.raw.trimEnd(),w.text=w.text.trimEnd();else return;h.raw=h.raw.trimEnd();for(let g of h.items){this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]);let v=g.tokens[0];if(g.task&&((v==null?void 0:v.type)==="text"||(v==null?void 0:v.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),v.raw=v.raw.replace(this.rules.other.listReplaceTask,""),v.text=v.text.replace(this.rules.other.listReplaceTask,"");for(let R=this.lexer.inlineQueue.length-1;R>=0;R--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[R].src)){this.lexer.inlineQueue[R].src=this.lexer.inlineQueue[R].src.replace(this.rules.other.listReplaceTask,"");break}let k=this.rules.other.listTaskCheckbox.exec(g.raw);if(k){let R={type:"checkbox",raw:k[0]+" ",checked:k[0]!=="[ ]"};g.checked=R.checked,h.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=R.raw+g.tokens[0].raw,g.tokens[0].text=R.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(R)):g.tokens.unshift({type:"paragraph",raw:R.raw,text:R.raw,tokens:[R]}):g.tokens.unshift(R)}}else g.task&&(g.task=!1);if(!h.loose){let k=g.tokens.filter(H=>H.type==="space"),R=k.length>0&&k.some(H=>this.rules.other.anyLine.test(H.raw));h.loose=R}}if(h.loose)for(let g of h.items){g.loose=!0;for(let v of g.tokens)v.type==="text"&&(v.type="paragraph")}return h}}html(d){let c=this.rules.block.html.exec(d);if(c){let r=Lh(c[0]);return{type:"html",block:!0,raw:r,pre:c[1]==="pre"||c[1]==="script"||c[1]==="style",text:r}}}def(d){let c=this.rules.block.def.exec(d);if(c){let r=c[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=c[2]?c[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",h=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):c[3];return{type:"def",tag:r,raw:ca(c[0],`
|
|
75
|
+
`),href:s,title:h}}}table(d){var A;let c=this.rules.block.table.exec(d);if(!c||!this.rules.other.tableDelimiter.test(c[2]))return;let r=Gh(c[1]),s=c[2].replace(this.rules.other.tableAlignChars,"").split("|"),h=(A=c[3])!=null&&A.trim()?c[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
76
|
+
`):[],b={type:"table",raw:ca(c[0],`
|
|
77
|
+
`),header:[],align:[],rows:[]};if(r.length===s.length){for(let w of s)this.rules.other.tableAlignRight.test(w)?b.align.push("right"):this.rules.other.tableAlignCenter.test(w)?b.align.push("center"):this.rules.other.tableAlignLeft.test(w)?b.align.push("left"):b.align.push(null);for(let w=0;w<r.length;w++)b.header.push({text:r[w],tokens:this.lexer.inline(r[w]),header:!0,align:b.align[w]});for(let w of h)b.rows.push(Gh(w,b.header.length).map((g,v)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:b.align[v]})));return b}}lheading(d){let c=this.rules.block.lheading.exec(d);if(c){let r=c[1].trim();return{type:"heading",raw:ca(c[0],`
|
|
78
|
+
`),depth:c[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(d){let c=this.rules.block.paragraph.exec(d);if(c){let r=c[1].charAt(c[1].length-1)===`
|
|
79
|
+
`?c[1].slice(0,-1):c[1];return{type:"paragraph",raw:c[0],text:r,tokens:this.lexer.inline(r)}}}text(d){let c=this.rules.block.text.exec(d);if(c)return{type:"text",raw:c[0],text:c[0],tokens:this.lexer.inline(c[0])}}escape(d){let c=this.rules.inline.escape.exec(d);if(c)return{type:"escape",raw:c[0],text:c[1]}}tag(d){let c=this.rules.inline.tag.exec(d);if(c)return!this.lexer.state.inLink&&this.rules.other.startATag.test(c[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(c[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(c[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(c[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:c[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:c[0]}}link(d){let c=this.rules.inline.link.exec(d);if(c){let r=c[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let b=ca(r.slice(0,-1),"\\");if((r.length-b.length)%2===0)return}else{let b=c1(c[2],"()");if(b===-2)return;if(b>-1){let A=(c[0].indexOf("!")===0?5:4)+c[1].length+b;c[2]=c[2].substring(0,b),c[0]=c[0].substring(0,A).trim(),c[3]=""}}let s=c[2],h="";if(this.options.pedantic){let b=this.rules.other.pedanticHrefTitle.exec(s);b&&(s=b[1],h=b[3])}else h=c[3]?c[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Qh(c,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:h&&h.replace(this.rules.inline.anyPunctuation,"$1")},c[0],this.lexer,this.rules)}}reflink(d,c){let r;if((r=this.rules.inline.reflink.exec(d))||(r=this.rules.inline.nolink.exec(d))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),h=c[s.toLowerCase()];if(!h){let b=r[0].charAt(0);return{type:"text",raw:b,text:b}}return Qh(r,h,r[0],this.lexer,this.rules)}}emStrong(d,c,r=""){let s=this.rules.inline.emStrongLDelim.exec(d);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let h=[...s[0]].length-1,b,A,w=h,g=0,v=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,c=c.slice(-1*d.length+h);(s=v.exec(c))!==null;){if(b=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!b)continue;if(A=[...b].length,s[3]||s[4]){w+=A;continue}else if((s[5]||s[6])&&h%3&&!((h+A)%3)){g+=A;continue}if(w-=A,w>0)continue;A=Math.min(A,A+w+g);let k=[...s[0]][0].length,R=d.slice(0,h+s.index+k+A);if(Math.min(h,A)%2){let le=R.slice(1,-1);return{type:"em",raw:R,text:le,tokens:this.lexer.inlineTokens(le)}}let H=R.slice(2,-2);return{type:"strong",raw:R,text:H,tokens:this.lexer.inlineTokens(H)}}}}codespan(d){let c=this.rules.inline.code.exec(d);if(c){let r=c[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),h=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&h&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:c[0],text:r}}}br(d){let c=this.rules.inline.br.exec(d);if(c)return{type:"br",raw:c[0]}}del(d,c,r=""){let s=this.rules.inline.delLDelim.exec(d);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let h=[...s[0]].length-1,b,A,w=h,g=this.rules.inline.delRDelim;for(g.lastIndex=0,c=c.slice(-1*d.length+h);(s=g.exec(c))!==null;){if(b=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!b||(A=[...b].length,A!==h))continue;if(s[3]||s[4]){w+=A;continue}if(w-=A,w>0)continue;A=Math.min(A,A+w);let v=[...s[0]][0].length,k=d.slice(0,h+s.index+v+A),R=k.slice(h,-h);return{type:"del",raw:k,text:R,tokens:this.lexer.inlineTokens(R)}}}}autolink(d){let c=this.rules.inline.autolink.exec(d);if(c){let r,s;return c[2]==="@"?(r=c[1],s="mailto:"+r):(r=c[1],s=r),{type:"link",raw:c[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(d){var r;let c;if(c=this.rules.inline.url.exec(d)){let s,h;if(c[2]==="@")s=c[0],h="mailto:"+s;else{let b;do b=c[0],c[0]=((r=this.rules.inline._backpedal.exec(c[0]))==null?void 0:r[0])??"";while(b!==c[0]);s=c[0],c[1]==="www."?h="http://"+c[0]:h=c[0]}return{type:"link",raw:c[0],text:s,href:h,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(d){let c=this.rules.inline.text.exec(d);if(c){let r=this.lexer.state.inRawBlock;return{type:"text",raw:c[0],text:c[0],escaped:r}}}},$t=class Rr{constructor(c){Ee(this,"tokens");Ee(this,"options");Ee(this,"state");Ee(this,"inlineQueue");Ee(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=c||qa,this.options.tokenizer=this.options.tokenizer||new nc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:ft,block:ec.normal,inline:Ci.normal};this.options.pedantic?(r.block=ec.pedantic,r.inline=Ci.pedantic):this.options.gfm&&(r.block=ec.gfm,this.options.breaks?r.inline=Ci.breaks:r.inline=Ci.gfm),this.tokenizer.rules=r}static get rules(){return{block:ec,inline:Ci}}static lex(c,r){return new Rr(r).lex(c)}static lexInline(c,r){return new Rr(r).inlineTokens(c)}lex(c){c=c.replace(ft.carriageReturn,`
|
|
80
|
+
`),this.blockTokens(c,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(c,r=[],s=!1){var b,A,w;this.tokenizer.lexer=this,this.options.pedantic&&(c=c.replace(ft.tabCharGlobal," ").replace(ft.spaceLine,""));let h=1/0;for(;c;){if(c.length<h)h=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}let g;if((A=(b=this.options.extensions)==null?void 0:b.block)!=null&&A.some(k=>(g=k.call({lexer:this},c,r))?(c=c.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(c)){c=c.substring(g.raw.length);let k=r.at(-1);g.raw.length===1&&k!==void 0?k.raw+=`
|
|
81
|
+
`:r.push(g);continue}if(g=this.tokenizer.code(c)){c=c.substring(g.raw.length);let k=r.at(-1);(k==null?void 0:k.type)==="paragraph"||(k==null?void 0:k.type)==="text"?(k.raw+=(k.raw.endsWith(`
|
|
82
|
+
`)?"":`
|
|
83
|
+
`)+g.raw,k.text+=`
|
|
84
|
+
`+g.text,this.inlineQueue.at(-1).src=k.text):r.push(g);continue}if(g=this.tokenizer.fences(c)){c=c.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.heading(c)){c=c.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.hr(c)){c=c.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.blockquote(c)){c=c.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.list(c)){c=c.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.html(c)){c=c.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.def(c)){c=c.substring(g.raw.length);let k=r.at(-1);(k==null?void 0:k.type)==="paragraph"||(k==null?void 0:k.type)==="text"?(k.raw+=(k.raw.endsWith(`
|
|
85
|
+
`)?"":`
|
|
86
|
+
`)+g.raw,k.text+=`
|
|
87
|
+
`+g.raw,this.inlineQueue.at(-1).src=k.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title},r.push(g));continue}if(g=this.tokenizer.table(c)){c=c.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.lheading(c)){c=c.substring(g.raw.length),r.push(g);continue}let v=c;if((w=this.options.extensions)!=null&&w.startBlock){let k=1/0,R=c.slice(1),H;this.options.extensions.startBlock.forEach(le=>{H=le.call({lexer:this},R),typeof H=="number"&&H>=0&&(k=Math.min(k,H))}),k<1/0&&k>=0&&(v=c.substring(0,k+1))}if(this.state.top&&(g=this.tokenizer.paragraph(v))){let k=r.at(-1);s&&(k==null?void 0:k.type)==="paragraph"?(k.raw+=(k.raw.endsWith(`
|
|
88
|
+
`)?"":`
|
|
89
|
+
`)+g.raw,k.text+=`
|
|
90
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=k.text):r.push(g),s=v.length!==c.length,c=c.substring(g.raw.length);continue}if(g=this.tokenizer.text(c)){c=c.substring(g.raw.length);let k=r.at(-1);(k==null?void 0:k.type)==="text"?(k.raw+=(k.raw.endsWith(`
|
|
91
|
+
`)?"":`
|
|
92
|
+
`)+g.raw,k.text+=`
|
|
93
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=k.text):r.push(g);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return this.state.top=!0,r}inline(c,r=[]){return this.inlineQueue.push({src:c,tokens:r}),r}inlineTokens(c,r=[]){var v,k,R,H,le;this.tokenizer.lexer=this;let s=c,h=null;if(this.tokens.links){let B=Object.keys(this.tokens.links);if(B.length>0)for(;(h=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)B.includes(h[0].slice(h[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,h.index)+"["+"a".repeat(h[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(h=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,h.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let b;for(;(h=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)b=h[2]?h[2].length:0,s=s.slice(0,h.index+b)+"["+"a".repeat(h[0].length-b-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((k=(v=this.options.hooks)==null?void 0:v.emStrongMask)==null?void 0:k.call({lexer:this},s))??s;let A=!1,w="",g=1/0;for(;c;){if(c.length<g)g=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}A||(w=""),A=!1;let B;if((H=(R=this.options.extensions)==null?void 0:R.inline)!=null&&H.some(ce=>(B=ce.call({lexer:this},c,r))?(c=c.substring(B.raw.length),r.push(B),!0):!1))continue;if(B=this.tokenizer.escape(c)){c=c.substring(B.raw.length),r.push(B);continue}if(B=this.tokenizer.tag(c)){c=c.substring(B.raw.length),r.push(B);continue}if(B=this.tokenizer.link(c)){c=c.substring(B.raw.length),r.push(B);continue}if(B=this.tokenizer.reflink(c,this.tokens.links)){c=c.substring(B.raw.length);let ce=r.at(-1);B.type==="text"&&(ce==null?void 0:ce.type)==="text"?(ce.raw+=B.raw,ce.text+=B.text):r.push(B);continue}if(B=this.tokenizer.emStrong(c,s,w)){c=c.substring(B.raw.length),r.push(B);continue}if(B=this.tokenizer.codespan(c)){c=c.substring(B.raw.length),r.push(B);continue}if(B=this.tokenizer.br(c)){c=c.substring(B.raw.length),r.push(B);continue}if(B=this.tokenizer.del(c,s,w)){c=c.substring(B.raw.length),r.push(B);continue}if(B=this.tokenizer.autolink(c)){c=c.substring(B.raw.length),r.push(B);continue}if(!this.state.inLink&&(B=this.tokenizer.url(c))){c=c.substring(B.raw.length),r.push(B);continue}let he=c;if((le=this.options.extensions)!=null&&le.startInline){let ce=1/0,Qe=c.slice(1),Pe;this.options.extensions.startInline.forEach(ke=>{Pe=ke.call({lexer:this},Qe),typeof Pe=="number"&&Pe>=0&&(ce=Math.min(ce,Pe))}),ce<1/0&&ce>=0&&(he=c.substring(0,ce+1))}if(B=this.tokenizer.inlineText(he)){c=c.substring(B.raw.length),B.raw.slice(-1)!=="_"&&(w=B.raw.slice(-1)),A=!0;let ce=r.at(-1);(ce==null?void 0:ce.type)==="text"?(ce.raw+=B.raw,ce.text+=B.text):r.push(B);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return r}infiniteLoopError(c){let r="Infinite loop on byte: "+c;if(this.options.silent)console.error(r);else throw new Error(r)}},ic=class{constructor(d){Ee(this,"options");Ee(this,"parser");this.options=d||qa}space(d){return""}code({text:d,lang:c,escaped:r}){var b;let s=(b=(c||"").match(ft.notSpaceStart))==null?void 0:b[0],h=d.replace(ft.endingNewline,"")+`
|
|
94
|
+
`;return s?'<pre><code class="language-'+rl(s)+'">'+(r?h:rl(h,!0))+`</code></pre>
|
|
95
|
+
`:"<pre><code>"+(r?h:rl(h,!0))+`</code></pre>
|
|
96
|
+
`}blockquote({tokens:d}){return`<blockquote>
|
|
97
|
+
${this.parser.parse(d)}</blockquote>
|
|
98
|
+
`}html({text:d}){return d}def(d){return""}heading({tokens:d,depth:c}){return`<h${c}>${this.parser.parseInline(d)}</h${c}>
|
|
99
|
+
`}hr(d){return`<hr>
|
|
100
|
+
`}list(d){let c=d.ordered,r=d.start,s="";for(let A=0;A<d.items.length;A++){let w=d.items[A];s+=this.listitem(w)}let h=c?"ol":"ul",b=c&&r!==1?' start="'+r+'"':"";return"<"+h+b+`>
|
|
101
|
+
`+s+"</"+h+`>
|
|
102
|
+
`}listitem(d){return`<li>${this.parser.parse(d.tokens)}</li>
|
|
103
|
+
`}checkbox({checked:d}){return"<input "+(d?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:d}){return`<p>${this.parser.parseInline(d)}</p>
|
|
104
|
+
`}table(d){let c="",r="";for(let h=0;h<d.header.length;h++)r+=this.tablecell(d.header[h]);c+=this.tablerow({text:r});let s="";for(let h=0;h<d.rows.length;h++){let b=d.rows[h];r="";for(let A=0;A<b.length;A++)r+=this.tablecell(b[A]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
105
|
+
<thead>
|
|
106
|
+
`+c+`</thead>
|
|
107
|
+
`+s+`</table>
|
|
108
|
+
`}tablerow({text:d}){return`<tr>
|
|
109
|
+
${d}</tr>
|
|
110
|
+
`}tablecell(d){let c=this.parser.parseInline(d.tokens),r=d.header?"th":"td";return(d.align?`<${r} align="${d.align}">`:`<${r}>`)+c+`</${r}>
|
|
111
|
+
`}strong({tokens:d}){return`<strong>${this.parser.parseInline(d)}</strong>`}em({tokens:d}){return`<em>${this.parser.parseInline(d)}</em>`}codespan({text:d}){return`<code>${rl(d,!0)}</code>`}br(d){return"<br>"}del({tokens:d}){return`<del>${this.parser.parseInline(d)}</del>`}link({href:d,title:c,tokens:r}){let s=this.parser.parseInline(r),h=Yh(d);if(h===null)return s;d=h;let b='<a href="'+d+'"';return c&&(b+=' title="'+rl(c)+'"'),b+=">"+s+"</a>",b}image({href:d,title:c,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let h=Yh(d);if(h===null)return rl(r);d=h;let b=`<img src="${d}" alt="${rl(r)}"`;return c&&(b+=` title="${rl(c)}"`),b+=">",b}text(d){return"tokens"in d&&d.tokens?this.parser.parseInline(d.tokens):"escaped"in d&&d.escaped?d.text:rl(d.text)}},Vr=class{strong({text:d}){return d}em({text:d}){return d}codespan({text:d}){return d}del({text:d}){return d}html({text:d}){return d}text({text:d}){return d}link({text:d}){return""+d}image({text:d}){return""+d}br(){return""}checkbox({raw:d}){return d}},Wt=class Ur{constructor(c){Ee(this,"options");Ee(this,"renderer");Ee(this,"textRenderer");this.options=c||qa,this.options.renderer=this.options.renderer||new ic,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Vr}static parse(c,r){return new Ur(r).parse(c)}static parseInline(c,r){return new Ur(r).parseInline(c)}parse(c){var s,h;this.renderer.parser=this;let r="";for(let b=0;b<c.length;b++){let A=c[b];if((h=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&h[A.type]){let g=A,v=this.options.extensions.renderers[g.type].call({parser:this},g);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(g.type)){r+=v||"";continue}}let w=A;switch(w.type){case"space":{r+=this.renderer.space(w);break}case"hr":{r+=this.renderer.hr(w);break}case"heading":{r+=this.renderer.heading(w);break}case"code":{r+=this.renderer.code(w);break}case"table":{r+=this.renderer.table(w);break}case"blockquote":{r+=this.renderer.blockquote(w);break}case"list":{r+=this.renderer.list(w);break}case"checkbox":{r+=this.renderer.checkbox(w);break}case"html":{r+=this.renderer.html(w);break}case"def":{r+=this.renderer.def(w);break}case"paragraph":{r+=this.renderer.paragraph(w);break}case"text":{r+=this.renderer.text(w);break}default:{let g='Token with "'+w.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(c,r=this.renderer){var h,b;this.renderer.parser=this;let s="";for(let A=0;A<c.length;A++){let w=c[A];if((b=(h=this.options.extensions)==null?void 0:h.renderers)!=null&&b[w.type]){let v=this.options.extensions.renderers[w.type].call({parser:this},w);if(v!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(w.type)){s+=v||"";continue}}let g=w;switch(g.type){case"escape":{s+=r.text(g);break}case"html":{s+=r.html(g);break}case"link":{s+=r.link(g);break}case"image":{s+=r.image(g);break}case"checkbox":{s+=r.checkbox(g);break}case"strong":{s+=r.strong(g);break}case"em":{s+=r.em(g);break}case"codespan":{s+=r.codespan(g);break}case"br":{s+=r.br(g);break}case"del":{s+=r.del(g);break}case"text":{s+=r.text(g);break}default:{let v='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return s}},lc,Ui=(lc=class{constructor(d){Ee(this,"options");Ee(this,"block");this.options=d||qa}preprocess(d){return d}postprocess(d){return d}processAllTokens(d){return d}emStrongMask(d){return d}provideLexer(d=this.block){return d?$t.lex:$t.lexInline}provideParser(d=this.block){return d?Wt.parse:Wt.parseInline}},Ee(lc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ee(lc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),lc),f1=class{constructor(...d){Ee(this,"defaults",qr());Ee(this,"options",this.setOptions);Ee(this,"parse",this.parseMarkdown(!0));Ee(this,"parseInline",this.parseMarkdown(!1));Ee(this,"Parser",Wt);Ee(this,"Renderer",ic);Ee(this,"TextRenderer",Vr);Ee(this,"Lexer",$t);Ee(this,"Tokenizer",nc);Ee(this,"Hooks",Ui);this.use(...d)}walkTokens(d,c){var s,h;let r=[];for(let b of d)switch(r=r.concat(c.call(this,b)),b.type){case"table":{let A=b;for(let w of A.header)r=r.concat(this.walkTokens(w.tokens,c));for(let w of A.rows)for(let g of w)r=r.concat(this.walkTokens(g.tokens,c));break}case"list":{let A=b;r=r.concat(this.walkTokens(A.items,c));break}default:{let A=b;(h=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&h[A.type]?this.defaults.extensions.childTokens[A.type].forEach(w=>{let g=A[w].flat(1/0);r=r.concat(this.walkTokens(g,c))}):A.tokens&&(r=r.concat(this.walkTokens(A.tokens,c)))}}return r}use(...d){let c=this.defaults.extensions||{renderers:{},childTokens:{}};return d.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(h=>{if(!h.name)throw new Error("extension name required");if("renderer"in h){let b=c.renderers[h.name];b?c.renderers[h.name]=function(...A){let w=h.renderer.apply(this,A);return w===!1&&(w=b.apply(this,A)),w}:c.renderers[h.name]=h.renderer}if("tokenizer"in h){if(!h.level||h.level!=="block"&&h.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let b=c[h.level];b?b.unshift(h.tokenizer):c[h.level]=[h.tokenizer],h.start&&(h.level==="block"?c.startBlock?c.startBlock.push(h.start):c.startBlock=[h.start]:h.level==="inline"&&(c.startInline?c.startInline.push(h.start):c.startInline=[h.start]))}"childTokens"in h&&h.childTokens&&(c.childTokens[h.name]=h.childTokens)}),s.extensions=c),r.renderer){let h=this.defaults.renderer||new ic(this.defaults);for(let b in r.renderer){if(!(b in h))throw new Error(`renderer '${b}' does not exist`);if(["options","parser"].includes(b))continue;let A=b,w=r.renderer[A],g=h[A];h[A]=(...v)=>{let k=w.apply(h,v);return k===!1&&(k=g.apply(h,v)),k||""}}s.renderer=h}if(r.tokenizer){let h=this.defaults.tokenizer||new nc(this.defaults);for(let b in r.tokenizer){if(!(b in h))throw new Error(`tokenizer '${b}' does not exist`);if(["options","rules","lexer"].includes(b))continue;let A=b,w=r.tokenizer[A],g=h[A];h[A]=(...v)=>{let k=w.apply(h,v);return k===!1&&(k=g.apply(h,v)),k}}s.tokenizer=h}if(r.hooks){let h=this.defaults.hooks||new Ui;for(let b in r.hooks){if(!(b in h))throw new Error(`hook '${b}' does not exist`);if(["options","block"].includes(b))continue;let A=b,w=r.hooks[A],g=h[A];Ui.passThroughHooks.has(b)?h[A]=v=>{if(this.defaults.async&&Ui.passThroughHooksRespectAsync.has(b))return(async()=>{let R=await w.call(h,v);return g.call(h,R)})();let k=w.call(h,v);return g.call(h,k)}:h[A]=(...v)=>{if(this.defaults.async)return(async()=>{let R=await w.apply(h,v);return R===!1&&(R=await g.apply(h,v)),R})();let k=w.apply(h,v);return k===!1&&(k=g.apply(h,v)),k}}s.hooks=h}if(r.walkTokens){let h=this.defaults.walkTokens,b=r.walkTokens;s.walkTokens=function(A){let w=[];return w.push(b.call(this,A)),h&&(w=w.concat(h.call(this,A))),w}}this.defaults={...this.defaults,...s}}),this}setOptions(d){return this.defaults={...this.defaults,...d},this}lexer(d,c){return $t.lex(d,c??this.defaults)}parser(d,c){return Wt.parse(d,c??this.defaults)}parseMarkdown(d){return(c,r)=>{let s={...r},h={...this.defaults,...s},b=this.onError(!!h.silent,!!h.async);if(this.defaults.async===!0&&s.async===!1)return b(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof c>"u"||c===null)return b(new Error("marked(): input parameter is undefined or null"));if(typeof c!="string")return b(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(c)+", string expected"));if(h.hooks&&(h.hooks.options=h,h.hooks.block=d),h.async)return(async()=>{let A=h.hooks?await h.hooks.preprocess(c):c,w=await(h.hooks?await h.hooks.provideLexer(d):d?$t.lex:$t.lexInline)(A,h),g=h.hooks?await h.hooks.processAllTokens(w):w;h.walkTokens&&await Promise.all(this.walkTokens(g,h.walkTokens));let v=await(h.hooks?await h.hooks.provideParser(d):d?Wt.parse:Wt.parseInline)(g,h);return h.hooks?await h.hooks.postprocess(v):v})().catch(b);try{h.hooks&&(c=h.hooks.preprocess(c));let A=(h.hooks?h.hooks.provideLexer(d):d?$t.lex:$t.lexInline)(c,h);h.hooks&&(A=h.hooks.processAllTokens(A)),h.walkTokens&&this.walkTokens(A,h.walkTokens);let w=(h.hooks?h.hooks.provideParser(d):d?Wt.parse:Wt.parseInline)(A,h);return h.hooks&&(w=h.hooks.postprocess(w)),w}catch(A){return b(A)}}}onError(d,c){return r=>{if(r.message+=`
|
|
112
|
+
Please report this to https://github.com/markedjs/marked.`,d){let s="<p>An error occurred:</p><pre>"+rl(r.message+"",!0)+"</pre>";return c?Promise.resolve(s):s}if(c)return Promise.reject(r);throw r}}},Ha=new f1;function ze(d,c){return Ha.parse(d,c)}ze.options=ze.setOptions=function(d){return Ha.setOptions(d),ze.defaults=Ha.defaults,Ph(ze.defaults),ze};ze.getDefaults=qr;ze.defaults=qa;ze.use=function(...d){return Ha.use(...d),ze.defaults=Ha.defaults,Ph(ze.defaults),ze};ze.walkTokens=function(d,c){return Ha.walkTokens(d,c)};ze.parseInline=Ha.parseInline;ze.Parser=Wt;ze.parser=Wt.parse;ze.Renderer=ic;ze.TextRenderer=Vr;ze.Lexer=$t;ze.lexer=$t.lex;ze.Tokenizer=nc;ze.Hooks=Ui;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;Wt.parse;$t.lex;/**
|
|
113
|
+
* @license lucide-react v1.20.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const rp=(...d)=>d.filter((c,r,s)=>!!c&&c.trim()!==""&&s.indexOf(c)===r).join(" ").trim();/**
|
|
118
|
+
* @license lucide-react v1.20.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const o1=d=>d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
123
|
+
* @license lucide-react v1.20.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const d1=d=>d.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,r,s)=>s?s.toUpperCase():r.toLowerCase());/**
|
|
128
|
+
* @license lucide-react v1.20.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const Zh=d=>{const c=d1(d);return c.charAt(0).toUpperCase()+c.slice(1)};/**
|
|
133
|
+
* @license lucide-react v1.20.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/var Ar={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
138
|
+
* @license lucide-react v1.20.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const h1=d=>{for(const c in d)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1},p1=X.createContext({}),m1=()=>X.useContext(p1),g1=X.forwardRef(({color:d,size:c,strokeWidth:r,absoluteStrokeWidth:s,className:h="",children:b,iconNode:A,...w},g)=>{const{size:v=24,strokeWidth:k=2,absoluteStrokeWidth:R=!1,color:H="currentColor",className:le=""}=m1()??{},B=s??R?Number(r??k)*24/Number(c??v):r??k;return X.createElement("svg",{ref:g,...Ar,width:c??v??Ar.width,height:c??v??Ar.height,stroke:d??H,strokeWidth:B,className:rp("lucide",le,h),...!b&&!h1(w)&&{"aria-hidden":"true"},...w},[...A.map(([he,ce])=>X.createElement(he,ce)),...Array.isArray(b)?b:[b]])});/**
|
|
143
|
+
* @license lucide-react v1.20.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const Ae=(d,c)=>{const r=X.forwardRef(({className:s,...h},b)=>X.createElement(g1,{ref:b,iconNode:c,className:rp(`lucide-${o1(Zh(d))}`,`lucide-${d}`,s),...h}));return r.displayName=Zh(d),r};/**
|
|
148
|
+
* @license lucide-react v1.20.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const y1=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],x1=Ae("arrow-up",y1);/**
|
|
153
|
+
* @license lucide-react v1.20.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const b1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],v1=Ae("bell-off",b1);/**
|
|
158
|
+
* @license lucide-react v1.20.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const S1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],z1=Ae("bell",S1);/**
|
|
163
|
+
* @license lucide-react v1.20.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const j1=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Xh=Ae("bot",j1);/**
|
|
168
|
+
* @license lucide-react v1.20.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const N1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],_r=Ae("check",N1);/**
|
|
173
|
+
* @license lucide-react v1.20.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const T1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Dn=Ae("chevron-down",T1);/**
|
|
178
|
+
* @license lucide-react v1.20.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const E1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],kr=Ae("chevron-up",E1);/**
|
|
183
|
+
* @license lucide-react v1.20.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const A1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],wr=Ae("circle-alert",A1);/**
|
|
188
|
+
* @license lucide-react v1.20.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/const _1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],k1=Ae("clock",_1);/**
|
|
193
|
+
* @license lucide-react v1.20.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const w1=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Vh=Ae("code",w1);/**
|
|
198
|
+
* @license lucide-react v1.20.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const O1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],M1=Ae("compass",O1);/**
|
|
203
|
+
* @license lucide-react v1.20.0 - ISC
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the ISC license.
|
|
206
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/const D1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Jh=Ae("copy",D1);/**
|
|
208
|
+
* @license lucide-react v1.20.0 - ISC
|
|
209
|
+
*
|
|
210
|
+
* This source code is licensed under the ISC license.
|
|
211
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
+
*/const C1=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],R1=Ae("corner-down-right",C1);/**
|
|
213
|
+
* @license lucide-react v1.20.0 - ISC
|
|
214
|
+
*
|
|
215
|
+
* This source code is licensed under the ISC license.
|
|
216
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
+
*/const U1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],H1=Ae("external-link",U1);/**
|
|
218
|
+
* @license lucide-react v1.20.0 - ISC
|
|
219
|
+
*
|
|
220
|
+
* This source code is licensed under the ISC license.
|
|
221
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
+
*/const q1=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Kh=Ae("folder-open",q1);/**
|
|
223
|
+
* @license lucide-react v1.20.0 - ISC
|
|
224
|
+
*
|
|
225
|
+
* This source code is licensed under the ISC license.
|
|
226
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
+
*/const B1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Y1=Ae("folder",B1);/**
|
|
228
|
+
* @license lucide-react v1.20.0 - ISC
|
|
229
|
+
*
|
|
230
|
+
* This source code is licensed under the ISC license.
|
|
231
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
+
*/const G1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],L1=Ae("globe",G1);/**
|
|
233
|
+
* @license lucide-react v1.20.0 - ISC
|
|
234
|
+
*
|
|
235
|
+
* This source code is licensed under the ISC license.
|
|
236
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
+
*/const Q1=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Z1=Ae("house",Q1);/**
|
|
238
|
+
* @license lucide-react v1.20.0 - ISC
|
|
239
|
+
*
|
|
240
|
+
* This source code is licensed under the ISC license.
|
|
241
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
+
*/const X1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],V1=Ae("message-square",X1);/**
|
|
243
|
+
* @license lucide-react v1.20.0 - ISC
|
|
244
|
+
*
|
|
245
|
+
* This source code is licensed under the ISC license.
|
|
246
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
247
|
+
*/const J1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],$h=Ae("play",J1);/**
|
|
248
|
+
* @license lucide-react v1.20.0 - ISC
|
|
249
|
+
*
|
|
250
|
+
* This source code is licensed under the ISC license.
|
|
251
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
252
|
+
*/const K1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],tc=Ae("plus",K1);/**
|
|
253
|
+
* @license lucide-react v1.20.0 - ISC
|
|
254
|
+
*
|
|
255
|
+
* This source code is licensed under the ISC license.
|
|
256
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
257
|
+
*/const $1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ri=Ae("refresh-cw",$1);/**
|
|
258
|
+
* @license lucide-react v1.20.0 - ISC
|
|
259
|
+
*
|
|
260
|
+
* This source code is licensed under the ISC license.
|
|
261
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
262
|
+
*/const W1=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],F1=Ae("server",W1);/**
|
|
263
|
+
* @license lucide-react v1.20.0 - ISC
|
|
264
|
+
*
|
|
265
|
+
* This source code is licensed under the ISC license.
|
|
266
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
267
|
+
*/const I1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Wh=Ae("settings",I1);/**
|
|
268
|
+
* @license lucide-react v1.20.0 - ISC
|
|
269
|
+
*
|
|
270
|
+
* This source code is licensed under the ISC license.
|
|
271
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
272
|
+
*/const P1=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Or=Ae("sparkles",P1);/**
|
|
273
|
+
* @license lucide-react v1.20.0 - ISC
|
|
274
|
+
*
|
|
275
|
+
* This source code is licensed under the ISC license.
|
|
276
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
277
|
+
*/const eg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Mr=Ae("square",eg);/**
|
|
278
|
+
* @license lucide-react v1.20.0 - ISC
|
|
279
|
+
*
|
|
280
|
+
* This source code is licensed under the ISC license.
|
|
281
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
282
|
+
*/const tg=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Fh=Ae("terminal",tg);/**
|
|
283
|
+
* @license lucide-react v1.20.0 - ISC
|
|
284
|
+
*
|
|
285
|
+
* This source code is licensed under the ISC license.
|
|
286
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
287
|
+
*/const lg=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ag=Ae("user",lg),Ih=[{id:"default",name:"🤖 Modelo por defecto"},{id:"deepseek/deepseek-chat",name:"⚡️ DeepSeek v4 (Chat rápido)"},{id:"deepseek/deepseek-reasoner",name:"💭 DeepSeek R1 (Pensamiento/Razonamiento)"},{id:"google/gemini-3.5-flash",name:"♊️ Gemini 3.5 Flash"},{id:"google/gemini-3.1-pro-preview",name:"🧠 Gemini 3.1 Pro (Complejo)"},{id:"opencode/deepseek-v4-flash-free",name:"🆓 DeepSeek v4 (Flash Gratis)"},{id:"opencode/nemotron-3-ultra-free",name:"🆓 Nemotron 3 Ultra (Gratis)"}],Dr=[{id:"build",name:"🛠️ Build",description:"Agente de desarrollo estándar. Tiene todas las herramientas de lectura, escritura y bash habilitadas para programar.",color:"#3b82f6"},{id:"plan",name:"📋 Plan",description:"Agente de solo lectura/planificación. Útil para analizar el código base y planificar cambios de forma segura sin editarlos directamente.",color:"#a855f7"},{id:"sdd-orchestrator",name:"🤖 Sdd-Orchestrator",description:"Coordinador principal del flujo SDD (Spec-Driven Development). Automatiza los subagentes spec-writer, coder y tester.",color:"#10b981"}];function ng(){var ba;const[d,c]=X.useState([]),[r,s]=X.useState(""),h=X.useRef("");X.useEffect(()=>{h.current=r},[r]);const[b,A]=X.useState(null),[w,g]=X.useState([]),[v,k]=X.useState(""),[R,H]=X.useState(!1),[le,B]=X.useState(()=>typeof Notification<"u"&&Notification.permission==="granted"),[he,ce]=X.useState(""),[Qe,Pe]=X.useState({}),[ke,I]=X.useState(""),[Ce,Ue]=X.useState(""),[ne,ct]=X.useState([]),[ot,wl]=X.useState(4096),[Ze,Xe]=X.useState(()=>{const p=localStorage.getItem("zugzweb_projects");if(p)try{return JSON.parse(p)}catch{}return[]}),[Gt,st]=X.useState(()=>{const p=localStorage.getItem("zugzweb_session_mappings");if(p)try{return JSON.parse(p)}catch{}return{}}),[Me,_]=X.useState(()=>localStorage.getItem("zugzweb_active_project_id")||"workspace_raiz"),[L,K]=X.useState(()=>{const p=localStorage.getItem("zugzweb_expanded_projects");if(p)try{return JSON.parse(p)}catch{}return{workspace_raiz:!0}}),[ye,xe]=X.useState(!1),[x,C]=X.useState(""),[Y,Q]=X.useState("");X.useEffect(()=>{localStorage.setItem("zugzweb_projects",JSON.stringify(Ze))},[Ze]),X.useEffect(()=>{localStorage.setItem("zugzweb_session_mappings",JSON.stringify(Gt))},[Gt]),X.useEffect(()=>{localStorage.setItem("zugzweb_active_project_id",Me)},[Me]),X.useEffect(()=>{localStorage.setItem("zugzweb_expanded_projects",JSON.stringify(L))},[L]);const[W,ae]=X.useState(()=>{const p=localStorage.getItem("zugzweb_sidebar_width");return p?parseInt(p,10):320});X.useEffect(()=>{localStorage.setItem("zugzweb_sidebar_width",String(W))},[W]);const[fe,et]=X.useState("default"),[Re,Ol]=X.useState(""),[Ba,Ya]=X.useState(()=>window.location.pathname==="/new"),[Ga,Ft]=X.useState(()=>window.location.pathname==="/new"?`Sesión Web ${new Date().toLocaleString([],{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}`:""),[sa,Rn]=X.useState("sdd-orchestrator"),[ra,qi]=X.useState("default"),[La,Qa]=X.useState(""),[It,Un]=X.useState("sdd-orchestrator"),[sc,dt]=X.useState(()=>localStorage.getItem("zugzweb_setup_completed")==="true"),[rc,Za]=X.useState(!1),[Ot,Ml]=X.useState(""),[Hn,Bi]=X.useState(null),[Yi,fc]=X.useState([]),[fa,ht]=X.useState(""),[Pt,pt]=X.useState(""),[Gi,Xa]=X.useState(""),[oc,oa]=X.useState(!1),[da,Va]=X.useState(null),[fl,Ja]=X.useState("Seleccionar Carpeta"),gt=async p=>{oa(!0),Xa("");try{const T=p?`?path=${encodeURIComponent(p)}`:"",U=await fetch(`/api-custom/list-dir${T}`);if(U.ok){const G=await U.json();Ml(G.currentPath),Bi(G.parentPath),fc(G.directories||[]),ht(G.home||""),pt(G.cwd||""),Xa("")}else{const G=await U.json();Xa(G.error||"No se pudo leer el directorio")}}catch(T){Xa("Error de red al conectar con el servidor: "+T.message)}finally{oa(!1)}},Li=(p,T,U)=>{Ja(p),Va(()=>U),Za(!0),gt(T||Ce)};X.useEffect(()=>{Ce&&!Ot&&(Ml(Ce),gt(Ce))},[Ce]);const qn=p=>f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:Ot,onChange:T=>Ml(T.target.value),onKeyDown:T=>{T.key==="Enter"&>(Ot)},className:"flex-1 bg-[#121215] border border-[#27272a] focus:border-[#3f3f46] rounded-xl px-3.5 py-2 text-xs font-mono text-white outline-none transition",placeholder:"Ruta absoluta..."}),f.jsx("button",{type:"button",onClick:()=>gt(Ot),className:"px-3 py-2 bg-white text-[#09090b] text-xs font-bold rounded-xl hover:bg-[#e4e4e7] transition cursor-pointer",children:"Ir"})]}),f.jsxs("div",{className:"flex gap-2 items-center flex-wrap",children:[f.jsxs("button",{type:"button",disabled:!Hn,onClick:()=>Hn&>(Hn),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#1c1c1f] hover:bg-[#27272a] disabled:opacity-40 disabled:hover:bg-[#1c1c1f] border border-[#2e2e33] rounded-lg text-xs text-white transition cursor-pointer font-medium",title:"Subir un nivel",children:[f.jsx(x1,{size:12}),f.jsx("span",{children:"Subir Nivel"})]}),f.jsxs("button",{type:"button",onClick:()=>gt(fa),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#1c1c1f] hover:bg-[#27272a] border border-[#2e2e33] rounded-lg text-xs text-white transition cursor-pointer font-medium",title:"Carpeta Home",children:[f.jsx(Z1,{size:12}),f.jsx("span",{children:"Home"})]}),f.jsxs("button",{type:"button",onClick:()=>gt(Pt),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#1c1c1f] hover:bg-[#27272a] border border-[#2e2e33] rounded-lg text-xs text-white transition cursor-pointer font-medium",title:"Directorio Raíz del Servidor",children:[f.jsx(M1,{size:12}),f.jsx("span",{children:"CWD Servidor"})]})]})]}),Gi&&f.jsxs("div",{className:"p-3 bg-red-950/40 border border-red-900/50 rounded-xl flex items-center gap-2 text-red-400 text-xs animate-pulse",children:[f.jsx(wr,{size:14,className:"shrink-0"}),f.jsx("span",{children:Gi})]}),f.jsxs("div",{className:"border border-[#1f1f23] rounded-xl bg-[#070709] overflow-hidden",children:[f.jsx("div",{className:"p-2 border-b border-[#1f1f23] bg-[#0c0c0e]/60 text-[10px] text-[#71717a] font-bold uppercase tracking-wider select-none",children:"Subcarpetas en este directorio:"}),f.jsx("div",{className:"max-h-64 overflow-y-auto p-2 space-y-1 scrollbar-thin",children:oc?f.jsxs("div",{className:"py-8 flex flex-col items-center justify-center text-[#71717a] space-y-2",children:[f.jsx(Ri,{size:18,className:"animate-spin text-white/60"}),f.jsx("span",{className:"text-xs",children:"Cargando carpetas..."})]}):Yi.length===0?f.jsx("div",{className:"py-8 text-center text-xs text-[#52525b] italic",children:"No se encontraron subcarpetas visibles en este directorio."}):f.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-1.5",children:Yi.map((T,U)=>f.jsxs("button",{type:"button",onClick:()=>{const G=Ot.includes("\\")?"\\":"/",q=Ot.endsWith(G)?Ot+T:Ot+G+T;gt(q)},className:"flex items-center gap-2 p-2 rounded-lg bg-[#0c0c0e]/40 border border-[#1c1c1f] hover:border-[#27272a] hover:bg-[#121215] text-left text-xs text-white transition cursor-pointer outline-none truncate",children:[f.jsx(Y1,{size:14,className:"text-amber-500 shrink-0"}),f.jsx("span",{className:"truncate font-medium",children:T})]},U))})})]}),f.jsx("div",{className:"flex justify-end pt-2",children:f.jsxs("button",{type:"button",onClick:()=>p(Ot),className:"flex items-center gap-1.5 px-4 py-2.5 bg-emerald-500 hover:bg-emerald-400 text-[#09090b] text-xs font-bold rounded-xl transition cursor-pointer shadow-md",children:[f.jsx(_r,{size:14,strokeWidth:2.5}),f.jsx("span",{children:"Confirmar Selección"})]})})]}),el=X.useRef(null),tl=X.useRef(!1),[dc,Ka]=X.useState(!1),Mt=p=>{if(window.history.pushState(null,"",p),Ya(p==="/new"),p==="/new"){const T=new Date().toLocaleString([],{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"});Ft(`Sesión Web ${T}`)}};X.useEffect(()=>{Bn(),hc(),$a(),nl();const p=()=>{Ya(window.location.pathname==="/new")};window.addEventListener("popstate",p);const T=setInterval(()=>{$a(),nl()},5e3);return()=>{window.removeEventListener("popstate",p),clearInterval(T)}},[]);const Dl=()=>{r&&(ol(r),Qt(),Lt(r))};X.useEffect(()=>{r&&Dl()},[r,ot]);const ha=X.useRef(0),ll=X.useRef(null),pa=p=>{if(!p)return;const T=Date.now(),U=200;if(ll.current)return;const G=U-(T-ha.current);G<=0?(ol(p),ha.current=T):ll.current=setTimeout(()=>{ol(p),ha.current=Date.now(),ll.current=null},G)};X.useEffect(()=>{if(!r)return;const p=new EventSource("/api/event"),T=q=>{var F,oe;try{const Ve=JSON.parse(q.data),He=Ve.type||q.type,Xt=((F=Ve.properties)==null?void 0:F.sessionID)||((oe=Ve.properties)==null?void 0:oe.sessionId)||Ve.sessionId||Ve.session_id;He.startsWith("message.")&&(!Xt||Xt===r)?pa(r):He.startsWith("session.")&&(!Xt||Xt===r)&&(Qt(),Lt(r),pa(r))}catch{pa(r)}};p.addEventListener("message",T),["message.part.updated","message.part.removed","message.updated","session.status","session.idle","session.updated","session.created"].forEach(q=>{p.addEventListener(q,T)}),p.onerror=()=>{};const G=setInterval(()=>{Qt(),pa(r),Lt(r)},6e3);return()=>{p.close(),ll.current&&(clearTimeout(ll.current),ll.current=null),clearInterval(G)}},[r,ot]),X.useEffect(()=>{!dc&&el.current&&(el.current.scrollTop=el.current.scrollHeight)},[w]);const Qi=()=>{if(el.current){const{scrollTop:p,scrollHeight:T,clientHeight:U}=el.current,G=T-p-U<120;Ka(!G)}},al=p=>{try{return{__html:ze.parse(p,{gfm:!0,breaks:!0})}}catch{return{__html:p}}},Fe=async()=>{if(le){B(!1);return}await Notification.requestPermission()==="granted"?(B(!0),tt("¡Notificaciones activadas!","Te avisaremos cuando tus flujos en Opencode terminen.")):alert("Permiso de notificación denegado por el navegador.")},tt=(p,T)=>{Notification.permission==="granted"&&new Notification(p,{body:T,icon:"/favicon.ico"})},Cl=(p,T)=>{navigator.clipboard.writeText(p).then(()=>{Ol(T),setTimeout(()=>Ol(""),2e3)})};async function Bn(){try{const p=await fetch("/api-custom/tunnel-status");if(p.ok){const T=await p.json();ce(T.url||"")}}catch(p){console.error("Error obteniendo estado del túnel:",p)}}async function hc(){try{const p=await fetch("/api-custom/cwd");if(p.ok){const T=await p.json();T.cwd&&(Ue(T.cwd),Xe(U=>!localStorage.getItem("zugzweb_projects")||U.length===0?[{id:"workspace_raiz",name:"Carpeta Base Zugz",path:T.cwd}]:U.some(F=>F.id==="workspace_raiz")?U.map(F=>F.id==="workspace_raiz"?{...F,name:"Carpeta Base Zugz",path:T.cwd}:F):[{id:"workspace_raiz",name:"Carpeta Base Zugz",path:T.cwd},...U]))}}catch(p){console.error("Error al obtener cwd:",p)}}async function $a(){try{const p=await fetch("/api-custom/instances");if(p.ok){const T=await p.json();ct(T.instances||[]),wl(T.currentPort||4096)}}catch(p){console.error("Error obteniendo instancias de Opencode:",p)}}async function nl(){try{const p=await fetch("/api/session");if(p.ok){const T=await p.json(),U=Array.isArray(T)?T:T.sessions||[];if(c(U),st(G=>{let q=!1;const F={...G};for(const oe of U)F[oe.id]||(F[oe.id]=Me,q=!0);return q?F:G}),I(""),U.length>0){const G=U.some(q=>q.id===h.current);(!h.current||!G)&&s(U[0].id)}else Mt("/new")}else{const T=await p.json().catch(()=>({}));I(T.message||'No se pudo conectar con Opencode. ¿Has iniciado "opencode serve"?')}}catch{I("No se pudo conectar al Daemon local de Opencode")}}async function Lt(p){try{const T=await fetch(`/api/session/${p}`);if(T.ok){const U=await T.json();A(U),U.agent&&Un(U.agent),I("")}else s(""),A(null)}catch(T){console.error(T)}}async function ol(p){try{const T=await fetch(`/api/session/${p}/message`);if(T.ok){const U=await T.json(),G=Array.isArray(U)?U:U.messages||[];g(G),I("")}else{const U=await T.json().catch(()=>({}));I(U.message||"No se pudieron recuperar los mensajes")}}catch(T){console.error(T)}}async function Qt(){try{const p=await fetch("/api/session/status");if(p.ok){const T=await p.json();if(r&&T[r]){const U=T[r];U==="thinking"||U==="running_tools"||U==="busy"?H(q=>tl.current?!1:q||!0):(tl.current=!1,H(q=>q&&(tt("Opencode: ¡Ejecución Completada! 🎉","El agente ha finalizado el procesamiento de tu solicitud con éxito."),ol(r),Lt(r),!1)))}I("")}else{const T=await p.json().catch(()=>({}));I(T.message||"No se pudo comprobar el estado de Opencode")}}catch(p){console.error(p)}}const Rl=async p=>{if(p.preventDefault(),!x.trim()||!Y.trim())return;let T=Y.trim();if(!T.startsWith("/")){const q=Ze.find(oe=>oe.id==="workspace_raiz");T=`${q?q.path:Ce}/${T}`}const U=`project_${Date.now()}`,G={id:U,name:x.trim(),path:T};try{await fetch("/api-custom/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:T})})}catch(q){console.error("Error al solicitar creación de carpeta física:",q)}Xe(q=>[...q,G]),K(q=>({...q,[U]:!0})),_(U),C(""),Q(""),xe(!1)},ma=p=>{if(p==="workspace_raiz"){alert("No puedes eliminar el proyecto raíz principal.");return}confirm("¿Estás seguro de que quieres eliminar este proyecto? Las sesiones asociadas se moverán al Inbox / Sin Clasificar.")&&(Xe(T=>T.filter(U=>U.id!==p)),st(T=>{const U={...T};for(const G in U)U[G]===p&&delete U[G];return U}),Me===p&&_("workspace_raiz"))},Ul=p=>{K(T=>({...T,[p]:!T[p]}))},Ye=async(p,T)=>{const U=Ze.find(G=>G.id===T);if(U)if(Me!==T){H(!0),I(`Activando entorno de "${U.name}"...`);try{const G=await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:U.path})});if(G.ok)_(T),c([]),s(""),A(null),g([]),await nl(),s(p),I(""),Mt("/");else{const q=await G.json().catch(()=>({}));I(q.error||"Error al activar el proyecto para esta sesión")}}catch{I("Error de conexión al activar el proyecto de la sesión")}finally{H(!1)}}else s(p),I(""),Mt("/")},Zi=async p=>{const T=Ze.find(U=>U.id===p);if(T){H(!0),I("Activando entorno de proyecto en segundo plano...");try{const U=await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:T.path})});if(U.ok)_(p),c([]),s(""),A(null),g([]),await nl(),I("");else{const G=await U.json().catch(()=>({}));I(G.error||"Error al activar el proyecto")}}catch{I("No se pudo conectar con el Daemon para activar el proyecto")}finally{H(!1)}}},Xi=async p=>{const T=Ze.find(G=>G.id===p);if(!T)return;if(Me!==p){H(!0),I(`Activando entorno de "${T.name}"...`);try{if((await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:T.path})})).ok)_(p),c([]),s(""),A(null),g([]),I("");else{alert(`No se pudo activar el proyecto: ${T.name}`),H(!1);return}}catch{alert(`Error al conectar al Daemon para activar el proyecto: ${T.name}`),H(!1);return}}const U=prompt(`Introduce el título de la nueva sesión para "${T.name}":`,`Sesión ${new Date().toLocaleDateString()}`);if(!(!U||!U.trim())){H(!0),I("Iniciando sesión...");try{const G=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:U.trim()})});if(G.ok){const q=await G.json();c(F=>[q,...F]),s(q.id),A(q),g([]),st(F=>({...F,[q.id]:p})),Mt("/")}else alert("Error al crear la sesión en Opencode")}catch{alert("Error de conexión al crear sesión")}finally{H(!1),I("")}}},dl=async(p,T)=>{if(T.stopPropagation(),!!confirm("¿Estás seguro de que quieres eliminar esta sesión y todos sus mensajes permanentemente?"))try{(await fetch(`/api/session/${p}`,{method:"DELETE"})).ok?(c(G=>G.filter(q=>q.id!==p)),st(G=>{const q={...G};return delete q[p],q}),r===p&&(s(""),A(null),g([]))):alert("No se pudo eliminar la sesión de Opencode")}catch{alert("Error de red al eliminar la sesión")}},Hl=p=>{p.preventDefault();const T=p.clientX,U=W,G=F=>{const oe=F.clientX-T,Ve=Math.max(220,Math.min(500,U+oe));ae(Ve)},q=()=>{document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",q)};document.addEventListener("mousemove",G),document.addEventListener("mouseup",q)},pc=async p=>{if(p&&p.preventDefault(),!Ga.trim()){alert("Por favor introduce un título para la sesión");return}try{H(!0);const T=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:Ga.trim()})});if(!T.ok)throw new Error("Error al crear sesión");const U=await T.json();c(oe=>[U,...oe]),s(U.id),A(U),g([]),st(oe=>({...oe,[U.id]:Me})),Un(sa),et(ra);const G=Ze.find(oe=>oe.id===Me);let q="";G&&G.id!=="workspace_raiz"&&(q=`[SISTEMA: Directorio de trabajo del proyecto: ${G.path}. Por favor, realiza todas tus operaciones de archivos, edits, y ejecuciones de comandos de bash estrictamente dentro de esta subcarpeta usando el parámetro "workdir" o comandos relativos a la misma. No escribas archivos en la raíz del repositorio central de Zugzbot a menos que sea explícitamente necesario.]
|
|
288
|
+
|
|
289
|
+
`);const F=(q+La.trim()).trim();if(F){const oe={parts:[{type:"text",text:F}],agent:sa};if(ra&&ra!=="default"){const[Ve,He]=ra.split("/");oe.model={providerID:Ve,modelID:He}}await fetch(`/api/session/${U.id}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(oe)}),Qa("")}Mt("/"),Dl()}catch{alert("Error al iniciar la nueva sesión")}finally{H(!1)}},Yn=async p=>{if(p.preventDefault(),!v.trim()||!r)return;const T=v.trim();k(""),H(!0),Ka(!1);const U={info:{id:`temp-${Date.now()}`,session_id:r,role:"user",time:{created:Date.now()}},parts:[{type:"text",text:T}]};g(G=>[...G,U]);try{if(T.startsWith("/")){const G=T.split(" "),q=G[0].substring(1),F=G.slice(1).join(" ");if(!(await fetch(`/api/session/${r}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:q,arguments:F,agent:It})})).ok)throw new Error("Error al ejecutar comando")}else{const G={parts:[{type:"text",text:T}],agent:It};if(fe&&fe!=="default"){const[F,oe]=fe.split("/");G.model={providerID:F,modelID:oe}}if(!(await fetch(`/api/session/${r}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(G)})).ok)throw new Error("Error al enviar prompt")}Dl()}catch{I("Error al conectar. Comprueba el estado de Opencode."),H(!1)}},ga=async(p,T="")=>{if(!r)return;H(!0),Ka(!1);const U=`/${p} ${T}`.trim(),G={info:{id:`temp-${Date.now()}`,session_id:r,role:"user",time:{created:Date.now()}},parts:[{type:"text",text:U}]};g(q=>[...q,G]);try{if(!(await fetch(`/api/session/${r}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:p,arguments:T,agent:It})})).ok)throw new Error("Error al ejecutar comando rápido");Dl()}catch{I("No se pudo ejecutar el comando rápido."),H(!1)}},mc=async()=>{if(r){tl.current=!0,H(!1);try{(await fetch(`/api/session/${r}/abort`,{method:"POST"})).ok&&(tt("Opencode: Abortado","La sesión en ejecución ha sido cancelada forzadamente."),Dl())}catch(p){console.error(p)}finally{setTimeout(()=>{tl.current=!1},2500)}}},ya=p=>{Pe(T=>({...T,[p]:!T[p]}))},Wa=p=>{if(!p)return"default";if(typeof p=="string")return p.split("/").pop()||p;if(typeof p=="object"&&p!==null){const T=p;return typeof T.modelID=="string"?T.modelID:typeof T.id=="string"?T.id:JSON.stringify(p).substring(0,20)}return"default"},Zt=p=>{var U;const T=((U=p==null?void 0:p.time)==null?void 0:U.created)||(p==null?void 0:p.time_created);if(!T)return"En curso...";try{const G=new Date(T);return isNaN(G.getTime())?"En curso...":G.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch{return"En curso..."}},yt=d.filter(p=>!p.parent_id&&!p.parentID),Gn=p=>d.filter(T=>T.parent_id===p||T.parentID===p),gc=p=>yt.filter(T=>{const U=Gt[T.id];return U&&Ze.some(G=>G.id===U)?U===p:Me===p}),xa=[],Fa=ne.find(p=>p.port===ot);return sc?f.jsxs("div",{className:"flex h-screen bg-[#09090b] text-[#f4f4f5] overflow-hidden antialiased font-sans select-none",children:[f.jsxs("div",{style:{width:`${W}px`},className:"bg-[#0c0c0e] border-r border-[#1f1f23] flex flex-col justify-between shrink-0 relative",children:[f.jsxs("div",{className:"p-4 border-b border-[#1f1f23] flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"p-1.5 bg-[#ffffff] rounded-md text-[#09090b]",children:f.jsx(Fh,{size:18,className:"font-bold animate-pulse"})}),f.jsx("span",{className:"font-bold tracking-tight text-lg",children:"ZugzWeb"})]}),f.jsx("button",{onClick:()=>Mt("/new"),className:"p-1.5 bg-[#27272a] hover:bg-[#3f3f46] text-[#fafafa] rounded-md transition duration-200 cursor-pointer",title:"Nueva Sesión",children:f.jsx(tc,{size:16})})]}),f.jsxs("div",{className:"p-3 border-b border-[#1f1f23] flex items-center justify-between bg-[#09090b]/40",children:[f.jsxs("span",{className:"text-[10px] text-[#fafafa] uppercase font-extrabold tracking-wider flex items-center gap-1.5 select-none",children:[f.jsx(F1,{size:11,className:"text-emerald-400"}),f.jsx("span",{children:"📁 GESTOR DE PROYECTOS"})]}),f.jsxs("button",{onClick:()=>xe(!ye),className:"text-[10px] bg-[#1c1c1f] hover:bg-[#27272a] text-[#a1a1aa] hover:text-white px-2 py-1 rounded border border-[#2e2e33] transition duration-200 cursor-pointer flex items-center gap-1 font-bold",title:"Añadir Proyecto Local",children:[f.jsx(tc,{size:10,strokeWidth:2.5}),f.jsx("span",{children:"Proyecto"})]})]}),ye&&f.jsxs("form",{onSubmit:Rl,className:"p-3 bg-[#121215] border-b border-[#1f1f23] space-y-2.5",children:[f.jsxs("div",{className:"space-y-1",children:[f.jsx("label",{className:"text-[9px] font-bold text-[#71717a] uppercase",children:"Nombre del Proyecto"}),f.jsx("input",{type:"text",required:!0,value:x,onChange:p=>C(p.target.value),placeholder:"Ej. Proyecto ROOT",className:"w-full bg-[#0c0c0e] border border-[#27272a] rounded-lg px-2.5 py-1.5 text-xs text-white outline-none focus:border-[#3f3f46]"})]}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("label",{className:"text-[9px] font-bold text-[#71717a] uppercase",children:"Subcarpeta o Ruta Absoluta"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",required:!0,value:Y,onChange:p=>Q(p.target.value),placeholder:"Ej. mi-proyecto o /Users/nombre/mi-proyecto",className:"flex-1 bg-[#0c0c0e] border border-[#27272a] rounded-lg px-2.5 py-1.5 text-xs text-white outline-none focus:border-[#3f3f46] font-mono"}),f.jsx("button",{type:"button",onClick:()=>Li("Buscar Carpeta del Proyecto",Y||Ce,p=>Q(p)),className:"px-2.5 py-1 bg-[#1c1c1f] hover:bg-[#27272a] border border-[#2e2e33] text-[10px] rounded-lg text-white font-semibold transition cursor-pointer shrink-0",children:"Buscar..."})]}),f.jsxs("div",{className:"text-[9px] text-[#71717a] bg-[#09090b]/40 p-2 rounded border border-[#1f1f23] font-mono break-all leading-normal mt-1",children:[f.jsx("span",{className:"text-[#a1a1aa] font-semibold",children:"📁 Ruta Destino: "}),f.jsx("span",{className:"text-emerald-400",children:Y.trim().startsWith("/")?Y.trim():`${Ce}/${Y.trim()||"mi-proyecto"}`})]})]}),f.jsxs("div",{className:"flex gap-2 justify-end pt-1",children:[f.jsx("button",{type:"button",onClick:()=>xe(!1),className:"px-2 py-1 text-[10px] text-[#71717a] hover:text-white transition cursor-pointer",children:"Cancelar"}),f.jsx("button",{type:"submit",className:"px-2.5 py-1 text-[10px] bg-white text-[#09090b] font-bold rounded hover:bg-[#e4e4e7] transition cursor-pointer",children:"Crear e Instalar"})]})]}),f.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-3",children:[Ze.map(p=>{const T=p.id===Me,U=gc(p.id),G=!!L[p.id];return f.jsxs("div",{className:"space-y-1 border border-transparent rounded-lg p-1 bg-[#09090b]/20",children:[f.jsxs("div",{className:`flex items-center justify-between p-2 rounded-md transition duration-150 ${T?"bg-[#18181c] border border-[#2e2e33]/70":"hover:bg-[#121215]/50"}`,children:[f.jsxs("button",{onClick:()=>Ul(p.id),className:"flex-1 flex items-center gap-2 text-left cursor-pointer outline-none min-w-0",children:[f.jsx("span",{className:"text-[#a1a1aa] shrink-0",children:G?f.jsx(Dn,{size:12}):f.jsx(kr,{size:12})}),f.jsxs("div",{className:"truncate",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsxs("span",{className:"text-white text-xs font-extrabold truncate",children:["📁 ",p.name]}),T&&f.jsx("span",{className:"text-[8px] bg-emerald-950 text-emerald-400 border border-emerald-900/50 px-1 rounded font-bold uppercase shrink-0 tracking-wider",children:"Activo"})]}),f.jsx("span",{className:"text-[9px] text-[#52525b] block truncate font-mono mt-0.5",children:p.path})]})]}),f.jsxs("div",{className:"flex items-center gap-1 shrink-0 ml-1",children:[f.jsx("button",{onClick:()=>Xi(p.id),className:"p-1 hover:bg-[#27272a] text-emerald-500 hover:text-emerald-400 rounded transition cursor-pointer",title:"Crear Sesión en este proyecto",children:f.jsx(tc,{size:10,strokeWidth:3})}),f.jsx("button",{onClick:()=>{Li(`Carpeta para: ${p.name}`,p.path,async q=>{if(Xe(F=>F.map(oe=>oe.id===p.id?{...oe,path:q}:oe)),p.id===Me){H(!0),I("Re-activando proyecto en nueva ruta...");try{await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:q})}),nl()}catch(F){console.error(F)}finally{H(!1),I("")}}})},className:"p-1 hover:bg-[#27272a] text-[#71717a] hover:text-white rounded transition cursor-pointer",title:"Explorar/Cambiar Carpeta del Proyecto",children:f.jsx(Kh,{size:10})}),!T&&f.jsx("button",{onClick:()=>Zi(p.id),className:"p-1 hover:bg-[#27272a] text-[#71717a] hover:text-white rounded transition cursor-pointer",title:"Activar Proyecto",children:f.jsx($h,{size:10,className:"fill-current"})}),p.id!=="workspace_raiz"&&f.jsx("button",{onClick:()=>ma(p.id),className:"p-1 hover:bg-red-950/40 text-[#71717a] hover:text-red-400 rounded transition cursor-pointer",title:"Eliminar Proyecto",children:f.jsx(Mr,{size:10})})]})]}),G&&f.jsx("div",{className:"ml-3 pl-2.5 border-l border-[#1f1f23] space-y-1 pt-1.5 pb-0.5",children:U.length===0?f.jsx("div",{className:"text-[10px] text-[#52525b] italic py-1 pl-1",children:"No hay sesiones en este proyecto. Haz clic en el botón + de arriba para iniciar una."}):U.map(q=>{const F=q.id===r,oe=Gn(q.id),Ve=oe.length>0;return f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:`w-full group/sess flex items-center justify-between rounded-lg p-1.5 transition duration-200 ${F?"bg-[#1c1c1f] border border-[#2e2e33] text-white shadow-sm":"hover:bg-[#121215] text-[#a1a1aa] hover:text-white"}`,children:[f.jsxs("button",{onClick:()=>{Ye(q.id,p.id)},className:"flex-1 text-left cursor-pointer outline-none min-w-0",children:[f.jsxs("span",{className:"font-semibold truncate text-[11px] block",children:["💬 ",q.title||`Sesión: ${q.id.substring(0,8)}`]}),f.jsxs("div",{className:"flex items-center justify-between text-[9px] text-[#52525b] mt-0.5",children:[f.jsx("span",{children:q.agent||"sdd-orchestrator"}),f.jsx("span",{children:Wa(q.model)})]})]}),f.jsx("button",{onClick:He=>dl(q.id,He),className:"opacity-0 group-hover/sess:opacity-100 p-1 hover:bg-red-950/40 text-[#71717a] hover:text-red-400 rounded transition cursor-pointer shrink-0 ml-1",title:"Eliminar Sesión",children:f.jsx(Mr,{size:10})})]}),Ve&&f.jsx("div",{className:"ml-3 pl-2 border-l border-[#1f1f23]/60 space-y-1 py-0.5",children:oe.map(He=>{const Xt=He.id===r;return f.jsx("button",{onClick:()=>{Ye(He.id,p.id)},className:`w-full text-left p-1.5 rounded-md flex flex-col gap-0.5 transition duration-150 cursor-pointer text-[10px] ${Xt?"bg-[#18181c] border border-[#2e2e33]/40 text-white":"hover:bg-[#0f0f12] text-[#71717a] hover:text-[#a1a1aa]"}`,children:f.jsxs("div",{className:"flex items-center gap-1 font-medium truncate",children:[f.jsx(R1,{size:10,className:"text-[#71717a] shrink-0"}),f.jsxs("span",{className:"truncate",children:["🤖 ",He.title||`Sub: ${He.id.substring(0,5)}`]})]})},He.id)})})]},q.id)})})]},p.id)}),xa.length>0&&f.jsxs("div",{className:"space-y-1 border border-dashed border-[#1f1f23] rounded-lg p-1 bg-[#09090b]/10 mt-2",children:[f.jsxs("div",{className:"p-2 flex items-center justify-between",children:[f.jsx("span",{className:"text-xs font-bold text-amber-500/80 flex items-center gap-1.5",children:"📥 Inbox / Sin Clasificar"}),f.jsx("span",{className:"text-[9px] bg-amber-950/40 text-amber-500 border border-amber-900/40 px-1.5 py-0.5 rounded-full font-bold",children:xa.length})]}),f.jsx("div",{className:"ml-1 pl-1 space-y-1 pt-1",children:xa.map(p=>{const T=p.id===r,U=Gn(p.id),G=U.length>0;return f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs("button",{onClick:()=>{s(p.id),I(""),Mt("/")},className:`flex-1 text-left p-2 rounded-lg flex flex-col gap-0.5 transition duration-200 cursor-pointer ${T?"bg-[#1c1c1f] border border-[#2e2e33] text-white shadow-sm":"hover:bg-[#121215] text-[#a1a1aa] hover:text-white"}`,children:[f.jsxs("span",{className:"font-semibold truncate text-[11px]",children:["💬 ",p.title||`Sesión: ${p.id.substring(0,8)}`]}),f.jsx("div",{className:"flex items-center justify-between text-[9px] text-[#52525b]",children:f.jsx("span",{children:p.agent||"sdd-orchestrator"})})]}),f.jsx("button",{onClick:()=>{st(q=>({...q,[p.id]:Me}))},className:"p-1 hover:bg-[#1c1c1f] text-[#71717a] hover:text-white rounded border border-[#1f1f23] transition cursor-pointer text-[9px] font-bold",title:"Mover al Proyecto Activo",children:"Mapear"})]}),G&&f.jsx("div",{className:"ml-3 pl-2 border-l border-[#1f1f23]/60 space-y-1 py-0.5",children:U.map(q=>{const F=q.id===r;return f.jsx("button",{onClick:()=>{s(q.id),I(""),Mt("/")},className:`w-full text-left p-1 rounded-md flex flex-col gap-0.5 transition duration-150 cursor-pointer text-[10px] ${F?"bg-[#18181c] border border-[#2e2e33]/40 text-white":"hover:bg-[#0f0f12] text-[#71717a] hover:text-[#a1a1aa]"}`,children:f.jsxs("span",{className:"truncate",children:["🤖 ",q.title||`Sub: ${q.id.substring(0,5)}`]})},q.id)})})]},p.id)})})]})]}),f.jsxs("div",{className:"p-4 bg-[#09090b] border-t border-[#1f1f23] space-y-3",children:[f.jsx("button",{onClick:Fe,className:`w-full flex items-center justify-center gap-2 py-2 px-3 rounded-md text-xs font-medium border transition cursor-pointer ${le?"bg-transparent border-[#22c55e]/30 hover:border-[#22c55e]/50 text-[#22c55e]":"bg-transparent border-[#27272a] hover:border-[#3f3f46] text-[#a1a1aa]"}`,children:le?f.jsxs(f.Fragment,{children:[f.jsx(z1,{size:14}),f.jsx("span",{children:"Notificaciones Activas"})]}):f.jsxs(f.Fragment,{children:[f.jsx(v1,{size:14}),f.jsx("span",{children:"Activar Alertas Navegador"})]})}),he&&f.jsxs("div",{className:"p-2 bg-[#1c1c1f]/50 border border-[#2e2e33] rounded-lg space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-[#a1a1aa] font-medium",children:[f.jsx(L1,{size:11,className:"text-[#3b82f6] animate-pulse"}),f.jsx("span",{children:"Túnel Remoto Activo"})]}),f.jsxs("a",{href:he,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] text-[#3b82f6] hover:underline flex items-center gap-1 font-mono break-all",children:[he,f.jsx(H1,{size:8})]})]})]})]}),f.jsx("div",{onMouseDown:Hl,className:"w-1.5 hover:w-2 active:w-2 h-full bg-[#1f1f23]/80 hover:bg-[#3b82f6]/60 active:bg-[#3b82f6] cursor-col-resize shrink-0 transition-all duration-150 z-50 relative flex items-center justify-center group",children:f.jsx("div",{className:"w-[1px] h-8 bg-transparent group-hover:bg-white/40 group-active:bg-white/60 transition"})}),f.jsx("div",{className:"flex-1 flex flex-col bg-[#09090b] relative overflow-hidden",children:Ba?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"h-14 border-b border-[#1f1f23] flex items-center justify-between px-6 bg-[#09090b]/80 backdrop-blur-md z-10 shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Or,{size:16,className:"text-emerald-400 animate-pulse"}),f.jsx("h1",{className:"text-sm font-bold text-[#fafafa]",children:"Crear Nueva Sesión de Desarrollo"})]}),d.length>0&&f.jsx("button",{onClick:()=>Mt("/"),className:"text-xs text-[#71717a] hover:text-white border border-[#1f1f23] hover:border-[#27272a] px-2.5 py-1 rounded-md transition cursor-pointer",children:"Cancelar"})]}),f.jsxs("div",{className:"flex-1 overflow-y-auto p-8 max-w-2xl mx-auto w-full space-y-6",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("h2",{className:"text-xl font-bold tracking-tight text-white flex items-center gap-2",children:f.jsx("span",{children:"🚀 Comenzar un nuevo flujo"})}),f.jsx("p",{className:"text-xs text-[#71717a]",children:"Elige el agente y modelo adecuados para estructurar tu especificación, codificar o auditar tu aplicación de forma guiada y asíncrona."})]}),f.jsxs("form",{onSubmit:pc,className:"space-y-5",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Título de la Sesión"}),f.jsx("input",{type:"text",value:Ga,onChange:p=>Ft(p.target.value),placeholder:"Ej. Crear Login Form, Refactorizar Auth...",className:"w-full bg-[#0c0c0e] border border-[#27272a] focus:border-[#3f3f46] rounded-xl px-4 py-3 text-sm text-[#fafafa] placeholder-[#52525b] outline-none transition font-medium",required:!0})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Agente Primario Inicial"}),f.jsx("div",{className:"grid grid-cols-1 gap-2.5",children:Dr.map(p=>{const T=sa===p.id;return f.jsxs("button",{type:"button",onClick:()=>Rn(p.id),className:`w-full text-left p-3.5 rounded-xl border transition-all duration-200 flex gap-3 cursor-pointer relative ${T?"bg-[#121215] border-white/60 shadow-[0_0_12px_rgba(255,255,255,0.05)]":"bg-[#0c0c0e] border-[#1f1f23] hover:border-[#27272a]"}`,children:[f.jsx("div",{className:"h-8 w-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${p.color}15`,color:p.color},children:p.id==="build"?f.jsx(Wh,{size:16}):p.id==="plan"?f.jsx(Vh,{size:16}):f.jsx(Or,{size:16})}),f.jsxs("div",{className:"space-y-0.5",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-xs font-bold text-white",children:p.name}),p.id==="sdd-orchestrator"&&f.jsx("span",{className:"text-[9px] bg-white/10 text-white/80 font-mono px-1 rounded uppercase tracking-wider",children:"Por defecto"})]}),f.jsx("p",{className:"text-[11px] text-[#71717a] leading-relaxed",children:p.description})]}),T&&f.jsx("div",{className:"absolute right-4 top-4 h-4 w-4 bg-white rounded-full flex items-center justify-center text-[#09090b]",children:f.jsx(_r,{size:10,strokeWidth:3})})]},p.id)})})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Modelo Objetivo"}),f.jsxs("div",{className:"relative",children:[f.jsx("select",{value:ra,onChange:p=>qi(p.target.value),className:"w-full bg-[#0c0c0e] border border-[#27272a] rounded-xl py-3 pl-4 pr-10 text-sm text-[#fafafa] hover:border-[#27272a] focus:border-[#3f3f46] outline-none transition cursor-pointer appearance-none font-medium",children:Ih.map(p=>f.jsx("option",{value:p.id,children:p.name},p.id))}),f.jsx("div",{className:"absolute inset-y-0 right-4 flex items-center pointer-events-none text-[#71717a]",children:f.jsx(Dn,{size:16})})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Primera Instrucción (Opcional)"}),f.jsx("span",{className:"text-[10px] text-[#52525b]",children:"Arranca de inmediato"})]}),f.jsx("textarea",{value:La,onChange:p=>Qa(p.target.value),placeholder:"Ej. @sdd-spec-writer Crea un contrato para una calculadora...",className:"w-full bg-[#0c0c0e] border border-[#27272a] focus:border-[#3f3f46] rounded-xl px-4 py-3 text-sm text-[#fafafa] placeholder-[#52525b] outline-none transition h-24 resize-none"})]}),f.jsxs("button",{type:"submit",disabled:R,className:"w-full bg-white hover:bg-[#e4e4e7] text-[#09090b] disabled:bg-[#18181b] disabled:text-[#71717a] font-bold py-3 px-4 rounded-xl transition duration-200 cursor-pointer text-sm shadow-md flex items-center justify-center gap-2",children:[R?f.jsx(Ri,{size:14,className:"animate-spin"}):f.jsx(tc,{size:14,strokeWidth:2.5}),f.jsx("span",{children:R?"Iniciando sesión...":"Crear e Iniciar Sesión"})]})]})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"h-14 border-b border-[#1f1f23] flex items-center justify-between px-6 bg-[#09090b]/80 backdrop-blur-md z-10 shrink-0",children:[f.jsxs("div",{className:"flex flex-col",children:[f.jsxs("h1",{className:"text-sm font-bold m-0 p-0 text-[#fafafa] flex items-center gap-2",children:[(b==null?void 0:b.title)||"Cargando sesión...",R&&f.jsxs("span",{className:"flex h-2 w-2 relative",children:[f.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#22c55e] opacity-75"}),f.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#22c55e]"})]})]}),b&&f.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-[#71717a] mt-0.5",children:[f.jsxs("span",{children:["ID: ",f.jsx("code",{className:"text-[10px] font-mono bg-transparent p-0",children:b.id})]}),f.jsx("span",{children:"•"}),f.jsxs("span",{children:["Costo: ",f.jsxs("span",{className:"text-[#22c55e] font-mono",children:["$",(b.cost||0).toFixed(6)]})]}),f.jsx("span",{children:"•"}),f.jsxs("span",{children:["Tokens: In: ",b.tokens_input||0," | Out: ",b.tokens_output||0]})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[ke&&f.jsxs("span",{className:"text-xs text-red-400 bg-red-950/40 border border-red-900/50 py-1 px-3 rounded-md animate-pulse flex items-center gap-1",children:[f.jsx(wr,{size:12}),ke]}),f.jsx("button",{onClick:()=>{r&&(ol(r),Lt(r),Qt())},className:"p-1.5 bg-[#1c1c1f] border border-[#2e2e33] hover:bg-[#27272a] text-[#a1a1aa] hover:text-[#ffffff] rounded-md transition duration-200 cursor-pointer",title:"Actualizar",children:f.jsx(Ri,{size:14,className:R?"animate-spin":""})})]})]}),r&&f.jsxs("div",{className:"bg-[#0c0c0e]/60 border-b border-[#1f1f23] px-6 py-2 flex items-center gap-2 overflow-x-auto shrink-0 scrollbar-none",children:[f.jsxs("span",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider shrink-0 mr-1 flex items-center gap-1 select-none",children:[f.jsx(Vh,{size:11}),f.jsx("span",{children:"Comandos Rápidos:"})]}),f.jsx("button",{onClick:()=>ga("status"),className:"py-1 px-2.5 bg-[#121215] hover:bg-[#1c1c1f] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md transition cursor-pointer shrink-0 font-medium font-mono",children:"/status"}),f.jsx("button",{onClick:()=>ga("undo"),className:"py-1 px-2.5 bg-[#121215] hover:bg-[#1c1c1f] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md transition cursor-pointer shrink-0 font-medium font-mono",title:"Deshacer última edición de archivo",children:"/undo"}),f.jsx("button",{onClick:()=>ga("reset"),className:"py-1 px-2.5 bg-[#121215] hover:bg-[#1c1c1f] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md transition cursor-pointer shrink-0 font-medium font-mono",title:"Reiniciar y limpiar sesión",children:"/reset"}),f.jsxs("button",{onClick:()=>ga("loop",prompt("Introduce la tarea para el loop autónomo:","")||""),className:"py-1 px-2.5 bg-[#ffffff] hover:bg-[#e4e4e7] text-[#09090b] text-[11px] font-bold rounded-md transition cursor-pointer shrink-0 flex items-center gap-1",children:[f.jsx(Or,{size:10}),f.jsx("span",{children:"Iniciar Autopiloto (/loop)"})]})]}),f.jsxs("div",{ref:el,onScroll:Qi,className:"flex-1 overflow-y-auto p-6 space-y-6",children:[b?w.length===0?f.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-[#71717a] space-y-3",children:[f.jsx(V1,{size:36,className:"text-[#27272a]"}),f.jsxs("div",{className:"text-center",children:[f.jsx("p",{className:"text-sm font-medium",children:"No hay mensajes en esta sesión"}),f.jsx("p",{className:"text-xs mt-0.5",children:"Escribe una instrucción, comando o inicia un loop de desarrollo abajo."})]})]}):w.map((p,T)=>{const U=p.info.role==="user",G=p.parts.filter(q=>q.type==="text").map(q=>q.text).join(`
|
|
290
|
+
|
|
291
|
+
`);return f.jsxs("div",{className:`flex gap-4 max-w-4xl mx-auto ${U?"justify-end":"justify-start"}`,children:[!U&&f.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#18181b] flex items-center justify-center text-[#fafafa] shrink-0",children:f.jsx(Xh,{size:16})}),f.jsxs("div",{className:`rounded-xl px-4 py-3 space-y-3 max-w-[85%] border shadow-sm group relative ${U?"bg-[#18181b] text-[#ffffff] border-[#2e2e33]":"bg-[#0c0c0e] text-[#f4f4f5] border-[#1f1f23]"}`,children:[f.jsxs("div",{className:"flex justify-between items-start border-b border-[#1f1f23]/40 pb-1 text-[11px] text-[#71717a] font-medium gap-2",children:[f.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[f.jsx("span",{children:U?"TÚ":"AGENTE"}),f.jsx("span",{children:"•"}),f.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[f.jsx(k1,{size:10}),Zt(p.info)]})]}),G&&f.jsx("button",{onClick:()=>Cl(G,p.info.id||String(T)),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-[#1f1f23] text-[#a1a1aa] hover:text-white rounded transition cursor-pointer",title:"Copiar texto",children:Re===(p.info.id||String(T))?f.jsx(_r,{size:12,className:"text-green-500"}):f.jsx(Jh,{size:12})})]}),f.jsx("div",{className:"space-y-3",children:p.parts.map((q,F)=>{var He,Xt,Ln,Qn,Ia;const oe=`${p.info.id||T}-${F}`,Ve=Qe[oe];if(q.type==="text")return f.jsx("div",{className:"text-sm leading-relaxed prose prose-invert max-w-none text-[#e4e4e7] markdown-content",dangerouslySetInnerHTML:al(q.text||"")},F);if(q.type==="reasoning")return f.jsxs("div",{className:"border border-[#2e2e33]/50 rounded-lg overflow-hidden bg-[#121215]/30",children:[f.jsxs("button",{onClick:()=>ya(oe),className:"w-full flex items-center justify-between p-2 text-xs font-medium text-[#a1a1aa] hover:text-[#fafafa] hover:bg-[#1c1c1f]/30 transition duration-200 cursor-pointer",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#a855f7] animate-pulse"}),f.jsx("span",{children:"Pensamiento del modelo"})]}),Ve?f.jsx(kr,{size:14}):f.jsx(Dn,{size:14})]}),Ve&&f.jsx("div",{className:"p-3 border-t border-[#1f1f23] text-xs font-mono text-[#a1a1aa] bg-[#0c0c0e]/80 whitespace-pre-wrap leading-relaxed max-h-60 overflow-y-auto",children:q.text})]},F);if(q.type==="tool"){const Zn=((He=q.state)==null?void 0:He.status)||"unknown",yc=q.tool||"Desconocido",Pa=!!((Xt=q.state)!=null&&Xt.output);return f.jsxs("div",{className:"border border-[#1f1f23] rounded-lg overflow-hidden bg-[#0a0a0c]",children:[f.jsxs("button",{onClick:()=>ya(oe),className:"w-full flex items-center justify-between p-2.5 text-xs font-mono text-[#e4e4e7] hover:bg-[#121215] transition duration-200 cursor-pointer",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Wh,{size:13,className:"text-amber-500 animate-spin",style:{animationDuration:"3s"}}),f.jsxs("span",{className:"font-semibold text-amber-400",children:["Herramienta: ",yc]}),f.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded border ${Zn==="success"||Zn==="completed"?"bg-green-950/20 text-green-400 border-green-900/50":"bg-yellow-950/20 text-yellow-500 border-yellow-900/50"}`,children:Zn})]}),Ve?f.jsx(kr,{size:14}):f.jsx(Dn,{size:14})]}),Ve&&f.jsxs("div",{className:"p-3 border-t border-[#1f1f23] bg-[#09090b] text-xs font-mono space-y-3",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider mb-1",children:"Entrada / Parámetros:"}),f.jsx("pre",{className:"p-2 bg-[#0c0c0e] rounded border border-[#1f1f23] text-[#fafafa] overflow-x-auto max-h-40",children:JSON.stringify(((Ln=q.state)==null?void 0:Ln.input)||{},null,2)})]}),Pa&&f.jsxs("div",{children:[f.jsx("div",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider mb-1",children:"Salida / Resultado:"}),f.jsx("pre",{className:"p-2 bg-[#0c0c0e] rounded border border-[#1f1f23] text-[#fafafa] overflow-x-auto max-h-60 overflow-y-auto",children:typeof((Qn=q.state)==null?void 0:Qn.output)=="string"?q.state.output:JSON.stringify((Ia=q.state)==null?void 0:Ia.output,null,2)})]})]})]},F)}return null})})]}),U&&f.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#ffffff] flex items-center justify-center text-[#09090b] shrink-0",children:f.jsx(ag,{size:16})})]},p.info.id||T)}):f.jsx("div",{className:"h-full flex flex-col items-center justify-center text-center max-w-md mx-auto space-y-6 p-4",children:ke?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"h-14 w-14 rounded-full bg-red-950/40 border border-red-900/50 flex items-center justify-center text-red-400",children:f.jsx(wr,{size:28})}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("h2",{className:"text-lg font-bold text-white",children:"Conexión con Opencode Pendiente"}),f.jsx("p",{className:"text-xs text-[#a1a1aa] leading-relaxed",children:ke})]}),f.jsxs("div",{className:"w-full bg-[#0c0c0e] border border-[#1f1f23] rounded-xl p-4 text-left space-y-3",children:[f.jsx("p",{className:"text-[11px] font-bold text-[#fafafa] uppercase tracking-wider",children:"💡 ¿Cómo solucionarlo?"}),f.jsx("p",{className:"text-xs text-[#71717a] leading-relaxed",children:"Abre otra ventana de terminal en la carpeta raíz del proyecto y ejecuta el servidor de Opencode:"}),f.jsxs("div",{className:"bg-[#18181b] border border-[#2e2e33] p-2.5 rounded-lg flex items-center justify-between font-mono text-xs text-white",children:[f.jsx("span",{children:"opencode serve"}),f.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText("opencode serve")},className:"text-[#a1a1aa] hover:text-white transition cursor-pointer",title:"Copiar comando",children:f.jsx(Jh,{size:12})})]}),f.jsx("p",{className:"text-[11px] text-[#71717a]",children:"Una vez levantado, ZugzWeb se conectará automáticamente y podrás controlar tu sesión."})]}),f.jsxs("button",{type:"button",onClick:()=>{nl(),$a()},className:"py-2 px-4 bg-white hover:bg-[#e4e4e7] text-[#09090b] font-bold rounded-lg text-xs transition duration-200 cursor-pointer shadow-md flex items-center gap-1.5",children:[f.jsx(Ri,{size:12}),f.jsx("span",{children:"Volver a intentar conexión"})]})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"h-12 w-12 rounded-full border border-white/10 flex items-center justify-center text-[#71717a] animate-spin",children:f.jsx(Ri,{size:20})}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("h2",{className:"text-sm font-semibold text-white",children:"Cargando sesión activa..."}),f.jsx("p",{className:"text-xs text-[#71717a]",children:"Estableciendo canal seguro con tu arnés Opencode local"})]})]})}),R&&w.length>0&&w[w.length-1].info.role==="user"&&f.jsxs("div",{className:"flex gap-4 max-w-4xl mx-auto justify-start",children:[f.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#18181b] flex items-center justify-center text-[#fafafa] shrink-0",children:f.jsx(Xh,{size:16,className:"animate-spin text-emerald-400",style:{animationDuration:"4s"}})}),f.jsxs("div",{className:"rounded-xl px-4 py-3 bg-[#0c0c0e] text-[#f4f4f5] border border-[#1f1f23] max-w-[85%] shadow-sm space-y-1",children:[f.jsx("div",{className:"flex justify-between items-start border-b border-[#1f1f23]/40 pb-1 text-[11px] text-[#71717a] font-medium gap-2",children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{children:"AGENTE"}),f.jsx("span",{children:"•"}),f.jsx("span",{className:"text-[10px] text-emerald-500 font-bold animate-pulse",children:"PENSANDO..."})]})}),f.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-[#a1a1aa] py-1.5",children:[f.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"0ms"}}),f.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"150ms"}}),f.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"300ms"}}),f.jsx("span",{className:"ml-1 text-xs text-[#a1a1aa] font-medium",children:"Conectando con el modelo de IA..."})]})]})]})]}),f.jsx("div",{className:"p-4 border-t border-[#1f1f23] bg-[#09090b] shrink-0",children:f.jsxs("form",{onSubmit:Yn,className:"max-w-4xl mx-auto space-y-3",children:[f.jsxs("div",{className:"flex items-center gap-4 px-1 flex-wrap",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-[10px] text-[#71717a] uppercase font-bold tracking-wider select-none",children:"Agente Activo:"}),f.jsxs("div",{className:"relative",children:[f.jsx("select",{value:It,onChange:p=>Un(p.target.value),className:"bg-[#121215] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md py-1 pl-2 pr-6 outline-none hover:border-[#27272a] transition cursor-pointer appearance-none font-semibold",children:Dr.map(p=>f.jsx("option",{value:p.id,children:p.name},p.id))}),f.jsx("div",{className:"absolute inset-y-0 right-1.5 flex items-center pointer-events-none text-[#71717a]",children:f.jsx(Dn,{size:11})})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-[10px] text-[#71717a] uppercase font-bold tracking-wider select-none",children:"Modelo Objetivo:"}),f.jsxs("div",{className:"relative",children:[f.jsx("select",{value:fe,onChange:p=>et(p.target.value),className:"bg-[#121215] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md py-1 pl-2 pr-6 outline-none hover:border-[#27272a] transition cursor-pointer appearance-none font-semibold",children:Ih.map(p=>f.jsx("option",{value:p.id,children:p.name},p.id))}),f.jsx("div",{className:"absolute inset-y-0 right-1.5 flex items-center pointer-events-none text-[#71717a]",children:f.jsx(Dn,{size:11})})]})]})]}),f.jsxs("div",{className:"relative border border-[#27272a] focus-within:border-[#3f3f46] rounded-xl bg-[#0c0c0e] overflow-hidden shadow-lg transition duration-200",children:[f.jsx("textarea",{value:v,onChange:p=>k(p.target.value),disabled:!r,onKeyDown:p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),Yn(p))},placeholder:r?v.startsWith("/")?"Escribe los argumentos para el comando... (ej. /loop Crear login)":`Instrucción para ${(Fa==null?void 0:Fa.name)||"Opencode"} usando ${((ba=Dr.find(p=>p.id===It))==null?void 0:ba.name)||It}... (Escribe / para ver comandos, Shift+Enter para nueva línea)`:"Debe haber una sesión activa de Opencode para enviar prompts. Por favor, inicia conexión o crea una sesión.",className:"w-full bg-transparent px-4 py-3.5 pr-24 text-sm text-[#f4f4f5] placeholder-[#71717a] outline-none border-none resize-none h-14 max-h-40 min-h-[56px] focus:ring-0 font-medium disabled:cursor-not-allowed"}),f.jsx("div",{className:"absolute right-3 bottom-3 flex items-center gap-2",children:R?f.jsxs("button",{type:"button",onClick:mc,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#ef4444] hover:bg-[#dc2626] text-white rounded-lg text-xs font-semibold transition cursor-pointer shadow animate-pulse",title:"Abortar ejecución",children:[f.jsx(Mr,{size:12,className:"fill-current"}),f.jsx("span",{children:"Abortar"})]}):f.jsxs("button",{type:"submit",disabled:!v.trim()||!r,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#ffffff] hover:bg-[#e4e4e7] disabled:bg-[#18181b] text-[#09090b] disabled:text-[#71717a] rounded-lg text-xs font-bold transition cursor-pointer shadow disabled:cursor-not-allowed",children:[f.jsx($h,{size:10,className:"fill-current"}),f.jsx("span",{children:"Enviar"})]})})]}),f.jsxs("div",{className:"flex justify-between items-center text-[11px] text-[#71717a] px-1",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("span",{className:"flex items-center gap-1",children:[f.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${R?"bg-amber-500 animate-pulse":"bg-green-500"}`}),f.jsx("span",{children:R?"Procesando comando/loop":"Listo"})]}),f.jsx("span",{children:"•"}),f.jsxs("span",{children:["Enlazado al puerto :",ot," de Opencode"]})]}),f.jsx("span",{className:"font-mono",children:"v1.2.0-web"})]})]})})]})}),rc&&f.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4 z-[9999] animate-fadeIn",children:f.jsxs("div",{className:"w-full max-w-xl bg-[#0c0c0e] border border-[#1f1f23] rounded-2xl shadow-2xl p-6 space-y-4 flex flex-col max-h-[85vh]",children:[f.jsxs("div",{className:"flex items-center justify-between shrink-0 border-b border-[#1f1f23] pb-3",children:[f.jsxs("h3",{className:"text-sm font-bold text-white flex items-center gap-2",children:[f.jsx(Kh,{size:16,className:"text-[#3b82f6]"}),f.jsx("span",{children:fl})]}),f.jsx("button",{type:"button",onClick:()=>Za(!1),className:"text-xs text-[#71717a] hover:text-white border border-[#1f1f23] hover:border-[#27272a] px-2.5 py-1 rounded-md transition cursor-pointer",children:"Cerrar"})]}),f.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-none py-1",children:qn(p=>{da&&da(p),Za(!1)})})]})})]}):f.jsx("div",{className:"flex h-screen bg-[#09090b] text-[#f4f4f5] items-center justify-center p-4 overflow-hidden select-none",children:f.jsxs("div",{className:"w-full max-w-2xl bg-[#0c0c0e] border border-[#1f1f23] rounded-2xl shadow-2xl p-6 md:p-8 space-y-6 flex flex-col max-h-[90vh]",children:[f.jsxs("div",{className:"text-center space-y-2 shrink-0",children:[f.jsx("div",{className:"inline-flex p-3 bg-white text-[#09090b] rounded-2xl shadow-md mb-2",children:f.jsx(Fh,{size:28,className:"font-bold animate-pulse"})}),f.jsxs("h1",{className:"text-2xl font-black tracking-tight text-white flex items-center justify-center gap-2",children:[f.jsx("span",{children:"Bienvenido a ZugzWeb"}),f.jsx("span",{className:"text-[10px] bg-emerald-950 text-emerald-400 border border-emerald-900/50 px-1.5 py-0.5 rounded font-bold uppercase tracking-wider",children:"Harness v1.2"})]}),f.jsx("p",{className:"text-xs text-[#a1a1aa] max-w-md mx-auto leading-relaxed",children:"Para comenzar a programar de forma autónoma con tu arnés SDD, necesitamos que selecciones la carpeta de tu computadora que servirá como tu espacio de trabajo inicial."})]}),f.jsx("div",{className:"flex-1 overflow-y-auto py-1 scrollbar-none",children:qn(async p=>{const T=[{id:"workspace_raiz",name:"Carpeta Base Zugz",path:p}];Xe(T),localStorage.setItem("zugzweb_projects",JSON.stringify(T)),_("workspace_raiz"),localStorage.setItem("zugzweb_active_project_id","workspace_raiz"),H(!0),I("Activando entorno de desarrollo inicial...");try{await fetch("/api-custom/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:p})}),await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:p})}),localStorage.setItem("zugzweb_setup_completed","true"),dt(!0),setTimeout(()=>{nl(),$a()},1e3)}catch(U){console.error(U)}finally{H(!1),I("")}})}),f.jsx("div",{className:"text-center text-[10px] text-[#52525b] border-t border-[#1f1f23]/60 pt-4 shrink-0",children:"Podrás añadir, explorar o alternar más carpetas de proyectos en cualquier momento desde la barra lateral."})]})})}j0.createRoot(document.getElementById("root")).render(f.jsx(X.StrictMode,{children:f.jsx(ng,{})}));
|