zugzbot 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.utils/zugzweb/client/dist/assets/index-CcbbJtSz.css +1 -0
- package/.utils/zugzweb/client/dist/assets/index-DXxAlmSX.js +266 -0
- package/.utils/zugzweb/client/dist/favicon.svg +1 -0
- package/.utils/zugzweb/client/dist/icons.svg +24 -0
- package/.utils/zugzweb/client/dist/index.html +14 -0
- package/.utils/zugzweb/client/src/App.tsx +180 -21
- package/.utils/zugzweb/daemon.js +49 -0
- package/bin/init.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
var rm=Object.defineProperty;var fm=(o,c,r)=>c in o?rm(o,c,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[c]=r;var Ae=(o,c,r)=>fm(o,typeof c!="symbol"?c+"":c,r);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))s(h);new MutationObserver(h=>{for(const x of h)if(x.type==="childList")for(const j of x.addedNodes)j.tagName==="LINK"&&j.rel==="modulepreload"&&s(j)}).observe(document,{childList:!0,subtree:!0});function r(h){const x={};return h.integrity&&(x.integrity=h.integrity),h.referrerPolicy&&(x.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?x.credentials="include":h.crossOrigin==="anonymous"?x.credentials="omit":x.credentials="same-origin",x}function s(h){if(h.ep)return;h.ep=!0;const x=r(h);fetch(h.href,x)}})();var ar={exports:{}},oi={};/**
|
|
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 bh;function om(){if(bh)return oi;bh=1;var o=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(s,h,x){var j=null;if(x!==void 0&&(j=""+x),h.key!==void 0&&(j=""+h.key),"key"in h){x={};for(var _ in h)_!=="key"&&(x[_]=h[_])}else x=h;return h=x.ref,{$$typeof:o,type:s,key:j,ref:h!==void 0?h:null,props:x}}return oi.Fragment=c,oi.jsx=r,oi.jsxs=r,oi}var vh;function dm(){return vh||(vh=1,ar.exports=om()),ar.exports}var d=dm(),nr={exports:{}},I={};/**
|
|
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 xh;function hm(){if(xh)return I;xh=1;var o=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),j=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),Y=Symbol.iterator;function le(b){return b===null||typeof b!="object"?null:(b=Y&&b[Y]||b["@@iterator"],typeof b=="function"?b:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},de=Object.assign,ue={};function Ge(b,D,G){this.props=b,this.context=D,this.refs=ue,this.updater=G||U}Ge.prototype.isReactComponent={},Ge.prototype.setState=function(b,D){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,D,"setState")},Ge.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function qe(){}qe.prototype=Ge.prototype;function F(b,D,G){this.props=b,this.context=D,this.refs=ue,this.updater=G||U}var lt=F.prototype=new qe;lt.constructor=F,de(lt,Ge.prototype),lt.isPureReactComponent=!0;var at=Array.isArray;function je(){}var ae={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function yt(b,D,G){var L=G.ref;return{$$typeof:o,type:b,key:D,ref:L!==void 0?L:null,props:G}}function Kt(b,D){return yt(b.type,D,b.props)}function nt(b){return typeof b=="object"&&b!==null&&b.$$typeof===o}function Re(b){var D={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(G){return D[G]})}var _t=/\/+/g;function bt(b,D){return typeof b=="object"&&b!==null&&b.key!=null?Re(""+b.key):D.toString(36)}function rt(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(je,je):(b.status="pending",b.then(function(D){b.status==="pending"&&(b.status="fulfilled",b.value=D)},function(D){b.status==="pending"&&(b.status="rejected",b.reason=D)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function k(b,D,G,L,W){var te=typeof b;(te==="undefined"||te==="boolean")&&(b=null);var oe=!1;if(b===null)oe=!0;else switch(te){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(b.$$typeof){case o:case c:oe=!0;break;case N:return oe=b._init,k(oe(b._payload),D,G,L,W)}}if(oe)return W=W(b),oe=L===""?"."+bt(b,0):L,at(W)?(G="",oe!=null&&(G=oe.replace(_t,"$&/")+"/"),k(W,D,G,"",function(ll){return ll})):W!=null&&(nt(W)&&(W=Kt(W,G+(W.key==null||b&&b.key===W.key?"":(""+W.key).replace(_t,"$&/")+"/")+oe)),D.push(W)),1;oe=0;var Fe=L===""?".":L+":";if(at(b))for(var ke=0;ke<b.length;ke++)L=b[ke],te=Fe+bt(L,ke),oe+=k(L,D,G,te,W);else if(ke=le(b),typeof ke=="function")for(b=ke.call(b),ke=0;!(L=b.next()).done;)L=L.value,te=Fe+bt(L,ke++),oe+=k(L,D,G,te,W);else if(te==="object"){if(typeof b.then=="function")return k(rt(b),D,G,L,W);throw D=String(b),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return oe}function B(b,D,G){if(b==null)return b;var L=[],W=0;return k(b,L,"","",function(te){return D.call(G,te,W++)}),L}function K(b){if(b._status===-1){var D=b._result;D=D(),D.then(function(G){(b._status===0||b._status===-1)&&(b._status=1,b._result=G)},function(G){(b._status===0||b._status===-1)&&(b._status=2,b._result=G)}),b._status===-1&&(b._status=0,b._result=D)}if(b._status===1)return b._result.default;throw b._result}var me=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},ge={map:B,forEach:function(b,D,G){B(b,function(){D.apply(this,arguments)},G)},count:function(b){var D=0;return B(b,function(){D++}),D},toArray:function(b){return B(b,function(D){return D})||[]},only:function(b){if(!nt(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return I.Activity=w,I.Children=ge,I.Component=Ge,I.Fragment=r,I.Profiler=h,I.PureComponent=F,I.StrictMode=s,I.Suspense=m,I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,I.__COMPILER_RUNTIME={__proto__:null,c:function(b){return ae.H.useMemoCache(b)}},I.cache=function(b){return function(){return b.apply(null,arguments)}},I.cacheSignal=function(){return null},I.cloneElement=function(b,D,G){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var L=de({},b.props),W=b.key;if(D!=null)for(te in D.key!==void 0&&(W=""+D.key),D)!we.call(D,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&D.ref===void 0||(L[te]=D[te]);var te=arguments.length-2;if(te===1)L.children=G;else if(1<te){for(var oe=Array(te),Fe=0;Fe<te;Fe++)oe[Fe]=arguments[Fe+2];L.children=oe}return yt(b.type,W,L)},I.createContext=function(b){return b={$$typeof:j,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:x,_context:b},b},I.createElement=function(b,D,G){var L,W={},te=null;if(D!=null)for(L in D.key!==void 0&&(te=""+D.key),D)we.call(D,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(W[L]=D[L]);var oe=arguments.length-2;if(oe===1)W.children=G;else if(1<oe){for(var Fe=Array(oe),ke=0;ke<oe;ke++)Fe[ke]=arguments[ke+2];W.children=Fe}if(b&&b.defaultProps)for(L in oe=b.defaultProps,oe)W[L]===void 0&&(W[L]=oe[L]);return yt(b,te,W)},I.createRef=function(){return{current:null}},I.forwardRef=function(b){return{$$typeof:_,render:b}},I.isValidElement=nt,I.lazy=function(b){return{$$typeof:N,_payload:{_status:-1,_result:b},_init:K}},I.memo=function(b,D){return{$$typeof:S,type:b,compare:D===void 0?null:D}},I.startTransition=function(b){var D=ae.T,G={};ae.T=G;try{var L=b(),W=ae.S;W!==null&&W(G,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(je,me)}catch(te){me(te)}finally{D!==null&&G.types!==null&&(D.types=G.types),ae.T=D}},I.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},I.use=function(b){return ae.H.use(b)},I.useActionState=function(b,D,G){return ae.H.useActionState(b,D,G)},I.useCallback=function(b,D){return ae.H.useCallback(b,D)},I.useContext=function(b){return ae.H.useContext(b)},I.useDebugValue=function(){},I.useDeferredValue=function(b,D){return ae.H.useDeferredValue(b,D)},I.useEffect=function(b,D){return ae.H.useEffect(b,D)},I.useEffectEvent=function(b){return ae.H.useEffectEvent(b)},I.useId=function(){return ae.H.useId()},I.useImperativeHandle=function(b,D,G){return ae.H.useImperativeHandle(b,D,G)},I.useInsertionEffect=function(b,D){return ae.H.useInsertionEffect(b,D)},I.useLayoutEffect=function(b,D){return ae.H.useLayoutEffect(b,D)},I.useMemo=function(b,D){return ae.H.useMemo(b,D)},I.useOptimistic=function(b,D){return ae.H.useOptimistic(b,D)},I.useReducer=function(b,D,G){return ae.H.useReducer(b,D,G)},I.useRef=function(b){return ae.H.useRef(b)},I.useState=function(b){return ae.H.useState(b)},I.useSyncExternalStore=function(b,D,G){return ae.H.useSyncExternalStore(b,D,G)},I.useTransition=function(){return ae.H.useTransition()},I.version="19.2.7",I}var Sh;function yr(){return Sh||(Sh=1,nr.exports=hm()),nr.exports}var $=yr(),ir={exports:{}},di={},ur={exports:{}},cr={};/**
|
|
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 zh;function pm(){return zh||(zh=1,(function(o){function c(k,B){var K=k.length;k.push(B);e:for(;0<K;){var me=K-1>>>1,ge=k[me];if(0<h(ge,B))k[me]=B,k[K]=ge,K=me;else break e}}function r(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var B=k[0],K=k.pop();if(K!==B){k[0]=K;e:for(var me=0,ge=k.length,b=ge>>>1;me<b;){var D=2*(me+1)-1,G=k[D],L=D+1,W=k[L];if(0>h(G,K))L<ge&&0>h(W,G)?(k[me]=W,k[L]=K,me=L):(k[me]=G,k[D]=K,me=D);else if(L<ge&&0>h(W,K))k[me]=W,k[L]=K,me=L;else break e}}return B}function h(k,B){var K=k.sortIndex-B.sortIndex;return K!==0?K:k.id-B.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;o.unstable_now=function(){return x.now()}}else{var j=Date,_=j.now();o.unstable_now=function(){return j.now()-_}}var m=[],S=[],N=1,w=null,Y=3,le=!1,U=!1,de=!1,ue=!1,Ge=typeof setTimeout=="function"?setTimeout:null,qe=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function lt(k){for(var B=r(S);B!==null;){if(B.callback===null)s(S);else if(B.startTime<=k)s(S),B.sortIndex=B.expirationTime,c(m,B);else break;B=r(S)}}function at(k){if(de=!1,lt(k),!U)if(r(m)!==null)U=!0,je||(je=!0,Re());else{var B=r(S);B!==null&&rt(at,B.startTime-k)}}var je=!1,ae=-1,we=5,yt=-1;function Kt(){return ue?!0:!(o.unstable_now()-yt<we)}function nt(){if(ue=!1,je){var k=o.unstable_now();yt=k;var B=!0;try{e:{U=!1,de&&(de=!1,qe(ae),ae=-1),le=!0;var K=Y;try{t:{for(lt(k),w=r(m);w!==null&&!(w.expirationTime>k&&Kt());){var me=w.callback;if(typeof me=="function"){w.callback=null,Y=w.priorityLevel;var ge=me(w.expirationTime<=k);if(k=o.unstable_now(),typeof ge=="function"){w.callback=ge,lt(k),B=!0;break t}w===r(m)&&s(m),lt(k)}else s(m);w=r(m)}if(w!==null)B=!0;else{var b=r(S);b!==null&&rt(at,b.startTime-k),B=!1}}break e}finally{w=null,Y=K,le=!1}B=void 0}}finally{B?Re():je=!1}}}var Re;if(typeof F=="function")Re=function(){F(nt)};else if(typeof MessageChannel<"u"){var _t=new MessageChannel,bt=_t.port2;_t.port1.onmessage=nt,Re=function(){bt.postMessage(null)}}else Re=function(){Ge(nt,0)};function rt(k,B){ae=Ge(function(){k(o.unstable_now())},B)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(k){k.callback=null},o.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<k?Math.floor(1e3/k):5},o.unstable_getCurrentPriorityLevel=function(){return Y},o.unstable_next=function(k){switch(Y){case 1:case 2:case 3:var B=3;break;default:B=Y}var K=Y;Y=B;try{return k()}finally{Y=K}},o.unstable_requestPaint=function(){ue=!0},o.unstable_runWithPriority=function(k,B){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var K=Y;Y=k;try{return B()}finally{Y=K}},o.unstable_scheduleCallback=function(k,B,K){var me=o.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?me+K:me):K=me,k){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=K+ge,k={id:N++,callback:B,priorityLevel:k,startTime:K,expirationTime:ge,sortIndex:-1},K>me?(k.sortIndex=K,c(S,k),r(m)===null&&k===r(S)&&(de?(qe(ae),ae=-1):de=!0,rt(at,K-me))):(k.sortIndex=ge,c(m,k),U||le||(U=!0,je||(je=!0,Re()))),k},o.unstable_shouldYield=Kt,o.unstable_wrapCallback=function(k){var B=Y;return function(){var K=Y;Y=B;try{return k.apply(this,arguments)}finally{Y=K}}}})(cr)),cr}var Th;function mm(){return Th||(Th=1,ur.exports=pm()),ur.exports}var sr={exports:{}},it={};/**
|
|
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 Eh;function gm(){if(Eh)return it;Eh=1;var o=yr();function c(m){var S="https://react.dev/errors/"+m;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)S+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+m+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},h=Symbol.for("react.portal");function x(m,S,N){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:w==null?null:""+w,children:m,containerInfo:S,implementation:N}}var j=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(m,S){if(m==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,it.createPortal=function(m,S){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(c(299));return x(m,S,null,N)},it.flushSync=function(m){var S=j.T,N=s.p;try{if(j.T=null,s.p=2,m)return m()}finally{j.T=S,s.p=N,s.d.f()}},it.preconnect=function(m,S){typeof m=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,s.d.C(m,S))},it.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},it.preinit=function(m,S){if(typeof m=="string"&&S&&typeof S.as=="string"){var N=S.as,w=_(N,S.crossOrigin),Y=typeof S.integrity=="string"?S.integrity:void 0,le=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;N==="style"?s.d.S(m,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:w,integrity:Y,fetchPriority:le}):N==="script"&&s.d.X(m,{crossOrigin:w,integrity:Y,fetchPriority:le,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},it.preinitModule=function(m,S){if(typeof m=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var N=_(S.as,S.crossOrigin);s.d.M(m,{crossOrigin:N,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&s.d.M(m)},it.preload=function(m,S){if(typeof m=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var N=S.as,w=_(N,S.crossOrigin);s.d.L(m,N,{crossOrigin:w,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},it.preloadModule=function(m,S){if(typeof m=="string")if(S){var N=_(S.as,S.crossOrigin);s.d.m(m,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:N,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else s.d.m(m)},it.requestFormReset=function(m){s.d.r(m)},it.unstable_batchedUpdates=function(m,S){return m(S)},it.useFormState=function(m,S,N){return j.H.useFormState(m,S,N)},it.useFormStatus=function(){return j.H.useHostTransitionStatus()},it.version="19.2.7",it}var Ah;function ym(){if(Ah)return sr.exports;Ah=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(c){console.error(c)}}return o(),sr.exports=gm(),sr.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 Nh;function bm(){if(Nh)return di;Nh=1;var o=mm(),c=yr(),r=ym();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 x(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 j(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _(e){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 m(e){if(x(e)!==e)throw Error(s(188))}function S(e){var t=e.alternate;if(!t){if(t=x(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 m(n),e;if(i===a)return m(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 N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,Y=Symbol.for("react.element"),le=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),de=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),Ge=Symbol.for("react.profiler"),qe=Symbol.for("react.consumer"),F=Symbol.for("react.context"),lt=Symbol.for("react.forward_ref"),at=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),yt=Symbol.for("react.activity"),Kt=Symbol.for("react.memo_cache_sentinel"),nt=Symbol.iterator;function Re(e){return e===null||typeof e!="object"?null:(e=nt&&e[nt]||e["@@iterator"],typeof e=="function"?e:null)}var _t=Symbol.for("react.client.reference");function bt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_t?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case de:return"Fragment";case Ge:return"Profiler";case ue:return"StrictMode";case at:return"Suspense";case je:return"SuspenseList";case yt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case F:return e.displayName||"Context";case qe:return(e._context.displayName||"Context")+".Consumer";case lt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:bt(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return bt(e(t))}catch{}}return null}var rt=Array.isArray,k=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},me=[],ge=-1;function b(e){return{current:e}}function D(e){0>ge||(e.current=me[ge],me[ge]=null,ge--)}function G(e,t){ge++,me[ge]=e.current,e.current=t}var L=b(null),W=b(null),te=b(null),oe=b(null);function Fe(e,t){switch(G(te,t),G(W,e),G(L,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Qd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(L),G(L,e)}function ke(){D(L),D(W),D(te)}function ll(e){e.memoizedState!==null&&G(oe,e);var t=L.current,l=Qd(t,e.type);t!==l&&(G(W,e),G(L,l))}function Fl(e){W.current===e&&(D(L),D(W)),oe.current===e&&(D(oe),ci._currentValue=K)}var Il,gi;function vt(e){if(Il===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Il=t&&t[1]||"",gi=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Il+e+gi}var yn=!1;function Aa(e,t){if(!e||yn)return"";yn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(A){var E=A}Reflect.construct(e,[],R)}else{try{R.call()}catch(A){E=A}e.call(R.prototype)}}else{try{throw Error()}catch(A){E=A}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(A){if(A&&E&&typeof A.stack=="string")return[A.stack,E.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 p=u.split(`
|
|
44
|
+
`),T=f.split(`
|
|
45
|
+
`);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===T.length)for(a=p.length-1,n=T.length-1;1<=a&&0<=n&&p[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==T[n]){var O=`
|
|
46
|
+
`+p[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{yn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?vt(l):""}function yi(e,t){switch(e.tag){case 26:case 27:case 5:return vt(e.type);case 16:return vt("Lazy");case 13:return e.child!==t&&t!==null?vt("Suspense Fallback"):vt("Suspense");case 19:return vt("SuspenseList");case 0:case 15:return Aa(e.type,!1);case 11:return Aa(e.type.render,!1);case 1:return Aa(e.type,!0);case 31:return vt("Activity");default:return""}}function al(e){try{var t="",l=null;do t+=yi(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Pl=Object.prototype.hasOwnProperty,Jt=o.unstable_scheduleCallback,bn=o.unstable_cancelCallback,vn=o.unstable_shouldYield,Yt=o.unstable_requestPaint,Ve=o.unstable_now,Lu=o.unstable_getCurrentPriorityLevel,bi=o.unstable_ImmediatePriority,vi=o.unstable_UserBlockingPriority,El=o.unstable_NormalPriority,Xu=o.unstable_LowPriority,xi=o.unstable_IdlePriority,xn=o.log,Na=o.unstable_setDisableYieldValue,Gt=null,Ke=null;function xt(e){if(typeof xn=="function"&&Na(e),Ke&&typeof Ke.setStrictMode=="function")try{Ke.setStrictMode(Gt,e)}catch{}}var ct=Math.clz32?Math.clz32:Ku,Zu=Math.log,Vu=Math.LN2;function Ku(e){return e>>>=0,e===0?32:31-(Zu(e)/Vu|0)|0}var ja=256,_a=262144,Oa=4194304;function nl(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 ea(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=nl(a):(u&=f,u!==0?n=nl(u):l||(l=f&~e,l!==0&&(n=nl(l))))):(f=a&~i,f!==0?n=nl(f):u!==0?n=nl(u):l||(l=a&~e,l!==0&&(n=nl(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 $t(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ju(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 Sn(){var e=Oa;return Oa<<=1,(Oa&62914560)===0&&(Oa=4194304),e}function zn(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ta(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $u(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,p=e.expirationTimes,T=e.hiddenUpdates;for(l=u&~l;0<l;){var O=31-ct(l),R=1<<O;f[O]=0,p[O]=-1;var E=T[O];if(E!==null)for(T[O]=null,O=0;O<E.length;O++){var A=E[O];A!==null&&(A.lane&=-536870913)}l&=~R}a!==0&&Tn(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function Tn(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Si(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ct(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function ka(e,t){var l=t&-t;return l=(l&42)!==0?1:la(l),(l&(e.suspendedLanes|t))!==0?0:l}function la(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 Ma(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function g(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:oh(e.type))}function C(e,t){var l=B.p;try{return B.p=e,t()}finally{B.p=l}}var q=Math.random().toString(36).slice(2),Q="__reactFiber$"+q,H="__reactProps$"+q,Se="__reactContainer$"+q,Me="__reactEvents$"+q,Ot="__reactListeners$"+q,ft="__reactHandles$"+q,aa="__reactResources$"+q,Al="__reactMarker$"+q;function Da(e){delete e[Q],delete e[H],delete e[Me],delete e[Ot],delete e[ft]}function il(e){var t=e[Q];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Se]||l[Q]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=$d(e);e!==null;){if(l=e[Q])return l;e=$d(e)}return t}e=l,l=e.parentNode}return null}function Wt(e){if(e=e[Q]||e[Se]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function na(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Nl(e){var t=e[aa];return t||(t=e[aa]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[Al]=!0}var jr=new Set,_r={};function ia(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(_r[e]=t,e=0;e<t.length;e++)jr.add(t[e])}var ep=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]*$"),Or={},kr={};function tp(e){return Pl.call(kr,e)?!0:Pl.call(Or,e)?!1:ep.test(e)?kr[e]=!0:(Or[e]=!0,!1)}function zi(e,t,l){if(tp(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 Ti(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 ul(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 kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lp(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 Wu(e){if(!e._valueTracker){var t=Mr(e)?"checked":"value";e._valueTracker=lp(e,t,""+e[t])}}function Dr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Mr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ei(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 ap=/[\n"\\]/g;function Mt(e){return e.replace(ap,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fu(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=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?Iu(e,u,kt(t)):l!=null?Iu(e,u,kt(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=""+kt(f):e.removeAttribute("name")}function wr(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)){Wu(e);return}l=l!=null?""+kt(l):"",t=t!=null?""+kt(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),Wu(e)}function Iu(e,t,l){t==="number"&&Ei(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ra(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=""+kt(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 Rr(e,t,l){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+kt(l):""}function Cr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(rt(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=kt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Wu(e)}function Ca(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var np=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 Ur(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||np.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Hr(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&&Ur(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Ur(e,i,t[i])}function Pu(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 ip=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"]]),up=/^[\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 Ai(e){return up.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function cl(){}var ec=null;function tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ua=null,Ha=null;function qr(e){var t=Wt(e);if(t&&(e=t.stateNode)){var l=e[H]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fu(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[H]||null;if(!n)throw Error(s(90));Fu(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&&Dr(a)}break e;case"textarea":Rr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ra(e,!!l.multiple,t,!1)}}}var lc=!1;function Br(e,t,l){if(lc)return e(t,l);lc=!0;try{var a=e(t);return a}finally{if(lc=!1,(Ua!==null||Ha!==null)&&(du(),Ua&&(t=Ua,e=Ha,Ha=Ua=null,qr(t),e)))for(t=0;t<e.length;t++)qr(e[t])}}function En(e,t){var l=e.stateNode;if(l===null)return null;var a=l[H]||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 sl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ac=!1;if(sl)try{var An={};Object.defineProperty(An,"passive",{get:function(){ac=!0}}),window.addEventListener("test",An,An),window.removeEventListener("test",An,An)}catch{ac=!1}var jl=null,nc=null,Ni=null;function Yr(){if(Ni)return Ni;var e,t=nc,l=t.length,a,n="value"in jl?jl.value:jl.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 Ni=n.slice(e,1<a?1-a:void 0)}function ji(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _i(){return!0}function Gr(){return!1}function ot(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)?_i:Gr,this.isPropagationStopped=Gr,this}return w(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=_i)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oi=ot(ua),Nn=w({},ua,{view:0,detail:0}),cp=ot(Nn),ic,uc,jn,ki=w({},Nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sc,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!==jn&&(jn&&e.type==="mousemove"?(ic=e.screenX-jn.screenX,uc=e.screenY-jn.screenY):uc=ic=0,jn=e),ic)},movementY:function(e){return"movementY"in e?e.movementY:uc}}),Qr=ot(ki),sp=w({},ki,{dataTransfer:0}),rp=ot(sp),fp=w({},Nn,{relatedTarget:0}),cc=ot(fp),op=w({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),dp=ot(op),hp=w({},ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pp=ot(hp),mp=w({},ua,{data:0}),Lr=ot(mp),gp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yp={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"},bp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bp[e])?!!t[e]:!1}function sc(){return vp}var xp=w({},Nn,{key:function(e){if(e.key){var t=gp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sc,charCode:function(e){return e.type==="keypress"?ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sp=ot(xp),zp=w({},ki,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xr=ot(zp),Tp=w({},Nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sc}),Ep=ot(Tp),Ap=w({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),Np=ot(Ap),jp=w({},ki,{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}),_p=ot(jp),Op=w({},ua,{newState:0,oldState:0}),kp=ot(Op),Mp=[9,13,27,32],rc=sl&&"CompositionEvent"in window,_n=null;sl&&"documentMode"in document&&(_n=document.documentMode);var Dp=sl&&"TextEvent"in window&&!_n,Zr=sl&&(!rc||_n&&8<_n&&11>=_n),Vr=" ",Kr=!1;function Jr(e,t){switch(e){case"keyup":return Mp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $r(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qa=!1;function wp(e,t){switch(e){case"compositionend":return $r(t);case"keypress":return t.which!==32?null:(Kr=!0,Vr);case"textInput":return e=t.data,e===Vr&&Kr?null:e;default:return null}}function Rp(e,t){if(qa)return e==="compositionend"||!rc&&Jr(e,t)?(e=Yr(),Ni=nc=jl=null,qa=!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 Zr&&t.locale!=="ko"?null:t.data;default:return null}}var Cp={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 Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cp[e.type]:t==="textarea"}function Fr(e,t,l,a){Ua?Ha?Ha.push(a):Ha=[a]:Ua=a,t=vu(t,"onChange"),0<t.length&&(l=new Oi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var On=null,kn=null;function Up(e){Cd(e,0)}function Mi(e){var t=na(e);if(Dr(t))return e}function Ir(e,t){if(e==="change")return t}var Pr=!1;if(sl){var fc;if(sl){var oc="oninput"in document;if(!oc){var ef=document.createElement("div");ef.setAttribute("oninput","return;"),oc=typeof ef.oninput=="function"}fc=oc}else fc=!1;Pr=fc&&(!document.documentMode||9<document.documentMode)}function tf(){On&&(On.detachEvent("onpropertychange",lf),kn=On=null)}function lf(e){if(e.propertyName==="value"&&Mi(kn)){var t=[];Fr(t,kn,e,tc(e)),Br(Up,t)}}function Hp(e,t,l){e==="focusin"?(tf(),On=t,kn=l,On.attachEvent("onpropertychange",lf)):e==="focusout"&&tf()}function qp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mi(kn)}function Bp(e,t){if(e==="click")return Mi(t)}function Yp(e,t){if(e==="input"||e==="change")return Mi(t)}function Gp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:Gp;function Mn(e,t){if(St(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(!Pl.call(t,n)||!St(e[n],t[n]))return!1}return!0}function af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nf(e,t){var l=af(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=af(l)}}function uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ei(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=Ei(e.document)}return t}function dc(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 Qp=sl&&"documentMode"in document&&11>=document.documentMode,Ba=null,hc=null,Dn=null,pc=!1;function sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;pc||Ba==null||Ba!==Ei(a)||(a=Ba,"selectionStart"in a&&dc(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}),Dn&&Mn(Dn,a)||(Dn=a,a=vu(hc,"onSelect"),0<a.length&&(t=new Oi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Ba)))}function ca(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ya={animationend:ca("Animation","AnimationEnd"),animationiteration:ca("Animation","AnimationIteration"),animationstart:ca("Animation","AnimationStart"),transitionrun:ca("Transition","TransitionRun"),transitionstart:ca("Transition","TransitionStart"),transitioncancel:ca("Transition","TransitionCancel"),transitionend:ca("Transition","TransitionEnd")},mc={},rf={};sl&&(rf=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function sa(e){if(mc[e])return mc[e];if(!Ya[e])return e;var t=Ya[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in rf)return mc[e]=t[l];return e}var ff=sa("animationend"),of=sa("animationiteration"),df=sa("animationstart"),Lp=sa("transitionrun"),Xp=sa("transitionstart"),Zp=sa("transitioncancel"),hf=sa("transitionend"),pf=new Map,gc="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(" ");gc.push("scrollEnd");function Qt(e,t){pf.set(e,t),ia(t,[e])}var Di=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Dt=[],Ga=0,yc=0;function wi(){for(var e=Ga,t=yc=Ga=0;t<e;){var l=Dt[t];Dt[t++]=null;var a=Dt[t];Dt[t++]=null;var n=Dt[t];Dt[t++]=null;var i=Dt[t];if(Dt[t++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&mf(l,n,i)}}function Ri(e,t,l,a){Dt[Ga++]=e,Dt[Ga++]=t,Dt[Ga++]=l,Dt[Ga++]=a,yc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function bc(e,t,l,a){return Ri(e,t,l,a),Ci(e)}function ra(e,t){return Ri(e,null,null,t),Ci(e)}function mf(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-ct(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function Ci(e){if(50<ei)throw ei=0,js=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qa={};function Vp(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 zt(e,t,l,a){return new Vp(e,t,l,a)}function vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rl(e,t){var l=e.alternate;return l===null?(l=zt(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 gf(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 Ui(e,t,l,a,n,i){var u=0;if(a=e,typeof e=="function")vc(e)&&(u=1);else if(typeof e=="string")u=F0(e,l,L.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case yt:return e=zt(31,l,t,n),e.elementType=yt,e.lanes=i,e;case de:return fa(l.children,n,i,t);case ue:u=8,n|=24;break;case Ge:return e=zt(12,l,t,n|2),e.elementType=Ge,e.lanes=i,e;case at:return e=zt(13,l,t,n),e.elementType=at,e.lanes=i,e;case je:return e=zt(19,l,t,n),e.elementType=je,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:u=10;break e;case qe:u=9;break e;case lt:u=11;break e;case ae:u=14;break e;case we:u=16,a=null;break e}u=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=zt(u,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function fa(e,t,l,a){return e=zt(7,e,a,t),e.lanes=l,e}function xc(e,t,l){return e=zt(6,e,null,t),e.lanes=l,e}function yf(e){var t=zt(18,null,null,0);return t.stateNode=e,t}function Sc(e,t,l){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bf=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var l=bf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:al(t)},bf.set(e,t),t)}return{value:e,source:t,stack:al(t)}}var La=[],Xa=0,Hi=null,wn=0,Rt=[],Ct=0,_l=null,Ft=1,It="";function fl(e,t){La[Xa++]=wn,La[Xa++]=Hi,Hi=e,wn=t}function vf(e,t,l){Rt[Ct++]=Ft,Rt[Ct++]=It,Rt[Ct++]=_l,_l=e;var a=Ft;e=It;var n=32-ct(a)-1;a&=~(1<<n),l+=1;var i=32-ct(t)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,Ft=1<<32-ct(t)+n|l<<n|a,It=i+e}else Ft=1<<i|l<<n|a,It=e}function zc(e){e.return!==null&&(fl(e,1),vf(e,1,0))}function Tc(e){for(;e===Hi;)Hi=La[--Xa],La[Xa]=null,wn=La[--Xa],La[Xa]=null;for(;e===_l;)_l=Rt[--Ct],Rt[Ct]=null,It=Rt[--Ct],Rt[Ct]=null,Ft=Rt[--Ct],Rt[Ct]=null}function xf(e,t){Rt[Ct++]=Ft,Rt[Ct++]=It,Rt[Ct++]=_l,Ft=t.id,It=t.overflow,_l=e}var Ie=null,_e=null,re=!1,Ol=null,Ut=!1,Ec=Error(s(519));function kl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rn(wt(t,e)),Ec}function Sf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Q]=e,t[H]=a,l){case"dialog":ie("cancel",t),ie("close",t);break;case"iframe":case"object":case"embed":ie("load",t);break;case"video":case"audio":for(l=0;l<li.length;l++)ie(li[l],t);break;case"source":ie("error",t);break;case"img":case"image":case"link":ie("error",t),ie("load",t);break;case"details":ie("toggle",t);break;case"input":ie("invalid",t),wr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ie("invalid",t);break;case"textarea":ie("invalid",t),Cr(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||Bd(t.textContent,l)?(a.popover!=null&&(ie("beforetoggle",t),ie("toggle",t)),a.onScroll!=null&&ie("scroll",t),a.onScrollEnd!=null&&ie("scrollend",t),a.onClick!=null&&(t.onclick=cl),t=!0):t=!1,t||kl(e,!0)}function zf(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:Ie=Ie.return}}function Za(e){if(e!==Ie)return!1;if(!re)return zf(e),re=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Qs(e.type,e.memoizedProps)),l=!l),l&&_e&&kl(e),zf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));_e=Jd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));_e=Jd(e)}else t===27?(t=_e,Xl(e.type)?(e=Ks,Ks=null,_e=e):_e=t):_e=Ie?qt(e.stateNode.nextSibling):null;return!0}function oa(){_e=Ie=null,re=!1}function Ac(){var e=Ol;return e!==null&&(mt===null?mt=e:mt.push.apply(mt,e),Ol=null),e}function Rn(e){Ol===null?Ol=[e]:Ol.push(e)}var Nc=b(null),da=null,ol=null;function Ml(e,t,l){G(Nc,t._currentValue),t._currentValue=l}function dl(e){e._currentValue=Nc.current,D(Nc)}function jc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function _c(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 p=0;p<t.length;p++)if(f.context===t[p]){i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),jc(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),jc(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 Va(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;St(n.pendingProps.value,u.value)||(e!==null?e.push(f):e=[f])}}else if(n===oe.current){if(u=n.alternate,u===null)throw Error(s(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ci):e=[ci])}n=n.return}e!==null&&_c(t,e,l,a),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!St(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){da=e,ol=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return Tf(da,e)}function Bi(e,t){return da===null&&ha(e),Tf(e,t)}function Tf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ol===null){if(e===null)throw Error(s(308));ol=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ol=ol.next=t;return l}var Kp=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()})}},Jp=o.unstable_scheduleCallback,$p=o.unstable_NormalPriority,Qe={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oc(){return{controller:new Kp,data:new Map,refCount:0}}function Cn(e){e.refCount--,e.refCount===0&&Jp($p,function(){e.controller.abort()})}var Un=null,kc=0,Ka=0,Ja=null;function Wp(e,t){if(Un===null){var l=Un=[];kc=0,Ka=ws(),Ja={status:"pending",value:void 0,then:function(a){l.push(a)}}}return kc++,t.then(Ef,Ef),t}function Ef(){if(--kc===0&&Un!==null){Ja!==null&&(Ja.status="fulfilled");var e=Un;Un=null,Ka=0,Ja=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Fp(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 Af=k.S;k.S=function(e,t){rd=Ve(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Wp(e,t),Af!==null&&Af(e,t)};var pa=b(null);function Mc(){var e=pa.current;return e!==null?e:Ne.pooledCache}function Yi(e,t){t===null?G(pa,pa.current):G(pa,t.pool)}function Nf(){var e=Mc();return e===null?null:{parent:Qe._currentValue,pool:e}}var $a=Error(s(460)),Dc=Error(s(474)),Gi=Error(s(542)),Qi={then:function(){}};function jf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _f(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(cl,cl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kf(e),e;default:if(typeof t.status=="string")t.then(cl,cl);else{if(e=Ne,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,kf(e),e}throw ga=t,$a}}function ma(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ga=l,$a):l}}var ga=null;function Of(){if(ga===null)throw Error(s(459));var e=ga;return ga=null,e}function kf(e){if(e===$a||e===Gi)throw Error(s(483))}var Wa=null,Hn=0;function Li(e){var t=Hn;return Hn+=1,Wa===null&&(Wa=[]),_f(Wa,e,t)}function qn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xi(e,t){throw t.$$typeof===Y?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mf(e){function t(v,y){if(e){var z=v.deletions;z===null?(v.deletions=[y],v.flags|=16):z.push(y)}}function l(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function a(v){for(var y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function n(v,y){return v=rl(v,y),v.index=0,v.sibling=null,v}function i(v,y,z){return v.index=z,e?(z=v.alternate,z!==null?(z=z.index,z<y?(v.flags|=67108866,y):z):(v.flags|=67108866,y)):(v.flags|=1048576,y)}function u(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function f(v,y,z,M){return y===null||y.tag!==6?(y=xc(z,v.mode,M),y.return=v,y):(y=n(y,z),y.return=v,y)}function p(v,y,z,M){var V=z.type;return V===de?O(v,y,z.props.children,M,z.key):y!==null&&(y.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===we&&ma(V)===y.type)?(y=n(y,z.props),qn(y,z),y.return=v,y):(y=Ui(z.type,z.key,z.props,null,v.mode,M),qn(y,z),y.return=v,y)}function T(v,y,z,M){return y===null||y.tag!==4||y.stateNode.containerInfo!==z.containerInfo||y.stateNode.implementation!==z.implementation?(y=Sc(z,v.mode,M),y.return=v,y):(y=n(y,z.children||[]),y.return=v,y)}function O(v,y,z,M,V){return y===null||y.tag!==7?(y=fa(z,v.mode,M,V),y.return=v,y):(y=n(y,z),y.return=v,y)}function R(v,y,z){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=xc(""+y,v.mode,z),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case le:return z=Ui(y.type,y.key,y.props,null,v.mode,z),qn(z,y),z.return=v,z;case U:return y=Sc(y,v.mode,z),y.return=v,y;case we:return y=ma(y),R(v,y,z)}if(rt(y)||Re(y))return y=fa(y,v.mode,z,null),y.return=v,y;if(typeof y.then=="function")return R(v,Li(y),z);if(y.$$typeof===F)return R(v,Bi(v,y),z);Xi(v,y)}return null}function E(v,y,z,M){var V=y!==null?y.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return V!==null?null:f(v,y,""+z,M);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case le:return z.key===V?p(v,y,z,M):null;case U:return z.key===V?T(v,y,z,M):null;case we:return z=ma(z),E(v,y,z,M)}if(rt(z)||Re(z))return V!==null?null:O(v,y,z,M,null);if(typeof z.then=="function")return E(v,y,Li(z),M);if(z.$$typeof===F)return E(v,y,Bi(v,z),M);Xi(v,z)}return null}function A(v,y,z,M,V){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return v=v.get(z)||null,f(y,v,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case le:return v=v.get(M.key===null?z:M.key)||null,p(y,v,M,V);case U:return v=v.get(M.key===null?z:M.key)||null,T(y,v,M,V);case we:return M=ma(M),A(v,y,z,M,V)}if(rt(M)||Re(M))return v=v.get(z)||null,O(y,v,M,V,null);if(typeof M.then=="function")return A(v,y,z,Li(M),V);if(M.$$typeof===F)return A(v,y,z,Bi(y,M),V);Xi(y,M)}return null}function X(v,y,z,M){for(var V=null,he=null,Z=y,ee=y=0,se=null;Z!==null&&ee<z.length;ee++){Z.index>ee?(se=Z,Z=null):se=Z.sibling;var pe=E(v,Z,z[ee],M);if(pe===null){Z===null&&(Z=se);break}e&&Z&&pe.alternate===null&&t(v,Z),y=i(pe,y,ee),he===null?V=pe:he.sibling=pe,he=pe,Z=se}if(ee===z.length)return l(v,Z),re&&fl(v,ee),V;if(Z===null){for(;ee<z.length;ee++)Z=R(v,z[ee],M),Z!==null&&(y=i(Z,y,ee),he===null?V=Z:he.sibling=Z,he=Z);return re&&fl(v,ee),V}for(Z=a(Z);ee<z.length;ee++)se=A(Z,v,ee,z[ee],M),se!==null&&(e&&se.alternate!==null&&Z.delete(se.key===null?ee:se.key),y=i(se,y,ee),he===null?V=se:he.sibling=se,he=se);return e&&Z.forEach(function($l){return t(v,$l)}),re&&fl(v,ee),V}function J(v,y,z,M){if(z==null)throw Error(s(151));for(var V=null,he=null,Z=y,ee=y=0,se=null,pe=z.next();Z!==null&&!pe.done;ee++,pe=z.next()){Z.index>ee?(se=Z,Z=null):se=Z.sibling;var $l=E(v,Z,pe.value,M);if($l===null){Z===null&&(Z=se);break}e&&Z&&$l.alternate===null&&t(v,Z),y=i($l,y,ee),he===null?V=$l:he.sibling=$l,he=$l,Z=se}if(pe.done)return l(v,Z),re&&fl(v,ee),V;if(Z===null){for(;!pe.done;ee++,pe=z.next())pe=R(v,pe.value,M),pe!==null&&(y=i(pe,y,ee),he===null?V=pe:he.sibling=pe,he=pe);return re&&fl(v,ee),V}for(Z=a(Z);!pe.done;ee++,pe=z.next())pe=A(Z,v,ee,pe.value,M),pe!==null&&(e&&pe.alternate!==null&&Z.delete(pe.key===null?ee:pe.key),y=i(pe,y,ee),he===null?V=pe:he.sibling=pe,he=pe);return e&&Z.forEach(function(sm){return t(v,sm)}),re&&fl(v,ee),V}function Ee(v,y,z,M){if(typeof z=="object"&&z!==null&&z.type===de&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case le:e:{for(var V=z.key;y!==null;){if(y.key===V){if(V=z.type,V===de){if(y.tag===7){l(v,y.sibling),M=n(y,z.props.children),M.return=v,v=M;break e}}else if(y.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===we&&ma(V)===y.type){l(v,y.sibling),M=n(y,z.props),qn(M,z),M.return=v,v=M;break e}l(v,y);break}else t(v,y);y=y.sibling}z.type===de?(M=fa(z.props.children,v.mode,M,z.key),M.return=v,v=M):(M=Ui(z.type,z.key,z.props,null,v.mode,M),qn(M,z),M.return=v,v=M)}return u(v);case U:e:{for(V=z.key;y!==null;){if(y.key===V)if(y.tag===4&&y.stateNode.containerInfo===z.containerInfo&&y.stateNode.implementation===z.implementation){l(v,y.sibling),M=n(y,z.children||[]),M.return=v,v=M;break e}else{l(v,y);break}else t(v,y);y=y.sibling}M=Sc(z,v.mode,M),M.return=v,v=M}return u(v);case we:return z=ma(z),Ee(v,y,z,M)}if(rt(z))return X(v,y,z,M);if(Re(z)){if(V=Re(z),typeof V!="function")throw Error(s(150));return z=V.call(z),J(v,y,z,M)}if(typeof z.then=="function")return Ee(v,y,Li(z),M);if(z.$$typeof===F)return Ee(v,y,Bi(v,z),M);Xi(v,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,y!==null&&y.tag===6?(l(v,y.sibling),M=n(y,z),M.return=v,v=M):(l(v,y),M=xc(z,v.mode,M),M.return=v,v=M),u(v)):l(v,y)}return function(v,y,z,M){try{Hn=0;var V=Ee(v,y,z,M);return Wa=null,V}catch(Z){if(Z===$a||Z===Gi)throw Z;var he=zt(29,Z,null,v.mode);return he.lanes=M,he.return=v,he}finally{}}}var ya=Mf(!0),Df=Mf(!1),Dl=!1;function wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rc(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 wl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Rl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ye&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Ci(e),mf(e,null,l),t}return Ri(e,a,t,l),Ci(e)}function Bn(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,Si(e,l)}}function Cc(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 Uc=!1;function Yn(){if(Uc){var e=Ja;if(e!==null)throw e}}function Gn(e,t,l,a){Uc=!1;var n=e.updateQueue;Dl=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var p=f,T=p.next;p.next=null,u===null?i=T:u.next=T,u=p;var O=e.alternate;O!==null&&(O=O.updateQueue,f=O.lastBaseUpdate,f!==u&&(f===null?O.firstBaseUpdate=T:f.next=T,O.lastBaseUpdate=p))}if(i!==null){var R=n.baseState;u=0,O=T=p=null,f=i;do{var E=f.lane&-536870913,A=E!==f.lane;if(A?(ce&E)===E:(a&E)===E){E!==0&&E===Ka&&(Uc=!0),O!==null&&(O=O.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var X=e,J=f;E=t;var Ee=l;switch(J.tag){case 1:if(X=J.payload,typeof X=="function"){R=X.call(Ee,R,E);break e}R=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=J.payload,E=typeof X=="function"?X.call(Ee,R,E):X,E==null)break e;R=w({},R,E);break e;case 2:Dl=!0}}E=f.callback,E!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[E]:A.push(E))}else A={lane:E,tag:f.tag,payload:f.payload,callback:f.callback,next:null},O===null?(T=O=A,p=R):O=O.next=A,u|=E;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;A=f,f=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);O===null&&(p=R),n.baseState=p,n.firstBaseUpdate=T,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),Bl|=u,e.lanes=u,e.memoizedState=R}}function wf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Rf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)wf(l[e],t)}var Fa=b(null),Zi=b(0);function Cf(e,t){e=Sl,G(Zi,e),G(Fa,t),Sl=e|t.baseLanes}function Hc(){G(Zi,Sl),G(Fa,Fa.current)}function qc(){Sl=Zi.current,D(Fa),D(Zi)}var Tt=b(null),Ht=null;function Cl(e){var t=e.alternate;G(Be,Be.current&1),G(Tt,e),Ht===null&&(t===null||Fa.current!==null||t.memoizedState!==null)&&(Ht=e)}function Bc(e){G(Be,Be.current),G(Tt,e),Ht===null&&(Ht=e)}function Uf(e){e.tag===22?(G(Be,Be.current),G(Tt,e),Ht===null&&(Ht=e)):Ul()}function Ul(){G(Be,Be.current),G(Tt,Tt.current)}function Et(e){D(Tt),Ht===e&&(Ht=null),D(Be)}var Be=b(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Zs(l)||Vs(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 hl=0,P=null,ze=null,Le=null,Ki=!1,Ia=!1,ba=!1,Ji=0,Qn=0,Pa=null,Ip=0;function Ue(){throw Error(s(321))}function Yc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!St(e[l],t[l]))return!1;return!0}function Gc(e,t,l,a,n,i){return hl=i,P=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?xo:ls,ba=!1,i=l(a,n),ba=!1,Ia&&(i=qf(t,l,a,n)),Hf(e),i}function Hf(e){k.H=Zn;var t=ze!==null&&ze.next!==null;if(hl=0,Le=ze=P=null,Ki=!1,Qn=0,Pa=null,t)throw Error(s(300));e===null||Xe||(e=e.dependencies,e!==null&&qi(e)&&(Xe=!0))}function qf(e,t,l,a){P=e;var n=0;do{if(Ia&&(Pa=null),Qn=0,Ia=!1,25<=n)throw Error(s(301));if(n+=1,Le=ze=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}k.H=So,i=t(l,a)}while(Ia);return i}function Pp(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?Ln(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(P.flags|=1024),t}function Qc(){var e=Ji!==0;return Ji=0,e}function Lc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Xc(e){if(Ki){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ki=!1}hl=0,Le=ze=P=null,Ia=!1,Qn=Ji=0,Pa=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?P.memoizedState=Le=e:Le=Le.next=e,Le}function Ye(){if(ze===null){var e=P.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Le===null?P.memoizedState:Le.next;if(t!==null)Le=t,ze=e;else{if(e===null)throw P.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Le===null?P.memoizedState=Le=e:Le=Le.next=e}return Le}function $i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ln(e){var t=Qn;return Qn+=1,Pa===null&&(Pa=[]),e=_f(Pa,e,t),t=P,(Le===null?t.memoizedState:Le.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?xo:ls),e}function Wi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ln(e);if(e.$$typeof===F)return Pe(e)}throw Error(s(438,String(e)))}function Zc(e){var t=null,l=P.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=P.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=$i(),P.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]=Kt;return t.index++,l}function pl(e,t){return typeof t=="function"?t(e):t}function Fi(e){var t=Ye();return Vc(t,ze,e)}function Vc(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,p=null,T=t,O=!1;do{var R=T.lane&-536870913;if(R!==T.lane?(ce&R)===R:(hl&R)===R){var E=T.revertLane;if(E===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),R===Ka&&(O=!0);else if((hl&E)===E){T=T.next,E===Ka&&(O=!0);continue}else R={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},p===null?(f=p=R,u=i):p=p.next=R,P.lanes|=E,Bl|=E;R=T.action,ba&&l(i,R),i=T.hasEagerState?T.eagerState:l(i,R)}else E={lane:R,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},p===null?(f=p=E,u=i):p=p.next=E,P.lanes|=R,Bl|=R;T=T.next}while(T!==null&&T!==t);if(p===null?u=i:p.next=f,!St(i,e.memoizedState)&&(Xe=!0,O&&(l=Ja,l!==null)))throw l;e.memoizedState=i,e.baseState=u,e.baseQueue=p,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Kc(e){var t=Ye(),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);St(i,t.memoizedState)||(Xe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Bf(e,t,l){var a=P,n=Ye(),i=re;if(i){if(l===void 0)throw Error(s(407));l=l()}else l=t();var u=!St((ze||n).memoizedState,l);if(u&&(n.memoizedState=l,Xe=!0),n=n.queue,Wc(Qf.bind(null,a,n,e),[e]),n.getSnapshot!==t||u||Le!==null&&Le.memoizedState.tag&1){if(a.flags|=2048,en(9,{destroy:void 0},Gf.bind(null,a,n,l,t),null),Ne===null)throw Error(s(349));i||(hl&127)!==0||Yf(a,t,l)}return l}function Yf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=P.updateQueue,t===null?(t=$i(),P.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Gf(e,t,l,a){t.value=l,t.getSnapshot=a,Lf(t)&&Xf(e)}function Qf(e,t,l){return l(function(){Lf(t)&&Xf(e)})}function Lf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!St(e,l)}catch{return!0}}function Xf(e){var t=ra(e,2);t!==null&>(t,e,2)}function Jc(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),ba){xt(!0);try{l()}finally{xt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t}function Zf(e,t,l,a){return e.baseState=l,Vc(e,ze,typeof a=="function"?a:pl)}function e0(e,t,l,a,n){if(eu(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)}};k.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Vf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Vf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=k.T,u={};k.T=u;try{var f=l(n,a),p=k.S;p!==null&&p(u,f),Kf(e,t,f)}catch(T){$c(e,t,T)}finally{i!==null&&u.types!==null&&(i.types=u.types),k.T=i}}else try{i=l(n,a),Kf(e,t,i)}catch(T){$c(e,t,T)}}function Kf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Jf(e,t,a)},function(a){return $c(e,t,a)}):Jf(e,t,l)}function Jf(e,t,l){t.status="fulfilled",t.value=l,$f(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Vf(e,l)))}function $c(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,$f(t),t=t.next;while(t!==a)}e.action=null}function $f(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wf(e,t){return t}function Ff(e,t){if(re){var l=Ne.formState;if(l!==null){e:{var a=P;if(re){if(_e){t:{for(var n=_e,i=Ut;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){_e=qt(n.nextSibling),a=n.data==="F!";break e}}kl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wf,lastRenderedState:t},l.queue=a,l=yo.bind(null,P,a),a.dispatch=l,a=Jc(!1),i=ts.bind(null,P,!1,a.queue),a=st(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=e0.bind(null,P,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function If(e){var t=Ye();return Pf(t,ze,e)}function Pf(e,t,l){if(t=Vc(e,t,Wf)[0],e=Fi(pl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ln(t)}catch(u){throw u===$a?Gi:u}else a=t;t=Ye();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(P.flags|=2048,en(9,{destroy:void 0},t0.bind(null,n,l),null)),[a,i,e]}function t0(e,t){e.action=t}function eo(e){var t=Ye(),l=ze;if(l!==null)return Pf(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function en(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=P.updateQueue,t===null&&(t=$i(),P.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 to(){return Ye().memoizedState}function Ii(e,t,l,a){var n=st();P.flags|=e,n.memoizedState=en(1|t,{destroy:void 0},l,a===void 0?null:a)}function Pi(e,t,l,a){var n=Ye();a=a===void 0?null:a;var i=n.memoizedState.inst;ze!==null&&a!==null&&Yc(a,ze.memoizedState.deps)?n.memoizedState=en(t,i,l,a):(P.flags|=e,n.memoizedState=en(1|t,i,l,a))}function lo(e,t){Ii(8390656,8,e,t)}function Wc(e,t){Pi(2048,8,e,t)}function l0(e){P.flags|=4;var t=P.updateQueue;if(t===null)t=$i(),P.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ao(e){var t=Ye().memoizedState;return l0({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function no(e,t){return Pi(4,2,e,t)}function io(e,t){return Pi(4,4,e,t)}function uo(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 co(e,t,l){l=l!=null?l.concat([e]):null,Pi(4,4,uo.bind(null,t,e),l)}function Fc(){}function so(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Yc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function ro(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Yc(t,a[1]))return a[0];if(a=e(),ba){xt(!0);try{e()}finally{xt(!1)}}return l.memoizedState=[a,t],a}function Ic(e,t,l){return l===void 0||(hl&1073741824)!==0&&(ce&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=od(),P.lanes|=e,Bl|=e,l)}function fo(e,t,l,a){return St(l,t)?l:Fa.current!==null?(e=Ic(e,l,a),St(e,t)||(Xe=!0),e):(hl&42)===0||(hl&1073741824)!==0&&(ce&261930)===0?(Xe=!0,e.memoizedState=l):(e=od(),P.lanes|=e,Bl|=e,t)}function oo(e,t,l,a,n){var i=B.p;B.p=i!==0&&8>i?i:8;var u=k.T,f={};k.T=f,ts(e,!1,t,l);try{var p=n(),T=k.S;if(T!==null&&T(f,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var O=Fp(p,a);Xn(e,t,O,jt(e))}else Xn(e,t,a,jt(e))}catch(R){Xn(e,t,{then:function(){},status:"rejected",reason:R},jt())}finally{B.p=i,u!==null&&f.types!==null&&(u.types=f.types),k.T=u}}function a0(){}function Pc(e,t,l,a){if(e.tag!==5)throw Error(s(476));var n=ho(e).queue;oo(e,n,t,K,l===null?a0:function(){return po(e),l(a)})}function ho(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:K},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function po(e){var t=ho(e);t.next===null&&(t=e.alternate.memoizedState),Xn(e,t.next.queue,{},jt())}function es(){return Pe(ci)}function mo(){return Ye().memoizedState}function go(){return Ye().memoizedState}function n0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=jt();e=wl(l);var a=Rl(t,e,l);a!==null&&(gt(a,t,l),Bn(a,t,l)),t={cache:Oc()},e.payload=t;return}t=t.return}}function i0(e,t,l){var a=jt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},eu(e)?bo(t,l):(l=bc(e,t,l,a),l!==null&&(gt(l,e,a),vo(l,t,a)))}function yo(e,t,l){var a=jt();Xn(e,t,l,a)}function Xn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(eu(e))bo(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,St(f,u))return Ri(e,t,n,0),Ne===null&&wi(),!1}catch{}finally{}if(l=bc(e,t,n,a),l!==null)return gt(l,e,a),vo(l,t,a),!0}return!1}function ts(e,t,l,a){if(a={lane:2,revertLane:ws(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},eu(e)){if(t)throw Error(s(479))}else t=bc(e,l,a,2),t!==null&>(t,e,2)}function eu(e){var t=e.alternate;return e===P||t!==null&&t===P}function bo(e,t){Ia=Ki=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function vo(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Si(e,l)}}var Zn={readContext:Pe,use:Wi,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};Zn.useEffectEvent=Ue;var xo={readContext:Pe,use:Wi,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:lo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ii(4194308,4,uo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ii(4194308,4,e,t)},useInsertionEffect:function(e,t){Ii(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(ba){xt(!0);try{e()}finally{xt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var n=l(t);if(ba){xt(!0);try{l(t)}finally{xt(!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=i0.bind(null,P,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Jc(e);var t=e.queue,l=yo.bind(null,P,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Fc,useDeferredValue:function(e,t){var l=st();return Ic(l,e,t)},useTransition:function(){var e=Jc(!1);return e=oo.bind(null,P,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=P,n=st();if(re){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Ne===null)throw Error(s(349));(ce&127)!==0||Yf(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,lo(Qf.bind(null,a,i,e),[e]),a.flags|=2048,en(9,{destroy:void 0},Gf.bind(null,a,i,l,t),null),l},useId:function(){var e=st(),t=Ne.identifierPrefix;if(re){var l=It,a=Ft;l=(a&~(1<<32-ct(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ji++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Ip++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:es,useFormState:Ff,useActionState:Ff,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ts.bind(null,P,!0,l),l.dispatch=t,[e,t]},useMemoCache:Zc,useCacheRefresh:function(){return st().memoizedState=n0.bind(null,P)},useEffectEvent:function(e){var t=st(),l={impl:e};return t.memoizedState=l,function(){if((ye&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},ls={readContext:Pe,use:Wi,useCallback:so,useContext:Pe,useEffect:Wc,useImperativeHandle:co,useInsertionEffect:no,useLayoutEffect:io,useMemo:ro,useReducer:Fi,useRef:to,useState:function(){return Fi(pl)},useDebugValue:Fc,useDeferredValue:function(e,t){var l=Ye();return fo(l,ze.memoizedState,e,t)},useTransition:function(){var e=Fi(pl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Ln(e),t]},useSyncExternalStore:Bf,useId:mo,useHostTransitionStatus:es,useFormState:If,useActionState:If,useOptimistic:function(e,t){var l=Ye();return Zf(l,ze,e,t)},useMemoCache:Zc,useCacheRefresh:go};ls.useEffectEvent=ao;var So={readContext:Pe,use:Wi,useCallback:so,useContext:Pe,useEffect:Wc,useImperativeHandle:co,useInsertionEffect:no,useLayoutEffect:io,useMemo:ro,useReducer:Kc,useRef:to,useState:function(){return Kc(pl)},useDebugValue:Fc,useDeferredValue:function(e,t){var l=Ye();return ze===null?Ic(l,e,t):fo(l,ze.memoizedState,e,t)},useTransition:function(){var e=Kc(pl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Ln(e),t]},useSyncExternalStore:Bf,useId:mo,useHostTransitionStatus:es,useFormState:eo,useActionState:eo,useOptimistic:function(e,t){var l=Ye();return ze!==null?Zf(l,ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Zc,useCacheRefresh:go};So.useEffectEvent=ao;function as(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:w({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ns={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=jt(),n=wl(a);n.payload=t,l!=null&&(n.callback=l),t=Rl(e,n,a),t!==null&&(gt(t,e,a),Bn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=jt(),n=wl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Rl(e,n,a),t!==null&&(gt(t,e,a),Bn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=jt(),a=wl(l);a.tag=2,t!=null&&(a.callback=t),t=Rl(e,a,l),t!==null&&(gt(t,e,l),Bn(t,e,l))}};function zo(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?!Mn(l,a)||!Mn(n,i):!0}function To(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&&ns.enqueueReplaceState(t,t.state,null)}function va(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=w({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Eo(e){Di(e)}function Ao(e){console.error(e)}function No(e){Di(e)}function tu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function jo(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 is(e,t,l){return l=wl(l),l.tag=3,l.payload={element:null},l.callback=function(){tu(e,t)},l}function _o(e){return e=wl(e),e.tag=3,e}function Oo(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(){jo(t,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){jo(t,l,a),typeof n!="function"&&(Yl===null?Yl=new Set([this]):Yl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function u0(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Va(t,l,n,!0),l=Tt.current,l!==null){switch(l.tag){case 31:case 13:return Ht===null?hu():l.alternate===null&&He===0&&(He=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Qi?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===Qi?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),hu(),!1}if(re)return t=Tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Ec&&(e=Error(s(422),{cause:a}),Rn(wt(e,l)))):(a!==Ec&&(t=Error(s(423),{cause:a}),Rn(wt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=wt(a,l),n=is(e.stateNode,a,n),Cc(e,n),He!==4&&(He=2)),!1;var i=Error(s(520),{cause:a});if(i=wt(i,l),Pn===null?Pn=[i]:Pn.push(i),He!==4&&(He=2),t===null)return!0;a=wt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=is(l.stateNode,a,e),Cc(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"&&(Yl===null||!Yl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=_o(n),Oo(n,e,l,a),Cc(l,n),!1}l=l.return}while(l!==null);return!1}var us=Error(s(461)),Xe=!1;function et(e,t,l,a){t.child=e===null?Df(t,null,l,a):ya(t,e.child,l,a)}function ko(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 ha(t),a=Gc(e,t,l,u,i,n),f=Qc(),e!==null&&!Xe?(Lc(e,t,n),ml(e,t,n)):(re&&f&&zc(t),t.flags|=1,et(e,t,a,n),t.child)}function Mo(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!vc(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Do(e,t,i,a,n)):(e=Ui(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!ps(e,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:Mn,l(u,a)&&e.ref===t.ref)return ml(e,t,n)}return t.flags|=1,e=rl(i,a),e.ref=t.ref,e.return=t,t.child=e}function Do(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Mn(i,a)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=a=i,ps(e,n))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,ml(e,t,n)}return cs(e,t,l,a,n)}function wo(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 Ro(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yi(t,i!==null?i.cachePool:null),i!==null?Cf(t,i):Hc(),Uf(t);else return a=t.lanes=536870912,Ro(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Yi(t,i.cachePool),Cf(t,i),Ul(),t.memoizedState=null):(e!==null&&Yi(t,null),Hc(),Ul());return et(e,t,n,l),t.child}function Vn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ro(e,t,l,a,n){var i=Mc();return i=i===null?null:{parent:Qe._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Yi(t,null),Hc(),Uf(t),e!==null&&Va(e,t,a,!0),t.childLanes=n,null}function lu(e,t){return t=nu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Co(e,t,l){return ya(t,e.child,null,l),e=lu(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function c0(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(re){if(a.mode==="hidden")return e=lu(t,a),t.lanes=536870912,Vn(null,e);if(Bc(t),(e=_e)?(e=Kd(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_l!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},l=yf(e),l.return=t,t.child=l,Ie=t,_e=null)):e=null,e===null)throw kl(t);return t.lanes=536870912,null}return lu(t,a)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(Bc(t),n)if(t.flags&256)t.flags&=-257,t=Co(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Xe||Va(e,t,l,!1),n=(l&e.childLanes)!==0,Xe||n){if(a=Ne,a!==null&&(u=ka(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,ra(e,u),gt(a,e,u),us;hu(),t=Co(e,t,l)}else e=i.treeContext,_e=qt(u.nextSibling),Ie=t,re=!0,Ol=null,Ut=!1,e!==null&&xf(t,e),t=lu(t,a),t.flags|=4096;return t}return e=rl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function au(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 cs(e,t,l,a,n){return ha(t),l=Gc(e,t,l,a,void 0,n),a=Qc(),e!==null&&!Xe?(Lc(e,t,n),ml(e,t,n)):(re&&a&&zc(t),t.flags|=1,et(e,t,l,n),t.child)}function Uo(e,t,l,a,n,i){return ha(t),t.updateQueue=null,l=qf(t,a,l,n),Hf(e),a=Qc(),e!==null&&!Xe?(Lc(e,t,i),ml(e,t,i)):(re&&a&&zc(t),t.flags|=1,et(e,t,l,i),t.child)}function Ho(e,t,l,a,n){if(ha(t),t.stateNode===null){var i=Qa,u=l.contextType;typeof u=="object"&&u!==null&&(i=Pe(u)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ns,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},wc(t),u=l.contextType,i.context=typeof u=="object"&&u!==null?Pe(u):Qa,i.state=t.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(as(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&&ns.enqueueReplaceState(i,i.state,null),Gn(t,a,i,n),Yn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var f=t.memoizedProps,p=va(l,f);i.props=p;var T=i.context,O=l.contextType;u=Qa,typeof O=="object"&&O!==null&&(u=Pe(O));var R=l.getDerivedStateFromProps;O=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||T!==u)&&To(t,i,a,u),Dl=!1;var E=t.memoizedState;i.state=E,Gn(t,a,i,n),Yn(),T=t.memoizedState,f||E!==T||Dl?(typeof R=="function"&&(as(t,l,R,a),T=t.memoizedState),(p=Dl||zo(t,l,p,a,E,T,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=T),i.props=a,i.state=T,i.context=u,a=p):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Rc(e,t),u=t.memoizedProps,O=va(l,u),i.props=O,R=t.pendingProps,E=i.context,T=l.contextType,p=Qa,typeof T=="object"&&T!==null&&(p=Pe(T)),f=l.getDerivedStateFromProps,(T=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==R||E!==p)&&To(t,i,a,p),Dl=!1,E=t.memoizedState,i.state=E,Gn(t,a,i,n),Yn();var A=t.memoizedState;u!==R||E!==A||Dl||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof f=="function"&&(as(t,l,f,a),A=t.memoizedState),(O=Dl||zo(t,l,O,a,E,A,p)||e!==null&&e.dependencies!==null&&qi(e.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,A,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,A,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),i.props=a,i.state=A,i.context=p,a=O):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,au(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=ya(t,e.child,null,n),t.child=ya(t,null,l,n)):et(e,t,l,n),t.memoizedState=i.state,e=t.child):e=ml(e,t,n),e}function qo(e,t,l,a){return oa(),t.flags|=256,et(e,t,l,a),t.child}var ss={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rs(e){return{baseLanes:e,cachePool:Nf()}}function fs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Nt),e}function Bo(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:(Be.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(re){if(n?Cl(t):Ul(),(e=_e)?(e=Kd(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_l!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},l=yf(e),l.return=t,t.child=l,Ie=t,_e=null)):e=null,e===null)throw kl(t);return Vs(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(Ul(),n=t.mode,f=nu({mode:"hidden",children:f},n),a=fa(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=rs(l),a.childLanes=fs(e,u,l),t.memoizedState=ss,Vn(null,a)):(Cl(t),os(t,f))}var p=e.memoizedState;if(p!==null&&(f=p.dehydrated,f!==null)){if(i)t.flags&256?(Cl(t),t.flags&=-257,t=ds(e,t,l)):t.memoizedState!==null?(Ul(),t.child=e.child,t.flags|=128,t=null):(Ul(),f=a.fallback,n=t.mode,a=nu({mode:"visible",children:a.children},n),f=fa(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,ya(t,e.child,null,l),a=t.child,a.memoizedState=rs(l),a.childLanes=fs(e,u,l),t.memoizedState=ss,t=Vn(null,a));else if(Cl(t),Vs(f)){if(u=f.nextSibling&&f.nextSibling.dataset,u)var T=u.dgst;u=T,a=Error(s(419)),a.stack="",a.digest=u,Rn({value:a,source:null,stack:null}),t=ds(e,t,l)}else if(Xe||Va(e,t,l,!1),u=(l&e.childLanes)!==0,Xe||u){if(u=Ne,u!==null&&(a=ka(u,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,ra(e,a),gt(u,e,a),us;Zs(f)||hu(),t=ds(e,t,l)}else Zs(f)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,_e=qt(f.nextSibling),Ie=t,re=!0,Ol=null,Ut=!1,e!==null&&xf(t,e),t=os(t,a.children),t.flags|=4096);return t}return n?(Ul(),f=a.fallback,n=t.mode,p=e.child,T=p.sibling,a=rl(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,T!==null?f=rl(T,f):(f=fa(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,Vn(null,a),a=t.child,f=e.child.memoizedState,f===null?f=rs(l):(n=f.cachePool,n!==null?(p=Qe._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=Nf(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=fs(e,u,l),t.memoizedState=ss,Vn(e.child,a)):(Cl(t),l=e.child,e=l.sibling,l=rl(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 os(e,t){return t=nu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nu(e,t){return e=zt(22,e,null,t),e.lanes=0,e}function ds(e,t,l){return ya(t,e.child,null,l),e=os(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),jc(e.return,t,l)}function hs(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 Go(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=Be.current,f=(u&2)!==0;if(f?(u=u&1|2,t.flags|=128):u&=1,G(Be,u),et(e,t,a,l),a=re?wn:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yo(e,l,t);else if(e.tag===19)Yo(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&&Vi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),hs(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&&Vi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}hs(t,!0,l,null,i,a);break;case"together":hs(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ml(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Bl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Va(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=rl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=rl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ps(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qi(e)))}function s0(e,t,l){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),Ml(t,Qe,e.memoizedState.cache),oa();break;case 27:case 5:ll(t);break;case 4:Fe(t,t.stateNode.containerInfo);break;case 10:Ml(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Cl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Bo(e,t,l):(Cl(t),e=ml(e,t,l),e!==null?e.sibling:null);Cl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Va(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Go(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),G(Be,Be.current),a)break;return null;case 22:return t.lanes=0,wo(e,t,l,t.pendingProps);case 24:Ml(t,Qe,e.memoizedState.cache)}return ml(e,t,l)}function Qo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!ps(e,l)&&(t.flags&128)===0)return Xe=!1,s0(e,t,l);Xe=(e.flags&131072)!==0}else Xe=!1,re&&(t.flags&1048576)!==0&&vf(t,wn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ma(t.elementType),t.type=e,typeof e=="function")vc(e)?(a=va(e,a),t.tag=1,t=Ho(null,t,e,a,l)):(t.tag=0,t=cs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===lt){t.tag=11,t=ko(null,t,e,a,l);break e}else if(n===ae){t.tag=14,t=Mo(null,t,e,a,l);break e}}throw t=bt(e)||e,Error(s(306,t,""))}}return t;case 0:return cs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=va(a,t.pendingProps),Ho(e,t,a,n,l);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Rc(e,t),Gn(t,a,null,l);var u=t.memoizedState;if(a=u.cache,Ml(t,Qe,a),a!==i.cache&&_c(t,[Qe],l,!0),Yn(),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=qo(e,t,a,l);break e}else if(a!==n){n=wt(Error(s(424)),t),Rn(n),t=qo(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(_e=qt(e.firstChild),Ie=t,re=!0,Ol=null,Ut=!0,l=Df(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(oa(),a===n){t=ml(e,t,l);break e}et(e,t,a,l)}t=t.child}return t;case 26:return au(e,t),e===null?(l=Pd(t.type,null,t.pendingProps,null))?t.memoizedState=l:re||(l=t.type,e=t.pendingProps,a=xu(te.current).createElement(l),a[Q]=t,a[H]=e,tt(a,l,e),$e(a),t.stateNode=a):t.memoizedState=Pd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ll(t),e===null&&re&&(a=t.stateNode=Wd(t.type,t.pendingProps,te.current),Ie=t,Ut=!0,n=_e,Xl(t.type)?(Ks=n,_e=qt(a.firstChild)):_e=n),et(e,t,t.pendingProps.children,l),au(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&re&&((n=a=_e)&&(a=q0(a,t.type,t.pendingProps,Ut),a!==null?(t.stateNode=a,Ie=t,_e=qt(a.firstChild),Ut=!1,n=!0):n=!1),n||kl(t)),ll(t),n=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,a=i.children,Qs(n,i)?a=null:u!==null&&Qs(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=Gc(e,t,Pp,null,null,l),ci._currentValue=n),au(e,t),et(e,t,a,l),t.child;case 6:return e===null&&re&&((e=l=_e)&&(l=B0(l,t.pendingProps,Ut),l!==null?(t.stateNode=l,Ie=t,_e=null,e=!0):e=!1),e||kl(t)),null;case 13:return Bo(e,t,l);case 4:return Fe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ya(t,null,a,l):et(e,t,a,l),t.child;case 11:return ko(e,t,t.type,t.pendingProps,l);case 7:return et(e,t,t.pendingProps,l),t.child;case 8:return et(e,t,t.pendingProps.children,l),t.child;case 12:return et(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Ml(t,t.type,a.value),et(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,ha(t),n=Pe(n),a=a(n),t.flags|=1,et(e,t,a,l),t.child;case 14:return Mo(e,t,t.type,t.pendingProps,l);case 15:return Do(e,t,t.type,t.pendingProps,l);case 19:return Go(e,t,l);case 31:return c0(e,t,l);case 22:return wo(e,t,l,t.pendingProps);case 24:return ha(t),a=Pe(Qe),e===null?(n=Mc(),n===null&&(n=Ne,i=Oc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},wc(t),Ml(t,Qe,n)):((e.lanes&l)!==0&&(Rc(e,t),Gn(t,null,null,l),Yn()),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),Ml(t,Qe,a)):(a=i.cache,Ml(t,Qe,a),a!==n.cache&&_c(t,[Qe],l,!0))),et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function gl(e){e.flags|=4}function ms(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(md())e.flags|=8192;else throw ga=Qi,Dc}else e.flags&=-16777217}function Lo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!nh(t))if(md())e.flags|=8192;else throw ga=Qi,Dc}function iu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Sn():536870912,e.lanes|=t,nn|=t)}function Kn(e,t){if(!re)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function r0(e,t,l){var a=t.pendingProps;switch(Tc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),dl(Qe),ke(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Za(t)?gl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ac())),Oe(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(gl(t),i!==null?(Oe(t),Lo(t,i)):(Oe(t),ms(t,n,null,a,l))):i?i!==e.memoizedState?(gl(t),Oe(t),Lo(t,i)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&gl(t),Oe(t),ms(t,n,e,a,l)),null;case 27:if(Fl(t),l=te.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&gl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}e=L.current,Za(t)?Sf(t):(e=Wd(n,a,l),t.stateNode=e,gl(t))}return Oe(t),null;case 5:if(Fl(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&gl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}if(i=L.current,Za(t))Sf(t);else{var u=xu(te.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[Q]=t,i[H]=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(tt(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&&gl(t)}}return Oe(t),ms(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&gl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=te.current,Za(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ie,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Q]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Bd(e.nodeValue,l)),e||kl(t,!0)}else e=xu(e).createTextNode(a),e[Q]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Za(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[Q]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=Ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Za(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[Q]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=Ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(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),iu(t,t.updateQueue),Oe(t),null);case 4:return ke(),e===null&&Hs(t.stateNode.containerInfo),Oe(t),null;case 10:return dl(t.type),Oe(t),null;case 19:if(D(Be),a=t.memoizedState,a===null)return Oe(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Kn(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Vi(e),i!==null){for(t.flags|=128,Kn(a,!1),e=i.updateQueue,t.updateQueue=e,iu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)gf(l,e),l=l.sibling;return G(Be,Be.current&1|2),re&&fl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ve()>fu&&(t.flags|=128,n=!0,Kn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Vi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,iu(t,e),Kn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!re)return Oe(t),null}else 2*Ve()-a.renderingStartTime>fu&&l!==536870912&&(t.flags|=128,n=!0,Kn(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=Ve(),e.sibling=null,l=Be.current,G(Be,n?l&1|2:l&1),re&&fl(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return Et(t),qc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&iu(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&&D(pa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),dl(Qe),Oe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function f0(e,t){switch(Tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dl(Qe),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fl(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(s(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Be),null;case 4:return ke(),null;case 10:return dl(t.type),null;case 22:case 23:return Et(t),qc(),e!==null&&D(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dl(Qe),null;case 25:return null;default:return null}}function Xo(e,t){switch(Tc(t),t.tag){case 3:dl(Qe),ke();break;case 26:case 27:case 5:Fl(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:D(Be);break;case 10:dl(t.type);break;case 22:case 23:Et(t),qc(),e!==null&&D(pa);break;case 24:dl(Qe)}}function Jn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(f){ve(t,t.return,f)}}function Hl(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 p=l,T=f;try{T()}catch(O){ve(n,p,O)}}}a=a.next}while(a!==i)}}catch(O){ve(t,t.return,O)}}function Zo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Rf(t,l)}catch(a){ve(e,e.return,a)}}}function Vo(e,t,l){l.props=va(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ve(e,t,a)}}function $n(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){ve(e,t,n)}}function Pt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ve(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ve(e,t,n)}else l.current=null}function Ko(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ve(e,e.return,n)}}function gs(e,t,l){try{var a=e.stateNode;D0(a,e.type,l,t),a[H]=t}catch(n){ve(e,e.return,n)}}function Jo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xl(e.type)||e.tag===4}function ys(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jo(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&&Xl(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 bs(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=cl));else if(a!==4&&(a===27&&Xl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(bs(e,t,l),e=e.sibling;e!==null;)bs(e,t,l),e=e.sibling}function uu(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&&Xl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(uu(e,t,l),e=e.sibling;e!==null;)uu(e,t,l),e=e.sibling}function $o(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);tt(t,a,l),t[Q]=e,t[H]=l}catch(i){ve(e,e.return,i)}}var yl=!1,Ze=!1,vs=!1,Wo=typeof WeakSet=="function"?WeakSet:Set,We=null;function o0(e,t){if(e=e.containerInfo,Ys=ju,e=cf(e),dc(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,p=-1,T=0,O=0,R=e,E=null;t:for(;;){for(var A;R!==l||n!==0&&R.nodeType!==3||(f=u+n),R!==i||a!==0&&R.nodeType!==3||(p=u+a),R.nodeType===3&&(u+=R.nodeValue.length),(A=R.firstChild)!==null;)E=R,R=A;for(;;){if(R===e)break t;if(E===l&&++T===n&&(f=u),E===i&&++O===a&&(p=u),(A=R.nextSibling)!==null)break;R=E,E=R.parentNode}R=A}l=f===-1||p===-1?null:{start:f,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Gs={focusedElem:e,selectionRange:l},ju=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,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=va(l.type,n);e=a.getSnapshotBeforeUpdate(X,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(J){ve(l,l.return,J)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Xs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xs(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,We=e;break}We=t.return}}function Fo(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:vl(e,l),a&4&&Jn(5,l);break;case 1:if(vl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(u){ve(l,l.return,u)}else{var n=va(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){ve(l,l.return,u)}}a&64&&Zo(l),a&512&&$n(l,l.return);break;case 3:if(vl(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{Rf(e,t)}catch(u){ve(l,l.return,u)}}break;case 27:t===null&&a&4&&$o(l);case 26:case 5:vl(e,l),t===null&&a&4&&Ko(l),a&512&&$n(l,l.return);break;case 12:vl(e,l);break;case 31:vl(e,l),a&4&&ed(e,l);break;case 13:vl(e,l),a&4&&td(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=x0.bind(null,l),Y0(e,l))));break;case 22:if(a=l.memoizedState!==null||yl,!a){t=t!==null&&t.memoizedState!==null||Ze,n=yl;var i=Ze;yl=a,(Ze=t)&&!i?xl(e,l,(l.subtreeFlags&8772)!==0):vl(e,l),yl=n,Ze=i}break;case 30:break;default:vl(e,l)}}function Io(e){var t=e.alternate;t!==null&&(e.alternate=null,Io(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Da(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var De=null,dt=!1;function bl(e,t,l){for(l=l.child;l!==null;)Po(e,t,l),l=l.sibling}function Po(e,t,l){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(Gt,l)}catch{}switch(l.tag){case 26:Ze||Pt(l,t),bl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ze||Pt(l,t);var a=De,n=dt;Xl(l.type)&&(De=l.stateNode,dt=!1),bl(e,t,l),ni(l.stateNode),De=a,dt=n;break;case 5:Ze||Pt(l,t);case 6:if(a=De,n=dt,De=null,bl(e,t,l),De=a,dt=n,De!==null)if(dt)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(l.stateNode)}catch(i){ve(l,t,i)}else try{De.removeChild(l.stateNode)}catch(i){ve(l,t,i)}break;case 18:De!==null&&(dt?(e=De,Zd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),hn(e)):Zd(De,l.stateNode));break;case 4:a=De,n=dt,De=l.stateNode.containerInfo,dt=!0,bl(e,t,l),De=a,dt=n;break;case 0:case 11:case 14:case 15:Hl(2,l,t),Ze||Hl(4,l,t),bl(e,t,l);break;case 1:Ze||(Pt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Vo(l,t,a)),bl(e,t,l);break;case 21:bl(e,t,l);break;case 22:Ze=(a=Ze)||l.memoizedState!==null,bl(e,t,l),Ze=a;break;default:bl(e,t,l)}}function ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hn(e)}catch(l){ve(t,t.return,l)}}}function td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hn(e)}catch(l){ve(t,t.return,l)}}function d0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Wo),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wo),t;default:throw Error(s(435,e.tag))}}function cu(e,t){var l=d0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=S0.bind(null,e,a);a.then(n,n)}})}function ht(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(Xl(f.type)){De=f.stateNode,dt=!1;break e}break;case 5:De=f.stateNode,dt=!1;break e;case 3:case 4:De=f.stateNode.containerInfo,dt=!0;break e}f=f.return}if(De===null)throw Error(s(160));Po(i,u,n),De=null,dt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ld(t,e),t=t.sibling}var Lt=null;function ld(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ht(t,e),pt(e),a&4&&(Hl(3,e,e.return),Jn(3,e),Hl(5,e,e.return));break;case 1:ht(t,e),pt(e),a&512&&(Ze||l===null||Pt(l,l.return)),a&64&&yl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Lt;if(ht(t,e),pt(e),a&512&&(Ze||l===null||Pt(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[Al]||i[Q]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),tt(i,a,l),i[Q]=e,$e(i),a=i;break e;case"link":var u=lh("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),tt(i,a,l),n.head.appendChild(i);break;case"meta":if(u=lh("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),tt(i,a,l),n.head.appendChild(i);break;default:throw Error(s(468,a))}i[Q]=e,$e(i),a=i}e.stateNode=a}else ah(n,e.type,e.stateNode);else e.stateNode=th(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?ah(n,e.type,e.stateNode):th(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&gs(e,e.memoizedProps,l.memoizedProps)}break;case 27:ht(t,e),pt(e),a&512&&(Ze||l===null||Pt(l,l.return)),l!==null&&a&4&&gs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ht(t,e),pt(e),a&512&&(Ze||l===null||Pt(l,l.return)),e.flags&32){n=e.stateNode;try{Ca(n,"")}catch(X){ve(e,e.return,X)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,gs(e,n,l!==null?l.memoizedProps:n)),a&1024&&(vs=!0);break;case 6:if(ht(t,e),pt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(X){ve(e,e.return,X)}}break;case 3:if(Tu=null,n=Lt,Lt=Su(t.containerInfo),ht(t,e),Lt=n,pt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{hn(t.containerInfo)}catch(X){ve(e,e.return,X)}vs&&(vs=!1,ad(e));break;case 4:a=Lt,Lt=Su(e.stateNode.containerInfo),ht(t,e),pt(e),Lt=a;break;case 12:ht(t,e),pt(e);break;case 31:ht(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,cu(e,a)));break;case 13:ht(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ru=Ve()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,cu(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,T=yl,O=Ze;if(yl=T||n,Ze=O||p,ht(t,e),Ze=O,yl=T,pt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||yl||Ze||xa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(i=p.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{f=p.stateNode;var R=p.memoizedProps.style,E=R!=null&&R.hasOwnProperty("display")?R.display:null;f.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(X){ve(p,p.return,X)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(X){ve(p,p.return,X)}}}else if(t.tag===18){if(l===null){p=t;try{var A=p.stateNode;n?Vd(A,!0):Vd(p.stateNode,!1)}catch(X){ve(p,p.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,cu(e,l))));break;case 19:ht(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,cu(e,a)));break;case 30:break;case 21:break;default:ht(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Jo(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var n=l.stateNode,i=ys(e);uu(e,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(Ca(u,""),l.flags&=-33);var f=ys(e);uu(e,f,u);break;case 3:case 4:var p=l.stateNode.containerInfo,T=ys(e);bs(e,T,p);break;default:throw Error(s(161))}}catch(O){ve(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ad(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ad(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fo(e,t.alternate,t),t=t.sibling}function xa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Hl(4,t,t.return),xa(t);break;case 1:Pt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Vo(t,t.return,l),xa(t);break;case 27:ni(t.stateNode);case 26:case 5:Pt(t,t.return),xa(t);break;case 22:t.memoizedState===null&&xa(t);break;case 30:xa(t);break;default:xa(t)}e=e.sibling}}function xl(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:xl(n,i,l),Jn(4,i);break;case 1:if(xl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){ve(a,a.return,T)}if(a=i,n=a.updateQueue,n!==null){var f=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)wf(p[n],f)}catch(T){ve(a,a.return,T)}}l&&u&64&&Zo(i),$n(i,i.return);break;case 27:$o(i);case 26:case 5:xl(n,i,l),l&&a===null&&u&4&&Ko(i),$n(i,i.return);break;case 12:xl(n,i,l);break;case 31:xl(n,i,l),l&&u&4&&ed(n,i);break;case 13:xl(n,i,l),l&&u&4&&td(n,i);break;case 22:i.memoizedState===null&&xl(n,i,l),$n(i,i.return);break;case 30:break;default:xl(n,i,l)}t=t.sibling}}function xs(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&&Cn(l))}function Ss(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cn(e))}function Xt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)nd(e,t,l,a),t=t.sibling}function nd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Xt(e,t,l,a),n&2048&&Jn(9,t);break;case 1:Xt(e,t,l,a);break;case 3:Xt(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&&Cn(e)));break;case 12:if(n&2048){Xt(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(p){ve(t,t.return,p)}}else Xt(e,t,l,a);break;case 31:Xt(e,t,l,a);break;case 13:Xt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?Xt(e,t,l,a):Wn(e,t):i._visibility&2?Xt(e,t,l,a):(i._visibility|=2,tn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&xs(u,t);break;case 24:Xt(e,t,l,a),n&2048&&Ss(t.alternate,t);break;default:Xt(e,t,l,a)}}function tn(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,p=a,T=u.flags;switch(u.tag){case 0:case 11:case 15:tn(i,u,f,p,n),Jn(8,u);break;case 23:break;case 22:var O=u.stateNode;u.memoizedState!==null?O._visibility&2?tn(i,u,f,p,n):Wn(i,u):(O._visibility|=2,tn(i,u,f,p,n)),n&&T&2048&&xs(u.alternate,u);break;case 24:tn(i,u,f,p,n),n&&T&2048&&Ss(u.alternate,u);break;default:tn(i,u,f,p,n)}t=t.sibling}}function Wn(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:Wn(l,a),n&2048&&xs(a.alternate,a);break;case 24:Wn(l,a),n&2048&&Ss(a.alternate,a);break;default:Wn(l,a)}t=t.sibling}}var Fn=8192;function ln(e,t,l){if(e.subtreeFlags&Fn)for(e=e.child;e!==null;)id(e,t,l),e=e.sibling}function id(e,t,l){switch(e.tag){case 26:ln(e,t,l),e.flags&Fn&&e.memoizedState!==null&&I0(l,Lt,e.memoizedState,e.memoizedProps);break;case 5:ln(e,t,l);break;case 3:case 4:var a=Lt;Lt=Su(e.stateNode.containerInfo),ln(e,t,l),Lt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Fn,Fn=16777216,ln(e,t,l),Fn=a):ln(e,t,l));break;default:ln(e,t,l)}}function ud(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 In(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];We=a,sd(a,e)}ud(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cd(e),e=e.sibling}function cd(e){switch(e.tag){case 0:case 11:case 15:In(e),e.flags&2048&&Hl(9,e,e.return);break;case 3:In(e);break;case 12:In(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,su(e)):In(e);break;default:In(e)}}function su(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];We=a,sd(a,e)}ud(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Hl(8,t,t.return),su(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,su(t));break;default:su(t)}e=e.sibling}}function sd(e,t){for(;We!==null;){var l=We;switch(l.tag){case 0:case 11:case 15:Hl(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:Cn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,We=a;else e:for(l=e;We!==null;){a=We;var n=a.sibling,i=a.return;if(Io(a),a===l){We=null;break e}if(n!==null){n.return=i,We=n;break e}We=i}}}var h0={getCacheForType:function(e){var t=Pe(Qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Pe(Qe).controller.signal}},p0=typeof WeakMap=="function"?WeakMap:Map,ye=0,Ne=null,ne=null,ce=0,be=0,At=null,ql=!1,an=!1,zs=!1,Sl=0,He=0,Bl=0,Sa=0,Ts=0,Nt=0,nn=0,Pn=null,mt=null,Es=!1,ru=0,rd=0,fu=1/0,ou=null,Yl=null,Je=0,Gl=null,un=null,zl=0,As=0,Ns=null,fd=null,ei=0,js=null;function jt(){return(ye&2)!==0&&ce!==0?ce&-ce:k.T!==null?ws():g()}function od(){if(Nt===0)if((ce&536870912)===0||re){var e=_a;_a<<=1,(_a&3932160)===0&&(_a=262144),Nt=e}else Nt=536870912;return e=Tt.current,e!==null&&(e.flags|=32),Nt}function gt(e,t,l){(e===Ne&&(be===2||be===9)||e.cancelPendingCommit!==null)&&(cn(e,0),Ql(e,ce,Nt,!1)),ta(e,l),((ye&2)===0||e!==Ne)&&(e===Ne&&((ye&2)===0&&(Sa|=l),He===4&&Ql(e,ce,Nt,!1)),el(e))}function dd(e,t,l){if((ye&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||$t(e,t),n=a?y0(e,t):Os(e,t,!0),i=a;do{if(n===0){an&&!a&&Ql(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!m0(l)){n=Os(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=Pn;var p=f.current.memoizedState.isDehydrated;if(p&&(cn(f,u).flags|=256),u=Os(f,u,!1),u!==2){if(zs&&!p){f.errorRecoveryDisabledLanes|=i,Sa|=i,n=4;break e}i=mt,mt=n,i!==null&&(mt===null?mt=i:mt.push.apply(mt,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){cn(e,0),Ql(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:Ql(a,t,Nt,!ql);break e;case 2:mt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=ru+300-Ve(),10<n)){if(Ql(a,t,Nt,!ql),ea(a,0,!0)!==0)break e;zl=t,a.timeoutHandle=Ld(hd.bind(null,a,l,mt,ou,Es,t,Nt,Sa,nn,ql,i,"Throttled",-0,0),n);break e}hd(a,l,mt,ou,Es,t,Nt,Sa,nn,ql,i,null,-0,0)}}break}while(!0);el(e)}function hd(e,t,l,a,n,i,u,f,p,T,O,R,E,A){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cl},id(t,i,R);var X=(i&62914560)===i?ru-Ve():(i&4194048)===i?rd-Ve():0;if(X=P0(R,X),X!==null){zl=i,e.cancelPendingCommit=X(Sd.bind(null,e,t,i,l,a,n,u,f,p,O,R,null,E,A)),Ql(e,i,u,!T);return}}Sd(e,t,i,l,a,n,u,f,p)}function m0(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(!St(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 Ql(e,t,l,a){t&=~Ts,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-ct(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&Tn(e,l,t)}function du(){return(ye&6)===0?(ti(0),!1):!0}function _s(){if(ne!==null){if(be===0)var e=ne.return;else e=ne,ol=da=null,Xc(e),Wa=null,Hn=0,e=ne;for(;e!==null;)Xo(e.alternate,e),e=e.return;ne=null}}function cn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,C0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),zl=0,_s(),Ne=e,ne=l=rl(e.current,null),ce=t,be=0,At=null,ql=!1,an=$t(e,t),zs=!1,nn=Nt=Ts=Sa=Bl=He=0,mt=Pn=null,Es=!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-ct(a),i=1<<n;t|=e[n],a&=~i}return Sl=t,wi(),l}function pd(e,t){P=null,k.H=Zn,t===$a||t===Gi?(t=Of(),be=3):t===Dc?(t=Of(),be=4):be=t===us?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,At=t,ne===null&&(He=1,tu(e,wt(t,e.current)))}function md(){var e=Tt.current;return e===null?!0:(ce&4194048)===ce?Ht===null:(ce&62914560)===ce||(ce&536870912)!==0?e===Ht:!1}function gd(){var e=k.H;return k.H=Zn,e===null?Zn:e}function yd(){var e=k.A;return k.A=h0,e}function hu(){He=4,ql||(ce&4194048)!==ce&&Tt.current!==null||(an=!0),(Bl&134217727)===0&&(Sa&134217727)===0||Ne===null||Ql(Ne,ce,Nt,!1)}function Os(e,t,l){var a=ye;ye|=2;var n=gd(),i=yd();(Ne!==e||ce!==t)&&(ou=null,cn(e,t)),t=!1;var u=He;e:do try{if(be!==0&&ne!==null){var f=ne,p=At;switch(be){case 8:_s(),u=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(t=!0);var T=be;if(be=0,At=null,sn(e,f,p,T),l&&an){u=0;break e}break;default:T=be,be=0,At=null,sn(e,f,p,T)}}g0(),u=He;break}catch(O){pd(e,O)}while(!0);return t&&e.shellSuspendCounter++,ol=da=null,ye=a,k.H=n,k.A=i,ne===null&&(Ne=null,ce=0,wi()),u}function g0(){for(;ne!==null;)bd(ne)}function y0(e,t){var l=ye;ye|=2;var a=gd(),n=yd();Ne!==e||ce!==t?(ou=null,fu=Ve()+500,cn(e,t)):an=$t(e,t);e:do try{if(be!==0&&ne!==null){t=ne;var i=At;t:switch(be){case 1:be=0,At=null,sn(e,t,i,1);break;case 2:case 9:if(jf(i)){be=0,At=null,vd(t);break}t=function(){be!==2&&be!==9||Ne!==e||(be=7),el(e)},i.then(t,t);break e;case 3:be=7;break e;case 4:be=5;break e;case 7:jf(i)?(be=0,At=null,vd(t)):(be=0,At=null,sn(e,t,i,7));break;case 5:var u=null;switch(ne.tag){case 26:u=ne.memoizedState;case 5:case 27:var f=ne;if(u?nh(u):f.stateNode.complete){be=0,At=null;var p=f.sibling;if(p!==null)ne=p;else{var T=f.return;T!==null?(ne=T,pu(T)):ne=null}break t}}be=0,At=null,sn(e,t,i,5);break;case 6:be=0,At=null,sn(e,t,i,6);break;case 8:_s(),He=6;break e;default:throw Error(s(462))}}b0();break}catch(O){pd(e,O)}while(!0);return ol=da=null,k.H=a,k.A=n,ye=l,ne!==null?0:(Ne=null,ce=0,wi(),He)}function b0(){for(;ne!==null&&!vn();)bd(ne)}function bd(e){var t=Qo(e.alternate,e,Sl);e.memoizedProps=e.pendingProps,t===null?pu(e):ne=t}function vd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Uo(l,t,t.pendingProps,t.type,void 0,ce);break;case 11:t=Uo(l,t,t.pendingProps,t.type.render,t.ref,ce);break;case 5:Xc(t);default:Xo(l,t),t=ne=gf(t,Sl),t=Qo(l,t,Sl)}e.memoizedProps=e.pendingProps,t===null?pu(e):ne=t}function sn(e,t,l,a){ol=da=null,Xc(t),Wa=null,Hn=0;var n=t.return;try{if(u0(e,n,t,l,ce)){He=1,tu(e,wt(l,e.current)),ne=null;return}}catch(i){if(n!==null)throw ne=n,i;He=1,tu(e,wt(l,e.current)),ne=null;return}t.flags&32768?(re||a===1?e=!0:an||(ce&536870912)!==0?e=!1:(ql=e=!0,(a===2||a===9||a===3||a===6)&&(a=Tt.current,a!==null&&a.tag===13&&(a.flags|=16384))),xd(t,e)):pu(t)}function pu(e){var t=e;do{if((t.flags&32768)!==0){xd(t,ql);return}e=t.return;var l=r0(t.alternate,t,Sl);if(l!==null){ne=l;return}if(t=t.sibling,t!==null){ne=t;return}ne=t=e}while(t!==null);He===0&&(He=5)}function xd(e,t){do{var l=f0(e.alternate,e);if(l!==null){l.flags&=32767,ne=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ne=e;return}ne=e=l}while(e!==null);He=6,ne=null}function Sd(e,t,l,a,n,i,u,f,p){e.cancelPendingCommit=null;do mu();while(Je!==0);if((ye&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(i=t.lanes|t.childLanes,i|=yc,$u(e,l,i,u,f,p),e===Ne&&(ne=Ne=null,ce=0),un=t,Gl=e,zl=l,As=i,Ns=n,fd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,z0(El,function(){return Nd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null,n=B.p,B.p=2,u=ye,ye|=4;try{o0(e,t,l)}finally{ye=u,B.p=n,k.T=a}}Je=1,zd(),Td(),Ed()}}function zd(){if(Je===1){Je=0;var e=Gl,t=un,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=k.T,k.T=null;var a=B.p;B.p=2;var n=ye;ye|=4;try{ld(t,e);var i=Gs,u=cf(e.containerInfo),f=i.focusedElem,p=i.selectionRange;if(u!==f&&f&&f.ownerDocument&&uf(f.ownerDocument.documentElement,f)){if(p!==null&&dc(f)){var T=p.start,O=p.end;if(O===void 0&&(O=T),"selectionStart"in f)f.selectionStart=T,f.selectionEnd=Math.min(O,f.value.length);else{var R=f.ownerDocument||document,E=R&&R.defaultView||window;if(E.getSelection){var A=E.getSelection(),X=f.textContent.length,J=Math.min(p.start,X),Ee=p.end===void 0?J:Math.min(p.end,X);!A.extend&&J>Ee&&(u=Ee,Ee=J,J=u);var v=nf(f,J),y=nf(f,Ee);if(v&&y&&(A.rangeCount!==1||A.anchorNode!==v.node||A.anchorOffset!==v.offset||A.focusNode!==y.node||A.focusOffset!==y.offset)){var z=R.createRange();z.setStart(v.node,v.offset),A.removeAllRanges(),J>Ee?(A.addRange(z),A.extend(y.node,y.offset)):(z.setEnd(y.node,y.offset),A.addRange(z))}}}}for(R=[],A=f;A=A.parentNode;)A.nodeType===1&&R.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<R.length;f++){var M=R[f];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}ju=!!Ys,Gs=Ys=null}finally{ye=n,B.p=a,k.T=l}}e.current=t,Je=2}}function Td(){if(Je===2){Je=0;var e=Gl,t=un,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=k.T,k.T=null;var a=B.p;B.p=2;var n=ye;ye|=4;try{Fo(e,t.alternate,t)}finally{ye=n,B.p=a,k.T=l}}Je=3}}function Ed(){if(Je===4||Je===3){Je=0,Yt();var e=Gl,t=un,l=zl,a=fd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,un=Gl=null,Ad(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Yl=null),Ma(l),t=t.stateNode,Ke&&typeof Ke.onCommitFiberRoot=="function")try{Ke.onCommitFiberRoot(Gt,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=k.T,n=B.p,B.p=2,k.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{k.T=t,B.p=n}}(zl&3)!==0&&mu(),el(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===js?ei++:(ei=0,js=e):ei=0,ti(0)}}function Ad(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cn(t)))}function mu(){return zd(),Td(),Ed(),Nd()}function Nd(){if(Je!==5)return!1;var e=Gl,t=As;As=0;var l=Ma(zl),a=k.T,n=B.p;try{B.p=32>l?32:l,k.T=null,l=Ns,Ns=null;var i=Gl,u=zl;if(Je=0,un=Gl=null,zl=0,(ye&6)!==0)throw Error(s(331));var f=ye;if(ye|=4,cd(i.current),nd(i,i.current,u,l),ye=f,ti(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot=="function")try{Ke.onPostCommitFiberRoot(Gt,i)}catch{}return!0}finally{B.p=n,k.T=a,Ad(e,t)}}function jd(e,t,l){t=wt(l,t),t=is(e.stateNode,t,2),e=Rl(e,t,2),e!==null&&(ta(e,2),el(e))}function ve(e,t,l){if(e.tag===3)jd(e,e,l);else for(;t!==null;){if(t.tag===3){jd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Yl===null||!Yl.has(a))){e=wt(l,e),l=_o(2),a=Rl(t,l,2),a!==null&&(Oo(l,a,t,e),ta(a,2),el(a));break}}t=t.return}}function ks(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new p0;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)||(zs=!0,n.add(l),e=v0.bind(null,e,t,l),t.then(e,e))}function v0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ne===e&&(ce&l)===l&&(He===4||He===3&&(ce&62914560)===ce&&300>Ve()-ru?(ye&2)===0&&cn(e,0):Ts|=l,nn===ce&&(nn=0)),el(e)}function _d(e,t){t===0&&(t=Sn()),e=ra(e,t),e!==null&&(ta(e,t),el(e))}function x0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),_d(e,l)}function S0(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),_d(e,l)}function z0(e,t){return Jt(e,t)}var gu=null,rn=null,Ms=!1,yu=!1,Ds=!1,Ll=0;function el(e){e!==rn&&e.next===null&&(rn===null?gu=rn=e:rn=rn.next=e),yu=!0,Ms||(Ms=!0,E0())}function ti(e,t){if(!Ds&&yu){Ds=!0;do for(var l=!1,a=gu;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-ct(42|e)+1)-1,i&=n&~(u&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Dd(a,i))}else i=ce,i=ea(a,a===Ne?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||$t(a,i)||(l=!0,Dd(a,i));a=a.next}while(l);Ds=!1}}function T0(){Od()}function Od(){yu=Ms=!1;var e=0;Ll!==0&&R0()&&(e=Ll);for(var t=Ve(),l=null,a=gu;a!==null;){var n=a.next,i=kd(a,t);i===0?(a.next=null,l===null?gu=n:l.next=n,n===null&&(rn=l)):(l=a,(e!==0||(i&3)!==0)&&(yu=!0)),a=n}Je!==0&&Je!==5||ti(e),Ll!==0&&(Ll=0)}function kd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-ct(i),f=1<<u,p=n[u];p===-1?((f&l)===0||(f&a)!==0)&&(n[u]=Ju(f,t)):p<=t&&(e.expiredLanes|=f),i&=~f}if(t=Ne,l=ce,l=ea(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(be===2||be===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&bn(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||$t(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&bn(a),Ma(l)){case 2:case 8:l=vi;break;case 32:l=El;break;case 268435456:l=xi;break;default:l=El}return a=Md.bind(null,e),l=Jt(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&bn(a),e.callbackPriority=2,e.callbackNode=null,2}function Md(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(mu()&&e.callbackNode!==l)return null;var a=ce;return a=ea(e,e===Ne?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(dd(e,a,t),kd(e,Ve()),e.callbackNode!=null&&e.callbackNode===l?Md.bind(null,e):null)}function Dd(e,t){if(mu())return null;dd(e,t,!0)}function E0(){U0(function(){(ye&6)!==0?Jt(bi,T0):Od()})}function ws(){if(Ll===0){var e=Ka;e===0&&(e=ja,ja<<=1,(ja&261888)===0&&(ja=256)),Ll=e}return Ll}function wd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ai(""+e)}function Rd(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 A0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=wd((n[H]||null).action),u=a.submitter;u&&(t=(t=u[H]||null)?wd(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var f=new Oi("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ll!==0){var p=u?Rd(n,u):new FormData(n);Pc(l,{pending:!0,data:p,method:n.method,action:i},null,p)}}else typeof i=="function"&&(f.preventDefault(),p=u?Rd(n,u):new FormData(n),Pc(l,{pending:!0,data:p,method:n.method,action:i},i,p))},currentTarget:n}]})}}for(var Rs=0;Rs<gc.length;Rs++){var Cs=gc[Rs],N0=Cs.toLowerCase(),j0=Cs[0].toUpperCase()+Cs.slice(1);Qt(N0,"on"+j0)}Qt(ff,"onAnimationEnd"),Qt(of,"onAnimationIteration"),Qt(df,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(Lp,"onTransitionRun"),Qt(Xp,"onTransitionStart"),Qt(Zp,"onTransitionCancel"),Qt(hf,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),_0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(li));function Cd(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],p=f.instance,T=f.currentTarget;if(f=f.listener,p!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=T;try{i(n)}catch(O){Di(O)}n.currentTarget=null,i=p}else for(u=0;u<a.length;u++){if(f=a[u],p=f.instance,T=f.currentTarget,f=f.listener,p!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=T;try{i(n)}catch(O){Di(O)}n.currentTarget=null,i=p}}}}function ie(e,t){var l=t[Me];l===void 0&&(l=t[Me]=new Set);var a=e+"__bubble";l.has(a)||(Ud(t,e,2,!1),l.add(a))}function Us(e,t,l){var a=0;t&&(a|=4),Ud(l,e,a,t)}var bu="_reactListening"+Math.random().toString(36).slice(2);function Hs(e){if(!e[bu]){e[bu]=!0,jr.forEach(function(l){l!=="selectionchange"&&(_0.has(l)||Us(l,!1,e),Us(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bu]||(t[bu]=!0,Us("selectionchange",!1,t))}}function Ud(e,t,l,a){switch(oh(t)){case 2:var n=lm;break;case 8:n=am;break;default:n=Is}l=n.bind(null,t,l,e),n=void 0,!ac||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 qs(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 p=u.tag;if((p===3||p===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;f!==null;){if(u=il(f),u===null)return;if(p=u.tag,p===5||p===6||p===26||p===27){a=i=u;continue e}f=f.parentNode}}a=a.return}Br(function(){var T=i,O=tc(l),R=[];e:{var E=pf.get(e);if(E!==void 0){var A=Oi,X=e;switch(e){case"keypress":if(ji(l)===0)break e;case"keydown":case"keyup":A=Sp;break;case"focusin":X="focus",A=cc;break;case"focusout":X="blur",A=cc;break;case"beforeblur":case"afterblur":A=cc;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":A=Qr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=rp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Ep;break;case ff:case of:case df:A=dp;break;case hf:A=Np;break;case"scroll":case"scrollend":A=cp;break;case"wheel":A=_p;break;case"copy":case"cut":case"paste":A=pp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Xr;break;case"toggle":case"beforetoggle":A=kp}var J=(t&4)!==0,Ee=!J&&(e==="scroll"||e==="scrollend"),v=J?E!==null?E+"Capture":null:E;J=[];for(var y=T,z;y!==null;){var M=y;if(z=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||z===null||v===null||(M=En(y,v),M!=null&&J.push(ai(y,M,z))),Ee)break;y=y.return}0<J.length&&(E=new A(E,X,null,l,O),R.push({event:E,listeners:J}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",E&&l!==ec&&(X=l.relatedTarget||l.fromElement)&&(il(X)||X[Se]))break e;if((A||E)&&(E=O.window===O?O:(E=O.ownerDocument)?E.defaultView||E.parentWindow:window,A?(X=l.relatedTarget||l.toElement,A=T,X=X?il(X):null,X!==null&&(Ee=x(X),J=X.tag,X!==Ee||J!==5&&J!==27&&J!==6)&&(X=null)):(A=null,X=T),A!==X)){if(J=Qr,M="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(J=Xr,M="onPointerLeave",v="onPointerEnter",y="pointer"),Ee=A==null?E:na(A),z=X==null?E:na(X),E=new J(M,y+"leave",A,l,O),E.target=Ee,E.relatedTarget=z,M=null,il(O)===T&&(J=new J(v,y+"enter",X,l,O),J.target=z,J.relatedTarget=Ee,M=J),Ee=M,A&&X)t:{for(J=O0,v=A,y=X,z=0,M=v;M;M=J(M))z++;M=0;for(var V=y;V;V=J(V))M++;for(;0<z-M;)v=J(v),z--;for(;0<M-z;)y=J(y),M--;for(;z--;){if(v===y||y!==null&&v===y.alternate){J=v;break t}v=J(v),y=J(y)}J=null}else J=null;A!==null&&Hd(R,E,A,J,!1),X!==null&&Ee!==null&&Hd(R,Ee,X,J,!0)}}e:{if(E=T?na(T):window,A=E.nodeName&&E.nodeName.toLowerCase(),A==="select"||A==="input"&&E.type==="file")var he=Ir;else if(Wr(E))if(Pr)he=Yp;else{he=qp;var Z=Hp}else A=E.nodeName,!A||A.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?T&&Pu(T.elementType)&&(he=Ir):he=Bp;if(he&&(he=he(e,T))){Fr(R,he,l,O);break e}Z&&Z(e,E,T),e==="focusout"&&T&&E.type==="number"&&T.memoizedProps.value!=null&&Iu(E,"number",E.value)}switch(Z=T?na(T):window,e){case"focusin":(Wr(Z)||Z.contentEditable==="true")&&(Ba=Z,hc=T,Dn=null);break;case"focusout":Dn=hc=Ba=null;break;case"mousedown":pc=!0;break;case"contextmenu":case"mouseup":case"dragend":pc=!1,sf(R,l,O);break;case"selectionchange":if(Qp)break;case"keydown":case"keyup":sf(R,l,O)}var ee;if(rc)e:{switch(e){case"compositionstart":var se="onCompositionStart";break e;case"compositionend":se="onCompositionEnd";break e;case"compositionupdate":se="onCompositionUpdate";break e}se=void 0}else qa?Jr(e,l)&&(se="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(se="onCompositionStart");se&&(Zr&&l.locale!=="ko"&&(qa||se!=="onCompositionStart"?se==="onCompositionEnd"&&qa&&(ee=Yr()):(jl=O,nc="value"in jl?jl.value:jl.textContent,qa=!0)),Z=vu(T,se),0<Z.length&&(se=new Lr(se,e,null,l,O),R.push({event:se,listeners:Z}),ee?se.data=ee:(ee=$r(l),ee!==null&&(se.data=ee)))),(ee=Dp?wp(e,l):Rp(e,l))&&(se=vu(T,"onBeforeInput"),0<se.length&&(Z=new Lr("onBeforeInput","beforeinput",null,l,O),R.push({event:Z,listeners:se}),Z.data=ee)),A0(R,e,T,l,O)}Cd(R,t)})}function ai(e,t,l){return{instance:e,listener:t,currentTarget:l}}function vu(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=En(e,l),n!=null&&a.unshift(ai(e,n,i)),n=En(e,t),n!=null&&a.push(ai(e,n,i))),e.tag===3)return a;e=e.return}return[]}function O0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hd(e,t,l,a,n){for(var i=t._reactName,u=[];l!==null&&l!==a;){var f=l,p=f.alternate,T=f.stateNode;if(f=f.tag,p!==null&&p===a)break;f!==5&&f!==26&&f!==27||T===null||(p=T,n?(T=En(l,i),T!=null&&u.unshift(ai(l,T,p))):n||(T=En(l,i),T!=null&&u.push(ai(l,T,p)))),l=l.return}u.length!==0&&e.push({event:t,listeners:u})}var k0=/\r\n?/g,M0=/\u0000|\uFFFD/g;function qd(e){return(typeof e=="string"?e:""+e).replace(k0,`
|
|
49
|
+
`).replace(M0,"")}function Bd(e,t){return t=qd(t),qd(e)===t}function Te(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ca(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ca(e,""+a);break;case"className":Ti(e,"class",a);break;case"tabIndex":Ti(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ti(e,l,a);break;case"style":Hr(e,a,i);break;case"data":if(t!=="object"){Ti(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=Ai(""+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"&&Te(e,t,"name",n.name,n,null),Te(e,t,"formEncType",n.formEncType,n,null),Te(e,t,"formMethod",n.formMethod,n,null),Te(e,t,"formTarget",n.formTarget,n,null)):(Te(e,t,"encType",n.encType,n,null),Te(e,t,"method",n.method,n,null),Te(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Ai(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=cl);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("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=Ai(""+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":ie("beforetoggle",e),ie("toggle",e),zi(e,"popover",a);break;case"xlinkActuate":ul(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ul(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ul(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ul(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ul(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ul(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ul(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ul(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ul(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":zi(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=ip.get(l)||l,zi(e,l,a))}}function Bs(e,t,l,a,n,i){switch(l){case"style":Hr(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"?Ca(e,a):(typeof a=="number"||typeof a=="bigint")&&Ca(e,""+a);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("scrollend",e);break;case"onClick":a!=null&&(e.onclick=cl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_r.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[H]||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,""):zi(e,l,a)}}}function tt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ie("error",e),ie("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:Te(e,t,i,u,l,null)}}n&&Te(e,t,"srcSet",l.srcSet,l,null),a&&Te(e,t,"src",l.src,l,null);return;case"input":ie("invalid",e);var f=i=u=n=null,p=null,T=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":p=O;break;case"defaultChecked":T=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:Te(e,t,a,O,l,null)}}wr(e,i,f,p,T,u,n,!1);return;case"select":ie("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:Te(e,t,n,f,l,null)}t=i,l=u,e.multiple=!!a,t!=null?Ra(e,!!a,t,!1):l!=null&&Ra(e,!!a,l,!0);return;case"textarea":ie("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:Te(e,t,u,f,l,null)}Cr(e,a,n,i);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Te(e,t,p,a,l,null)}return;case"dialog":ie("beforetoggle",e),ie("toggle",e),ie("cancel",e),ie("close",e);break;case"iframe":case"object":ie("load",e);break;case"video":case"audio":for(a=0;a<li.length;a++)ie(li[a],e);break;case"image":ie("error",e),ie("load",e);break;case"details":ie("toggle",e);break;case"embed":case"source":case"link":ie("error",e),ie("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(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Te(e,t,T,a,l,null)}return;default:if(Pu(t)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&Bs(e,t,O,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&Te(e,t,f,a,l,null))}function D0(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,p=null,T=null,O=null;for(A in l){var R=l[A];if(l.hasOwnProperty(A)&&R!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":p=R;default:a.hasOwnProperty(A)||Te(e,t,A,null,a,R)}}for(var E in a){var A=a[E];if(R=l[E],a.hasOwnProperty(E)&&(A!=null||R!=null))switch(E){case"type":i=A;break;case"name":n=A;break;case"checked":T=A;break;case"defaultChecked":O=A;break;case"value":u=A;break;case"defaultValue":f=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,t));break;default:A!==R&&Te(e,t,E,A,a,R)}}Fu(e,u,f,p,T,O,i,n);return;case"select":A=u=f=E=null;for(i in l)if(p=l[i],l.hasOwnProperty(i)&&p!=null)switch(i){case"value":break;case"multiple":A=p;default:a.hasOwnProperty(i)||Te(e,t,i,null,a,p)}for(n in a)if(i=a[n],p=l[n],a.hasOwnProperty(n)&&(i!=null||p!=null))switch(n){case"value":E=i;break;case"defaultValue":f=i;break;case"multiple":u=i;default:i!==p&&Te(e,t,n,i,a,p)}t=f,l=u,a=A,E!=null?Ra(e,!!l,E,!1):!!a!=!!l&&(t!=null?Ra(e,!!l,t,!0):Ra(e,!!l,l?[]:"",!1));return;case"textarea":A=E=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:Te(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":E=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==i&&Te(e,t,u,n,a,i)}Rr(e,E,A);return;case"option":for(var X in l)if(E=l[X],l.hasOwnProperty(X)&&E!=null&&!a.hasOwnProperty(X))switch(X){case"selected":e.selected=!1;break;default:Te(e,t,X,null,a,E)}for(p in a)if(E=a[p],A=l[p],a.hasOwnProperty(p)&&E!==A&&(E!=null||A!=null))switch(p){case"selected":e.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:Te(e,t,p,E,a,A)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var J in l)E=l[J],l.hasOwnProperty(J)&&E!=null&&!a.hasOwnProperty(J)&&Te(e,t,J,null,a,E);for(T in a)if(E=a[T],A=l[T],a.hasOwnProperty(T)&&E!==A&&(E!=null||A!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(137,t));break;default:Te(e,t,T,E,a,A)}return;default:if(Pu(t)){for(var Ee in l)E=l[Ee],l.hasOwnProperty(Ee)&&E!==void 0&&!a.hasOwnProperty(Ee)&&Bs(e,t,Ee,void 0,a,E);for(O in a)E=a[O],A=l[O],!a.hasOwnProperty(O)||E===A||E===void 0&&A===void 0||Bs(e,t,O,E,a,A);return}}for(var v in l)E=l[v],l.hasOwnProperty(v)&&E!=null&&!a.hasOwnProperty(v)&&Te(e,t,v,null,a,E);for(R in a)E=a[R],A=l[R],!a.hasOwnProperty(R)||E===A||E==null&&A==null||Te(e,t,R,E,a,A)}function Yd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w0(){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&&Yd(u)){for(u=0,f=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],T=p.startTime;if(T>f)break;var O=p.transferSize,R=p.initiatorType;O&&Yd(R)&&(p=p.responseEnd,u+=O*(p<f?1:(f-T)/(p-T)))}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 Ys=null,Gs=null;function xu(e){return e.nodeType===9?e:e.ownerDocument}function Gd(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 Qd(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 Qs(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 Ls=null;function R0(){var e=window.event;return e&&e.type==="popstate"?e===Ls?!1:(Ls=e,!0):(Ls=null,!1)}var Ld=typeof setTimeout=="function"?setTimeout:void 0,C0=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,U0=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(e){return Xd.resolve(null).then(e).catch(H0)}:Ld;function H0(e){setTimeout(function(){throw e})}function Xl(e){return e==="head"}function Zd(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),hn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ni(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ni(l);for(var i=l.firstChild;i;){var u=i.nextSibling,f=i.nodeName;i[Al]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&ni(e.ownerDocument.body);l=n}while(l);hn(t)}function Vd(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 Xs(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":Xs(l),Da(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function q0(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[Al])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 B0(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 Kd(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 Zs(e){return e.data==="$?"||e.data==="$~"}function Vs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Y0(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 Ks=null;function Jd(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 $d(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 Wd(e,t,l){switch(t=xu(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 ni(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Da(e)}var Bt=new Map,Fd=new Set;function Su(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tl=B.d;B.d={f:G0,r:Q0,D:L0,C:X0,L:Z0,m:V0,X:J0,S:K0,M:$0};function G0(){var e=Tl.f(),t=du();return e||t}function Q0(e){var t=Wt(e);t!==null&&t.tag===5&&t.type==="form"?po(t):Tl.r(e)}var fn=typeof document>"u"?null:document;function Id(e,t,l){var a=fn;if(a&&typeof t=="string"&&t){var n=Mt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Fd.has(n)||(Fd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),tt(t,"link",e),$e(t),a.head.appendChild(t)))}}function L0(e){Tl.D(e),Id("dns-prefetch",e,null)}function X0(e,t){Tl.C(e,t),Id("preconnect",e,t)}function Z0(e,t,l){Tl.L(e,t,l);var a=fn;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=on(e);break;case"script":i=dn(e)}Bt.has(i)||(e=w({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Bt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(ii(i))||t==="script"&&a.querySelector(ui(i))||(t=a.createElement("link"),tt(t,"link",e),$e(t),a.head.appendChild(t)))}}function V0(e,t){Tl.m(e,t);var l=fn;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=dn(e)}if(!Bt.has(i)&&(e=w({rel:"modulepreload",href:e},t),Bt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ui(i)))return}a=l.createElement("link"),tt(a,"link",e),$e(a),l.head.appendChild(a)}}}function K0(e,t,l){Tl.S(e,t,l);var a=fn;if(a&&e){var n=Nl(a).hoistableStyles,i=on(e);t=t||"default";var u=n.get(i);if(!u){var f={loading:0,preload:null};if(u=a.querySelector(ii(i)))f.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Bt.get(i))&&Js(e,l);var p=u=a.createElement("link");$e(p),tt(p,"link",e),p._p=new Promise(function(T,O){p.onload=T,p.onerror=O}),p.addEventListener("load",function(){f.loading|=1}),p.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 J0(e,t){Tl.X(e,t);var l=fn;if(l&&e){var a=Nl(l).hoistableScripts,n=dn(e),i=a.get(n);i||(i=l.querySelector(ui(n)),i||(e=w({src:e,async:!0},t),(t=Bt.get(n))&&$s(e,t),i=l.createElement("script"),$e(i),tt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function $0(e,t){Tl.M(e,t);var l=fn;if(l&&e){var a=Nl(l).hoistableScripts,n=dn(e),i=a.get(n);i||(i=l.querySelector(ui(n)),i||(e=w({src:e,async:!0,type:"module"},t),(t=Bt.get(n))&&$s(e,t),i=l.createElement("script"),$e(i),tt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Pd(e,t,l,a){var n=(n=te.current)?Su(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=on(l.href),l=Nl(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=on(l.href);var i=Nl(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(ii(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Bt.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},Bt.set(e,l),i||W0(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=dn(l),l=Nl(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 on(e){return'href="'+Mt(e)+'"'}function ii(e){return'link[rel="stylesheet"]['+e+"]"}function eh(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function W0(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}),tt(t,"link",l),$e(t),e.head.appendChild(t))}function dn(e){return'[src="'+Mt(e)+'"]'}function ui(e){return"script[async]"+e}function th(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,$e(a),a;var n=w({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),$e(a),tt(a,"style",n),zu(a,l.precedence,e),t.instance=a;case"stylesheet":n=on(l.href);var i=e.querySelector(ii(n));if(i)return t.state.loading|=4,t.instance=i,$e(i),i;a=eh(l),(n=Bt.get(n))&&Js(a,n),i=(e.ownerDocument||e).createElement("link"),$e(i);var u=i;return u._p=new Promise(function(f,p){u.onload=f,u.onerror=p}),tt(i,"link",a),t.state.loading|=4,zu(i,l.precedence,e),t.instance=i;case"script":return i=dn(l.src),(n=e.querySelector(ui(i)))?(t.instance=n,$e(n),n):(a=l,(n=Bt.get(i))&&(a=w({},l),$s(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),$e(n),tt(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 Js(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $s(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Tu=null;function lh(e,t,l){if(Tu===null){var a=new Map,n=Tu=new Map;n.set(l,a)}else n=Tu,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[Al]||i[Q]||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 ah(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function F0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function nh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function I0(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=on(a.href),i=t.querySelector(ii(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Eu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,$e(i);return}i=t.ownerDocument||t,a=eh(a),(n=Bt.get(n))&&Js(a,n),i=i.createElement("link"),$e(i);var u=i;u._p=new Promise(function(f,p){u.onload=f,u.onerror=p}),tt(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=Eu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ws=0;function P0(e,t){return e.stylesheets&&e.count===0&&Nu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Nu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Ws===0&&(Ws=62500*w0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Nu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Ws?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Au=null;function Nu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Au=new Map,t.forEach(em,e),Au=null,Eu.call(e))}function em(e,t){if(!(t.state.loading&4)){var l=Au.get(e);if(l)var a=l.get(null);else{l=new Map,Au.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=Eu.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 ci={$$typeof:F,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function tm(e,t,l,a,n,i,u,f,p){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=zn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zn(0),this.hiddenUpdates=zn(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function ih(e,t,l,a,n,i,u,f,p,T,O,R){return e=new tm(e,t,l,u,p,T,O,R,f),t=1,i===!0&&(t|=24),i=zt(3,null,null,t),e.current=i,i.stateNode=e,t=Oc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},wc(i),e}function uh(e){return e?(e=Qa,e):Qa}function ch(e,t,l,a,n,i){n=uh(n),a.context===null?a.context=n:a.pendingContext=n,a=wl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Rl(e,a,t),l!==null&&(gt(l,e,t),Bn(l,e,t))}function sh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Fs(e,t){sh(e,t),(e=e.alternate)&&sh(e,t)}function rh(e){if(e.tag===13||e.tag===31){var t=ra(e,67108864);t!==null&>(t,e,67108864),Fs(e,67108864)}}function fh(e){if(e.tag===13||e.tag===31){var t=jt();t=la(t);var l=ra(e,t);l!==null&>(l,e,t),Fs(e,t)}}var ju=!0;function lm(e,t,l,a){var n=k.T;k.T=null;var i=B.p;try{B.p=2,Is(e,t,l,a)}finally{B.p=i,k.T=n}}function am(e,t,l,a){var n=k.T;k.T=null;var i=B.p;try{B.p=8,Is(e,t,l,a)}finally{B.p=i,k.T=n}}function Is(e,t,l,a){if(ju){var n=Ps(a);if(n===null)qs(e,t,a,_u,l),dh(e,a);else if(im(n,e,t,l,a))a.stopPropagation();else if(dh(e,a),t&4&&-1<nm.indexOf(e)){for(;n!==null;){var i=Wt(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=nl(i.pendingLanes);if(u!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;u;){var p=1<<31-ct(u);f.entanglements[1]|=p,u&=~p}el(i),(ye&6)===0&&(fu=Ve()+500,ti(0))}}break;case 31:case 13:f=ra(i,2),f!==null&>(f,i,2),du(),Fs(i,2)}if(i=Ps(a),i===null&&qs(e,t,a,_u,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else qs(e,t,a,null,l)}}function Ps(e){return e=tc(e),er(e)}var _u=null;function er(e){if(_u=null,e=il(e),e!==null){var t=x(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=j(t),e!==null)return e;e=null}else if(l===31){if(e=_(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _u=e,null}function oh(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(Lu()){case bi:return 2;case vi:return 8;case El:case Xu:return 32;case xi:return 268435456;default:return 32}default:return 32}}var tr=!1,Zl=null,Vl=null,Kl=null,si=new Map,ri=new Map,Jl=[],nm="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 dh(e,t){switch(e){case"focusin":case"focusout":Zl=null;break;case"dragenter":case"dragleave":Vl=null;break;case"mouseover":case"mouseout":Kl=null;break;case"pointerover":case"pointerout":si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function fi(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=Wt(t),t!==null&&rh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function im(e,t,l,a,n){switch(t){case"focusin":return Zl=fi(Zl,e,t,l,a,n),!0;case"dragenter":return Vl=fi(Vl,e,t,l,a,n),!0;case"mouseover":return Kl=fi(Kl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return si.set(i,fi(si.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,ri.set(i,fi(ri.get(i)||null,e,t,l,a,n)),!0}return!1}function hh(e){var t=il(e.target);if(t!==null){var l=x(t);if(l!==null){if(t=l.tag,t===13){if(t=j(l),t!==null){e.blockedOn=t,C(e.priority,function(){fh(l)});return}}else if(t===31){if(t=_(l),t!==null){e.blockedOn=t,C(e.priority,function(){fh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ps(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);ec=a,l.target.dispatchEvent(a),ec=null}else return t=Wt(l),t!==null&&rh(t),e.blockedOn=l,!1;t.shift()}return!0}function ph(e,t,l){Ou(e)&&l.delete(t)}function um(){tr=!1,Zl!==null&&Ou(Zl)&&(Zl=null),Vl!==null&&Ou(Vl)&&(Vl=null),Kl!==null&&Ou(Kl)&&(Kl=null),si.forEach(ph),ri.forEach(ph)}function ku(e,t){e.blockedOn===t&&(e.blockedOn=null,tr||(tr=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,um)))}var Mu=null;function mh(e){Mu!==e&&(Mu=e,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Mu===e&&(Mu=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(er(a||l)===null)continue;break}var i=Wt(l);i!==null&&(e.splice(t,3),t-=3,Pc(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function hn(e){function t(p){return ku(p,e)}Zl!==null&&ku(Zl,e),Vl!==null&&ku(Vl,e),Kl!==null&&ku(Kl,e),si.forEach(t),ri.forEach(t);for(var l=0;l<Jl.length;l++){var a=Jl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Jl.length&&(l=Jl[0],l.blockedOn===null);)hh(l),l.blockedOn===null&&Jl.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[H]||null;if(typeof i=="function")u||mh(l);else if(u){var f=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[H]||null)f=u.formAction;else if(er(n)!==null)continue}else f=u.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),mh(l)}}}function gh(){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 lr(e){this._internalRoot=e}Du.prototype.render=lr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=jt();ch(l,a,e,t,null,null)},Du.prototype.unmount=lr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ch(e.current,2,null,e,null,null),du(),t[Se]=null}};function Du(e){this._internalRoot=e}Du.prototype.unstable_scheduleHydration=function(e){if(e){var t=g();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Jl.length&&t!==0&&t<Jl[l].priority;l++);Jl.splice(l,0,e),l===0&&hh(e)}};var yh=c.version;if(yh!=="19.2.7")throw Error(s(527,yh,"19.2.7"));B.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=S(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var cm={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wu.isDisabled&&wu.supportsFiber)try{Gt=wu.inject(cm),Ke=wu}catch{}}return di.createRoot=function(e,t){if(!h(e))throw Error(s(299));var l=!1,a="",n=Eo,i=Ao,u=No;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=ih(e,1,!1,null,null,l,a,null,n,i,u,gh),e[Se]=t.current,Hs(e),new lr(t)},di.hydrateRoot=function(e,t,l){if(!h(e))throw Error(s(299));var a=!1,n="",i=Eo,u=Ao,f=No,p=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&&(p=l.formState)),t=ih(e,1,!0,t,l??null,a,n,p,i,u,f,gh),t.context=uh(null),l=t.current,a=jt(),a=la(a),n=wl(a),n.callback=null,Rl(l,n,a),l=a,t.current.lanes=l,ta(t,l),el(t),e[Se]=t.current,Hs(e),new Du(t)},di.version="19.2.7",di}var jh;function vm(){if(jh)return ir.exports;jh=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(c){console.error(c)}}return o(),ir.exports=bm(),ir.exports}var xm=vm();function br(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ea=br();function Lh(o){Ea=o}var za={exec:()=>null};function pn(o){let c=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),h=c[s];return h||(h=o(s),c[s]=h),h}}function fe(o,c=""){let r=typeof o=="string"?o:o.source,s={replace:(h,x)=>{let j=typeof x=="string"?x:x.source;return j=j.replace(ut.caret,"$1"),r=r.replace(h,j),s},getRegex:()=>new RegExp(r,c)};return s}var Sm=((o="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+o)}catch{return!1}})(),ut={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:o=>new RegExp(`^( {0,3}${o})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:pn(o=>new RegExp(`^ {0,${o}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:pn(o=>new RegExp(`^ {0,${o}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:pn(o=>new RegExp(`^ {0,${o}}(?:\`\`\`|~~~)`)),headingBeginRegex:pn(o=>new RegExp(`^ {0,${o}}#`)),htmlBeginRegex:pn(o=>new RegExp(`^ {0,${o}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:pn(o=>new RegExp(`^ {0,${o}}>`))},zm=/^(?:[ \t]*(?:\n|$))+/,Tm=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Em=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Am=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,vr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Xh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Zh=fe(Xh).replace(/bull/g,vr).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(),Nm=fe(Xh).replace(/bull/g,vr).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(),xr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,jm=/^[^\n]+/,Sr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,_m=fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Sr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Om=fe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,vr).getRegex(),Gu="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",zr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,km=fe("^ {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",zr).replace("tag",Gu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vh=fe(xr).replace("hr",mi).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",Gu).getRegex(),Mm=fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Vh).getRegex(),Tr={blockquote:Mm,code:Tm,def:_m,fences:Em,heading:Am,hr:mi,html:km,lheading:Zh,list:Om,newline:zm,paragraph:Vh,table:za,text:jm},_h=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mi).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",Gu).getRegex(),Dm={...Tr,lheading:Nm,table:_h,paragraph:fe(xr).replace("hr",mi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_h).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",Gu).getRegex()},wm={...Tr,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",zr).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:za,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(xr).replace("hr",mi).replace("heading",` *#{1,6} *[^
|
|
50
|
+
]`).replace("lheading",Zh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Rm=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Cm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Kh=/^( {2,}|\\)\n(?!\s*$)/,Um=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gn=/[\p{P}\p{S}]/u,Qu=/[\s\p{P}\p{S}]/u,Er=/[^\s\p{P}\p{S}]/u,Hm=fe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Qu).getRegex(),Jh=/(?!~)[\p{P}\p{S}]/u,qm=/(?!~)[\s\p{P}\p{S}]/u,Bm=/(?:[^\s\p{P}\p{S}]|~)/u,Ym=fe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Sm?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),$h=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Gm=fe($h,"u").replace(/punct/g,gn).getRegex(),Qm=fe($h,"u").replace(/punct/g,Jh).getRegex(),Wh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Lm=fe(Wh,"gu").replace(/notPunctSpace/g,Er).replace(/punctSpace/g,Qu).replace(/punct/g,gn).getRegex(),Xm=fe(Wh,"gu").replace(/notPunctSpace/g,Bm).replace(/punctSpace/g,qm).replace(/punct/g,Jh).getRegex(),Zm=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Er).replace(/punctSpace/g,Qu).replace(/punct/g,gn).getRegex(),Vm=fe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,gn).getRegex(),Km="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Jm=fe(Km,"gu").replace(/notPunctSpace/g,Er).replace(/punctSpace/g,Qu).replace(/punct/g,gn).getRegex(),$m=fe(/\\(punct)/,"gu").replace(/punct/g,gn).getRegex(),Wm=fe(/^<(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(),Fm=fe(zr).replace("(?:-->|$)","-->").getRegex(),Im=fe("^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",Fm).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Pm=fe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",qu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Fh=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",qu).replace("ref",Sr).getRegex(),Ih=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sr).getRegex(),e1=fe("reflink|nolink(?!\\()","g").replace("reflink",Fh).replace("nolink",Ih).getRegex(),Oh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ar={_backpedal:za,anyPunctuation:$m,autolink:Wm,blockSkip:Ym,br:Kh,code:Cm,del:za,delLDelim:za,delRDelim:za,emStrongLDelim:Gm,emStrongRDelimAst:Lm,emStrongRDelimUnd:Zm,escape:Rm,link:Pm,nolink:Ih,punctuation:Hm,reflink:Fh,reflinkSearch:e1,tag:Im,text:Um,url:za},t1={...Ar,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",qu).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qu).getRegex()},pr={...Ar,emStrongRDelimAst:Xm,emStrongLDelim:Qm,delLDelim:Vm,delRDelim:Jm,url:fe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Oh).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:fe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Oh).getRegex()},l1={...pr,br:fe(Kh).replace("{2,}","*").getRegex(),text:fe(pr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ru={normal:Tr,gfm:Dm,pedantic:wm},hi={normal:Ar,gfm:pr,breaks:l1,pedantic:t1},a1={"&":"&","<":"<",">":">",'"':""","'":"'"},kh=o=>a1[o];function tl(o,c){if(c){if(ut.escapeTest.test(o))return o.replace(ut.escapeReplace,kh)}else if(ut.escapeTestNoEncode.test(o))return o.replace(ut.escapeReplaceNoEncode,kh);return o}function Mh(o){try{o=encodeURI(o).replace(ut.percentDecode,"%")}catch{return null}return o}function Dh(o,c){var x;let r=o.replace(ut.findPipe,(j,_,m)=>{let S=!1,N=_;for(;--N>=0&&m[N]==="\\";)S=!S;return S?"|":" |"}),s=r.split(ut.splitPipe),h=0;if(s[0].trim()||s.shift(),s.length>0&&!((x=s.at(-1))!=null&&x.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(ut.slashPipe,"|");return s}function Wl(o,c,r){let s=o.length;if(s===0)return"";let h=0;for(;h<s&&o.charAt(s-h-1)===c;)h++;return o.slice(0,s-h)}function wh(o){let c=o.split(`
|
|
51
|
+
`),r=c.length-1;for(;r>=0&&ut.blankLine.test(c[r]);)r--;return c.length-r<=2?o:c.slice(0,r+1).join(`
|
|
52
|
+
`)}function n1(o,c){if(o.indexOf(c[1])===-1)return-1;let r=0;for(let s=0;s<o.length;s++)if(o[s]==="\\")s++;else if(o[s]===c[0])r++;else if(o[s]===c[1]&&(r--,r<0))return s;return r>0?-2:-1}function i1(o,c=0){let r=c,s="";for(let h of o)if(h===" "){let x=4-r%4;s+=" ".repeat(x),r+=x}else s+=h,r++;return s}function Rh(o,c,r,s,h){let x=c.href,j=c.title||null,_=o[1].replace(h.other.outputLinkReplace,"$1");s.state.inLink=!0;let m={type:o[0].charAt(0)==="!"?"image":"link",raw:r,href:x,title:j,text:_,tokens:s.inlineTokens(_)};return s.state.inLink=!1,m}function u1(o,c,r){let s=o.match(r.other.indentCodeCompensation);if(s===null)return c;let h=s[1];return c.split(`
|
|
53
|
+
`).map(x=>{let j=x.match(r.other.beginningSpace);if(j===null)return x;let[_]=j;return _.length>=h.length?x.slice(h.length):x}).join(`
|
|
54
|
+
`)}var Bu=class{constructor(o){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=o||Ea}space(o){let c=this.rules.block.newline.exec(o);if(c&&c[0].length>0)return{type:"space",raw:c[0]}}code(o){let c=this.rules.block.code.exec(o);if(c){let r=this.options.pedantic?c[0]:wh(c[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(o){let c=this.rules.block.fences.exec(o);if(c){let r=c[0],s=u1(r,c[3]||"",this.rules);return{type:"code",raw:r,lang:c[2]?c[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):c[2],text:s}}}heading(o){let c=this.rules.block.heading.exec(o);if(c){let r=c[2].trim();if(this.rules.other.endingHash.test(r)){let s=Wl(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Wl(c[0],`
|
|
55
|
+
`),depth:c[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(o){let c=this.rules.block.hr.exec(o);if(c)return{type:"hr",raw:Wl(c[0],`
|
|
56
|
+
`)}}blockquote(o){let c=this.rules.block.blockquote.exec(o);if(c){let r=Wl(c[0],`
|
|
57
|
+
`).split(`
|
|
58
|
+
`),s="",h="",x=[];for(;r.length>0;){let j=!1,_=[],m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))_.push(r[m]),j=!0;else if(!j)_.push(r[m]);else break;r=r.slice(m);let S=_.join(`
|
|
59
|
+
`),N=S.replace(this.rules.other.blockquoteSetextReplace,`
|
|
60
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
61
|
+
${S}`:S,h=h?`${h}
|
|
62
|
+
${N}`:N;let w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(N,x,!0),this.lexer.state.top=w,r.length===0)break;let Y=x.at(-1);if((Y==null?void 0:Y.type)==="code")break;if((Y==null?void 0:Y.type)==="blockquote"){let le=Y,U=le.raw+`
|
|
63
|
+
`+r.join(`
|
|
64
|
+
`),de=this.blockquote(U);x[x.length-1]=de,s=s.substring(0,s.length-le.raw.length)+de.raw,h=h.substring(0,h.length-le.text.length)+de.text;break}else if((Y==null?void 0:Y.type)==="list"){let le=Y,U=le.raw+`
|
|
65
|
+
`+r.join(`
|
|
66
|
+
`),de=this.list(U);x[x.length-1]=de,s=s.substring(0,s.length-Y.raw.length)+de.raw,h=h.substring(0,h.length-le.raw.length)+de.raw,r=U.substring(x.at(-1).raw.length).split(`
|
|
67
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:x,text:h}}}list(o){let c=this.rules.block.list.exec(o);if(c){let r=c[1].trim(),s=r.length>1,h={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let x=this.rules.other.listItemRegex(r),j=!1;for(;o;){let m=!1,S="",N="";if(!(c=x.exec(o))||this.rules.block.hr.test(o))break;S=c[0],o=o.substring(S.length);let w=i1(c[2].split(`
|
|
68
|
+
`,1)[0],c[1].length),Y=o.split(`
|
|
69
|
+
`,1)[0],le=!w.trim(),U=0;if(this.options.pedantic?(U=2,N=w.trimStart()):le?U=c[1].length+1:(U=w.search(this.rules.other.nonSpaceChar),U=U>4?1:U,N=w.slice(U),U+=c[1].length),le&&this.rules.other.blankLine.test(Y)&&(S+=Y+`
|
|
70
|
+
`,o=o.substring(Y.length+1),m=!0),!m){let de=this.rules.other.nextBulletRegex(U),ue=this.rules.other.hrRegex(U),Ge=this.rules.other.fencesBeginRegex(U),qe=this.rules.other.headingBeginRegex(U),F=this.rules.other.htmlBeginRegex(U),lt=this.rules.other.blockquoteBeginRegex(U);for(;o;){let at=o.split(`
|
|
71
|
+
`,1)[0],je;if(Y=at,this.options.pedantic?(Y=Y.replace(this.rules.other.listReplaceNesting," "),je=Y):je=Y.replace(this.rules.other.tabCharGlobal," "),Ge.test(Y)||qe.test(Y)||F.test(Y)||lt.test(Y)||de.test(Y)||ue.test(Y))break;if(je.search(this.rules.other.nonSpaceChar)>=U||!Y.trim())N+=`
|
|
72
|
+
`+je.slice(U);else{if(le||w.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Ge.test(w)||qe.test(w)||ue.test(w))break;N+=`
|
|
73
|
+
`+Y}le=!Y.trim(),S+=at+`
|
|
74
|
+
`,o=o.substring(at.length+1),w=je.slice(U)}}h.loose||(j?h.loose=!0:this.rules.other.doubleBlankLine.test(S)&&(j=!0)),h.items.push({type:"list_item",raw:S,task:!!this.options.gfm&&this.rules.other.listIsTask.test(N),loose:!1,text:N,tokens:[]}),h.raw+=S}let _=h.items.at(-1);if(_)_.raw=_.raw.trimEnd(),_.text=_.text.trimEnd();else return;h.raw=h.raw.trimEnd();for(let m of h.items){this.lexer.state.top=!1,m.tokens=this.lexer.blockTokens(m.text,[]);let S=m.tokens[0];if(m.task&&((S==null?void 0:S.type)==="text"||(S==null?void 0:S.type)==="paragraph")){m.text=m.text.replace(this.rules.other.listReplaceTask,""),S.raw=S.raw.replace(this.rules.other.listReplaceTask,""),S.text=S.text.replace(this.rules.other.listReplaceTask,"");for(let w=this.lexer.inlineQueue.length-1;w>=0;w--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[w].src)){this.lexer.inlineQueue[w].src=this.lexer.inlineQueue[w].src.replace(this.rules.other.listReplaceTask,"");break}let N=this.rules.other.listTaskCheckbox.exec(m.raw);if(N){let w={type:"checkbox",raw:N[0]+" ",checked:N[0]!=="[ ]"};m.checked=w.checked,h.loose?m.tokens[0]&&["paragraph","text"].includes(m.tokens[0].type)&&"tokens"in m.tokens[0]&&m.tokens[0].tokens?(m.tokens[0].raw=w.raw+m.tokens[0].raw,m.tokens[0].text=w.raw+m.tokens[0].text,m.tokens[0].tokens.unshift(w)):m.tokens.unshift({type:"paragraph",raw:w.raw,text:w.raw,tokens:[w]}):m.tokens.unshift(w)}}else m.task&&(m.task=!1);if(!h.loose){let N=m.tokens.filter(Y=>Y.type==="space"),w=N.length>0&&N.some(Y=>this.rules.other.anyLine.test(Y.raw));h.loose=w}}if(h.loose)for(let m of h.items){m.loose=!0;for(let S of m.tokens)S.type==="text"&&(S.type="paragraph")}return h}}html(o){let c=this.rules.block.html.exec(o);if(c){let r=wh(c[0]);return{type:"html",block:!0,raw:r,pre:c[1]==="pre"||c[1]==="script"||c[1]==="style",text:r}}}def(o){let c=this.rules.block.def.exec(o);if(c){let r=c[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=c[2]?c[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",h=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):c[3];return{type:"def",tag:r,raw:Wl(c[0],`
|
|
75
|
+
`),href:s,title:h}}}table(o){var j;let c=this.rules.block.table.exec(o);if(!c||!this.rules.other.tableDelimiter.test(c[2]))return;let r=Dh(c[1]),s=c[2].replace(this.rules.other.tableAlignChars,"").split("|"),h=(j=c[3])!=null&&j.trim()?c[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
76
|
+
`):[],x={type:"table",raw:Wl(c[0],`
|
|
77
|
+
`),header:[],align:[],rows:[]};if(r.length===s.length){for(let _ of s)this.rules.other.tableAlignRight.test(_)?x.align.push("right"):this.rules.other.tableAlignCenter.test(_)?x.align.push("center"):this.rules.other.tableAlignLeft.test(_)?x.align.push("left"):x.align.push(null);for(let _=0;_<r.length;_++)x.header.push({text:r[_],tokens:this.lexer.inline(r[_]),header:!0,align:x.align[_]});for(let _ of h)x.rows.push(Dh(_,x.header.length).map((m,S)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:x.align[S]})));return x}}lheading(o){let c=this.rules.block.lheading.exec(o);if(c){let r=c[1].trim();return{type:"heading",raw:Wl(c[0],`
|
|
78
|
+
`),depth:c[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(o){let c=this.rules.block.paragraph.exec(o);if(c){let r=c[1].charAt(c[1].length-1)===`
|
|
79
|
+
`?c[1].slice(0,-1):c[1];return{type:"paragraph",raw:c[0],text:r,tokens:this.lexer.inline(r)}}}text(o){let c=this.rules.block.text.exec(o);if(c)return{type:"text",raw:c[0],text:c[0],tokens:this.lexer.inline(c[0])}}escape(o){let c=this.rules.inline.escape.exec(o);if(c)return{type:"escape",raw:c[0],text:c[1]}}tag(o){let c=this.rules.inline.tag.exec(o);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(o){let c=this.rules.inline.link.exec(o);if(c){let r=c[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let x=Wl(r.slice(0,-1),"\\");if((r.length-x.length)%2===0)return}else{let x=n1(c[2],"()");if(x===-2)return;if(x>-1){let j=(c[0].indexOf("!")===0?5:4)+c[1].length+x;c[2]=c[2].substring(0,x),c[0]=c[0].substring(0,j).trim(),c[3]=""}}let s=c[2],h="";if(this.options.pedantic){let x=this.rules.other.pedanticHrefTitle.exec(s);x&&(s=x[1],h=x[3])}else h=c[3]?c[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Rh(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(o,c){let r;if((r=this.rules.inline.reflink.exec(o))||(r=this.rules.inline.nolink.exec(o))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),h=c[s.toLowerCase()];if(!h){let x=r[0].charAt(0);return{type:"text",raw:x,text:x}}return Rh(r,h,r[0],this.lexer,this.rules)}}emStrong(o,c,r=""){let s=this.rules.inline.emStrongLDelim.exec(o);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let h=[...s[0]].length-1,x,j,_=h,m=0,S=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(S.lastIndex=0,c=c.slice(-1*o.length+h);(s=S.exec(c))!==null;){if(x=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!x)continue;if(j=[...x].length,s[3]||s[4]){_+=j;continue}else if((s[5]||s[6])&&h%3&&!((h+j)%3)){m+=j;continue}if(_-=j,_>0)continue;j=Math.min(j,j+_+m);let N=[...s[0]][0].length,w=o.slice(0,h+s.index+N+j);if(Math.min(h,j)%2){let le=w.slice(1,-1);return{type:"em",raw:w,text:le,tokens:this.lexer.inlineTokens(le)}}let Y=w.slice(2,-2);return{type:"strong",raw:w,text:Y,tokens:this.lexer.inlineTokens(Y)}}}}codespan(o){let c=this.rules.inline.code.exec(o);if(c){let r=c[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),h=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&h&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:c[0],text:r}}}br(o){let c=this.rules.inline.br.exec(o);if(c)return{type:"br",raw:c[0]}}del(o,c,r=""){let s=this.rules.inline.delLDelim.exec(o);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let h=[...s[0]].length-1,x,j,_=h,m=this.rules.inline.delRDelim;for(m.lastIndex=0,c=c.slice(-1*o.length+h);(s=m.exec(c))!==null;){if(x=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!x||(j=[...x].length,j!==h))continue;if(s[3]||s[4]){_+=j;continue}if(_-=j,_>0)continue;j=Math.min(j,j+_);let S=[...s[0]][0].length,N=o.slice(0,h+s.index+S+j),w=N.slice(h,-h);return{type:"del",raw:N,text:w,tokens:this.lexer.inlineTokens(w)}}}}autolink(o){let c=this.rules.inline.autolink.exec(o);if(c){let r,s;return c[2]==="@"?(r=c[1],s="mailto:"+r):(r=c[1],s=r),{type:"link",raw:c[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(o){var r;let c;if(c=this.rules.inline.url.exec(o)){let s,h;if(c[2]==="@")s=c[0],h="mailto:"+s;else{let x;do x=c[0],c[0]=((r=this.rules.inline._backpedal.exec(c[0]))==null?void 0:r[0])??"";while(x!==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(o){let c=this.rules.inline.text.exec(o);if(c){let r=this.lexer.state.inRawBlock;return{type:"text",raw:c[0],text:c[0],escaped:r}}}},Zt=class mr{constructor(c){Ae(this,"tokens");Ae(this,"options");Ae(this,"state");Ae(this,"inlineQueue");Ae(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=c||Ea,this.options.tokenizer=this.options.tokenizer||new Bu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:ut,block:Ru.normal,inline:hi.normal};this.options.pedantic?(r.block=Ru.pedantic,r.inline=hi.pedantic):this.options.gfm&&(r.block=Ru.gfm,this.options.breaks?r.inline=hi.breaks:r.inline=hi.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ru,inline:hi}}static lex(c,r){return new mr(r).lex(c)}static lexInline(c,r){return new mr(r).inlineTokens(c)}lex(c){c=c.replace(ut.carriageReturn,`
|
|
80
|
+
`),this.blockTokens(c,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(c,r=[],s=!1){var x,j,_;this.tokenizer.lexer=this,this.options.pedantic&&(c=c.replace(ut.tabCharGlobal," ").replace(ut.spaceLine,""));let h=1/0;for(;c;){if(c.length<h)h=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}let m;if((j=(x=this.options.extensions)==null?void 0:x.block)!=null&&j.some(N=>(m=N.call({lexer:this},c,r))?(c=c.substring(m.raw.length),r.push(m),!0):!1))continue;if(m=this.tokenizer.space(c)){c=c.substring(m.raw.length);let N=r.at(-1);m.raw.length===1&&N!==void 0?N.raw+=`
|
|
81
|
+
`:r.push(m);continue}if(m=this.tokenizer.code(c)){c=c.substring(m.raw.length);let N=r.at(-1);(N==null?void 0:N.type)==="paragraph"||(N==null?void 0:N.type)==="text"?(N.raw+=(N.raw.endsWith(`
|
|
82
|
+
`)?"":`
|
|
83
|
+
`)+m.raw,N.text+=`
|
|
84
|
+
`+m.text,this.inlineQueue.at(-1).src=N.text):r.push(m);continue}if(m=this.tokenizer.fences(c)){c=c.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.heading(c)){c=c.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.hr(c)){c=c.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.blockquote(c)){c=c.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.list(c)){c=c.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.html(c)){c=c.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.def(c)){c=c.substring(m.raw.length);let N=r.at(-1);(N==null?void 0:N.type)==="paragraph"||(N==null?void 0:N.type)==="text"?(N.raw+=(N.raw.endsWith(`
|
|
85
|
+
`)?"":`
|
|
86
|
+
`)+m.raw,N.text+=`
|
|
87
|
+
`+m.raw,this.inlineQueue.at(-1).src=N.text):this.tokens.links[m.tag]||(this.tokens.links[m.tag]={href:m.href,title:m.title},r.push(m));continue}if(m=this.tokenizer.table(c)){c=c.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.lheading(c)){c=c.substring(m.raw.length),r.push(m);continue}let S=c;if((_=this.options.extensions)!=null&&_.startBlock){let N=1/0,w=c.slice(1),Y;this.options.extensions.startBlock.forEach(le=>{Y=le.call({lexer:this},w),typeof Y=="number"&&Y>=0&&(N=Math.min(N,Y))}),N<1/0&&N>=0&&(S=c.substring(0,N+1))}if(this.state.top&&(m=this.tokenizer.paragraph(S))){let N=r.at(-1);s&&(N==null?void 0:N.type)==="paragraph"?(N.raw+=(N.raw.endsWith(`
|
|
88
|
+
`)?"":`
|
|
89
|
+
`)+m.raw,N.text+=`
|
|
90
|
+
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=N.text):r.push(m),s=S.length!==c.length,c=c.substring(m.raw.length);continue}if(m=this.tokenizer.text(c)){c=c.substring(m.raw.length);let N=r.at(-1);(N==null?void 0:N.type)==="text"?(N.raw+=(N.raw.endsWith(`
|
|
91
|
+
`)?"":`
|
|
92
|
+
`)+m.raw,N.text+=`
|
|
93
|
+
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=N.text):r.push(m);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return this.state.top=!0,r}inline(c,r=[]){return this.inlineQueue.push({src:c,tokens:r}),r}inlineTokens(c,r=[]){var S,N,w,Y,le;this.tokenizer.lexer=this;let s=c,h=null;if(this.tokens.links){let U=Object.keys(this.tokens.links);if(U.length>0)for(;(h=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)U.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 x;for(;(h=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)x=h[2]?h[2].length:0,s=s.slice(0,h.index+x)+"["+"a".repeat(h[0].length-x-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((N=(S=this.options.hooks)==null?void 0:S.emStrongMask)==null?void 0:N.call({lexer:this},s))??s;let j=!1,_="",m=1/0;for(;c;){if(c.length<m)m=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}j||(_=""),j=!1;let U;if((Y=(w=this.options.extensions)==null?void 0:w.inline)!=null&&Y.some(ue=>(U=ue.call({lexer:this},c,r))?(c=c.substring(U.raw.length),r.push(U),!0):!1))continue;if(U=this.tokenizer.escape(c)){c=c.substring(U.raw.length),r.push(U);continue}if(U=this.tokenizer.tag(c)){c=c.substring(U.raw.length),r.push(U);continue}if(U=this.tokenizer.link(c)){c=c.substring(U.raw.length),r.push(U);continue}if(U=this.tokenizer.reflink(c,this.tokens.links)){c=c.substring(U.raw.length);let ue=r.at(-1);U.type==="text"&&(ue==null?void 0:ue.type)==="text"?(ue.raw+=U.raw,ue.text+=U.text):r.push(U);continue}if(U=this.tokenizer.emStrong(c,s,_)){c=c.substring(U.raw.length),r.push(U);continue}if(U=this.tokenizer.codespan(c)){c=c.substring(U.raw.length),r.push(U);continue}if(U=this.tokenizer.br(c)){c=c.substring(U.raw.length),r.push(U);continue}if(U=this.tokenizer.del(c,s,_)){c=c.substring(U.raw.length),r.push(U);continue}if(U=this.tokenizer.autolink(c)){c=c.substring(U.raw.length),r.push(U);continue}if(!this.state.inLink&&(U=this.tokenizer.url(c))){c=c.substring(U.raw.length),r.push(U);continue}let de=c;if((le=this.options.extensions)!=null&&le.startInline){let ue=1/0,Ge=c.slice(1),qe;this.options.extensions.startInline.forEach(F=>{qe=F.call({lexer:this},Ge),typeof qe=="number"&&qe>=0&&(ue=Math.min(ue,qe))}),ue<1/0&&ue>=0&&(de=c.substring(0,ue+1))}if(U=this.tokenizer.inlineText(de)){c=c.substring(U.raw.length),U.raw.slice(-1)!=="_"&&(_=U.raw.slice(-1)),j=!0;let ue=r.at(-1);(ue==null?void 0:ue.type)==="text"?(ue.raw+=U.raw,ue.text+=U.text):r.push(U);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return r}infiniteLoopError(c){let r="Infinite loop on byte: "+c;if(this.options.silent)console.error(r);else throw new Error(r)}},Yu=class{constructor(o){Ae(this,"options");Ae(this,"parser");this.options=o||Ea}space(o){return""}code({text:o,lang:c,escaped:r}){var x;let s=(x=(c||"").match(ut.notSpaceStart))==null?void 0:x[0],h=o.replace(ut.endingNewline,"")+`
|
|
94
|
+
`;return s?'<pre><code class="language-'+tl(s)+'">'+(r?h:tl(h,!0))+`</code></pre>
|
|
95
|
+
`:"<pre><code>"+(r?h:tl(h,!0))+`</code></pre>
|
|
96
|
+
`}blockquote({tokens:o}){return`<blockquote>
|
|
97
|
+
${this.parser.parse(o)}</blockquote>
|
|
98
|
+
`}html({text:o}){return o}def(o){return""}heading({tokens:o,depth:c}){return`<h${c}>${this.parser.parseInline(o)}</h${c}>
|
|
99
|
+
`}hr(o){return`<hr>
|
|
100
|
+
`}list(o){let c=o.ordered,r=o.start,s="";for(let j=0;j<o.items.length;j++){let _=o.items[j];s+=this.listitem(_)}let h=c?"ol":"ul",x=c&&r!==1?' start="'+r+'"':"";return"<"+h+x+`>
|
|
101
|
+
`+s+"</"+h+`>
|
|
102
|
+
`}listitem(o){return`<li>${this.parser.parse(o.tokens)}</li>
|
|
103
|
+
`}checkbox({checked:o}){return"<input "+(o?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:o}){return`<p>${this.parser.parseInline(o)}</p>
|
|
104
|
+
`}table(o){let c="",r="";for(let h=0;h<o.header.length;h++)r+=this.tablecell(o.header[h]);c+=this.tablerow({text:r});let s="";for(let h=0;h<o.rows.length;h++){let x=o.rows[h];r="";for(let j=0;j<x.length;j++)r+=this.tablecell(x[j]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
105
|
+
<thead>
|
|
106
|
+
`+c+`</thead>
|
|
107
|
+
`+s+`</table>
|
|
108
|
+
`}tablerow({text:o}){return`<tr>
|
|
109
|
+
${o}</tr>
|
|
110
|
+
`}tablecell(o){let c=this.parser.parseInline(o.tokens),r=o.header?"th":"td";return(o.align?`<${r} align="${o.align}">`:`<${r}>`)+c+`</${r}>
|
|
111
|
+
`}strong({tokens:o}){return`<strong>${this.parser.parseInline(o)}</strong>`}em({tokens:o}){return`<em>${this.parser.parseInline(o)}</em>`}codespan({text:o}){return`<code>${tl(o,!0)}</code>`}br(o){return"<br>"}del({tokens:o}){return`<del>${this.parser.parseInline(o)}</del>`}link({href:o,title:c,tokens:r}){let s=this.parser.parseInline(r),h=Mh(o);if(h===null)return s;o=h;let x='<a href="'+o+'"';return c&&(x+=' title="'+tl(c)+'"'),x+=">"+s+"</a>",x}image({href:o,title:c,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let h=Mh(o);if(h===null)return tl(r);o=h;let x=`<img src="${o}" alt="${tl(r)}"`;return c&&(x+=` title="${tl(c)}"`),x+=">",x}text(o){return"tokens"in o&&o.tokens?this.parser.parseInline(o.tokens):"escaped"in o&&o.escaped?o.text:tl(o.text)}},Nr=class{strong({text:o}){return o}em({text:o}){return o}codespan({text:o}){return o}del({text:o}){return o}html({text:o}){return o}text({text:o}){return o}link({text:o}){return""+o}image({text:o}){return""+o}br(){return""}checkbox({raw:o}){return o}},Vt=class gr{constructor(c){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=c||Ea,this.options.renderer=this.options.renderer||new Yu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Nr}static parse(c,r){return new gr(r).parse(c)}static parseInline(c,r){return new gr(r).parseInline(c)}parse(c){var s,h;this.renderer.parser=this;let r="";for(let x=0;x<c.length;x++){let j=c[x];if((h=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&h[j.type]){let m=j,S=this.options.extensions.renderers[m.type].call({parser:this},m);if(S!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){r+=S||"";continue}}let _=j;switch(_.type){case"space":{r+=this.renderer.space(_);break}case"hr":{r+=this.renderer.hr(_);break}case"heading":{r+=this.renderer.heading(_);break}case"code":{r+=this.renderer.code(_);break}case"table":{r+=this.renderer.table(_);break}case"blockquote":{r+=this.renderer.blockquote(_);break}case"list":{r+=this.renderer.list(_);break}case"checkbox":{r+=this.renderer.checkbox(_);break}case"html":{r+=this.renderer.html(_);break}case"def":{r+=this.renderer.def(_);break}case"paragraph":{r+=this.renderer.paragraph(_);break}case"text":{r+=this.renderer.text(_);break}default:{let m='Token with "'+_.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}parseInline(c,r=this.renderer){var h,x;this.renderer.parser=this;let s="";for(let j=0;j<c.length;j++){let _=c[j];if((x=(h=this.options.extensions)==null?void 0:h.renderers)!=null&&x[_.type]){let S=this.options.extensions.renderers[_.type].call({parser:this},_);if(S!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(_.type)){s+=S||"";continue}}let m=_;switch(m.type){case"escape":{s+=r.text(m);break}case"html":{s+=r.html(m);break}case"link":{s+=r.link(m);break}case"image":{s+=r.image(m);break}case"checkbox":{s+=r.checkbox(m);break}case"strong":{s+=r.strong(m);break}case"em":{s+=r.em(m);break}case"codespan":{s+=r.codespan(m);break}case"br":{s+=r.br(m);break}case"del":{s+=r.del(m);break}case"text":{s+=r.text(m);break}default:{let S='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(S),"";throw new Error(S)}}}return s}},Hu,pi=(Hu=class{constructor(o){Ae(this,"options");Ae(this,"block");this.options=o||Ea}preprocess(o){return o}postprocess(o){return o}processAllTokens(o){return o}emStrongMask(o){return o}provideLexer(o=this.block){return o?Zt.lex:Zt.lexInline}provideParser(o=this.block){return o?Vt.parse:Vt.parseInline}},Ae(Hu,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(Hu,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Hu),c1=class{constructor(...o){Ae(this,"defaults",br());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",Vt);Ae(this,"Renderer",Yu);Ae(this,"TextRenderer",Nr);Ae(this,"Lexer",Zt);Ae(this,"Tokenizer",Bu);Ae(this,"Hooks",pi);this.use(...o)}walkTokens(o,c){var s,h;let r=[];for(let x of o)switch(r=r.concat(c.call(this,x)),x.type){case"table":{let j=x;for(let _ of j.header)r=r.concat(this.walkTokens(_.tokens,c));for(let _ of j.rows)for(let m of _)r=r.concat(this.walkTokens(m.tokens,c));break}case"list":{let j=x;r=r.concat(this.walkTokens(j.items,c));break}default:{let j=x;(h=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&h[j.type]?this.defaults.extensions.childTokens[j.type].forEach(_=>{let m=j[_].flat(1/0);r=r.concat(this.walkTokens(m,c))}):j.tokens&&(r=r.concat(this.walkTokens(j.tokens,c)))}}return r}use(...o){let c=this.defaults.extensions||{renderers:{},childTokens:{}};return o.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(h=>{if(!h.name)throw new Error("extension name required");if("renderer"in h){let x=c.renderers[h.name];x?c.renderers[h.name]=function(...j){let _=h.renderer.apply(this,j);return _===!1&&(_=x.apply(this,j)),_}: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 x=c[h.level];x?x.unshift(h.tokenizer):c[h.level]=[h.tokenizer],h.start&&(h.level==="block"?c.startBlock?c.startBlock.push(h.start):c.startBlock=[h.start]:h.level==="inline"&&(c.startInline?c.startInline.push(h.start):c.startInline=[h.start]))}"childTokens"in h&&h.childTokens&&(c.childTokens[h.name]=h.childTokens)}),s.extensions=c),r.renderer){let h=this.defaults.renderer||new Yu(this.defaults);for(let x in r.renderer){if(!(x in h))throw new Error(`renderer '${x}' does not exist`);if(["options","parser"].includes(x))continue;let j=x,_=r.renderer[j],m=h[j];h[j]=(...S)=>{let N=_.apply(h,S);return N===!1&&(N=m.apply(h,S)),N||""}}s.renderer=h}if(r.tokenizer){let h=this.defaults.tokenizer||new Bu(this.defaults);for(let x in r.tokenizer){if(!(x in h))throw new Error(`tokenizer '${x}' does not exist`);if(["options","rules","lexer"].includes(x))continue;let j=x,_=r.tokenizer[j],m=h[j];h[j]=(...S)=>{let N=_.apply(h,S);return N===!1&&(N=m.apply(h,S)),N}}s.tokenizer=h}if(r.hooks){let h=this.defaults.hooks||new pi;for(let x in r.hooks){if(!(x in h))throw new Error(`hook '${x}' does not exist`);if(["options","block"].includes(x))continue;let j=x,_=r.hooks[j],m=h[j];pi.passThroughHooks.has(x)?h[j]=S=>{if(this.defaults.async&&pi.passThroughHooksRespectAsync.has(x))return(async()=>{let w=await _.call(h,S);return m.call(h,w)})();let N=_.call(h,S);return m.call(h,N)}:h[j]=(...S)=>{if(this.defaults.async)return(async()=>{let w=await _.apply(h,S);return w===!1&&(w=await m.apply(h,S)),w})();let N=_.apply(h,S);return N===!1&&(N=m.apply(h,S)),N}}s.hooks=h}if(r.walkTokens){let h=this.defaults.walkTokens,x=r.walkTokens;s.walkTokens=function(j){let _=[];return _.push(x.call(this,j)),h&&(_=_.concat(h.call(this,j))),_}}this.defaults={...this.defaults,...s}}),this}setOptions(o){return this.defaults={...this.defaults,...o},this}lexer(o,c){return Zt.lex(o,c??this.defaults)}parser(o,c){return Vt.parse(o,c??this.defaults)}parseMarkdown(o){return(c,r)=>{let s={...r},h={...this.defaults,...s},x=this.onError(!!h.silent,!!h.async);if(this.defaults.async===!0&&s.async===!1)return x(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 x(new Error("marked(): input parameter is undefined or null"));if(typeof c!="string")return x(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=o),h.async)return(async()=>{let j=h.hooks?await h.hooks.preprocess(c):c,_=await(h.hooks?await h.hooks.provideLexer(o):o?Zt.lex:Zt.lexInline)(j,h),m=h.hooks?await h.hooks.processAllTokens(_):_;h.walkTokens&&await Promise.all(this.walkTokens(m,h.walkTokens));let S=await(h.hooks?await h.hooks.provideParser(o):o?Vt.parse:Vt.parseInline)(m,h);return h.hooks?await h.hooks.postprocess(S):S})().catch(x);try{h.hooks&&(c=h.hooks.preprocess(c));let j=(h.hooks?h.hooks.provideLexer(o):o?Zt.lex:Zt.lexInline)(c,h);h.hooks&&(j=h.hooks.processAllTokens(j)),h.walkTokens&&this.walkTokens(j,h.walkTokens);let _=(h.hooks?h.hooks.provideParser(o):o?Vt.parse:Vt.parseInline)(j,h);return h.hooks&&(_=h.hooks.postprocess(_)),_}catch(j){return x(j)}}}onError(o,c){return r=>{if(r.message+=`
|
|
112
|
+
Please report this to https://github.com/markedjs/marked.`,o){let s="<p>An error occurred:</p><pre>"+tl(r.message+"",!0)+"</pre>";return c?Promise.resolve(s):s}if(c)return Promise.reject(r);throw r}}},Ta=new c1;function xe(o,c){return Ta.parse(o,c)}xe.options=xe.setOptions=function(o){return Ta.setOptions(o),xe.defaults=Ta.defaults,Lh(xe.defaults),xe};xe.getDefaults=br;xe.defaults=Ea;xe.use=function(...o){return Ta.use(...o),xe.defaults=Ta.defaults,Lh(xe.defaults),xe};xe.walkTokens=function(o,c){return Ta.walkTokens(o,c)};xe.parseInline=Ta.parseInline;xe.Parser=Vt;xe.parser=Vt.parse;xe.Renderer=Yu;xe.TextRenderer=Nr;xe.Lexer=Zt;xe.lexer=Zt.lex;xe.Tokenizer=Bu;xe.Hooks=pi;xe.parse=xe;xe.options;xe.setOptions;xe.use;xe.walkTokens;xe.parseInline;Vt.parse;Zt.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 Ph=(...o)=>o.filter((c,r,s)=>!!c&&c.trim()!==""&&s.indexOf(c)===r).join(" ").trim();/**
|
|
118
|
+
* @license lucide-react v1.20.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const s1=o=>o.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 r1=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,r,s)=>s?s.toUpperCase():r.toLowerCase());/**
|
|
128
|
+
* @license lucide-react v1.20.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const Ch=o=>{const c=r1(o);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 rr={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 f1=o=>{for(const c in o)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1},o1=$.createContext({}),d1=()=>$.useContext(o1),h1=$.forwardRef(({color:o,size:c,strokeWidth:r,absoluteStrokeWidth:s,className:h="",children:x,iconNode:j,..._},m)=>{const{size:S=24,strokeWidth:N=2,absoluteStrokeWidth:w=!1,color:Y="currentColor",className:le=""}=d1()??{},U=s??w?Number(r??N)*24/Number(c??S):r??N;return $.createElement("svg",{ref:m,...rr,width:c??S??rr.width,height:c??S??rr.height,stroke:o??Y,strokeWidth:U,className:Ph("lucide",le,h),...!x&&!f1(_)&&{"aria-hidden":"true"},..._},[...j.map(([de,ue])=>$.createElement(de,ue)),...Array.isArray(x)?x:[x]])});/**
|
|
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 Ce=(o,c)=>{const r=$.forwardRef(({className:s,...h},x)=>$.createElement(h1,{ref:x,iconNode:c,className:Ph(`lucide-${s1(Ch(o))}`,`lucide-${o}`,s),...h}));return r.displayName=Ch(o),r};/**
|
|
148
|
+
* @license lucide-react v1.20.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const p1=[["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"}]],m1=Ce("bell-off",p1);/**
|
|
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 g1=[["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"}]],y1=Ce("bell",g1);/**
|
|
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 b1=[["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"}]],v1=Ce("bot",b1);/**
|
|
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 x1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Uh=Ce("check",x1);/**
|
|
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 S1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mn=Ce("chevron-down",S1);/**
|
|
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 z1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],fr=Ce("chevron-up",z1);/**
|
|
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 T1=[["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"}]],Hh=Ce("circle-alert",T1);/**
|
|
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 E1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],A1=Ce("clock",E1);/**
|
|
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 N1=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],qh=Ce("code",N1);/**
|
|
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 j1=[["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"}]],Bh=Ce("copy",j1);/**
|
|
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 _1=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],O1=Ce("corner-down-right",_1);/**
|
|
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 k1=[["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"}]],M1=Ce("external-link",k1);/**
|
|
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 D1=[["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"}]],w1=Ce("globe",D1);/**
|
|
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 R1=[["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"}]],C1=Ce("message-square",R1);/**
|
|
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 U1=[["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"}]],Yh=Ce("play",U1);/**
|
|
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 H1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Cu=Ce("plus",H1);/**
|
|
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 q1=[["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"}]],Uu=Ce("refresh-cw",q1);/**
|
|
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 B1=[["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"}]],Y1=Ce("server",B1);/**
|
|
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 G1=[["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"}]],Gh=Ce("settings",G1);/**
|
|
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 Q1=[["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=Ce("sparkles",Q1);/**
|
|
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 L1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],dr=Ce("square",L1);/**
|
|
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 X1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Z1=Ce("terminal",X1);/**
|
|
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 V1=[["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"}]],K1=Ce("user",V1),Qh=[{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)"}],hr=[{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 J1(){var Ma;const[o,c]=$.useState([]),[r,s]=$.useState(""),[h,x]=$.useState(null),[j,_]=$.useState([]),[m,S]=$.useState(""),[N,w]=$.useState(!1),[Y,le]=$.useState(()=>typeof Notification<"u"&&Notification.permission==="granted"),[U,de]=$.useState(""),[ue,Ge]=$.useState({}),[qe,F]=$.useState(""),[lt,at]=$.useState([]),[je,ae]=$.useState(4096),[we,yt]=$.useState(()=>{const g=localStorage.getItem("zugzweb_projects");if(g)try{return JSON.parse(g)}catch{}return[{id:"workspace_raiz",name:"Workspace Raíz",path:"/Users/wavesbyte/Documents/Repositorio Zugzbot"}]}),[Kt,nt]=$.useState(()=>{const g=localStorage.getItem("zugzweb_session_mappings");if(g)try{return JSON.parse(g)}catch{}return{}}),[Re,_t]=$.useState(()=>localStorage.getItem("zugzweb_active_project_id")||"workspace_raiz"),[bt,rt]=$.useState(()=>{const g=localStorage.getItem("zugzweb_expanded_projects");if(g)try{return JSON.parse(g)}catch{}return{workspace_raiz:!0}}),[k,B]=$.useState(!1),[K,me]=$.useState(""),[ge,b]=$.useState("");$.useEffect(()=>{localStorage.setItem("zugzweb_projects",JSON.stringify(we))},[we]),$.useEffect(()=>{localStorage.setItem("zugzweb_session_mappings",JSON.stringify(Kt))},[Kt]),$.useEffect(()=>{localStorage.setItem("zugzweb_active_project_id",Re)},[Re]),$.useEffect(()=>{localStorage.setItem("zugzweb_expanded_projects",JSON.stringify(bt))},[bt]);const[D,G]=$.useState(()=>{const g=localStorage.getItem("zugzweb_sidebar_width");return g?parseInt(g,10):320});$.useEffect(()=>{localStorage.setItem("zugzweb_sidebar_width",String(D))},[D]);const[L,W]=$.useState("default"),[te,oe]=$.useState(""),[Fe,ke]=$.useState(()=>window.location.pathname==="/new"),[ll,Fl]=$.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"})}`:""),[Il,gi]=$.useState("sdd-orchestrator"),[vt,yn]=$.useState("default"),[Aa,yi]=$.useState(""),[al,Pl]=$.useState("sdd-orchestrator"),Jt=$.useRef(null),[bn,vn]=$.useState(!1),Yt=g=>{if(window.history.pushState(null,"",g),ke(g==="/new"),g==="/new"){const C=new Date().toLocaleString([],{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"});Fl(`Sesión Web ${C}`)}};$.useEffect(()=>{xi(),xn(),Na();const g=()=>{ke(window.location.pathname==="/new")};window.addEventListener("popstate",g);const C=setInterval(()=>{xn(),Na()},5e3);return()=>{window.removeEventListener("popstate",g),clearInterval(C)}},[]);const Ve=()=>{r&&(Ke(r),xt(),Gt(r))};$.useEffect(()=>{r&&Ve()},[r,je]),$.useEffect(()=>{if(!r)return;let g=null;N&&(g=setInterval(()=>{Ke(r),Gt(r),xt()},1500));const C=setInterval(()=>{xt(),Ke(r),Gt(r)},5e3);return()=>{g&&clearInterval(g),clearInterval(C)}},[r,je,N]),$.useEffect(()=>{!bn&&Jt.current&&(Jt.current.scrollTop=Jt.current.scrollHeight)},[j]);const Lu=()=>{if(Jt.current){const{scrollTop:g,scrollHeight:C,clientHeight:q}=Jt.current,Q=C-g-q<120;vn(!Q)}},bi=g=>{try{return{__html:xe.parse(g,{gfm:!0,breaks:!0})}}catch{return{__html:g}}},vi=async()=>{if(Y){le(!1);return}await Notification.requestPermission()==="granted"?(le(!0),El("¡Notificaciones activadas!","Te avisaremos cuando tus flujos en Opencode terminen.")):alert("Permiso de notificación denegado por el navegador.")},El=(g,C)=>{Notification.permission==="granted"&&new Notification(g,{body:C,icon:"/favicon.ico"})},Xu=(g,C)=>{navigator.clipboard.writeText(g).then(()=>{oe(C),setTimeout(()=>oe(""),2e3)})};async function xi(){try{const g=await fetch("/api-custom/tunnel-status");if(g.ok){const C=await g.json();de(C.url||"")}}catch(g){console.error("Error obteniendo estado del túnel:",g)}}async function xn(){try{const g=await fetch("/api-custom/instances");if(g.ok){const C=await g.json();at(C.instances||[]),ae(C.currentPort||4096)}}catch(g){console.error("Error obteniendo instancias de Opencode:",g)}}async function Na(){try{const g=await fetch("/api/session");if(g.ok){const C=await g.json(),q=Array.isArray(C)?C:C.sessions||[];c(q),q.length>0?r||s(q[0].id):Yt("/new"),F("")}else{const C=await g.json().catch(()=>({}));F(C.message||'No se pudo conectar con Opencode. ¿Has iniciado "opencode serve"?')}}catch{F("No se pudo conectar al Daemon local de Opencode")}}async function Gt(g){try{const C=await fetch(`/api/session/${g}`);if(C.ok){const q=await C.json();x(q),q.agent&&Pl(q.agent),F("")}else{const q=await C.json().catch(()=>({}));F(q.message||"No se pudieron recuperar los detalles de la sesión")}}catch(C){console.error(C)}}async function Ke(g){try{const C=await fetch(`/api/session/${g}/message`);if(C.ok){const q=await C.json(),Q=Array.isArray(q)?q:q.messages||[];_(Q),F("")}else{const q=await C.json().catch(()=>({}));F(q.message||"No se pudieron recuperar los mensajes")}}catch(C){console.error(C)}}async function xt(){try{const g=await fetch("/api/session/status");if(g.ok){const C=await g.json();if(r&&C[r]){const q=C[r];w(q==="thinking"||q==="running_tools"||q==="busy"?H=>H||!0:H=>H&&(El("Opencode: ¡Ejecución Completada! 🎉","El agente ha finalizado el procesamiento de tu solicitud con éxito."),Ke(r),Gt(r),!1))}F("")}else{const C=await g.json().catch(()=>({}));F(C.message||"No se pudo comprobar el estado de Opencode")}}catch(g){console.error(g)}}const ct=async g=>{if(g.preventDefault(),!K.trim()||!ge.trim())return;let C=ge.trim();C.startsWith("/")||(C=`/Users/wavesbyte/Documents/Repositorio Zugzbot/${C}`);const q=`project_${Date.now()}`,Q={id:q,name:K.trim(),path:C};try{await fetch("/api-custom/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:C})})}catch(H){console.error("Error al solicitar creación de carpeta física:",H)}yt(H=>[...H,Q]),rt(H=>({...H,[q]:!0})),_t(q),me(""),b(""),B(!1)},Zu=g=>{if(g==="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.")&&(yt(C=>C.filter(q=>q.id!==g)),nt(C=>{const q={...C};for(const Q in q)q[Q]===g&&delete q[Q];return q}),Re===g&&_t("workspace_raiz"))},Vu=g=>{rt(C=>({...C,[g]:!C[g]}))},Ku=async g=>{const C=we.find(q=>q.id===g);if(C){w(!0),F("Activando entorno de proyecto en segundo plano...");try{const q=await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:C.path})});if(q.ok)_t(g),c([]),s(""),x(null),_([]),await Na(),F("");else{const Q=await q.json().catch(()=>({}));F(Q.error||"Error al activar el proyecto")}}catch{F("No se pudo conectar con el Daemon para activar el proyecto")}finally{w(!1)}}},ja=async g=>{const C=we.find(Q=>Q.id===g);if(!C)return;if(Re!==g){w(!0),F(`Activando entorno de "${C.name}"...`);try{if((await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:C.path})})).ok)_t(g),c([]),s(""),x(null),_([]),F("");else{alert(`No se pudo activar el proyecto: ${C.name}`),w(!1);return}}catch{alert(`Error al conectar al Daemon para activar el proyecto: ${C.name}`),w(!1);return}}const q=prompt(`Introduce el título de la nueva sesión para "${C.name}":`,`Sesión ${new Date().toLocaleDateString()}`);if(!(!q||!q.trim())){w(!0),F("Iniciando sesión...");try{const Q=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:q.trim()})});if(Q.ok){const H=await Q.json();c(Se=>[H,...Se]),s(H.id),x(H),_([]),nt(Se=>({...Se,[H.id]:g})),Yt("/")}else alert("Error al crear la sesión en Opencode")}catch{alert("Error de conexión al crear sesión")}finally{w(!1),F("")}}},_a=async(g,C)=>{if(C.stopPropagation(),!!confirm("¿Estás seguro de que quieres eliminar esta sesión y todos sus mensajes permanentemente?"))try{(await fetch(`/api/session/${g}`,{method:"DELETE"})).ok?(c(Q=>Q.filter(H=>H.id!==g)),nt(Q=>{const H={...Q};return delete H[g],H}),r===g&&(s(""),x(null),_([]))):alert("No se pudo eliminar la sesión de Opencode")}catch{alert("Error de red al eliminar la sesión")}},Oa=g=>{g.preventDefault();const C=g.clientX,q=D,Q=Se=>{const Me=Se.clientX-C,Ot=Math.max(220,Math.min(500,q+Me));G(Ot)},H=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",H)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",H)},nl=async g=>{if(g&&g.preventDefault(),!ll.trim()){alert("Por favor introduce un título para la sesión");return}try{w(!0);const C=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:ll.trim()})});if(!C.ok)throw new Error("Error al crear sesión");const q=await C.json();c(Me=>[q,...Me]),s(q.id),x(q),_([]),nt(Me=>({...Me,[q.id]:Re})),Pl(Il),W(vt);const Q=we.find(Me=>Me.id===Re);let H="";Q&&Q.id!=="workspace_raiz"&&(H=`[SISTEMA: Directorio de trabajo del proyecto: ${Q.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.]
|
|
263
|
+
|
|
264
|
+
`);const Se=(H+Aa.trim()).trim();if(Se){const Me={parts:[{type:"text",text:Se}],agent:Il};if(vt&&vt!=="default"){const[Ot,ft]=vt.split("/");Me.model={providerID:Ot,modelID:ft}}await fetch(`/api/session/${q.id}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Me)}),yi("")}Yt("/"),Ve()}catch{alert("Error al iniciar la nueva sesión")}finally{w(!1)}},ea=async g=>{if(g.preventDefault(),!m.trim()||!r)return;const C=m.trim();S(""),w(!0),vn(!1);const q={info:{id:`temp-${Date.now()}`,session_id:r,role:"user",time:{created:Date.now()}},parts:[{type:"text",text:C}]};_(Q=>[...Q,q]);try{if(C.startsWith("/")){const Q=C.split(" "),H=Q[0].substring(1),Se=Q.slice(1).join(" ");if(!(await fetch(`/api/session/${r}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:H,arguments:Se,agent:al})})).ok)throw new Error("Error al ejecutar comando")}else{const Q={parts:[{type:"text",text:C}],agent:al};if(L&&L!=="default"){const[Se,Me]=L.split("/");Q.model={providerID:Se,modelID:Me}}if(!(await fetch(`/api/session/${r}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Q)})).ok)throw new Error("Error al enviar prompt")}Ve()}catch{F("Error al conectar. Comprueba el estado de Opencode."),w(!1)}},$t=async(g,C="")=>{if(!r)return;w(!0),vn(!1);const q=`/${g} ${C}`.trim(),Q={info:{id:`temp-${Date.now()}`,session_id:r,role:"user",time:{created:Date.now()}},parts:[{type:"text",text:q}]};_(H=>[...H,Q]);try{if(!(await fetch(`/api/session/${r}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:g,arguments:C,agent:al})})).ok)throw new Error("Error al ejecutar comando rápido");Ve()}catch{F("No se pudo ejecutar el comando rápido."),w(!1)}},Ju=async()=>{if(r)try{(await fetch(`/api/session/${r}/abort`,{method:"POST"})).ok&&(w(!1),El("Opencode: Abortado","La sesión en ejecución ha sido cancelada forzadamente."),Ve())}catch(g){console.error(g)}},Sn=g=>{Ge(C=>({...C,[g]:!C[g]}))},zn=g=>{if(!g)return"default";if(typeof g=="string")return g.split("/").pop()||g;if(typeof g=="object"&&g!==null){const C=g;return typeof C.modelID=="string"?C.modelID:typeof C.id=="string"?C.id:JSON.stringify(g).substring(0,20)}return"default"},ta=g=>{var q;const C=((q=g==null?void 0:g.time)==null?void 0:q.created)||(g==null?void 0:g.time_created);if(!C)return"En curso...";try{const Q=new Date(C);return isNaN(Q.getTime())?"En curso...":Q.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch{return"En curso..."}},$u=o.filter(g=>!g.parent_id&&!g.parentID),Tn=g=>o.filter(C=>C.parent_id===g||C.parentID===g),Si=g=>$u.filter(C=>{var Q;const q=Kt[C.id];return q&&we.some(H=>H.id===q)?q===g:((Q=we[0])==null?void 0:Q.id)===g}),ka=[],la=lt.find(g=>g.port===je);return d.jsxs("div",{className:"flex h-screen bg-[#09090b] text-[#f4f4f5] overflow-hidden antialiased font-sans select-none",children:[d.jsxs("div",{style:{width:`${D}px`},className:"bg-[#0c0c0e] border-r border-[#1f1f23] flex flex-col justify-between shrink-0 relative",children:[d.jsxs("div",{className:"p-4 border-b border-[#1f1f23] flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"p-1.5 bg-[#ffffff] rounded-md text-[#09090b]",children:d.jsx(Z1,{size:18,className:"font-bold animate-pulse"})}),d.jsx("span",{className:"font-bold tracking-tight text-lg",children:"ZugzWeb"})]}),d.jsx("button",{onClick:()=>Yt("/new"),className:"p-1.5 bg-[#27272a] hover:bg-[#3f3f46] text-[#fafafa] rounded-md transition duration-200 cursor-pointer",title:"Nueva Sesión",children:d.jsx(Cu,{size:16})})]}),d.jsxs("div",{className:"p-3 border-b border-[#1f1f23] flex items-center justify-between bg-[#09090b]/40",children:[d.jsxs("span",{className:"text-[10px] text-[#fafafa] uppercase font-extrabold tracking-wider flex items-center gap-1.5 select-none",children:[d.jsx(Y1,{size:11,className:"text-emerald-400"}),d.jsx("span",{children:"📁 GESTOR DE PROYECTOS"})]}),d.jsxs("button",{onClick:()=>B(!k),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:[d.jsx(Cu,{size:10,strokeWidth:2.5}),d.jsx("span",{children:"Proyecto"})]})]}),k&&d.jsxs("form",{onSubmit:ct,className:"p-3 bg-[#121215] border-b border-[#1f1f23] space-y-2.5",children:[d.jsxs("div",{className:"space-y-1",children:[d.jsx("label",{className:"text-[9px] font-bold text-[#71717a] uppercase",children:"Nombre del Proyecto"}),d.jsx("input",{type:"text",required:!0,value:K,onChange:g=>me(g.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]"})]}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("label",{className:"text-[9px] font-bold text-[#71717a] uppercase",children:"Subcarpeta o Ruta Absoluta"}),d.jsx("input",{type:"text",required:!0,value:ge,onChange:g=>b(g.target.value),placeholder:"Ej. Proyecto-A",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] font-mono"})]}),d.jsxs("div",{className:"flex gap-2 justify-end pt-1",children:[d.jsx("button",{type:"button",onClick:()=>B(!1),className:"px-2 py-1 text-[10px] text-[#71717a] hover:text-white transition cursor-pointer",children:"Cancelar"}),d.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"})]})]}),d.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-3",children:[we.map(g=>{const C=g.id===Re,q=Si(g.id),Q=!!bt[g.id];return d.jsxs("div",{className:"space-y-1 border border-transparent rounded-lg p-1 bg-[#09090b]/20",children:[d.jsxs("div",{className:`flex items-center justify-between p-2 rounded-md transition duration-150 ${C?"bg-[#18181c] border border-[#2e2e33]/70":"hover:bg-[#121215]/50"}`,children:[d.jsxs("button",{onClick:()=>Vu(g.id),className:"flex-1 flex items-center gap-2 text-left cursor-pointer outline-none min-w-0",children:[d.jsx("span",{className:"text-[#a1a1aa] shrink-0",children:Q?d.jsx(mn,{size:12}):d.jsx(fr,{size:12})}),d.jsxs("div",{className:"truncate",children:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsxs("span",{className:"text-white text-xs font-extrabold truncate",children:["📁 ",g.name]}),C&&d.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"})]}),d.jsx("span",{className:"text-[9px] text-[#52525b] block truncate font-mono mt-0.5",children:g.path})]})]}),d.jsxs("div",{className:"flex items-center gap-1 shrink-0 ml-1",children:[d.jsx("button",{onClick:()=>ja(g.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:d.jsx(Cu,{size:10,strokeWidth:3})}),!C&&d.jsx("button",{onClick:()=>Ku(g.id),className:"p-1 hover:bg-[#27272a] text-[#71717a] hover:text-white rounded transition cursor-pointer",title:"Activar Proyecto",children:d.jsx(Yh,{size:10,className:"fill-current"})}),g.id!=="workspace_raiz"&&d.jsx("button",{onClick:()=>Zu(g.id),className:"p-1 hover:bg-red-950/40 text-[#71717a] hover:text-red-400 rounded transition cursor-pointer",title:"Eliminar Proyecto",children:d.jsx(dr,{size:10})})]})]}),Q&&d.jsx("div",{className:"ml-3 pl-2.5 border-l border-[#1f1f23] space-y-1 pt-1.5 pb-0.5",children:q.length===0?d.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."}):q.map(H=>{const Se=H.id===r,Me=Tn(H.id),Ot=Me.length>0;return d.jsxs("div",{className:"space-y-1",children:[d.jsxs("div",{className:`w-full group/sess flex items-center justify-between rounded-lg p-1.5 transition duration-200 ${Se?"bg-[#1c1c1f] border border-[#2e2e33] text-white shadow-sm":"hover:bg-[#121215] text-[#a1a1aa] hover:text-white"}`,children:[d.jsxs("button",{onClick:()=>{s(H.id),F(""),Yt("/")},className:"flex-1 text-left cursor-pointer outline-none min-w-0",children:[d.jsxs("span",{className:"font-semibold truncate text-[11px] block",children:["💬 ",H.title||`Sesión: ${H.id.substring(0,8)}`]}),d.jsxs("div",{className:"flex items-center justify-between text-[9px] text-[#52525b] mt-0.5",children:[d.jsx("span",{children:H.agent||"sdd-orchestrator"}),d.jsx("span",{children:zn(H.model)})]})]}),d.jsx("button",{onClick:ft=>_a(H.id,ft),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:d.jsx(dr,{size:10})})]}),Ot&&d.jsx("div",{className:"ml-3 pl-2 border-l border-[#1f1f23]/60 space-y-1 py-0.5",children:Me.map(ft=>{const aa=ft.id===r;return d.jsx("button",{onClick:()=>{s(ft.id),F(""),Yt("/")},className:`w-full text-left p-1.5 rounded-md flex flex-col gap-0.5 transition duration-150 cursor-pointer text-[10px] ${aa?"bg-[#18181c] border border-[#2e2e33]/40 text-white":"hover:bg-[#0f0f12] text-[#71717a] hover:text-[#a1a1aa]"}`,children:d.jsxs("div",{className:"flex items-center gap-1 font-medium truncate",children:[d.jsx(O1,{size:10,className:"text-[#71717a] shrink-0"}),d.jsxs("span",{className:"truncate",children:["🤖 ",ft.title||`Sub: ${ft.id.substring(0,5)}`]})]})},ft.id)})})]},H.id)})})]},g.id)}),ka.length>0&&d.jsxs("div",{className:"space-y-1 border border-dashed border-[#1f1f23] rounded-lg p-1 bg-[#09090b]/10 mt-2",children:[d.jsxs("div",{className:"p-2 flex items-center justify-between",children:[d.jsx("span",{className:"text-xs font-bold text-amber-500/80 flex items-center gap-1.5",children:"📥 Inbox / Sin Clasificar"}),d.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:ka.length})]}),d.jsx("div",{className:"ml-1 pl-1 space-y-1 pt-1",children:ka.map(g=>{const C=g.id===r,q=Tn(g.id),Q=q.length>0;return d.jsxs("div",{className:"space-y-1",children:[d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsxs("button",{onClick:()=>{s(g.id),F(""),Yt("/")},className:`flex-1 text-left p-2 rounded-lg flex flex-col gap-0.5 transition duration-200 cursor-pointer ${C?"bg-[#1c1c1f] border border-[#2e2e33] text-white shadow-sm":"hover:bg-[#121215] text-[#a1a1aa] hover:text-white"}`,children:[d.jsxs("span",{className:"font-semibold truncate text-[11px]",children:["💬 ",g.title||`Sesión: ${g.id.substring(0,8)}`]}),d.jsx("div",{className:"flex items-center justify-between text-[9px] text-[#52525b]",children:d.jsx("span",{children:g.agent||"sdd-orchestrator"})})]}),d.jsx("button",{onClick:()=>{nt(H=>({...H,[g.id]:Re}))},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"})]}),Q&&d.jsx("div",{className:"ml-3 pl-2 border-l border-[#1f1f23]/60 space-y-1 py-0.5",children:q.map(H=>{const Se=H.id===r;return d.jsx("button",{onClick:()=>{s(H.id),F(""),Yt("/")},className:`w-full text-left p-1 rounded-md flex flex-col gap-0.5 transition duration-150 cursor-pointer text-[10px] ${Se?"bg-[#18181c] border border-[#2e2e33]/40 text-white":"hover:bg-[#0f0f12] text-[#71717a] hover:text-[#a1a1aa]"}`,children:d.jsxs("span",{className:"truncate",children:["🤖 ",H.title||`Sub: ${H.id.substring(0,5)}`]})},H.id)})})]},g.id)})})]})]}),d.jsxs("div",{className:"p-4 bg-[#09090b] border-t border-[#1f1f23] space-y-3",children:[d.jsx("button",{onClick:vi,className:`w-full flex items-center justify-center gap-2 py-2 px-3 rounded-md text-xs font-medium border transition cursor-pointer ${Y?"bg-transparent border-[#22c55e]/30 hover:border-[#22c55e]/50 text-[#22c55e]":"bg-transparent border-[#27272a] hover:border-[#3f3f46] text-[#a1a1aa]"}`,children:Y?d.jsxs(d.Fragment,{children:[d.jsx(y1,{size:14}),d.jsx("span",{children:"Notificaciones Activas"})]}):d.jsxs(d.Fragment,{children:[d.jsx(m1,{size:14}),d.jsx("span",{children:"Activar Alertas Navegador"})]})}),U&&d.jsxs("div",{className:"p-2 bg-[#1c1c1f]/50 border border-[#2e2e33] rounded-lg space-y-1",children:[d.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-[#a1a1aa] font-medium",children:[d.jsx(w1,{size:11,className:"text-[#3b82f6] animate-pulse"}),d.jsx("span",{children:"Túnel Remoto Activo"})]}),d.jsxs("a",{href:U,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] text-[#3b82f6] hover:underline flex items-center gap-1 font-mono break-all",children:[U,d.jsx(M1,{size:8})]})]})]})]}),d.jsx("div",{onMouseDown:Oa,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:d.jsx("div",{className:"w-[1px] h-8 bg-transparent group-hover:bg-white/40 group-active:bg-white/60 transition"})}),d.jsx("div",{className:"flex-1 flex flex-col bg-[#09090b] relative overflow-hidden",children:Fe?d.jsxs(d.Fragment,{children:[d.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:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(or,{size:16,className:"text-emerald-400 animate-pulse"}),d.jsx("h1",{className:"text-sm font-bold text-[#fafafa]",children:"Crear Nueva Sesión de Desarrollo"})]}),o.length>0&&d.jsx("button",{onClick:()=>Yt("/"),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"})]}),d.jsxs("div",{className:"flex-1 overflow-y-auto p-8 max-w-2xl mx-auto w-full space-y-6",children:[d.jsxs("div",{className:"space-y-1.5",children:[d.jsx("h2",{className:"text-xl font-bold tracking-tight text-white flex items-center gap-2",children:d.jsx("span",{children:"🚀 Comenzar un nuevo flujo"})}),d.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."})]}),d.jsxs("form",{onSubmit:nl,className:"space-y-5",children:[d.jsxs("div",{className:"space-y-1.5",children:[d.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Título de la Sesión"}),d.jsx("input",{type:"text",value:ll,onChange:g=>Fl(g.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})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Agente Primario Inicial"}),d.jsx("div",{className:"grid grid-cols-1 gap-2.5",children:hr.map(g=>{const C=Il===g.id;return d.jsxs("button",{type:"button",onClick:()=>gi(g.id),className:`w-full text-left p-3.5 rounded-xl border transition-all duration-200 flex gap-3 cursor-pointer relative ${C?"bg-[#121215] border-white/60 shadow-[0_0_12px_rgba(255,255,255,0.05)]":"bg-[#0c0c0e] border-[#1f1f23] hover:border-[#27272a]"}`,children:[d.jsx("div",{className:"h-8 w-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${g.color}15`,color:g.color},children:g.id==="build"?d.jsx(Gh,{size:16}):g.id==="plan"?d.jsx(qh,{size:16}):d.jsx(or,{size:16})}),d.jsxs("div",{className:"space-y-0.5",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-bold text-white",children:g.name}),g.id==="sdd-orchestrator"&&d.jsx("span",{className:"text-[9px] bg-white/10 text-white/80 font-mono px-1 rounded uppercase tracking-wider",children:"Por defecto"})]}),d.jsx("p",{className:"text-[11px] text-[#71717a] leading-relaxed",children:g.description})]}),C&&d.jsx("div",{className:"absolute right-4 top-4 h-4 w-4 bg-white rounded-full flex items-center justify-center text-[#09090b]",children:d.jsx(Uh,{size:10,strokeWidth:3})})]},g.id)})})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Modelo Objetivo"}),d.jsxs("div",{className:"relative",children:[d.jsx("select",{value:vt,onChange:g=>yn(g.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:Qh.map(g=>d.jsx("option",{value:g.id,children:g.name},g.id))}),d.jsx("div",{className:"absolute inset-y-0 right-4 flex items-center pointer-events-none text-[#71717a]",children:d.jsx(mn,{size:16})})]})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Primera Instrucción (Opcional)"}),d.jsx("span",{className:"text-[10px] text-[#52525b]",children:"Arranca de inmediato"})]}),d.jsx("textarea",{value:Aa,onChange:g=>yi(g.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"})]}),d.jsxs("button",{type:"submit",disabled:N,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:[N?d.jsx(Uu,{size:14,className:"animate-spin"}):d.jsx(Cu,{size:14,strokeWidth:2.5}),d.jsx("span",{children:N?"Iniciando sesión...":"Crear e Iniciar Sesión"})]})]})]})]}):d.jsxs(d.Fragment,{children:[d.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:[d.jsxs("div",{className:"flex flex-col",children:[d.jsxs("h1",{className:"text-sm font-bold m-0 p-0 text-[#fafafa] flex items-center gap-2",children:[(h==null?void 0:h.title)||"Cargando sesión...",N&&d.jsxs("span",{className:"flex h-2 w-2 relative",children:[d.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#22c55e] opacity-75"}),d.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#22c55e]"})]})]}),h&&d.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-[#71717a] mt-0.5",children:[d.jsxs("span",{children:["ID: ",d.jsx("code",{className:"text-[10px] font-mono bg-transparent p-0",children:h.id})]}),d.jsx("span",{children:"•"}),d.jsxs("span",{children:["Costo: ",d.jsxs("span",{className:"text-[#22c55e] font-mono",children:["$",(h.cost||0).toFixed(6)]})]}),d.jsx("span",{children:"•"}),d.jsxs("span",{children:["Tokens: In: ",h.tokens_input||0," | Out: ",h.tokens_output||0]})]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[qe&&d.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:[d.jsx(Hh,{size:12}),qe]}),d.jsx("button",{onClick:()=>{r&&(Ke(r),Gt(r),xt())},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:d.jsx(Uu,{size:14,className:N?"animate-spin":""})})]})]}),r&&d.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:[d.jsxs("span",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider shrink-0 mr-1 flex items-center gap-1 select-none",children:[d.jsx(qh,{size:11}),d.jsx("span",{children:"Comandos Rápidos:"})]}),d.jsx("button",{onClick:()=>$t("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"}),d.jsx("button",{onClick:()=>$t("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"}),d.jsx("button",{onClick:()=>$t("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"}),d.jsxs("button",{onClick:()=>$t("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:[d.jsx(or,{size:10}),d.jsx("span",{children:"Iniciar Autopiloto (/loop)"})]})]}),d.jsx("div",{ref:Jt,onScroll:Lu,className:"flex-1 overflow-y-auto p-6 space-y-6",children:h?j.length===0?d.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-[#71717a] space-y-3",children:[d.jsx(C1,{size:36,className:"text-[#27272a]"}),d.jsxs("div",{className:"text-center",children:[d.jsx("p",{className:"text-sm font-medium",children:"No hay mensajes en esta sesión"}),d.jsx("p",{className:"text-xs mt-0.5",children:"Escribe una instrucción, comando o inicia un loop de desarrollo abajo."})]})]}):j.map((g,C)=>{const q=g.info.role==="user",Q=g.parts.filter(H=>H.type==="text").map(H=>H.text).join(`
|
|
265
|
+
|
|
266
|
+
`);return d.jsxs("div",{className:`flex gap-4 max-w-4xl mx-auto ${q?"justify-end":"justify-start"}`,children:[!q&&d.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#18181b] flex items-center justify-center text-[#fafafa] shrink-0",children:d.jsx(v1,{size:16})}),d.jsxs("div",{className:`rounded-xl px-4 py-3 space-y-3 max-w-[85%] border shadow-sm group relative ${q?"bg-[#18181b] text-[#ffffff] border-[#2e2e33]":"bg-[#0c0c0e] text-[#f4f4f5] border-[#1f1f23]"}`,children:[d.jsxs("div",{className:"flex justify-between items-start border-b border-[#1f1f23]/40 pb-1 text-[11px] text-[#71717a] font-medium gap-2",children:[d.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[d.jsx("span",{children:q?"TÚ":"AGENTE"}),d.jsx("span",{children:"•"}),d.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[d.jsx(A1,{size:10}),ta(g.info)]})]}),Q&&d.jsx("button",{onClick:()=>Xu(Q,g.info.id||String(C)),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:te===(g.info.id||String(C))?d.jsx(Uh,{size:12,className:"text-green-500"}):d.jsx(Bh,{size:12})})]}),d.jsx("div",{className:"space-y-3",children:g.parts.map((H,Se)=>{var ft,aa,Al,Da,il;const Me=`${g.info.id||C}-${Se}`,Ot=ue[Me];if(H.type==="text")return d.jsx("div",{className:"text-sm leading-relaxed prose prose-invert max-w-none text-[#e4e4e7] markdown-content",dangerouslySetInnerHTML:bi(H.text||"")},Se);if(H.type==="reasoning")return d.jsxs("div",{className:"border border-[#2e2e33]/50 rounded-lg overflow-hidden bg-[#121215]/30",children:[d.jsxs("button",{onClick:()=>Sn(Me),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:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#a855f7] animate-pulse"}),d.jsx("span",{children:"Pensamiento del modelo"})]}),Ot?d.jsx(fr,{size:14}):d.jsx(mn,{size:14})]}),Ot&&d.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:H.text})]},Se);if(H.type==="tool"){const Wt=((ft=H.state)==null?void 0:ft.status)||"unknown",na=H.tool||"Desconocido",Nl=!!((aa=H.state)!=null&&aa.output);return d.jsxs("div",{className:"border border-[#1f1f23] rounded-lg overflow-hidden bg-[#0a0a0c]",children:[d.jsxs("button",{onClick:()=>Sn(Me),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:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Gh,{size:13,className:"text-amber-500 animate-spin",style:{animationDuration:"3s"}}),d.jsxs("span",{className:"font-semibold text-amber-400",children:["Herramienta: ",na]}),d.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded border ${Wt==="success"||Wt==="completed"?"bg-green-950/20 text-green-400 border-green-900/50":"bg-yellow-950/20 text-yellow-500 border-yellow-900/50"}`,children:Wt})]}),Ot?d.jsx(fr,{size:14}):d.jsx(mn,{size:14})]}),Ot&&d.jsxs("div",{className:"p-3 border-t border-[#1f1f23] bg-[#09090b] text-xs font-mono space-y-3",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider mb-1",children:"Entrada / Parámetros:"}),d.jsx("pre",{className:"p-2 bg-[#0c0c0e] rounded border border-[#1f1f23] text-[#fafafa] overflow-x-auto max-h-40",children:JSON.stringify(((Al=H.state)==null?void 0:Al.input)||{},null,2)})]}),Nl&&d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider mb-1",children:"Salida / Resultado:"}),d.jsx("pre",{className:"p-2 bg-[#0c0c0e] rounded border border-[#1f1f23] text-[#fafafa] overflow-x-auto max-h-60 overflow-y-auto",children:typeof((Da=H.state)==null?void 0:Da.output)=="string"?H.state.output:JSON.stringify((il=H.state)==null?void 0:il.output,null,2)})]})]})]},Se)}return null})})]}),q&&d.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#ffffff] flex items-center justify-center text-[#09090b] shrink-0",children:d.jsx(K1,{size:16})})]},g.info.id||C)}):d.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:qe?d.jsxs(d.Fragment,{children:[d.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:d.jsx(Hh,{size:28})}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("h2",{className:"text-lg font-bold text-white",children:"Conexión con Opencode Pendiente"}),d.jsx("p",{className:"text-xs text-[#a1a1aa] leading-relaxed",children:qe})]}),d.jsxs("div",{className:"w-full bg-[#0c0c0e] border border-[#1f1f23] rounded-xl p-4 text-left space-y-3",children:[d.jsx("p",{className:"text-[11px] font-bold text-[#fafafa] uppercase tracking-wider",children:"💡 ¿Cómo solucionarlo?"}),d.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:"}),d.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:[d.jsx("span",{children:"opencode serve"}),d.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText("opencode serve")},className:"text-[#a1a1aa] hover:text-white transition cursor-pointer",title:"Copiar comando",children:d.jsx(Bh,{size:12})})]}),d.jsx("p",{className:"text-[11px] text-[#71717a]",children:"Una vez levantado, ZugzWeb se conectará automáticamente y podrás controlar tu sesión."})]}),d.jsxs("button",{type:"button",onClick:()=>{Na(),xn()},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:[d.jsx(Uu,{size:12}),d.jsx("span",{children:"Volver a intentar conexión"})]})]}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"h-12 w-12 rounded-full border border-white/10 flex items-center justify-center text-[#71717a] animate-spin",children:d.jsx(Uu,{size:20})}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("h2",{className:"text-sm font-semibold text-white",children:"Cargando sesión activa..."}),d.jsx("p",{className:"text-xs text-[#71717a]",children:"Estableciendo canal seguro con tu arnés Opencode local"})]})]})})}),d.jsx("div",{className:"p-4 border-t border-[#1f1f23] bg-[#09090b] shrink-0",children:d.jsxs("form",{onSubmit:ea,className:"max-w-4xl mx-auto space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-4 px-1 flex-wrap",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-[10px] text-[#71717a] uppercase font-bold tracking-wider select-none",children:"Agente Activo:"}),d.jsxs("div",{className:"relative",children:[d.jsx("select",{value:al,onChange:g=>Pl(g.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:hr.map(g=>d.jsx("option",{value:g.id,children:g.name},g.id))}),d.jsx("div",{className:"absolute inset-y-0 right-1.5 flex items-center pointer-events-none text-[#71717a]",children:d.jsx(mn,{size:11})})]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-[10px] text-[#71717a] uppercase font-bold tracking-wider select-none",children:"Modelo Objetivo:"}),d.jsxs("div",{className:"relative",children:[d.jsx("select",{value:L,onChange:g=>W(g.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:Qh.map(g=>d.jsx("option",{value:g.id,children:g.name},g.id))}),d.jsx("div",{className:"absolute inset-y-0 right-1.5 flex items-center pointer-events-none text-[#71717a]",children:d.jsx(mn,{size:11})})]})]})]}),d.jsxs("div",{className:"relative border border-[#27272a] focus-within:border-[#3f3f46] rounded-xl bg-[#0c0c0e] overflow-hidden shadow-lg transition duration-200",children:[d.jsx("textarea",{value:m,onChange:g=>S(g.target.value),disabled:!r,onKeyDown:g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),ea(g))},placeholder:r?m.startsWith("/")?"Escribe los argumentos para el comando... (ej. /loop Crear login)":`Instrucción para ${(la==null?void 0:la.name)||"Opencode"} usando ${((Ma=hr.find(g=>g.id===al))==null?void 0:Ma.name)||al}... (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"}),d.jsx("div",{className:"absolute right-3 bottom-3 flex items-center gap-2",children:N?d.jsxs("button",{type:"button",onClick:Ju,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:[d.jsx(dr,{size:12,className:"fill-current"}),d.jsx("span",{children:"Abortar"})]}):d.jsxs("button",{type:"submit",disabled:!m.trim()||!r,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#ffffff] hover:bg-[#e4e4e7] disabled:bg-[#18181b] text-[#09090b] disabled:text-[#71717a] rounded-lg text-xs font-bold transition cursor-pointer shadow disabled:cursor-not-allowed",children:[d.jsx(Yh,{size:10,className:"fill-current"}),d.jsx("span",{children:"Enviar"})]})})]}),d.jsxs("div",{className:"flex justify-between items-center text-[11px] text-[#71717a] px-1",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${N?"bg-amber-500 animate-pulse":"bg-green-500"}`}),d.jsx("span",{children:N?"Procesando comando/loop":"Listo"})]}),d.jsx("span",{children:"•"}),d.jsxs("span",{children:["Enlazado al puerto :",je," de Opencode"]})]}),d.jsx("span",{className:"font-mono",children:"v1.2.0-web"})]})]})})]})})]})}xm.createRoot(document.getElementById("root")).render(d.jsx($.StrictMode,{children:d.jsx(J1,{})}));
|