zugzbot 1.0.17 → 1.0.18
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/node_modules/.tmp/tsconfig.app.tsbuildinfo +1 -0
- package/.utils/zugzweb/client/node_modules/.tmp/tsconfig.node.tsbuildinfo +1 -0
- package/.utils/zugzweb/client/node_modules/nanoid/.claude/settings.local.json +14 -0
- package/bin/init.js +1 -1
- package/opencode.json +2 -1
- package/package.json +3 -48
- package/.opencode/commands/web.md +0 -15
- package/.utils/zugzweb/client/README.md +0 -73
- package/.utils/zugzweb/client/dist/assets/index-CBm0KdaD.js +0 -291
- package/.utils/zugzweb/client/dist/assets/index-GxkFc3Mh.css +0 -1
- package/.utils/zugzweb/client/dist/favicon.svg +0 -1
- package/.utils/zugzweb/client/dist/icons.svg +0 -24
- package/.utils/zugzweb/client/dist/index.html +0 -14
- package/.utils/zugzweb/client/eslint.config.js +0 -22
- package/.utils/zugzweb/client/index.html +0 -13
- package/.utils/zugzweb/client/package.json +0 -36
- package/.utils/zugzweb/client/public/favicon.svg +0 -1
- package/.utils/zugzweb/client/public/icons.svg +0 -24
- package/.utils/zugzweb/client/src/App.tsx +0 -2578
- package/.utils/zugzweb/client/src/assets/hero.png +0 -0
- package/.utils/zugzweb/client/src/assets/react.svg +0 -1
- package/.utils/zugzweb/client/src/assets/vite.svg +0 -1
- package/.utils/zugzweb/client/src/index.css +0 -185
- package/.utils/zugzweb/client/src/main.tsx +0 -10
- package/.utils/zugzweb/client/tsconfig.app.json +0 -25
- package/.utils/zugzweb/client/tsconfig.json +0 -7
- package/.utils/zugzweb/client/tsconfig.node.json +0 -24
- package/.utils/zugzweb/client/vite.config.ts +0 -11
- package/.utils/zugzweb/daemon.js +0 -396
- package/.utils/zugzweb/daemon.log +0 -5
- package/.utils/zugzweb/package.json +0 -3
- package/bin/web.js +0 -20
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
var d0=Object.defineProperty;var h0=(d,c,o)=>c in d?d0(d,c,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[c]=o;var Ee=(d,c,o)=>h0(d,typeof c!="symbol"?c+"":c,o);(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 o(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=o(h);fetch(h.href,b)}})();var Sr={exports:{}},Ei={};/**
|
|
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 Ei;Ah=1;var d=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function o(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 Ei.Fragment=c,Ei.jsx=o,Ei.jsxs=o,Ei}var _h;function m0(){return _h||(_h=1,Sr.exports=p0()),Sr.exports}var r=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"),o=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 ne(x){return x===null||typeof x!="object"?null:(x=H&&x[H]||x["@@iterator"],typeof x=="function"?x:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},he=Object.assign,se={};function Qe(x,C,G){this.props=x,this.context=C,this.refs=se,this.updater=G||Y}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 we(x,C,G){this.props=x,this.context=C,this.refs=se,this.updater=G||Y}var I=we.prototype=new Pe;I.constructor=we,he(I,Qe.prototype),I.isPureReactComponent=!0;var Ue=Array.isArray;function qe(){}var ie={H:null,A:null,T:null,S:null},ct=Object.prototype.hasOwnProperty;function dt(x,C,G){var Z=G.ref;return{$$typeof:d,type:x,key:C,ref:Z!==void 0?Z:null,props:G}}function Cl(x,C){return dt(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(G){return C[G]})}var Xt=/\/+/g;function st(x,C){return typeof x=="object"&&x!==null&&x.key!=null?Xe(""+x.key):C.toString(36)}function Ce(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(qe,qe):(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,G,Z,F){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,G,Z,F)}}if(fe)return F=F(x),fe=Z===""?"."+st(x,0):Z,Ue(F)?(G="",fe!=null&&(G=fe.replace(Xt,"$&/")+"/"),_(F,C,G,"",function(Rl){return Rl})):F!=null&&(Ze(F)&&(F=Cl(F,G+(F.key==null||x&&x.key===F.key?"":(""+F.key).replace(Xt,"$&/")+"/")+fe)),C.push(F)),1;fe=0;var tt=Z===""?".":Z+":";if(Ue(x))for(var ke=0;ke<x.length;ke++)Z=x[ke],ae=tt+st(Z,ke),fe+=_(Z,C,G,ae,F);else if(ke=ne(x),typeof ke=="function")for(x=ke.call(x),ke=0;!(Z=x.next()).done;)Z=Z.value,ae=tt+st(Z,ke++),fe+=_(Z,C,G,ae,F);else if(ae==="object"){if(typeof x.then=="function")return _(Ce(x),C,G,Z,F);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,G){if(x==null)return x;var Z=[],F=0;return _(x,Z,"","",function(ae){return C.call(G,ae,F++)}),Z}function $(x){if(x._status===-1){var C=x._result;C=C(),C.then(function(G){(x._status===0||x._status===-1)&&(x._status=1,x._result=G)},function(G){(x._status===0||x._status===-1)&&(x._status=2,x._result=G)}),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,G){L(x,function(){C.apply(this,arguments)},G)},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=o,P.Profiler=h,P.PureComponent=we,P.StrictMode=s,P.Suspense=g,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,P.__COMPILER_RUNTIME={__proto__:null,c:function(x){return ie.H.useMemoCache(x)}},P.cache=function(x){return function(){return x.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(x,C,G){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=he({},x.props),F=x.key;if(C!=null)for(ae in C.key!==void 0&&(F=""+C.key),C)!ct.call(C,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&C.ref===void 0||(Z[ae]=C[ae]);var ae=arguments.length-2;if(ae===1)Z.children=G;else if(1<ae){for(var fe=Array(ae),tt=0;tt<ae;tt++)fe[tt]=arguments[tt+2];Z.children=fe}return dt(x.type,F,Z)},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,G){var Z,F={},ae=null;if(C!=null)for(Z in C.key!==void 0&&(ae=""+C.key),C)ct.call(C,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(F[Z]=C[Z]);var fe=arguments.length-2;if(fe===1)F.children=G;else if(1<fe){for(var tt=Array(fe),ke=0;ke<fe;ke++)tt[ke]=arguments[ke+2];F.children=tt}if(x&&x.defaultProps)for(Z in fe=x.defaultProps,fe)F[Z]===void 0&&(F[Z]=fe[Z]);return dt(x,ae,F)},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:$}},P.memo=function(x,C){return{$$typeof:v,type:x,compare:C===void 0?null:C}},P.startTransition=function(x){var C=ie.T,G={};ie.T=G;try{var Z=x(),F=ie.S;F!==null&&F(G,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(qe,ye)}catch(ae){ye(ae)}finally{C!==null&&G.types!==null&&(C.types=G.types),ie.T=C}},P.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},P.use=function(x){return ie.H.use(x)},P.useActionState=function(x,C,G){return ie.H.useActionState(x,C,G)},P.useCallback=function(x,C){return ie.H.useCallback(x,C)},P.useContext=function(x){return ie.H.useContext(x)},P.useDebugValue=function(){},P.useDeferredValue=function(x,C){return ie.H.useDeferredValue(x,C)},P.useEffect=function(x,C){return ie.H.useEffect(x,C)},P.useEffectEvent=function(x){return ie.H.useEffectEvent(x)},P.useId=function(){return ie.H.useId()},P.useImperativeHandle=function(x,C,G){return ie.H.useImperativeHandle(x,C,G)},P.useInsertionEffect=function(x,C){return ie.H.useInsertionEffect(x,C)},P.useLayoutEffect=function(x,C){return ie.H.useLayoutEffect(x,C)},P.useMemo=function(x,C){return ie.H.useMemo(x,C)},P.useOptimistic=function(x,C){return ie.H.useOptimistic(x,C)},P.useReducer=function(x,C,G){return ie.H.useReducer(x,C,G)},P.useRef=function(x){return ie.H.useRef(x)},P.useState=function(x){return ie.H.useState(x)},P.useSyncExternalStore=function(x,C,G){return ie.H.useSyncExternalStore(x,C,G)},P.useTransition=function(){return ie.H.useTransition()},P.version="19.2.7",P}var wh;function Hr(){return wh||(wh=1,zr.exports=g0()),zr.exports}var Q=Hr(),jr={exports:{}},Ai={},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 $=_.length;_.push(L);e:for(;0<$;){var ye=$-1>>>1,xe=_[ye];if(0<h(xe,L))_[ye]=L,_[$]=xe,$=ye;else break e}}function o(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var L=_[0],$=_.pop();if($!==L){_[0]=$;e:for(var ye=0,xe=_.length,x=xe>>>1;ye<x;){var C=2*(ye+1)-1,G=_[C],Z=C+1,F=_[Z];if(0>h(G,$))Z<xe&&0>h(F,G)?(_[ye]=F,_[Z]=$,ye=Z):(_[ye]=G,_[C]=$,ye=C);else if(Z<xe&&0>h(F,$))_[ye]=F,_[Z]=$,ye=Z;else break e}}return L}function h(_,L){var $=_.sortIndex-L.sortIndex;return $!==0?$:_.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,ne=!1,Y=!1,he=!1,se=!1,Qe=typeof setTimeout=="function"?setTimeout:null,Pe=typeof clearTimeout=="function"?clearTimeout:null,we=typeof setImmediate<"u"?setImmediate:null;function I(_){for(var L=o(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=o(v)}}function Ue(_){if(he=!1,I(_),!Y)if(o(g)!==null)Y=!0,qe||(qe=!0,Xe());else{var L=o(v);L!==null&&Ce(Ue,L.startTime-_)}}var qe=!1,ie=-1,ct=5,dt=-1;function Cl(){return se?!0:!(d.unstable_now()-dt<ct)}function Ze(){if(se=!1,qe){var _=d.unstable_now();dt=_;var L=!0;try{e:{Y=!1,he&&(he=!1,Pe(ie),ie=-1),ne=!0;var $=H;try{t:{for(I(_),R=o(g);R!==null&&!(R.expirationTime>_&&Cl());){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===o(g)&&s(g),I(_)}else s(g);R=o(g)}if(R!==null)L=!0;else{var x=o(v);x!==null&&Ce(Ue,x.startTime-_),L=!1}}break e}finally{R=null,H=$,ne=!1}L=void 0}}finally{L?Xe():qe=!1}}}var Xe;if(typeof we=="function")Xe=function(){we(Ze)};else if(typeof MessageChannel<"u"){var Xt=new MessageChannel,st=Xt.port2;Xt.port1.onmessage=Ze,Xe=function(){st.postMessage(null)}}else Xe=function(){Qe(Ze,0)};function Ce(_,L){ie=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 $=H;H=L;try{return _()}finally{H=$}},d.unstable_requestPaint=function(){se=!0},d.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var $=H;H=_;try{return L()}finally{H=$}},d.unstable_scheduleCallback=function(_,L,$){var ye=d.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ye+$:ye):$=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=$+xe,_={id:k++,callback:L,priorityLevel:_,startTime:$,expirationTime:xe,sortIndex:-1},$>ye?(_.sortIndex=$,c(v,_),o(g)===null&&_===o(v)&&(he?(Pe(ie),ie=-1):he=!0,Ce(Ue,$-ye))):(_.sortIndex=xe,c(g,_),Y||ne||(Y=!0,qe||(qe=!0,Xe()))),_},d.unstable_shouldYield=Cl,d.unstable_wrapCallback=function(_){var L=H;return function(){var $=H;H=L;try{return _.apply(this,arguments)}finally{H=$}}}})(Tr)),Tr}var Mh;function x0(){return Mh||(Mh=1,Nr.exports=y0()),Nr.exports}var Er={exports:{}},ot={};/**
|
|
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 ot;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 o(){}var s={d:{f:o,r:function(){throw Error(c(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},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 ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ot.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)},ot.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()}},ot.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))},ot.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},ot.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,ne=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:ne}):k==="script"&&s.d.X(g,{crossOrigin:R,integrity:H,fetchPriority:ne,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ot.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)},ot.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})}},ot.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)},ot.requestFormReset=function(g){s.d.r(g)},ot.unstable_batchedUpdates=function(g,v){return g(v)},ot.useFormState=function(g,v,k){return A.H.useFormState(g,v,k)},ot.useFormStatus=function(){return A.H.useHostTransitionStatus()},ot.version="19.2.7",ot}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 Ai;Rh=1;var d=x0(),c=Hr(),o=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,f=n.child;f;){if(f===l){u=!0,l=n,a=i;break}if(f===a){u=!0,a=n,l=i;break}f=f.sibling}if(!u){for(f=i.child;f;){if(f===l){u=!0,l=i,a=n;break}if(f===a){u=!0,a=i,l=n;break}f=f.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"),ne=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),se=Symbol.for("react.strict_mode"),Qe=Symbol.for("react.profiler"),Pe=Symbol.for("react.consumer"),we=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),Ue=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ct=Symbol.for("react.lazy"),dt=Symbol.for("react.activity"),Cl=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 Xt=Symbol.for("react.client.reference");function st(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case Qe:return"Profiler";case se:return"StrictMode";case Ue:return"Suspense";case qe:return"SuspenseList";case dt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case we: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 ie: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 Ce=Array.isArray,_=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={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 G(e,t){xe++,ye[xe]=e.current,e.current=t}var Z=x(null),F=x(null),ae=x(null),fe=x(null);function tt(e,t){switch(G(ae,t),G(F,e),G(Z,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(Z),G(Z,e)}function ke(){C(Z),C(F),C(ae)}function Rl(e){e.memoizedState!==null&&G(fe,e);var t=Z.current,l=Fd(t,e.type);t!==l&&(G(F,e),G(Z,l))}function Ba(e){F.current===e&&(C(Z),C(F)),fe.current===e&&(C(fe),zi._currentValue=$)}var Ya,Mi;function tl(e){if(Ya===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ya=t&&t[1]||"",Mi=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Ya+e+Mi}var Ul=!1;function Ga(e,t){if(!e||Ul)return"";Ul=!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],f=i[1];if(u&&f){var m=u.split(`
|
|
44
|
-
`),j=f.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{Ul=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?tl(l):""}function Dn(e,t){switch(e.tag){case 26:case 27:case 5:return tl(e.type);case 16:return tl("Lazy");case 13:return e.child!==t&&t!==null?tl("Suspense Fallback"):tl("Suspense");case 19:return tl("SuspenseList");case 0:case 15:return Ga(e.type,!1);case 11:return Ga(e.type.render,!1);case 1:return Ga(e.type,!0);case 31:return tl("Activity");default:return""}}function Di(e){try{var t="",l=null;do t+=Dn(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var fl=Object.prototype.hasOwnProperty,Cn=d.unstable_scheduleCallback,La=d.unstable_cancelCallback,Ci=d.unstable_shouldYield,dl=d.unstable_requestPaint,lt=d.unstable_now,oc=d.unstable_getCurrentPriorityLevel,Ri=d.unstable_ImmediatePriority,Ui=d.unstable_UserBlockingPriority,Hl=d.unstable_NormalPriority,Vt=d.unstable_LowPriority,Qa=d.unstable_IdlePriority,Rn=d.log,fc=d.unstable_setDisableYieldValue,ql=null,ht=null;function ll(e){if(typeof Rn=="function"&&fc(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(ql,e)}catch{}}var pt=Math.clz32?Math.clz32:Hi,dc=Math.log,hc=Math.LN2;function Hi(e){return e>>>=0,e===0?32:31-(dc(e)/hc|0)|0}var hl=256,Za=262144,ga=4194304;function al(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 Xa(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 f=a&134217727;return f!==0?(a=f&~i,a!==0?n=al(a):(u&=f,u!==0?n=al(u):l||(l=f&~e,l!==0&&(n=al(l))))):(f=a&~i,f!==0?n=al(f):u!==0?n=al(u):l||(l=a&~e,l!==0&&(n=al(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 ya(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pc(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 Jt(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function Va(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Bl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yl(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 f=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(l=u&~l;0<l;){var O=31-pt(l),D=1<<O;f[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&&xa(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function xa(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 qi(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 Ja(e,t){var l=t&-t;return l=(l&42)!==0?1:Nt(l),(l&(e.suspendedLanes|t))!==0?0:l}function Nt(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 pl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ka(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:vh(e.type))}function ml(e,t){var l=L.p;try{return L.p=e,t()}finally{L.p=l}}var Tt=Math.random().toString(36).slice(2),Fe="__reactFiber$"+Tt,rt="__reactProps$"+Tt,Gl="__reactContainer$"+Tt,ba="__reactEvents$"+Tt,mc="__reactListeners$"+Tt,gc="__reactHandles$"+Tt,Bi="__reactResources$"+Tt,nl="__reactMarker$"+Tt;function Kt(e){delete e[Fe],delete e[rt],delete e[ba],delete e[mc],delete e[gc]}function Dt(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Gl]||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 Ct(e){if(e=e[Fe]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ll(e){var t=e[Bi];return t||(t=e[Bi]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[nl]=!0}var Yi=new Set,Un={};function gl(e,t){Ql(e,t),Ql(e+"Capture",t)}function Ql(e,t){for(Un[e]=t,e=0;e<t.length;e++)Yi.add(t[e])}var yc=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]*$"),Gi={},Li={};function Qi(e){return fl.call(Li,e)?!0:fl.call(Gi,e)?!1:yc.test(e)?Li[e]=!0:(Gi[e]=!0,!1)}function yl(e,t,l){if(Qi(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 $a(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 Rt(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 Zi(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xc(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 Wa(e){if(!e._valueTracker){var t=Zi(e)?"checked":"value";e._valueTracker=xc(e,t,""+e[t])}}function Xi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Zi(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Zl(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 Hn=/[\n"\\]/g;function mt(e){return e.replace(Hn,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function p(e,t,l,a,n,i,u,f){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?U(e,u,yt(t)):l!=null?U(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"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+yt(f):e.removeAttribute("name")}function T(e,t,l,a,n,i,u,f){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)){Wa(e);return}l=l!=null?""+yt(l):"",t=t!=null?""+yt(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),Wa(e)}function U(e,t,l){t==="number"&&Zl(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function B(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 q(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 ee(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(Ce(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),Wa(e)}function J(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var He=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 Oe(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||He.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Ut(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&&Oe(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Oe(e,i,t[i])}function Fa(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 Vi=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"]]),Ji=/^[\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 Xl(e){return Ji.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var qn=null;function bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ia=null,Pa=null;function Jr(e){var t=Ct(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(p(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="'+mt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[rt]||null;if(!n)throw Error(s(90));p(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&&Xi(a)}break e;case"textarea":q(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&B(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,(Ia!==null||Pa!==null)&&(Cu(),Ia&&(t=Ia,e=Pa,Pa=Ia=null,Jr(t),e)))for(t=0;t<e.length;t++)Jr(e[t])}}function Bn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||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 xl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sc=!1;if(xl)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Sc=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch{Sc=!1}var Vl=null,zc=null,Ki=null;function $r(){if(Ki)return Ki;var e,t=zc,l=t.length,a,n="value"in Vl?Vl.value:Vl.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 Ki=n.slice(e,1<a?1-a:void 0)}function $i(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 Wi(){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 f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wi: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=Wi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wi)},persist:function(){},isPersistent:Wi}),t}var va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fi=xt(va),Gn=R({},va,{view:0,detail:0}),op=xt(Gn),jc,Nc,Ln,Ii=R({},Gn,{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!==Ln&&(Ln&&e.type==="mousemove"?(jc=e.screenX-Ln.screenX,Nc=e.screenY-Ln.screenY):Nc=jc=0,Ln=e),jc)},movementY:function(e){return"movementY"in e?e.movementY:Nc}}),Fr=xt(Ii),fp=R({},Ii,{dataTransfer:0}),dp=xt(fp),hp=R({},Gn,{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({},Gn,{key:function(e){if(e.key){var t=bp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(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"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Np=xt(jp),Tp=R({},Ii,{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({},Gn,{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({},Ii,{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=xl&&"CompositionEvent"in window,Qn=null;xl&&"documentMode"in document&&(Qn=document.documentMode);var Rp=xl&&"TextEvent"in window&&!Qn,eo=xl&&(!Ac||Qn&&8<Qn&&11>=Qn),to=" ",lo=!1;function ao(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 no(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var en=!1;function Up(e,t){switch(e){case"compositionend":return no(t);case"keypress":return t.which!==32?null:(lo=!0,to);case"textInput":return e=t.data,e===to&&lo?null:e;default:return null}}function Hp(e,t){if(en)return e==="compositionend"||!Ac&&ao(e,t)?(e=$r(),Ki=zc=Vl=null,en=!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 eo&&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 io(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qp[e.type]:t==="textarea"}function uo(e,t,l,a){Ia?Pa?Pa.push(a):Pa=[a]:Ia=a,t=Gu(t,"onChange"),0<t.length&&(l=new Fi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Zn=null,Xn=null;function Bp(e){Zd(e,0)}function Pi(e){var t=il(e);if(Xi(t))return e}function co(e,t){if(e==="change")return t}var so=!1;if(xl){var _c;if(xl){var kc="oninput"in document;if(!kc){var ro=document.createElement("div");ro.setAttribute("oninput","return;"),kc=typeof ro.oninput=="function"}_c=kc}else _c=!1;so=_c&&(!document.documentMode||9<document.documentMode)}function oo(){Zn&&(Zn.detachEvent("onpropertychange",fo),Xn=Zn=null)}function fo(e){if(e.propertyName==="value"&&Pi(Xn)){var t=[];uo(t,Xn,e,bc(e)),Kr(Bp,t)}}function Yp(e,t,l){e==="focusin"?(oo(),Zn=t,Xn=l,Zn.attachEvent("onpropertychange",fo)):e==="focusout"&&oo()}function Gp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pi(Xn)}function Lp(e,t){if(e==="click")return Pi(t)}function Qp(e,t){if(e==="input"||e==="change")return Pi(t)}function Zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:Zp;function Vn(e,t){if(Et(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(!fl.call(t,n)||!Et(e[n],t[n]))return!1}return!0}function ho(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function po(e,t){var l=ho(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=ho(l)}}function mo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function go(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zl(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=Zl(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=xl&&"documentMode"in document&&11>=document.documentMode,tn=null,Oc=null,Jn=null,Mc=!1;function yo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Mc||tn==null||tn!==Zl(a)||(a=tn,"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}),Jn&&Vn(Jn,a)||(Jn=a,a=Gu(Oc,"onSelect"),0<a.length&&(t=new Fi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=tn)))}function Sa(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ln={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={},xo={};xl&&(xo=document.createElement("div").style,"AnimationEvent"in window||(delete ln.animationend.animation,delete ln.animationiteration.animation,delete ln.animationstart.animation),"TransitionEvent"in window||delete ln.transitionend.transition);function za(e){if(Dc[e])return Dc[e];if(!ln[e])return e;var t=ln[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in xo)return Dc[e]=t[l];return e}var bo=za("animationend"),vo=za("animationiteration"),So=za("animationstart"),Vp=za("transitionrun"),Jp=za("transitionstart"),Kp=za("transitioncancel"),zo=za("transitionend"),jo=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 Wt(e,t){jo.set(e,t),gl(t,[e])}var eu=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)},Ht=[],an=0,Rc=0;function tu(){for(var e=an,t=Rc=an=0;t<e;){var l=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var i=Ht[t];if(Ht[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&&No(l,n,i)}}function lu(e,t,l,a){Ht[an++]=e,Ht[an++]=t,Ht[an++]=l,Ht[an++]=a,Rc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Uc(e,t,l,a){return lu(e,t,l,a),au(e)}function ja(e,t){return lu(e,null,null,t),au(e)}function No(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 au(e){if(50<mi)throw mi=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 nn={};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 At(e,t,l,a){return new $p(e,t,l,a)}function Hc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bl(e,t){var l=e.alternate;return l===null?(l=At(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 To(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 nu(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,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case dt:return e=At(31,l,t,n),e.elementType=dt,e.lanes=i,e;case he:return Na(l.children,n,i,t);case se:u=8,n|=24;break;case Qe:return e=At(12,l,t,n|2),e.elementType=Qe,e.lanes=i,e;case Ue:return e=At(13,l,t,n),e.elementType=Ue,e.lanes=i,e;case qe:return e=At(19,l,t,n),e.elementType=qe,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case we:u=10;break e;case Pe:u=9;break e;case I:u=11;break e;case ie: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=At(u,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Na(e,t,l,a){return e=At(7,e,a,t),e.lanes=l,e}function qc(e,t,l){return e=At(6,e,null,t),e.lanes=l,e}function Eo(e){var t=At(18,null,null,0);return t.stateNode=e,t}function Bc(e,t,l){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ao=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var l=Ao.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Di(t)},Ao.set(e,t),t)}return{value:e,source:t,stack:Di(t)}}var un=[],cn=0,iu=null,Kn=0,Bt=[],Yt=0,Jl=null,ul=1,cl="";function vl(e,t){un[cn++]=Kn,un[cn++]=iu,iu=e,Kn=t}function _o(e,t,l){Bt[Yt++]=ul,Bt[Yt++]=cl,Bt[Yt++]=Jl,Jl=e;var a=ul;e=cl;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,ul=1<<32-pt(t)+n|l<<n|a,cl=i+e}else ul=1<<i|l<<n|a,cl=e}function Yc(e){e.return!==null&&(vl(e,1),_o(e,1,0))}function Gc(e){for(;e===iu;)iu=un[--cn],un[cn]=null,Kn=un[--cn],un[cn]=null;for(;e===Jl;)Jl=Bt[--Yt],Bt[Yt]=null,cl=Bt[--Yt],Bt[Yt]=null,ul=Bt[--Yt],Bt[Yt]=null}function ko(e,t){Bt[Yt++]=ul,Bt[Yt++]=cl,Bt[Yt++]=Jl,ul=t.id,cl=t.overflow,Jl=e}var at=null,Me=null,de=!1,Kl=null,Gt=!1,Lc=Error(s(519));function $l(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $n(qt(t,e)),Lc}function wo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[rt]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<yi.length;l++)ce(yi[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),T(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),ee(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&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||$l(e,!0)}function Oo(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:at=at.return}}function sn(e){if(e!==at)return!1;if(!de)return Oo(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&&Me&&$l(e),Oo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Me=ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Me=ah(e)}else t===27?(t=Me,ra(e.type)?(e=fr,fr=null,Me=e):Me=t):Me=at?Qt(e.stateNode.nextSibling):null;return!0}function Ta(){Me=at=null,de=!1}function Qc(){var e=Kl;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),Kl=null),e}function $n(e){Kl===null?Kl=[e]:Kl.push(e)}var Zc=x(null),Ea=null,Sl=null;function Wl(e,t,l){G(Zc,t._currentValue),t._currentValue=l}function zl(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 f=i;i=n;for(var m=0;m<t.length;m++)if(f.context===t[m]){i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),Xc(i.return,l,e),a||(u=null);break e}i=f.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 rn(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 f=n.type;Et(n.pendingProps.value,u.value)||(e!==null?e.push(f):e=[f])}}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(zi):e=[zi])}n=n.return}e!==null&&Vc(t,e,l,a),t.flags|=262144}function uu(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Aa(e){Ea=e,Sl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Mo(Ea,e)}function cu(e,t){return Ea===null&&Aa(e),Mo(e,t)}function Mo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Sl===null){if(e===null)throw Error(s(308));Sl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sl=Sl.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:we,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jc(){return{controller:new Wp,data:new Map,refCount:0}}function Wn(e){e.refCount--,e.refCount===0&&Fp(Ip,function(){e.controller.abort()})}var Fn=null,Kc=0,on=0,fn=null;function Pp(e,t){if(Fn===null){var l=Fn=[];Kc=0,on=Fs(),fn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Kc++,t.then(Do,Do),t}function Do(){if(--Kc===0&&Fn!==null){fn!==null&&(fn.status="fulfilled");var e=Fn;Fn=null,on=0,fn=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 Co=_.S;_.S=function(e,t){xd=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Pp(e,t),Co!==null&&Co(e,t)};var _a=x(null);function $c(){var e=_a.current;return e!==null?e:_e.pooledCache}function su(e,t){t===null?G(_a,_a.current):G(_a,t.pool)}function Ro(){var e=$c();return e===null?null:{parent:Je._currentValue,pool:e}}var dn=Error(s(460)),Wc=Error(s(474)),ru=Error(s(542)),ou={then:function(){}};function Uo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ho(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then($t,$t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bo(e),e;default:if(typeof t.status=="string")t.then($t,$t);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,Bo(e),e}throw wa=t,dn}}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,dn):l}}var wa=null;function qo(){if(wa===null)throw Error(s(459));var e=wa;return wa=null,e}function Bo(e){if(e===dn||e===ru)throw Error(s(483))}var hn=null,In=0;function fu(e){var t=In;return In+=1,hn===null&&(hn=[]),Ho(hn,e,t)}function Pn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function du(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 Yo(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=bl(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 f(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 K=z.type;return K===he?O(S,y,z.props.children,M,z.key):y!==null&&(y.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ct&&ka(K)===y.type)?(y=n(y,z.props),Pn(y,z),y.return=S,y):(y=nu(z.type,z.key,z.props,null,S.mode,M),Pn(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,K){return y===null||y.tag!==7?(y=Na(z,S.mode,M,K),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 ne:return z=nu(y.type,y.key,y.props,null,S.mode,z),Pn(z,y),z.return=S,z;case Y:return y=Bc(y,S.mode,z),y.return=S,y;case ct:return y=ka(y),D(S,y,z)}if(Ce(y)||Xe(y))return y=Na(y,S.mode,z,null),y.return=S,y;if(typeof y.then=="function")return D(S,fu(y),z);if(y.$$typeof===we)return D(S,cu(S,y),z);du(S,y)}return null}function N(S,y,z,M){var K=y!==null?y.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return K!==null?null:f(S,y,""+z,M);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case ne:return z.key===K?m(S,y,z,M):null;case Y:return z.key===K?j(S,y,z,M):null;case ct:return z=ka(z),N(S,y,z,M)}if(Ce(z)||Xe(z))return K!==null?null:O(S,y,z,M,null);if(typeof z.then=="function")return N(S,y,fu(z),M);if(z.$$typeof===we)return N(S,y,cu(S,z),M);du(S,z)}return null}function E(S,y,z,M,K){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return S=S.get(z)||null,f(y,S,""+M,K);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ne:return S=S.get(M.key===null?z:M.key)||null,m(y,S,M,K);case Y:return S=S.get(M.key===null?z:M.key)||null,j(y,S,M,K);case ct:return M=ka(M),E(S,y,z,M,K)}if(Ce(M)||Xe(M))return S=S.get(z)||null,O(y,S,M,K,null);if(typeof M.then=="function")return E(S,y,z,fu(M),K);if(M.$$typeof===we)return E(S,y,z,cu(y,M),K);du(y,M)}return null}function X(S,y,z,M){for(var K=null,me=null,V=y,le=y=0,oe=null;V!==null&&le<z.length;le++){V.index>le?(oe=V,V=null):oe=V.sibling;var ge=N(S,V,z[le],M);if(ge===null){V===null&&(V=oe);break}e&&V&&ge.alternate===null&&t(S,V),y=i(ge,y,le),me===null?K=ge:me.sibling=ge,me=ge,V=oe}if(le===z.length)return l(S,V),de&&vl(S,le),K;if(V===null){for(;le<z.length;le++)V=D(S,z[le],M),V!==null&&(y=i(V,y,le),me===null?K=V:me.sibling=V,me=V);return de&&vl(S,le),K}for(V=a(V);le<z.length;le++)oe=E(V,S,le,z[le],M),oe!==null&&(e&&oe.alternate!==null&&V.delete(oe.key===null?le:oe.key),y=i(oe,y,le),me===null?K=oe:me.sibling=oe,me=oe);return e&&V.forEach(function(pa){return t(S,pa)}),de&&vl(S,le),K}function W(S,y,z,M){if(z==null)throw Error(s(151));for(var K=null,me=null,V=y,le=y=0,oe=null,ge=z.next();V!==null&&!ge.done;le++,ge=z.next()){V.index>le?(oe=V,V=null):oe=V.sibling;var pa=N(S,V,ge.value,M);if(pa===null){V===null&&(V=oe);break}e&&V&&pa.alternate===null&&t(S,V),y=i(pa,y,le),me===null?K=pa:me.sibling=pa,me=pa,V=oe}if(ge.done)return l(S,V),de&&vl(S,le),K;if(V===null){for(;!ge.done;le++,ge=z.next())ge=D(S,ge.value,M),ge!==null&&(y=i(ge,y,le),me===null?K=ge:me.sibling=ge,me=ge);return de&&vl(S,le),K}for(V=a(V);!ge.done;le++,ge=z.next())ge=E(V,S,le,ge.value,M),ge!==null&&(e&&ge.alternate!==null&&V.delete(ge.key===null?le:ge.key),y=i(ge,y,le),me===null?K=ge:me.sibling=ge,me=ge);return e&&V.forEach(function(f0){return t(S,f0)}),de&&vl(S,le),K}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 ne:e:{for(var K=z.key;y!==null;){if(y.key===K){if(K=z.type,K===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===K||typeof K=="object"&&K!==null&&K.$$typeof===ct&&ka(K)===y.type){l(S,y.sibling),M=n(y,z.props),Pn(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=nu(z.type,z.key,z.props,null,S.mode,M),Pn(M,z),M.return=S,S=M)}return u(S);case Y:e:{for(K=z.key;y!==null;){if(y.key===K)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(Ce(z))return X(S,y,z,M);if(Xe(z)){if(K=Xe(z),typeof K!="function")throw Error(s(150));return z=K.call(z),W(S,y,z,M)}if(typeof z.then=="function")return Te(S,y,fu(z),M);if(z.$$typeof===we)return Te(S,y,cu(S,z),M);du(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{In=0;var K=Te(S,y,z,M);return hn=null,K}catch(V){if(V===dn||V===ru)throw V;var me=At(29,V,null,S.mode);return me.lanes=M,me.return=S,me}finally{}}}var Oa=Yo(!0),Go=Yo(!1),Fl=!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 Il(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pl(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=au(e),No(e,null,l),t}return lu(e,a,t,l),au(e)}function ei(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,qi(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 ti(){if(es){var e=fn;if(e!==null)throw e}}function li(e,t,l,a){es=!1;var n=e.updateQueue;Fl=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var m=f,j=m.next;m.next=null,u===null?i=j:u.next=j,u=m;var O=e.alternate;O!==null&&(O=O.updateQueue,f=O.lastBaseUpdate,f!==u&&(f===null?O.firstBaseUpdate=j:f.next=j,O.lastBaseUpdate=m))}if(i!==null){var D=n.baseState;u=0,O=j=m=null,f=i;do{var N=f.lane&-536870913,E=N!==f.lane;if(E?(re&N)===N:(a&N)===N){N!==0&&N===on&&(es=!0),O!==null&&(O=O.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var X=e,W=f;N=t;var Te=l;switch(W.tag){case 1:if(X=W.payload,typeof X=="function"){D=X.call(Te,D,N);break e}D=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=W.payload,N=typeof X=="function"?X.call(Te,D,N):X,N==null)break e;D=R({},D,N);break e;case 2:Fl=!0}}N=f.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:f.tag,payload:f.payload,callback:f.callback,next:null},O===null?(j=O=E,m=D):O=O.next=E,u|=N;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;E=f,f=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),na|=u,e.lanes=u,e.memoizedState=D}}function Lo(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Qo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Lo(l[e],t)}var pn=x(null),hu=x(0);function Zo(e,t){e=Ol,G(hu,e),G(pn,t),Ol=e|t.baseLanes}function ts(){G(hu,Ol),G(pn,pn.current)}function ls(){Ol=hu.current,C(pn),C(hu)}var _t=x(null),Lt=null;function ea(e){var t=e.alternate;G(Ge,Ge.current&1),G(_t,e),Lt===null&&(t===null||pn.current!==null||t.memoizedState!==null)&&(Lt=e)}function as(e){G(Ge,Ge.current),G(_t,e),Lt===null&&(Lt=e)}function Xo(e){e.tag===22?(G(Ge,Ge.current),G(_t,e),Lt===null&&(Lt=e)):ta()}function ta(){G(Ge,Ge.current),G(_t,_t.current)}function kt(e){C(_t),Lt===e&&(Lt=null),C(Ge)}var Ge=x(0);function pu(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)||or(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 jl=0,te=null,je=null,Ke=null,mu=!1,mn=!1,Ma=!1,gu=0,ai=0,gn=null,tm=0;function Be(){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(!Et(e[l],t[l]))return!1;return!0}function is(e,t,l,a,n,i){return jl=i,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?kf:vs,Ma=!1,i=l(a,n),Ma=!1,mn&&(i=Jo(t,l,a,n)),Vo(e),i}function Vo(e){_.H=ui;var t=je!==null&&je.next!==null;if(jl=0,Ke=je=te=null,mu=!1,ai=0,gn=null,t)throw Error(s(300));e===null||$e||(e=e.dependencies,e!==null&&uu(e)&&($e=!0))}function Jo(e,t,l,a){te=e;var n=0;do{if(mn&&(gn=null),ai=0,mn=!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=wf,i=t(l,a)}while(mn);return i}function lm(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ni(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(te.flags|=1024),t}function us(){var e=gu!==0;return gu=0,e}function cs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ss(e){if(mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mu=!1}jl=0,Ke=je=te=null,mn=!1,ai=gu=0,gn=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?te.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Le(){if(je===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Ke===null?te.memoizedState:Ke.next;if(t!==null)Ke=t,je=e;else{if(e===null)throw te.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?te.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function yu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ni(e){var t=ai;return ai+=1,gn===null&&(gn=[]),e=Ho(gn,e,t),t=te,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?kf:vs),e}function xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ni(e);if(e.$$typeof===we)return nt(e)}throw Error(s(438,String(e)))}function rs(e){var t=null,l=te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=te.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=yu(),te.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]=Cl;return t.index++,l}function Nl(e,t){return typeof t=="function"?t(e):t}function bu(e){var t=Le();return os(t,je,e)}function os(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 f=u=null,m=null,j=t,O=!1;do{var D=j.lane&-536870913;if(D!==j.lane?(re&D)===D:(jl&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===on&&(O=!0);else if((jl&N)===N){j=j.next,N===on&&(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?(f=m=D,u=i):m=m.next=D,te.lanes|=N,na|=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?(f=m=N,u=i):m=m.next=N,te.lanes|=D,na|=D;j=j.next}while(j!==null&&j!==t);if(m===null?u=i:m.next=f,!Et(i,e.memoizedState)&&($e=!0,O&&(l=fn,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 fs(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);Et(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Ko(e,t,l){var a=te,n=Le(),i=de;if(i){if(l===void 0)throw Error(s(407));l=l()}else l=t();var u=!Et((je||n).memoizedState,l);if(u&&(n.memoizedState=l,$e=!0),n=n.queue,ps(Fo.bind(null,a,n,e),[e]),n.getSnapshot!==t||u||Ke!==null&&Ke.memoizedState.tag&1){if(a.flags|=2048,yn(9,{destroy:void 0},Wo.bind(null,a,n,l,t),null),_e===null)throw Error(s(349));i||(jl&127)!==0||$o(a,t,l)}return l}function $o(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=te.updateQueue,t===null?(t=yu(),te.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Wo(e,t,l,a){t.value=l,t.getSnapshot=a,Io(t)&&Po(e)}function Fo(e,t,l){return l(function(){Io(t)&&Po(e)})}function Io(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Et(e,l)}catch{return!0}}function Po(e){var t=ja(e,2);t!==null&&jt(t,e,2)}function ds(e){var t=gt();if(typeof e=="function"){var l=e;if(e=l(),Ma){ll(!0);try{l()}finally{ll(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:e},t}function ef(e,t,l,a){return e.baseState=l,os(e,je,typeof a=="function"?a:Nl)}function am(e,t,l,a,n){if(zu(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,tf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function tf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=_.T,u={};_.T=u;try{var f=l(n,a),m=_.S;m!==null&&m(u,f),lf(e,t,f)}catch(j){hs(e,t,j)}finally{i!==null&&u.types!==null&&(i.types=u.types),_.T=i}}else try{i=l(n,a),lf(e,t,i)}catch(j){hs(e,t,j)}}function lf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){af(e,t,a)},function(a){return hs(e,t,a)}):af(e,t,l)}function af(e,t,l){t.status="fulfilled",t.value=l,nf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,tf(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,nf(t),t=t.next;while(t!==a)}e.action=null}function nf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function uf(e,t){return t}function cf(e,t){if(de){var l=_e.formState;if(l!==null){e:{var a=te;if(de){if(Me){t:{for(var n=Me,i=Gt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Qt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Me=Qt(n.nextSibling),a=n.data==="F!";break e}}$l(a)}a=!1}a&&(t=l[0])}}return l=gt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uf,lastRenderedState:t},l.queue=a,l=Ef.bind(null,te,a),a.dispatch=l,a=ds(!1),i=bs.bind(null,te,!1,a.queue),a=gt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=am.bind(null,te,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function sf(e){var t=Le();return rf(t,je,e)}function rf(e,t,l){if(t=os(e,t,uf)[0],e=bu(Nl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ni(t)}catch(u){throw u===dn?ru:u}else a=t;t=Le();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(te.flags|=2048,yn(9,{destroy:void 0},nm.bind(null,n,l),null)),[a,i,e]}function nm(e,t){e.action=t}function of(e){var t=Le(),l=je;if(l!==null)return rf(t,l,e);Le(),t=t.memoizedState,l=Le();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function yn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=te.updateQueue,t===null&&(t=yu(),te.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 ff(){return Le().memoizedState}function vu(e,t,l,a){var n=gt();te.flags|=e,n.memoizedState=yn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Su(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=yn(t,i,l,a):(te.flags|=e,n.memoizedState=yn(1|t,i,l,a))}function df(e,t){vu(8390656,8,e,t)}function ps(e,t){Su(2048,8,e,t)}function im(e){te.flags|=4;var t=te.updateQueue;if(t===null)t=yu(),te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function hf(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 pf(e,t){return Su(4,2,e,t)}function mf(e,t){return Su(4,4,e,t)}function gf(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 yf(e,t,l){l=l!=null?l.concat([e]):null,Su(4,4,gf.bind(null,t,e),l)}function ms(){}function xf(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 bf(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){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a}function gs(e,t,l){return l===void 0||(jl&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=vd(),te.lanes|=e,na|=e,l)}function vf(e,t,l,a){return Et(l,t)?l:pn.current!==null?(e=gs(e,l,a),Et(e,t)||($e=!0),e):(jl&42)===0||(jl&1073741824)!==0&&(re&261930)===0?($e=!0,e.memoizedState=l):(e=vd(),te.lanes|=e,na|=e,t)}function Sf(e,t,l,a,n){var i=L.p;L.p=i!==0&&8>i?i:8;var u=_.T,f={};_.T=f,bs(e,!1,t,l);try{var m=n(),j=_.S;if(j!==null&&j(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=em(m,a);ii(e,t,O,Mt(e))}else ii(e,t,a,Mt(e))}catch(D){ii(e,t,{then:function(){},status:"rejected",reason:D},Mt())}finally{L.p=i,u!==null&&f.types!==null&&(u.types=f.types),_.T=u}}function um(){}function ys(e,t,l,a){if(e.tag!==5)throw Error(s(476));var n=zf(e).queue;Sf(e,n,t,$,l===null?um:function(){return jf(e),l(a)})}function zf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function jf(e){var t=zf(e);t.next===null&&(t=e.alternate.memoizedState),ii(e,t.next.queue,{},Mt())}function xs(){return nt(zi)}function Nf(){return Le().memoizedState}function Tf(){return Le().memoizedState}function cm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Mt();e=Il(l);var a=Pl(t,e,l);a!==null&&(jt(a,t,l),ei(a,t,l)),t={cache:Jc()},e.payload=t;return}t=t.return}}function sm(e,t,l){var a=Mt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},zu(e)?Af(t,l):(l=Uc(e,t,l,a),l!==null&&(jt(l,e,a),_f(l,t,a)))}function Ef(e,t,l){var a=Mt();ii(e,t,l,a)}function ii(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(zu(e))Af(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,f=i(u,l);if(n.hasEagerState=!0,n.eagerState=f,Et(f,u))return lu(e,t,n,0),_e===null&&tu(),!1}catch{}finally{}if(l=Uc(e,t,n,a),l!==null)return jt(l,e,a),_f(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},zu(e)){if(t)throw Error(s(479))}else t=Uc(e,l,a,2),t!==null&&jt(t,e,2)}function zu(e){var t=e.alternate;return e===te||t!==null&&t===te}function Af(e,t){mn=mu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function _f(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,qi(e,l)}}var ui={readContext:nt,use:xu,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be};ui.useEffectEvent=Be;var kf={readContext:nt,use:xu,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:df,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,vu(4194308,4,gf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t)},useMemo:function(e,t){var l=gt();t=t===void 0?null:t;var a=e();if(Ma){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=gt();if(l!==void 0){var n=l(t);if(Ma){ll(!0);try{l(t)}finally{ll(!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,te,e),[a.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=ds(e);var t=e.queue,l=Ef.bind(null,te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ms,useDeferredValue:function(e,t){var l=gt();return gs(l,e,t)},useTransition:function(){var e=ds(!1);return e=Sf.bind(null,te,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=te,n=gt();if(de){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),_e===null)throw Error(s(349));(re&127)!==0||$o(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,df(Fo.bind(null,a,i,e),[e]),a.flags|=2048,yn(9,{destroy:void 0},Wo.bind(null,a,i,l,t),null),l},useId:function(){var e=gt(),t=_e.identifierPrefix;if(de){var l=cl,a=ul;l=(a&~(1<<32-pt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=gu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:cf,useActionState:cf,useOptimistic:function(e){var t=gt();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,te,!0,l),l.dispatch=t,[e,t]},useMemoCache:rs,useCacheRefresh:function(){return gt().memoizedState=cm.bind(null,te)},useEffectEvent:function(e){var t=gt(),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:xu,useCallback:xf,useContext:nt,useEffect:ps,useImperativeHandle:yf,useInsertionEffect:pf,useLayoutEffect:mf,useMemo:bf,useReducer:bu,useRef:ff,useState:function(){return bu(Nl)},useDebugValue:ms,useDeferredValue:function(e,t){var l=Le();return vf(l,je.memoizedState,e,t)},useTransition:function(){var e=bu(Nl)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Ko,useId:Nf,useHostTransitionStatus:xs,useFormState:sf,useActionState:sf,useOptimistic:function(e,t){var l=Le();return ef(l,je,e,t)},useMemoCache:rs,useCacheRefresh:Tf};vs.useEffectEvent=hf;var wf={readContext:nt,use:xu,useCallback:xf,useContext:nt,useEffect:ps,useImperativeHandle:yf,useInsertionEffect:pf,useLayoutEffect:mf,useMemo:bf,useReducer:fs,useRef:ff,useState:function(){return fs(Nl)},useDebugValue:ms,useDeferredValue:function(e,t){var l=Le();return je===null?gs(l,e,t):vf(l,je.memoizedState,e,t)},useTransition:function(){var e=fs(Nl)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Ko,useId:Nf,useHostTransitionStatus:xs,useFormState:of,useActionState:of,useOptimistic:function(e,t){var l=Le();return je!==null?ef(l,je,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:rs,useCacheRefresh:Tf};wf.useEffectEvent=hf;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=Mt(),n=Il(a);n.payload=t,l!=null&&(n.callback=l),t=Pl(e,n,a),t!==null&&(jt(t,e,a),ei(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Mt(),n=Il(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Pl(e,n,a),t!==null&&(jt(t,e,a),ei(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Mt(),a=Il(l);a.tag=2,t!=null&&(a.callback=t),t=Pl(e,a,l),t!==null&&(jt(t,e,l),ei(t,e,l))}};function Of(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?!Vn(l,a)||!Vn(n,i):!0}function Mf(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 Df(e){eu(e)}function Cf(e){console.error(e)}function Rf(e){eu(e)}function ju(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Uf(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=Il(l),l.tag=3,l.payload={element:null},l.callback=function(){ju(e,t)},l}function Hf(e){return e=Il(e),e.tag=3,e}function qf(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(){Uf(t,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Uf(t,l,a),typeof n!="function"&&(ia===null?ia=new Set([this]):ia.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}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&&rn(t,l,n,!0),l=_t.current,l!==null){switch(l.tag){case 31:case 13:return Lt===null?Ru():l.alternate===null&&Ye===0&&(Ye=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ou?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===ou?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),Ru(),!1}if(de)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Lc&&(e=Error(s(422),{cause:a}),$n(qt(e,l)))):(a!==Lc&&(t=Error(s(423),{cause:a}),$n(qt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=qt(a,l),n=js(e.stateNode,a,n),Pc(e,n),Ye!==4&&(Ye=2)),!1;var i=Error(s(520),{cause:a});if(i=qt(i,l),pi===null?pi=[i]:pi.push(i),Ye!==4&&(Ye=2),t===null)return!0;a=qt(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"&&(ia===null||!ia.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Hf(n),qf(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?Go(t,null,l,a):Oa(t,e.child,l,a)}function Bf(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var u={};for(var f in a)f!=="ref"&&(u[f]=a[f])}else u=a;return Aa(t),a=is(e,t,l,u,i,n),f=us(),e!==null&&!$e?(cs(e,t,n),Tl(e,t,n)):(de&&f&&Yc(t),t.flags|=1,it(e,t,a,n),t.child)}function Yf(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,Gf(e,t,i,a,n)):(e=nu(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:Vn,l(u,a)&&e.ref===t.ref)return Tl(e,t,n)}return t.flags|=1,e=bl(i,a),e.ref=t.ref,e.return=t,t.child=e}function Gf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Vn(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,Tl(e,t,n)}return Ts(e,t,l,a,n)}function Lf(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 Qf(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&su(t,i!==null?i.cachePool:null),i!==null?Zo(t,i):ts(),Xo(t);else return a=t.lanes=536870912,Qf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(su(t,i.cachePool),Zo(t,i),ta(),t.memoizedState=null):(e!==null&&su(t,null),ts(),ta());return it(e,t,n,l),t.child}function ci(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qf(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&&su(t,null),ts(),Xo(t),e!==null&&rn(e,t,a,!0),t.childLanes=n,null}function Nu(e,t){return t=Eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zf(e,t,l){return Oa(t,e.child,null,l),e=Nu(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function om(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=Nu(t,a),t.lanes=536870912,ci(null,e);if(as(t),(e=Me)?(e=lh(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jl!==null?{id:ul,overflow:cl}:null,retryLane:536870912,hydrationErrors:null},l=Eo(e),l.return=t,t.child=l,at=t,Me=null)):e=null,e===null)throw $l(t);return t.lanes=536870912,null}return Nu(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=Zf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if($e||rn(e,t,l,!1),n=(l&e.childLanes)!==0,$e||n){if(a=_e,a!==null&&(u=Ja(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,ja(e,u),jt(a,e,u),Ns;Ru(),t=Zf(e,t,l)}else e=i.treeContext,Me=Qt(u.nextSibling),at=t,de=!0,Kl=null,Gt=!1,e!==null&&ko(t,e),t=Nu(t,a),t.flags|=4096;return t}return e=bl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(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),Tl(e,t,n)):(de&&a&&Yc(t),t.flags|=1,it(e,t,l,n),t.child)}function Xf(e,t,l,a,n,i){return Aa(t),t.updateQueue=null,l=Jo(t,a,l,n),Vo(e),a=us(),e!==null&&!$e?(cs(e,t,i),Tl(e,t,i)):(de&&a&&Yc(t),t.flags|=1,it(e,t,l,i),t.child)}function Vf(e,t,l,a,n){if(Aa(t),t.stateNode===null){var i=nn,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):nn,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),li(t,a,i,n),ti(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var f=t.memoizedProps,m=Da(l,f);i.props=m;var j=i.context,O=l.contextType;u=nn,typeof O=="object"&&O!==null&&(u=nt(O));var D=l.getDerivedStateFromProps;O=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||j!==u)&&Mf(t,i,a,u),Fl=!1;var N=t.memoizedState;i.state=N,li(t,a,i,n),ti(),j=t.memoizedState,f||N!==j||Fl?(typeof D=="function"&&(Ss(t,l,D,a),j=t.memoizedState),(m=Fl||Of(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=nn,typeof j=="object"&&j!==null&&(m=nt(j)),f=l.getDerivedStateFromProps,(j=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==D||N!==m)&&Mf(t,i,a,m),Fl=!1,N=t.memoizedState,i.state=N,li(t,a,i,n),ti();var E=t.memoizedState;u!==D||N!==E||Fl||e!==null&&e.dependencies!==null&&uu(e.dependencies)?(typeof f=="function"&&(Ss(t,l,f,a),E=t.memoizedState),(O=Fl||Of(t,l,O,a,N,E,m)||e!==null&&e.dependencies!==null&&uu(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,Tu(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=Tl(e,t,n),e}function Jf(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:Ro()}}function _s(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ot),e}function Kf(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?ea(t):ta(),(e=Me)?(e=lh(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jl!==null?{id:ul,overflow:cl}:null,retryLane:536870912,hydrationErrors:null},l=Eo(e),l.return=t,t.child=l,at=t,Me=null)):e=null,e===null)throw $l(t);return or(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(ta(),n=t.mode,f=Eu({mode:"hidden",children:f},n),a=Na(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=As(l),a.childLanes=_s(e,u,l),t.memoizedState=Es,ci(null,a)):(ea(t),ks(t,f))}var m=e.memoizedState;if(m!==null&&(f=m.dehydrated,f!==null)){if(i)t.flags&256?(ea(t),t.flags&=-257,t=ws(e,t,l)):t.memoizedState!==null?(ta(),t.child=e.child,t.flags|=128,t=null):(ta(),f=a.fallback,n=t.mode,a=Eu({mode:"visible",children:a.children},n),f=Na(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,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=ci(null,a));else if(ea(t),or(f)){if(u=f.nextSibling&&f.nextSibling.dataset,u)var j=u.dgst;u=j,a=Error(s(419)),a.stack="",a.digest=u,$n({value:a,source:null,stack:null}),t=ws(e,t,l)}else if($e||rn(e,t,l,!1),u=(l&e.childLanes)!==0,$e||u){if(u=_e,u!==null&&(a=Ja(u,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,ja(e,a),jt(u,e,a),Ns;rr(f)||Ru(),t=ws(e,t,l)}else rr(f)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Me=Qt(f.nextSibling),at=t,de=!0,Kl=null,Gt=!1,e!==null&&ko(t,e),t=ks(t,a.children),t.flags|=4096);return t}return n?(ta(),f=a.fallback,n=t.mode,m=e.child,j=m.sibling,a=bl(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,j!==null?f=bl(j,f):(f=Na(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,ci(null,a),a=t.child,f=e.child.memoizedState,f===null?f=As(l):(n=f.cachePool,n!==null?(m=Je._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=Ro(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=_s(e,u,l),t.memoizedState=Es,ci(e.child,a)):(ea(t),l=e.child,e=l.sibling,l=bl(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=Eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eu(e,t){return e=At(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 $f(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 Wf(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=Ge.current,f=(u&2)!==0;if(f?(u=u&1|2,t.flags|=128):u&=1,G(Ge,u),it(e,t,a,l),a=de?Kn:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$f(e,l,t);else if(e.tag===19)$f(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&&pu(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&&pu(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 Tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),na|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(rn(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=bl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=bl(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&&uu(e)))}function fm(e,t,l){switch(t.tag){case 3:tt(t,t.stateNode.containerInfo),Wl(t,Je,e.memoizedState.cache),Ta();break;case 27:case 5:Rl(t);break;case 4:tt(t,t.stateNode.containerInfo);break;case 10:Wl(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?(ea(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Kf(e,t,l):(ea(t),e=Tl(e,t,l),e!==null?e.sibling:null);ea(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(rn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Wf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),G(Ge,Ge.current),a)break;return null;case 22:return t.lanes=0,Lf(e,t,l,t.pendingProps);case 24:Wl(t,Je,e.memoizedState.cache)}return Tl(e,t,l)}function Ff(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,fm(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,de&&(t.flags&1048576)!==0&&_o(t,Kn,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=Vf(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=Bf(null,t,e,a,l);break e}else if(n===ie){t.tag=14,t=Yf(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),Vf(e,t,a,n,l);case 3:e:{if(tt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Ic(e,t),li(t,a,null,l);var u=t.memoizedState;if(a=u.cache,Wl(t,Je,a),a!==i.cache&&Vc(t,[Je],l,!0),ti(),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=Jf(e,t,a,l);break e}else if(a!==n){n=qt(Error(s(424)),t),$n(n),t=Jf(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(Me=Qt(e.firstChild),at=t,de=!0,Kl=null,Gt=!0,l=Go(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ta(),a===n){t=Tl(e,t,l);break e}it(e,t,a,l)}t=t.child}return t;case 26:return Tu(e,t),e===null?(l=sh(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Lu(ae.current).createElement(l),a[Fe]=t,a[rt]=e,ut(a,l,e),Ve(a),t.stateNode=a):t.memoizedState=sh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Rl(t),e===null&&de&&(a=t.stateNode=ih(t.type,t.pendingProps,ae.current),at=t,Gt=!0,n=Me,ra(t.type)?(fr=n,Me=Qt(a.firstChild)):Me=n),it(e,t,t.pendingProps.children,l),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((n=a=Me)&&(a=Gm(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,at=t,Me=Qt(a.firstChild),Gt=!1,n=!0):n=!1),n||$l(t)),Rl(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),zi._currentValue=n),Tu(e,t),it(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=Me)&&(l=Lm(l,t.pendingProps,Gt),l!==null?(t.stateNode=l,at=t,Me=null,e=!0):e=!1),e||$l(t)),null;case 13:return Kf(e,t,l);case 4:return tt(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 Bf(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,Wl(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 Yf(e,t,t.type,t.pendingProps,l);case 15:return Gf(e,t,t.type,t.pendingProps,l);case 19:return Wf(e,t,l);case 31:return om(e,t,l);case 22:return Lf(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),Wl(t,Je,n)):((e.lanes&l)!==0&&(Ic(e,t),li(t,null,null,l),ti()),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),Wl(t,Je,a)):(a=i.cache,Wl(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 El(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=ou,Wc}else e.flags&=-16777217}function If(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=ou,Wc}function Au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jt():536870912,e.lanes|=t,Sn|=t)}function si(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 De(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 De(t),null;case 1:return De(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),zl(Je),ke(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(sn(t)?El(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qc())),De(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(El(t),i!==null?(De(t),If(t,i)):(De(t),Ds(t,n,null,a,l))):i?i!==e.memoizedState?(El(t),De(t),If(t,i)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&El(t),De(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&&El(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return De(t),null}e=Z.current,sn(t)?wo(t):(e=ih(n,a,l),t.stateNode=e,El(t))}return De(t),null;case 5:if(Ba(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&El(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return De(t),null}if(i=Z.current,sn(t))wo(t);else{var u=Lu(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[rt]=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&&El(t)}}return De(t),Ds(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&El(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,sn(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||$l(t,!0)}else e=Lu(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return De(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=sn(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;De(t),e=!1}else l=Qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=sn(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;De(t),n=!1}else n=Qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(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),Au(t,t.updateQueue),De(t),null);case 4:return ke(),e===null&&tr(t.stateNode.containerInfo),De(t),null;case 10:return zl(t.type),De(t),null;case 19:if(C(Ge),a=t.memoizedState,a===null)return De(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)si(a,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=pu(e),i!==null){for(t.flags|=128,si(a,!1),e=i.updateQueue,t.updateQueue=e,Au(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)To(l,e),l=l.sibling;return G(Ge,Ge.current&1|2),de&&vl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&<()>Mu&&(t.flags|=128,n=!0,si(a,!1),t.lanes=4194304)}else{if(!n)if(e=pu(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Au(t,e),si(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!de)return De(t),null}else 2*lt()-a.renderingStartTime>Mu&&l!==536870912&&(t.flags|=128,n=!0,si(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=lt(),e.sibling=null,l=Ge.current,G(Ge,n?l&1|2:l&1),de&&vl(t,a.treeForkCount),e):(De(t),null);case 22:case 23:return kt(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&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),l=t.updateQueue,l!==null&&Au(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),zl(Je),De(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 zl(Je),ke(),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(kt(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(kt(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 ke(),null;case 10:return zl(t.type),null;case 22:case 23:return kt(t),ls(),e!==null&&C(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zl(Je),null;case 25:return null;default:return null}}function Pf(e,t){switch(Gc(t),t.tag){case 3:zl(Je),ke();break;case 26:case 27:case 5:Ba(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:C(Ge);break;case 10:zl(t.type);break;case 22:case 23:kt(t),ls(),e!==null&&C(_a);break;case 24:zl(Je)}}function ri(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(f){Se(t,t.return,f)}}function la(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,f=u.destroy;if(f!==void 0){u.destroy=void 0,n=t;var m=l,j=f;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{Qo(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 oi(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 sl(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[rt]=t}catch(n){Se(e,e.return,n)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ra(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&&ra(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=$t));else if(a!==4&&(a===27&&ra(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 _u(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&ra(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(_u(e,t,l),e=e.sibling;e!==null;)_u(e,t,l),e=e.sibling}function 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[rt]=l}catch(i){Se(e,e.return,i)}}var Al=!1,We=!1,Hs=!1,id=typeof WeakSet=="function"?WeakSet:Set,et=null;function pm(e,t){if(e=e.containerInfo,nr=$u,e=go(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,f=-1,m=-1,j=0,O=0,D=e,N=null;t:for(;;){for(var E;D!==l||n!==0&&D.nodeType!==3||(f=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&&(f=u),N===i&&++O===a&&(m=u),(E=D.nextSibling)!==null)break;D=N,N=D.parentNode}D=E}l=f===-1||m===-1?null:{start:f,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(ir={focusedElem:e,selectionRange:l},$u=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,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 X=Da(l.type,n);e=a.getSnapshotBeforeUpdate(X,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){Se(l,l.return,W)}}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,et=e;break}et=t.return}}function ud(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:kl(e,l),a&4&&ri(5,l);break;case 1:if(kl(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&&oi(l,l.return);break;case 3:if(kl(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{Qo(e,t)}catch(u){Se(l,l.return,u)}}break;case 27:t===null&&a&4&&nd(l);case 26:case 5:kl(e,l),t===null&&a&4&&ld(l),a&512&&oi(l,l.return);break;case 12:kl(e,l);break;case 31:kl(e,l),a&4&&rd(e,l);break;case 13:kl(e,l),a&4&&od(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||Al,!a){t=t!==null&&t.memoizedState!==null||We,n=Al;var i=We;Al=a,(We=t)&&!i?wl(e,l,(l.subtreeFlags&8772)!==0):kl(e,l),Al=n,We=i}break;case 30:break;default:kl(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&&Kt(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 Re=null,bt=!1;function _l(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(ql,l)}catch{}switch(l.tag){case 26:We||sl(l,t),_l(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:We||sl(l,t);var a=Re,n=bt;ra(l.type)&&(Re=l.stateNode,bt=!1),_l(e,t,l),bi(l.stateNode),Re=a,bt=n;break;case 5:We||sl(l,t);case 6:if(a=Re,n=bt,Re=null,_l(e,t,l),Re=a,bt=n,Re!==null)if(bt)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(i){Se(l,t,i)}else try{Re.removeChild(l.stateNode)}catch(i){Se(l,t,i)}break;case 18:Re!==null&&(bt?(e=Re,eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),kn(e)):eh(Re,l.stateNode));break;case 4:a=Re,n=bt,Re=l.stateNode.containerInfo,bt=!0,_l(e,t,l),Re=a,bt=n;break;case 0:case 11:case 14:case 15:la(2,l,t),We||la(4,l,t),_l(e,t,l);break;case 1:We||(sl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&td(l,t,a)),_l(e,t,l);break;case 21:_l(e,t,l);break;case 22:We=(a=We)||l.memoizedState!==null,_l(e,t,l),We=a;break;default:_l(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{kn(e)}catch(l){Se(t,t.return,l)}}}function od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kn(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 ku(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,f=u;e:for(;f!==null;){switch(f.tag){case 27:if(ra(f.type)){Re=f.stateNode,bt=!1;break e}break;case 5:Re=f.stateNode,bt=!1;break e;case 3:case 4:Re=f.stateNode.containerInfo,bt=!0;break e}f=f.return}if(Re===null)throw Error(s(160));sd(i,u,n),Re=null,bt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fd(t,e),t=t.sibling}var Ft=null;function fd(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&&(la(3,e,e.return),ri(3,e),la(5,e,e.return));break;case 1:vt(t,e),St(e),a&512&&(We||l===null||sl(l,l.return)),a&64&&Al&&(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=Ft;if(vt(t,e),St(e),a&512&&(We||l===null||sl(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[nl]||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,Ve(i),a=i;break e;case"link":var u=fh("link","href",n).get(a+(l.href||""));if(u){for(var f=0;f<u.length;f++)if(i=u[f],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(f,1);break t}}i=n.createElement(a),ut(i,a,l),n.head.appendChild(i);break;case"meta":if(u=fh("meta","content",n).get(a+(l.content||""))){for(f=0;f<u.length;f++)if(i=u[f],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(f,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,Ve(i),a=i}e.stateNode=a}else dh(n,e.type,e.stateNode);else e.stateNode=oh(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):oh(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||sl(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||sl(l,l.return)),e.flags&32){n=e.stateNode;try{J(n,"")}catch(X){Se(e,e.return,X)}}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(X){Se(e,e.return,X)}}break;case 3:if(Xu=null,n=Ft,Ft=Qu(t.containerInfo),vt(t,e),Ft=n,St(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{kn(t.containerInfo)}catch(X){Se(e,e.return,X)}Hs&&(Hs=!1,dd(e));break;case 4:a=Ft,Ft=Qu(e.stateNode.containerInfo),vt(t,e),St(e),Ft=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,ku(e,a)));break;case 13:vt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ou=lt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 22:n=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,j=Al,O=We;if(Al=j||n,We=O||m,vt(t,e),We=O,Al=j,St(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||m||Al||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{f=m.stateNode;var D=m.memoizedProps.style,N=D!=null&&D.hasOwnProperty("display")?D.display:null;f.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(X){Se(m,m.return,X)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(X){Se(m,m.return,X)}}}else if(t.tag===18){if(l===null){m=t;try{var E=m.stateNode;n?th(E,!0):th(m.stateNode,!1)}catch(X){Se(m,m.return,X)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ku(e,l))));break;case 19:vt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(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);_u(e,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(J(u,""),l.flags&=-33);var f=Rs(e);_u(e,f,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 kl(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:la(4,t,t.return),Ca(t);break;case 1:sl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&td(t,t.return,l),Ca(t);break;case 27:bi(t.stateNode);case 26:case 5:sl(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 wl(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:wl(n,i,l),ri(4,i);break;case 1:if(wl(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 f=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)Lo(m[n],f)}catch(j){Se(a,a.return,j)}}l&&u&64&&ed(i),oi(i,i.return);break;case 27:nd(i);case 26:case 5:wl(n,i,l),l&&a===null&&u&4&&ld(i),oi(i,i.return);break;case 12:wl(n,i,l);break;case 31:wl(n,i,l),l&&u&4&&rd(n,i);break;case 13:wl(n,i,l),l&&u&4&&od(n,i);break;case 22:i.memoizedState===null&&wl(n,i,l),oi(i,i.return);break;case 30:break;default:wl(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&&Wn(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&&Wn(e))}function It(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:It(e,t,l,a),n&2048&&ri(9,t);break;case 1:It(e,t,l,a);break;case 3:It(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&&Wn(e)));break;case 12:if(n&2048){It(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,f=i.onPostCommit;typeof f=="function"&&f(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Se(t,t.return,m)}}else It(e,t,l,a);break;case 31:It(e,t,l,a);break;case 13:It(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?It(e,t,l,a):fi(e,t):i._visibility&2?It(e,t,l,a):(i._visibility|=2,xn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&qs(u,t);break;case 24:It(e,t,l,a),n&2048&&Bs(t.alternate,t);break;default:It(e,t,l,a)}}function xn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,u=t,f=l,m=a,j=u.flags;switch(u.tag){case 0:case 11:case 15:xn(i,u,f,m,n),ri(8,u);break;case 23:break;case 22:var O=u.stateNode;u.memoizedState!==null?O._visibility&2?xn(i,u,f,m,n):fi(i,u):(O._visibility|=2,xn(i,u,f,m,n)),n&&j&2048&&qs(u.alternate,u);break;case 24:xn(i,u,f,m,n),n&&j&2048&&Bs(u.alternate,u);break;default:xn(i,u,f,m,n)}t=t.sibling}}function fi(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:fi(l,a),n&2048&&qs(a.alternate,a);break;case 24:fi(l,a),n&2048&&Bs(a.alternate,a);break;default:fi(l,a)}t=t.sibling}}var di=8192;function bn(e,t,l){if(e.subtreeFlags&di)for(e=e.child;e!==null;)pd(e,t,l),e=e.sibling}function pd(e,t,l){switch(e.tag){case 26:bn(e,t,l),e.flags&di&&e.memoizedState!==null&&t0(l,Ft,e.memoizedState,e.memoizedProps);break;case 5:bn(e,t,l);break;case 3:case 4:var a=Ft;Ft=Qu(e.stateNode.containerInfo),bn(e,t,l),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=di,di=16777216,bn(e,t,l),di=a):bn(e,t,l));break;default:bn(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 hi(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];et=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:hi(e),e.flags&2048&&la(9,e,e.return);break;case 3:hi(e);break;case 12:hi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wu(e)):hi(e);break;default:hi(e)}}function wu(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];et=a,yd(a,e)}md(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:la(8,t,t.return),wu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,wu(t));break;default:wu(t)}e=e.sibling}}function yd(e,t){for(;et!==null;){var l=et;switch(l.tag){case 0:case 11:case 15:la(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:Wn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,et=a;else e:for(l=e;et!==null;){a=et;var n=a.sibling,i=a.return;if(cd(a),a===l){et=null;break e}if(n!==null){n.return=i,et=n;break e}et=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,ue=null,re=0,ve=0,wt=null,aa=!1,vn=!1,Ys=!1,Ol=0,Ye=0,na=0,Ra=0,Gs=0,Ot=0,Sn=0,pi=null,zt=null,Ls=!1,Ou=0,xd=0,Mu=1/0,Du=null,ia=null,Ie=0,ua=null,zn=null,Ml=0,Qs=0,Zs=null,bd=null,mi=0,Xs=null;function Mt(){return(be&2)!==0&&re!==0?re&-re:_.T!==null?Fs():Ka()}function vd(){if(Ot===0)if((re&536870912)===0||de){var e=Za;Za<<=1,(Za&3932160)===0&&(Za=262144),Ot=e}else Ot=536870912;return e=_t.current,e!==null&&(e.flags|=32),Ot}function jt(e,t,l){(e===_e&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(jn(e,0),ca(e,re,Ot,!1)),Bl(e,l),((be&2)===0||e!==_e)&&(e===_e&&((be&2)===0&&(Ra|=l),Ye===4&&ca(e,re,Ot,!1)),rl(e))}function Sd(e,t,l){if((be&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ya(e,t),n=a?vm(e,t):Js(e,t,!0),i=a;do{if(n===0){vn&&!a&&ca(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 f=e;n=pi;var m=f.current.memoizedState.isDehydrated;if(m&&(jn(f,u).flags|=256),u=Js(f,u,!1),u!==2){if(Ys&&!m){f.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){jn(e,0),ca(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:ca(a,t,Ot,!aa);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=Ou+300-lt(),10<n)){if(ca(a,t,Ot,!aa),Xa(a,0,!0)!==0)break e;Ml=t,a.timeoutHandle=Id(zd.bind(null,a,l,zt,Du,Ls,t,Ot,Ra,Sn,aa,i,"Throttled",-0,0),n);break e}zd(a,l,zt,Du,Ls,t,Ot,Ra,Sn,aa,i,null,-0,0)}}break}while(!0);rl(e)}function zd(e,t,l,a,n,i,u,f,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:$t},pd(t,i,D);var X=(i&62914560)===i?Ou-lt():(i&4194048)===i?xd-lt():0;if(X=l0(D,X),X!==null){Ml=i,e.cancelPendingCommit=X(wd.bind(null,e,t,i,l,a,n,u,f,m,O,D,null,N,E)),ca(e,i,u,!j);return}}wd(e,t,i,l,a,n,u,f,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(!Et(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 ca(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&&xa(e,l,t)}function Cu(){return(be&6)===0?(gi(0),!1):!0}function Vs(){if(ue!==null){if(ve===0)var e=ue.return;else e=ue,Sl=Ea=null,ss(e),hn=null,In=0,e=ue;for(;e!==null;)Pf(e.alternate,e),e=e.return;ue=null}}function jn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,qm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ml=0,Vs(),_e=e,ue=l=bl(e.current,null),re=t,ve=0,wt=null,aa=!1,vn=ya(e,t),Ys=!1,Sn=Ot=Gs=Ra=na=Ye=0,zt=pi=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 Ol=t,tu(),l}function jd(e,t){te=null,_.H=ui,t===dn||t===ru?(t=qo(),ve=3):t===Wc?(t=qo(),ve=4):ve=t===Ns?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,ue===null&&(Ye=1,ju(e,qt(t,e.current)))}function Nd(){var e=_t.current;return e===null?!0:(re&4194048)===re?Lt===null:(re&62914560)===re||(re&536870912)!==0?e===Lt:!1}function Td(){var e=_.H;return _.H=ui,e===null?ui:e}function Ed(){var e=_.A;return _.A=gm,e}function Ru(){Ye=4,aa||(re&4194048)!==re&&_t.current!==null||(vn=!0),(na&134217727)===0&&(Ra&134217727)===0||_e===null||ca(_e,re,Ot,!1)}function Js(e,t,l){var a=be;be|=2;var n=Td(),i=Ed();(_e!==e||re!==t)&&(Du=null,jn(e,t)),t=!1;var u=Ye;e:do try{if(ve!==0&&ue!==null){var f=ue,m=wt;switch(ve){case 8:Vs(),u=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var j=ve;if(ve=0,wt=null,Nn(e,f,m,j),l&&vn){u=0;break e}break;default:j=ve,ve=0,wt=null,Nn(e,f,m,j)}}bm(),u=Ye;break}catch(O){jd(e,O)}while(!0);return t&&e.shellSuspendCounter++,Sl=Ea=null,be=a,_.H=n,_.A=i,ue===null&&(_e=null,re=0,tu()),u}function bm(){for(;ue!==null;)Ad(ue)}function vm(e,t){var l=be;be|=2;var a=Td(),n=Ed();_e!==e||re!==t?(Du=null,Mu=lt()+500,jn(e,t)):vn=ya(e,t);e:do try{if(ve!==0&&ue!==null){t=ue;var i=wt;t:switch(ve){case 1:ve=0,wt=null,Nn(e,t,i,1);break;case 2:case 9:if(Uo(i)){ve=0,wt=null,_d(t);break}t=function(){ve!==2&&ve!==9||_e!==e||(ve=7),rl(e)},i.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Uo(i)?(ve=0,wt=null,_d(t)):(ve=0,wt=null,Nn(e,t,i,7));break;case 5:var u=null;switch(ue.tag){case 26:u=ue.memoizedState;case 5:case 27:var f=ue;if(u?hh(u):f.stateNode.complete){ve=0,wt=null;var m=f.sibling;if(m!==null)ue=m;else{var j=f.return;j!==null?(ue=j,Uu(j)):ue=null}break t}}ve=0,wt=null,Nn(e,t,i,5);break;case 6:ve=0,wt=null,Nn(e,t,i,6);break;case 8:Vs(),Ye=6;break e;default:throw Error(s(462))}}Sm();break}catch(O){jd(e,O)}while(!0);return Sl=Ea=null,_.H=a,_.A=n,be=l,ue!==null?0:(_e=null,re=0,tu(),Ye)}function Sm(){for(;ue!==null&&!Ci();)Ad(ue)}function Ad(e){var t=Ff(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,t===null?Uu(e):ue=t}function _d(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Xf(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=Xf(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:ss(t);default:Pf(l,t),t=ue=To(t,Ol),t=Ff(l,t,Ol)}e.memoizedProps=e.pendingProps,t===null?Uu(e):ue=t}function Nn(e,t,l,a){Sl=Ea=null,ss(t),hn=null,In=0;var n=t.return;try{if(rm(e,n,t,l,re)){Ye=1,ju(e,qt(l,e.current)),ue=null;return}}catch(i){if(n!==null)throw ue=n,i;Ye=1,ju(e,qt(l,e.current)),ue=null;return}t.flags&32768?(de||a===1?e=!0:vn||(re&536870912)!==0?e=!1:(aa=e=!0,(a===2||a===9||a===3||a===6)&&(a=_t.current,a!==null&&a.tag===13&&(a.flags|=16384))),kd(t,e)):Uu(t)}function Uu(e){var t=e;do{if((t.flags&32768)!==0){kd(t,aa);return}e=t.return;var l=dm(t.alternate,t,Ol);if(l!==null){ue=l;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Ye===0&&(Ye=5)}function kd(e,t){do{var l=hm(e.alternate,e);if(l!==null){l.flags&=32767,ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=l}while(e!==null);Ye=6,ue=null}function wd(e,t,l,a,n,i,u,f,m){e.cancelPendingCommit=null;do Hu();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,Yl(e,l,i,u,f,m),e===_e&&(ue=_e=null,re=0),zn=t,ua=e,Ml=l,Qs=i,Zs=n,bd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tm(Hl,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=ua,t=zn,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{fd(t,e);var i=ir,u=go(e.containerInfo),f=i.focusedElem,m=i.selectionRange;if(u!==f&&f&&f.ownerDocument&&mo(f.ownerDocument.documentElement,f)){if(m!==null&&wc(f)){var j=m.start,O=m.end;if(O===void 0&&(O=j),"selectionStart"in f)f.selectionStart=j,f.selectionEnd=Math.min(O,f.value.length);else{var D=f.ownerDocument||document,N=D&&D.defaultView||window;if(N.getSelection){var E=N.getSelection(),X=f.textContent.length,W=Math.min(m.start,X),Te=m.end===void 0?W:Math.min(m.end,X);!E.extend&&W>Te&&(u=Te,Te=W,W=u);var S=po(f,W),y=po(f,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(),W>Te?(E.addRange(z),E.extend(y.node,y.offset)):(z.setEnd(y.node,y.offset),E.addRange(z))}}}}for(D=[],E=f;E=E.parentNode;)E.nodeType===1&&D.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<D.length;f++){var M=D[f];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}$u=!!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=ua,t=zn,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,dl();var e=ua,t=zn,l=Ml,a=bd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,zn=ua=null,Cd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ia=null),pl(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(ql,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 f=a[u];i(f.value,{componentStack:f.stack})}}finally{_.T=t,L.p=n}}(Ml&3)!==0&&Hu(),rl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Xs?mi++:(mi=0,Xs=e):mi=0,gi(0)}}function Cd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wn(t)))}function Hu(){return Od(),Md(),Dd(),Rd()}function Rd(){if(Ie!==5)return!1;var e=ua,t=Qs;Qs=0;var l=pl(Ml),a=_.T,n=L.p;try{L.p=32>l?32:l,_.T=null,l=Zs,Zs=null;var i=ua,u=Ml;if(Ie=0,zn=ua=null,Ml=0,(be&6)!==0)throw Error(s(331));var f=be;if(be|=4,gd(i.current),hd(i,i.current,u,l),be=f,gi(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(ql,i)}catch{}return!0}finally{L.p=n,_.T=a,Cd(e,t)}}function Ud(e,t,l){t=qt(l,t),t=js(e.stateNode,t,2),e=Pl(e,t,2),e!==null&&(Bl(e,2),rl(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"&&(ia===null||!ia.has(a))){e=qt(l,e),l=Hf(2),a=Pl(t,l,2),a!==null&&(qf(l,a,t,e),Bl(a,2),rl(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&&(re&l)===l&&(Ye===4||Ye===3&&(re&62914560)===re&&300>lt()-Ou?(be&2)===0&&jn(e,0):Gs|=l,Sn===re&&(Sn=0)),rl(e)}function Hd(e,t){t===0&&(t=Jt()),e=ja(e,t),e!==null&&(Bl(e,t),rl(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 Cn(e,t)}var qu=null,Tn=null,$s=!1,Bu=!1,Ws=!1,sa=0;function rl(e){e!==Tn&&e.next===null&&(Tn===null?qu=Tn=e:Tn=Tn.next=e),Bu=!0,$s||($s=!0,Am())}function gi(e,t){if(!Ws&&Bu){Ws=!0;do for(var l=!1,a=qu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,f=a.pingedLanes;i=(1<<31-pt(42|e)+1)-1,i&=n&~(u&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Gd(a,i))}else i=re,i=Xa(a,a===_e?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||ya(a,i)||(l=!0,Gd(a,i));a=a.next}while(l);Ws=!1}}function Em(){qd()}function qd(){Bu=$s=!1;var e=0;sa!==0&&Hm()&&(e=sa);for(var t=lt(),l=null,a=qu;a!==null;){var n=a.next,i=Bd(a,t);i===0?(a.next=null,l===null?qu=n:l.next=n,n===null&&(Tn=l)):(l=a,(e!==0||(i&3)!==0)&&(Bu=!0)),a=n}Ie!==0&&Ie!==5||gi(e),sa!==0&&(sa=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),f=1<<u,m=n[u];m===-1?((f&l)===0||(f&a)!==0)&&(n[u]=pc(f,t)):m<=t&&(e.expiredLanes|=f),i&=~f}if(t=_e,l=re,l=Xa(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&&La(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ya(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&La(a),pl(l)){case 2:case 8:l=Ui;break;case 32:l=Hl;break;case 268435456:l=Qa;break;default:l=Hl}return a=Yd.bind(null,e),l=Cn(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&La(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(Hu()&&e.callbackNode!==l)return null;var a=re;return a=Xa(e,e===_e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Sd(e,a,t),Bd(e,lt()),e.callbackNode!=null&&e.callbackNode===l?Yd.bind(null,e):null)}function Gd(e,t){if(Hu())return null;Sd(e,t,!0)}function Am(){Bm(function(){(be&6)!==0?Cn(Ri,Em):qd()})}function Fs(){if(sa===0){var e=on;e===0&&(e=hl,hl<<=1,(hl&261888)===0&&(hl=256)),sa=e}return sa}function Ld(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xl(""+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[rt]||null).action),u=a.submitter;u&&(t=(t=u[rt]||null)?Ld(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var f=new Fi("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(sa!==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"&&(f.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);Wt(km,"on"+wm)}Wt(bo,"onAnimationEnd"),Wt(vo,"onAnimationIteration"),Wt(So,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(Vp,"onTransitionRun"),Wt(Jp,"onTransitionStart"),Wt(Kp,"onTransitionCancel"),Wt(zo,"onTransitionEnd"),Ql("onMouseEnter",["mouseout","mouseover"]),Ql("onMouseLeave",["mouseout","mouseover"]),Ql("onPointerEnter",["pointerout","pointerover"]),Ql("onPointerLeave",["pointerout","pointerover"]),gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gl("onBeforeInput",["compositionend","keypress","textInput","paste"]),gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yi="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(yi));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 f=a[u],m=f.instance,j=f.currentTarget;if(f=f.listener,m!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=j;try{i(n)}catch(O){eu(O)}n.currentTarget=null,i=m}else for(u=0;u<a.length;u++){if(f=a[u],m=f.instance,j=f.currentTarget,f=f.listener,m!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=j;try{i(n)}catch(O){eu(O)}n.currentTarget=null,i=m}}}}function ce(e,t){var l=t[ba];l===void 0&&(l=t[ba]=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 Yu="_reactListening"+Math.random().toString(36).slice(2);function tr(e){if(!e[Yu]){e[Yu]=!0,Yi.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[Yu]||(t[Yu]=!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 f=a.stateNode.containerInfo;if(f===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(;f!==null;){if(u=Dt(f),u===null)return;if(m=u.tag,m===5||m===6||m===26||m===27){a=i=u;continue e}f=f.parentNode}}a=a.return}Kr(function(){var j=i,O=bc(l),D=[];e:{var N=jo.get(e);if(N!==void 0){var E=Fi,X=e;switch(e){case"keypress":if($i(l)===0)break e;case"keydown":case"keyup":E=Np;break;case"focusin":X="focus",E=Tc;break;case"focusout":X="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 bo:case vo:case So:E=mp;break;case zo:E=kp;break;case"scroll":case"scrollend":E=op;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 W=(t&4)!==0,Te=!W&&(e==="scroll"||e==="scrollend"),S=W?N!==null?N+"Capture":null:N;W=[];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=Bn(y,S),M!=null&&W.push(xi(y,M,z))),Te)break;y=y.return}0<W.length&&(N=new E(N,X,null,l,O),D.push({event:N,listeners:W}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",N&&l!==qn&&(X=l.relatedTarget||l.fromElement)&&(Dt(X)||X[Gl]))break e;if((E||N)&&(N=O.window===O?O:(N=O.ownerDocument)?N.defaultView||N.parentWindow:window,E?(X=l.relatedTarget||l.toElement,E=j,X=X?Dt(X):null,X!==null&&(Te=b(X),W=X.tag,X!==Te||W!==5&&W!==27&&W!==6)&&(X=null)):(E=null,X=j),E!==X)){if(W=Fr,M="onMouseLeave",S="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(W=Pr,M="onPointerLeave",S="onPointerEnter",y="pointer"),Te=E==null?N:il(E),z=X==null?N:il(X),N=new W(M,y+"leave",E,l,O),N.target=Te,N.relatedTarget=z,M=null,Dt(O)===j&&(W=new W(S,y+"enter",X,l,O),W.target=z,W.relatedTarget=Te,M=W),Te=M,E&&X)t:{for(W=Mm,S=E,y=X,z=0,M=S;M;M=W(M))z++;M=0;for(var K=y;K;K=W(K))M++;for(;0<z-M;)S=W(S),z--;for(;0<M-z;)y=W(y),M--;for(;z--;){if(S===y||y!==null&&S===y.alternate){W=S;break t}S=W(S),y=W(y)}W=null}else W=null;E!==null&&Vd(D,N,E,W,!1),X!==null&&Te!==null&&Vd(D,Te,X,W,!0)}}e:{if(N=j?il(j):window,E=N.nodeName&&N.nodeName.toLowerCase(),E==="select"||E==="input"&&N.type==="file")var me=co;else if(io(N))if(so)me=Qp;else{me=Gp;var V=Yp}else E=N.nodeName,!E||E.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?j&&Fa(j.elementType)&&(me=co):me=Lp;if(me&&(me=me(e,j))){uo(D,me,l,O);break e}V&&V(e,N,j),e==="focusout"&&j&&N.type==="number"&&j.memoizedProps.value!=null&&U(N,"number",N.value)}switch(V=j?il(j):window,e){case"focusin":(io(V)||V.contentEditable==="true")&&(tn=V,Oc=j,Jn=null);break;case"focusout":Jn=Oc=tn=null;break;case"mousedown":Mc=!0;break;case"contextmenu":case"mouseup":case"dragend":Mc=!1,yo(D,l,O);break;case"selectionchange":if(Xp)break;case"keydown":case"keyup":yo(D,l,O)}var le;if(Ac)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else en?ao(e,l)&&(oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(oe="onCompositionStart");oe&&(eo&&l.locale!=="ko"&&(en||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&en&&(le=$r()):(Vl=O,zc="value"in Vl?Vl.value:Vl.textContent,en=!0)),V=Gu(j,oe),0<V.length&&(oe=new Ir(oe,e,null,l,O),D.push({event:oe,listeners:V}),le?oe.data=le:(le=no(l),le!==null&&(oe.data=le)))),(le=Rp?Up(e,l):Hp(e,l))&&(oe=Gu(j,"onBeforeInput"),0<oe.length&&(V=new Ir("onBeforeInput","beforeinput",null,l,O),D.push({event:V,listeners:oe}),V.data=le)),_m(D,e,j,l,O)}Zd(D,t)})}function xi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Gu(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=Bn(e,l),n!=null&&a.unshift(xi(e,n,i)),n=Bn(e,t),n!=null&&a.push(xi(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 f=l,m=f.alternate,j=f.stateNode;if(f=f.tag,m!==null&&m===a)break;f!==5&&f!==26&&f!==27||j===null||(m=j,n?(j=Bn(l,i),j!=null&&u.unshift(xi(l,j,m))):n||(j=Bn(l,i),j!=null&&u.push(xi(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===""||J(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&J(e,""+a);break;case"className":$a(e,"class",a);break;case"tabIndex":$a(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":$a(e,l,a);break;case"style":Ut(e,a,i);break;case"data":if(t!=="object"){$a(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=Xl(""+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=Xl(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$t);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("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=Xl(""+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":ce("beforetoggle",e),ce("toggle",e),yl(e,"popover",a);break;case"xlinkActuate":Rt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Rt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Rt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Rt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Rt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Rt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yl(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=Vi.get(l)||l,yl(e,l,a))}}function ar(e,t,l,a,n,i){switch(l){case"style":Ut(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"?J(e,a):(typeof a=="number"||typeof a=="bigint")&&J(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Un.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[rt]||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,""):yl(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":ce("error",e),ce("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":ce("invalid",e);var f=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":f=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,t));break;default:Ne(e,t,a,O,l,null)}}T(e,i,f,m,j,u,n,!1);return;case"select":ce("invalid",e),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":i=f;break;case"defaultValue":u=f;break;case"multiple":a=f;default:Ne(e,t,n,f,l,null)}t=i,l=u,e.multiple=!!a,t!=null?B(e,!!a,t,!1):l!=null&&B(e,!!a,l,!0);return;case"textarea":ce("invalid",e),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(f=l[u],f!=null))switch(u){case"value":a=f;break;case"defaultValue":n=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:Ne(e,t,u,f,l,null)}ee(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":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<yi.length;a++)ce(yi[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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(Fa(t)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&ar(e,t,O,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&Ne(e,t,f,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,f=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":f=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)}}p(e,u,f,m,j,O,i,n);return;case"select":E=u=f=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":f=i;break;case"multiple":u=i;default:i!==m&&Ne(e,t,n,i,a,m)}t=f,l=u,a=E,N!=null?B(e,!!l,N,!1):!!a!=!!l&&(t!=null?B(e,!!l,t,!0):B(e,!!l,l?[]:"",!1));return;case"textarea":E=N=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Ne(e,t,f,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)}q(e,N,E);return;case"option":for(var X in l)if(N=l[X],l.hasOwnProperty(X)&&N!=null&&!a.hasOwnProperty(X))switch(X){case"selected":e.selected=!1;break;default:Ne(e,t,X,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 W in l)N=l[W],l.hasOwnProperty(W)&&N!=null&&!a.hasOwnProperty(W)&&Ne(e,t,W,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(Fa(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,f=n.duration;if(i&&f&&$d(u)){for(u=0,f=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],j=m.startTime;if(j>f)break;var O=m.transferSize,D=m.initiatorType;O&&$d(D)&&(m=m.responseEnd,u+=O*(m<f?1:(f-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 Lu(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 ra(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),kn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")bi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,bi(l);for(var i=l.firstChild;i;){var u=i.nextSibling,f=i.nodeName;i[nl]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&bi(e.ownerDocument.body);l=n}while(l);kn(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),Kt(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[nl])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=Qt(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=Qt(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=Qt(e.nextSibling),e===null))return null;return e}function rr(e){return e.data==="$?"||e.data==="$~"}function or(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 Qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var fr=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 Qt(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=Lu(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 bi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Kt(e)}var Zt=new Map,uh=new Set;function Qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dl=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=Dl.f(),t=Cu();return e||t}function Xm(e){var t=Ct(e);t!==null&&t.tag===5&&t.type==="form"?jf(t):Dl.r(e)}var En=typeof document>"u"?null:document;function ch(e,t,l){var a=En;if(a&&typeof t=="string"&&t){var n=mt(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),Ve(t),a.head.appendChild(t)))}}function Vm(e){Dl.D(e),ch("dns-prefetch",e,null)}function Jm(e,t){Dl.C(e,t),ch("preconnect",e,t)}function Km(e,t,l){Dl.L(e,t,l);var a=En;if(a&&e&&t){var n='link[rel="preload"][as="'+mt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+mt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+mt(l.imageSizes)+'"]')):n+='[href="'+mt(e)+'"]';var i=n;switch(t){case"style":i=An(e);break;case"script":i=_n(e)}Zt.has(i)||(e=R({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(vi(i))||t==="script"&&a.querySelector(Si(i))||(t=a.createElement("link"),ut(t,"link",e),Ve(t),a.head.appendChild(t)))}}function $m(e,t){Dl.m(e,t);var l=En;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+mt(a)+'"][href="'+mt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=_n(e)}if(!Zt.has(i)&&(e=R({rel:"modulepreload",href:e},t),Zt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Si(i)))return}a=l.createElement("link"),ut(a,"link",e),Ve(a),l.head.appendChild(a)}}}function Wm(e,t,l){Dl.S(e,t,l);var a=En;if(a&&e){var n=Ll(a).hoistableStyles,i=An(e);t=t||"default";var u=n.get(i);if(!u){var f={loading:0,preload:null};if(u=a.querySelector(vi(i)))f.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(i))&&dr(e,l);var m=u=a.createElement("link");Ve(m),ut(m,"link",e),m._p=new Promise(function(j,O){m.onload=j,m.onerror=O}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Zu(u,t,a)}u={type:"stylesheet",instance:u,count:1,state:f},n.set(i,u)}}}function Fm(e,t){Dl.X(e,t);var l=En;if(l&&e){var a=Ll(l).hoistableScripts,n=_n(e),i=a.get(n);i||(i=l.querySelector(Si(n)),i||(e=R({src:e,async:!0},t),(t=Zt.get(n))&&hr(e,t),i=l.createElement("script"),Ve(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){Dl.M(e,t);var l=En;if(l&&e){var a=Ll(l).hoistableScripts,n=_n(e),i=a.get(n);i||(i=l.querySelector(Si(n)),i||(e=R({src:e,async:!0,type:"module"},t),(t=Zt.get(n))&&hr(e,t),i=l.createElement("script"),Ve(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)?Qu(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=An(l.href),l=Ll(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=An(l.href);var i=Ll(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(vi(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Zt.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},Zt.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=_n(l),l=Ll(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 An(e){return'href="'+mt(e)+'"'}function vi(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),Ve(t),e.head.appendChild(t))}function _n(e){return'[src="'+mt(e)+'"]'}function Si(e){return"script[async]"+e}function oh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+mt(l.href)+'"]');if(a)return t.instance=a,Ve(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"),Ve(a),ut(a,"style",n),Zu(a,l.precedence,e),t.instance=a;case"stylesheet":n=An(l.href);var i=e.querySelector(vi(n));if(i)return t.state.loading|=4,t.instance=i,Ve(i),i;a=rh(l),(n=Zt.get(n))&&dr(a,n),i=(e.ownerDocument||e).createElement("link"),Ve(i);var u=i;return u._p=new Promise(function(f,m){u.onload=f,u.onerror=m}),ut(i,"link",a),t.state.loading|=4,Zu(i,l.precedence,e),t.instance=i;case"script":return i=_n(l.src),(n=e.querySelector(Si(i)))?(t.instance=n,Ve(n),n):(a=l,(n=Zt.get(i))&&(a=R({},l),hr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ve(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,Zu(a,l.precedence,e));return t.instance}function Zu(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 f=a[u];if(f.dataset.precedence===t)i=f;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 Xu=null;function fh(e,t,l){if(Xu===null){var a=new Map,n=Xu=new Map;n.set(l,a)}else n=Xu,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[nl]||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 f=a.get(u);f?f.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=An(a.href),i=t.querySelector(vi(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ve(i);return}i=t.ownerDocument||t,a=rh(a),(n=Zt.get(n))&&dr(a,n),i=i.createElement("link"),Ve(i);var u=i;u._p=new Promise(function(f,m){u.onload=f,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=Vu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var pr=0;function l0(e,t){return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Ku(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&&Ku(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 Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ju=null;function Ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ju=new Map,t.forEach(a0,e),Ju=null,Vu.call(e))}function a0(e,t){if(!(t.state.loading&4)){var l=Ju.get(e);if(l)var a=l.get(null);else{l=new Map,Ju.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=Vu.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 zi={$$typeof:we,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function n0(e,t,l,a,n,i,u,f,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=Va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Va(0),this.hiddenUpdates=Va(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,f,m,j,O,D){return e=new n0(e,t,l,u,m,j,O,D,f),t=1,i===!0&&(t|=24),i=At(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=nn,e):nn}function gh(e,t,l,a,n,i){n=mh(n),a.context===null?a.context=n:a.pendingContext=n,a=Il(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Pl(e,a,t),l!==null&&(jt(l,e,t),ei(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=Mt();t=Nt(t);var l=ja(e,t);l!==null&&jt(l,e,t),mr(e,t)}}var $u=!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($u){var n=yr(a);if(n===null)lr(e,t,a,Wu,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=Ct(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=al(i.pendingLanes);if(u!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;u;){var m=1<<31-pt(u);f.entanglements[1]|=m,u&=~m}rl(i),(be&6)===0&&(Mu=lt()+500,gi(0))}}break;case 31:case 13:f=ja(i,2),f!==null&&jt(f,i,2),Cu(),mr(i,2)}if(i=yr(a),i===null&&lr(e,t,a,Wu,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 Wu=null;function xr(e){if(Wu=null,e=Dt(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 Wu=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(oc()){case Ri:return 2;case Ui:return 8;case Hl:case Vt:return 32;case Qa:return 268435456;default:return 32}default:return 32}}var br=!1,oa=null,fa=null,da=null,ji=new Map,Ni=new Map,ha=[],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":oa=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(t.pointerId)}}function Ti(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=Ct(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 oa=Ti(oa,e,t,l,a,n),!0;case"dragenter":return fa=Ti(fa,e,t,l,a,n),!0;case"mouseover":return da=Ti(da,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return ji.set(i,Ti(ji.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Ni.set(i,Ti(Ni.get(i)||null,e,t,l,a,n)),!0}return!1}function zh(e){var t=Dt(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,ml(e.priority,function(){bh(l)});return}}else if(t===31){if(t=w(l),t!==null){e.blockedOn=t,ml(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 Fu(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);qn=a,l.target.dispatchEvent(a),qn=null}else return t=Ct(l),t!==null&&xh(t),e.blockedOn=l,!1;t.shift()}return!0}function jh(e,t,l){Fu(e)&&l.delete(t)}function r0(){br=!1,oa!==null&&Fu(oa)&&(oa=null),fa!==null&&Fu(fa)&&(fa=null),da!==null&&Fu(da)&&(da=null),ji.forEach(jh),Ni.forEach(jh)}function Iu(e,t){e.blockedOn===t&&(e.blockedOn=null,br||(br=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,r0)))}var Pu=null;function Nh(e){Pu!==e&&(Pu=e,d.unstable_scheduleCallback(d.unstable_NormalPriority,function(){Pu===e&&(Pu=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=Ct(l);i!==null&&(e.splice(t,3),t-=3,ys(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function kn(e){function t(m){return Iu(m,e)}oa!==null&&Iu(oa,e),fa!==null&&Iu(fa,e),da!==null&&Iu(da,e),ji.forEach(t),Ni.forEach(t);for(var l=0;l<ha.length;l++){var a=ha[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ha.length&&(l=ha[0],l.blockedOn===null);)zh(l),l.blockedOn===null&&ha.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[rt]||null;if(typeof i=="function")u||Nh(l);else if(u){var f=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[rt]||null)f=u.formAction;else if(xr(n)!==null)continue}else f=u.action;typeof f=="function"?l[a+1]=f:(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}ec.prototype.render=vr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=Mt();gh(l,a,e,t,null,null)},ec.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),Cu(),t[Gl]=null}};function ec(e){this._internalRoot=e}ec.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ka();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ha.length&&t!==0&&t<ha[l].priority;l++);ha.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 o0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{ql=tc.inject(o0),ht=tc}catch{}}return Ai.createRoot=function(e,t){if(!h(e))throw Error(s(299));var l=!1,a="",n=Df,i=Cf,u=Rf;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[Gl]=t.current,tr(e),new vr(t)},Ai.hydrateRoot=function(e,t,l){if(!h(e))throw Error(s(299));var a=!1,n="",i=Df,u=Cf,f=Rf,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&&(f=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=ph(e,1,!0,t,l??null,a,n,m,i,u,f,Th),t.context=mh(null),l=t.current,a=Mt(),a=Nt(a),n=Il(a),n.callback=null,Pl(l,n,a),l=a,t.current.lanes=l,Bl(t,l),rl(t),e[Gl]=t.current,tr(e),new ec(t)},Ai.version="19.2.7",Ai}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 wn(d){let c=[];return o=>{let s=Math.max(0,Math.min(3,o-1)),h=c[s];return h||(h=d(s),c[s]=h),h}}function pe(d,c=""){let o=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"),o=o.replace(h,A),s},getRegex:()=>new RegExp(o,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:wn(d=>new RegExp(`^ {0,${d}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:wn(d=>new RegExp(`^ {0,${d}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:wn(d=>new RegExp(`^ {0,${d}}(?:\`\`\`|~~~)`)),headingBeginRegex:wn(d=>new RegExp(`^ {0,${d}}#`)),htmlBeginRegex:wn(d=>new RegExp(`^ {0,${d}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:wn(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|$)|$)/,Oi=/^ {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(),sc="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",sc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lp=pe(Yr).replace("hr",Oi).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",sc).getRegex(),C0=pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lp).getRegex(),Qr={blockquote:C0,code:E0,def:O0,fences:A0,heading:_0,hr:Oi,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",Oi).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",sc).getRegex(),R0={...Qr,lheading:k0,table:Hh,paragraph:pe(Yr).replace("hr",Oi).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",sc).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",Oi).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)))/,Mn=/[\p{P}\p{S}]/u,rc=/[\s\p{P}\p{S}]/u,Zr=/[^\s\p{P}\p{S}]/u,Y0=pe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,rc).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,Mn).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,rc).replace(/punct/g,Mn).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,rc).replace(/punct/g,Mn).getRegex(),$0=pe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Mn).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,rc).replace(/punct/g,Mn).getRegex(),I0=pe(/\\(punct)/,"gu").replace(/punct/g,Mn).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(),ic=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,l1=pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ic).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cp=pe(/^!?\[(label)\]\[(ref)\]/).replace("label",ic).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",ic).getRegex(),reflink:pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ic).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()},lc={normal:Qr,gfm:R0,pedantic:U0},_i={normal:Xr,gfm:Cr,breaks:i1,pedantic:n1},u1={"&":"&","<":"<",">":">",'"':""","'":"'"},Bh=d=>u1[d];function ol(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 o=d.replace(ft.findPipe,(A,w,g)=>{let v=!1,k=w;for(;--k>=0&&g[k]==="\\";)v=!v;return v?"|":" |"}),s=o.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 ma(d,c,o){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
|
-
`),o=c.length-1;for(;o>=0&&ft.blankLine.test(c[o]);)o--;return c.length-o<=2?d:c.slice(0,o+1).join(`
|
|
52
|
-
`)}function c1(d,c){if(d.indexOf(c[1])===-1)return-1;let o=0;for(let s=0;s<d.length;s++)if(d[s]==="\\")s++;else if(d[s]===c[0])o++;else if(d[s]===c[1]&&(o--,o<0))return s;return o>0?-2:-1}function s1(d,c=0){let o=c,s="";for(let h of d)if(h===" "){let b=4-o%4;s+=" ".repeat(b),o+=b}else s+=h,o++;return s}function Qh(d,c,o,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:o,href:b,title:A,text:w,tokens:s.inlineTokens(w)};return s.state.inLink=!1,g}function r1(d,c,o){let s=d.match(o.other.indentCodeCompensation);if(s===null)return c;let h=s[1];return c.split(`
|
|
53
|
-
`).map(b=>{let A=b.match(o.other.beginningSpace);if(A===null)return b;let[w]=A;return w.length>=h.length?b.slice(h.length):b}).join(`
|
|
54
|
-
`)}var uc=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 o=this.options.pedantic?c[0]:Lh(c[0]),s=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:s}}}fences(d){let c=this.rules.block.fences.exec(d);if(c){let o=c[0],s=r1(o,c[3]||"",this.rules);return{type:"code",raw:o,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 o=c[2].trim();if(this.rules.other.endingHash.test(o)){let s=ma(o,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(o=s.trim())}return{type:"heading",raw:ma(c[0],`
|
|
55
|
-
`),depth:c[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(d){let c=this.rules.block.hr.exec(d);if(c)return{type:"hr",raw:ma(c[0],`
|
|
56
|
-
`)}}blockquote(d){let c=this.rules.block.blockquote.exec(d);if(c){let o=ma(c[0],`
|
|
57
|
-
`).split(`
|
|
58
|
-
`),s="",h="",b=[];for(;o.length>0;){let A=!1,w=[],g;for(g=0;g<o.length;g++)if(this.rules.other.blockquoteStart.test(o[g]))w.push(o[g]),A=!0;else if(!A)w.push(o[g]);else break;o=o.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,o.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 ne=H,Y=ne.raw+`
|
|
63
|
-
`+o.join(`
|
|
64
|
-
`),he=this.blockquote(Y);b[b.length-1]=he,s=s.substring(0,s.length-ne.raw.length)+he.raw,h=h.substring(0,h.length-ne.text.length)+he.text;break}else if((H==null?void 0:H.type)==="list"){let ne=H,Y=ne.raw+`
|
|
65
|
-
`+o.join(`
|
|
66
|
-
`),he=this.list(Y);b[b.length-1]=he,s=s.substring(0,s.length-H.raw.length)+he.raw,h=h.substring(0,h.length-ne.raw.length)+he.raw,o=Y.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 o=c[1].trim(),s=o.length>1,h={type:"list",raw:"",ordered:s,start:s?+o.slice(0,-1):"",loose:!1,items:[]};o=s?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=s?o:"[*+-]");let b=this.rules.other.listItemRegex(o),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],ne=!R.trim(),Y=0;if(this.options.pedantic?(Y=2,k=R.trimStart()):ne?Y=c[1].length+1:(Y=R.search(this.rules.other.nonSpaceChar),Y=Y>4?1:Y,k=R.slice(Y),Y+=c[1].length),ne&&this.rules.other.blankLine.test(H)&&(v+=H+`
|
|
70
|
-
`,d=d.substring(H.length+1),g=!0),!g){let he=this.rules.other.nextBulletRegex(Y),se=this.rules.other.hrRegex(Y),Qe=this.rules.other.fencesBeginRegex(Y),Pe=this.rules.other.headingBeginRegex(Y),we=this.rules.other.htmlBeginRegex(Y),I=this.rules.other.blockquoteBeginRegex(Y);for(;d;){let Ue=d.split(`
|
|
71
|
-
`,1)[0],qe;if(H=Ue,this.options.pedantic?(H=H.replace(this.rules.other.listReplaceNesting," "),qe=H):qe=H.replace(this.rules.other.tabCharGlobal," "),Qe.test(H)||Pe.test(H)||we.test(H)||I.test(H)||he.test(H)||se.test(H))break;if(qe.search(this.rules.other.nonSpaceChar)>=Y||!H.trim())k+=`
|
|
72
|
-
`+qe.slice(Y);else{if(ne||R.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Qe.test(R)||Pe.test(R)||se.test(R))break;k+=`
|
|
73
|
-
`+H}ne=!H.trim(),v+=Ue+`
|
|
74
|
-
`,d=d.substring(Ue.length+1),R=qe.slice(Y)}}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 o=Lh(c[0]);return{type:"html",block:!0,raw:o,pre:c[1]==="pre"||c[1]==="script"||c[1]==="style",text:o}}}def(d){let c=this.rules.block.def.exec(d);if(c){let o=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:o,raw:ma(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 o=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:ma(c[0],`
|
|
77
|
-
`),header:[],align:[],rows:[]};if(o.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<o.length;w++)b.header.push({text:o[w],tokens:this.lexer.inline(o[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 o=c[1].trim();return{type:"heading",raw:ma(c[0],`
|
|
78
|
-
`),depth:c[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(d){let c=this.rules.block.paragraph.exec(d);if(c){let o=c[1].charAt(c[1].length-1)===`
|
|
79
|
-
`?c[1].slice(0,-1):c[1];return{type:"paragraph",raw:c[0],text:o,tokens:this.lexer.inline(o)}}}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 o=c[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let b=ma(o.slice(0,-1),"\\");if((o.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(o)?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 o;if((o=this.rules.inline.reflink.exec(d))||(o=this.rules.inline.nolink.exec(d))){let s=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),h=c[s.toLowerCase()];if(!h){let b=o[0].charAt(0);return{type:"text",raw:b,text:b}}return Qh(o,h,o[0],this.lexer,this.rules)}}emStrong(d,c,o=""){let s=this.rules.inline.emStrongLDelim.exec(d);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!o||this.rules.inline.punctuation.exec(o))){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 ne=R.slice(1,-1);return{type:"em",raw:R,text:ne,tokens:this.lexer.inlineTokens(ne)}}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 o=c[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(o),h=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return s&&h&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:c[0],text:o}}}br(d){let c=this.rules.inline.br.exec(d);if(c)return{type:"br",raw:c[0]}}del(d,c,o=""){let s=this.rules.inline.delLDelim.exec(d);if(s&&(!s[1]||!o||this.rules.inline.punctuation.exec(o))){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 o,s;return c[2]==="@"?(o=c[1],s="mailto:"+o):(o=c[1],s=o),{type:"link",raw:c[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}url(d){var o;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]=((o=this.rules.inline._backpedal.exec(c[0]))==null?void 0:o[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 o=this.lexer.state.inRawBlock;return{type:"text",raw:c[0],text:c[0],escaped:o}}}},Pt=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 uc,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 o={other:ft,block:lc.normal,inline:_i.normal};this.options.pedantic?(o.block=lc.pedantic,o.inline=_i.pedantic):this.options.gfm&&(o.block=lc.gfm,this.options.breaks?o.inline=_i.breaks:o.inline=_i.gfm),this.tokenizer.rules=o}static get rules(){return{block:lc,inline:_i}}static lex(c,o){return new Rr(o).lex(c)}static lexInline(c,o){return new Rr(o).inlineTokens(c)}lex(c){c=c.replace(ft.carriageReturn,`
|
|
80
|
-
`),this.blockTokens(c,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let s=this.inlineQueue[o];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(c,o=[],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,o))?(c=c.substring(g.raw.length),o.push(g),!0):!1))continue;if(g=this.tokenizer.space(c)){c=c.substring(g.raw.length);let k=o.at(-1);g.raw.length===1&&k!==void 0?k.raw+=`
|
|
81
|
-
`:o.push(g);continue}if(g=this.tokenizer.code(c)){c=c.substring(g.raw.length);let k=o.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):o.push(g);continue}if(g=this.tokenizer.fences(c)){c=c.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.heading(c)){c=c.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.hr(c)){c=c.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.blockquote(c)){c=c.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.list(c)){c=c.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.html(c)){c=c.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.def(c)){c=c.substring(g.raw.length);let k=o.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},o.push(g));continue}if(g=this.tokenizer.table(c)){c=c.substring(g.raw.length),o.push(g);continue}if(g=this.tokenizer.lheading(c)){c=c.substring(g.raw.length),o.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(ne=>{H=ne.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=o.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):o.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=o.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):o.push(g);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return this.state.top=!0,o}inline(c,o=[]){return this.inlineQueue.push({src:c,tokens:o}),o}inlineTokens(c,o=[]){var v,k,R,H,ne;this.tokenizer.lexer=this;let s=c,h=null;if(this.tokens.links){let Y=Object.keys(this.tokens.links);if(Y.length>0)for(;(h=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)Y.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 Y;if((H=(R=this.options.extensions)==null?void 0:R.inline)!=null&&H.some(se=>(Y=se.call({lexer:this},c,o))?(c=c.substring(Y.raw.length),o.push(Y),!0):!1))continue;if(Y=this.tokenizer.escape(c)){c=c.substring(Y.raw.length),o.push(Y);continue}if(Y=this.tokenizer.tag(c)){c=c.substring(Y.raw.length),o.push(Y);continue}if(Y=this.tokenizer.link(c)){c=c.substring(Y.raw.length),o.push(Y);continue}if(Y=this.tokenizer.reflink(c,this.tokens.links)){c=c.substring(Y.raw.length);let se=o.at(-1);Y.type==="text"&&(se==null?void 0:se.type)==="text"?(se.raw+=Y.raw,se.text+=Y.text):o.push(Y);continue}if(Y=this.tokenizer.emStrong(c,s,w)){c=c.substring(Y.raw.length),o.push(Y);continue}if(Y=this.tokenizer.codespan(c)){c=c.substring(Y.raw.length),o.push(Y);continue}if(Y=this.tokenizer.br(c)){c=c.substring(Y.raw.length),o.push(Y);continue}if(Y=this.tokenizer.del(c,s,w)){c=c.substring(Y.raw.length),o.push(Y);continue}if(Y=this.tokenizer.autolink(c)){c=c.substring(Y.raw.length),o.push(Y);continue}if(!this.state.inLink&&(Y=this.tokenizer.url(c))){c=c.substring(Y.raw.length),o.push(Y);continue}let he=c;if((ne=this.options.extensions)!=null&&ne.startInline){let se=1/0,Qe=c.slice(1),Pe;this.options.extensions.startInline.forEach(we=>{Pe=we.call({lexer:this},Qe),typeof Pe=="number"&&Pe>=0&&(se=Math.min(se,Pe))}),se<1/0&&se>=0&&(he=c.substring(0,se+1))}if(Y=this.tokenizer.inlineText(he)){c=c.substring(Y.raw.length),Y.raw.slice(-1)!=="_"&&(w=Y.raw.slice(-1)),A=!0;let se=o.at(-1);(se==null?void 0:se.type)==="text"?(se.raw+=Y.raw,se.text+=Y.text):o.push(Y);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return o}infiniteLoopError(c){let o="Infinite loop on byte: "+c;if(this.options.silent)console.error(o);else throw new Error(o)}},cc=class{constructor(d){Ee(this,"options");Ee(this,"parser");this.options=d||qa}space(d){return""}code({text:d,lang:c,escaped:o}){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-'+ol(s)+'">'+(o?h:ol(h,!0))+`</code></pre>
|
|
95
|
-
`:"<pre><code>"+(o?h:ol(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,o=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&&o!==1?' start="'+o+'"':"";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="",o="";for(let h=0;h<d.header.length;h++)o+=this.tablecell(d.header[h]);c+=this.tablerow({text:o});let s="";for(let h=0;h<d.rows.length;h++){let b=d.rows[h];o="";for(let A=0;A<b.length;A++)o+=this.tablecell(b[A]);s+=this.tablerow({text:o})}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),o=d.header?"th":"td";return(d.align?`<${o} align="${d.align}">`:`<${o}>`)+c+`</${o}>
|
|
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>${ol(d,!0)}</code>`}br(d){return"<br>"}del({tokens:d}){return`<del>${this.parser.parseInline(d)}</del>`}link({href:d,title:c,tokens:o}){let s=this.parser.parseInline(o),h=Yh(d);if(h===null)return s;d=h;let b='<a href="'+d+'"';return c&&(b+=' title="'+ol(c)+'"'),b+=">"+s+"</a>",b}image({href:d,title:c,text:o,tokens:s}){s&&(o=this.parser.parseInline(s,this.parser.textRenderer));let h=Yh(d);if(h===null)return ol(o);d=h;let b=`<img src="${d}" alt="${ol(o)}"`;return c&&(b+=` title="${ol(c)}"`),b+=">",b}text(d){return"tokens"in d&&d.tokens?this.parser.parseInline(d.tokens):"escaped"in d&&d.escaped?d.text:ol(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}},el=class Ur{constructor(c){Ee(this,"options");Ee(this,"renderer");Ee(this,"textRenderer");this.options=c||qa,this.options.renderer=this.options.renderer||new cc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Vr}static parse(c,o){return new Ur(o).parse(c)}static parseInline(c,o){return new Ur(o).parseInline(c)}parse(c){var s,h;this.renderer.parser=this;let o="";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)){o+=v||"";continue}}let w=A;switch(w.type){case"space":{o+=this.renderer.space(w);break}case"hr":{o+=this.renderer.hr(w);break}case"heading":{o+=this.renderer.heading(w);break}case"code":{o+=this.renderer.code(w);break}case"table":{o+=this.renderer.table(w);break}case"blockquote":{o+=this.renderer.blockquote(w);break}case"list":{o+=this.renderer.list(w);break}case"checkbox":{o+=this.renderer.checkbox(w);break}case"html":{o+=this.renderer.html(w);break}case"def":{o+=this.renderer.def(w);break}case"paragraph":{o+=this.renderer.paragraph(w);break}case"text":{o+=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 o}parseInline(c,o=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+=o.text(g);break}case"html":{s+=o.html(g);break}case"link":{s+=o.link(g);break}case"image":{s+=o.image(g);break}case"checkbox":{s+=o.checkbox(g);break}case"strong":{s+=o.strong(g);break}case"em":{s+=o.em(g);break}case"codespan":{s+=o.codespan(g);break}case"br":{s+=o.br(g);break}case"del":{s+=o.del(g);break}case"text":{s+=o.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}},nc,wi=(nc=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?Pt.lex:Pt.lexInline}provideParser(d=this.block){return d?el.parse:el.parseInline}},Ee(nc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ee(nc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),nc),o1=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",el);Ee(this,"Renderer",cc);Ee(this,"TextRenderer",Vr);Ee(this,"Lexer",Pt);Ee(this,"Tokenizer",uc);Ee(this,"Hooks",wi);this.use(...d)}walkTokens(d,c){var s,h;let o=[];for(let b of d)switch(o=o.concat(c.call(this,b)),b.type){case"table":{let A=b;for(let w of A.header)o=o.concat(this.walkTokens(w.tokens,c));for(let w of A.rows)for(let g of w)o=o.concat(this.walkTokens(g.tokens,c));break}case"list":{let A=b;o=o.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);o=o.concat(this.walkTokens(g,c))}):A.tokens&&(o=o.concat(this.walkTokens(A.tokens,c)))}}return o}use(...d){let c=this.defaults.extensions||{renderers:{},childTokens:{}};return d.forEach(o=>{let s={...o};if(s.async=this.defaults.async||s.async||!1,o.extensions&&(o.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),o.renderer){let h=this.defaults.renderer||new cc(this.defaults);for(let b in o.renderer){if(!(b in h))throw new Error(`renderer '${b}' does not exist`);if(["options","parser"].includes(b))continue;let A=b,w=o.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(o.tokenizer){let h=this.defaults.tokenizer||new uc(this.defaults);for(let b in o.tokenizer){if(!(b in h))throw new Error(`tokenizer '${b}' does not exist`);if(["options","rules","lexer"].includes(b))continue;let A=b,w=o.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(o.hooks){let h=this.defaults.hooks||new wi;for(let b in o.hooks){if(!(b in h))throw new Error(`hook '${b}' does not exist`);if(["options","block"].includes(b))continue;let A=b,w=o.hooks[A],g=h[A];wi.passThroughHooks.has(b)?h[A]=v=>{if(this.defaults.async&&wi.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(o.walkTokens){let h=this.defaults.walkTokens,b=o.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 Pt.lex(d,c??this.defaults)}parser(d,c){return el.parse(d,c??this.defaults)}parseMarkdown(d){return(c,o)=>{let s={...o},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?Pt.lex:Pt.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?el.parse:el.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?Pt.lex:Pt.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?el.parse:el.parseInline)(A,h);return h.hooks&&(w=h.hooks.postprocess(w)),w}catch(A){return b(A)}}}onError(d,c){return o=>{if(o.message+=`
|
|
112
|
-
Please report this to https://github.com/markedjs/marked.`,d){let s="<p>An error occurred:</p><pre>"+ol(o.message+"",!0)+"</pre>";return c?Promise.resolve(s):s}if(c)return Promise.reject(o);throw o}}},Ha=new o1;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=el;ze.parser=el.parse;ze.Renderer=cc;ze.TextRenderer=Vr;ze.Lexer=Pt;ze.lexer=Pt.lex;ze.Tokenizer=uc;ze.Hooks=wi;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;el.parse;Pt.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,o,s)=>!!c&&c.trim()!==""&&s.indexOf(c)===o).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 f1=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,o,s)=>s?s.toUpperCase():o.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=Q.createContext({}),m1=()=>Q.useContext(p1),g1=Q.forwardRef(({color:d,size:c,strokeWidth:o,absoluteStrokeWidth:s,className:h="",children:b,iconNode:A,...w},g)=>{const{size:v=24,strokeWidth:k=2,absoluteStrokeWidth:R=!1,color:H="currentColor",className:ne=""}=m1()??{},Y=s??R?Number(o??k)*24/Number(c??v):o??k;return Q.createElement("svg",{ref:g,...Ar,width:c??v??Ar.width,height:c??v??Ar.height,stroke:d??H,strokeWidth:Y,className:rp("lucide",ne,h),...!b&&!h1(w)&&{"aria-hidden":"true"},...w},[...A.map(([he,se])=>Q.createElement(he,se)),...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 o=Q.forwardRef(({className:s,...h},b)=>Q.createElement(g1,{ref:b,iconNode:c,className:rp(`lucide-${f1(Zh(d))}`,`lucide-${d}`,s),...h}));return o.displayName=Zh(d),o};/**
|
|
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"}]],On=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"}]],ac=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"}]],ki=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 mt;const[d,c]=Q.useState([]),[o,s]=Q.useState(""),h=Q.useRef("");Q.useEffect(()=>{h.current=o},[o]);const[b,A]=Q.useState(null),[w,g]=Q.useState([]),[v,k]=Q.useState(""),[R,H]=Q.useState(!1),[ne,Y]=Q.useState(()=>typeof Notification<"u"&&Notification.permission==="granted"),[he,se]=Q.useState(""),[Qe,Pe]=Q.useState({}),[we,I]=Q.useState(""),[Ue,qe]=Q.useState(""),[ie,ct]=Q.useState([]),[dt,Cl]=Q.useState(4096),[Ze,Xe]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_projects");if(p)try{return JSON.parse(p)}catch{}return[]}),[Xt,st]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_session_mappings");if(p)try{return JSON.parse(p)}catch{}return{}}),[Ce,_]=Q.useState(()=>localStorage.getItem("zugzweb_active_project_id")||"workspace_raiz"),[L,$]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_expanded_projects");if(p)try{return JSON.parse(p)}catch{}return{workspace_raiz:!0}}),[ye,xe]=Q.useState(!1),[x,C]=Q.useState(""),[G,Z]=Q.useState("");Q.useEffect(()=>{localStorage.setItem("zugzweb_projects",JSON.stringify(Ze))},[Ze]),Q.useEffect(()=>{localStorage.setItem("zugzweb_session_mappings",JSON.stringify(Xt))},[Xt]);const[F,ae]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_custom_session_titles");if(p)try{return JSON.parse(p)}catch{}return{}});Q.useEffect(()=>{localStorage.setItem("zugzweb_custom_session_titles",JSON.stringify(F))},[F]),Q.useEffect(()=>{localStorage.setItem("zugzweb_active_project_id",Ce)},[Ce]),Q.useEffect(()=>{localStorage.setItem("zugzweb_expanded_projects",JSON.stringify(L))},[L]);const[fe,tt]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_sidebar_width");return p?parseInt(p,10):320});Q.useEffect(()=>{localStorage.setItem("zugzweb_sidebar_width",String(fe))},[fe]);const[ke,Rl]=Q.useState("default"),[Ba,Ya]=Q.useState(""),[Mi,tl]=Q.useState(()=>window.location.pathname==="/new"),[Ul,Ga]=Q.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"})}`:""),[Dn,Di]=Q.useState("sdd-orchestrator"),[fl,Cn]=Q.useState("default"),[La,Ci]=Q.useState(""),[dl,lt]=Q.useState("sdd-orchestrator"),[oc,Ri]=Q.useState(()=>localStorage.getItem("zugzweb_setup_completed")==="true"),[Ui,Hl]=Q.useState(!1),[Vt,Qa]=Q.useState(""),[Rn,fc]=Q.useState(null),[ql,ht]=Q.useState([]),[ll,pt]=Q.useState(""),[dc,hc]=Q.useState(""),[Hi,hl]=Q.useState(""),[Za,ga]=Q.useState(!1),[al,Xa]=Q.useState(null),[ya,pc]=Q.useState("Seleccionar Carpeta"),Jt=async p=>{ga(!0),hl("");try{const T=p?`?path=${encodeURIComponent(p)}`:"",U=await fetch(`/api-custom/list-dir${T}`);if(U.ok){const B=await U.json();Qa(B.currentPath),fc(B.parentPath),ht(B.directories||[]),pt(B.home||""),hc(B.cwd||""),hl("")}else{const B=await U.json();hl(B.error||"No se pudo leer el directorio")}}catch(T){hl("Error de red al conectar con el servidor: "+T.message)}finally{ga(!1)}},Va=(p,T,U)=>{pc(p),Xa(()=>U),Hl(!0),Jt(T||Ue)};Q.useEffect(()=>{Ue&&!Vt&&(Qa(Ue),Jt(Ue))},[Ue]);const Bl=p=>r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{type:"text",value:Vt,onChange:T=>Qa(T.target.value),onKeyDown:T=>{T.key==="Enter"&&Jt(Vt)},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..."}),r.jsx("button",{type:"button",onClick:()=>Jt(Vt),className:"px-3 py-2 bg-white text-[#09090b] text-xs font-bold rounded-xl hover:bg-[#e4e4e7] transition cursor-pointer",children:"Ir"})]}),r.jsxs("div",{className:"flex gap-2 items-center flex-wrap",children:[r.jsxs("button",{type:"button",disabled:!Rn,onClick:()=>Rn&&Jt(Rn),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:[r.jsx(x1,{size:12}),r.jsx("span",{children:"Subir Nivel"})]}),r.jsxs("button",{type:"button",onClick:()=>Jt(ll),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:[r.jsx(Z1,{size:12}),r.jsx("span",{children:"Home"})]}),r.jsxs("button",{type:"button",onClick:()=>Jt(dc),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:[r.jsx(M1,{size:12}),r.jsx("span",{children:"CWD Servidor"})]})]})]}),Hi&&r.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:[r.jsx(wr,{size:14,className:"shrink-0"}),r.jsx("span",{children:Hi})]}),r.jsxs("div",{className:"border border-[#1f1f23] rounded-xl bg-[#070709] overflow-hidden",children:[r.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:"}),r.jsx("div",{className:"max-h-64 overflow-y-auto p-2 space-y-1 scrollbar-thin",children:Za?r.jsxs("div",{className:"py-8 flex flex-col items-center justify-center text-[#71717a] space-y-2",children:[r.jsx(ki,{size:18,className:"animate-spin text-white/60"}),r.jsx("span",{className:"text-xs",children:"Cargando carpetas..."})]}):ql.length===0?r.jsx("div",{className:"py-8 text-center text-xs text-[#52525b] italic",children:"No se encontraron subcarpetas visibles en este directorio."}):r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-1.5",children:ql.map((T,U)=>r.jsxs("button",{type:"button",onClick:()=>{const B=Vt.includes("\\")?"\\":"/",q=Vt.endsWith(B)?Vt+T:Vt+B+T;Jt(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:[r.jsx(Y1,{size:14,className:"text-amber-500 shrink-0"}),r.jsx("span",{className:"truncate font-medium",children:T})]},U))})})]}),r.jsx("div",{className:"flex justify-end pt-2",children:r.jsxs("button",{type:"button",onClick:()=>p(Vt),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:[r.jsx(_r,{size:14,strokeWidth:2.5}),r.jsx("span",{children:"Confirmar Selección"})]})})]}),Yl=Q.useRef(null),xa=Q.useRef(!1),[qi,Ja]=Q.useState(!1),Nt=p=>{if(window.history.pushState(null,"",p),tl(p==="/new"),p==="/new"){const T=new Date().toLocaleString([],{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"});Ga(`Sesión Web ${T}`)}};Q.useEffect(()=>{gc(),Bi(),nl(),Kt();const p=()=>{tl(window.location.pathname==="/new")};window.addEventListener("popstate",p);const T=setInterval(()=>{nl(),Kt()},5e3);return()=>{window.removeEventListener("popstate",p),clearInterval(T)}},[]);const pl=()=>{o&&(Ct(o),il(),Dt(o,!0))};Q.useEffect(()=>{o&&pl()},[o,dt]);const Ka=Q.useRef(0),ml=Q.useRef(null),Tt=p=>{if(!p)return;const T=Date.now(),U=200;if(ml.current)return;const B=U-(T-Ka.current);B<=0?(Ct(p),Ka.current=T):ml.current=setTimeout(()=>{Ct(p),Ka.current=Date.now(),ml.current=null},B)};Q.useEffect(()=>{if(!o)return;const p=new EventSource("/api/event"),T=q=>{var ee,J;try{const He=JSON.parse(q.data),Oe=He.type||q.type,Ut=((ee=He.properties)==null?void 0:ee.sessionID)||((J=He.properties)==null?void 0:J.sessionId)||He.sessionId||He.session_id;Oe.startsWith("message.")&&(!Ut||Ut===o)?Tt(o):Oe.startsWith("session.")&&(!Ut||Ut===o)&&(il(),Dt(o),Tt(o))}catch{Tt(o)}};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 B=setInterval(()=>{il(),Tt(o),Dt(o)},6e3);return()=>{p.close(),ml.current&&(clearTimeout(ml.current),ml.current=null),clearInterval(B)}},[o,dt]),Q.useEffect(()=>{!qi&&Yl.current&&(Yl.current.scrollTop=Yl.current.scrollHeight)},[w]);const Fe=()=>{if(Yl.current){const{scrollTop:p,scrollHeight:T,clientHeight:U}=Yl.current,B=T-p-U<120;Ja(!B)}},rt=p=>{try{return{__html:ze.parse(p,{gfm:!0,breaks:!0})}}catch{return{__html:p}}},Gl=async()=>{if(ne){Y(!1);return}await Notification.requestPermission()==="granted"?(Y(!0),ba("¡Notificaciones activadas!","Te avisaremos cuando tus flujos en Opencode terminen.")):alert("Permiso de notificación denegado por el navegador.")},ba=(p,T)=>{Notification.permission==="granted"&&new Notification(p,{body:T,icon:"/favicon.ico"})},mc=(p,T)=>{navigator.clipboard.writeText(p).then(()=>{Ya(T),setTimeout(()=>Ya(""),2e3)})};async function gc(){try{const p=await fetch("/api-custom/tunnel-status");if(p.ok){const T=await p.json();se(T.url||"")}}catch(p){console.error("Error obteniendo estado del túnel:",p)}}async function Bi(){try{const p=await fetch("/api-custom/cwd");if(p.ok){const T=await p.json();T.cwd&&(qe(T.cwd),Xe(U=>!localStorage.getItem("zugzweb_projects")||U.length===0?[{id:"workspace_raiz",name:"Carpeta Base Zugz",path:T.cwd}]:U.some(ee=>ee.id==="workspace_raiz")?U.map(ee=>ee.id==="workspace_raiz"?{...ee,name:"Carpeta Base Zugz",path:T.cwd}:ee):[{id:"workspace_raiz",name:"Carpeta Base Zugz",path:T.cwd},...U]))}}catch(p){console.error("Error al obtener cwd:",p)}}async function nl(){try{const p=await fetch("/api-custom/instances");if(p.ok){const T=await p.json();ct(T.instances||[]),Cl(T.currentPort||4096)}}catch(p){console.error("Error obteniendo instancias de Opencode:",p)}}async function Kt(){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(B=>{let q=!1;const ee={...B};for(const J of U)ee[J.id]||(ee[J.id]=Ce,q=!0);return q?ee:B}),I(""),U.length>0){const B=U.some(q=>q.id===h.current);(!h.current||!B)&&s(U[0].id)}else Nt("/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 Dt(p,T=!1){try{const U=await fetch(`/api/session/${p}`);if(U.ok){const B=await U.json();A(B),B.agent&&T&<(B.agent),I("")}else s(""),A(null)}catch(U){console.error(U)}}async function Ct(p){try{const T=await fetch(`/api/session/${p}/message`);if(T.ok){const U=await T.json(),B=Array.isArray(U)?U:U.messages||[];g(B),I("")}else{const U=await T.json().catch(()=>({}));I(U.message||"No se pudieron recuperar los mensajes")}}catch(T){console.error(T)}}async function il(){try{const p=await fetch("/api/session/status");if(p.ok){const T=await p.json();if(o&&T[o]){const U=T[o],B=U==="thinking"||U==="running_tools"||U==="busy"||U==="running"||U==="executing"||U==="processing";let q=!1;if(w.length>0){const J=w[w.length-1];if(J.info.role==="assistant"&&J.parts){const He=[...J.parts].reverse().find(Oe=>Oe.type==="tool");if(He&&He.state){const Oe=He.state.status;(Oe==="running"||Oe==="thinking"||Oe==="processing"||Oe==="active")&&(q=!0)}}}B||q?H(J=>xa.current?!1:J||!0):(xa.current=!1,H(J=>J&&(ba("Opencode: ¡Ejecución Completada! 🎉","El agente ha finalizado el procesamiento de tu solicitud con éxito."),Ct(o),Dt(o),!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 Ll=async p=>{if(p.preventDefault(),!x.trim()||!G.trim())return;let T=G.trim();if(!T.startsWith("/")){const q=Ze.find(J=>J.id==="workspace_raiz");T=`${q?q.path:Ue}/${T}`}const U=`project_${Date.now()}`,B={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,B]),$(q=>({...q,[U]:!0})),_(U),C(""),Z(""),xe(!1)},Ve=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 B in U)U[B]===p&&delete U[B];return U}),Ce===p&&_("workspace_raiz"))},Yi=p=>{$(T=>({...T,[p]:!T[p]}))},Un=async(p,T)=>{const U=Ze.find(B=>B.id===T);if(U)if(Ce!==T){H(!0),I(`Activando entorno de "${U.name}"...`);try{const B=await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:U.path})});if(B.ok)_(T),c([]),s(""),A(null),g([]),await Kt(),s(p),I(""),Nt("/");else{const q=await B.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(""),Nt("/")},gl=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 Kt(),I("");else{const B=await U.json().catch(()=>({}));I(B.error||"Error al activar el proyecto")}}catch{I("No se pudo conectar con el Daemon para activar el proyecto")}finally{H(!1)}}},Ql=async p=>{const T=Ze.find(B=>B.id===p);if(!T)return;if(Ce!==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 B=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:U.trim()})});if(B.ok){const q=await B.json();c(J=>[q,...J]),s(q.id),A(q),g([]),ae(J=>({...J,[q.id]:U.trim()})),st(J=>({...J,[q.id]:p}));let ee="";if(T&&T.id!=="workspace_raiz"&&(ee=`[SISTEMA: Directorio de trabajo del proyecto: ${T.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. Comienza saludando al usuario y confirmando que estás listo para trabajar en este subproyecto.]`),ee){const J={parts:[{type:"text",text:ee}],agent:dl||"sdd-orchestrator"};await fetch(`/api/session/${q.id}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(J)})}Nt("/")}else alert("Error al crear la sesión en Opencode")}catch{alert("Error de conexión al crear sesión")}finally{H(!1),I("")}}},yc=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(B=>B.filter(q=>q.id!==p)),st(B=>{const q={...B};return delete q[p],q}),o===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")}},Gi=p=>{p.preventDefault();const T=p.clientX,U=fe,B=ee=>{const J=ee.clientX-T,He=Math.max(220,Math.min(500,U+J));tt(He)},q=()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",q)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",q)},Li=async p=>{if(p&&p.preventDefault(),!Ul.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:Ul.trim()})});if(!T.ok)throw new Error("Error al crear sesión");const U=await T.json();c(J=>[U,...J]),s(U.id),A(U),g([]),ae(J=>({...J,[U.id]:Ul.trim()})),st(J=>({...J,[U.id]:Ce})),lt(Dn),Rl(fl);const B=Ze.find(J=>J.id===Ce);let q="";B&&B.id!=="workspace_raiz"&&(q=`[SISTEMA: Directorio de trabajo del proyecto: ${B.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 ee=(q+La.trim()).trim();if(ee){const J={parts:[{type:"text",text:ee}],agent:Dn};if(fl&&fl!=="default"){const[He,Oe]=fl.split("/");J.model={providerID:He,modelID:Oe}}await fetch(`/api/session/${U.id}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(J)}),Ci("")}Nt("/"),pl()}catch{alert("Error al iniciar la nueva sesión")}finally{H(!1)}},Qi=async p=>{if(p.preventDefault(),!v.trim()||!o)return;const T=v.trim();k(""),H(!0),Ja(!1);const U={info:{id:`temp-${Date.now()}`,session_id:o,role:"user",time:{created:Date.now()}},parts:[{type:"text",text:T}]};g(B=>[...B,U]);try{if(T.startsWith("/")){const B=T.split(" "),q=B[0].substring(1),ee=B.slice(1).join(" ");if(!(await fetch(`/api/session/${o}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:q,arguments:ee,agent:dl})})).ok)throw new Error("Error al ejecutar comando")}else{const B={parts:[{type:"text",text:T}],agent:dl};if(ke&&ke!=="default"){const[ee,J]=ke.split("/");B.model={providerID:ee,modelID:J}}if(!(await fetch(`/api/session/${o}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})).ok)throw new Error("Error al enviar prompt")}pl()}catch{I("Error al conectar. Comprueba el estado de Opencode."),H(!1)}},yl=async(p,T="")=>{if(!o)return;H(!0),Ja(!1);const U=`/${p} ${T}`.trim(),B={info:{id:`temp-${Date.now()}`,session_id:o,role:"user",time:{created:Date.now()}},parts:[{type:"text",text:U}]};g(q=>[...q,B]);try{if(!(await fetch(`/api/session/${o}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:p,arguments:T,agent:dl})})).ok)throw new Error("Error al ejecutar comando rápido");pl()}catch{I("No se pudo ejecutar el comando rápido."),H(!1)}},$a=async()=>{if(o){xa.current=!0,H(!1);try{(await fetch(`/api/session/${o}/abort`,{method:"POST"})).ok&&(ba("Opencode: Abortado","La sesión en ejecución ha sido cancelada forzadamente."),pl())}catch(p){console.error(p)}finally{setTimeout(()=>{xa.current=!1},2500)}}},Rt=p=>{Pe(T=>({...T,[p]:!T[p]}))},yt=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"},Zi=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 B=new Date(T);return isNaN(B.getTime())?"En curso...":B.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch{return"En curso..."}},xc=d.filter(p=>!p.parent_id&&!p.parentID),Wa=p=>d.filter(T=>T.parent_id===p||T.parentID===p),Xi=p=>xc.filter(T=>{const U=Xt[T.id];return U&&Ze.some(B=>B.id===U)?U===p:Ce===p}),Zl=[],Hn=ie.find(p=>p.port===dt);return oc?r.jsxs("div",{className:"flex h-screen bg-[#09090b] text-[#f4f4f5] overflow-hidden antialiased font-sans select-none",children:[r.jsxs("div",{style:{width:`${fe}px`},className:"bg-[#0c0c0e] border-r border-[#1f1f23] flex flex-col justify-between shrink-0 relative",children:[r.jsxs("div",{className:"p-4 border-b border-[#1f1f23] flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"p-1.5 bg-[#ffffff] rounded-md text-[#09090b]",children:r.jsx(Fh,{size:18,className:"font-bold animate-pulse"})}),r.jsx("span",{className:"font-bold tracking-tight text-lg",children:"ZugzWeb"})]}),r.jsx("button",{onClick:()=>Nt("/new"),className:"p-1.5 bg-[#27272a] hover:bg-[#3f3f46] text-[#fafafa] rounded-md transition duration-200 cursor-pointer",title:"Nueva Sesión",children:r.jsx(ac,{size:16})})]}),r.jsxs("div",{className:"p-3 border-b border-[#1f1f23] flex items-center justify-between bg-[#09090b]/40",children:[r.jsxs("span",{className:"text-[10px] text-[#fafafa] uppercase font-extrabold tracking-wider flex items-center gap-1.5 select-none",children:[r.jsx(F1,{size:11,className:"text-emerald-400"}),r.jsx("span",{children:"📁 GESTOR DE PROYECTOS"})]}),r.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:[r.jsx(ac,{size:10,strokeWidth:2.5}),r.jsx("span",{children:"Proyecto"})]})]}),ye&&r.jsxs("form",{onSubmit:Ll,className:"p-3 bg-[#121215] border-b border-[#1f1f23] space-y-2.5",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("label",{className:"text-[9px] font-bold text-[#71717a] uppercase",children:"Nombre del Proyecto"}),r.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]"})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("label",{className:"text-[9px] font-bold text-[#71717a] uppercase",children:"Subcarpeta o Ruta Absoluta"}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{type:"text",required:!0,value:G,onChange:p=>Z(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"}),r.jsx("button",{type:"button",onClick:()=>Va("Buscar Carpeta del Proyecto",G||Ue,p=>Z(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..."})]}),r.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:[r.jsx("span",{className:"text-[#a1a1aa] font-semibold",children:"📁 Ruta Destino: "}),r.jsx("span",{className:"text-emerald-400",children:G.trim().startsWith("/")?G.trim():`${Ue}/${G.trim()||"mi-proyecto"}`})]})]}),r.jsxs("div",{className:"flex gap-2 justify-end pt-1",children:[r.jsx("button",{type:"button",onClick:()=>xe(!1),className:"px-2 py-1 text-[10px] text-[#71717a] hover:text-white transition cursor-pointer",children:"Cancelar"}),r.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"})]})]}),r.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-3",children:[Ze.map(p=>{const T=p.id===Ce,U=Xi(p.id),B=!!L[p.id];return r.jsxs("div",{className:"space-y-1 border border-transparent rounded-lg p-1 bg-[#09090b]/20",children:[r.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:[r.jsxs("button",{onClick:()=>Yi(p.id),className:"flex-1 flex items-center gap-2 text-left cursor-pointer outline-none min-w-0",children:[r.jsx("span",{className:"text-[#a1a1aa] shrink-0",children:B?r.jsx(On,{size:12}):r.jsx(kr,{size:12})}),r.jsxs("div",{className:"truncate",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsxs("span",{className:"text-white text-xs font-extrabold truncate",children:["📁 ",p.name]}),T&&r.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"})]}),r.jsx("span",{className:"text-[9px] text-[#52525b] block truncate font-mono mt-0.5",children:p.path})]})]}),r.jsxs("div",{className:"flex items-center gap-1 shrink-0 ml-1",children:[p.id!=="workspace_raiz"&&r.jsx("button",{onClick:()=>Ql(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:r.jsx(ac,{size:10,strokeWidth:3})}),r.jsx("button",{onClick:()=>{Va(`Carpeta para: ${p.name}`,p.path,async q=>{if(Xe(ee=>ee.map(J=>J.id===p.id?{...J,path:q}:J)),p.id===Ce){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})}),Kt()}catch(ee){console.error(ee)}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:r.jsx(Kh,{size:10})}),!T&&p.id!=="workspace_raiz"&&r.jsx("button",{onClick:()=>gl(p.id),className:"p-1 hover:bg-[#27272a] text-[#71717a] hover:text-white rounded transition cursor-pointer",title:"Activar Proyecto",children:r.jsx($h,{size:10,className:"fill-current"})}),p.id!=="workspace_raiz"&&r.jsx("button",{onClick:()=>Ve(p.id),className:"p-1 hover:bg-red-950/40 text-[#71717a] hover:text-red-400 rounded transition cursor-pointer",title:"Eliminar Proyecto",children:r.jsx(Mr,{size:10})})]})]}),B&&r.jsx("div",{className:"ml-3 pl-2.5 border-l border-[#1f1f23] space-y-1 pt-1.5 pb-0.5",children:p.id==="workspace_raiz"?r.jsxs("div",{className:"text-[10px] text-[#71717a] py-1 pl-1 space-y-1 pr-2 leading-relaxed",children:[r.jsx("span",{className:"block font-bold text-amber-500/90",children:"📁 Carpeta Base Central"}),r.jsxs("p",{className:"text-[#8e8e93]",children:["Para iniciar chats de desarrollo, crea primero un subproyecto con el botón ",r.jsx("strong",{className:"text-white",children:'"+ Proyecto"'})," de arriba."]})]}):U.length===0?r.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 ee=q.id===o,J=Wa(q.id),He=J.length>0;return r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:`w-full group/sess flex items-center justify-between rounded-lg p-1.5 transition duration-200 ${ee?"bg-[#1c1c1f] border border-[#2e2e33] text-white shadow-sm":"hover:bg-[#121215] text-[#a1a1aa] hover:text-white"}`,children:[r.jsxs("button",{onClick:()=>{Un(q.id,p.id)},className:"flex-1 text-left cursor-pointer outline-none min-w-0",children:[r.jsxs("span",{className:"font-semibold truncate text-[11px] block",children:["💬 ",F[q.id]||q.title||`Sesión: ${q.id.substring(0,8)}`]}),r.jsxs("div",{className:"flex items-center justify-between text-[9px] text-[#52525b] mt-0.5",children:[r.jsx("span",{children:q.agent||"sdd-orchestrator"}),r.jsx("span",{children:yt(q.model)})]})]}),r.jsx("button",{onClick:Oe=>yc(q.id,Oe),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:r.jsx(Mr,{size:10})})]}),He&&r.jsx("div",{className:"ml-3 pl-2 border-l border-[#1f1f23]/60 space-y-1 py-0.5",children:J.map(Oe=>{const Ut=Oe.id===o;return r.jsx("button",{onClick:()=>{Un(Oe.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] ${Ut?"bg-[#18181c] border border-[#2e2e33]/40 text-white":"hover:bg-[#0f0f12] text-[#71717a] hover:text-[#a1a1aa]"}`,children:r.jsxs("div",{className:"flex items-center gap-1 font-medium truncate",children:[r.jsx(R1,{size:10,className:"text-[#71717a] shrink-0"}),r.jsxs("span",{className:"truncate",children:["🤖 ",Oe.title||`Sub: ${Oe.id.substring(0,5)}`]})]})},Oe.id)})})]},q.id)})})]},p.id)}),Zl.length>0&&r.jsxs("div",{className:"space-y-1 border border-dashed border-[#1f1f23] rounded-lg p-1 bg-[#09090b]/10 mt-2",children:[r.jsxs("div",{className:"p-2 flex items-center justify-between",children:[r.jsx("span",{className:"text-xs font-bold text-amber-500/80 flex items-center gap-1.5",children:"📥 Inbox / Sin Clasificar"}),r.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:Zl.length})]}),r.jsx("div",{className:"ml-1 pl-1 space-y-1 pt-1",children:Zl.map(p=>{const T=p.id===o,U=Wa(p.id),B=U.length>0;return r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsxs("button",{onClick:()=>{s(p.id),I(""),Nt("/")},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:[r.jsxs("span",{className:"font-semibold truncate text-[11px]",children:["💬 ",F[p.id]||p.title||`Sesión: ${p.id.substring(0,8)}`]}),r.jsx("div",{className:"flex items-center justify-between text-[9px] text-[#52525b]",children:r.jsx("span",{children:p.agent||"sdd-orchestrator"})})]}),r.jsx("button",{onClick:()=>{st(q=>({...q,[p.id]:Ce}))},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"})]}),B&&r.jsx("div",{className:"ml-3 pl-2 border-l border-[#1f1f23]/60 space-y-1 py-0.5",children:U.map(q=>{const ee=q.id===o;return r.jsx("button",{onClick:()=>{s(q.id),I(""),Nt("/")},className:`w-full text-left p-1 rounded-md flex flex-col gap-0.5 transition duration-150 cursor-pointer text-[10px] ${ee?"bg-[#18181c] border border-[#2e2e33]/40 text-white":"hover:bg-[#0f0f12] text-[#71717a] hover:text-[#a1a1aa]"}`,children:r.jsxs("span",{className:"truncate",children:["🤖 ",q.title||`Sub: ${q.id.substring(0,5)}`]})},q.id)})})]},p.id)})})]})]}),r.jsxs("div",{className:"p-4 bg-[#09090b] border-t border-[#1f1f23] space-y-3",children:[r.jsx("button",{onClick:Gl,className:`w-full flex items-center justify-center gap-2 py-2 px-3 rounded-md text-xs font-medium border transition cursor-pointer ${ne?"bg-transparent border-[#22c55e]/30 hover:border-[#22c55e]/50 text-[#22c55e]":"bg-transparent border-[#27272a] hover:border-[#3f3f46] text-[#a1a1aa]"}`,children:ne?r.jsxs(r.Fragment,{children:[r.jsx(z1,{size:14}),r.jsx("span",{children:"Notificaciones Activas"})]}):r.jsxs(r.Fragment,{children:[r.jsx(v1,{size:14}),r.jsx("span",{children:"Activar Alertas Navegador"})]})}),he&&r.jsxs("div",{className:"p-2 bg-[#1c1c1f]/50 border border-[#2e2e33] rounded-lg space-y-1",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-[#a1a1aa] font-medium",children:[r.jsx(L1,{size:11,className:"text-[#3b82f6] animate-pulse"}),r.jsx("span",{children:"Túnel Remoto Activo"})]}),r.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,r.jsx(H1,{size:8})]})]})]})]}),r.jsx("div",{onMouseDown:Gi,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:r.jsx("div",{className:"w-[1px] h-8 bg-transparent group-hover:bg-white/40 group-active:bg-white/60 transition"})}),r.jsx("div",{className:"flex-1 flex flex-col bg-[#09090b] relative overflow-hidden",children:Mi?r.jsxs(r.Fragment,{children:[r.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:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Or,{size:16,className:"text-emerald-400 animate-pulse"}),r.jsx("h1",{className:"text-sm font-bold text-[#fafafa]",children:"Crear Nueva Sesión de Desarrollo"})]}),d.length>0&&r.jsx("button",{onClick:()=>Nt("/"),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"})]}),r.jsxs("div",{className:"flex-1 overflow-y-auto p-8 max-w-2xl mx-auto w-full space-y-6",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("h2",{className:"text-xl font-bold tracking-tight text-white flex items-center gap-2",children:r.jsx("span",{children:"🚀 Comenzar un nuevo flujo"})}),r.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."})]}),r.jsxs("form",{onSubmit:Li,className:"space-y-5",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Título de la Sesión"}),r.jsx("input",{type:"text",value:Ul,onChange:p=>Ga(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})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Agente Primario Inicial"}),r.jsx("div",{className:"grid grid-cols-1 gap-2.5",children:Dr.map(p=>{const T=Dn===p.id;return r.jsxs("button",{type:"button",onClick:()=>Di(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:[r.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"?r.jsx(Wh,{size:16}):p.id==="plan"?r.jsx(Vh,{size:16}):r.jsx(Or,{size:16})}),r.jsxs("div",{className:"space-y-0.5",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-xs font-bold text-white",children:p.name}),p.id==="sdd-orchestrator"&&r.jsx("span",{className:"text-[9px] bg-white/10 text-white/80 font-mono px-1 rounded uppercase tracking-wider",children:"Por defecto"})]}),r.jsx("p",{className:"text-[11px] text-[#71717a] leading-relaxed",children:p.description})]}),T&&r.jsx("div",{className:"absolute right-4 top-4 h-4 w-4 bg-white rounded-full flex items-center justify-center text-[#09090b]",children:r.jsx(_r,{size:10,strokeWidth:3})})]},p.id)})})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Modelo Objetivo"}),r.jsxs("div",{className:"relative",children:[r.jsx("select",{value:fl,onChange:p=>Cn(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=>r.jsx("option",{value:p.id,children:p.name},p.id))}),r.jsx("div",{className:"absolute inset-y-0 right-4 flex items-center pointer-events-none text-[#71717a]",children:r.jsx(On,{size:16})})]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Primera Instrucción (Opcional)"}),r.jsx("span",{className:"text-[10px] text-[#52525b]",children:"Arranca de inmediato"})]}),r.jsx("textarea",{value:La,onChange:p=>Ci(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"})]}),r.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?r.jsx(ki,{size:14,className:"animate-spin"}):r.jsx(ac,{size:14,strokeWidth:2.5}),r.jsx("span",{children:R?"Iniciando sesión...":"Crear e Iniciar Sesión"})]})]})]})]}):r.jsxs(r.Fragment,{children:[r.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:[r.jsxs("div",{className:"flex flex-col",children:[r.jsxs("h1",{className:"text-sm font-bold m-0 p-0 text-[#fafafa] flex items-center gap-2",children:[b&&F[b.id]||(b==null?void 0:b.title)||"Cargando sesión...",R&&r.jsxs("span",{className:"flex h-2 w-2 relative",children:[r.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#22c55e] opacity-75"}),r.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#22c55e]"})]})]}),b&&r.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-[#71717a] mt-0.5",children:[r.jsxs("span",{children:["ID: ",r.jsx("code",{className:"text-[10px] font-mono bg-transparent p-0",children:b.id})]}),r.jsx("span",{children:"•"}),r.jsxs("span",{children:["Costo: ",r.jsxs("span",{className:"text-[#22c55e] font-mono",children:["$",(b.cost||0).toFixed(6)]})]}),r.jsx("span",{children:"•"}),r.jsxs("span",{children:["Tokens: In: ",b.tokens_input||0," | Out: ",b.tokens_output||0]})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[we&&r.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:[r.jsx(wr,{size:12}),we]}),r.jsx("button",{onClick:()=>{o&&(Ct(o),Dt(o),il())},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:r.jsx(ki,{size:14,className:R?"animate-spin":""})})]})]}),o&&r.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:[r.jsxs("span",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider shrink-0 mr-1 flex items-center gap-1 select-none",children:[r.jsx(Vh,{size:11}),r.jsx("span",{children:"Comandos Rápidos:"})]}),r.jsx("button",{onClick:()=>yl("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"}),r.jsx("button",{onClick:()=>yl("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"}),r.jsx("button",{onClick:()=>yl("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"}),r.jsxs("button",{onClick:()=>yl("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:[r.jsx(Or,{size:10}),r.jsx("span",{children:"Iniciar Autopiloto (/loop)"})]})]}),r.jsxs("div",{ref:Yl,onScroll:Fe,className:"flex-1 overflow-y-auto p-6 space-y-6",children:[b?w.length===0?r.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-[#71717a] space-y-3",children:[r.jsx(V1,{size:36,className:"text-[#27272a]"}),r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"text-sm font-medium",children:"No hay mensajes en esta sesión"}),r.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",B=p.parts.filter(q=>q.type==="text").map(q=>q.text).join(`
|
|
290
|
-
|
|
291
|
-
`);return r.jsxs("div",{className:`flex gap-4 max-w-4xl mx-auto ${U?"justify-end":"justify-start"}`,children:[!U&&r.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#18181b] flex items-center justify-center text-[#fafafa] shrink-0",children:r.jsx(Xh,{size:16})}),r.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:[r.jsxs("div",{className:"flex justify-between items-start border-b border-[#1f1f23]/40 pb-1 text-[11px] text-[#71717a] font-medium gap-2",children:[r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{children:U?"TÚ":"AGENTE"}),r.jsx("span",{children:"•"}),r.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[r.jsx(k1,{size:10}),Zi(p.info)]})]}),B&&r.jsx("button",{onClick:()=>mc(B,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:Ba===(p.info.id||String(T))?r.jsx(_r,{size:12,className:"text-green-500"}):r.jsx(Jh,{size:12})})]}),r.jsx("div",{className:"space-y-3",children:p.parts.map((q,ee)=>{var Oe,Ut,Fa,Vi,Ji;const J=`${p.info.id||T}-${ee}`,He=Qe[J];if(q.type==="text")return r.jsx("div",{className:"text-sm leading-relaxed prose prose-invert max-w-none text-[#e4e4e7] markdown-content",dangerouslySetInnerHTML:rt(q.text||"")},ee);if(q.type==="reasoning")return r.jsxs("div",{className:"border border-[#2e2e33]/50 rounded-lg overflow-hidden bg-[#121215]/30",children:[r.jsxs("button",{onClick:()=>Rt(J),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:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#a855f7] animate-pulse"}),r.jsx("span",{children:"Pensamiento del modelo"})]}),He?r.jsx(kr,{size:14}):r.jsx(On,{size:14})]}),He&&r.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})]},ee);if(q.type==="tool"){const Xl=((Oe=q.state)==null?void 0:Oe.status)||"unknown",$t=q.tool||"Desconocido",qn=!!((Ut=q.state)!=null&&Ut.output);return r.jsxs("div",{className:"border border-[#1f1f23] rounded-lg overflow-hidden bg-[#0a0a0c]",children:[r.jsxs("button",{onClick:()=>Rt(J),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:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Wh,{size:13,className:"text-amber-500 animate-spin",style:{animationDuration:"3s"}}),r.jsxs("span",{className:"font-semibold text-amber-400",children:["Herramienta: ",$t]}),r.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded border ${Xl==="success"||Xl==="completed"?"bg-green-950/20 text-green-400 border-green-900/50":"bg-yellow-950/20 text-yellow-500 border-yellow-900/50"}`,children:Xl})]}),He?r.jsx(kr,{size:14}):r.jsx(On,{size:14})]}),He&&r.jsxs("div",{className:"p-3 border-t border-[#1f1f23] bg-[#09090b] text-xs font-mono space-y-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider mb-1",children:"Entrada / Parámetros:"}),r.jsx("pre",{className:"p-2 bg-[#0c0c0e] rounded border border-[#1f1f23] text-[#fafafa] overflow-x-auto max-h-40",children:JSON.stringify(((Fa=q.state)==null?void 0:Fa.input)||{},null,2)})]}),qn&&r.jsxs("div",{children:[r.jsx("div",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider mb-1",children:"Salida / Resultado:"}),r.jsx("pre",{className:"p-2 bg-[#0c0c0e] rounded border border-[#1f1f23] text-[#fafafa] overflow-x-auto max-h-60 overflow-y-auto",children:typeof((Vi=q.state)==null?void 0:Vi.output)=="string"?q.state.output:JSON.stringify((Ji=q.state)==null?void 0:Ji.output,null,2)})]})]})]},ee)}return null})})]}),U&&r.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#ffffff] flex items-center justify-center text-[#09090b] shrink-0",children:r.jsx(ag,{size:16})})]},p.info.id||T)}):r.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:we?r.jsxs(r.Fragment,{children:[r.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:r.jsx(wr,{size:28})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("h2",{className:"text-lg font-bold text-white",children:"Conexión con Opencode Pendiente"}),r.jsx("p",{className:"text-xs text-[#a1a1aa] leading-relaxed",children:we})]}),r.jsxs("div",{className:"w-full bg-[#0c0c0e] border border-[#1f1f23] rounded-xl p-4 text-left space-y-3",children:[r.jsx("p",{className:"text-[11px] font-bold text-[#fafafa] uppercase tracking-wider",children:"💡 ¿Cómo solucionarlo?"}),r.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:"}),r.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:[r.jsx("span",{children:"opencode serve"}),r.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText("opencode serve")},className:"text-[#a1a1aa] hover:text-white transition cursor-pointer",title:"Copiar comando",children:r.jsx(Jh,{size:12})})]}),r.jsx("p",{className:"text-[11px] text-[#71717a]",children:"Una vez levantado, ZugzWeb se conectará automáticamente y podrás controlar tu sesión."})]}),r.jsxs("button",{type:"button",onClick:()=>{Kt(),nl()},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:[r.jsx(ki,{size:12}),r.jsx("span",{children:"Volver a intentar conexión"})]})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"h-12 w-12 rounded-full border border-white/10 flex items-center justify-center text-[#71717a] animate-spin",children:r.jsx(ki,{size:20})}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("h2",{className:"text-sm font-semibold text-white",children:"Cargando sesión activa..."}),r.jsx("p",{className:"text-xs text-[#71717a]",children:"Estableciendo canal seguro con tu arnés Opencode local"})]})]})}),R&&r.jsxs("div",{className:"flex gap-4 max-w-4xl mx-auto justify-start",children:[r.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#18181b] flex items-center justify-center text-[#fafafa] shrink-0",children:r.jsx(Xh,{size:16,className:"animate-spin text-emerald-400",style:{animationDuration:"4s"}})}),r.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:[r.jsx("div",{className:"flex justify-between items-start border-b border-[#1f1f23]/40 pb-1 text-[11px] text-[#71717a] font-medium gap-2",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{children:"AGENTE"}),r.jsx("span",{children:"•"}),r.jsx("span",{className:"text-[10px] text-emerald-500 font-bold animate-pulse",children:"PENSANDO..."})]})}),r.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-[#a1a1aa] py-1.5",children:[r.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"0ms"}}),r.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"150ms"}}),r.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"300ms"}}),r.jsx("span",{className:"ml-1 text-xs text-[#a1a1aa] font-medium",children:"Conectando con el modelo de IA..."})]})]})]})]}),r.jsx("div",{className:"p-4 border-t border-[#1f1f23] bg-[#09090b] shrink-0",children:r.jsxs("form",{onSubmit:Qi,className:"max-w-4xl mx-auto space-y-3",children:[r.jsxs("div",{className:"flex items-center gap-4 px-1 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-[10px] text-[#71717a] uppercase font-bold tracking-wider select-none",children:"Agente Activo:"}),r.jsxs("div",{className:"relative",children:[r.jsx("select",{value:dl,onChange:p=>lt(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=>r.jsx("option",{value:p.id,children:p.name},p.id))}),r.jsx("div",{className:"absolute inset-y-0 right-1.5 flex items-center pointer-events-none text-[#71717a]",children:r.jsx(On,{size:11})})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-[10px] text-[#71717a] uppercase font-bold tracking-wider select-none",children:"Modelo Objetivo:"}),r.jsxs("div",{className:"relative",children:[r.jsx("select",{value:ke,onChange:p=>Rl(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=>r.jsx("option",{value:p.id,children:p.name},p.id))}),r.jsx("div",{className:"absolute inset-y-0 right-1.5 flex items-center pointer-events-none text-[#71717a]",children:r.jsx(On,{size:11})})]})]})]}),r.jsxs("div",{className:"relative border border-[#27272a] focus-within:border-[#3f3f46] rounded-xl bg-[#0c0c0e] overflow-hidden shadow-lg transition duration-200",children:[r.jsx("textarea",{value:v,onChange:p=>k(p.target.value),disabled:!o||R,onKeyDown:p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),Qi(p))},placeholder:o?R?"El agente está procesando tu solicitud... Por favor, espera a que termine o haz clic en 'Abortar' para cancelar.":v.startsWith("/")?"Escribe los argumentos para el comando... (ej. /loop Crear login)":`Instrucción para ${(Hn==null?void 0:Hn.name)||"Opencode"} usando ${((mt=Dr.find(p=>p.id===dl))==null?void 0:mt.name)||dl}... (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"}),r.jsx("div",{className:"absolute right-3 bottom-3 flex items-center gap-2",children:R?r.jsxs("button",{type:"button",onClick:$a,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:[r.jsx(Mr,{size:12,className:"fill-current"}),r.jsx("span",{children:"Abortar"})]}):r.jsxs("button",{type:"submit",disabled:!v.trim()||!o,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:[r.jsx($h,{size:10,className:"fill-current"}),r.jsx("span",{children:"Enviar"})]})})]}),r.jsxs("div",{className:"flex justify-between items-center text-[11px] text-[#71717a] px-1",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${R?"bg-amber-500 animate-pulse":"bg-green-500"}`}),r.jsx("span",{children:R?"Procesando comando/loop":"Listo"})]}),r.jsx("span",{children:"•"}),r.jsxs("span",{children:["Enlazado al puerto :",dt," de Opencode"]})]}),r.jsx("span",{className:"font-mono",children:"v1.2.0-web"})]})]})})]})}),Ui&&r.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4 z-[9999] animate-fadeIn",children:r.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:[r.jsxs("div",{className:"flex items-center justify-between shrink-0 border-b border-[#1f1f23] pb-3",children:[r.jsxs("h3",{className:"text-sm font-bold text-white flex items-center gap-2",children:[r.jsx(Kh,{size:16,className:"text-[#3b82f6]"}),r.jsx("span",{children:ya})]}),r.jsx("button",{type:"button",onClick:()=>Hl(!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"})]}),r.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-none py-1",children:Bl(p=>{al&&al(p),Hl(!1)})})]})})]}):r.jsx("div",{className:"flex h-screen bg-[#09090b] text-[#f4f4f5] items-center justify-center p-4 overflow-hidden select-none",children:r.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:[r.jsxs("div",{className:"text-center space-y-2 shrink-0",children:[r.jsx("div",{className:"inline-flex p-3 bg-white text-[#09090b] rounded-2xl shadow-md mb-2",children:r.jsx(Fh,{size:28,className:"font-bold animate-pulse"})}),r.jsxs("h1",{className:"text-2xl font-black tracking-tight text-white flex items-center justify-center gap-2",children:[r.jsx("span",{children:"Bienvenido a ZugzWeb"}),r.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"})]}),r.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."})]}),r.jsx("div",{className:"flex-1 overflow-y-auto py-1 scrollbar-none",children:Bl(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"),Ri(!0),setTimeout(()=>{Kt(),nl()},1e3)}catch(U){console.error(U)}finally{H(!1),I("")}})}),r.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(r.jsx(Q.StrictMode,{children:r.jsx(ng,{})}));
|