hzl-web 2.9.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,109 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/force-graph-B5HrL0HG.js","assets/Paired-CHegtbHO.js","assets/index-CgGSX2ei.js"])))=>i.map(i=>d[i]);
2
- var m0=Object.defineProperty;var p0=(u,s,c)=>s in u?m0(u,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):u[s]=c;var Ve=(u,s,c)=>p0(u,typeof s!="symbol"?s+"":s,c);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const g of f)if(g.type==="childList")for(const y of g.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&r(y)}).observe(document,{childList:!0,subtree:!0});function c(f){const g={};return f.integrity&&(g.integrity=f.integrity),f.referrerPolicy&&(g.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?g.credentials="include":f.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function r(f){if(f.ep)return;f.ep=!0;const g=c(f);fetch(f.href,g)}})();var _r={exports:{}},Mi={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var Jh;function g0(){if(Jh)return Mi;Jh=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(r,f,g){var y=null;if(g!==void 0&&(y=""+g),f.key!==void 0&&(y=""+f.key),"key"in f){g={};for(var p in f)p!=="key"&&(g[p]=f[p])}else g=f;return f=g.ref,{$$typeof:u,type:r,key:y,ref:f!==void 0?f:null,props:g}}return Mi.Fragment=s,Mi.jsx=c,Mi.jsxs=c,Mi}var Fh;function y0(){return Fh||(Fh=1,_r.exports=g0()),_r.exports}var d=y0(),Ar={exports:{}},de={};/**
11
- * @license React
12
- * react.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var Wh;function v0(){if(Wh)return de;Wh=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),O=Symbol.iterator;function R(b){return b===null||typeof b!="object"?null:(b=O&&b[O]||b["@@iterator"],typeof b=="function"?b:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,ie={};function ye(b,L,C){this.props=b,this.context=L,this.refs=ie,this.updater=C||Q}ye.prototype.isReactComponent={},ye.prototype.setState=function(b,L){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,L,"setState")},ye.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function pe(){}pe.prototype=ye.prototype;function oe(b,L,C){this.props=b,this.context=L,this.refs=ie,this.updater=C||Q}var I=oe.prototype=new pe;I.constructor=oe,$(I,ye.prototype),I.isPureReactComponent=!0;var fe=Array.isArray;function ne(){}var Z={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function be(b,L,C){var V=C.ref;return{$$typeof:u,type:b,key:L,ref:V!==void 0?V:null,props:C}}function Ce(b,L){return be(b.type,L,b.props)}function he(b){return typeof b=="object"&&b!==null&&b.$$typeof===u}function U(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(C){return L[C]})}var H=/\/+/g;function ue(b,L){return typeof b=="object"&&b!==null&&b.key!=null?U(""+b.key):L.toString(36)}function Se(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(ne,ne):(b.status="pending",b.then(function(L){b.status==="pending"&&(b.status="fulfilled",b.value=L)},function(L){b.status==="pending"&&(b.status="rejected",b.reason=L)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function M(b,L,C,V,J){var ce=typeof b;(ce==="undefined"||ce==="boolean")&&(b=null);var me=!1;if(b===null)me=!0;else switch(ce){case"bigint":case"string":case"number":me=!0;break;case"object":switch(b.$$typeof){case u:case s:me=!0;break;case S:return me=b._init,M(me(b._payload),L,C,V,J)}}if(me)return J=J(b),me=V===""?"."+ue(b,0):V,fe(J)?(C="",me!=null&&(C=me.replace(H,"$&/")+"/"),M(J,L,C,"",function(It){return It})):J!=null&&(he(J)&&(J=Ce(J,C+(J.key==null||b&&b.key===J.key?"":(""+J.key).replace(H,"$&/")+"/")+me)),L.push(J)),1;me=0;var Ge=V===""?".":V+":";if(fe(b))for(var De=0;De<b.length;De++)V=b[De],ce=Ge+ue(V,De),me+=M(V,L,C,ce,J);else if(De=R(b),typeof De=="function")for(b=De.call(b),De=0;!(V=b.next()).done;)V=V.value,ce=Ge+ue(V,De++),me+=M(V,L,C,ce,J);else if(ce==="object"){if(typeof b.then=="function")return M(Se(b),L,C,V,J);throw L=String(b),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return me}function Y(b,L,C){if(b==null)return b;var V=[],J=0;return M(b,V,"","",function(ce){return L.call(C,ce,J++)}),V}function ee(b){if(b._status===-1){var L=b._result;L=L(),L.then(function(C){(b._status===0||b._status===-1)&&(b._status=1,b._result=C)},function(C){(b._status===0||b._status===-1)&&(b._status=2,b._result=C)}),b._status===-1&&(b._status=0,b._result=L)}if(b._status===1)return b._result.default;throw b._result}var _e=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=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(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},xe={map:Y,forEach:function(b,L,C){Y(b,function(){L.apply(this,arguments)},C)},count:function(b){var L=0;return Y(b,function(){L++}),L},toArray:function(b){return Y(b,function(L){return L})||[]},only:function(b){if(!he(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return de.Activity=E,de.Children=xe,de.Component=ye,de.Fragment=c,de.Profiler=f,de.PureComponent=oe,de.StrictMode=r,de.Suspense=T,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,de.__COMPILER_RUNTIME={__proto__:null,c:function(b){return Z.H.useMemoCache(b)}},de.cache=function(b){return function(){return b.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(b,L,C){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var V=$({},b.props),J=b.key;if(L!=null)for(ce in L.key!==void 0&&(J=""+L.key),L)!X.call(L,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&L.ref===void 0||(V[ce]=L[ce]);var ce=arguments.length-2;if(ce===1)V.children=C;else if(1<ce){for(var me=Array(ce),Ge=0;Ge<ce;Ge++)me[Ge]=arguments[Ge+2];V.children=me}return be(b.type,J,V)},de.createContext=function(b){return b={$$typeof:y,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:g,_context:b},b},de.createElement=function(b,L,C){var V,J={},ce=null;if(L!=null)for(V in L.key!==void 0&&(ce=""+L.key),L)X.call(L,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(J[V]=L[V]);var me=arguments.length-2;if(me===1)J.children=C;else if(1<me){for(var Ge=Array(me),De=0;De<me;De++)Ge[De]=arguments[De+2];J.children=Ge}if(b&&b.defaultProps)for(V in me=b.defaultProps,me)J[V]===void 0&&(J[V]=me[V]);return be(b,ce,J)},de.createRef=function(){return{current:null}},de.forwardRef=function(b){return{$$typeof:p,render:b}},de.isValidElement=he,de.lazy=function(b){return{$$typeof:S,_payload:{_status:-1,_result:b},_init:ee}},de.memo=function(b,L){return{$$typeof:m,type:b,compare:L===void 0?null:L}},de.startTransition=function(b){var L=Z.T,C={};Z.T=C;try{var V=b(),J=Z.S;J!==null&&J(C,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(ne,_e)}catch(ce){_e(ce)}finally{L!==null&&C.types!==null&&(L.types=C.types),Z.T=L}},de.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},de.use=function(b){return Z.H.use(b)},de.useActionState=function(b,L,C){return Z.H.useActionState(b,L,C)},de.useCallback=function(b,L){return Z.H.useCallback(b,L)},de.useContext=function(b){return Z.H.useContext(b)},de.useDebugValue=function(){},de.useDeferredValue=function(b,L){return Z.H.useDeferredValue(b,L)},de.useEffect=function(b,L){return Z.H.useEffect(b,L)},de.useEffectEvent=function(b){return Z.H.useEffectEvent(b)},de.useId=function(){return Z.H.useId()},de.useImperativeHandle=function(b,L,C){return Z.H.useImperativeHandle(b,L,C)},de.useInsertionEffect=function(b,L){return Z.H.useInsertionEffect(b,L)},de.useLayoutEffect=function(b,L){return Z.H.useLayoutEffect(b,L)},de.useMemo=function(b,L){return Z.H.useMemo(b,L)},de.useOptimistic=function(b,L){return Z.H.useOptimistic(b,L)},de.useReducer=function(b,L,C){return Z.H.useReducer(b,L,C)},de.useRef=function(b){return Z.H.useRef(b)},de.useState=function(b){return Z.H.useState(b)},de.useSyncExternalStore=function(b,L,C){return Z.H.useSyncExternalStore(b,L,C)},de.useTransition=function(){return Z.H.useTransition()},de.version="19.2.4",de}var Ih;function Wr(){return Ih||(Ih=1,Ar.exports=v0()),Ar.exports}var z=Wr(),Er={exports:{}},Ci={},Nr={exports:{}},kr={};/**
19
- * @license React
20
- * scheduler.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var Ph;function b0(){return Ph||(Ph=1,(function(u){function s(M,Y){var ee=M.length;M.push(Y);e:for(;0<ee;){var _e=ee-1>>>1,xe=M[_e];if(0<f(xe,Y))M[_e]=Y,M[ee]=xe,ee=_e;else break e}}function c(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var Y=M[0],ee=M.pop();if(ee!==Y){M[0]=ee;e:for(var _e=0,xe=M.length,b=xe>>>1;_e<b;){var L=2*(_e+1)-1,C=M[L],V=L+1,J=M[V];if(0>f(C,ee))V<xe&&0>f(J,C)?(M[_e]=J,M[V]=ee,_e=V):(M[_e]=C,M[L]=ee,_e=L);else if(V<xe&&0>f(J,ee))M[_e]=J,M[V]=ee,_e=V;else break e}}return Y}function f(M,Y){var ee=M.sortIndex-Y.sortIndex;return ee!==0?ee:M.id-Y.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;u.unstable_now=function(){return g.now()}}else{var y=Date,p=y.now();u.unstable_now=function(){return y.now()-p}}var T=[],m=[],S=1,E=null,O=3,R=!1,Q=!1,$=!1,ie=!1,ye=typeof setTimeout=="function"?setTimeout:null,pe=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function I(M){for(var Y=c(m);Y!==null;){if(Y.callback===null)r(m);else if(Y.startTime<=M)r(m),Y.sortIndex=Y.expirationTime,s(T,Y);else break;Y=c(m)}}function fe(M){if($=!1,I(M),!Q)if(c(T)!==null)Q=!0,ne||(ne=!0,U());else{var Y=c(m);Y!==null&&Se(fe,Y.startTime-M)}}var ne=!1,Z=-1,X=5,be=-1;function Ce(){return ie?!0:!(u.unstable_now()-be<X)}function he(){if(ie=!1,ne){var M=u.unstable_now();be=M;var Y=!0;try{e:{Q=!1,$&&($=!1,pe(Z),Z=-1),R=!0;var ee=O;try{t:{for(I(M),E=c(T);E!==null&&!(E.expirationTime>M&&Ce());){var _e=E.callback;if(typeof _e=="function"){E.callback=null,O=E.priorityLevel;var xe=_e(E.expirationTime<=M);if(M=u.unstable_now(),typeof xe=="function"){E.callback=xe,I(M),Y=!0;break t}E===c(T)&&r(T),I(M)}else r(T);E=c(T)}if(E!==null)Y=!0;else{var b=c(m);b!==null&&Se(fe,b.startTime-M),Y=!1}}break e}finally{E=null,O=ee,R=!1}Y=void 0}}finally{Y?U():ne=!1}}}var U;if(typeof oe=="function")U=function(){oe(he)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,ue=H.port2;H.port1.onmessage=he,U=function(){ue.postMessage(null)}}else U=function(){ye(he,0)};function Se(M,Y){Z=ye(function(){M(u.unstable_now())},Y)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(M){M.callback=null},u.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<M?Math.floor(1e3/M):5},u.unstable_getCurrentPriorityLevel=function(){return O},u.unstable_next=function(M){switch(O){case 1:case 2:case 3:var Y=3;break;default:Y=O}var ee=O;O=Y;try{return M()}finally{O=ee}},u.unstable_requestPaint=function(){ie=!0},u.unstable_runWithPriority=function(M,Y){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ee=O;O=M;try{return Y()}finally{O=ee}},u.unstable_scheduleCallback=function(M,Y,ee){var _e=u.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?_e+ee:_e):ee=_e,M){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=ee+xe,M={id:S++,callback:Y,priorityLevel:M,startTime:ee,expirationTime:xe,sortIndex:-1},ee>_e?(M.sortIndex=ee,s(m,M),c(T)===null&&M===c(m)&&($?(pe(Z),Z=-1):$=!0,Se(fe,ee-_e))):(M.sortIndex=xe,s(T,M),Q||R||(Q=!0,ne||(ne=!0,U()))),M},u.unstable_shouldYield=Ce,u.unstable_wrapCallback=function(M){var Y=O;return function(){var ee=O;O=Y;try{return M.apply(this,arguments)}finally{O=ee}}}})(kr)),kr}var em;function S0(){return em||(em=1,Nr.exports=b0()),Nr.exports}var jr={exports:{}},Nt={};/**
27
- * @license React
28
- * react-dom.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var tm;function x0(){if(tm)return Nt;tm=1;var u=Wr();function s(T){var m="https://react.dev/errors/"+T;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)m+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+T+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function g(T,m,S){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:E==null?null:""+E,children:T,containerInfo:m,implementation:S}}var y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(T,m){if(T==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Nt.createPortal=function(T,m){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(s(299));return g(T,m,null,S)},Nt.flushSync=function(T){var m=y.T,S=r.p;try{if(y.T=null,r.p=2,T)return T()}finally{y.T=m,r.p=S,r.d.f()}},Nt.preconnect=function(T,m){typeof T=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(T,m))},Nt.prefetchDNS=function(T){typeof T=="string"&&r.d.D(T)},Nt.preinit=function(T,m){if(typeof T=="string"&&m&&typeof m.as=="string"){var S=m.as,E=p(S,m.crossOrigin),O=typeof m.integrity=="string"?m.integrity:void 0,R=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;S==="style"?r.d.S(T,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:E,integrity:O,fetchPriority:R}):S==="script"&&r.d.X(T,{crossOrigin:E,integrity:O,fetchPriority:R,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Nt.preinitModule=function(T,m){if(typeof T=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var S=p(m.as,m.crossOrigin);r.d.M(T,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(T)},Nt.preload=function(T,m){if(typeof T=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var S=m.as,E=p(S,m.crossOrigin);r.d.L(T,S,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Nt.preloadModule=function(T,m){if(typeof T=="string")if(m){var S=p(m.as,m.crossOrigin);r.d.m(T,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(T)},Nt.requestFormReset=function(T){r.d.r(T)},Nt.unstable_batchedUpdates=function(T,m){return T(m)},Nt.useFormState=function(T,m,S){return y.H.useFormState(T,m,S)},Nt.useFormStatus=function(){return y.H.useHostTransitionStatus()},Nt.version="19.2.4",Nt}var lm;function T0(){if(lm)return jr.exports;lm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),jr.exports=x0(),jr.exports}/**
35
- * @license React
36
- * react-dom-client.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var am;function _0(){if(am)return Ci;am=1;var u=S0(),s=Wr(),c=T0();function r(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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(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 y(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 p(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 T(e){if(g(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(r(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 T(n),e;if(i===a)return T(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var o=!1,h=n.child;h;){if(h===l){o=!0,l=n,a=i;break}if(h===a){o=!0,a=n,l=i;break}h=h.sibling}if(!o){for(h=i.child;h;){if(h===l){o=!0,l=i,a=n;break}if(h===a){o=!0,a=i,l=n;break}h=h.sibling}if(!o)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,O=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),pe=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),be=Symbol.for("react.activity"),Ce=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function U(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var H=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case ye:return"Profiler";case ie:return"StrictMode";case fe:return"Suspense";case ne:return"SuspenseList";case be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case oe:return e.displayName||"Context";case pe:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var Se=Array.isArray,M=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},_e=[],xe=-1;function b(e){return{current:e}}function L(e){0>xe||(e.current=_e[xe],_e[xe]=null,xe--)}function C(e,t){xe++,_e[xe]=e.current,e.current=t}var V=b(null),J=b(null),ce=b(null),me=b(null);function Ge(e,t){switch(C(ce,t),C(J,e),C(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vh(t),e=bh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(V),C(V,e)}function De(){L(V),L(J),L(ce)}function It(e){e.memoizedState!==null&&C(me,e);var t=V.current,l=bh(t,e.type);t!==l&&(C(J,e),C(V,l))}function ht(e){J.current===e&&(L(V),L(J)),me.current===e&&(L(me),Ni._currentValue=ee)}var Oe,vt;function it(e){if(Oe===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||"",vt=-1<l.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+Oe+e+vt}var bt=!1;function Ot(e,t){if(!e||bt)return"";bt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(D){var j=D}Reflect.construct(e,[],q)}else{try{q.call()}catch(D){j=D}e.call(q.prototype)}}else{try{throw Error()}catch(D){j=D}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(D){if(D&&j&&typeof D.stack=="string")return[D.stack,j.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(),o=i[0],h=i[1];if(o&&h){var v=o.split(`
45
- `),k=h.split(`
46
- `);for(n=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;n<k.length&&!k[n].includes("DetermineComponentFrameRoot");)n++;if(a===v.length||n===k.length)for(a=v.length-1,n=k.length-1;1<=a&&0<=n&&v[a]!==k[n];)n--;for(;1<=a&&0<=n;a--,n--)if(v[a]!==k[n]){if(a!==1||n!==1)do if(a--,n--,0>n||v[a]!==k[n]){var w=`
47
- `+v[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{bt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?it(l):""}function pl(e,t){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return e.child!==t&&t!==null?it("Suspense Fallback"):it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return Ot(e.type,!1);case 11:return Ot(e.type.render,!1);case 1:return Ot(e.type,!0);case 31:return it("Activity");default:return""}}function kt(e){try{var t="",l=null;do t+=pl(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
48
- Error generating stack: `+a.message+`
49
- `+a.stack}}var Pt=Object.prototype.hasOwnProperty,el=u.unstable_scheduleCallback,Xt=u.unstable_cancelCallback,wl=u.unstable_shouldYield,El=u.unstable_requestPaint,ut=u.unstable_now,Nl=u.unstable_getCurrentPriorityLevel,Qt=u.unstable_ImmediatePriority,Et=u.unstable_UserBlockingPriority,kl=u.unstable_NormalPriority,Ma=u.unstable_LowPriority,Ca=u.unstable_IdlePriority,Ra=u.log,Ll=u.unstable_setDisableYieldValue,tl=null,st=null;function Fe(e){if(typeof Ra=="function"&&Ll(e),st&&typeof st.setStrictMode=="function")try{st.setStrictMode(tl,e)}catch{}}var et=Math.clz32?Math.clz32:wn,aa=Math.log,Da=Math.LN2;function wn(e){return e>>>=0,e===0?32:31-(aa(e)/Da|0)|0}var gl=256,yl=262144,na=4194304;function jt(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 ia(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~i,a!==0?n=jt(a):(o&=h,o!==0?n=jt(o):l||(l=h&~e,l!==0&&(n=jt(l))))):(h=a&~i,h!==0?n=jt(h):o!==0?n=jt(o):l||(l=a&~e,l!==0&&(n=jt(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 K(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function te(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 P(){var e=na;return na<<=1,(na&62914560)===0&&(na=4194304),e}function ke(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function mt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oa(e,t,l,a,n,i){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,v=e.expirationTimes,k=e.hiddenUpdates;for(l=o&~l;0<l;){var w=31-et(l),q=1<<w;h[w]=0,v[w]=-1;var j=k[w];if(j!==null)for(k[w]=null,w=0;w<j.length;w++){var D=j[w];D!==null&&(D.lane&=-536870913)}l&=~q}a!==0&&Ln(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Ln(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Hn(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-et(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Xi(e,t){var l=t&-t;return l=(l&42)!==0?1:Ut(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ut(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 vl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bn(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Gh(e.type))}function qn(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var ll=Math.random().toString(36).slice(2),ct="__reactFiber$"+ll,We="__reactProps$"+ll,Hl="__reactContainer$"+ll,tn="__reactEvents$"+ll,Qi="__reactListeners$"+ll,Zi="__reactHandles$"+ll,Vi="__reactResources$"+ll,le="__reactMarker$"+ll;function x(e){delete e[ct],delete e[We],delete e[tn],delete e[Qi],delete e[Zi]}function G(e){var t=e[ct];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Hl]||l[ct]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Nh(e);e!==null;){if(l=e[ct])return l;e=Nh(e)}return t}e=l,l=e.parentNode}return null}function F(e){if(e=e[ct]||e[Hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function He(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Pe(e){var t=e[Vi];return t||(t=e[Vi]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Te(e){e[le]=!0}var St=new Set,al={};function wt(e,t){jl(e,t),jl(e+"Capture",t)}function jl(e,t){for(al[e]=t,e=0;e<t.length;e++)St.add(t[e])}var pt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Yn={},Gn={};function up(e){return Pt.call(Gn,e)?!0:Pt.call(Yn,e)?!1:pt.test(e)?Gn[e]=!0:(Yn[e]=!0,!1)}function Ki(e,t,l){if(up(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 $i(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 Bl(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 nl(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function co(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sp(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(o){l=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gs(e){if(!e._valueTracker){var t=co(e)?"checked":"value";e._valueTracker=sp(e,t,""+e[t])}}function ro(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=co(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ji(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 cp=/[\n"\\]/g;function il(e){return e.replace(cp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ys(e,t,l,a,n,i,o,h){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nl(t)):e.value!==""+nl(t)&&(e.value=""+nl(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?vs(e,o,nl(t)):l!=null?vs(e,o,nl(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+nl(h):e.removeAttribute("name")}function oo(e,t,l,a,n,i,o,h){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)){gs(e);return}l=l!=null?""+nl(l):"",t=t!=null?""+nl(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),gs(e)}function vs(e,t,l){t==="number"&&Ji(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ln(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=""+nl(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 fo(e,t,l){if(t!=null&&(t=""+nl(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+nl(l):""}function ho(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Se(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=nl(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),gs(e)}function an(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var rp=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 mo(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||rp.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function po(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(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&&mo(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&mo(e,i,t[i])}function bs(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 op=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"]]),fp=/^[\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 Fi(e){return fp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ql(){}var Ss=null;function xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nn=null,un=null;function go(e){var t=F(e);if(t&&(e=t.stateNode)){var l=e[We]||null;e:switch(e=t.stateNode,t.type){case"input":if(ys(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="'+il(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[We]||null;if(!n)throw Error(r(90));ys(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&&ro(a)}break e;case"textarea":fo(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ln(e,!!l.multiple,t,!1)}}}var Ts=!1;function yo(e,t,l){if(Ts)return e(t,l);Ts=!0;try{var a=e(t);return a}finally{if(Ts=!1,(nn!==null||un!==null)&&(Lu(),nn&&(t=nn,e=un,un=nn=null,go(t),e)))for(t=0;t<e.length;t++)go(e[t])}}function Xn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[We]||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(r(231,t,typeof l));return l}var Yl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_s=!1;if(Yl)try{var Qn={};Object.defineProperty(Qn,"passive",{get:function(){_s=!0}}),window.addEventListener("test",Qn,Qn),window.removeEventListener("test",Qn,Qn)}catch{_s=!1}var ua=null,As=null,Wi=null;function vo(){if(Wi)return Wi;var e,t=As,l=t.length,a,n="value"in ua?ua.value:ua.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===n[i-a];a++);return Wi=n.slice(e,1<a?1-a:void 0)}function Ii(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 Pi(){return!0}function bo(){return!1}function Lt(e){function t(l,a,n,i,o){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(i):i[h]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Pi:bo,this.isPropagationStopped=bo,this}return E(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=Pi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Pi)},persist:function(){},isPersistent:Pi}),t}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eu=Lt(Ua),Zn=E({},Ua,{view:0,detail:0}),dp=Lt(Zn),Es,Ns,Vn,tu=E({},Zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:js,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!==Vn&&(Vn&&e.type==="mousemove"?(Es=e.screenX-Vn.screenX,Ns=e.screenY-Vn.screenY):Ns=Es=0,Vn=e),Es)},movementY:function(e){return"movementY"in e?e.movementY:Ns}}),So=Lt(tu),hp=E({},tu,{dataTransfer:0}),mp=Lt(hp),pp=E({},Zn,{relatedTarget:0}),ks=Lt(pp),gp=E({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),yp=Lt(gp),vp=E({},Ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bp=Lt(vp),Sp=E({},Ua,{data:0}),xo=Lt(Sp),xp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tp={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"},_p={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ap(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_p[e])?!!t[e]:!1}function js(){return Ap}var Ep=E({},Zn,{key:function(e){if(e.key){var t=xp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ii(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:js,charCode:function(e){return e.type==="keypress"?Ii(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ii(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Np=Lt(Ep),kp=E({},tu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),To=Lt(kp),jp=E({},Zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:js}),zp=Lt(jp),Mp=E({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cp=Lt(Mp),Rp=E({},tu,{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}),Dp=Lt(Rp),Op=E({},Ua,{newState:0,oldState:0}),Up=Lt(Op),wp=[9,13,27,32],zs=Yl&&"CompositionEvent"in window,Kn=null;Yl&&"documentMode"in document&&(Kn=document.documentMode);var Lp=Yl&&"TextEvent"in window&&!Kn,_o=Yl&&(!zs||Kn&&8<Kn&&11>=Kn),Ao=" ",Eo=!1;function No(e,t){switch(e){case"keyup":return wp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ko(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sn=!1;function Hp(e,t){switch(e){case"compositionend":return ko(t);case"keypress":return t.which!==32?null:(Eo=!0,Ao);case"textInput":return e=t.data,e===Ao&&Eo?null:e;default:return null}}function Bp(e,t){if(sn)return e==="compositionend"||!zs&&No(e,t)?(e=vo(),Wi=As=ua=null,sn=!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 _o&&t.locale!=="ko"?null:t.data;default:return null}}var qp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qp[e.type]:t==="textarea"}function zo(e,t,l,a){nn?un?un.push(a):un=[a]:nn=a,t=Qu(t,"onChange"),0<t.length&&(l=new eu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var $n=null,Jn=null;function Yp(e){dh(e,0)}function lu(e){var t=He(e);if(ro(t))return e}function Mo(e,t){if(e==="change")return t}var Co=!1;if(Yl){var Ms;if(Yl){var Cs="oninput"in document;if(!Cs){var Ro=document.createElement("div");Ro.setAttribute("oninput","return;"),Cs=typeof Ro.oninput=="function"}Ms=Cs}else Ms=!1;Co=Ms&&(!document.documentMode||9<document.documentMode)}function Do(){$n&&($n.detachEvent("onpropertychange",Oo),Jn=$n=null)}function Oo(e){if(e.propertyName==="value"&&lu(Jn)){var t=[];zo(t,Jn,e,xs(e)),yo(Yp,t)}}function Gp(e,t,l){e==="focusin"?(Do(),$n=t,Jn=l,$n.attachEvent("onpropertychange",Oo)):e==="focusout"&&Do()}function Xp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lu(Jn)}function Qp(e,t){if(e==="click")return lu(t)}function Zp(e,t){if(e==="input"||e==="change")return lu(t)}function Vp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:Vp;function Fn(e,t){if(Zt(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(!Pt.call(t,n)||!Zt(e[n],t[n]))return!1}return!0}function Uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wo(e,t){var l=Uo(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=Uo(l)}}function Lo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ho(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ji(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=Ji(e.document)}return t}function Rs(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 Kp=Yl&&"documentMode"in document&&11>=document.documentMode,cn=null,Ds=null,Wn=null,Os=!1;function Bo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Os||cn==null||cn!==Ji(a)||(a=cn,"selectionStart"in a&&Rs(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}),Wn&&Fn(Wn,a)||(Wn=a,a=Qu(Ds,"onSelect"),0<a.length&&(t=new eu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=cn)))}function wa(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var rn={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionrun:wa("Transition","TransitionRun"),transitionstart:wa("Transition","TransitionStart"),transitioncancel:wa("Transition","TransitionCancel"),transitionend:wa("Transition","TransitionEnd")},Us={},qo={};Yl&&(qo=document.createElement("div").style,"AnimationEvent"in window||(delete rn.animationend.animation,delete rn.animationiteration.animation,delete rn.animationstart.animation),"TransitionEvent"in window||delete rn.transitionend.transition);function La(e){if(Us[e])return Us[e];if(!rn[e])return e;var t=rn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in qo)return Us[e]=t[l];return e}var Yo=La("animationend"),Go=La("animationiteration"),Xo=La("animationstart"),$p=La("transitionrun"),Jp=La("transitionstart"),Fp=La("transitioncancel"),Qo=La("transitionend"),Zo=new Map,ws="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(" ");ws.push("scrollEnd");function bl(e,t){Zo.set(e,t),wt(t,[e])}var au=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)},ul=[],on=0,Ls=0;function nu(){for(var e=on,t=Ls=on=0;t<e;){var l=ul[t];ul[t++]=null;var a=ul[t];ul[t++]=null;var n=ul[t];ul[t++]=null;var i=ul[t];if(ul[t++]=null,a!==null&&n!==null){var o=a.pending;o===null?n.next=n:(n.next=o.next,o.next=n),a.pending=n}i!==0&&Vo(l,n,i)}}function iu(e,t,l,a){ul[on++]=e,ul[on++]=t,ul[on++]=l,ul[on++]=a,Ls|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Hs(e,t,l,a){return iu(e,t,l,a),uu(e)}function Ha(e,t){return iu(e,null,null,t),uu(e)}function Vo(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-et(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function uu(e){if(50<bi)throw bi=0,Kc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fn={};function Wp(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 Vt(e,t,l,a){return new Wp(e,t,l,a)}function Bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gl(e,t){var l=e.alternate;return l===null?(l=Vt(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 Ko(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 su(e,t,l,a,n,i){var o=0;if(a=e,typeof e=="function")Bs(e)&&(o=1);else if(typeof e=="string")o=l0(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case be:return e=Vt(31,l,t,n),e.elementType=be,e.lanes=i,e;case $:return Ba(l.children,n,i,t);case ie:o=8,n|=24;break;case ye:return e=Vt(12,l,t,n|2),e.elementType=ye,e.lanes=i,e;case fe:return e=Vt(13,l,t,n),e.elementType=fe,e.lanes=i,e;case ne:return e=Vt(19,l,t,n),e.elementType=ne,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:o=10;break e;case pe:o=9;break e;case I:o=11;break e;case Z:o=14;break e;case X:o=16,a=null;break e}o=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=Vt(o,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Ba(e,t,l,a){return e=Vt(7,e,a,t),e.lanes=l,e}function qs(e,t,l){return e=Vt(6,e,null,t),e.lanes=l,e}function $o(e){var t=Vt(18,null,null,0);return t.stateNode=e,t}function Ys(e,t,l){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Jo=new WeakMap;function sl(e,t){if(typeof e=="object"&&e!==null){var l=Jo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:kt(t)},Jo.set(e,t),t)}return{value:e,source:t,stack:kt(t)}}var dn=[],hn=0,cu=null,In=0,cl=[],rl=0,sa=null,zl=1,Ml="";function Xl(e,t){dn[hn++]=In,dn[hn++]=cu,cu=e,In=t}function Fo(e,t,l){cl[rl++]=zl,cl[rl++]=Ml,cl[rl++]=sa,sa=e;var a=zl;e=Ml;var n=32-et(a)-1;a&=~(1<<n),l+=1;var i=32-et(t)+n;if(30<i){var o=n-n%5;i=(a&(1<<o)-1).toString(32),a>>=o,n-=o,zl=1<<32-et(t)+n|l<<n|a,Ml=i+e}else zl=1<<i|l<<n|a,Ml=e}function Gs(e){e.return!==null&&(Xl(e,1),Fo(e,1,0))}function Xs(e){for(;e===cu;)cu=dn[--hn],dn[hn]=null,In=dn[--hn],dn[hn]=null;for(;e===sa;)sa=cl[--rl],cl[rl]=null,Ml=cl[--rl],cl[rl]=null,zl=cl[--rl],cl[rl]=null}function Wo(e,t){cl[rl++]=zl,cl[rl++]=Ml,cl[rl++]=sa,zl=t.id,Ml=t.overflow,sa=e}var xt=null,$e=null,Me=!1,ca=null,ol=!1,Qs=Error(r(519));function ra(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pn(sl(t,e)),Qs}function Io(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ct]=e,t[We]=a,l){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(l=0;l<xi.length;l++)Ne(xi[l],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),oo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),ho(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||gh(t.textContent,l)?(a.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),a.onScroll!=null&&Ne("scroll",t),a.onScrollEnd!=null&&Ne("scrollend",t),a.onClick!=null&&(t.onclick=ql),t=!0):t=!1,t||ra(e,!0)}function Po(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:ol=!1;return;case 27:case 3:ol=!0;return;default:xt=xt.return}}function mn(e){if(e!==xt)return!1;if(!Me)return Po(e),Me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||cr(e.type,e.memoizedProps)),l=!l),l&&$e&&ra(e),Po(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));$e=Eh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));$e=Eh(e)}else t===27?(t=$e,_a(e.type)?(e=hr,hr=null,$e=e):$e=t):$e=xt?dl(e.stateNode.nextSibling):null;return!0}function qa(){$e=xt=null,Me=!1}function Zs(){var e=ca;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),ca=null),e}function Pn(e){ca===null?ca=[e]:ca.push(e)}var Vs=b(null),Ya=null,Ql=null;function oa(e,t,l){C(Vs,t._currentValue),t._currentValue=l}function Zl(e){e._currentValue=Vs.current,L(Vs)}function Ks(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 $s(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var o=n.child;i=i.firstContext;e:for(;i!==null;){var h=i;i=n;for(var v=0;v<t.length;v++)if(h.context===t[v]){i.lanes|=l,h=i.alternate,h!==null&&(h.lanes|=l),Ks(i.return,l,e),a||(o=null);break e}i=h.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(r(341));o.lanes|=l,i=o.alternate,i!==null&&(i.lanes|=l),Ks(o,l,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function pn(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 o=n.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var h=n.type;Zt(n.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(n===me.current){if(o=n.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ni):e=[Ni])}n=n.return}e!==null&&$s(t,e,l,a),t.flags|=262144}function ru(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ga(e){Ya=e,Ql=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return ef(Ya,e)}function ou(e,t){return Ya===null&&Ga(e),ef(e,t)}function ef(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ql===null){if(e===null)throw Error(r(308));Ql=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ql=Ql.next=t;return l}var Ip=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()})}},Pp=u.unstable_scheduleCallback,eg=u.unstable_NormalPriority,rt={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Js(){return{controller:new Ip,data:new Map,refCount:0}}function ei(e){e.refCount--,e.refCount===0&&Pp(eg,function(){e.controller.abort()})}var ti=null,Fs=0,gn=0,yn=null;function tg(e,t){if(ti===null){var l=ti=[];Fs=0,gn=Pc(),yn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Fs++,t.then(tf,tf),t}function tf(){if(--Fs===0&&ti!==null){yn!==null&&(yn.status="fulfilled");var e=ti;ti=null,gn=0,yn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function lg(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 lf=M.S;M.S=function(e,t){qd=ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tg(e,t),lf!==null&&lf(e,t)};var Xa=b(null);function Ws(){var e=Xa.current;return e!==null?e:Ke.pooledCache}function fu(e,t){t===null?C(Xa,Xa.current):C(Xa,t.pool)}function af(){var e=Ws();return e===null?null:{parent:rt._currentValue,pool:e}}var vn=Error(r(460)),Is=Error(r(474)),du=Error(r(542)),hu={then:function(){}};function nf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ql,ql),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cf(e),e;default:if(typeof t.status=="string")t.then(ql,ql);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(r(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,cf(e),e}throw Za=t,vn}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Za=l,vn):l}}var Za=null;function sf(){if(Za===null)throw Error(r(459));var e=Za;return Za=null,e}function cf(e){if(e===vn||e===du)throw Error(r(483))}var bn=null,li=0;function mu(e){var t=li;return li+=1,bn===null&&(bn=[]),uf(bn,e,t)}function ai(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pu(e,t){throw t.$$typeof===O?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rf(e){function t(A,_){if(e){var N=A.deletions;N===null?(A.deletions=[_],A.flags|=16):N.push(_)}}function l(A,_){if(!e)return null;for(;_!==null;)t(A,_),_=_.sibling;return null}function a(A){for(var _=new Map;A!==null;)A.key!==null?_.set(A.key,A):_.set(A.index,A),A=A.sibling;return _}function n(A,_){return A=Gl(A,_),A.index=0,A.sibling=null,A}function i(A,_,N){return A.index=N,e?(N=A.alternate,N!==null?(N=N.index,N<_?(A.flags|=67108866,_):N):(A.flags|=67108866,_)):(A.flags|=1048576,_)}function o(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function h(A,_,N,B){return _===null||_.tag!==6?(_=qs(N,A.mode,B),_.return=A,_):(_=n(_,N),_.return=A,_)}function v(A,_,N,B){var se=N.type;return se===$?w(A,_,N.props.children,B,N.key):_!==null&&(_.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===X&&Qa(se)===_.type)?(_=n(_,N.props),ai(_,N),_.return=A,_):(_=su(N.type,N.key,N.props,null,A.mode,B),ai(_,N),_.return=A,_)}function k(A,_,N,B){return _===null||_.tag!==4||_.stateNode.containerInfo!==N.containerInfo||_.stateNode.implementation!==N.implementation?(_=Ys(N,A.mode,B),_.return=A,_):(_=n(_,N.children||[]),_.return=A,_)}function w(A,_,N,B,se){return _===null||_.tag!==7?(_=Ba(N,A.mode,B,se),_.return=A,_):(_=n(_,N),_.return=A,_)}function q(A,_,N){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=qs(""+_,A.mode,N),_.return=A,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case R:return N=su(_.type,_.key,_.props,null,A.mode,N),ai(N,_),N.return=A,N;case Q:return _=Ys(_,A.mode,N),_.return=A,_;case X:return _=Qa(_),q(A,_,N)}if(Se(_)||U(_))return _=Ba(_,A.mode,N,null),_.return=A,_;if(typeof _.then=="function")return q(A,mu(_),N);if(_.$$typeof===oe)return q(A,ou(A,_),N);pu(A,_)}return null}function j(A,_,N,B){var se=_!==null?_.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return se!==null?null:h(A,_,""+N,B);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case R:return N.key===se?v(A,_,N,B):null;case Q:return N.key===se?k(A,_,N,B):null;case X:return N=Qa(N),j(A,_,N,B)}if(Se(N)||U(N))return se!==null?null:w(A,_,N,B,null);if(typeof N.then=="function")return j(A,_,mu(N),B);if(N.$$typeof===oe)return j(A,_,ou(A,N),B);pu(A,N)}return null}function D(A,_,N,B,se){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return A=A.get(N)||null,h(_,A,""+B,se);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case R:return A=A.get(B.key===null?N:B.key)||null,v(_,A,B,se);case Q:return A=A.get(B.key===null?N:B.key)||null,k(_,A,B,se);case X:return B=Qa(B),D(A,_,N,B,se)}if(Se(B)||U(B))return A=A.get(N)||null,w(_,A,B,se,null);if(typeof B.then=="function")return D(A,_,N,mu(B),se);if(B.$$typeof===oe)return D(A,_,N,ou(_,B),se);pu(_,B)}return null}function W(A,_,N,B){for(var se=null,Ue=null,ae=_,ve=_=0,ze=null;ae!==null&&ve<N.length;ve++){ae.index>ve?(ze=ae,ae=null):ze=ae.sibling;var we=j(A,ae,N[ve],B);if(we===null){ae===null&&(ae=ze);break}e&&ae&&we.alternate===null&&t(A,ae),_=i(we,_,ve),Ue===null?se=we:Ue.sibling=we,Ue=we,ae=ze}if(ve===N.length)return l(A,ae),Me&&Xl(A,ve),se;if(ae===null){for(;ve<N.length;ve++)ae=q(A,N[ve],B),ae!==null&&(_=i(ae,_,ve),Ue===null?se=ae:Ue.sibling=ae,Ue=ae);return Me&&Xl(A,ve),se}for(ae=a(ae);ve<N.length;ve++)ze=D(ae,A,ve,N[ve],B),ze!==null&&(e&&ze.alternate!==null&&ae.delete(ze.key===null?ve:ze.key),_=i(ze,_,ve),Ue===null?se=ze:Ue.sibling=ze,Ue=ze);return e&&ae.forEach(function(ja){return t(A,ja)}),Me&&Xl(A,ve),se}function re(A,_,N,B){if(N==null)throw Error(r(151));for(var se=null,Ue=null,ae=_,ve=_=0,ze=null,we=N.next();ae!==null&&!we.done;ve++,we=N.next()){ae.index>ve?(ze=ae,ae=null):ze=ae.sibling;var ja=j(A,ae,we.value,B);if(ja===null){ae===null&&(ae=ze);break}e&&ae&&ja.alternate===null&&t(A,ae),_=i(ja,_,ve),Ue===null?se=ja:Ue.sibling=ja,Ue=ja,ae=ze}if(we.done)return l(A,ae),Me&&Xl(A,ve),se;if(ae===null){for(;!we.done;ve++,we=N.next())we=q(A,we.value,B),we!==null&&(_=i(we,_,ve),Ue===null?se=we:Ue.sibling=we,Ue=we);return Me&&Xl(A,ve),se}for(ae=a(ae);!we.done;ve++,we=N.next())we=D(ae,A,ve,we.value,B),we!==null&&(e&&we.alternate!==null&&ae.delete(we.key===null?ve:we.key),_=i(we,_,ve),Ue===null?se=we:Ue.sibling=we,Ue=we);return e&&ae.forEach(function(h0){return t(A,h0)}),Me&&Xl(A,ve),se}function Ze(A,_,N,B){if(typeof N=="object"&&N!==null&&N.type===$&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case R:e:{for(var se=N.key;_!==null;){if(_.key===se){if(se=N.type,se===$){if(_.tag===7){l(A,_.sibling),B=n(_,N.props.children),B.return=A,A=B;break e}}else if(_.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===X&&Qa(se)===_.type){l(A,_.sibling),B=n(_,N.props),ai(B,N),B.return=A,A=B;break e}l(A,_);break}else t(A,_);_=_.sibling}N.type===$?(B=Ba(N.props.children,A.mode,B,N.key),B.return=A,A=B):(B=su(N.type,N.key,N.props,null,A.mode,B),ai(B,N),B.return=A,A=B)}return o(A);case Q:e:{for(se=N.key;_!==null;){if(_.key===se)if(_.tag===4&&_.stateNode.containerInfo===N.containerInfo&&_.stateNode.implementation===N.implementation){l(A,_.sibling),B=n(_,N.children||[]),B.return=A,A=B;break e}else{l(A,_);break}else t(A,_);_=_.sibling}B=Ys(N,A.mode,B),B.return=A,A=B}return o(A);case X:return N=Qa(N),Ze(A,_,N,B)}if(Se(N))return W(A,_,N,B);if(U(N)){if(se=U(N),typeof se!="function")throw Error(r(150));return N=se.call(N),re(A,_,N,B)}if(typeof N.then=="function")return Ze(A,_,mu(N),B);if(N.$$typeof===oe)return Ze(A,_,ou(A,N),B);pu(A,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,_!==null&&_.tag===6?(l(A,_.sibling),B=n(_,N),B.return=A,A=B):(l(A,_),B=qs(N,A.mode,B),B.return=A,A=B),o(A)):l(A,_)}return function(A,_,N,B){try{li=0;var se=Ze(A,_,N,B);return bn=null,se}catch(ae){if(ae===vn||ae===du)throw ae;var Ue=Vt(29,ae,null,A.mode);return Ue.lanes=B,Ue.return=A,Ue}finally{}}}var Va=rf(!0),of=rf(!1),fa=!1;function Ps(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(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 da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ha(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Le&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=uu(e),Vo(e,null,l),t}return iu(e,a,t,l),uu(e)}function ni(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,Hn(e,l)}}function tc(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 o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=o:i=i.next=o,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 lc=!1;function ii(){if(lc){var e=yn;if(e!==null)throw e}}function ui(e,t,l,a){lc=!1;var n=e.updateQueue;fa=!1;var i=n.firstBaseUpdate,o=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var v=h,k=v.next;v.next=null,o===null?i=k:o.next=k,o=v;var w=e.alternate;w!==null&&(w=w.updateQueue,h=w.lastBaseUpdate,h!==o&&(h===null?w.firstBaseUpdate=k:h.next=k,w.lastBaseUpdate=v))}if(i!==null){var q=n.baseState;o=0,w=k=v=null,h=i;do{var j=h.lane&-536870913,D=j!==h.lane;if(D?(je&j)===j:(a&j)===j){j!==0&&j===gn&&(lc=!0),w!==null&&(w=w.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,re=h;j=t;var Ze=l;switch(re.tag){case 1:if(W=re.payload,typeof W=="function"){q=W.call(Ze,q,j);break e}q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=re.payload,j=typeof W=="function"?W.call(Ze,q,j):W,j==null)break e;q=E({},q,j);break e;case 2:fa=!0}}j=h.callback,j!==null&&(e.flags|=64,D&&(e.flags|=8192),D=n.callbacks,D===null?n.callbacks=[j]:D.push(j))}else D={lane:j,tag:h.tag,payload:h.payload,callback:h.callback,next:null},w===null?(k=w=D,v=q):w=w.next=D,o|=j;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;D=h,h=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);w===null&&(v=q),n.baseState=v,n.firstBaseUpdate=k,n.lastBaseUpdate=w,i===null&&(n.shared.lanes=0),va|=o,e.lanes=o,e.memoizedState=q}}function ff(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function df(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ff(l[e],t)}var Sn=b(null),gu=b(0);function hf(e,t){e=ea,C(gu,e),C(Sn,t),ea=e|t.baseLanes}function ac(){C(gu,ea),C(Sn,Sn.current)}function nc(){ea=gu.current,L(Sn),L(gu)}var Kt=b(null),fl=null;function ma(e){var t=e.alternate;C(at,at.current&1),C(Kt,e),fl===null&&(t===null||Sn.current!==null||t.memoizedState!==null)&&(fl=e)}function ic(e){C(at,at.current),C(Kt,e),fl===null&&(fl=e)}function mf(e){e.tag===22?(C(at,at.current),C(Kt,e),fl===null&&(fl=e)):pa()}function pa(){C(at,at.current),C(Kt,Kt.current)}function $t(e){L(Kt),fl===e&&(fl=null),L(at)}var at=b(0);function yu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||fr(l)||dr(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 Vl=0,ge=null,Xe=null,ot=null,vu=!1,xn=!1,Ka=!1,bu=0,si=0,Tn=null,ag=0;function tt(){throw Error(r(321))}function uc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Zt(e[l],t[l]))return!1;return!0}function sc(e,t,l,a,n,i){return Vl=i,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Wf:Tc,Ka=!1,i=l(a,n),Ka=!1,xn&&(i=gf(t,l,a,n)),pf(e),i}function pf(e){M.H=oi;var t=Xe!==null&&Xe.next!==null;if(Vl=0,ot=Xe=ge=null,vu=!1,si=0,Tn=null,t)throw Error(r(300));e===null||ft||(e=e.dependencies,e!==null&&ru(e)&&(ft=!0))}function gf(e,t,l,a){ge=e;var n=0;do{if(xn&&(Tn=null),si=0,xn=!1,25<=n)throw Error(r(301));if(n+=1,ot=Xe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}M.H=If,i=t(l,a)}while(xn);return i}function ng(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?ci(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(ge.flags|=1024),t}function cc(){var e=bu!==0;return bu=0,e}function rc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function oc(e){if(vu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vu=!1}Vl=0,ot=Xe=ge=null,xn=!1,si=bu=0,Tn=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?ge.memoizedState=ot=e:ot=ot.next=e,ot}function nt(){if(Xe===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=ot===null?ge.memoizedState:ot.next;if(t!==null)ot=t,Xe=e;else{if(e===null)throw ge.alternate===null?Error(r(467)):Error(r(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},ot===null?ge.memoizedState=ot=e:ot=ot.next=e}return ot}function Su(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ci(e){var t=si;return si+=1,Tn===null&&(Tn=[]),e=uf(Tn,e,t),t=ge,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Wf:Tc),e}function xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ci(e);if(e.$$typeof===oe)return Tt(e)}throw Error(r(438,String(e)))}function fc(e){var t=null,l=ge.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ge.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=Su(),ge.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]=Ce;return t.index++,l}function Kl(e,t){return typeof t=="function"?t(e):t}function Tu(e){var t=nt();return dc(t,Xe,e)}function dc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var o=n.next;n.next=i.next,i.next=o}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var h=o=null,v=null,k=t,w=!1;do{var q=k.lane&-536870913;if(q!==k.lane?(je&q)===q:(Vl&q)===q){var j=k.revertLane;if(j===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),q===gn&&(w=!0);else if((Vl&j)===j){k=k.next,j===gn&&(w=!0);continue}else q={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},v===null?(h=v=q,o=i):v=v.next=q,ge.lanes|=j,va|=j;q=k.action,Ka&&l(i,q),i=k.hasEagerState?k.eagerState:l(i,q)}else j={lane:q,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},v===null?(h=v=j,o=i):v=v.next=j,ge.lanes|=q,va|=q;k=k.next}while(k!==null&&k!==t);if(v===null?o=i:v.next=h,!Zt(i,e.memoizedState)&&(ft=!0,w&&(l=yn,l!==null)))throw l;e.memoizedState=i,e.baseState=o,e.baseQueue=v,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function hc(e){var t=nt(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var o=n=n.next;do i=e(i,o.action),o=o.next;while(o!==n);Zt(i,t.memoizedState)||(ft=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function yf(e,t,l){var a=ge,n=nt(),i=Me;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var o=!Zt((Xe||n).memoizedState,l);if(o&&(n.memoizedState=l,ft=!0),n=n.queue,gc(Sf.bind(null,a,n,e),[e]),n.getSnapshot!==t||o||ot!==null&&ot.memoizedState.tag&1){if(a.flags|=2048,_n(9,{destroy:void 0},bf.bind(null,a,n,l,t),null),Ke===null)throw Error(r(349));i||(Vl&127)!==0||vf(a,t,l)}return l}function vf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ge.updateQueue,t===null?(t=Su(),ge.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function bf(e,t,l,a){t.value=l,t.getSnapshot=a,xf(t)&&Tf(e)}function Sf(e,t,l){return l(function(){xf(t)&&Tf(e)})}function xf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Zt(e,l)}catch{return!0}}function Tf(e){var t=Ha(e,2);t!==null&&Gt(t,e,2)}function mc(e){var t=zt();if(typeof e=="function"){var l=e;if(e=l(),Ka){Fe(!0);try{l()}finally{Fe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kl,lastRenderedState:e},t}function _f(e,t,l,a){return e.baseState=l,dc(e,Xe,typeof a=="function"?a:Kl)}function ig(e,t,l,a,n){if(Eu(e))throw Error(r(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(o){i.listeners.push(o)}};M.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Af(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Af(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=M.T,o={};M.T=o;try{var h=l(n,a),v=M.S;v!==null&&v(o,h),Ef(e,t,h)}catch(k){pc(e,t,k)}finally{i!==null&&o.types!==null&&(i.types=o.types),M.T=i}}else try{i=l(n,a),Ef(e,t,i)}catch(k){pc(e,t,k)}}function Ef(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Nf(e,t,a)},function(a){return pc(e,t,a)}):Nf(e,t,l)}function Nf(e,t,l){t.status="fulfilled",t.value=l,kf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Af(e,l)))}function pc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,kf(t),t=t.next;while(t!==a)}e.action=null}function kf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jf(e,t){return t}function zf(e,t){if(Me){var l=Ke.formState;if(l!==null){e:{var a=ge;if(Me){if($e){t:{for(var n=$e,i=ol;n.nodeType!==8;){if(!i){n=null;break t}if(n=dl(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){$e=dl(n.nextSibling),a=n.data==="F!";break e}}ra(a)}a=!1}a&&(t=l[0])}}return l=zt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jf,lastRenderedState:t},l.queue=a,l=$f.bind(null,ge,a),a.dispatch=l,a=mc(!1),i=xc.bind(null,ge,!1,a.queue),a=zt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=ig.bind(null,ge,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Mf(e){var t=nt();return Cf(t,Xe,e)}function Cf(e,t,l){if(t=dc(e,t,jf)[0],e=Tu(Kl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ci(t)}catch(o){throw o===vn?du:o}else a=t;t=nt();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ge.flags|=2048,_n(9,{destroy:void 0},ug.bind(null,n,l),null)),[a,i,e]}function ug(e,t){e.action=t}function Rf(e){var t=nt(),l=Xe;if(l!==null)return Cf(t,l,e);nt(),t=t.memoizedState,l=nt();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function _n(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Su(),ge.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 Df(){return nt().memoizedState}function _u(e,t,l,a){var n=zt();ge.flags|=e,n.memoizedState=_n(1|t,{destroy:void 0},l,a===void 0?null:a)}function Au(e,t,l,a){var n=nt();a=a===void 0?null:a;var i=n.memoizedState.inst;Xe!==null&&a!==null&&uc(a,Xe.memoizedState.deps)?n.memoizedState=_n(t,i,l,a):(ge.flags|=e,n.memoizedState=_n(1|t,i,l,a))}function Of(e,t){_u(8390656,8,e,t)}function gc(e,t){Au(2048,8,e,t)}function sg(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Su(),ge.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Uf(e){var t=nt().memoizedState;return sg({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function wf(e,t){return Au(4,2,e,t)}function Lf(e,t){return Au(4,4,e,t)}function Hf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bf(e,t,l){l=l!=null?l.concat([e]):null,Au(4,4,Hf.bind(null,t,e),l)}function yc(){}function qf(e,t){var l=nt();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&uc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Yf(e,t){var l=nt();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&uc(t,a[1]))return a[0];if(a=e(),Ka){Fe(!0);try{e()}finally{Fe(!1)}}return l.memoizedState=[a,t],a}function vc(e,t,l){return l===void 0||(Vl&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Gd(),ge.lanes|=e,va|=e,l)}function Gf(e,t,l,a){return Zt(l,t)?l:Sn.current!==null?(e=vc(e,l,a),Zt(e,t)||(ft=!0),e):(Vl&42)===0||(Vl&1073741824)!==0&&(je&261930)===0?(ft=!0,e.memoizedState=l):(e=Gd(),ge.lanes|=e,va|=e,t)}function Xf(e,t,l,a,n){var i=Y.p;Y.p=i!==0&&8>i?i:8;var o=M.T,h={};M.T=h,xc(e,!1,t,l);try{var v=n(),k=M.S;if(k!==null&&k(h,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var w=lg(v,a);ri(e,t,w,Wt(e))}else ri(e,t,a,Wt(e))}catch(q){ri(e,t,{then:function(){},status:"rejected",reason:q},Wt())}finally{Y.p=i,o!==null&&h.types!==null&&(o.types=h.types),M.T=o}}function cg(){}function bc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=Qf(e).queue;Xf(e,n,t,ee,l===null?cg:function(){return Zf(e),l(a)})}function Qf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kl,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zf(e){var t=Qf(e);t.next===null&&(t=e.alternate.memoizedState),ri(e,t.next.queue,{},Wt())}function Sc(){return Tt(Ni)}function Vf(){return nt().memoizedState}function Kf(){return nt().memoizedState}function rg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Wt();e=da(l);var a=ha(t,e,l);a!==null&&(Gt(a,t,l),ni(a,t,l)),t={cache:Js()},e.payload=t;return}t=t.return}}function og(e,t,l){var a=Wt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Eu(e)?Jf(t,l):(l=Hs(e,t,l,a),l!==null&&(Gt(l,e,a),Ff(l,t,a)))}function $f(e,t,l){var a=Wt();ri(e,t,l,a)}function ri(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Eu(e))Jf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,h=i(o,l);if(n.hasEagerState=!0,n.eagerState=h,Zt(h,o))return iu(e,t,n,0),Ke===null&&nu(),!1}catch{}finally{}if(l=Hs(e,t,n,a),l!==null)return Gt(l,e,a),Ff(l,t,a),!0}return!1}function xc(e,t,l,a){if(a={lane:2,revertLane:Pc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Eu(e)){if(t)throw Error(r(479))}else t=Hs(e,l,a,2),t!==null&&Gt(t,e,2)}function Eu(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Jf(e,t){xn=vu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Ff(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hn(e,l)}}var oi={readContext:Tt,use:xu,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};oi.useEffectEvent=tt;var Wf={readContext:Tt,use:xu,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:Of,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_u(4194308,4,Hf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _u(4194308,4,e,t)},useInsertionEffect:function(e,t){_u(4,2,e,t)},useMemo:function(e,t){var l=zt();t=t===void 0?null:t;var a=e();if(Ka){Fe(!0);try{e()}finally{Fe(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=zt();if(l!==void 0){var n=l(t);if(Ka){Fe(!0);try{l(t)}finally{Fe(!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=og.bind(null,ge,e),[a.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=mc(e);var t=e.queue,l=$f.bind(null,ge,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:yc,useDeferredValue:function(e,t){var l=zt();return vc(l,e,t)},useTransition:function(){var e=mc(!1);return e=Xf.bind(null,ge,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ge,n=zt();if(Me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ke===null)throw Error(r(349));(je&127)!==0||vf(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Of(Sf.bind(null,a,i,e),[e]),a.flags|=2048,_n(9,{destroy:void 0},bf.bind(null,a,i,l,t),null),l},useId:function(){var e=zt(),t=Ke.identifierPrefix;if(Me){var l=Ml,a=zl;l=(a&~(1<<32-et(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=bu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=ag++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Sc,useFormState:zf,useActionState:zf,useOptimistic:function(e){var t=zt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=xc.bind(null,ge,!0,l),l.dispatch=t,[e,t]},useMemoCache:fc,useCacheRefresh:function(){return zt().memoizedState=rg.bind(null,ge)},useEffectEvent:function(e){var t=zt(),l={impl:e};return t.memoizedState=l,function(){if((Le&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Tc={readContext:Tt,use:xu,useCallback:qf,useContext:Tt,useEffect:gc,useImperativeHandle:Bf,useInsertionEffect:wf,useLayoutEffect:Lf,useMemo:Yf,useReducer:Tu,useRef:Df,useState:function(){return Tu(Kl)},useDebugValue:yc,useDeferredValue:function(e,t){var l=nt();return Gf(l,Xe.memoizedState,e,t)},useTransition:function(){var e=Tu(Kl)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:yf,useId:Vf,useHostTransitionStatus:Sc,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var l=nt();return _f(l,Xe,e,t)},useMemoCache:fc,useCacheRefresh:Kf};Tc.useEffectEvent=Uf;var If={readContext:Tt,use:xu,useCallback:qf,useContext:Tt,useEffect:gc,useImperativeHandle:Bf,useInsertionEffect:wf,useLayoutEffect:Lf,useMemo:Yf,useReducer:hc,useRef:Df,useState:function(){return hc(Kl)},useDebugValue:yc,useDeferredValue:function(e,t){var l=nt();return Xe===null?vc(l,e,t):Gf(l,Xe.memoizedState,e,t)},useTransition:function(){var e=hc(Kl)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:yf,useId:Vf,useHostTransitionStatus:Sc,useFormState:Rf,useActionState:Rf,useOptimistic:function(e,t){var l=nt();return Xe!==null?_f(l,Xe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:fc,useCacheRefresh:Kf};If.useEffectEvent=Uf;function _c(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:E({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ac={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Wt(),n=da(a);n.payload=t,l!=null&&(n.callback=l),t=ha(e,n,a),t!==null&&(Gt(t,e,a),ni(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Wt(),n=da(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ha(e,n,a),t!==null&&(Gt(t,e,a),ni(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Wt(),a=da(l);a.tag=2,t!=null&&(a.callback=t),t=ha(e,a,l),t!==null&&(Gt(t,e,l),ni(t,e,l))}};function Pf(e,t,l,a,n,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,o):t.prototype&&t.prototype.isPureReactComponent?!Fn(l,a)||!Fn(n,i):!0}function ed(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&&Ac.enqueueReplaceState(t,t.state,null)}function $a(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=E({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function td(e){au(e)}function ld(e){console.error(e)}function ad(e){au(e)}function Nu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function nd(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 Ec(e,t,l){return l=da(l),l.tag=3,l.payload={element:null},l.callback=function(){Nu(e,t)},l}function id(e){return e=da(e),e.tag=3,e}function ud(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(){nd(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){nd(t,l,a),typeof n!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function fg(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,n,!0),l=Kt.current,l!==null){switch(l.tag){case 31:case 13:return fl===null?Hu():l.alternate===null&&lt===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===hu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Fc(e,a,n)),!1;case 22:return l.flags|=65536,a===hu?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)),Fc(e,a,n)),!1}throw Error(r(435,l.tag))}return Fc(e,a,n),Hu(),!1}if(Me)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Qs&&(e=Error(r(422),{cause:a}),Pn(sl(e,l)))):(a!==Qs&&(t=Error(r(423),{cause:a}),Pn(sl(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=sl(a,l),n=Ec(e.stateNode,a,n),tc(e,n),lt!==4&&(lt=2)),!1;var i=Error(r(520),{cause:a});if(i=sl(i,l),vi===null?vi=[i]:vi.push(i),lt!==4&&(lt=2),t===null)return!0;a=sl(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Ec(l.stateNode,a,e),tc(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"&&(ba===null||!ba.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=id(n),ud(n,e,l,a),tc(l,n),!1}l=l.return}while(l!==null);return!1}var Nc=Error(r(461)),ft=!1;function _t(e,t,l,a){t.child=e===null?of(t,null,l,a):Va(t,e.child,l,a)}function sd(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var o={};for(var h in a)h!=="ref"&&(o[h]=a[h])}else o=a;return Ga(t),a=sc(e,t,l,o,i,n),h=cc(),e!==null&&!ft?(rc(e,t,n),$l(e,t,n)):(Me&&h&&Gs(t),t.flags|=1,_t(e,t,a,n),t.child)}function cd(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Bs(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,rd(e,t,i,a,n)):(e=su(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Oc(e,n)){var o=i.memoizedProps;if(l=l.compare,l=l!==null?l:Fn,l(o,a)&&e.ref===t.ref)return $l(e,t,n)}return t.flags|=1,e=Gl(i,a),e.ref=t.ref,e.return=t,t.child=e}function rd(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Fn(i,a)&&e.ref===t.ref)if(ft=!1,t.pendingProps=a=i,Oc(e,n))(e.flags&131072)!==0&&(ft=!0);else return t.lanes=e.lanes,$l(e,t,n)}return kc(e,t,l,a,n)}function od(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 fd(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fu(t,i!==null?i.cachePool:null),i!==null?hf(t,i):ac(),mf(t);else return a=t.lanes=536870912,fd(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(fu(t,i.cachePool),hf(t,i),pa(),t.memoizedState=null):(e!==null&&fu(t,null),ac(),pa());return _t(e,t,n,l),t.child}function fi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fd(e,t,l,a,n){var i=Ws();return i=i===null?null:{parent:rt._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&fu(t,null),ac(),mf(t),e!==null&&pn(e,t,a,!0),t.childLanes=n,null}function ku(e,t){return t=zu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dd(e,t,l){return Va(t,e.child,null,l),e=ku(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function dg(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(a.mode==="hidden")return e=ku(t,a),t.lanes=536870912,fi(null,e);if(ic(t),(e=$e)?(e=Ah(e,ol),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sa!==null?{id:zl,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},l=$o(e),l.return=t,t.child=l,xt=t,$e=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return ku(t,a)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(ic(t),n)if(t.flags&256)t.flags&=-257,t=dd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(ft||pn(e,t,l,!1),n=(l&e.childLanes)!==0,ft||n){if(a=Ke,a!==null&&(o=Xi(a,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,Ha(e,o),Gt(a,e,o),Nc;Hu(),t=dd(e,t,l)}else e=i.treeContext,$e=dl(o.nextSibling),xt=t,Me=!0,ca=null,ol=!1,e!==null&&Wo(t,e),t=ku(t,a),t.flags|=4096;return t}return e=Gl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ju(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function kc(e,t,l,a,n){return Ga(t),l=sc(e,t,l,a,void 0,n),a=cc(),e!==null&&!ft?(rc(e,t,n),$l(e,t,n)):(Me&&a&&Gs(t),t.flags|=1,_t(e,t,l,n),t.child)}function hd(e,t,l,a,n,i){return Ga(t),t.updateQueue=null,l=gf(t,a,l,n),pf(e),a=cc(),e!==null&&!ft?(rc(e,t,i),$l(e,t,i)):(Me&&a&&Gs(t),t.flags|=1,_t(e,t,l,i),t.child)}function md(e,t,l,a,n){if(Ga(t),t.stateNode===null){var i=fn,o=l.contextType;typeof o=="object"&&o!==null&&(i=Tt(o)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ac,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Ps(t),o=l.contextType,i.context=typeof o=="object"&&o!==null?Tt(o):fn,i.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(_c(t,l,o,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&Ac.enqueueReplaceState(i,i.state,null),ui(t,a,i,n),ii(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var h=t.memoizedProps,v=$a(l,h);i.props=v;var k=i.context,w=l.contextType;o=fn,typeof w=="object"&&w!==null&&(o=Tt(w));var q=l.getDerivedStateFromProps;w=typeof q=="function"||typeof i.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,w||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(h||k!==o)&&ed(t,i,a,o),fa=!1;var j=t.memoizedState;i.state=j,ui(t,a,i,n),ii(),k=t.memoizedState,h||j!==k||fa?(typeof q=="function"&&(_c(t,l,q,a),k=t.memoizedState),(v=fa||Pf(t,l,v,a,j,k,o))?(w||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=k),i.props=a,i.state=k,i.context=o,a=v):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,ec(e,t),o=t.memoizedProps,w=$a(l,o),i.props=w,q=t.pendingProps,j=i.context,k=l.contextType,v=fn,typeof k=="object"&&k!==null&&(v=Tt(k)),h=l.getDerivedStateFromProps,(k=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==q||j!==v)&&ed(t,i,a,v),fa=!1,j=t.memoizedState,i.state=j,ui(t,a,i,n),ii();var D=t.memoizedState;o!==q||j!==D||fa||e!==null&&e.dependencies!==null&&ru(e.dependencies)?(typeof h=="function"&&(_c(t,l,h,a),D=t.memoizedState),(w=fa||Pf(t,l,w,a,j,D,v)||e!==null&&e.dependencies!==null&&ru(e.dependencies))?(k||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,D,v),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,D,v)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),i.props=a,i.state=D,i.context=v,a=w):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,ju(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Va(t,e.child,null,n),t.child=Va(t,null,l,n)):_t(e,t,l,n),t.memoizedState=i.state,e=t.child):e=$l(e,t,n),e}function pd(e,t,l,a){return qa(),t.flags|=256,_t(e,t,l,a),t.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zc(e){return{baseLanes:e,cachePool:af()}}function Mc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ft),e}function gd(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(n?ma(t):pa(),(e=$e)?(e=Ah(e,ol),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sa!==null?{id:zl,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},l=$o(e),l.return=t,t.child=l,xt=t,$e=null)):e=null,e===null)throw ra(t);return dr(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(pa(),n=t.mode,h=zu({mode:"hidden",children:h},n),a=Ba(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=zc(l),a.childLanes=Mc(e,o,l),t.memoizedState=jc,fi(null,a)):(ma(t),Cc(t,h))}var v=e.memoizedState;if(v!==null&&(h=v.dehydrated,h!==null)){if(i)t.flags&256?(ma(t),t.flags&=-257,t=Rc(e,t,l)):t.memoizedState!==null?(pa(),t.child=e.child,t.flags|=128,t=null):(pa(),h=a.fallback,n=t.mode,a=zu({mode:"visible",children:a.children},n),h=Ba(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Va(t,e.child,null,l),a=t.child,a.memoizedState=zc(l),a.childLanes=Mc(e,o,l),t.memoizedState=jc,t=fi(null,a));else if(ma(t),dr(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var k=o.dgst;o=k,a=Error(r(419)),a.stack="",a.digest=o,Pn({value:a,source:null,stack:null}),t=Rc(e,t,l)}else if(ft||pn(e,t,l,!1),o=(l&e.childLanes)!==0,ft||o){if(o=Ke,o!==null&&(a=Xi(o,l),a!==0&&a!==v.retryLane))throw v.retryLane=a,Ha(e,a),Gt(o,e,a),Nc;fr(h)||Hu(),t=Rc(e,t,l)}else fr(h)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,$e=dl(h.nextSibling),xt=t,Me=!0,ca=null,ol=!1,e!==null&&Wo(t,e),t=Cc(t,a.children),t.flags|=4096);return t}return n?(pa(),h=a.fallback,n=t.mode,v=e.child,k=v.sibling,a=Gl(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,k!==null?h=Gl(k,h):(h=Ba(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,fi(null,a),a=t.child,h=e.child.memoizedState,h===null?h=zc(l):(n=h.cachePool,n!==null?(v=rt._currentValue,n=n.parent!==v?{parent:v,pool:v}:n):n=af(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=Mc(e,o,l),t.memoizedState=jc,fi(e.child,a)):(ma(t),l=e.child,e=l.sibling,l=Gl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function Cc(e,t){return t=zu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zu(e,t){return e=Vt(22,e,null,t),e.lanes=0,e}function Rc(e,t,l){return Va(t,e.child,null,l),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ks(e.return,t,l)}function Dc(e,t,l,a,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=n,o.treeForkCount=i)}function vd(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var o=at.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,C(at,o),_t(e,t,a,l),a=Me?In:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yd(e,l,t);else if(e.tag===19)yd(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&&yu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Dc(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&&yu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Dc(t,!0,l,null,i,a);break;case"together":Dc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function $l(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),va|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Gl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Gl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ru(e)))}function hg(e,t,l){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),oa(t,rt,e.memoizedState.cache),qa();break;case 27:case 5:It(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ic(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ma(t),t.flags|=128,null):(l&t.child.childLanes)!==0?gd(e,t,l):(ma(t),e=$l(e,t,l),e!==null?e.sibling:null);ma(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return vd(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),C(at,at.current),a)break;return null;case 22:return t.lanes=0,od(e,t,l,t.pendingProps);case 24:oa(t,rt,e.memoizedState.cache)}return $l(e,t,l)}function bd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ft=!0;else{if(!Oc(e,l)&&(t.flags&128)===0)return ft=!1,hg(e,t,l);ft=(e.flags&131072)!==0}else ft=!1,Me&&(t.flags&1048576)!==0&&Fo(t,In,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e=="function")Bs(e)?(a=$a(e,a),t.tag=1,t=md(null,t,e,a,l)):(t.tag=0,t=kc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===I){t.tag=11,t=sd(null,t,e,a,l);break e}else if(n===Z){t.tag=14,t=cd(null,t,e,a,l);break e}}throw t=ue(e)||e,Error(r(306,t,""))}}return t;case 0:return kc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=$a(a,t.pendingProps),md(e,t,a,n,l);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,ec(e,t),ui(t,a,null,l);var o=t.memoizedState;if(a=o.cache,oa(t,rt,a),a!==i.cache&&$s(t,[rt],l,!0),ii(),a=o.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=pd(e,t,a,l);break e}else if(a!==n){n=sl(Error(r(424)),t),Pn(n),t=pd(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=dl(e.firstChild),xt=t,Me=!0,ca=null,ol=!0,l=of(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(qa(),a===n){t=$l(e,t,l);break e}_t(e,t,a,l)}t=t.child}return t;case 26:return ju(e,t),e===null?(l=Mh(t.type,null,t.pendingProps,null))?t.memoizedState=l:Me||(l=t.type,e=t.pendingProps,a=Zu(ce.current).createElement(l),a[ct]=t,a[We]=e,At(a,l,e),Te(a),t.stateNode=a):t.memoizedState=Mh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return It(t),e===null&&Me&&(a=t.stateNode=kh(t.type,t.pendingProps,ce.current),xt=t,ol=!0,n=$e,_a(t.type)?(hr=n,$e=dl(a.firstChild)):$e=n),_t(e,t,t.pendingProps.children,l),ju(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((n=a=$e)&&(a=Xg(a,t.type,t.pendingProps,ol),a!==null?(t.stateNode=a,xt=t,$e=dl(a.firstChild),ol=!1,n=!0):n=!1),n||ra(t)),It(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,cr(n,i)?a=null:o!==null&&cr(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=sc(e,t,ng,null,null,l),Ni._currentValue=n),ju(e,t),_t(e,t,a,l),t.child;case 6:return e===null&&Me&&((e=l=$e)&&(l=Qg(l,t.pendingProps,ol),l!==null?(t.stateNode=l,xt=t,$e=null,e=!0):e=!1),e||ra(t)),null;case 13:return gd(e,t,l);case 4:return Ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Va(t,null,a,l):_t(e,t,a,l),t.child;case 11:return sd(e,t,t.type,t.pendingProps,l);case 7:return _t(e,t,t.pendingProps,l),t.child;case 8:return _t(e,t,t.pendingProps.children,l),t.child;case 12:return _t(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,oa(t,t.type,a.value),_t(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Ga(t),n=Tt(n),a=a(n),t.flags|=1,_t(e,t,a,l),t.child;case 14:return cd(e,t,t.type,t.pendingProps,l);case 15:return rd(e,t,t.type,t.pendingProps,l);case 19:return vd(e,t,l);case 31:return dg(e,t,l);case 22:return od(e,t,l,t.pendingProps);case 24:return Ga(t),a=Tt(rt),e===null?(n=Ws(),n===null&&(n=Ke,i=Js(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Ps(t),oa(t,rt,n)):((e.lanes&l)!==0&&(ec(e,t),ui(t,null,null,l),ii()),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),oa(t,rt,a)):(a=i.cache,oa(t,rt,a),a!==n.cache&&$s(t,[rt],l,!0))),_t(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Jl(e){e.flags|=4}function Uc(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(Vd())e.flags|=8192;else throw Za=hu,Is}else e.flags&=-16777217}function Sd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Uh(t))if(Vd())e.flags|=8192;else throw Za=hu,Is}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?P():536870912,e.lanes|=t,kn|=t)}function di(e,t){if(!Me)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 Je(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 mg(e,t,l){var a=t.pendingProps;switch(Xs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zl(rt),De(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(mn(t)?Jl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zs())),Je(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Jl(t),i!==null?(Je(t),Sd(t,i)):(Je(t),Uc(t,n,null,a,l))):i?i!==e.memoizedState?(Jl(t),Je(t),Sd(t,i)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Jl(t),Je(t),Uc(t,n,e,a,l)),null;case 27:if(ht(t),l=ce.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Jl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Je(t),null}e=V.current,mn(t)?Io(t):(e=kh(n,a,l),t.stateNode=e,Jl(t))}return Je(t),null;case 5:if(ht(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Jl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Je(t),null}if(i=V.current,mn(t))Io(t);else{var o=Zu(ce.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}i[ct]=t,i[We]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(At(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&&Jl(t)}}return Je(t),Uc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Jl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ce.current,mn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=xt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||gh(e.nodeValue,l)),e||ra(t,!0)}else e=Zu(e).createTextNode(a),e[ct]=t,t.stateNode=e}return Je(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=mn(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ct]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else l=Zs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Je(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=mn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[ct]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),n=!1}else n=Zs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?($t(t),t):($t(t),null)}return $t(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),Mu(t,t.updateQueue),Je(t),null);case 4:return De(),e===null&&ar(t.stateNode.containerInfo),Je(t),null;case 10:return Zl(t.type),Je(t),null;case 19:if(L(at),a=t.memoizedState,a===null)return Je(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)di(a,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=yu(e),i!==null){for(t.flags|=128,di(a,!1),e=i.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ko(l,e),l=l.sibling;return C(at,at.current&1|2),Me&&Xl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ut()>Uu&&(t.flags|=128,n=!0,di(a,!1),t.lanes=4194304)}else{if(!n)if(e=yu(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),di(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Me)return Je(t),null}else 2*ut()-a.renderingStartTime>Uu&&l!==536870912&&(t.flags|=128,n=!0,di(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=ut(),e.sibling=null,l=at.current,C(at,n?l&1|2:l&1),Me&&Xl(t,a.treeForkCount),e):(Je(t),null);case 22:case 23:return $t(t),nc(),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&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),l=t.updateQueue,l!==null&&Mu(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&&L(Xa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Zl(rt),Je(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function pg(e,t){switch(Xs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zl(rt),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ht(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(r(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(at),null;case 4:return De(),null;case 10:return Zl(t.type),null;case 22:case 23:return $t(t),nc(),e!==null&&L(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zl(rt),null;case 25:return null;default:return null}}function xd(e,t){switch(Xs(t),t.tag){case 3:Zl(rt),De();break;case 26:case 27:case 5:ht(t);break;case 4:De();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:L(at);break;case 10:Zl(t.type);break;case 22:case 23:$t(t),nc(),e!==null&&L(Xa);break;case 24:Zl(rt)}}function hi(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,o=l.inst;a=i(),o.destroy=a}l=l.next}while(l!==n)}}catch(h){qe(t,t.return,h)}}function ga(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 o=a.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,n=t;var v=l,k=h;try{k()}catch(w){qe(n,v,w)}}}a=a.next}while(a!==i)}}catch(w){qe(t,t.return,w)}}function Td(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{df(t,l)}catch(a){qe(e,e.return,a)}}}function _d(e,t,l){l.props=$a(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){qe(e,t,a)}}function mi(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){qe(e,t,n)}}function Cl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){qe(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){qe(e,t,n)}else l.current=null}function Ad(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){qe(e,e.return,n)}}function wc(e,t,l){try{var a=e.stateNode;Lg(a,e.type,l,t),a[We]=t}catch(n){qe(e,e.return,n)}}function Ed(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_a(e.type)||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ed(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&&_a(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 Hc(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=ql));else if(a!==4&&(a===27&&_a(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Hc(e,t,l),e=e.sibling;e!==null;)Hc(e,t,l),e=e.sibling}function Cu(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&&_a(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Cu(e,t,l),e=e.sibling;e!==null;)Cu(e,t,l),e=e.sibling}function Nd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);At(t,a,l),t[ct]=e,t[We]=l}catch(i){qe(e,e.return,i)}}var Fl=!1,dt=!1,Bc=!1,kd=typeof WeakSet=="function"?WeakSet:Set,yt=null;function gg(e,t){if(e=e.containerInfo,ur=Iu,e=Ho(e),Rs(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 o=0,h=-1,v=-1,k=0,w=0,q=e,j=null;t:for(;;){for(var D;q!==l||n!==0&&q.nodeType!==3||(h=o+n),q!==i||a!==0&&q.nodeType!==3||(v=o+a),q.nodeType===3&&(o+=q.nodeValue.length),(D=q.firstChild)!==null;)j=q,q=D;for(;;){if(q===e)break t;if(j===l&&++k===n&&(h=o),j===i&&++w===a&&(v=o),(D=q.nextSibling)!==null)break;q=j,j=q.parentNode}q=D}l=h===-1||v===-1?null:{start:h,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(sr={focusedElem:e,selectionRange:l},Iu=!1,yt=t;yt!==null;)if(t=yt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yt=e;else for(;yt!==null;){switch(t=yt,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 W=$a(l.type,n);e=a.getSnapshotBeforeUpdate(W,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(re){qe(l,l.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)or(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":or(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,yt=e;break}yt=t.return}}function jd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Il(e,l),a&4&&hi(5,l);break;case 1:if(Il(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){qe(l,l.return,o)}else{var n=$a(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){qe(l,l.return,o)}}a&64&&Td(l),a&512&&mi(l,l.return);break;case 3:if(Il(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{df(e,t)}catch(o){qe(l,l.return,o)}}break;case 27:t===null&&a&4&&Nd(l);case 26:case 5:Il(e,l),t===null&&a&4&&Ad(l),a&512&&mi(l,l.return);break;case 12:Il(e,l);break;case 31:Il(e,l),a&4&&Cd(e,l);break;case 13:Il(e,l),a&4&&Rd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Eg.bind(null,l),Zg(e,l))));break;case 22:if(a=l.memoizedState!==null||Fl,!a){t=t!==null&&t.memoizedState!==null||dt,n=Fl;var i=dt;Fl=a,(dt=t)&&!i?Pl(e,l,(l.subtreeFlags&8772)!==0):Il(e,l),Fl=n,dt=i}break;case 30:break;default:Il(e,l)}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&x(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 Ie=null,Ht=!1;function Wl(e,t,l){for(l=l.child;l!==null;)Md(e,t,l),l=l.sibling}function Md(e,t,l){if(st&&typeof st.onCommitFiberUnmount=="function")try{st.onCommitFiberUnmount(tl,l)}catch{}switch(l.tag){case 26:dt||Cl(l,t),Wl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:dt||Cl(l,t);var a=Ie,n=Ht;_a(l.type)&&(Ie=l.stateNode,Ht=!1),Wl(e,t,l),_i(l.stateNode),Ie=a,Ht=n;break;case 5:dt||Cl(l,t);case 6:if(a=Ie,n=Ht,Ie=null,Wl(e,t,l),Ie=a,Ht=n,Ie!==null)if(Ht)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(l.stateNode)}catch(i){qe(l,t,i)}else try{Ie.removeChild(l.stateNode)}catch(i){qe(l,t,i)}break;case 18:Ie!==null&&(Ht?(e=Ie,Th(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Un(e)):Th(Ie,l.stateNode));break;case 4:a=Ie,n=Ht,Ie=l.stateNode.containerInfo,Ht=!0,Wl(e,t,l),Ie=a,Ht=n;break;case 0:case 11:case 14:case 15:ga(2,l,t),dt||ga(4,l,t),Wl(e,t,l);break;case 1:dt||(Cl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&_d(l,t,a)),Wl(e,t,l);break;case 21:Wl(e,t,l);break;case 22:dt=(a=dt)||l.memoizedState!==null,Wl(e,t,l),dt=a;break;default:Wl(e,t,l)}}function Cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Un(e)}catch(l){qe(t,t.return,l)}}}function Rd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Un(e)}catch(l){qe(t,t.return,l)}}function yg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new kd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new kd),t;default:throw Error(r(435,e.tag))}}function Ru(e,t){var l=yg(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Ng.bind(null,e,a);a.then(n,n)}})}function Bt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(_a(h.type)){Ie=h.stateNode,Ht=!1;break e}break;case 5:Ie=h.stateNode,Ht=!1;break e;case 3:case 4:Ie=h.stateNode.containerInfo,Ht=!0;break e}h=h.return}if(Ie===null)throw Error(r(160));Md(i,o,n),Ie=null,Ht=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dd(t,e),t=t.sibling}var Sl=null;function Dd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(t,e),qt(e),a&4&&(ga(3,e,e.return),hi(3,e),ga(5,e,e.return));break;case 1:Bt(t,e),qt(e),a&512&&(dt||l===null||Cl(l,l.return)),a&64&&Fl&&(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=Sl;if(Bt(t,e),qt(e),a&512&&(dt||l===null||Cl(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[le]||i[ct]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),At(i,a,l),i[ct]=e,Te(i),a=i;break e;case"link":var o=Dh("link","href",n).get(a+(l.href||""));if(o){for(var h=0;h<o.length;h++)if(i=o[h],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)){o.splice(h,1);break t}}i=n.createElement(a),At(i,a,l),n.head.appendChild(i);break;case"meta":if(o=Dh("meta","content",n).get(a+(l.content||""))){for(h=0;h<o.length;h++)if(i=o[h],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)){o.splice(h,1);break t}}i=n.createElement(a),At(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[ct]=e,Te(i),a=i}e.stateNode=a}else Oh(n,e.type,e.stateNode);else e.stateNode=Rh(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Oh(n,e.type,e.stateNode):Rh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&wc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Bt(t,e),qt(e),a&512&&(dt||l===null||Cl(l,l.return)),l!==null&&a&4&&wc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Bt(t,e),qt(e),a&512&&(dt||l===null||Cl(l,l.return)),e.flags&32){n=e.stateNode;try{an(n,"")}catch(W){qe(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,wc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Bc=!0);break;case 6:if(Bt(t,e),qt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){qe(e,e.return,W)}}break;case 3:if($u=null,n=Sl,Sl=Vu(t.containerInfo),Bt(t,e),Sl=n,qt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Un(t.containerInfo)}catch(W){qe(e,e.return,W)}Bc&&(Bc=!1,Od(e));break;case 4:a=Sl,Sl=Vu(e.stateNode.containerInfo),Bt(t,e),qt(e),Sl=a;break;case 12:Bt(t,e),qt(e);break;case 31:Bt(t,e),qt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ru(e,a)));break;case 13:Bt(t,e),qt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ou=ut()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ru(e,a)));break;case 22:n=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,k=Fl,w=dt;if(Fl=k||n,dt=w||v,Bt(t,e),dt=w,Fl=k,qt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||v||Fl||dt||Ja(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(i=v.stateNode,n)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=v.stateNode;var q=v.memoizedProps.style,j=q!=null&&q.hasOwnProperty("display")?q.display:null;h.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(W){qe(v,v.return,W)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=n?"":v.memoizedProps}catch(W){qe(v,v.return,W)}}}else if(t.tag===18){if(l===null){v=t;try{var D=v.stateNode;n?_h(D,!0):_h(v.stateNode,!1)}catch(W){qe(v,v.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ru(e,l))));break;case 19:Bt(t,e),qt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ru(e,a)));break;case 30:break;case 21:break;default:Bt(t,e),qt(e)}}function qt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Ed(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=Lc(e);Cu(e,i,n);break;case 5:var o=l.stateNode;l.flags&32&&(an(o,""),l.flags&=-33);var h=Lc(e);Cu(e,h,o);break;case 3:case 4:var v=l.stateNode.containerInfo,k=Lc(e);Hc(e,k,v);break;default:throw Error(r(161))}}catch(w){qe(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Od(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Od(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Il(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jd(e,t.alternate,t),t=t.sibling}function Ja(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ga(4,t,t.return),Ja(t);break;case 1:Cl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&_d(t,t.return,l),Ja(t);break;case 27:_i(t.stateNode);case 26:case 5:Cl(t,t.return),Ja(t);break;case 22:t.memoizedState===null&&Ja(t);break;case 30:Ja(t);break;default:Ja(t)}e=e.sibling}}function Pl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:Pl(n,i,l),hi(4,i);break;case 1:if(Pl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(k){qe(a,a.return,k)}if(a=i,n=a.updateQueue,n!==null){var h=a.stateNode;try{var v=n.shared.hiddenCallbacks;if(v!==null)for(n.shared.hiddenCallbacks=null,n=0;n<v.length;n++)ff(v[n],h)}catch(k){qe(a,a.return,k)}}l&&o&64&&Td(i),mi(i,i.return);break;case 27:Nd(i);case 26:case 5:Pl(n,i,l),l&&a===null&&o&4&&Ad(i),mi(i,i.return);break;case 12:Pl(n,i,l);break;case 31:Pl(n,i,l),l&&o&4&&Cd(n,i);break;case 13:Pl(n,i,l),l&&o&4&&Rd(n,i);break;case 22:i.memoizedState===null&&Pl(n,i,l),mi(i,i.return);break;case 30:break;default:Pl(n,i,l)}t=t.sibling}}function qc(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&&ei(l))}function Yc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ei(e))}function xl(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ud(e,t,l,a),t=t.sibling}function Ud(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,l,a),n&2048&&hi(9,t);break;case 1:xl(e,t,l,a);break;case 3:xl(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&&ei(e)));break;case 12:if(n&2048){xl(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,h=i.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){qe(t,t.return,v)}}else xl(e,t,l,a);break;case 31:xl(e,t,l,a);break;case 13:xl(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?xl(e,t,l,a):pi(e,t):i._visibility&2?xl(e,t,l,a):(i._visibility|=2,An(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&qc(o,t);break;case 24:xl(e,t,l,a),n&2048&&Yc(t.alternate,t);break;default:xl(e,t,l,a)}}function An(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,h=l,v=a,k=o.flags;switch(o.tag){case 0:case 11:case 15:An(i,o,h,v,n),hi(8,o);break;case 23:break;case 22:var w=o.stateNode;o.memoizedState!==null?w._visibility&2?An(i,o,h,v,n):pi(i,o):(w._visibility|=2,An(i,o,h,v,n)),n&&k&2048&&qc(o.alternate,o);break;case 24:An(i,o,h,v,n),n&&k&2048&&Yc(o.alternate,o);break;default:An(i,o,h,v,n)}t=t.sibling}}function pi(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:pi(l,a),n&2048&&qc(a.alternate,a);break;case 24:pi(l,a),n&2048&&Yc(a.alternate,a);break;default:pi(l,a)}t=t.sibling}}var gi=8192;function En(e,t,l){if(e.subtreeFlags&gi)for(e=e.child;e!==null;)wd(e,t,l),e=e.sibling}function wd(e,t,l){switch(e.tag){case 26:En(e,t,l),e.flags&gi&&e.memoizedState!==null&&a0(l,Sl,e.memoizedState,e.memoizedProps);break;case 5:En(e,t,l);break;case 3:case 4:var a=Sl;Sl=Vu(e.stateNode.containerInfo),En(e,t,l),Sl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gi,gi=16777216,En(e,t,l),gi=a):En(e,t,l));break;default:En(e,t,l)}}function Ld(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 yi(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];yt=a,Bd(a,e)}Ld(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hd(e),e=e.sibling}function Hd(e){switch(e.tag){case 0:case 11:case 15:yi(e),e.flags&2048&&ga(9,e,e.return);break;case 3:yi(e);break;case 12:yi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Du(e)):yi(e);break;default:yi(e)}}function Du(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];yt=a,Bd(a,e)}Ld(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ga(8,t,t.return),Du(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Du(t));break;default:Du(t)}e=e.sibling}}function Bd(e,t){for(;yt!==null;){var l=yt;switch(l.tag){case 0:case 11:case 15:ga(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:ei(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,yt=a;else e:for(l=e;yt!==null;){a=yt;var n=a.sibling,i=a.return;if(zd(a),a===l){yt=null;break e}if(n!==null){n.return=i,yt=n;break e}yt=i}}}var vg={getCacheForType:function(e){var t=Tt(rt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Tt(rt).controller.signal}},bg=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ke=null,Ee=null,je=0,Be=0,Jt=null,ya=!1,Nn=!1,Gc=!1,ea=0,lt=0,va=0,Fa=0,Xc=0,Ft=0,kn=0,vi=null,Yt=null,Qc=!1,Ou=0,qd=0,Uu=1/0,wu=null,ba=null,gt=0,Sa=null,jn=null,ta=0,Zc=0,Vc=null,Yd=null,bi=0,Kc=null;function Wt(){return(Le&2)!==0&&je!==0?je&-je:M.T!==null?Pc():Bn()}function Gd(){if(Ft===0)if((je&536870912)===0||Me){var e=yl;yl<<=1,(yl&3932160)===0&&(yl=262144),Ft=e}else Ft=536870912;return e=Kt.current,e!==null&&(e.flags|=32),Ft}function Gt(e,t,l){(e===Ke&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(zn(e,0),xa(e,je,Ft,!1)),mt(e,l),((Le&2)===0||e!==Ke)&&(e===Ke&&((Le&2)===0&&(Fa|=l),lt===4&&xa(e,je,Ft,!1)),Rl(e))}function Xd(e,t,l){if((Le&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||K(e,t),n=a?Tg(e,t):Jc(e,t,!0),i=a;do{if(n===0){Nn&&!a&&xa(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Sg(l)){n=Jc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var h=e;n=vi;var v=h.current.memoizedState.isDehydrated;if(v&&(zn(h,o).flags|=256),o=Jc(h,o,!1),o!==2){if(Gc&&!v){h.errorRecoveryDisabledLanes|=i,Fa|=i,n=4;break e}i=Yt,Yt=n,i!==null&&(Yt===null?Yt=i:Yt.push.apply(Yt,i))}n=o}if(i=!1,n!==2)continue}}if(n===1){zn(e,0),xa(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:xa(a,t,Ft,!ya);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Ou+300-ut(),10<n)){if(xa(a,t,Ft,!ya),ia(a,0,!0)!==0)break e;ta=t,a.timeoutHandle=Sh(Qd.bind(null,a,l,Yt,wu,Qc,t,Ft,Fa,kn,ya,i,"Throttled",-0,0),n);break e}Qd(a,l,Yt,wu,Qc,t,Ft,Fa,kn,ya,i,null,-0,0)}}break}while(!0);Rl(e)}function Qd(e,t,l,a,n,i,o,h,v,k,w,q,j,D){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ql},wd(t,i,q);var W=(i&62914560)===i?Ou-ut():(i&4194048)===i?qd-ut():0;if(W=n0(q,W),W!==null){ta=i,e.cancelPendingCommit=W(Id.bind(null,e,t,i,l,a,n,o,h,v,w,q,null,j,D)),xa(e,i,o,!k);return}}Id(e,t,i,l,a,n,o,h,v)}function Sg(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(!Zt(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 xa(e,t,l,a){t&=~Xc,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-et(n),o=1<<i;a[i]=-1,n&=~o}l!==0&&Ln(e,l,t)}function Lu(){return(Le&6)===0?(Si(0),!1):!0}function $c(){if(Ee!==null){if(Be===0)var e=Ee.return;else e=Ee,Ql=Ya=null,oc(e),bn=null,li=0,e=Ee;for(;e!==null;)xd(e.alternate,e),e=e.return;Ee=null}}function zn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,qg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ta=0,$c(),Ke=e,Ee=l=Gl(e.current,null),je=t,Be=0,Jt=null,ya=!1,Nn=K(e,t),Gc=!1,kn=Ft=Xc=Fa=va=lt=0,Yt=vi=null,Qc=!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-et(a),i=1<<n;t|=e[n],a&=~i}return ea=t,nu(),l}function Zd(e,t){ge=null,M.H=oi,t===vn||t===du?(t=sf(),Be=3):t===Is?(t=sf(),Be=4):Be=t===Nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jt=t,Ee===null&&(lt=1,Nu(e,sl(t,e.current)))}function Vd(){var e=Kt.current;return e===null?!0:(je&4194048)===je?fl===null:(je&62914560)===je||(je&536870912)!==0?e===fl:!1}function Kd(){var e=M.H;return M.H=oi,e===null?oi:e}function $d(){var e=M.A;return M.A=vg,e}function Hu(){lt=4,ya||(je&4194048)!==je&&Kt.current!==null||(Nn=!0),(va&134217727)===0&&(Fa&134217727)===0||Ke===null||xa(Ke,je,Ft,!1)}function Jc(e,t,l){var a=Le;Le|=2;var n=Kd(),i=$d();(Ke!==e||je!==t)&&(wu=null,zn(e,t)),t=!1;var o=lt;e:do try{if(Be!==0&&Ee!==null){var h=Ee,v=Jt;switch(Be){case 8:$c(),o=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var k=Be;if(Be=0,Jt=null,Mn(e,h,v,k),l&&Nn){o=0;break e}break;default:k=Be,Be=0,Jt=null,Mn(e,h,v,k)}}xg(),o=lt;break}catch(w){Zd(e,w)}while(!0);return t&&e.shellSuspendCounter++,Ql=Ya=null,Le=a,M.H=n,M.A=i,Ee===null&&(Ke=null,je=0,nu()),o}function xg(){for(;Ee!==null;)Jd(Ee)}function Tg(e,t){var l=Le;Le|=2;var a=Kd(),n=$d();Ke!==e||je!==t?(wu=null,Uu=ut()+500,zn(e,t)):Nn=K(e,t);e:do try{if(Be!==0&&Ee!==null){t=Ee;var i=Jt;t:switch(Be){case 1:Be=0,Jt=null,Mn(e,t,i,1);break;case 2:case 9:if(nf(i)){Be=0,Jt=null,Fd(t);break}t=function(){Be!==2&&Be!==9||Ke!==e||(Be=7),Rl(e)},i.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:nf(i)?(Be=0,Jt=null,Fd(t)):(Be=0,Jt=null,Mn(e,t,i,7));break;case 5:var o=null;switch(Ee.tag){case 26:o=Ee.memoizedState;case 5:case 27:var h=Ee;if(o?Uh(o):h.stateNode.complete){Be=0,Jt=null;var v=h.sibling;if(v!==null)Ee=v;else{var k=h.return;k!==null?(Ee=k,Bu(k)):Ee=null}break t}}Be=0,Jt=null,Mn(e,t,i,5);break;case 6:Be=0,Jt=null,Mn(e,t,i,6);break;case 8:$c(),lt=6;break e;default:throw Error(r(462))}}_g();break}catch(w){Zd(e,w)}while(!0);return Ql=Ya=null,M.H=a,M.A=n,Le=l,Ee!==null?0:(Ke=null,je=0,nu(),lt)}function _g(){for(;Ee!==null&&!wl();)Jd(Ee)}function Jd(e){var t=bd(e.alternate,e,ea);e.memoizedProps=e.pendingProps,t===null?Bu(e):Ee=t}function Fd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=hd(l,t,t.pendingProps,t.type,void 0,je);break;case 11:t=hd(l,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:oc(t);default:xd(l,t),t=Ee=Ko(t,ea),t=bd(l,t,ea)}e.memoizedProps=e.pendingProps,t===null?Bu(e):Ee=t}function Mn(e,t,l,a){Ql=Ya=null,oc(t),bn=null,li=0;var n=t.return;try{if(fg(e,n,t,l,je)){lt=1,Nu(e,sl(l,e.current)),Ee=null;return}}catch(i){if(n!==null)throw Ee=n,i;lt=1,Nu(e,sl(l,e.current)),Ee=null;return}t.flags&32768?(Me||a===1?e=!0:Nn||(je&536870912)!==0?e=!1:(ya=e=!0,(a===2||a===9||a===3||a===6)&&(a=Kt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Wd(t,e)):Bu(t)}function Bu(e){var t=e;do{if((t.flags&32768)!==0){Wd(t,ya);return}e=t.return;var l=mg(t.alternate,t,ea);if(l!==null){Ee=l;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);lt===0&&(lt=5)}function Wd(e,t){do{var l=pg(e.alternate,e);if(l!==null){l.flags&=32767,Ee=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=l}while(e!==null);lt=6,Ee=null}function Id(e,t,l,a,n,i,o,h,v){e.cancelPendingCommit=null;do qu();while(gt!==0);if((Le&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=Ls,Oa(e,l,i,o,h,v),e===Ke&&(Ee=Ke=null,je=0),jn=t,Sa=e,ta=l,Zc=i,Vc=n,Yd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,kg(kl,function(){return ah(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,n=Y.p,Y.p=2,o=Le,Le|=4;try{gg(e,t,l)}finally{Le=o,Y.p=n,M.T=a}}gt=1,Pd(),eh(),th()}}function Pd(){if(gt===1){gt=0;var e=Sa,t=jn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var a=Y.p;Y.p=2;var n=Le;Le|=4;try{Dd(t,e);var i=sr,o=Ho(e.containerInfo),h=i.focusedElem,v=i.selectionRange;if(o!==h&&h&&h.ownerDocument&&Lo(h.ownerDocument.documentElement,h)){if(v!==null&&Rs(h)){var k=v.start,w=v.end;if(w===void 0&&(w=k),"selectionStart"in h)h.selectionStart=k,h.selectionEnd=Math.min(w,h.value.length);else{var q=h.ownerDocument||document,j=q&&q.defaultView||window;if(j.getSelection){var D=j.getSelection(),W=h.textContent.length,re=Math.min(v.start,W),Ze=v.end===void 0?re:Math.min(v.end,W);!D.extend&&re>Ze&&(o=Ze,Ze=re,re=o);var A=wo(h,re),_=wo(h,Ze);if(A&&_&&(D.rangeCount!==1||D.anchorNode!==A.node||D.anchorOffset!==A.offset||D.focusNode!==_.node||D.focusOffset!==_.offset)){var N=q.createRange();N.setStart(A.node,A.offset),D.removeAllRanges(),re>Ze?(D.addRange(N),D.extend(_.node,_.offset)):(N.setEnd(_.node,_.offset),D.addRange(N))}}}}for(q=[],D=h;D=D.parentNode;)D.nodeType===1&&q.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<q.length;h++){var B=q[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Iu=!!ur,sr=ur=null}finally{Le=n,Y.p=a,M.T=l}}e.current=t,gt=2}}function eh(){if(gt===2){gt=0;var e=Sa,t=jn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Y.p;Y.p=2;var n=Le;Le|=4;try{jd(e,t.alternate,t)}finally{Le=n,Y.p=a,M.T=l}}gt=3}}function th(){if(gt===4||gt===3){gt=0,El();var e=Sa,t=jn,l=ta,a=Yd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?gt=5:(gt=0,jn=Sa=null,lh(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ba=null),vl(l),t=t.stateNode,st&&typeof st.onCommitFiberRoot=="function")try{st.onCommitFiberRoot(tl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,n=Y.p,Y.p=2,M.T=null;try{for(var i=e.onRecoverableError,o=0;o<a.length;o++){var h=a[o];i(h.value,{componentStack:h.stack})}}finally{M.T=t,Y.p=n}}(ta&3)!==0&&qu(),Rl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Kc?bi++:(bi=0,Kc=e):bi=0,Si(0)}}function lh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ei(t)))}function qu(){return Pd(),eh(),th(),ah()}function ah(){if(gt!==5)return!1;var e=Sa,t=Zc;Zc=0;var l=vl(ta),a=M.T,n=Y.p;try{Y.p=32>l?32:l,M.T=null,l=Vc,Vc=null;var i=Sa,o=ta;if(gt=0,jn=Sa=null,ta=0,(Le&6)!==0)throw Error(r(331));var h=Le;if(Le|=4,Hd(i.current),Ud(i,i.current,o,l),Le=h,Si(0,!1),st&&typeof st.onPostCommitFiberRoot=="function")try{st.onPostCommitFiberRoot(tl,i)}catch{}return!0}finally{Y.p=n,M.T=a,lh(e,t)}}function nh(e,t,l){t=sl(l,t),t=Ec(e.stateNode,t,2),e=ha(e,t,2),e!==null&&(mt(e,2),Rl(e))}function qe(e,t,l){if(e.tag===3)nh(e,e,l);else for(;t!==null;){if(t.tag===3){nh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ba===null||!ba.has(a))){e=sl(l,e),l=id(2),a=ha(t,l,2),a!==null&&(ud(l,a,t,e),mt(a,2),Rl(a));break}}t=t.return}}function Fc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new bg;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)||(Gc=!0,n.add(l),e=Ag.bind(null,e,t,l),t.then(e,e))}function Ag(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ke===e&&(je&l)===l&&(lt===4||lt===3&&(je&62914560)===je&&300>ut()-Ou?(Le&2)===0&&zn(e,0):Xc|=l,kn===je&&(kn=0)),Rl(e)}function ih(e,t){t===0&&(t=P()),e=Ha(e,t),e!==null&&(mt(e,t),Rl(e))}function Eg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),ih(e,l)}function Ng(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(r(314))}a!==null&&a.delete(t),ih(e,l)}function kg(e,t){return el(e,t)}var Yu=null,Cn=null,Wc=!1,Gu=!1,Ic=!1,Ta=0;function Rl(e){e!==Cn&&e.next===null&&(Cn===null?Yu=Cn=e:Cn=Cn.next=e),Gu=!0,Wc||(Wc=!0,zg())}function Si(e,t){if(!Ic&&Gu){Ic=!0;do for(var l=!1,a=Yu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var o=a.suspendedLanes,h=a.pingedLanes;i=(1<<31-et(42|e)+1)-1,i&=n&~(o&~h),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,rh(a,i))}else i=je,i=ia(a,a===Ke?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||K(a,i)||(l=!0,rh(a,i));a=a.next}while(l);Ic=!1}}function jg(){uh()}function uh(){Gu=Wc=!1;var e=0;Ta!==0&&Bg()&&(e=Ta);for(var t=ut(),l=null,a=Yu;a!==null;){var n=a.next,i=sh(a,t);i===0?(a.next=null,l===null?Yu=n:l.next=n,n===null&&(Cn=l)):(l=a,(e!==0||(i&3)!==0)&&(Gu=!0)),a=n}gt!==0&&gt!==5||Si(e),Ta!==0&&(Ta=0)}function sh(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-et(i),h=1<<o,v=n[o];v===-1?((h&l)===0||(h&a)!==0)&&(n[o]=te(h,t)):v<=t&&(e.expiredLanes|=h),i&=~h}if(t=Ke,l=je,l=ia(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&&Xt(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||K(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Xt(a),vl(l)){case 2:case 8:l=Et;break;case 32:l=kl;break;case 268435456:l=Ca;break;default:l=kl}return a=ch.bind(null,e),l=el(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Xt(a),e.callbackPriority=2,e.callbackNode=null,2}function ch(e,t){if(gt!==0&&gt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qu()&&e.callbackNode!==l)return null;var a=je;return a=ia(e,e===Ke?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Xd(e,a,t),sh(e,ut()),e.callbackNode!=null&&e.callbackNode===l?ch.bind(null,e):null)}function rh(e,t){if(qu())return null;Xd(e,t,!0)}function zg(){Yg(function(){(Le&6)!==0?el(Qt,jg):uh()})}function Pc(){if(Ta===0){var e=gn;e===0&&(e=gl,gl<<=1,(gl&261888)===0&&(gl=256)),Ta=e}return Ta}function oh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fi(""+e)}function fh(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 Mg(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=oh((n[We]||null).action),o=a.submitter;o&&(t=(t=o[We]||null)?oh(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var h=new eu("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ta!==0){var v=o?fh(n,o):new FormData(n);bc(l,{pending:!0,data:v,method:n.method,action:i},null,v)}}else typeof i=="function"&&(h.preventDefault(),v=o?fh(n,o):new FormData(n),bc(l,{pending:!0,data:v,method:n.method,action:i},i,v))},currentTarget:n}]})}}for(var er=0;er<ws.length;er++){var tr=ws[er],Cg=tr.toLowerCase(),Rg=tr[0].toUpperCase()+tr.slice(1);bl(Cg,"on"+Rg)}bl(Yo,"onAnimationEnd"),bl(Go,"onAnimationIteration"),bl(Xo,"onAnimationStart"),bl("dblclick","onDoubleClick"),bl("focusin","onFocus"),bl("focusout","onBlur"),bl($p,"onTransitionRun"),bl(Jp,"onTransitionStart"),bl(Fp,"onTransitionCancel"),bl(Qo,"onTransitionEnd"),jl("onMouseEnter",["mouseout","mouseover"]),jl("onMouseLeave",["mouseout","mouseover"]),jl("onPointerEnter",["pointerout","pointerover"]),jl("onPointerLeave",["pointerout","pointerover"]),wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),Dg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xi));function dh(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 o=a.length-1;0<=o;o--){var h=a[o],v=h.instance,k=h.currentTarget;if(h=h.listener,v!==i&&n.isPropagationStopped())break e;i=h,n.currentTarget=k;try{i(n)}catch(w){au(w)}n.currentTarget=null,i=v}else for(o=0;o<a.length;o++){if(h=a[o],v=h.instance,k=h.currentTarget,h=h.listener,v!==i&&n.isPropagationStopped())break e;i=h,n.currentTarget=k;try{i(n)}catch(w){au(w)}n.currentTarget=null,i=v}}}}function Ne(e,t){var l=t[tn];l===void 0&&(l=t[tn]=new Set);var a=e+"__bubble";l.has(a)||(hh(t,e,2,!1),l.add(a))}function lr(e,t,l){var a=0;t&&(a|=4),hh(l,e,a,t)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function ar(e){if(!e[Xu]){e[Xu]=!0,St.forEach(function(l){l!=="selectionchange"&&(Dg.has(l)||lr(l,!1,e),lr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xu]||(t[Xu]=!0,lr("selectionchange",!1,t))}}function hh(e,t,l,a){switch(Gh(t)){case 2:var n=s0;break;case 8:n=c0;break;default:n=vr}l=n.bind(null,t,l,e),n=void 0,!_s||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 nr(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var h=a.stateNode.containerInfo;if(h===n)break;if(o===4)for(o=a.return;o!==null;){var v=o.tag;if((v===3||v===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;h!==null;){if(o=G(h),o===null)return;if(v=o.tag,v===5||v===6||v===26||v===27){a=i=o;continue e}h=h.parentNode}}a=a.return}yo(function(){var k=i,w=xs(l),q=[];e:{var j=Zo.get(e);if(j!==void 0){var D=eu,W=e;switch(e){case"keypress":if(Ii(l)===0)break e;case"keydown":case"keyup":D=Np;break;case"focusin":W="focus",D=ks;break;case"focusout":W="blur",D=ks;break;case"beforeblur":case"afterblur":D=ks;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":D=So;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=mp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=zp;break;case Yo:case Go:case Xo:D=yp;break;case Qo:D=Cp;break;case"scroll":case"scrollend":D=dp;break;case"wheel":D=Dp;break;case"copy":case"cut":case"paste":D=bp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=To;break;case"toggle":case"beforetoggle":D=Up}var re=(t&4)!==0,Ze=!re&&(e==="scroll"||e==="scrollend"),A=re?j!==null?j+"Capture":null:j;re=[];for(var _=k,N;_!==null;){var B=_;if(N=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||N===null||A===null||(B=Xn(_,A),B!=null&&re.push(Ti(_,B,N))),Ze)break;_=_.return}0<re.length&&(j=new D(j,W,null,l,w),q.push({event:j,listeners:re}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",j&&l!==Ss&&(W=l.relatedTarget||l.fromElement)&&(G(W)||W[Hl]))break e;if((D||j)&&(j=w.window===w?w:(j=w.ownerDocument)?j.defaultView||j.parentWindow:window,D?(W=l.relatedTarget||l.toElement,D=k,W=W?G(W):null,W!==null&&(Ze=g(W),re=W.tag,W!==Ze||re!==5&&re!==27&&re!==6)&&(W=null)):(D=null,W=k),D!==W)){if(re=So,B="onMouseLeave",A="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(re=To,B="onPointerLeave",A="onPointerEnter",_="pointer"),Ze=D==null?j:He(D),N=W==null?j:He(W),j=new re(B,_+"leave",D,l,w),j.target=Ze,j.relatedTarget=N,B=null,G(w)===k&&(re=new re(A,_+"enter",W,l,w),re.target=N,re.relatedTarget=Ze,B=re),Ze=B,D&&W)t:{for(re=Og,A=D,_=W,N=0,B=A;B;B=re(B))N++;B=0;for(var se=_;se;se=re(se))B++;for(;0<N-B;)A=re(A),N--;for(;0<B-N;)_=re(_),B--;for(;N--;){if(A===_||_!==null&&A===_.alternate){re=A;break t}A=re(A),_=re(_)}re=null}else re=null;D!==null&&mh(q,j,D,re,!1),W!==null&&Ze!==null&&mh(q,Ze,W,re,!0)}}e:{if(j=k?He(k):window,D=j.nodeName&&j.nodeName.toLowerCase(),D==="select"||D==="input"&&j.type==="file")var Ue=Mo;else if(jo(j))if(Co)Ue=Zp;else{Ue=Xp;var ae=Gp}else D=j.nodeName,!D||D.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?k&&bs(k.elementType)&&(Ue=Mo):Ue=Qp;if(Ue&&(Ue=Ue(e,k))){zo(q,Ue,l,w);break e}ae&&ae(e,j,k),e==="focusout"&&k&&j.type==="number"&&k.memoizedProps.value!=null&&vs(j,"number",j.value)}switch(ae=k?He(k):window,e){case"focusin":(jo(ae)||ae.contentEditable==="true")&&(cn=ae,Ds=k,Wn=null);break;case"focusout":Wn=Ds=cn=null;break;case"mousedown":Os=!0;break;case"contextmenu":case"mouseup":case"dragend":Os=!1,Bo(q,l,w);break;case"selectionchange":if(Kp)break;case"keydown":case"keyup":Bo(q,l,w)}var ve;if(zs)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else sn?No(e,l)&&(ze="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ze="onCompositionStart");ze&&(_o&&l.locale!=="ko"&&(sn||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&sn&&(ve=vo()):(ua=w,As="value"in ua?ua.value:ua.textContent,sn=!0)),ae=Qu(k,ze),0<ae.length&&(ze=new xo(ze,e,null,l,w),q.push({event:ze,listeners:ae}),ve?ze.data=ve:(ve=ko(l),ve!==null&&(ze.data=ve)))),(ve=Lp?Hp(e,l):Bp(e,l))&&(ze=Qu(k,"onBeforeInput"),0<ze.length&&(ae=new xo("onBeforeInput","beforeinput",null,l,w),q.push({event:ae,listeners:ze}),ae.data=ve)),Mg(q,e,k,l,w)}dh(q,t)})}function Ti(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Qu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Xn(e,l),n!=null&&a.unshift(Ti(e,n,i)),n=Xn(e,t),n!=null&&a.push(Ti(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Og(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function mh(e,t,l,a,n){for(var i=t._reactName,o=[];l!==null&&l!==a;){var h=l,v=h.alternate,k=h.stateNode;if(h=h.tag,v!==null&&v===a)break;h!==5&&h!==26&&h!==27||k===null||(v=k,n?(k=Xn(l,i),k!=null&&o.unshift(Ti(l,k,v))):n||(k=Xn(l,i),k!=null&&o.push(Ti(l,k,v)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var Ug=/\r\n?/g,wg=/\u0000|\uFFFD/g;function ph(e){return(typeof e=="string"?e:""+e).replace(Ug,`
50
- `).replace(wg,"")}function gh(e,t){return t=ph(t),ph(e)===t}function Qe(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||an(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&an(e,""+a);break;case"className":$i(e,"class",a);break;case"tabIndex":$i(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":$i(e,l,a);break;case"style":po(e,a,i);break;case"data":if(t!=="object"){$i(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=Fi(""+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"&&Qe(e,t,"name",n.name,n,null),Qe(e,t,"formEncType",n.formEncType,n,null),Qe(e,t,"formMethod",n.formMethod,n,null),Qe(e,t,"formTarget",n.formTarget,n,null)):(Qe(e,t,"encType",n.encType,n,null),Qe(e,t,"method",n.method,n,null),Qe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Fi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=ql);break;case"onScroll":a!=null&&Ne("scroll",e);break;case"onScrollEnd":a!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(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=Fi(""+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":Ne("beforetoggle",e),Ne("toggle",e),Ki(e,"popover",a);break;case"xlinkActuate":Bl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ki(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=op.get(l)||l,Ki(e,l,a))}}function ir(e,t,l,a,n,i){switch(l){case"style":po(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?an(e,a):(typeof a=="number"||typeof a=="bigint")&&an(e,""+a);break;case"onScroll":a!=null&&Ne("scroll",e);break;case"onScrollEnd":a!=null&&Ne("scrollend",e);break;case"onClick":a!=null&&(e.onclick=ql);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!al.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[We]||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,""):Ki(e,l,a)}}}function At(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var o=l[i];if(o!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Qe(e,t,i,o,l,null)}}n&&Qe(e,t,"srcSet",l.srcSet,l,null),a&&Qe(e,t,"src",l.src,l,null);return;case"input":Ne("invalid",e);var h=i=o=n=null,v=null,k=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":o=w;break;case"checked":v=w;break;case"defaultChecked":k=w;break;case"value":i=w;break;case"defaultValue":h=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,t));break;default:Qe(e,t,a,w,l,null)}}oo(e,i,h,v,k,o,n,!1);return;case"select":Ne("invalid",e),a=o=i=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":i=h;break;case"defaultValue":o=h;break;case"multiple":a=h;default:Qe(e,t,n,h,l,null)}t=i,l=o,e.multiple=!!a,t!=null?ln(e,!!a,t,!1):l!=null&&ln(e,!!a,l,!0);return;case"textarea":Ne("invalid",e),i=n=a=null;for(o in l)if(l.hasOwnProperty(o)&&(h=l[o],h!=null))switch(o){case"value":a=h;break;case"defaultValue":n=h;break;case"children":i=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:Qe(e,t,o,h,l,null)}ho(e,a,n,i);return;case"option":for(v in l)if(l.hasOwnProperty(v)&&(a=l[v],a!=null))switch(v){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Qe(e,t,v,a,l,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(a=0;a<xi.length;a++)Ne(xi[a],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("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(k in l)if(l.hasOwnProperty(k)&&(a=l[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Qe(e,t,k,a,l,null)}return;default:if(bs(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&ir(e,t,w,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Qe(e,t,h,a,l,null))}function Lg(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,o=null,h=null,v=null,k=null,w=null;for(D in l){var q=l[D];if(l.hasOwnProperty(D)&&q!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":v=q;default:a.hasOwnProperty(D)||Qe(e,t,D,null,a,q)}}for(var j in a){var D=a[j];if(q=l[j],a.hasOwnProperty(j)&&(D!=null||q!=null))switch(j){case"type":i=D;break;case"name":n=D;break;case"checked":k=D;break;case"defaultChecked":w=D;break;case"value":o=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:D!==q&&Qe(e,t,j,D,a,q)}}ys(e,o,h,v,k,w,i,n);return;case"select":D=o=h=j=null;for(i in l)if(v=l[i],l.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":D=v;default:a.hasOwnProperty(i)||Qe(e,t,i,null,a,v)}for(n in a)if(i=a[n],v=l[n],a.hasOwnProperty(n)&&(i!=null||v!=null))switch(n){case"value":j=i;break;case"defaultValue":h=i;break;case"multiple":o=i;default:i!==v&&Qe(e,t,n,i,a,v)}t=h,l=o,a=D,j!=null?ln(e,!!l,j,!1):!!a!=!!l&&(t!=null?ln(e,!!l,t,!0):ln(e,!!l,l?[]:"",!1));return;case"textarea":D=j=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Qe(e,t,h,null,a,n)}for(o in a)if(n=a[o],i=l[o],a.hasOwnProperty(o)&&(n!=null||i!=null))switch(o){case"value":j=n;break;case"defaultValue":D=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Qe(e,t,o,n,a,i)}fo(e,j,D);return;case"option":for(var W in l)if(j=l[W],l.hasOwnProperty(W)&&j!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Qe(e,t,W,null,a,j)}for(v in a)if(j=a[v],D=l[v],a.hasOwnProperty(v)&&j!==D&&(j!=null||D!=null))switch(v){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Qe(e,t,v,j,a,D)}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 re in l)j=l[re],l.hasOwnProperty(re)&&j!=null&&!a.hasOwnProperty(re)&&Qe(e,t,re,null,a,j);for(k in a)if(j=a[k],D=l[k],a.hasOwnProperty(k)&&j!==D&&(j!=null||D!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:Qe(e,t,k,j,a,D)}return;default:if(bs(t)){for(var Ze in l)j=l[Ze],l.hasOwnProperty(Ze)&&j!==void 0&&!a.hasOwnProperty(Ze)&&ir(e,t,Ze,void 0,a,j);for(w in a)j=a[w],D=l[w],!a.hasOwnProperty(w)||j===D||j===void 0&&D===void 0||ir(e,t,w,j,a,D);return}}for(var A in l)j=l[A],l.hasOwnProperty(A)&&j!=null&&!a.hasOwnProperty(A)&&Qe(e,t,A,null,a,j);for(q in a)j=a[q],D=l[q],!a.hasOwnProperty(q)||j===D||j==null&&D==null||Qe(e,t,q,j,a,D)}function yh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hg(){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,o=n.initiatorType,h=n.duration;if(i&&h&&yh(o)){for(o=0,h=n.responseEnd,a+=1;a<l.length;a++){var v=l[a],k=v.startTime;if(k>h)break;var w=v.transferSize,q=v.initiatorType;w&&yh(q)&&(v=v.responseEnd,o+=w*(v<h?1:(h-k)/(v-k)))}if(--a,t+=8*(i+o)/(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 ur=null,sr=null;function Zu(e){return e.nodeType===9?e:e.ownerDocument}function vh(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 bh(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 cr(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 rr=null;function Bg(){var e=window.event;return e&&e.type==="popstate"?e===rr?!1:(rr=e,!0):(rr=null,!1)}var Sh=typeof setTimeout=="function"?setTimeout:void 0,qg=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Yg=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(Gg)}:Sh;function Gg(e){setTimeout(function(){throw e})}function _a(e){return e==="head"}function Th(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),Un(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")_i(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,_i(l);for(var i=l.firstChild;i;){var o=i.nextSibling,h=i.nodeName;i[le]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=o}}else l==="body"&&_i(e.ownerDocument.body);l=n}while(l);Un(t)}function _h(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 or(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":or(l),x(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Xg(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[le])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=dl(e.nextSibling),e===null)break}return null}function Qg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=dl(e.nextSibling),e===null))return null;return e}function Ah(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dl(e.nextSibling),e===null))return null;return e}function fr(e){return e.data==="$?"||e.data==="$~"}function dr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Zg(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 dl(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 hr=null;function Eh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return dl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Nh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function kh(e,t,l){switch(t=Zu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function _i(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);x(e)}var hl=new Map,jh=new Set;function Vu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var la=Y.d;Y.d={f:Vg,r:Kg,D:$g,C:Jg,L:Fg,m:Wg,X:Pg,S:Ig,M:e0};function Vg(){var e=la.f(),t=Lu();return e||t}function Kg(e){var t=F(e);t!==null&&t.tag===5&&t.type==="form"?Zf(t):la.r(e)}var Rn=typeof document>"u"?null:document;function zh(e,t,l){var a=Rn;if(a&&typeof t=="string"&&t){var n=il(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),jh.has(n)||(jh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),At(t,"link",e),Te(t),a.head.appendChild(t)))}}function $g(e){la.D(e),zh("dns-prefetch",e,null)}function Jg(e,t){la.C(e,t),zh("preconnect",e,t)}function Fg(e,t,l){la.L(e,t,l);var a=Rn;if(a&&e&&t){var n='link[rel="preload"][as="'+il(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+il(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+il(l.imageSizes)+'"]')):n+='[href="'+il(e)+'"]';var i=n;switch(t){case"style":i=Dn(e);break;case"script":i=On(e)}hl.has(i)||(e=E({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),hl.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Ai(i))||t==="script"&&a.querySelector(Ei(i))||(t=a.createElement("link"),At(t,"link",e),Te(t),a.head.appendChild(t)))}}function Wg(e,t){la.m(e,t);var l=Rn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+il(a)+'"][href="'+il(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=On(e)}if(!hl.has(i)&&(e=E({rel:"modulepreload",href:e},t),hl.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ei(i)))return}a=l.createElement("link"),At(a,"link",e),Te(a),l.head.appendChild(a)}}}function Ig(e,t,l){la.S(e,t,l);var a=Rn;if(a&&e){var n=Pe(a).hoistableStyles,i=Dn(e);t=t||"default";var o=n.get(i);if(!o){var h={loading:0,preload:null};if(o=a.querySelector(Ai(i)))h.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},l),(l=hl.get(i))&&mr(e,l);var v=o=a.createElement("link");Te(v),At(v,"link",e),v._p=new Promise(function(k,w){v.onload=k,v.onerror=w}),v.addEventListener("load",function(){h.loading|=1}),v.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Ku(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:h},n.set(i,o)}}}function Pg(e,t){la.X(e,t);var l=Rn;if(l&&e){var a=Pe(l).hoistableScripts,n=On(e),i=a.get(n);i||(i=l.querySelector(Ei(n)),i||(e=E({src:e,async:!0},t),(t=hl.get(n))&&pr(e,t),i=l.createElement("script"),Te(i),At(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function e0(e,t){la.M(e,t);var l=Rn;if(l&&e){var a=Pe(l).hoistableScripts,n=On(e),i=a.get(n);i||(i=l.querySelector(Ei(n)),i||(e=E({src:e,async:!0,type:"module"},t),(t=hl.get(n))&&pr(e,t),i=l.createElement("script"),Te(i),At(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Mh(e,t,l,a){var n=(n=ce.current)?Vu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Dn(l.href),l=Pe(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=Dn(l.href);var i=Pe(n).hoistableStyles,o=i.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=n.querySelector(Ai(e)))&&!i._p&&(o.instance=i,o.state.loading=5),hl.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},hl.set(e,l),i||t0(n,e,l,o.state))),t&&a===null)throw Error(r(528,""));return o}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=On(l),l=Pe(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(r(444,e))}}function Dn(e){return'href="'+il(e)+'"'}function Ai(e){return'link[rel="stylesheet"]['+e+"]"}function Ch(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function t0(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}),At(t,"link",l),Te(t),e.head.appendChild(t))}function On(e){return'[src="'+il(e)+'"]'}function Ei(e){return"script[async]"+e}function Rh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+il(l.href)+'"]');if(a)return t.instance=a,Te(a),a;var n=E({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Te(a),At(a,"style",n),Ku(a,l.precedence,e),t.instance=a;case"stylesheet":n=Dn(l.href);var i=e.querySelector(Ai(n));if(i)return t.state.loading|=4,t.instance=i,Te(i),i;a=Ch(l),(n=hl.get(n))&&mr(a,n),i=(e.ownerDocument||e).createElement("link"),Te(i);var o=i;return o._p=new Promise(function(h,v){o.onload=h,o.onerror=v}),At(i,"link",a),t.state.loading|=4,Ku(i,l.precedence,e),t.instance=i;case"script":return i=On(l.src),(n=e.querySelector(Ei(i)))?(t.instance=n,Te(n),n):(a=l,(n=hl.get(i))&&(a=E({},l),pr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Te(n),At(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ku(a,l.precedence,e));return t.instance}function Ku(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,o=0;o<a.length;o++){var h=a[o];if(h.dataset.precedence===t)i=h;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 mr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function pr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $u=null;function Dh(e,t,l){if($u===null){var a=new Map,n=$u=new Map;n.set(l,a)}else n=$u,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[le]||i[ct]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var h=a.get(o);h?h.push(i):a.set(o,[i])}}return a}function Oh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function l0(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 Uh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function a0(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=Dn(a.href),i=t.querySelector(Ai(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Te(i);return}i=t.ownerDocument||t,a=Ch(a),(n=hl.get(n))&&mr(a,n),i=i.createElement("link"),Te(i);var o=i;o._p=new Promise(function(h,v){o.onload=h,o.onerror=v}),At(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=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var gr=0;function n0(e,t){return e.stylesheets&&e.count===0&&Wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&gr===0&&(gr=62500*Hg());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>gr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fu=null;function Wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fu=new Map,t.forEach(i0,e),Fu=null,Ju.call(e))}function i0(e,t){if(!(t.state.loading&4)){var l=Fu.get(e);if(l)var a=l.get(null);else{l=new Map,Fu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var o=n[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}n=t.instance,o=n.getAttribute("data-precedence"),i=l.get(o)||a,i===a&&l.set(null,n),l.set(o,n),this.count++,a=Ju.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 Ni={$$typeof:oe,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function u0(e,t,l,a,n,i,o,h,v){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=ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ke(0),this.hiddenUpdates=ke(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function wh(e,t,l,a,n,i,o,h,v,k,w,q){return e=new u0(e,t,l,o,v,k,w,q,h),t=1,i===!0&&(t|=24),i=Vt(3,null,null,t),e.current=i,i.stateNode=e,t=Js(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Ps(i),e}function Lh(e){return e?(e=fn,e):fn}function Hh(e,t,l,a,n,i){n=Lh(n),a.context===null?a.context=n:a.pendingContext=n,a=da(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=ha(e,a,t),l!==null&&(Gt(l,e,t),ni(l,e,t))}function Bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function yr(e,t){Bh(e,t),(e=e.alternate)&&Bh(e,t)}function qh(e){if(e.tag===13||e.tag===31){var t=Ha(e,67108864);t!==null&&Gt(t,e,67108864),yr(e,67108864)}}function Yh(e){if(e.tag===13||e.tag===31){var t=Wt();t=Ut(t);var l=Ha(e,t);l!==null&&Gt(l,e,t),yr(e,t)}}var Iu=!0;function s0(e,t,l,a){var n=M.T;M.T=null;var i=Y.p;try{Y.p=2,vr(e,t,l,a)}finally{Y.p=i,M.T=n}}function c0(e,t,l,a){var n=M.T;M.T=null;var i=Y.p;try{Y.p=8,vr(e,t,l,a)}finally{Y.p=i,M.T=n}}function vr(e,t,l,a){if(Iu){var n=br(a);if(n===null)nr(e,t,a,Pu,l),Xh(e,a);else if(o0(n,e,t,l,a))a.stopPropagation();else if(Xh(e,a),t&4&&-1<r0.indexOf(e)){for(;n!==null;){var i=F(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=jt(i.pendingLanes);if(o!==0){var h=i;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var v=1<<31-et(o);h.entanglements[1]|=v,o&=~v}Rl(i),(Le&6)===0&&(Uu=ut()+500,Si(0))}}break;case 31:case 13:h=Ha(i,2),h!==null&&Gt(h,i,2),Lu(),yr(i,2)}if(i=br(a),i===null&&nr(e,t,a,Pu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else nr(e,t,a,null,l)}}function br(e){return e=xs(e),Sr(e)}var Pu=null;function Sr(e){if(Pu=null,e=G(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=p(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 Pu=e,null}function Gh(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(Nl()){case Qt:return 2;case Et:return 8;case kl:case Ma:return 32;case Ca:return 268435456;default:return 32}default:return 32}}var xr=!1,Aa=null,Ea=null,Na=null,ki=new Map,ji=new Map,ka=[],r0="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 Xh(e,t){switch(e){case"focusin":case"focusout":Aa=null;break;case"dragenter":case"dragleave":Ea=null;break;case"mouseover":case"mouseout":Na=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ji.delete(t.pointerId)}}function zi(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=F(t),t!==null&&qh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function o0(e,t,l,a,n){switch(t){case"focusin":return Aa=zi(Aa,e,t,l,a,n),!0;case"dragenter":return Ea=zi(Ea,e,t,l,a,n),!0;case"mouseover":return Na=zi(Na,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return ki.set(i,zi(ki.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,ji.set(i,zi(ji.get(i)||null,e,t,l,a,n)),!0}return!1}function Qh(e){var t=G(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,qn(e.priority,function(){Yh(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,qn(e.priority,function(){Yh(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 es(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=br(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ss=a,l.target.dispatchEvent(a),Ss=null}else return t=F(l),t!==null&&qh(t),e.blockedOn=l,!1;t.shift()}return!0}function Zh(e,t,l){es(e)&&l.delete(t)}function f0(){xr=!1,Aa!==null&&es(Aa)&&(Aa=null),Ea!==null&&es(Ea)&&(Ea=null),Na!==null&&es(Na)&&(Na=null),ki.forEach(Zh),ji.forEach(Zh)}function ts(e,t){e.blockedOn===t&&(e.blockedOn=null,xr||(xr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,f0)))}var ls=null;function Vh(e){ls!==e&&(ls=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){ls===e&&(ls=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(Sr(a||l)===null)continue;break}var i=F(l);i!==null&&(e.splice(t,3),t-=3,bc(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Un(e){function t(v){return ts(v,e)}Aa!==null&&ts(Aa,e),Ea!==null&&ts(Ea,e),Na!==null&&ts(Na,e),ki.forEach(t),ji.forEach(t);for(var l=0;l<ka.length;l++){var a=ka[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ka.length&&(l=ka[0],l.blockedOn===null);)Qh(l),l.blockedOn===null&&ka.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],o=n[We]||null;if(typeof i=="function")o||Vh(l);else if(o){var h=null;if(i&&i.hasAttribute("formAction")){if(n=i,o=i[We]||null)h=o.formAction;else if(Sr(n)!==null)continue}else h=o.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Vh(l)}}}function Kh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return n=o})},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 Tr(e){this._internalRoot=e}as.prototype.render=Tr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Wt();Hh(l,a,e,t,null,null)},as.prototype.unmount=Tr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hh(e.current,2,null,e,null,null),Lu(),t[Hl]=null}};function as(e){this._internalRoot=e}as.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bn();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ka.length&&t!==0&&t<ka[l].priority;l++);ka.splice(l,0,e),l===0&&Qh(e)}};var $h=s.version;if($h!=="19.2.4")throw Error(r(527,$h,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var d0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ns.isDisabled&&ns.supportsFiber)try{tl=ns.inject(d0),st=ns}catch{}}return Ci.createRoot=function(e,t){if(!f(e))throw Error(r(299));var l=!1,a="",n=td,i=ld,o=ad;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&&(o=t.onRecoverableError)),t=wh(e,1,!1,null,null,l,a,null,n,i,o,Kh),e[Hl]=t.current,ar(e),new Tr(t)},Ci.hydrateRoot=function(e,t,l){if(!f(e))throw Error(r(299));var a=!1,n="",i=td,o=ld,h=ad,v=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&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),t=wh(e,1,!0,t,l??null,a,n,v,i,o,h,Kh),t.context=Lh(null),l=t.current,a=Wt(),a=Ut(a),n=da(a),n.callback=null,ha(l,n,a),l=a,t.current.lanes=l,mt(t,l),Rl(t),e[Hl]=t.current,ar(e),new as(t)},Ci.version="19.2.4",Ci}var nm;function A0(){if(nm)return Er.exports;nm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),Er.exports=_0(),Er.exports}var E0=A0();class N0 extends Error{constructor(s,c){super(c),this.status=s,this.name="FetchError"}}async function Ul(u,s,c){const r=new URL(u,window.location.origin);if(s)for(const[g,y]of Object.entries(s))r.searchParams.set(g,y);const f=await fetch(r.toString(),{signal:c==null?void 0:c.signal});if(!f.ok){let g=`HTTP ${f.status}`;try{const y=await f.json();y.error&&(g=y.error)}catch{}throw new N0(f.status,g)}return f.json()}function k0(u={}){const{since:s,project:c,dueMonth:r,tag:f}=u,[g,y]=z.useState([]),[p,T]=z.useState(!0),[m,S]=z.useState(null),E=z.useCallback(()=>{const O={};r?O.due_month=r:s&&(O.since=s),c&&(O.project=c),f&&(O.tag=f),T(!0),Ul("/api/tasks",O).then(R=>{y(R.tasks),S(null)}).catch(R=>{S(R.message)}).finally(()=>{T(!1)})},[s,c,r,f]);return z.useEffect(()=>{E()},[E]),{tasks:g,loading:p,error:m,refresh:E}}function j0(u=0){const[s,c]=z.useState([]),[r,f]=z.useState(!0),[g,y]=z.useState(null),p=z.useCallback(()=>{const T={};u>0&&(T.since=String(u)),f(!0),Ul("/api/events",T).then(m=>{c(m.events),y(null)}).catch(m=>{y(m.message)}).finally(()=>{f(!1)})},[u]);return z.useEffect(()=>{p()},[p]),{events:s,loading:r,error:g,refresh:p}}function z0(){const[u,s]=z.useState(null),[c,r]=z.useState(!0),[f,g]=z.useState(null),y=z.useCallback(()=>{r(!0),Ul("/api/stats").then(p=>{s(p),g(null)}).catch(p=>{g(p.message)}).finally(()=>{r(!1)})},[]);return z.useEffect(()=>{y()},[y]),{stats:u,loading:c,error:f,refresh:y}}const zr=1e3,M0=3e4;function C0(u){let s=null,c=zr,r=null,f=!1;function g(E){try{const O=JSON.parse(E.data);u(O.latest_event_id)}catch{}}function y(){f||(r=setTimeout(()=>{r=null,p()},c),c=Math.min(c*2,M0))}function p(){f||(T(),s=new EventSource("/api/events/stream"),s.addEventListener("ready",E=>{c=zr,g(E)}),s.addEventListener("update",g),s.onerror=()=>{T(),y()})}function T(){s&&(s.close(),s=null)}function m(){f=!0,document.removeEventListener("visibilitychange",S),r!==null&&(clearTimeout(r),r=null),T()}function S(){document.visibilityState==="visible"&&!f&&!s&&(c=zr,p())}return document.addEventListener("visibilitychange",S),{connect:p,disconnect:m}}function R0(u){const s=z.useRef(u);s.current=u,z.useEffect(()=>{const c=C0(()=>{s.current()});return c.connect(),()=>{c.disconnect()}},[])}const D0=250,O0=2;function U0(u){const[s,c]=z.useState([]),[r,f]=z.useState(0),[g,y]=z.useState(!1),p=z.useRef(),T=z.useRef(),m=z.useCallback(S=>{var O;if((O=T.current)==null||O.abort(),!S.trim()||S.trim().length<O0){c([]),f(0),y(!1);return}y(!0);const E=new AbortController;T.current=E,Ul("/api/search",{q:S},{signal:E.signal}).then(R=>{E.signal.aborted||(c(R.tasks),f(R.total))}).catch(()=>{E.signal.aborted||(c([]),f(0))}).finally(()=>{E.signal.aborted||y(!1)})},[]);return z.useEffect(()=>{if(clearTimeout(p.current),!u.trim()){m("");return}return p.current=setTimeout(()=>m(u),D0),()=>clearTimeout(p.current)},[u,m]),z.useEffect(()=>()=>{var S;return(S=T.current)==null?void 0:S.abort()},[]),{results:s,total:r,searching:g}}const Dm="hzl-dashboard-prefs",im={dateFilter:"3d",projectFilter:"",assigneeFilter:"",activityAssigneeFilter:"",activityKeywordFilter:"",taskSearch:"",columnVisibility:["backlog","ready","in_progress","blocked","done"],showSubtasks:!0,collapsedParents:[],activeView:"kanban",tagFilter:"",activeTab:"ready",railCollapsed:!1};function w0(){try{const u=localStorage.getItem(Dm);if(u){const s=JSON.parse(u);return{...im,...s}}}catch{}return{...im}}function L0(u){try{localStorage.setItem(Dm,JSON.stringify(u))}catch{}}function H0(){const u=new URLSearchParams(window.location.search),s={},c=u.get("view");(c==="kanban"||c==="calendar"||c==="graph"||c==="agents")&&(s.view=c);const r=u.get("since");r&&(s.since=r);const f=u.get("month");f&&(s.month=f);const g=u.get("project");g!==null&&(s.project=g);const y=u.get("assignee");y!==null&&(s.assignee=y);const p=u.get("q");p!==null&&(s.q=p);const T=u.get("subtasks");T!==null&&(s.subtasks=T);const m=u.get("tab");m&&(s.tab=m);const S=u.get("activity");S&&(s.activity=S);const E=u.get("activity_assignee");E!==null&&(s.activityAssignee=E);const O=u.get("activity_q");O!==null&&(s.activityQ=O);const R=u.get("tag");R!==null&&(s.tag=R);const Q=u.get("task");Q&&(s.task=Q);const $=u.get("agent");return $&&(s.selectedAgent=$),s}function B0(u){const s=new URLSearchParams;if(u.view!=="kanban"&&s.set("view",u.view),u.view==="calendar"){const f=String(u.calendarMonth+1).padStart(2,"0");s.set("month",`${u.calendarYear}-${f}`)}else u.since!=="3d"&&s.set("since",u.since);u.project&&s.set("project",u.project),u.assignee&&s.set("assignee",u.assignee),u.searchQuery&&s.set("q",u.searchQuery),u.showSubtasks||s.set("subtasks","0"),u.activeTab!=="ready"&&s.set("tab",u.activeTab),u.activityAssignee&&s.set("activity_assignee",u.activityAssignee),u.activityKeyword.trim()&&s.set("activity_q",u.activityKeyword.trim()),u.tag&&s.set("tag",u.tag),u.activityOpen&&s.set("activity","1"),u.selectedTaskId&&s.set("task",u.selectedTaskId),u.selectedAgent&&s.set("agent",u.selectedAgent);const c=s.toString(),r=`${window.location.pathname}${c?`?${c}`:""}${window.location.hash||""}`;history.replaceState(null,"",r)}const um=["🔷","🔶","🔴","🟢","🔵","🟡","🟣","🟠","⬛","⬜","🔳","🔲","▪️","▫️","◾","◽","💠","🔹","🔸","♦️","♠️","♣️","♥️","🃏","⭐","🌟","✨","💫","🔆","🔅","☀️","🌙","🎯","🏪","🎨","🎭","🎬","🎮","🎲","🎸","🔑","🔐","🔒","🔓","🗝️","⚡","💡","🔔"];function Om(u){let s=5381;for(let c=0;c<u.length;c++)s=(s<<5)+s^u.charCodeAt(c);return s}function sm(u){return um[Math.abs(Om(u))%um.length]}function q0(u){return`hsl(${Math.abs(Om(u))%360} 55% 55%)`}function Y0(u){const s=new Set(u.map(f=>f.task_id)),c=new Map;for(const f of u)f.parent_id&&s.has(f.parent_id)&&(c.has(f.parent_id)||c.set(f.parent_id,[]),c.get(f.parent_id).push(f));for(const f of c.values())f.sort((g,y)=>g.task_id.localeCompare(y.task_id));const r=new Map;for(const f of u)if(f.parent_id){const g=sm(f.parent_id),y=c.get(f.parent_id)||[],p=y.indexOf(f),T=y.length>0&&p>=0?p+1:null;r.set(f.task_id,{emoji:g,suffix:T})}else r.set(f.task_id,{emoji:sm(f.task_id),suffix:null});return r}const G0=1e3,qr=60*G0,Yr=60*qr,Mr=24*Yr;function Ia(u){if(!u)return"";const s=new Date(u),r=new Date().getTime()-s.getTime();return r<qr?"just now":r<Yr?`${Math.floor(r/qr)}m ago`:r<Mr?`${Math.floor(r/Yr)}h ago`:r<7*Mr?`${Math.floor(r/Mr)}d ago`:s.toLocaleDateString()}function Um(u){return u.replace(/_/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function za(u){return typeof u!="string"?"":u.trim().length>0?u:""}function X0(u,s=10){if(!u||s<=0)return"";const c=Array.from(u);return c.length<=s?u:`${c.slice(0,s).join("")}...`}function Q0(u,s=160){return u?u.length<=s?u:`${u.slice(0,s-3)}...`:""}function wm(u){const s=typeof u.author=="string"&&u.author.trim()?u.author:null;if(s)return s;const c=typeof u.agent_id=="string"&&u.agent_id.trim()?u.agent_id:null;return c||(u.data&&typeof u.data.author=="string"&&u.data.author.trim()?u.data.author:null)||"system"}function Lm(u){if(!u||!u.data)return"";if(u.type==="task_created"){const s=typeof u.data.assignee=="string"?u.data.assignee:null,c=typeof u.data.project=="string"?u.data.project:null;return s&&c?`Assigned to ${s} in ${c}`:s?`Assigned to ${s}`:c?`Created in ${c}`:""}if(u.type==="status_changed"){const s=typeof u.data.from=="string"?u.data.from:null,c=typeof u.data.to=="string"?u.data.to:null;return!s||!c?"":`${s} → ${c}`}if(u.type==="task_updated"){const s=typeof u.data.field=="string"?u.data.field:null;return s?`${s} updated`:"Task updated"}if(u.type==="comment_added"){const s=typeof u.data.text=="string"?u.data.text:"";return Q0(s)}if(u.type==="checkpoint_recorded"){const s=typeof u.data.name=="string"?u.data.name:null;return s?`Checkpoint: ${s}`:"Checkpoint recorded"}if(u.type==="task_moved"){const s=typeof u.data.from_project=="string"?u.data.from_project:null,c=typeof u.data.to_project=="string"?u.data.to_project:null;return!s||!c?"":`${s} → ${c}`}if(u.type==="dependency_added"){const s=typeof u.data.depends_on_id=="string"?u.data.depends_on_id:null;return s?`Added dependency on ${s}`:"Added dependency"}if(u.type==="dependency_removed"){const s=typeof u.data.depends_on_id=="string"?u.data.depends_on_id:null;return s?`Removed dependency on ${s}`:"Removed dependency"}return u.type==="task_archived"?"Task archived":""}function Gr(u){return u.blocked_by&&u.blocked_by.length>0&&u.status==="ready"?"blocked":u.status}function Xr(u,s="just now"){if(u<0)return s;const c=Math.floor(u/6e4);if(c<1)return s;const r=Math.floor(c/60),f=c%60;return r===0?`${f}m`:f===0?`${r}h`:`${r}h ${f}m`}const Hm=[{key:"backlog",label:"Backlog",color:"#6b7280"},{key:"ready",label:"Ready",color:"#3b82f6"},{key:"in_progress",label:"In Progress",color:"#f59e0b"},{key:"blocked",label:"Blocked",color:"#ef4444"},{key:"done",label:"Done",color:"#22c55e"}],Z0=Object.fromEntries(Hm.map(u=>[u.key,u.color]));function Qr(u,s){return s==="root"?"#f59e0b":s==="project"?"#e5e5e5":Z0[u??""]??"#6b7280"}const Yi=["backlog","ready","in_progress","blocked","done"],Ir={backlog:"Backlog",ready:"Ready",in_progress:"In Progress",blocked:"Blocked",done:"Done"};function Bm(u){const s={backlog:[],ready:[],in_progress:[],blocked:[],done:[]};for(const c of u){const r=Gr(c);s[r]&&s[r].push(c)}return s}const cm=[{id:"kanban",label:"Kanban",icon:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("rect",{x:"1",y:"1",width:"4",height:"14",rx:"1",opacity:"0.9"}),d.jsx("rect",{x:"6",y:"1",width:"4",height:"10",rx:"1",opacity:"0.7"}),d.jsx("rect",{x:"11",y:"1",width:"4",height:"6",rx:"1",opacity:"0.5"})]})},{id:"agents",label:"Agents",icon:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("circle",{cx:"5.5",cy:"4",r:"2.5"}),d.jsx("circle",{cx:"10.5",cy:"4",r:"2.5"}),d.jsx("path",{d:"M0 13c0-2.5 2.5-4 5.5-4s5.5 1.5 5.5 4",opacity:"0.7"}),d.jsx("path",{d:"M5 13c0-2.5 2.5-4 5.5-4s5.5 1.5 5.5 4",opacity:"0.7"})]})},{id:"graph",label:"Graph",icon:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("circle",{cx:"4",cy:"4",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"4",r:"2.5"}),d.jsx("circle",{cx:"8",cy:"12",r:"2.5"}),d.jsx("line",{x1:"5.5",y1:"5.5",x2:"7",y2:"10",stroke:"currentColor",strokeWidth:"1.5"}),d.jsx("line",{x1:"10.5",y1:"5.5",x2:"9",y2:"10",stroke:"currentColor",strokeWidth:"1.5"})]})},{id:"calendar",label:"Calendar",icon:d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:d.jsx("path",{d:"M4 0a1 1 0 0 1 1 1v1h6V1a1 1 0 1 1 2 0v1h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h1V1a1 1 0 0 1 1-1zM1 6v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6H1z"})})}];function V0({view:u,onViewChange:s,collapsed:c,onToggleCollapse:r}){return d.jsxs(d.Fragment,{children:[d.jsxs("nav",{className:`nav-rail${c?" collapsed":""}`,children:[d.jsxs("div",{className:"nav-rail-top",children:[d.jsx("div",{className:"nav-rail-logo",children:c?d.jsx("span",{className:"logo-mark",children:"H"}):d.jsx("span",{className:"logo-full",children:"HZL"})}),d.jsx("div",{className:"nav-rail-items",children:cm.map(f=>d.jsxs("button",{className:`nav-rail-item${u===f.id?" active":""}`,onClick:()=>s(f.id),title:c?f.label:void 0,children:[d.jsx("span",{className:"nav-rail-icon",children:f.icon}),!c&&d.jsx("span",{className:"nav-rail-label",children:f.label})]},f.id))})]}),d.jsx("button",{className:"nav-rail-toggle",onClick:r,title:c?"Expand sidebar":"Collapse sidebar",children:d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:c?"chevron-right":"chevron-left",children:d.jsx("polyline",{points:c?"5 2 10 7 5 12":"9 2 4 7 9 12"})})})]}),d.jsx("nav",{className:"nav-bottom-bar",children:cm.map(f=>d.jsxs("button",{className:`nav-bottom-item${u===f.id?" active":""}`,onClick:()=>s(f.id),children:[d.jsx("span",{className:"nav-bottom-icon",children:f.icon}),d.jsx("span",{className:"nav-bottom-label",children:f.label})]},f.id))})]})}function K0({since:u,onSinceChange:s,projects:c,project:r,onProjectChange:f,assignees:g,assignee:y,onAssigneeChange:p,tags:T,tag:m,onTagChange:S,searchQuery:E,onSearchChange:O,searchMatchCount:R,showDateFilter:Q,mobileFiltersOpen:$,view:ie,columnVisibility:ye,onColumnVisibilityChange:pe,showSubtasks:oe,onShowSubtasksChange:I,parentCount:fe,collapsedCount:ne,onCollapseAll:Z,onExpandAll:X,onShowShortcuts:be}){const Ce=z.useRef(null),he=z.useRef(null),U=z.useRef(null),[H,ue]=z.useState(!1),[Se,M]=z.useState(!1),Y=z.useCallback(C=>{he.current&&!he.current.contains(C.target)&&ue(!1),U.current&&!U.current.contains(C.target)&&M(!1)},[]);z.useEffect(()=>{if(H||Se)return document.addEventListener("click",Y),()=>document.removeEventListener("click",Y)},[H,Se,Y]);const ee=E.length>0,_e=R===1?"task":"tasks",xe=fe===0?"No parent tasks":oe?`${ne}/${fe} collapsed`:'Enable "Show subtasks" to expand by parent',b=[r!=="",y!=="",m!==""].filter(Boolean).length,L=d.jsxs(d.Fragment,{children:[Q&&d.jsx("div",{className:"filter-group",children:d.jsxs("select",{id:"dateFilter",value:u,onChange:C=>s(C.target.value),children:[d.jsx("option",{value:"1d",children:"Today"}),d.jsx("option",{value:"3d",children:"Last 3 days"}),d.jsx("option",{value:"7d",children:"Last 7 days"}),d.jsx("option",{value:"14d",children:"Last 14 days"}),d.jsx("option",{value:"30d",children:"Last 30 days"})]})}),d.jsx("div",{className:"filter-group",children:d.jsxs("select",{id:"projectFilter",value:r,onChange:C=>f(C.target.value),children:[d.jsx("option",{value:"",children:"All projects"}),c.map(C=>d.jsx("option",{value:C,children:C},C))]})}),d.jsx("div",{className:"filter-group",children:d.jsxs("select",{id:"assigneeFilter",value:y,onChange:C=>p(C.target.value),children:[d.jsx("option",{value:"",children:"Any Agent"}),g.map(C=>d.jsxs("option",{value:C.name,children:[C.name," (",C.count,")"]},C.name))]})}),d.jsx("div",{className:"filter-group",children:d.jsxs("select",{id:"tagFilter",value:m,onChange:C=>S(C.target.value),children:[d.jsx("option",{value:"",children:"All tags"}),T.map(C=>d.jsxs("option",{value:C.name,children:[C.name," (",C.count,")"]},C.name))]})})]});return ie==="agents"?d.jsx("div",{className:"header-filters"}):d.jsxs("div",{className:`header-filters${$?" open":""}`,children:[d.jsx("div",{className:"filters-inline",children:L}),d.jsxs("div",{className:"filters-collapsed",ref:U,children:[d.jsxs("button",{className:`filter-toggle${b>0?" has-active":""}`,onClick:C=>{C.stopPropagation(),M(!Se)},title:"Filters",children:[d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:d.jsx("path",{d:"M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .376.832l-4.568 5.26a.5.5 0 0 0-.124.332V13a.5.5 0 0 1-.252.434l-2 1.143A.5.5 0 0 1 6.684 14V7.424a.5.5 0 0 0-.124-.332L2.124 1.832A.5.5 0 0 1 2.5 1h11"})}),b>0&&d.jsx("span",{className:"filter-badge",children:b})]}),Se&&d.jsx("div",{className:"filter-popover open",onClick:C=>C.stopPropagation(),children:d.jsx("div",{className:"filter-popover-content",children:L})})]}),d.jsxs("div",{className:`filter-group task-search-group${ee?" active":""}`,children:[d.jsx("input",{ref:Ce,type:"search",id:"taskSearchInput",className:"task-search-input",placeholder:"Find task (/)","aria-label":"Search tasks",value:E,onChange:C=>O(C.target.value)}),ee&&d.jsx("button",{type:"button",className:"task-search-clear",onClick:()=>{var C;O(""),(C=Ce.current)==null||C.focus()},children:"×"}),d.jsx("span",{className:"task-search-meta",children:ee?`${R} ${_e}`:""})]}),d.jsxs("div",{className:"filter-group settings-group",ref:he,children:[d.jsx("button",{className:"settings-toggle",onClick:C=>{C.stopPropagation(),ue(!H)},title:"Settings",children:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),d.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})}),H&&d.jsxs("div",{className:"settings-dropdown open",onClick:C=>C.stopPropagation(),children:[d.jsxs("div",{className:"settings-section",children:[d.jsx("label",{className:"settings-label",children:"Columns"}),d.jsx("div",{className:"column-checkboxes",children:Yi.map(C=>d.jsxs("label",{className:"column-checkbox",children:[d.jsx("input",{type:"checkbox",checked:ye.includes(C),onChange:()=>{const V=ye.includes(C)?ye.filter(J=>J!==C):[...ye,C];pe(V)}}),Ir[C]]},C))})]}),d.jsx("div",{className:"settings-section",children:d.jsxs("label",{className:"column-checkbox",children:[d.jsx("input",{type:"checkbox",checked:oe,onChange:C=>I(C.target.checked)}),"Show subtasks"]})}),d.jsxs("div",{className:"settings-section",children:[d.jsx("label",{className:"settings-label",children:"Parent View"}),d.jsxs("div",{className:"collapse-parents-actions",children:[d.jsx("button",{type:"button",className:"collapse-parents-btn",disabled:!oe||fe===0||ne===fe,onClick:Z,children:"Collapse all"}),d.jsx("button",{type:"button",className:"collapse-parents-btn",disabled:!oe||ne===0,onClick:X,children:"Expand all"})]}),d.jsx("div",{className:"collapse-parents-meta",children:xe})]}),d.jsx("div",{className:"settings-section",children:d.jsx("button",{type:"button",className:"settings-shortcuts-btn",onClick:be,children:"Shortcuts (?)"})})]})]})]})}const rm=["#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"];function qm(u){let s=0;for(let c=0;c<u.length;c++)s=(s<<5)-s+u.charCodeAt(c)|0;return rm[Math.abs(s)%rm.length]}function Ym({task:u,emojiInfo:s,showSubtasks:c,isCollapsed:r,onToggleCollapse:f,onClick:g}){const y=(u.subtask_total??0)>0,p=y?{"--family-color":q0(u.task_id)}:void 0,T=za(u.assignee),m=T.length>0,S=m?T:"Unassigned",E=X0(S,10),O=u.subtask_count??0,R=u.subtask_total??O;return d.jsxs("div",{className:`card${y?" card-parent":""}${u.stale?" card-stale":""}`,style:p,onClick:()=>g(u.task_id),children:[d.jsxs("div",{className:"card-header",children:[d.jsxs("div",{className:"card-header-left",children:[s&&d.jsx("span",{className:"card-emoji",children:s.suffix?`${s.emoji}-${s.suffix}`:s.emoji}),d.jsx("span",{className:"card-id",children:u.task_id.slice(0,8)})]}),d.jsx("span",{className:"card-project",title:u.project,children:u.project})]}),u.progress!=null&&u.progress>0&&d.jsxs("div",{className:"card-progress-row",children:[d.jsx("div",{className:"card-progress-track",children:d.jsx("div",{className:`card-progress-fill${u.progress>=100?" complete":""}`,style:{width:`${Math.min(u.progress,100)}%`}})}),d.jsxs("span",{className:`card-progress-label${u.progress>=100?" complete":""}`,children:[u.progress,"%"]})]}),d.jsx("div",{className:"card-title",children:u.title}),u.tags&&u.tags.length>0&&d.jsxs("div",{className:"card-tags",children:[u.tags.slice(0,3).map(Q=>d.jsx("span",{className:"card-tag",style:{"--tag-color":qm(Q)},children:Q},Q)),u.tags.length>3&&d.jsxs("span",{className:"card-tag-overflow",children:["+",u.tags.length-3]})]}),R>0&&(c?d.jsxs("button",{type:"button",className:"card-subtask-toggle",onClick:Q=>{Q.preventDefault(),Q.stopPropagation(),f(u.task_id)},"aria-expanded":!r,title:r?"Expand subtasks":"Collapse subtasks",children:[r?"▶":"▼"," ","[",O===R?`${O} ${R===1?"subtask":"subtasks"}`:`${O}/${R} ${R===1?"subtask":"subtasks"}`,"]"]}):d.jsxs("div",{className:"card-subtask-count",children:["[",O===R?`${O} ${R===1?"subtask":"subtasks"}`:`${O}/${R} ${R===1?"subtask":"subtasks"}`,"]"]})),m&&d.jsx("div",{className:"card-meta",children:d.jsx("span",{className:"card-assignee assigned",title:S,children:E})})]})}function $0({status:u,tasks:s,emojiMap:c,showSubtasks:r,collapsedParents:f,onToggleCollapse:g,onCardClick:y,emptyMessage:p}){return d.jsxs("div",{className:"column","data-status":u,children:[d.jsxs("div",{className:"column-header",children:[d.jsx("span",{className:"column-title",children:Ir[u]||u}),d.jsx("span",{className:"column-count",children:s.length})]}),d.jsx("div",{className:"column-cards",children:s.length===0?d.jsx("div",{className:"empty-column",children:p}):s.map(T=>d.jsx(Ym,{task:T,emojiInfo:c.get(T.task_id),showSubtasks:r,isCollapsed:f.has(T.task_id),onToggleCollapse:g,onClick:y},T.task_id))})]})}function J0({tasks:u,emojiMap:s,showSubtasks:c,collapsedParents:r,columnVisibility:f,searchQuery:g,onToggleCollapse:y,onCardClick:p}){const T=Bm(u),m=g?"No matching tasks":"No tasks";return d.jsx("main",{className:"board",children:Yi.filter(S=>f.includes(S)).map(S=>d.jsx($0,{status:S,tasks:T[S]||[],emojiMap:s,showSubtasks:c,collapsedParents:r,onToggleCollapse:y,onCardClick:p,emptyMessage:m},S))})}const om=3;function fm({task:u,onClick:s}){return d.jsxs("div",{className:"calendar-mini-card","data-status":u.status,onClick:c=>{c.stopPropagation(),s(u.task_id)},children:[d.jsx("span",{className:"calendar-mini-title",children:u.title}),d.jsx("span",{className:"calendar-mini-project",children:u.project})]})}function F0({tasks:u,year:s,month:c,onNavigate:r,onTaskClick:f}){const[g,y]=z.useState(null),p=z.useMemo(()=>{const X={};for(const be of u){if(!be.due_at)continue;const Ce=new Date(be.due_at);if(Ce.getFullYear()!==s||Ce.getMonth()!==c)continue;const he=Ce.getDate();X[he]||(X[he]=[]),X[he].push(be)}return X},[u,s,c]),T=new Date(s,c,1).toLocaleDateString(void 0,{month:"long",year:"numeric"}),m=new Date(s,c,1).getDay(),S=new Date(s,c+1,0).getDate(),E=new Date(s,c,0).getDate(),R=(7-(m+S)%7)%7,Q=new Date,$=s===Q.getFullYear()&&c===Q.getMonth(),ie=Q.getDate(),ye=Object.values(p).reduce((X,be)=>X+be.length,0),pe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],oe=z.useCallback(()=>{let X=c-1,be=s;X<0&&(X=11,be--),r(be,X)},[c,s,r]),I=z.useCallback(()=>{let X=c+1,be=s;X>11&&(X=0,be++),r(be,X)},[c,s,r]),fe=z.useCallback(()=>{const X=new Date;r(X.getFullYear(),X.getMonth())},[r]),ne=[];for(let X=m-1;X>=0;X--)ne.push(E-X);const Z=[];for(let X=1;X<=R;X++)Z.push(X);return d.jsxs("div",{className:"calendar-container",children:[d.jsxs("div",{className:"calendar-header",children:[d.jsx("button",{className:"calendar-nav-btn",onClick:oe,children:"←"}),d.jsx("div",{className:"calendar-month-label",children:T}),d.jsx("button",{className:"calendar-nav-btn",onClick:I,children:"→"}),d.jsx("button",{className:"calendar-nav-btn",onClick:fe,children:"Today"})]}),ye===0&&d.jsxs("div",{className:"calendar-empty-state",children:["No tasks with due dates in ",T]}),d.jsxs("div",{className:"calendar-grid",children:[pe.map(X=>d.jsx("div",{className:"calendar-day-header",children:X},X)),ne.map(X=>d.jsx("div",{className:"calendar-day other-month",children:d.jsx("span",{className:"calendar-day-number",children:X})},`prev-${X}`)),Array.from({length:S},(X,be)=>be+1).map(X=>{const be=$&&X===ie,Ce=p[X]||[],he=Ce.slice(0,om),U=Ce.length-om;return d.jsxs("div",{className:`calendar-day${be?" today":""}`,style:{position:"relative"},children:[d.jsx("span",{className:"calendar-day-number",children:X}),d.jsxs("div",{className:"calendar-day-tasks",children:[he.map(H=>d.jsx(fm,{task:H,onClick:f},H.task_id)),U>0&&d.jsxs("div",{className:"calendar-more-link",onClick:H=>{H.stopPropagation(),y(g===X?null:X)},children:["+",U," more"]})]}),g===X&&d.jsxs("div",{className:"calendar-popover",children:[d.jsx("div",{className:"calendar-popover-header",children:new Date(s,c,X).toLocaleDateString(void 0,{month:"long",day:"numeric"})}),Ce.map(H=>d.jsx(fm,{task:H,onClick:ue=>{y(null),f(ue)}},H.task_id))]})]},X)}),Z.map(X=>d.jsx("div",{className:"calendar-day other-month",children:d.jsx("span",{className:"calendar-day-number",children:X})},`next-${X}`))]})]})}const W0="modulepreload",I0=function(u){return"/"+u},dm={},hm=function(s,c,r){let f=Promise.resolve();if(c&&c.length>0){let y=function(m){return Promise.all(m.map(S=>Promise.resolve(S).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),T=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));f=y(c.map(m=>{if(m=I0(m),m in dm)return;dm[m]=!0;const S=m.endsWith(".css"),E=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${E}`))return;const O=document.createElement("link");if(O.rel=S?"stylesheet":W0,S||(O.as="script"),O.crossOrigin="",O.href=m,T&&O.setAttribute("nonce",T),document.head.appendChild(O),S)return new Promise((R,Q)=>{O.addEventListener("load",R),O.addEventListener("error",()=>Q(new Error(`Unable to preload CSS for ${m}`)))})}))}function g(y){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=y,window.dispatchEvent(p),!p.defaultPrevented)throw y}return f.then(y=>{for(const p of y||[])p.status==="rejected"&&g(p.reason);return s().catch(g)})};function mm(u){return typeof u=="object"?u.id:u}function is(u){return typeof u=="object"?u:null}function Bi(u){return u.type==="root"?20:u.type==="project"?14:10}function Gm(u){const s=parseInt(u.replace("#",""),16);return[s>>16&255,s>>8&255,s&255]}function P0(u){const s=u.trim().split(/[\s_-]+/);return s.length>=2?(s[0][0]+s[1][0]).toUpperCase():u.slice(0,2).toUpperCase()}function pm(u){const s=[{id:"root",type:"root",name:"HZL",ring:0,angle:0}],c=[],r=new Map,f=[],g=new Map;for(const p of u)p.project&&!g.has(p.project)&&(f.push(p.project),g.set(p.project,0));f.forEach((p,T)=>{g.set(p,2*Math.PI*T/f.length)});const y=new Set;for(const p of u){if(!p.project||!p.task_id)continue;const T=g.get(p.project)??0,m=`project:${p.project}`;y.has(p.project)||(y.add(p.project),s.push({id:m,type:"project",name:p.project,ring:1,angle:T}),c.push({source:m,target:"root",type:"hierarchy"}),r.set(m,"root"));const S=p.parent_id?3:2,E=(Math.random()-.5)*.3;s.push({id:p.task_id,type:p.parent_id?"subtask":"task",name:p.title,status:p.status,progress:p.progress??0,assignee:p.assignee,ring:S,angle:T+E});const O=p.parent_id||m;if(c.push({source:p.task_id,target:O,type:"hierarchy"}),r.set(p.task_id,O),p.blocked_by)for(const R of p.blocked_by)c.push({source:R,target:p.task_id,type:"dependency"})}for(const p of s){const T=Qr(p.status,p.type),m=Gm(T);p._size=Bi(p),p._rgb=m,(p.type==="task"||p.type==="subtask")&&p.assignee&&(p._initials=P0(p.assignee),p._brightness=(m[0]*299+m[1]*587+m[2]*114)/1e3)}return{nodes:s,links:c,parentMap:r}}function ey(u,s,c){const r=new Set;if(u.size===0)return r;for(const f of s){if(f.type==="root"||f.type==="project"||!u.has(f.status??""))continue;let g=f.id;for(;g&&!r.has(g);)r.add(g),g=c.get(g)}return r.add("root"),r}function ty({tasks:u,onTaskClick:s}){const c=z.useRef(null),r=z.useRef(null),f=z.useRef(!0),[g,y]=z.useState(!1),[p,T]=z.useState(new Set),m=z.useRef(null),S=z.useRef(new Map),E=z.useRef([]),O=z.useRef(new Set),R=z.useRef(u),Q=z.useRef(s);R.current=u,Q.current=s;const $=z.useMemo(()=>ey(p,E.current,S.current),[p,u]);O.current=$;const ie=z.useCallback(I=>{T(fe=>{const ne=new Set(fe);return ne.has(I)?ne.delete(I):ne.add(I),ne})},[]),ye=z.useCallback(()=>{if(!r.current)return;const I=r.current.zoom();r.current.zoom(I*1.4,300)},[]),pe=z.useCallback(()=>{if(!r.current)return;const I=r.current.zoom();r.current.zoom(I/1.4,300)},[]),oe=z.useCallback(()=>{var I;(I=r.current)==null||I.zoomToFit(400,60)},[]);return z.useEffect(()=>{f.current=!0;let I;return(async()=>{var he;if(!c.current)return;let fe,ne;try{fe=(await hm(()=>import("./force-graph-B5HrL0HG.js"),__vite__mapDeps([0,1]))).default,ne=await hm(()=>import("./index-CgGSX2ei.js"),__vite__mapDeps([2,1]))}catch{return}if(!f.current||!c.current)return;const Z={0:0,1:180,2:360,3:540},X=window.innerWidth<768?.6:1,be=pm(R.current);S.current=be.parentMap,E.current=be.nodes;for(const U of be.nodes){const H=(Z[U.ring]??300)*X;U.x=Math.cos(U.angle||0)*H,U.y=Math.sin(U.angle||0)*H}const Ce=fe()(c.current).graphData(be).backgroundColor("#1a1a1a").nodeLabel(()=>"").nodeColor(U=>Qr(U.status,U.type)).nodeVal(U=>Bi(U)).linkCurvature(U=>U.type==="dependency"?0:.15).linkColor(U=>{const H=O.current;return H.size>0&&(!H.has(mm(U.source))||!H.has(mm(U.target)))?"rgba(80, 80, 80, 0.08)":U.type==="dependency"?"#e57373":"rgba(140, 140, 140, 0.35)"}).linkWidth(U=>U.type==="dependency"?1.5:1).linkLabel(()=>"").linkDirectionalArrowLength(U=>U.type==="dependency"?5:0).linkDirectionalArrowRelPos(1).linkDirectionalArrowColor(U=>U.type==="dependency"?"#e57373":void 0).onNodeHover(U=>{m.current=(U==null?void 0:U.id)??null,c.current&&(c.current.style.cursor=U&&U.type!=="root"&&U.type!=="project"?"pointer":"default")}).onNodeClick(U=>{U.type!=="root"&&U.type!=="project"&&Q.current(U.id)}).d3Force("x",ne.forceX(U=>{const H=(Z[U.ring]??300)*X;return Math.cos(U.angle||0)*H}).strength(.08)).d3Force("y",ne.forceY(U=>{const H=(Z[U.ring]??300)*X;return Math.sin(U.angle||0)*H}).strength(.08)).d3Force("collision",ne.forceCollide(U=>Bi(U)+30)).d3Force("charge",ne.forceManyBody().strength(-300)).d3Force("link",ne.forceLink().distance(U=>{const H=is(U.source),ue=is(U.target);return(H==null?void 0:H.type)==="root"||(ue==null?void 0:ue.type)==="root"?220:(H==null?void 0:H.type)==="project"||(ue==null?void 0:ue.type)==="project"?140:U.type==="dependency"?160:50}).strength(U=>{const H=is(U.source),ue=is(U.target);return(H==null?void 0:H.type)==="root"||(ue==null?void 0:ue.type)==="root"?.1:U.type==="dependency"?.05:.3})).linkDirectionalParticles(U=>U.type==="dependency"?2:0).linkDirectionalParticleWidth(2).linkDirectionalParticleSpeed(.004).linkDirectionalParticleColor(()=>"#e57373").nodeCanvasObject((U,H,ue)=>{const Se=U.x,M=U.y,Y=U._size??Bi(U),[ee,_e,xe]=U._rgb??Gm(Qr(U.status,U.type)),b=m.current===U.id,L=O.current,C=L.size>0,V=!C||L.has(U.id),J=C&&V&&(U.type==="root"||U.type==="project"),ce=C&&!V;if((ce||J)&&(H.beginPath(),H.arc(Se,M,Y+2,0,2*Math.PI),H.fillStyle="#1a1a1a",H.fill()),ce?H.globalAlpha=.1:J&&(H.globalAlpha=.45),U.type==="root"){const ht=Math.sin(Date.now()/600)*.25+.75;H.beginPath(),H.arc(Se,M,28*ht,0,2*Math.PI),H.fillStyle=`rgba(${ee}, ${_e}, ${xe}, ${.12*ht})`,H.fill()}b&&(H.beginPath(),H.arc(Se,M,Y+6,0,2*Math.PI),H.fillStyle=`rgba(${ee}, ${_e}, ${xe}, 0.25)`,H.fill());const me=H.createRadialGradient(Se-Y*.3,M-Y*.3,Y*.1,Se,M,Y),Ge=(ht,Oe)=>Math.min(255,ht+Oe);me.addColorStop(0,`rgb(${Ge(ee,50)}, ${Ge(_e,50)}, ${Ge(xe,50)})`),me.addColorStop(1,`rgb(${Math.max(0,ee-20)}, ${Math.max(0,_e-20)}, ${Math.max(0,xe-20)})`),H.beginPath(),H.arc(Se,M,Y,0,2*Math.PI),H.fillStyle=me,H.fill(),H.strokeStyle=b?"rgba(255, 255, 255, 0.5)":"#505050",H.lineWidth=b?1.5/ue:1/ue,H.stroke();const De=U.progress??0;if((U.type==="task"||U.type==="subtask")&&De>0){const ht=Y+3/ue,Oe=-Math.PI/2,vt=Oe+De/100*2*Math.PI;H.beginPath(),H.arc(Se,M,ht,0,2*Math.PI),H.strokeStyle="rgba(255, 255, 255, 0.08)",H.lineWidth=2/ue,H.stroke(),H.beginPath(),H.arc(Se,M,ht,Oe,vt),H.strokeStyle="rgba(255, 255, 255, 0.55)",H.lineWidth=2/ue,H.lineCap="round",H.stroke(),H.lineCap="butt"}if(U.type==="root"&&(H.font=`bold ${10/ue}px ui-monospace, monospace`,H.fillStyle="#1a1a1a",H.textAlign="center",H.textBaseline="middle",H.fillText("HZL",Se,M+.5)),U.type==="project"&&ue>.4&&(H.font=`500 ${10/ue}px ui-monospace, monospace`,H.fillStyle="#b0b0b0",H.textAlign="center",H.textBaseline="top",H.fillText(U.name,Se,M+Y+6/ue)),(U.type==="task"||U.type==="subtask")&&(b||ue>1.8)){const Oe=U.name.length>24?U.name.slice(0,23)+"…":U.name,vt=9/ue;H.font=`${vt}px ui-monospace, monospace`,H.textAlign="center",H.textBaseline="top";const it=H.measureText(Oe).width,bt=4/ue,Ot=2/ue,pl=M+Y+5/ue;H.fillStyle="rgba(26, 26, 26, 0.9)",H.beginPath();const kt=3/ue,Pt=Se-it/2-bt,el=pl-Ot,Xt=it+bt*2,wl=vt+Ot*2;H.roundRect(Pt,el,Xt,wl,kt),H.fill(),H.fillStyle=b?"#e5e5e5":"#a3a3a3",H.fillText(Oe,Se,pl)}U._initials&&(H.font=`bold ${Y*.9}px ui-monospace, monospace`,H.fillStyle=(U._brightness??0)>140?"rgba(0, 0, 0, 0.6)":"rgba(255, 255, 255, 0.7)",H.textAlign="center",H.textBaseline="middle",H.fillText(U._initials,Se,M+.5)),H.globalAlpha=1}).nodePointerAreaPaint((U,H,ue)=>{const Se=Bi(U);ue.beginPath(),ue.arc(U.x,U.y,Se+4,0,2*Math.PI),ue.fillStyle=H,ue.fill()});if(!f.current){(he=Ce._destructor)==null||he.call(Ce);return}r.current=Ce,y(!0),I=setTimeout(()=>{r.current&&f.current&&r.current.zoomToFit(400,60)},500)})(),()=>{var fe,ne;f.current=!1,clearTimeout(I),r.current&&((ne=(fe=r.current)._destructor)==null||ne.call(fe),r.current=null)}},[]),z.useEffect(()=>{if(!r.current)return;const I=r.current.graphData(),fe=new Map;for(const Z of I.nodes)Z.x!==void 0&&Z.y!==void 0&&fe.set(Z.id,{x:Z.x,y:Z.y,vx:Z.vx,vy:Z.vy});const ne=pm(u);S.current=ne.parentMap,E.current=ne.nodes;for(const Z of ne.nodes){const X=fe.get(Z.id);X&&(Z.x=X.x,Z.y=X.y,Z.vx=X.vx,Z.vy=X.vy)}r.current.graphData(ne)},[u]),z.useEffect(()=>{r.current&&r.current.linkColor(r.current.linkColor())},[p]),d.jsxs("div",{className:"graph-wrapper",children:[d.jsx("div",{className:"graph-container",ref:c}),!g&&d.jsxs("div",{className:"graph-loading",children:[d.jsx("div",{className:"spinner"}),d.jsx("span",{children:"Loading graph..."})]}),g&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"graph-legend",children:Hm.map(({key:I,label:fe,color:ne})=>{const Z=p.has(I),X=p.size>0;return d.jsxs("button",{className:`graph-legend-item${Z?" active":""}${X&&!Z?" dimmed":""}`,onClick:()=>ie(I),title:`${Z?"Hide":"Show"} ${fe} tasks`,children:[d.jsx("span",{className:"graph-legend-dot",style:{background:ne}}),fe]},I)})}),d.jsxs("div",{className:"graph-controls",children:[d.jsx("button",{className:"graph-control-btn",onClick:ye,title:"Zoom in",children:"+"}),d.jsx("button",{className:"graph-control-btn",onClick:pe,title:"Zoom out",children:"−"}),d.jsx("button",{className:"graph-control-btn",onClick:oe,title:"Fit all",children:d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[d.jsx("rect",{x:"1",y:"1",width:"12",height:"12",rx:"1.5"}),d.jsx("path",{d:"M4 7h6M7 4v6"})]})})]})]})]})}function ly(u={}){const{since:s,project:c}=u,[r,f]=z.useState([]),[g,y]=z.useState(!0),[p,T]=z.useState(null),m=z.useCallback(()=>{const S={};s&&(S.since=s),c&&(S.project=c),y(!0),Ul("/api/agents",S).then(E=>{f(E.agents),T(null)}).catch(E=>{T(E.message)}).finally(()=>{y(!1)})},[s,c]);return z.useEffect(()=>{m()},[m]),{agents:r,loading:g,error:p,refresh:m}}const gm=50;function ay(u){const[s,c]=z.useState(null),[r,f]=z.useState(0),[g,y]=z.useState(!1),[p,T]=z.useState(null),m=z.useRef(0),S=z.useCallback((R,Q)=>{if(!u)return;const $={limit:String(gm),offset:String(R)};y(!0),Ul(`/api/agents/${encodeURIComponent(u)}/events`,$).then(ie=>{c(Q?ye=>ye?[...ye,...ie.events]:ie.events:ie.events),f(ie.total),T(null)}).catch(ie=>{T(ie.message)}).finally(()=>{y(!1)})},[u]);z.useEffect(()=>{if(!u){c(null),f(0),T(null),m.current=0;return}m.current=0,S(0,!1)},[u,S]);const E=z.useCallback(()=>{if(!u||g)return;const R=m.current+gm;m.current=R,S(R,!0)},[u,g,S]),O=z.useCallback(()=>{u&&(m.current=0,S(0,!1))},[u,S]);return{events:s,total:r,loading:g,error:p,loadMore:E,refresh:O}}function ym(u){if(!u)return Date.now();const s=Date.parse(u);return isNaN(s)?Date.now():s}function ny({agents:u,selectedAgent:s,onSelectAgent:c}){const[r,f]=z.useState(-1),g=z.useRef(null),y=z.useRef([]);z.useEffect(()=>{y.current=y.current.slice(0,u.length)},[u.length]),z.useEffect(()=>{var S;r>=0&&r<u.length&&((S=y.current[r])==null||S.scrollIntoView({block:"nearest"}))},[r,u.length]);const p=z.useCallback(S=>{if(u.length!==0)switch(S.key){case"ArrowDown":{S.preventDefault(),f(E=>E<0?0:(E+1)%u.length);break}case"ArrowUp":{S.preventDefault(),f(E=>E<=0?u.length-1:E-1);break}case"Home":{S.preventDefault(),f(0);break}case"End":{S.preventDefault(),f(u.length-1);break}case"Enter":{S.preventDefault(),r>=0&&r<u.length&&c(u[r].agent);break}}},[u,r,c]),T=z.useCallback(()=>{if(r<0&&u.length>0){const S=u.findIndex(E=>E.agent===s);f(S>=0?S:0)}},[r,u.length,s]),m=z.useCallback(S=>{S.currentTarget.contains(S.relatedTarget)||f(-1)},[]);return u.length===0?d.jsx("div",{className:"agent-roster-empty",children:"No agents found"}):d.jsx("div",{className:"agent-roster",role:"listbox","aria-label":"Agent roster",tabIndex:0,ref:g,onKeyDown:p,onFocus:T,onBlur:m,children:u.map((S,E)=>{const O=s===S.agent,R=r===E,Q=Date.now();return d.jsxs("div",{role:"option","aria-selected":O,ref:$=>{y.current[E]=$},className:`agent-roster-row${O?" selected":""}${R?" focused":""}`,onClick:()=>{f(E),c(S.agent)},children:[d.jsx("span",{className:"agent-roster-dot",style:{background:S.isActive?"var(--status-in-progress)":"var(--status-backlog)"}}),d.jsxs("div",{className:"agent-roster-info",children:[d.jsx("span",{className:"agent-roster-id",children:S.agent}),S.isActive&&S.tasks.length>0?d.jsxs("span",{className:"agent-roster-task",children:[d.jsxs("span",{className:`agent-roster-task-title${S.tasks[0].stale?" stale":""}`,children:[S.tasks[0].stale&&d.jsx("span",{className:"agent-roster-stale-dot"}),S.tasks[0].title]}),S.tasks.length>1&&d.jsxs("span",{className:"agent-roster-more",children:["(+",S.tasks.length-1," more)"]})]}):d.jsxs("span",{className:"agent-roster-idle",children:["idle since ",Xr(Q-ym(S.lastActivity))]})]}),d.jsx("span",{className:"agent-roster-duration",children:S.isActive&&S.tasks.length>0?Xr(Q-ym(S.tasks[0].claimedAt)):""})]},S.agent)})})}const iy=new Set(["backlog","ready","in-progress","done","archived"]),uy={task_created:{label:"created",badgeClass:"event-badge-created",description:u=>{const s=typeof u.project=="string"?u.project:null;return s?`created in ${s}`:"task created"}},status_changed:{label:"status",badgeClass:"event-badge-default",description:u=>{const s=typeof u.from=="string"?u.from:null,c=typeof u.to=="string"?u.to:null;return s&&c?`${s} → ${c}`:""}},task_updated:{label:"updated",badgeClass:"event-badge-updated",description:u=>{const s=typeof u.field=="string"?u.field:null,c=u.old_value!=null?String(u.old_value):null,r=u.new_value!=null?String(u.new_value):null;return s&&c!=null&&r!=null?`${s}: ${c} → ${r}`:s?`${s} updated`:"task updated"}},comment_added:{label:"commented",badgeClass:"event-badge-comment",description:u=>{const s=typeof u.text=="string"?u.text:"";return s.length>80?`${s.slice(0,80)}...`:s}},checkpoint_recorded:{label:"checkpoint",badgeClass:"event-badge-checkpoint",description:u=>{const s=typeof u.name=="string"?u.name:null;return s?`checkpoint: ${s}`:"checkpoint recorded"}},task_moved:{label:"moved",badgeClass:"event-badge-moved",description:u=>{const s=typeof u.from_project=="string"?u.from_project:null,c=typeof u.to_project=="string"?u.to_project:null;return s&&c?`${s} → ${c}`:"task moved"}},dependency_added:{label:"dep added",badgeClass:"event-badge-dep",description:u=>{const s=typeof u.depends_on_id=="string"?u.depends_on_id:null;return s?`depends on ${s.slice(0,8)}`:"dependency added"}},dependency_removed:{label:"dep removed",badgeClass:"event-badge-dep",description:u=>{const s=typeof u.depends_on_id=="string"?u.depends_on_id:null;return s?`removed dep on ${s.slice(0,8)}`:"dependency removed"}},task_archived:{label:"archived",badgeClass:"event-badge-archived",description:()=>"task archived"}};function Xm(u){return uy[u]??{label:u.replace(/_/g," "),badgeClass:"event-badge-default",description:()=>""}}function sy(u,s){if(u==="status_changed"){const r=(typeof s.to=="string"?s.to:"").replace(/[^a-zA-Z0-9-]/g,"");return r&&iy.has(r)?`event-badge-${r}`:"event-badge-default"}return Xm(u).badgeClass}function cy({events:u,total:s,onLoadMore:c,loading:r,onTaskClick:f}){if(u===null)return d.jsx("div",{className:"event-timeline-empty",children:"Select an agent to view their event timeline"});if(u.length===0&&!r)return d.jsx("div",{className:"event-timeline-empty",children:"No events found for this agent"});const g=s-u.length;return d.jsxs("div",{className:"event-timeline",children:[d.jsx("div",{className:"event-timeline-list",children:u.map(y=>{const p=Xm(y.type);return d.jsx("div",{className:"event-timeline-row clickable",onClick:()=>f==null?void 0:f(y.taskId),children:d.jsxs("div",{className:"event-timeline-row-main",children:[d.jsx("span",{className:"event-timeline-time",children:Ia(y.timestamp)}),d.jsx("span",{className:`event-timeline-badge ${sy(y.type,y.data)}`,children:p.label}),d.jsx("span",{className:"event-timeline-desc",children:p.description(y.data)}),d.jsx("span",{className:"event-timeline-task-ctx",children:y.taskTitle})]})},y.id)})}),g>0&&d.jsx("button",{className:"event-timeline-load-more",onClick:c,disabled:r,children:r?"Loading...":`Load more (${g} remaining)`})]})}function ry({agent:u,events:s,total:c,onLoadMore:r,loading:f,onTaskClick:g}){if(!u)return d.jsxs("div",{className:"agent-detail-empty",children:[d.jsx("span",{className:"agent-detail-empty-arrow",children:"←"}),d.jsx("span",{children:"Select an agent to view details"})]});const y=u.tasks.length>0?u.tasks[0]:null,p=u.tasks.length;return d.jsxs("div",{className:"agent-detail",children:[d.jsxs("div",{className:"agent-detail-header",children:[d.jsxs("div",{className:"agent-detail-header-top",children:[d.jsx("span",{className:"agent-detail-id",children:u.agent}),d.jsx("span",{className:`agent-detail-status-badge ${u.isActive?"active":"idle"}`,children:u.isActive?"active":"idle"})]}),y&&d.jsxs("div",{className:"agent-detail-current-task",children:[y.title,u.tasks.length>1&&d.jsxs("span",{className:"agent-detail-task-count",children:["+",u.tasks.length-1," more"]})]})]}),d.jsxs("div",{className:"agent-detail-timeline",children:[d.jsx("div",{className:"agent-detail-section-label",children:"Activity"}),d.jsx(cy,{events:s,total:c,onLoadMore:r,loading:f,onTaskClick:g})]}),d.jsxs("div",{className:"agent-detail-metrics",children:[d.jsx("div",{className:"agent-detail-section-label",children:"Metrics"}),d.jsxs("div",{className:"agent-detail-metrics-grid",children:[d.jsxs("div",{className:"agent-detail-metric-card",children:[d.jsx("span",{className:"agent-detail-metric-label",children:"Tasks owned"}),d.jsx("span",{className:"agent-detail-metric-value",children:p})]}),d.jsxs("div",{className:"agent-detail-metric-card",children:[d.jsx("span",{className:"agent-detail-metric-label",children:"Events"}),d.jsx("span",{className:"agent-detail-metric-value",children:c})]})]})]})]})}function oy({selectedAgent:u,onSelectAgent:s,since:c,project:r,refreshKey:f,onAgentCounts:g,onTaskClick:y}){const{agents:p,loading:T,error:m,refresh:S}=ly({since:c,project:r||void 0}),{events:E,total:O,loading:R,loadMore:Q,refresh:$}=ay(u);z.useEffect(()=>{f>0&&(S(),$())},[f]);const[,ie]=z.useState(0);z.useEffect(()=>{const pe=setInterval(()=>ie(oe=>oe+1),6e4);return()=>clearInterval(pe)},[]),z.useEffect(()=>{if(!g)return;const pe=p.filter(oe=>oe.isActive).length;g(pe,p.length-pe)},[p,g]);const ye=z.useMemo(()=>u?p.find(pe=>pe.agent===u)??null:null,[p,u]);return d.jsx("div",{className:"agent-ops",children:d.jsxs("div",{className:"agent-ops-panels",children:[d.jsx("div",{className:"agent-ops-roster",children:m?d.jsxs("div",{className:"agent-ops-placeholder",children:[d.jsx("span",{children:"Failed to load agents"}),d.jsx("span",{className:"agent-ops-placeholder-hint",children:m})]}):T&&p.length===0?d.jsx("div",{className:"agent-ops-placeholder",children:d.jsx("span",{children:"Loading agents..."})}):d.jsx(ny,{agents:p,selectedAgent:u,onSelectAgent:s})}),d.jsx("div",{className:"agent-ops-detail",children:d.jsx(ry,{agent:ye,events:E,total:O,onLoadMore:Q,loading:R,onTaskClick:y})})]})})}function Pr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var en=Pr();function Qm(u){en=u}var Wa={exec:()=>null};function Re(u,s=""){let c=typeof u=="string"?u:u.source,r={replace:(f,g)=>{let y=typeof g=="string"?g:g.source;return y=y.replace(Ct.caret,"$1"),c=c.replace(f,y),r},getRegex:()=>new RegExp(c,s)};return r}var fy=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ct={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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:u=>new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:u=>new RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:u=>new RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:u=>new RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:u=>new RegExp(`^ {0,${Math.min(3,u-1)}}#`),htmlBeginRegex:u=>new RegExp(`^ {0,${Math.min(3,u-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:u=>new RegExp(`^ {0,${Math.min(3,u-1)}}>`)},dy=/^(?:[ \t]*(?:\n|$))+/,hy=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,my=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,py=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,eo=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Zm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vm=Re(Zm).replace(/bull/g,eo).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(),gy=Re(Zm).replace(/bull/g,eo).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(),to=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,yy=/^[^\n]+/,lo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,vy=Re(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",lo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),by=Re(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,eo).getRegex(),ms="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",ao=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Sy=Re("^ {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",ao).replace("tag",ms).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Km=Re(to).replace("hr",Gi).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]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ms).getRegex(),xy=Re(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Km).getRegex(),no={blockquote:xy,code:hy,def:vy,fences:my,heading:py,hr:Gi,html:Sy,lheading:Vm,list:by,newline:dy,paragraph:Km,table:Wa,text:yy},vm=Re("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gi).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",ms).getRegex(),Ty={...no,lheading:gy,table:vm,paragraph:Re(to).replace("hr",Gi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vm).replace("blockquote"," {0,3}>").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",ms).getRegex()},_y={...no,html:Re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ao).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:Wa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Re(to).replace("hr",Gi).replace("heading",` *#{1,6} *[^
51
- ]`).replace("lheading",Vm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ay=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ey=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,$m=/^( {2,}|\\)\n(?!\s*$)/,Ny=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ps=/[\p{P}\p{S}]/u,io=/[\s\p{P}\p{S}]/u,Jm=/[^\s\p{P}\p{S}]/u,ky=Re(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,io).getRegex(),Fm=/(?!~)[\p{P}\p{S}]/u,jy=/(?!~)[\s\p{P}\p{S}]/u,zy=/(?:[^\s\p{P}\p{S}]|~)/u,Wm=/(?![*_])[\p{P}\p{S}]/u,My=/(?![*_])[\s\p{P}\p{S}]/u,Cy=/(?:[^\s\p{P}\p{S}]|[*_])/u,Ry=Re(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",fy?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Im=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Dy=Re(Im,"u").replace(/punct/g,ps).getRegex(),Oy=Re(Im,"u").replace(/punct/g,Fm).getRegex(),Pm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Uy=Re(Pm,"gu").replace(/notPunctSpace/g,Jm).replace(/punctSpace/g,io).replace(/punct/g,ps).getRegex(),wy=Re(Pm,"gu").replace(/notPunctSpace/g,zy).replace(/punctSpace/g,jy).replace(/punct/g,Fm).getRegex(),Ly=Re("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Jm).replace(/punctSpace/g,io).replace(/punct/g,ps).getRegex(),Hy=Re(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Wm).getRegex(),By="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",qy=Re(By,"gu").replace(/notPunctSpace/g,Cy).replace(/punctSpace/g,My).replace(/punct/g,Wm).getRegex(),Yy=Re(/\\(punct)/,"gu").replace(/punct/g,ps).getRegex(),Gy=Re(/^<(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(),Xy=Re(ao).replace("(?:-->|$)","-->").getRegex(),Qy=Re("^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",Xy).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Zy=Re(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ep=Re(/^!?\[(label)\]\[(ref)\]/).replace("label",fs).replace("ref",lo).getRegex(),tp=Re(/^!?\[(ref)\](?:\[\])?/).replace("ref",lo).getRegex(),Vy=Re("reflink|nolink(?!\\()","g").replace("reflink",ep).replace("nolink",tp).getRegex(),bm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,uo={_backpedal:Wa,anyPunctuation:Yy,autolink:Gy,blockSkip:Ry,br:$m,code:Ey,del:Wa,delLDelim:Wa,delRDelim:Wa,emStrongLDelim:Dy,emStrongRDelimAst:Uy,emStrongRDelimUnd:Ly,escape:Ay,link:Zy,nolink:tp,punctuation:ky,reflink:ep,reflinkSearch:Vy,tag:Qy,text:Ny,url:Wa},Ky={...uo,link:Re(/^!?\[(label)\]\((.*?)\)/).replace("label",fs).getRegex(),reflink:Re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fs).getRegex()},Zr={...uo,emStrongRDelimAst:wy,emStrongLDelim:Oy,delLDelim:Hy,delRDelim:qy,url:Re(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",bm).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:Re(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",bm).getRegex()},$y={...Zr,br:Re($m).replace("{2,}","*").getRegex(),text:Re(Zr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},us={normal:no,gfm:Ty,pedantic:_y},Ri={normal:uo,gfm:Zr,breaks:$y,pedantic:Ky},Jy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sm=u=>Jy[u];function Dl(u,s){if(s){if(Ct.escapeTest.test(u))return u.replace(Ct.escapeReplace,Sm)}else if(Ct.escapeTestNoEncode.test(u))return u.replace(Ct.escapeReplaceNoEncode,Sm);return u}function xm(u){try{u=encodeURI(u).replace(Ct.percentDecode,"%")}catch{return null}return u}function Tm(u,s){var g;let c=u.replace(Ct.findPipe,(y,p,T)=>{let m=!1,S=p;for(;--S>=0&&T[S]==="\\";)m=!m;return m?"|":" |"}),r=c.split(Ct.splitPipe),f=0;if(r[0].trim()||r.shift(),r.length>0&&!((g=r.at(-1))!=null&&g.trim())&&r.pop(),s)if(r.length>s)r.splice(s);else for(;r.length<s;)r.push("");for(;f<r.length;f++)r[f]=r[f].trim().replace(Ct.slashPipe,"|");return r}function Di(u,s,c){let r=u.length;if(r===0)return"";let f=0;for(;f<r&&u.charAt(r-f-1)===s;)f++;return u.slice(0,r-f)}function Fy(u,s){if(u.indexOf(s[1])===-1)return-1;let c=0;for(let r=0;r<u.length;r++)if(u[r]==="\\")r++;else if(u[r]===s[0])c++;else if(u[r]===s[1]&&(c--,c<0))return r;return c>0?-2:-1}function Wy(u,s=0){let c=s,r="";for(let f of u)if(f===" "){let g=4-c%4;r+=" ".repeat(g),c+=g}else r+=f,c++;return r}function _m(u,s,c,r,f){let g=s.href,y=s.title||null,p=u[1].replace(f.other.outputLinkReplace,"$1");r.state.inLink=!0;let T={type:u[0].charAt(0)==="!"?"image":"link",raw:c,href:g,title:y,text:p,tokens:r.inlineTokens(p)};return r.state.inLink=!1,T}function Iy(u,s,c){let r=u.match(c.other.indentCodeCompensation);if(r===null)return s;let f=r[1];return s.split(`
52
- `).map(g=>{let y=g.match(c.other.beginningSpace);if(y===null)return g;let[p]=y;return p.length>=f.length?g.slice(f.length):g}).join(`
53
- `)}var ds=class{constructor(u){Ve(this,"options");Ve(this,"rules");Ve(this,"lexer");this.options=u||en}space(u){let s=this.rules.block.newline.exec(u);if(s&&s[0].length>0)return{type:"space",raw:s[0]}}code(u){let s=this.rules.block.code.exec(u);if(s){let c=s[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:s[0],codeBlockStyle:"indented",text:this.options.pedantic?c:Di(c,`
54
- `)}}}fences(u){let s=this.rules.block.fences.exec(u);if(s){let c=s[0],r=Iy(c,s[3]||"",this.rules);return{type:"code",raw:c,lang:s[2]?s[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):s[2],text:r}}}heading(u){let s=this.rules.block.heading.exec(u);if(s){let c=s[2].trim();if(this.rules.other.endingHash.test(c)){let r=Di(c,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(c=r.trim())}return{type:"heading",raw:s[0],depth:s[1].length,text:c,tokens:this.lexer.inline(c)}}}hr(u){let s=this.rules.block.hr.exec(u);if(s)return{type:"hr",raw:Di(s[0],`
55
- `)}}blockquote(u){let s=this.rules.block.blockquote.exec(u);if(s){let c=Di(s[0],`
56
- `).split(`
57
- `),r="",f="",g=[];for(;c.length>0;){let y=!1,p=[],T;for(T=0;T<c.length;T++)if(this.rules.other.blockquoteStart.test(c[T]))p.push(c[T]),y=!0;else if(!y)p.push(c[T]);else break;c=c.slice(T);let m=p.join(`
58
- `),S=m.replace(this.rules.other.blockquoteSetextReplace,`
59
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
60
- ${m}`:m,f=f?`${f}
61
- ${S}`:S;let E=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(S,g,!0),this.lexer.state.top=E,c.length===0)break;let O=g.at(-1);if((O==null?void 0:O.type)==="code")break;if((O==null?void 0:O.type)==="blockquote"){let R=O,Q=R.raw+`
62
- `+c.join(`
63
- `),$=this.blockquote(Q);g[g.length-1]=$,r=r.substring(0,r.length-R.raw.length)+$.raw,f=f.substring(0,f.length-R.text.length)+$.text;break}else if((O==null?void 0:O.type)==="list"){let R=O,Q=R.raw+`
64
- `+c.join(`
65
- `),$=this.list(Q);g[g.length-1]=$,r=r.substring(0,r.length-O.raw.length)+$.raw,f=f.substring(0,f.length-R.raw.length)+$.raw,c=Q.substring(g.at(-1).raw.length).split(`
66
- `);continue}}return{type:"blockquote",raw:r,tokens:g,text:f}}}list(u){var c,r;let s=this.rules.block.list.exec(u);if(s){let f=s[1].trim(),g=f.length>1,y={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");let p=this.rules.other.listItemRegex(f),T=!1;for(;u;){let S=!1,E="",O="";if(!(s=p.exec(u))||this.rules.block.hr.test(u))break;E=s[0],u=u.substring(E.length);let R=Wy(s[2].split(`
67
- `,1)[0],s[1].length),Q=u.split(`
68
- `,1)[0],$=!R.trim(),ie=0;if(this.options.pedantic?(ie=2,O=R.trimStart()):$?ie=s[1].length+1:(ie=R.search(this.rules.other.nonSpaceChar),ie=ie>4?1:ie,O=R.slice(ie),ie+=s[1].length),$&&this.rules.other.blankLine.test(Q)&&(E+=Q+`
69
- `,u=u.substring(Q.length+1),S=!0),!S){let ye=this.rules.other.nextBulletRegex(ie),pe=this.rules.other.hrRegex(ie),oe=this.rules.other.fencesBeginRegex(ie),I=this.rules.other.headingBeginRegex(ie),fe=this.rules.other.htmlBeginRegex(ie),ne=this.rules.other.blockquoteBeginRegex(ie);for(;u;){let Z=u.split(`
70
- `,1)[0],X;if(Q=Z,this.options.pedantic?(Q=Q.replace(this.rules.other.listReplaceNesting," "),X=Q):X=Q.replace(this.rules.other.tabCharGlobal," "),oe.test(Q)||I.test(Q)||fe.test(Q)||ne.test(Q)||ye.test(Q)||pe.test(Q))break;if(X.search(this.rules.other.nonSpaceChar)>=ie||!Q.trim())O+=`
71
- `+X.slice(ie);else{if($||R.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||oe.test(R)||I.test(R)||pe.test(R))break;O+=`
72
- `+Q}$=!Q.trim(),E+=Z+`
73
- `,u=u.substring(Z.length+1),R=X.slice(ie)}}y.loose||(T?y.loose=!0:this.rules.other.doubleBlankLine.test(E)&&(T=!0)),y.items.push({type:"list_item",raw:E,task:!!this.options.gfm&&this.rules.other.listIsTask.test(O),loose:!1,text:O,tokens:[]}),y.raw+=E}let m=y.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;y.raw=y.raw.trimEnd();for(let S of y.items){if(this.lexer.state.top=!1,S.tokens=this.lexer.blockTokens(S.text,[]),S.task){if(S.text=S.text.replace(this.rules.other.listReplaceTask,""),((c=S.tokens[0])==null?void 0:c.type)==="text"||((r=S.tokens[0])==null?void 0:r.type)==="paragraph"){S.tokens[0].raw=S.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),S.tokens[0].text=S.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let O=this.lexer.inlineQueue.length-1;O>=0;O--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[O].src)){this.lexer.inlineQueue[O].src=this.lexer.inlineQueue[O].src.replace(this.rules.other.listReplaceTask,"");break}}let E=this.rules.other.listTaskCheckbox.exec(S.raw);if(E){let O={type:"checkbox",raw:E[0]+" ",checked:E[0]!=="[ ]"};S.checked=O.checked,y.loose?S.tokens[0]&&["paragraph","text"].includes(S.tokens[0].type)&&"tokens"in S.tokens[0]&&S.tokens[0].tokens?(S.tokens[0].raw=O.raw+S.tokens[0].raw,S.tokens[0].text=O.raw+S.tokens[0].text,S.tokens[0].tokens.unshift(O)):S.tokens.unshift({type:"paragraph",raw:O.raw,text:O.raw,tokens:[O]}):S.tokens.unshift(O)}}if(!y.loose){let E=S.tokens.filter(R=>R.type==="space"),O=E.length>0&&E.some(R=>this.rules.other.anyLine.test(R.raw));y.loose=O}}if(y.loose)for(let S of y.items){S.loose=!0;for(let E of S.tokens)E.type==="text"&&(E.type="paragraph")}return y}}html(u){let s=this.rules.block.html.exec(u);if(s)return{type:"html",block:!0,raw:s[0],pre:s[1]==="pre"||s[1]==="script"||s[1]==="style",text:s[0]}}def(u){let s=this.rules.block.def.exec(u);if(s){let c=s[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=s[2]?s[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",f=s[3]?s[3].substring(1,s[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):s[3];return{type:"def",tag:c,raw:s[0],href:r,title:f}}}table(u){var y;let s=this.rules.block.table.exec(u);if(!s||!this.rules.other.tableDelimiter.test(s[2]))return;let c=Tm(s[1]),r=s[2].replace(this.rules.other.tableAlignChars,"").split("|"),f=(y=s[3])!=null&&y.trim()?s[3].replace(this.rules.other.tableRowBlankLine,"").split(`
74
- `):[],g={type:"table",raw:s[0],header:[],align:[],rows:[]};if(c.length===r.length){for(let p of r)this.rules.other.tableAlignRight.test(p)?g.align.push("right"):this.rules.other.tableAlignCenter.test(p)?g.align.push("center"):this.rules.other.tableAlignLeft.test(p)?g.align.push("left"):g.align.push(null);for(let p=0;p<c.length;p++)g.header.push({text:c[p],tokens:this.lexer.inline(c[p]),header:!0,align:g.align[p]});for(let p of f)g.rows.push(Tm(p,g.header.length).map((T,m)=>({text:T,tokens:this.lexer.inline(T),header:!1,align:g.align[m]})));return g}}lheading(u){let s=this.rules.block.lheading.exec(u);if(s)return{type:"heading",raw:s[0],depth:s[2].charAt(0)==="="?1:2,text:s[1],tokens:this.lexer.inline(s[1])}}paragraph(u){let s=this.rules.block.paragraph.exec(u);if(s){let c=s[1].charAt(s[1].length-1)===`
75
- `?s[1].slice(0,-1):s[1];return{type:"paragraph",raw:s[0],text:c,tokens:this.lexer.inline(c)}}}text(u){let s=this.rules.block.text.exec(u);if(s)return{type:"text",raw:s[0],text:s[0],tokens:this.lexer.inline(s[0])}}escape(u){let s=this.rules.inline.escape.exec(u);if(s)return{type:"escape",raw:s[0],text:s[1]}}tag(u){let s=this.rules.inline.tag.exec(u);if(s)return!this.lexer.state.inLink&&this.rules.other.startATag.test(s[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(s[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(s[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(s[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:s[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:s[0]}}link(u){let s=this.rules.inline.link.exec(u);if(s){let c=s[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(c)){if(!this.rules.other.endAngleBracket.test(c))return;let g=Di(c.slice(0,-1),"\\");if((c.length-g.length)%2===0)return}else{let g=Fy(s[2],"()");if(g===-2)return;if(g>-1){let y=(s[0].indexOf("!")===0?5:4)+s[1].length+g;s[2]=s[2].substring(0,g),s[0]=s[0].substring(0,y).trim(),s[3]=""}}let r=s[2],f="";if(this.options.pedantic){let g=this.rules.other.pedanticHrefTitle.exec(r);g&&(r=g[1],f=g[3])}else f=s[3]?s[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(c)?r=r.slice(1):r=r.slice(1,-1)),_m(s,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:f&&f.replace(this.rules.inline.anyPunctuation,"$1")},s[0],this.lexer,this.rules)}}reflink(u,s){let c;if((c=this.rules.inline.reflink.exec(u))||(c=this.rules.inline.nolink.exec(u))){let r=(c[2]||c[1]).replace(this.rules.other.multipleSpaceGlobal," "),f=s[r.toLowerCase()];if(!f){let g=c[0].charAt(0);return{type:"text",raw:g,text:g}}return _m(c,f,c[0],this.lexer,this.rules)}}emStrong(u,s,c=""){let r=this.rules.inline.emStrongLDelim.exec(u);if(!(!r||r[3]&&c.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!c||this.rules.inline.punctuation.exec(c))){let f=[...r[0]].length-1,g,y,p=f,T=0,m=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,s=s.slice(-1*u.length+f);(r=m.exec(s))!=null;){if(g=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!g)continue;if(y=[...g].length,r[3]||r[4]){p+=y;continue}else if((r[5]||r[6])&&f%3&&!((f+y)%3)){T+=y;continue}if(p-=y,p>0)continue;y=Math.min(y,y+p+T);let S=[...r[0]][0].length,E=u.slice(0,f+r.index+S+y);if(Math.min(f,y)%2){let R=E.slice(1,-1);return{type:"em",raw:E,text:R,tokens:this.lexer.inlineTokens(R)}}let O=E.slice(2,-2);return{type:"strong",raw:E,text:O,tokens:this.lexer.inlineTokens(O)}}}}codespan(u){let s=this.rules.inline.code.exec(u);if(s){let c=s[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(c),f=this.rules.other.startingSpaceChar.test(c)&&this.rules.other.endingSpaceChar.test(c);return r&&f&&(c=c.substring(1,c.length-1)),{type:"codespan",raw:s[0],text:c}}}br(u){let s=this.rules.inline.br.exec(u);if(s)return{type:"br",raw:s[0]}}del(u,s,c=""){let r=this.rules.inline.delLDelim.exec(u);if(r&&(!r[1]||!c||this.rules.inline.punctuation.exec(c))){let f=[...r[0]].length-1,g,y,p=f,T=this.rules.inline.delRDelim;for(T.lastIndex=0,s=s.slice(-1*u.length+f);(r=T.exec(s))!=null;){if(g=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!g||(y=[...g].length,y!==f))continue;if(r[3]||r[4]){p+=y;continue}if(p-=y,p>0)continue;y=Math.min(y,y+p);let m=[...r[0]][0].length,S=u.slice(0,f+r.index+m+y),E=S.slice(f,-f);return{type:"del",raw:S,text:E,tokens:this.lexer.inlineTokens(E)}}}}autolink(u){let s=this.rules.inline.autolink.exec(u);if(s){let c,r;return s[2]==="@"?(c=s[1],r="mailto:"+c):(c=s[1],r=c),{type:"link",raw:s[0],text:c,href:r,tokens:[{type:"text",raw:c,text:c}]}}}url(u){var c;let s;if(s=this.rules.inline.url.exec(u)){let r,f;if(s[2]==="@")r=s[0],f="mailto:"+r;else{let g;do g=s[0],s[0]=((c=this.rules.inline._backpedal.exec(s[0]))==null?void 0:c[0])??"";while(g!==s[0]);r=s[0],s[1]==="www."?f="http://"+s[0]:f=s[0]}return{type:"link",raw:s[0],text:r,href:f,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(u){let s=this.rules.inline.text.exec(u);if(s){let c=this.lexer.state.inRawBlock;return{type:"text",raw:s[0],text:s[0],escaped:c}}}},_l=class Vr{constructor(s){Ve(this,"tokens");Ve(this,"options");Ve(this,"state");Ve(this,"inlineQueue");Ve(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=s||en,this.options.tokenizer=this.options.tokenizer||new ds,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 c={other:Ct,block:us.normal,inline:Ri.normal};this.options.pedantic?(c.block=us.pedantic,c.inline=Ri.pedantic):this.options.gfm&&(c.block=us.gfm,this.options.breaks?c.inline=Ri.breaks:c.inline=Ri.gfm),this.tokenizer.rules=c}static get rules(){return{block:us,inline:Ri}}static lex(s,c){return new Vr(c).lex(s)}static lexInline(s,c){return new Vr(c).inlineTokens(s)}lex(s){s=s.replace(Ct.carriageReturn,`
76
- `),this.blockTokens(s,this.tokens);for(let c=0;c<this.inlineQueue.length;c++){let r=this.inlineQueue[c];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(s,c=[],r=!1){var f,g,y;for(this.options.pedantic&&(s=s.replace(Ct.tabCharGlobal," ").replace(Ct.spaceLine,""));s;){let p;if((g=(f=this.options.extensions)==null?void 0:f.block)!=null&&g.some(m=>(p=m.call({lexer:this},s,c))?(s=s.substring(p.raw.length),c.push(p),!0):!1))continue;if(p=this.tokenizer.space(s)){s=s.substring(p.raw.length);let m=c.at(-1);p.raw.length===1&&m!==void 0?m.raw+=`
77
- `:c.push(p);continue}if(p=this.tokenizer.code(s)){s=s.substring(p.raw.length);let m=c.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
78
- `)?"":`
79
- `)+p.raw,m.text+=`
80
- `+p.text,this.inlineQueue.at(-1).src=m.text):c.push(p);continue}if(p=this.tokenizer.fences(s)){s=s.substring(p.raw.length),c.push(p);continue}if(p=this.tokenizer.heading(s)){s=s.substring(p.raw.length),c.push(p);continue}if(p=this.tokenizer.hr(s)){s=s.substring(p.raw.length),c.push(p);continue}if(p=this.tokenizer.blockquote(s)){s=s.substring(p.raw.length),c.push(p);continue}if(p=this.tokenizer.list(s)){s=s.substring(p.raw.length),c.push(p);continue}if(p=this.tokenizer.html(s)){s=s.substring(p.raw.length),c.push(p);continue}if(p=this.tokenizer.def(s)){s=s.substring(p.raw.length);let m=c.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
81
- `)?"":`
82
- `)+p.raw,m.text+=`
83
- `+p.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[p.tag]||(this.tokens.links[p.tag]={href:p.href,title:p.title},c.push(p));continue}if(p=this.tokenizer.table(s)){s=s.substring(p.raw.length),c.push(p);continue}if(p=this.tokenizer.lheading(s)){s=s.substring(p.raw.length),c.push(p);continue}let T=s;if((y=this.options.extensions)!=null&&y.startBlock){let m=1/0,S=s.slice(1),E;this.options.extensions.startBlock.forEach(O=>{E=O.call({lexer:this},S),typeof E=="number"&&E>=0&&(m=Math.min(m,E))}),m<1/0&&m>=0&&(T=s.substring(0,m+1))}if(this.state.top&&(p=this.tokenizer.paragraph(T))){let m=c.at(-1);r&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
84
- `)?"":`
85
- `)+p.raw,m.text+=`
86
- `+p.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):c.push(p),r=T.length!==s.length,s=s.substring(p.raw.length);continue}if(p=this.tokenizer.text(s)){s=s.substring(p.raw.length);let m=c.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
87
- `)?"":`
88
- `)+p.raw,m.text+=`
89
- `+p.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):c.push(p);continue}if(s){let m="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,c}inline(s,c=[]){return this.inlineQueue.push({src:s,tokens:c}),c}inlineTokens(s,c=[]){var T,m,S,E,O;let r=s,f=null;if(this.tokens.links){let R=Object.keys(this.tokens.links);if(R.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)R.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,f.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let g;for(;(f=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)g=f[2]?f[2].length:0,r=r.slice(0,f.index+g)+"["+"a".repeat(f[0].length-g-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((m=(T=this.options.hooks)==null?void 0:T.emStrongMask)==null?void 0:m.call({lexer:this},r))??r;let y=!1,p="";for(;s;){y||(p=""),y=!1;let R;if((E=(S=this.options.extensions)==null?void 0:S.inline)!=null&&E.some($=>(R=$.call({lexer:this},s,c))?(s=s.substring(R.raw.length),c.push(R),!0):!1))continue;if(R=this.tokenizer.escape(s)){s=s.substring(R.raw.length),c.push(R);continue}if(R=this.tokenizer.tag(s)){s=s.substring(R.raw.length),c.push(R);continue}if(R=this.tokenizer.link(s)){s=s.substring(R.raw.length),c.push(R);continue}if(R=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(R.raw.length);let $=c.at(-1);R.type==="text"&&($==null?void 0:$.type)==="text"?($.raw+=R.raw,$.text+=R.text):c.push(R);continue}if(R=this.tokenizer.emStrong(s,r,p)){s=s.substring(R.raw.length),c.push(R);continue}if(R=this.tokenizer.codespan(s)){s=s.substring(R.raw.length),c.push(R);continue}if(R=this.tokenizer.br(s)){s=s.substring(R.raw.length),c.push(R);continue}if(R=this.tokenizer.del(s,r,p)){s=s.substring(R.raw.length),c.push(R);continue}if(R=this.tokenizer.autolink(s)){s=s.substring(R.raw.length),c.push(R);continue}if(!this.state.inLink&&(R=this.tokenizer.url(s))){s=s.substring(R.raw.length),c.push(R);continue}let Q=s;if((O=this.options.extensions)!=null&&O.startInline){let $=1/0,ie=s.slice(1),ye;this.options.extensions.startInline.forEach(pe=>{ye=pe.call({lexer:this},ie),typeof ye=="number"&&ye>=0&&($=Math.min($,ye))}),$<1/0&&$>=0&&(Q=s.substring(0,$+1))}if(R=this.tokenizer.inlineText(Q)){s=s.substring(R.raw.length),R.raw.slice(-1)!=="_"&&(p=R.raw.slice(-1)),y=!0;let $=c.at(-1);($==null?void 0:$.type)==="text"?($.raw+=R.raw,$.text+=R.text):c.push(R);continue}if(s){let $="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error($);break}else throw new Error($)}}return c}},hs=class{constructor(u){Ve(this,"options");Ve(this,"parser");this.options=u||en}space(u){return""}code({text:u,lang:s,escaped:c}){var g;let r=(g=(s||"").match(Ct.notSpaceStart))==null?void 0:g[0],f=u.replace(Ct.endingNewline,"")+`
90
- `;return r?'<pre><code class="language-'+Dl(r)+'">'+(c?f:Dl(f,!0))+`</code></pre>
91
- `:"<pre><code>"+(c?f:Dl(f,!0))+`</code></pre>
92
- `}blockquote({tokens:u}){return`<blockquote>
93
- ${this.parser.parse(u)}</blockquote>
94
- `}html({text:u}){return u}def(u){return""}heading({tokens:u,depth:s}){return`<h${s}>${this.parser.parseInline(u)}</h${s}>
95
- `}hr(u){return`<hr>
96
- `}list(u){let s=u.ordered,c=u.start,r="";for(let y=0;y<u.items.length;y++){let p=u.items[y];r+=this.listitem(p)}let f=s?"ol":"ul",g=s&&c!==1?' start="'+c+'"':"";return"<"+f+g+`>
97
- `+r+"</"+f+`>
98
- `}listitem(u){return`<li>${this.parser.parse(u.tokens)}</li>
99
- `}checkbox({checked:u}){return"<input "+(u?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:u}){return`<p>${this.parser.parseInline(u)}</p>
100
- `}table(u){let s="",c="";for(let f=0;f<u.header.length;f++)c+=this.tablecell(u.header[f]);s+=this.tablerow({text:c});let r="";for(let f=0;f<u.rows.length;f++){let g=u.rows[f];c="";for(let y=0;y<g.length;y++)c+=this.tablecell(g[y]);r+=this.tablerow({text:c})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
101
- <thead>
102
- `+s+`</thead>
103
- `+r+`</table>
104
- `}tablerow({text:u}){return`<tr>
105
- ${u}</tr>
106
- `}tablecell(u){let s=this.parser.parseInline(u.tokens),c=u.header?"th":"td";return(u.align?`<${c} align="${u.align}">`:`<${c}>`)+s+`</${c}>
107
- `}strong({tokens:u}){return`<strong>${this.parser.parseInline(u)}</strong>`}em({tokens:u}){return`<em>${this.parser.parseInline(u)}</em>`}codespan({text:u}){return`<code>${Dl(u,!0)}</code>`}br(u){return"<br>"}del({tokens:u}){return`<del>${this.parser.parseInline(u)}</del>`}link({href:u,title:s,tokens:c}){let r=this.parser.parseInline(c),f=xm(u);if(f===null)return r;u=f;let g='<a href="'+u+'"';return s&&(g+=' title="'+Dl(s)+'"'),g+=">"+r+"</a>",g}image({href:u,title:s,text:c,tokens:r}){r&&(c=this.parser.parseInline(r,this.parser.textRenderer));let f=xm(u);if(f===null)return Dl(c);u=f;let g=`<img src="${u}" alt="${Dl(c)}"`;return s&&(g+=` title="${Dl(s)}"`),g+=">",g}text(u){return"tokens"in u&&u.tokens?this.parser.parseInline(u.tokens):"escaped"in u&&u.escaped?u.text:Dl(u.text)}},so=class{strong({text:u}){return u}em({text:u}){return u}codespan({text:u}){return u}del({text:u}){return u}html({text:u}){return u}text({text:u}){return u}link({text:u}){return""+u}image({text:u}){return""+u}br(){return""}checkbox({raw:u}){return u}},Al=class Kr{constructor(s){Ve(this,"options");Ve(this,"renderer");Ve(this,"textRenderer");this.options=s||en,this.options.renderer=this.options.renderer||new hs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new so}static parse(s,c){return new Kr(c).parse(s)}static parseInline(s,c){return new Kr(c).parseInline(s)}parse(s){var r,f;let c="";for(let g=0;g<s.length;g++){let y=s[g];if((f=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&f[y.type]){let T=y,m=this.options.extensions.renderers[T.type].call({parser:this},T);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(T.type)){c+=m||"";continue}}let p=y;switch(p.type){case"space":{c+=this.renderer.space(p);break}case"hr":{c+=this.renderer.hr(p);break}case"heading":{c+=this.renderer.heading(p);break}case"code":{c+=this.renderer.code(p);break}case"table":{c+=this.renderer.table(p);break}case"blockquote":{c+=this.renderer.blockquote(p);break}case"list":{c+=this.renderer.list(p);break}case"checkbox":{c+=this.renderer.checkbox(p);break}case"html":{c+=this.renderer.html(p);break}case"def":{c+=this.renderer.def(p);break}case"paragraph":{c+=this.renderer.paragraph(p);break}case"text":{c+=this.renderer.text(p);break}default:{let T='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(T),"";throw new Error(T)}}}return c}parseInline(s,c=this.renderer){var f,g;let r="";for(let y=0;y<s.length;y++){let p=s[y];if((g=(f=this.options.extensions)==null?void 0:f.renderers)!=null&&g[p.type]){let m=this.options.extensions.renderers[p.type].call({parser:this},p);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(p.type)){r+=m||"";continue}}let T=p;switch(T.type){case"escape":{r+=c.text(T);break}case"html":{r+=c.html(T);break}case"link":{r+=c.link(T);break}case"image":{r+=c.image(T);break}case"checkbox":{r+=c.checkbox(T);break}case"strong":{r+=c.strong(T);break}case"em":{r+=c.em(T);break}case"codespan":{r+=c.codespan(T);break}case"br":{r+=c.br(T);break}case"del":{r+=c.del(T);break}case"text":{r+=c.text(T);break}default:{let m='Token with "'+T.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}},rs,qi=(rs=class{constructor(u){Ve(this,"options");Ve(this,"block");this.options=u||en}preprocess(u){return u}postprocess(u){return u}processAllTokens(u){return u}emStrongMask(u){return u}provideLexer(){return this.block?_l.lex:_l.lexInline}provideParser(){return this.block?Al.parse:Al.parseInline}},Ve(rs,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ve(rs,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),rs),Py=class{constructor(...u){Ve(this,"defaults",Pr());Ve(this,"options",this.setOptions);Ve(this,"parse",this.parseMarkdown(!0));Ve(this,"parseInline",this.parseMarkdown(!1));Ve(this,"Parser",Al);Ve(this,"Renderer",hs);Ve(this,"TextRenderer",so);Ve(this,"Lexer",_l);Ve(this,"Tokenizer",ds);Ve(this,"Hooks",qi);this.use(...u)}walkTokens(u,s){var r,f;let c=[];for(let g of u)switch(c=c.concat(s.call(this,g)),g.type){case"table":{let y=g;for(let p of y.header)c=c.concat(this.walkTokens(p.tokens,s));for(let p of y.rows)for(let T of p)c=c.concat(this.walkTokens(T.tokens,s));break}case"list":{let y=g;c=c.concat(this.walkTokens(y.items,s));break}default:{let y=g;(f=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&f[y.type]?this.defaults.extensions.childTokens[y.type].forEach(p=>{let T=y[p].flat(1/0);c=c.concat(this.walkTokens(T,s))}):y.tokens&&(c=c.concat(this.walkTokens(y.tokens,s)))}}return c}use(...u){let s=this.defaults.extensions||{renderers:{},childTokens:{}};return u.forEach(c=>{let r={...c};if(r.async=this.defaults.async||r.async||!1,c.extensions&&(c.extensions.forEach(f=>{if(!f.name)throw new Error("extension name required");if("renderer"in f){let g=s.renderers[f.name];g?s.renderers[f.name]=function(...y){let p=f.renderer.apply(this,y);return p===!1&&(p=g.apply(this,y)),p}:s.renderers[f.name]=f.renderer}if("tokenizer"in f){if(!f.level||f.level!=="block"&&f.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let g=s[f.level];g?g.unshift(f.tokenizer):s[f.level]=[f.tokenizer],f.start&&(f.level==="block"?s.startBlock?s.startBlock.push(f.start):s.startBlock=[f.start]:f.level==="inline"&&(s.startInline?s.startInline.push(f.start):s.startInline=[f.start]))}"childTokens"in f&&f.childTokens&&(s.childTokens[f.name]=f.childTokens)}),r.extensions=s),c.renderer){let f=this.defaults.renderer||new hs(this.defaults);for(let g in c.renderer){if(!(g in f))throw new Error(`renderer '${g}' does not exist`);if(["options","parser"].includes(g))continue;let y=g,p=c.renderer[y],T=f[y];f[y]=(...m)=>{let S=p.apply(f,m);return S===!1&&(S=T.apply(f,m)),S||""}}r.renderer=f}if(c.tokenizer){let f=this.defaults.tokenizer||new ds(this.defaults);for(let g in c.tokenizer){if(!(g in f))throw new Error(`tokenizer '${g}' does not exist`);if(["options","rules","lexer"].includes(g))continue;let y=g,p=c.tokenizer[y],T=f[y];f[y]=(...m)=>{let S=p.apply(f,m);return S===!1&&(S=T.apply(f,m)),S}}r.tokenizer=f}if(c.hooks){let f=this.defaults.hooks||new qi;for(let g in c.hooks){if(!(g in f))throw new Error(`hook '${g}' does not exist`);if(["options","block"].includes(g))continue;let y=g,p=c.hooks[y],T=f[y];qi.passThroughHooks.has(g)?f[y]=m=>{if(this.defaults.async&&qi.passThroughHooksRespectAsync.has(g))return(async()=>{let E=await p.call(f,m);return T.call(f,E)})();let S=p.call(f,m);return T.call(f,S)}:f[y]=(...m)=>{if(this.defaults.async)return(async()=>{let E=await p.apply(f,m);return E===!1&&(E=await T.apply(f,m)),E})();let S=p.apply(f,m);return S===!1&&(S=T.apply(f,m)),S}}r.hooks=f}if(c.walkTokens){let f=this.defaults.walkTokens,g=c.walkTokens;r.walkTokens=function(y){let p=[];return p.push(g.call(this,y)),f&&(p=p.concat(f.call(this,y))),p}}this.defaults={...this.defaults,...r}}),this}setOptions(u){return this.defaults={...this.defaults,...u},this}lexer(u,s){return _l.lex(u,s??this.defaults)}parser(u,s){return Al.parse(u,s??this.defaults)}parseMarkdown(u){return(s,c)=>{let r={...c},f={...this.defaults,...r},g=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&r.async===!1)return g(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 s>"u"||s===null)return g(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return g(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(f.hooks&&(f.hooks.options=f,f.hooks.block=u),f.async)return(async()=>{let y=f.hooks?await f.hooks.preprocess(s):s,p=await(f.hooks?await f.hooks.provideLexer():u?_l.lex:_l.lexInline)(y,f),T=f.hooks?await f.hooks.processAllTokens(p):p;f.walkTokens&&await Promise.all(this.walkTokens(T,f.walkTokens));let m=await(f.hooks?await f.hooks.provideParser():u?Al.parse:Al.parseInline)(T,f);return f.hooks?await f.hooks.postprocess(m):m})().catch(g);try{f.hooks&&(s=f.hooks.preprocess(s));let y=(f.hooks?f.hooks.provideLexer():u?_l.lex:_l.lexInline)(s,f);f.hooks&&(y=f.hooks.processAllTokens(y)),f.walkTokens&&this.walkTokens(y,f.walkTokens);let p=(f.hooks?f.hooks.provideParser():u?Al.parse:Al.parseInline)(y,f);return f.hooks&&(p=f.hooks.postprocess(p)),p}catch(y){return g(y)}}}onError(u,s){return c=>{if(c.message+=`
108
- Please report this to https://github.com/markedjs/marked.`,u){let r="<p>An error occurred:</p><pre>"+Dl(c.message+"",!0)+"</pre>";return s?Promise.resolve(r):r}if(s)return Promise.reject(c);throw c}}},Pa=new Py;function Ye(u,s){return Pa.parse(u,s)}Ye.options=Ye.setOptions=function(u){return Pa.setOptions(u),Ye.defaults=Pa.defaults,Qm(Ye.defaults),Ye};Ye.getDefaults=Pr;Ye.defaults=en;Ye.use=function(...u){return Pa.use(...u),Ye.defaults=Pa.defaults,Qm(Ye.defaults),Ye};Ye.walkTokens=function(u,s){return Pa.walkTokens(u,s)};Ye.parseInline=Pa.parseInline;Ye.Parser=Al;Ye.parser=Al.parse;Ye.Renderer=hs;Ye.TextRenderer=so;Ye.Lexer=_l;Ye.lexer=_l.lex;Ye.Tokenizer=ds;Ye.Hooks=qi;Ye.parse=Ye;Ye.options;Ye.setOptions;Ye.use;Ye.walkTokens;Ye.parseInline;Al.parse;_l.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:lp,setPrototypeOf:Am,isFrozen:ev,getPrototypeOf:tv,getOwnPropertyDescriptor:lv}=Object;let{freeze:Rt,seal:ml,create:$r}=Object,{apply:Jr,construct:Fr}=typeof Reflect<"u"&&Reflect;Rt||(Rt=function(s){return s});ml||(ml=function(s){return s});Jr||(Jr=function(s,c){for(var r=arguments.length,f=new Array(r>2?r-2:0),g=2;g<r;g++)f[g-2]=arguments[g];return s.apply(c,f)});Fr||(Fr=function(s){for(var c=arguments.length,r=new Array(c>1?c-1:0),f=1;f<c;f++)r[f-1]=arguments[f];return new s(...r)});const ss=Dt(Array.prototype.forEach),av=Dt(Array.prototype.lastIndexOf),Em=Dt(Array.prototype.pop),Oi=Dt(Array.prototype.push),nv=Dt(Array.prototype.splice),os=Dt(String.prototype.toLowerCase),Cr=Dt(String.prototype.toString),Rr=Dt(String.prototype.match),Ui=Dt(String.prototype.replace),iv=Dt(String.prototype.indexOf),uv=Dt(String.prototype.trim),Tl=Dt(Object.prototype.hasOwnProperty),Mt=Dt(RegExp.prototype.test),wi=sv(TypeError);function Dt(u){return function(s){s instanceof RegExp&&(s.lastIndex=0);for(var c=arguments.length,r=new Array(c>1?c-1:0),f=1;f<c;f++)r[f-1]=arguments[f];return Jr(u,s,r)}}function sv(u){return function(){for(var s=arguments.length,c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];return Fr(u,c)}}function Ae(u,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:os;Am&&Am(u,null);let r=s.length;for(;r--;){let f=s[r];if(typeof f=="string"){const g=c(f);g!==f&&(ev(s)||(s[r]=g),f=g)}u[f]=!0}return u}function cv(u){for(let s=0;s<u.length;s++)Tl(u,s)||(u[s]=null);return u}function Ol(u){const s=$r(null);for(const[c,r]of lp(u))Tl(u,c)&&(Array.isArray(r)?s[c]=cv(r):r&&typeof r=="object"&&r.constructor===Object?s[c]=Ol(r):s[c]=r);return s}function Li(u,s){for(;u!==null;){const r=lv(u,s);if(r){if(r.get)return Dt(r.get);if(typeof r.value=="function")return Dt(r.value)}u=tv(u)}function c(){return null}return c}const Nm=Rt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dr=Rt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Or=Rt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rv=Rt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ur=Rt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ov=Rt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),km=Rt(["#text"]),jm=Rt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),wr=Rt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),zm=Rt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),cs=Rt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fv=ml(/\{\{[\w\W]*|[\w\W]*\}\}/gm),dv=ml(/<%[\w\W]*|[\w\W]*%>/gm),hv=ml(/\$\{[\w\W]*/gm),mv=ml(/^data-[\-\w.\u00B7-\uFFFF]+$/),pv=ml(/^aria-[\-\w]+$/),ap=ml(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gv=ml(/^(?:\w+script|data):/i),yv=ml(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),np=ml(/^html$/i),vv=ml(/^[a-z][.\w]*(-[.\w]+)+$/i);var Mm=Object.freeze({__proto__:null,ARIA_ATTR:pv,ATTR_WHITESPACE:yv,CUSTOM_ELEMENT:vv,DATA_ATTR:mv,DOCTYPE_NAME:np,ERB_EXPR:dv,IS_ALLOWED_URI:ap,IS_SCRIPT_OR_DATA:gv,MUSTACHE_EXPR:fv,TMPLIT_EXPR:hv});const Hi={element:1,text:3,progressingInstruction:7,comment:8,document:9},bv=function(){return typeof window>"u"?null:window},Sv=function(s,c){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let r=null;const f="data-tt-policy-suffix";c&&c.hasAttribute(f)&&(r=c.getAttribute(f));const g="dompurify"+(r?"#"+r:"");try{return s.createPolicy(g,{createHTML(y){return y},createScriptURL(y){return y}})}catch{return console.warn("TrustedTypes policy "+g+" could not be created."),null}},Cm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ip(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bv();const s=le=>ip(le);if(s.version="3.3.1",s.removed=[],!u||!u.document||u.document.nodeType!==Hi.document||!u.Element)return s.isSupported=!1,s;let{document:c}=u;const r=c,f=r.currentScript,{DocumentFragment:g,HTMLTemplateElement:y,Node:p,Element:T,NodeFilter:m,NamedNodeMap:S=u.NamedNodeMap||u.MozNamedAttrMap,HTMLFormElement:E,DOMParser:O,trustedTypes:R}=u,Q=T.prototype,$=Li(Q,"cloneNode"),ie=Li(Q,"remove"),ye=Li(Q,"nextSibling"),pe=Li(Q,"childNodes"),oe=Li(Q,"parentNode");if(typeof y=="function"){const le=c.createElement("template");le.content&&le.content.ownerDocument&&(c=le.content.ownerDocument)}let I,fe="";const{implementation:ne,createNodeIterator:Z,createDocumentFragment:X,getElementsByTagName:be}=c,{importNode:Ce}=r;let he=Cm();s.isSupported=typeof lp=="function"&&typeof oe=="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:H,TMPLIT_EXPR:ue,DATA_ATTR:Se,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:_e}=Mm;let{IS_ALLOWED_URI:xe}=Mm,b=null;const L=Ae({},[...Nm,...Dr,...Or,...Ur,...km]);let C=null;const V=Ae({},[...jm,...wr,...zm,...cs]);let J=Object.seal($r(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,me=null;const Ge=Object.seal($r(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let De=!0,It=!0,ht=!1,Oe=!0,vt=!1,it=!0,bt=!1,Ot=!1,pl=!1,kt=!1,Pt=!1,el=!1,Xt=!0,wl=!1;const El="user-content-";let ut=!0,Nl=!1,Qt={},Et=null;const kl=Ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ma=null;const Ca=Ae({},["audio","video","img","source","image","track"]);let Ra=null;const Ll=Ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tl="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let et=Fe,aa=!1,Da=null;const wn=Ae({},[tl,st,Fe],Cr);let gl=Ae({},["mi","mo","mn","ms","mtext"]),yl=Ae({},["annotation-xml"]);const na=Ae({},["title","style","font","a","script"]);let jt=null;const ia=["application/xhtml+xml","text/html"],K="text/html";let te=null,P=null;const ke=c.createElement("form"),mt=function(x){return x instanceof RegExp||x instanceof Function},Oa=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(P&&P===x)){if((!x||typeof x!="object")&&(x={}),x=Ol(x),jt=ia.indexOf(x.PARSER_MEDIA_TYPE)===-1?K:x.PARSER_MEDIA_TYPE,te=jt==="application/xhtml+xml"?Cr:os,b=Tl(x,"ALLOWED_TAGS")?Ae({},x.ALLOWED_TAGS,te):L,C=Tl(x,"ALLOWED_ATTR")?Ae({},x.ALLOWED_ATTR,te):V,Da=Tl(x,"ALLOWED_NAMESPACES")?Ae({},x.ALLOWED_NAMESPACES,Cr):wn,Ra=Tl(x,"ADD_URI_SAFE_ATTR")?Ae(Ol(Ll),x.ADD_URI_SAFE_ATTR,te):Ll,Ma=Tl(x,"ADD_DATA_URI_TAGS")?Ae(Ol(Ca),x.ADD_DATA_URI_TAGS,te):Ca,Et=Tl(x,"FORBID_CONTENTS")?Ae({},x.FORBID_CONTENTS,te):kl,ce=Tl(x,"FORBID_TAGS")?Ae({},x.FORBID_TAGS,te):Ol({}),me=Tl(x,"FORBID_ATTR")?Ae({},x.FORBID_ATTR,te):Ol({}),Qt=Tl(x,"USE_PROFILES")?x.USE_PROFILES:!1,De=x.ALLOW_ARIA_ATTR!==!1,It=x.ALLOW_DATA_ATTR!==!1,ht=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,vt=x.SAFE_FOR_TEMPLATES||!1,it=x.SAFE_FOR_XML!==!1,bt=x.WHOLE_DOCUMENT||!1,kt=x.RETURN_DOM||!1,Pt=x.RETURN_DOM_FRAGMENT||!1,el=x.RETURN_TRUSTED_TYPE||!1,pl=x.FORCE_BODY||!1,Xt=x.SANITIZE_DOM!==!1,wl=x.SANITIZE_NAMED_PROPS||!1,ut=x.KEEP_CONTENT!==!1,Nl=x.IN_PLACE||!1,xe=x.ALLOWED_URI_REGEXP||ap,et=x.NAMESPACE||Fe,gl=x.MATHML_TEXT_INTEGRATION_POINTS||gl,yl=x.HTML_INTEGRATION_POINTS||yl,J=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&mt(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(J.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&mt(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(J.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),vt&&(It=!1),Pt&&(kt=!0),Qt&&(b=Ae({},km),C=[],Qt.html===!0&&(Ae(b,Nm),Ae(C,jm)),Qt.svg===!0&&(Ae(b,Dr),Ae(C,wr),Ae(C,cs)),Qt.svgFilters===!0&&(Ae(b,Or),Ae(C,wr),Ae(C,cs)),Qt.mathMl===!0&&(Ae(b,Ur),Ae(C,zm),Ae(C,cs))),x.ADD_TAGS&&(typeof x.ADD_TAGS=="function"?Ge.tagCheck=x.ADD_TAGS:(b===L&&(b=Ol(b)),Ae(b,x.ADD_TAGS,te))),x.ADD_ATTR&&(typeof x.ADD_ATTR=="function"?Ge.attributeCheck=x.ADD_ATTR:(C===V&&(C=Ol(C)),Ae(C,x.ADD_ATTR,te))),x.ADD_URI_SAFE_ATTR&&Ae(Ra,x.ADD_URI_SAFE_ATTR,te),x.FORBID_CONTENTS&&(Et===kl&&(Et=Ol(Et)),Ae(Et,x.FORBID_CONTENTS,te)),x.ADD_FORBID_CONTENTS&&(Et===kl&&(Et=Ol(Et)),Ae(Et,x.ADD_FORBID_CONTENTS,te)),ut&&(b["#text"]=!0),bt&&Ae(b,["html","head","body"]),b.table&&(Ae(b,["tbody"]),delete ce.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw wi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=x.TRUSTED_TYPES_POLICY,fe=I.createHTML("")}else I===void 0&&(I=Sv(R,f)),I!==null&&typeof fe=="string"&&(fe=I.createHTML(""));Rt&&Rt(x),P=x}},Ln=Ae({},[...Dr,...Or,...rv]),Hn=Ae({},[...Ur,...ov]),Xi=function(x){let G=oe(x);(!G||!G.tagName)&&(G={namespaceURI:et,tagName:"template"});const F=os(x.tagName),He=os(G.tagName);return Da[x.namespaceURI]?x.namespaceURI===st?G.namespaceURI===Fe?F==="svg":G.namespaceURI===tl?F==="svg"&&(He==="annotation-xml"||gl[He]):!!Ln[F]:x.namespaceURI===tl?G.namespaceURI===Fe?F==="math":G.namespaceURI===st?F==="math"&&yl[He]:!!Hn[F]:x.namespaceURI===Fe?G.namespaceURI===st&&!yl[He]||G.namespaceURI===tl&&!gl[He]?!1:!Hn[F]&&(na[F]||!Ln[F]):!!(jt==="application/xhtml+xml"&&Da[x.namespaceURI]):!1},Ut=function(x){Oi(s.removed,{element:x});try{oe(x).removeChild(x)}catch{ie(x)}},vl=function(x,G){try{Oi(s.removed,{attribute:G.getAttributeNode(x),from:G})}catch{Oi(s.removed,{attribute:null,from:G})}if(G.removeAttribute(x),x==="is")if(kt||Pt)try{Ut(G)}catch{}else try{G.setAttribute(x,"")}catch{}},Bn=function(x){let G=null,F=null;if(pl)x="<remove></remove>"+x;else{const Te=Rr(x,/^[\r\n\t ]+/);F=Te&&Te[0]}jt==="application/xhtml+xml"&&et===Fe&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const He=I?I.createHTML(x):x;if(et===Fe)try{G=new O().parseFromString(He,jt)}catch{}if(!G||!G.documentElement){G=ne.createDocument(et,"template",null);try{G.documentElement.innerHTML=aa?fe:He}catch{}}const Pe=G.body||G.documentElement;return x&&F&&Pe.insertBefore(c.createTextNode(F),Pe.childNodes[0]||null),et===Fe?be.call(G,bt?"html":"body")[0]:bt?G.documentElement:Pe},qn=function(x){return Z.call(x.ownerDocument||x,x,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},ll=function(x){return x instanceof E&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof S)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},ct=function(x){return typeof p=="function"&&x instanceof p};function We(le,x,G){ss(le,F=>{F.call(s,x,G,P)})}const Hl=function(x){let G=null;if(We(he.beforeSanitizeElements,x,null),ll(x))return Ut(x),!0;const F=te(x.nodeName);if(We(he.uponSanitizeElement,x,{tagName:F,allowedTags:b}),it&&x.hasChildNodes()&&!ct(x.firstElementChild)&&Mt(/<[/\w!]/g,x.innerHTML)&&Mt(/<[/\w!]/g,x.textContent)||x.nodeType===Hi.progressingInstruction||it&&x.nodeType===Hi.comment&&Mt(/<[/\w]/g,x.data))return Ut(x),!0;if(!(Ge.tagCheck instanceof Function&&Ge.tagCheck(F))&&(!b[F]||ce[F])){if(!ce[F]&&Qi(F)&&(J.tagNameCheck instanceof RegExp&&Mt(J.tagNameCheck,F)||J.tagNameCheck instanceof Function&&J.tagNameCheck(F)))return!1;if(ut&&!Et[F]){const He=oe(x)||x.parentNode,Pe=pe(x)||x.childNodes;if(Pe&&He){const Te=Pe.length;for(let St=Te-1;St>=0;--St){const al=$(Pe[St],!0);al.__removalCount=(x.__removalCount||0)+1,He.insertBefore(al,ye(x))}}}return Ut(x),!0}return x instanceof T&&!Xi(x)||(F==="noscript"||F==="noembed"||F==="noframes")&&Mt(/<\/no(script|embed|frames)/i,x.innerHTML)?(Ut(x),!0):(vt&&x.nodeType===Hi.text&&(G=x.textContent,ss([U,H,ue],He=>{G=Ui(G,He," ")}),x.textContent!==G&&(Oi(s.removed,{element:x.cloneNode()}),x.textContent=G)),We(he.afterSanitizeElements,x,null),!1)},tn=function(x,G,F){if(Xt&&(G==="id"||G==="name")&&(F in c||F in ke))return!1;if(!(It&&!me[G]&&Mt(Se,G))){if(!(De&&Mt(M,G))){if(!(Ge.attributeCheck instanceof Function&&Ge.attributeCheck(G,x))){if(!C[G]||me[G]){if(!(Qi(x)&&(J.tagNameCheck instanceof RegExp&&Mt(J.tagNameCheck,x)||J.tagNameCheck instanceof Function&&J.tagNameCheck(x))&&(J.attributeNameCheck instanceof RegExp&&Mt(J.attributeNameCheck,G)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(G,x))||G==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&Mt(J.tagNameCheck,F)||J.tagNameCheck instanceof Function&&J.tagNameCheck(F))))return!1}else if(!Ra[G]){if(!Mt(xe,Ui(F,ee,""))){if(!((G==="src"||G==="xlink:href"||G==="href")&&x!=="script"&&iv(F,"data:")===0&&Ma[x])){if(!(ht&&!Mt(Y,Ui(F,ee,"")))){if(F)return!1}}}}}}}return!0},Qi=function(x){return x!=="annotation-xml"&&Rr(x,_e)},Zi=function(x){We(he.beforeSanitizeAttributes,x,null);const{attributes:G}=x;if(!G||ll(x))return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:C,forceKeepAttr:void 0};let He=G.length;for(;He--;){const Pe=G[He],{name:Te,namespaceURI:St,value:al}=Pe,wt=te(Te),jl=al;let pt=Te==="value"?jl:uv(jl);if(F.attrName=wt,F.attrValue=pt,F.keepAttr=!0,F.forceKeepAttr=void 0,We(he.uponSanitizeAttribute,x,F),pt=F.attrValue,wl&&(wt==="id"||wt==="name")&&(vl(Te,x),pt=El+pt),it&&Mt(/((--!?|])>)|<\/(style|title|textarea)/i,pt)){vl(Te,x);continue}if(wt==="attributename"&&Rr(pt,"href")){vl(Te,x);continue}if(F.forceKeepAttr)continue;if(!F.keepAttr){vl(Te,x);continue}if(!Oe&&Mt(/\/>/i,pt)){vl(Te,x);continue}vt&&ss([U,H,ue],Gn=>{pt=Ui(pt,Gn," ")});const Yn=te(x.nodeName);if(!tn(Yn,wt,pt)){vl(Te,x);continue}if(I&&typeof R=="object"&&typeof R.getAttributeType=="function"&&!St)switch(R.getAttributeType(Yn,wt)){case"TrustedHTML":{pt=I.createHTML(pt);break}case"TrustedScriptURL":{pt=I.createScriptURL(pt);break}}if(pt!==jl)try{St?x.setAttributeNS(St,Te,pt):x.setAttribute(Te,pt),ll(x)?Ut(x):Em(s.removed)}catch{vl(Te,x)}}We(he.afterSanitizeAttributes,x,null)},Vi=function le(x){let G=null;const F=qn(x);for(We(he.beforeSanitizeShadowDOM,x,null);G=F.nextNode();)We(he.uponSanitizeShadowNode,G,null),Hl(G),Zi(G),G.content instanceof g&&le(G.content);We(he.afterSanitizeShadowDOM,x,null)};return s.sanitize=function(le){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,F=null,He=null,Pe=null;if(aa=!le,aa&&(le="<!-->"),typeof le!="string"&&!ct(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw wi("dirty is not a string, aborting")}else throw wi("toString is not a function");if(!s.isSupported)return le;if(Ot||Oa(x),s.removed=[],typeof le=="string"&&(Nl=!1),Nl){if(le.nodeName){const al=te(le.nodeName);if(!b[al]||ce[al])throw wi("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof p)G=Bn("<!---->"),F=G.ownerDocument.importNode(le,!0),F.nodeType===Hi.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?G=F:G.appendChild(F);else{if(!kt&&!vt&&!bt&&le.indexOf("<")===-1)return I&&el?I.createHTML(le):le;if(G=Bn(le),!G)return kt?null:el?fe:""}G&&pl&&Ut(G.firstChild);const Te=qn(Nl?le:G);for(;He=Te.nextNode();)Hl(He),Zi(He),He.content instanceof g&&Vi(He.content);if(Nl)return le;if(kt){if(Pt)for(Pe=X.call(G.ownerDocument);G.firstChild;)Pe.appendChild(G.firstChild);else Pe=G;return(C.shadowroot||C.shadowrootmode)&&(Pe=Ce.call(r,Pe,!0)),Pe}let St=bt?G.outerHTML:G.innerHTML;return bt&&b["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&Mt(np,G.ownerDocument.doctype.name)&&(St="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
109
- `+St),vt&&ss([U,H,ue],al=>{St=Ui(St,al," ")}),I&&el?I.createHTML(St):St},s.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Oa(le),Ot=!0},s.clearConfig=function(){P=null,Ot=!1},s.isValidAttribute=function(le,x,G){P||Oa({});const F=te(le),He=te(x);return tn(F,He,G)},s.addHook=function(le,x){typeof x=="function"&&Oi(he[le],x)},s.removeHook=function(le,x){if(x!==void 0){const G=av(he[le],x);return G===-1?void 0:nv(he[le],G,1)[0]}return Em(he[le])},s.removeHooks=function(le){he[le]=[]},s.removeAllHooks=function(){he=Cm()},s}var xv=ip();function Tv({content:u,className:s="modal-description"}){const c=z.useMemo(()=>{try{const r=Ye.parse(u);return xv.sanitize(r)}catch{return u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}},[u]);return d.jsx("div",{className:s,dangerouslySetInnerHTML:{__html:c}})}const Lr=15;function _v({comments:u,showAll:s,onShowAll:c}){if(u.length===0)return d.jsx("div",{className:"empty-column",children:"No comments"});const r=u.length>Lr&&!s,f=r?u.slice(-Lr):u,g=Math.max(0,u.length-Lr);return d.jsxs("div",{className:"modal-comments",children:[r&&d.jsxs("button",{className:"show-more-btn",onClick:c,children:["Show ",g," earlier comment",g===1?"":"s"]}),f.map((y,p)=>d.jsxs("div",{className:"comment",children:[d.jsxs("div",{className:"comment-header",children:[d.jsx("span",{className:"comment-author",children:y.agent_id||y.author||"Unknown"}),d.jsx("span",{children:Ia(y.timestamp)})]}),d.jsx("div",{className:"comment-text",children:y.text})]},p))]})}const Hr=15;function Av({checkpoints:u,showAll:s,onShowAll:c}){if(u.length===0)return d.jsx("div",{className:"empty-column",children:"No checkpoints"});const r=u.length>Hr&&!s,f=r?u.slice(-Hr):u,g=Math.max(0,u.length-Hr);return d.jsxs("div",{className:"modal-checkpoint-list",children:[r&&d.jsxs("button",{className:"show-more-btn",onClick:c,children:["Show ",g," earlier checkpoint",g===1?"":"s"]}),f.map((y,p)=>{const T=y.data&&Object.keys(y.data).length>0;return d.jsxs("div",{className:"modal-checkpoint-entry",children:[d.jsxs("div",{className:"modal-checkpoint-header",children:[d.jsx("span",{className:"modal-checkpoint-name",children:y.name}),d.jsx("span",{className:"modal-entry-time",children:Ia(y.timestamp)})]}),T&&d.jsx("pre",{className:"modal-checkpoint-data",children:JSON.stringify(y.data,null,2)})]},p)})]})}const Br=20;function Ev({events:u,showAll:s,onShowAll:c}){if(u.length===0)return d.jsx("div",{className:"empty-column",children:"No activity"});const r=u.length>Br&&!s,g=[...r?u.slice(-Br):u].reverse(),y=Math.max(0,u.length-Br);return d.jsxs("div",{className:"modal-task-activity-list",children:[r&&d.jsxs("button",{className:"show-more-btn",onClick:c,children:["Show ",y," earlier event",y===1?"":"s"]}),g.map(p=>{const T=wm(p),m=T!=="system",S=Lm(p);return d.jsxs("div",{className:"modal-task-activity-entry",children:[d.jsxs("div",{className:"modal-task-activity-header",children:[d.jsx("span",{className:"modal-task-activity-type",children:Um(p.type)}),d.jsx("span",{className:"modal-entry-time",children:Ia(p.timestamp)})]}),m&&d.jsxs("div",{className:"modal-task-activity-author",children:["By ",T]}),S&&d.jsx("div",{className:"modal-task-activity-detail",children:S})]},p.event_id)})]})}function Nv({taskId:u,onClose:s}){const[c,r]=z.useState(null),[f,g]=z.useState([]),[y,p]=z.useState([]),[T,m]=z.useState([]),[S,E]=z.useState("comments"),[O,R]=z.useState(!1),[Q,$]=z.useState(!1),[ie,ye]=z.useState(!1),[pe,oe]=z.useState("idle"),[I,fe]=z.useState(!1),ne=z.useCallback(async U=>{fe(!0),R(!1),$(!1),ye(!1);try{const[H,ue,Se,M]=await Promise.all([Ul(`/api/tasks/${encodeURIComponent(U)}`),Ul(`/api/tasks/${encodeURIComponent(U)}/comments`),Ul(`/api/tasks/${encodeURIComponent(U)}/checkpoints`),Ul(`/api/tasks/${encodeURIComponent(U)}/events`)]);r(H.task),g(ue.comments),p(Se.checkpoints),m(M.events),ue.comments.length>0?E("comments"):Se.checkpoints.length>0?E("checkpoints"):E("activity")}catch{}finally{fe(!1)}},[]);z.useEffect(()=>{u?ne(u):r(null)},[u,ne]);const Z=z.useCallback(async()=>{if(c){try{await navigator.clipboard.writeText(c.task_id),oe("copied")}catch{oe("failed")}setTimeout(()=>oe("idle"),1500)}},[c]);if(!u)return null;const X=(c==null?void 0:c.progress)??0,be=za(c==null?void 0:c.assignee),Ce=be.length>0,he=f.length>0||y.length>0||T.length>0;return d.jsx("div",{className:"modal-overlay open",onClick:U=>{U.target===U.currentTarget&&s()},children:d.jsxs("div",{className:"modal",children:[d.jsxs("div",{className:"modal-header",children:[d.jsxs("div",{className:"modal-title-wrap",children:[d.jsx("span",{className:"modal-title",children:(c==null?void 0:c.title)||"Loading..."}),d.jsxs("div",{className:"modal-task-id-row",children:[d.jsx("span",{children:"Task ID"}),d.jsx("span",{className:"modal-task-id-value",children:(c==null?void 0:c.task_id)||"-"}),d.jsx("button",{type:"button",className:`modal-task-id-copy${pe==="copied"?" copied":pe==="failed"?" failed":""}`,disabled:!c,onClick:Z,children:pe==="copied"?"Copied":pe==="failed"?"Copy failed":"Copy"})]})]}),d.jsx("button",{className:"modal-close",onClick:s,children:"×"})]}),d.jsx("div",{className:"modal-body",children:I&&!c?d.jsx("div",{className:"empty-column",children:"Loading..."}):c?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"modal-section",children:d.jsxs("div",{className:"modal-meta",children:[d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Status"}),d.jsx("div",{className:"modal-meta-value",children:c.status})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Progress"}),d.jsx("div",{className:"modal-meta-value",children:d.jsxs("span",{className:X>=100?"modal-progress complete":"modal-progress",children:[X,"%"]})})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Project"}),d.jsx("div",{className:"modal-meta-value",children:c.project})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Assignee"}),d.jsx("div",{className:"modal-meta-value",children:Ce?be:d.jsx("span",{className:"modal-meta-fallback",children:"Unassigned"})})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Priority"}),d.jsx("div",{className:"modal-meta-value",children:c.priority})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Created"}),d.jsx("div",{className:"modal-meta-value",children:Ia(c.created_at)})]}),c.lease_until&&d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Lease Until"}),d.jsx("div",{className:"modal-meta-value",children:Ia(c.lease_until)})]}),c.due_at&&d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Due Date"}),d.jsx("div",{className:"modal-meta-value",children:new Date(c.due_at).toLocaleDateString()})]})]})}),c.status==="in_progress"&&y.length===0&&c.claimed_at&&d.jsxs("div",{className:"task-modal-stale-warning",children:["⚠ Stale — claimed ",Xr(Date.now()-new Date(c.claimed_at).getTime())," ago with no checkpoints"]}),c.blocked_by&&c.blocked_by.length>0&&d.jsxs("div",{className:"modal-section",children:[d.jsx("div",{className:"modal-section-title",children:"Blocked By"}),d.jsx("div",{className:"modal-blocked-list",children:c.blocked_by.map(U=>d.jsx("button",{type:"button",className:"modal-blocked-item",onClick:()=>ne(U.task_id),children:U.title},U.task_id))})]}),c.description&&d.jsxs("div",{className:"modal-section",children:[d.jsx("div",{className:"modal-section-title",children:"Description"}),d.jsx(Tv,{content:c.description})]}),c.links&&c.links.length>0&&d.jsxs("div",{className:"modal-section",children:[d.jsx("div",{className:"modal-section-title",children:"Links"}),d.jsx("div",{className:"modal-description",children:c.links.map((U,H)=>d.jsx("div",{children:d.jsx("a",{href:U,target:"_blank",rel:"noopener noreferrer",children:U})},H))})]}),c.tags&&c.tags.length>0&&d.jsxs("div",{className:"modal-section",children:[d.jsx("div",{className:"modal-section-title",children:"Tags"}),d.jsx("div",{className:"modal-tags",children:c.tags.map(U=>d.jsx("span",{className:"card-tag",style:{"--tag-color":qm(U)},children:U},U))})]}),he&&d.jsxs("div",{className:"modal-section",children:[d.jsxs("div",{className:"modal-tabs",children:[d.jsxs("button",{className:`modal-tab${S==="comments"?" active":""}`,disabled:f.length===0,onClick:()=>E("comments"),children:["Comments",d.jsx("span",{className:"modal-tab-count",children:f.length})]}),d.jsxs("button",{className:`modal-tab${S==="checkpoints"?" active":""}`,disabled:y.length===0,onClick:()=>E("checkpoints"),children:["Checkpoints",d.jsx("span",{className:"modal-tab-count",children:y.length})]}),d.jsxs("button",{className:`modal-tab${S==="activity"?" active":""}`,disabled:T.length===0,onClick:()=>E("activity"),children:["Activity",d.jsx("span",{className:"modal-tab-count",children:T.length})]})]}),S==="comments"&&d.jsx(_v,{comments:f,showAll:O,onShowAll:()=>R(!0)}),S==="checkpoints"&&d.jsx(Av,{checkpoints:y,showAll:Q,onShowAll:()=>$(!0)}),S==="activity"&&d.jsx(Ev,{events:T,showAll:ie,onShowAll:()=>ye(!0)})]})]}):null})]})})}function kv({open:u,events:s,assignees:c,assignee:r,onAssigneeChange:f,keyword:g,onKeywordChange:y,onClose:p,onEventClick:T}){return d.jsxs("div",{className:`activity-panel${u?" open":""}`,children:[d.jsxs("div",{className:"activity-header",children:[d.jsx("span",{className:"activity-title",children:"Activity"}),d.jsx("button",{className:"activity-close",onClick:p,children:"×"})]}),d.jsxs("div",{className:"activity-filters",children:[d.jsxs("select",{value:r,onChange:m=>f(m.target.value),children:[d.jsx("option",{value:"",children:"Any Agent"}),c.map(m=>d.jsxs("option",{value:m.name,children:[m.name," (",m.count,")"]},m.name))]}),d.jsx("input",{type:"search",placeholder:"Search title/description (3+ chars)",value:g,onChange:m=>y(m.target.value)})]}),d.jsx("div",{className:"activity-list",children:s.length===0?d.jsx("div",{className:"empty-column",children:"No recent activity"}):s.map(m=>{const S=wm(m),E=Lm(m),O=E?`${E} by ${S}`:`by ${S}`;return d.jsxs("div",{className:"activity-item",onClick:()=>m.task_id&&T(m.task_id),children:[d.jsxs("div",{className:"activity-item-header",children:[d.jsx("span",{className:`activity-type ${m.type}`,children:Um(m.type)}),d.jsx("span",{className:"activity-time",children:Ia(m.timestamp)})]}),d.jsx("div",{className:"activity-task",children:m.task_title||m.task_id.slice(0,8)}),O&&d.jsx("div",{className:"activity-detail",children:O})]},m.event_id)})})]})}function jv({state:u}){let s="connection-dot",c="Connecting...";return u==="live"?(s+=" live",c="Live"):(u==="reconnecting"||u==="error")&&(s+=" error",c=u==="reconnecting"?"Reconnecting...":"Sync error"),d.jsxs("div",{className:"connection-indicator",children:[d.jsx("div",{className:s}),d.jsx("span",{children:c})]})}function zv({tasks:u,emojiMap:s,showSubtasks:c,collapsedParents:r,activeTab:f,onTabChange:g,onToggleCollapse:y,onCardClick:p,searchQuery:T}){const m=Bm(u),S=T?"No matching tasks":"No tasks";return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"mobile-tabs",children:Yi.map(E=>d.jsxs("div",{className:`mobile-tab${f===E?" active":""}`,onClick:()=>g(E),children:[Ir[E],d.jsx("span",{className:"mobile-tab-badge",children:(m[E]||[]).length})]},E))}),d.jsx("div",{className:"mobile-cards-container",children:Yi.map(E=>{const O=m[E]||[];return d.jsx("div",{className:`mobile-cards${f===E?" active":""}`,"data-status":E,children:O.length===0?d.jsx("div",{className:"empty-column",children:S}):O.map(R=>d.jsx(Ym,{task:R,emojiInfo:s.get(R.task_id),showSubtasks:c,isCollapsed:r.has(R.task_id),onToggleCollapse:y,onClick:p},R.task_id))},E)})})]})}function Rm(u){return u.trim().replace(/\s+/g," ").slice(0,120)}function Mv(){const u=z.useMemo(()=>w0(),[]),s=z.useMemo(()=>H0(),[]),[c,r]=z.useState(s.view||u.activeView||"kanban"),[f,g]=z.useState(s.since||u.dateFilter||"3d"),[y,p]=z.useState(s.project??u.projectFilter??""),[T,m]=z.useState(s.assignee??u.assigneeFilter??""),[S,E]=z.useState(s.tag??u.tagFilter??""),[O,R]=z.useState(s.q!==void 0?Rm(s.q):u.taskSearch||""),[Q,$]=z.useState(s.subtasks!==void 0?s.subtasks!=="0":u.showSubtasks),[ie,ye]=z.useState(u.columnVisibility||[...Yi]),[pe,oe]=z.useState(()=>new Set(u.collapsedParents||[])),[I,fe]=z.useState(s.tab||u.activeTab||"ready"),[ne,Z]=z.useState(s.activity==="1"),[X,be]=z.useState(s.activityAssignee??u.activityAssigneeFilter??""),[Ce,he]=z.useState(s.activityQ??u.activityKeywordFilter??""),[U,H]=z.useState(s.task??null),[ue,Se]=z.useState(s.selectedAgent??null),[M,Y]=z.useState(!1),[ee,_e]=z.useState(!1),[xe,b]=z.useState("connecting"),[L,C]=z.useState(u.railCollapsed),[V,J]=z.useState(null),ce=z.useMemo(()=>{if(s.month){const K=/^(\d{4})-(0[1-9]|1[0-2])$/.exec(s.month);if(K)return{year:Number(K[1]),month:Number(K[2])-1}}return null},[s.month]),[me,Ge]=z.useState((ce==null?void 0:ce.year)??new Date().getFullYear()),[De,It]=z.useState((ce==null?void 0:ce.month)??new Date().getMonth()),ht=c==="calendar"?`${me}-${String(De+1).padStart(2,"0")}`:void 0,{tasks:Oe,refresh:vt}=k0({since:ht?void 0:f,project:y||void 0,dueMonth:ht,tag:S||void 0}),{events:it,refresh:bt}=j0(),{stats:Ot,refresh:pl}=z0(),kt=z.useCallback(()=>{vt(),bt(),pl()},[vt,bt,pl]),[Pt,el]=z.useState(0);R0(()=>{b("live"),kt(),el(K=>K+1)});const{results:Xt,total:wl}=U0(O),El=O.trim().length>=2,ut=z.useCallback(()=>{L0({dateFilter:f,projectFilter:y,assigneeFilter:T,activityAssigneeFilter:X,activityKeywordFilter:Ce,taskSearch:O,columnVisibility:ie,showSubtasks:Q,collapsedParents:Array.from(pe),activeView:c,tagFilter:S,activeTab:I,railCollapsed:L})},[f,y,T,S,X,Ce,O,ie,Q,pe,c,I,L]),Nl=z.useCallback(()=>{B0({view:c,since:f,calendarYear:me,calendarMonth:De,project:y,assignee:T,searchQuery:O,showSubtasks:Q,activeTab:I,tag:S,activityOpen:ne,activityAssignee:X,activityKeyword:Ce,selectedTaskId:U,selectedAgent:ue})},[c,f,me,De,y,T,O,Q,I,S,ne,X,Ce,U,ue]);z.useEffect(()=>{ut(),Nl()},[ut,Nl]);const Qt=z.useMemo(()=>El?new Set(Xt.map(K=>K.task_id)):null,[El,Xt]),Et=z.useMemo(()=>{let K=Q?Oe:Oe.filter(te=>!te.parent_id);if(Qt&&(K=K.filter(te=>Qt.has(te.task_id))),T&&(K=K.filter(te=>za(te.assignee)===T)),Q){const te=new Set(K.map(P=>P.task_id));K=K.filter(P=>!P.parent_id||!te.has(P.parent_id)?!0:!pe.has(P.parent_id))}return K},[Oe,Q,T,pe,Qt]),kl=z.useMemo(()=>El?wl:0,[El,wl]),Ma=z.useMemo(()=>Y0(Oe),[Oe]),Ca=z.useMemo(()=>{let K=Q?Oe:Oe.filter(ke=>!ke.parent_id);const te=new Set(ie);K=K.filter(ke=>te.has(Gr(ke)));const P=new Map;for(const ke of K){const mt=za(ke.assignee);mt&&P.set(mt,(P.get(mt)??0)+1)}return Array.from(P.entries()).sort(([ke],[mt])=>ke.localeCompare(mt,void 0,{sensitivity:"base"})).map(([ke,mt])=>({name:ke,count:mt}))},[Oe,Q,ie]),Ra=z.useMemo(()=>{const K=new Map;for(const te of Oe)if(te.tags)for(const P of te.tags)K.set(P,(K.get(P)??0)+1);return Array.from(K.entries()).sort(([te],[P])=>te.localeCompare(P)).map(([te,P])=>({name:te,count:P}))},[Oe]),Ll=z.useMemo(()=>{if(El)return new Set(Xt.map(P=>P.task_id));let K=Q?Oe:Oe.filter(P=>!P.parent_id);const te=new Set(ie);return K=K.filter(P=>te.has(Gr(P))),new Set(K.map(P=>P.task_id))},[Oe,Q,ie,El,Xt]),tl=z.useMemo(()=>{const K=Ce.trim().toLowerCase(),te=K.length>=3?K:"";return it.filter(P=>{var ke;if(!Ll.has(P.task_id))return!1;if(te){const mt=typeof P.task_title=="string"?P.task_title.toLowerCase():"",Oa=typeof P.task_description=="string"?P.task_description.toLowerCase():"";if(!mt.includes(te)&&!Oa.includes(te))return!1}return!(X&&(za(P.task_assignee)||za((ke=P.data)==null?void 0:ke.assignee))!==X)})},[it,Ll,X,Ce]),st=z.useMemo(()=>{var te;const K=new Map;for(const P of it){if(!Ll.has(P.task_id))continue;const ke=za(P.task_assignee)||za((te=P.data)==null?void 0:te.assignee);ke&&(K.has(ke)||K.set(ke,new Set),K.get(ke).add(P.task_id))}return Array.from(K.entries()).sort(([P],[ke])=>P.localeCompare(ke,void 0,{sensitivity:"base"})).map(([P,ke])=>({name:P,count:ke.size}))},[it,Ll]),Fe=z.useMemo(()=>Oe.filter(K=>(K.subtask_total??0)>0).map(K=>K.task_id),[Oe]),et=z.useMemo(()=>Fe.filter(K=>pe.has(K)).length,[Fe,pe]),aa=z.useCallback(K=>{oe(te=>{const P=new Set(te);return P.has(K)?P.delete(K):P.add(K),P})},[]),Da=z.useCallback(()=>{oe(new Set(Fe))},[Fe]),wn=z.useCallback(()=>{oe(new Set)},[]),gl=z.useCallback(K=>{r(K),kt()},[kt]),yl=z.useCallback(K=>{g(K)},[]),na=z.useCallback(K=>{p(K)},[]),jt=z.useCallback((K,te)=>{Ge(K),It(te)},[]);z.useEffect(()=>{function K(te){if(te.key==="Escape"){if(U){H(null);return}if(ne){Z(!1);return}if(M){Y(!1);return}return}const P=te.target;if(!(P!=null&&P.closest("input, textarea, select")||P!=null&&P.isContentEditable)){if(te.key==="/"){te.preventDefault();const ke=document.getElementById("taskSearchInput");ke==null||ke.focus(),ke==null||ke.select();return}if(te.key==="?"){te.preventDefault(),Y(!0);return}te.key.toLowerCase()==="a"&&(te.preventDefault(),Z(ke=>!ke))}}return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[U,ne,M]);const ia=(Ot==null?void 0:Ot.projects)??[];return d.jsxs("div",{className:`app${L?" rail-collapsed":""}`,children:[d.jsx(V0,{view:c,onViewChange:gl,collapsed:L,onToggleCollapse:()=>C(K=>!K)}),d.jsxs("div",{className:"main-area",children:[d.jsxs("header",{className:"top-bar",children:[c==="agents"&&V&&d.jsxs("span",{className:"agent-ops-fleet-label",children:[d.jsx("span",{className:"agent-ops-fleet-dot",style:{background:"var(--status-in-progress)"}}),V.active," active",d.jsx("span",{className:"agent-ops-fleet-separator",children:"·"}),d.jsx("span",{className:"agent-ops-fleet-dot",style:{background:"var(--status-backlog)"}}),V.idle," idle"]}),d.jsx(K0,{since:f,onSinceChange:yl,projects:ia,project:y,onProjectChange:na,assignees:Ca,assignee:T,onAssigneeChange:m,tags:Ra,tag:S,onTagChange:E,searchQuery:O,onSearchChange:K=>R(Rm(K)),searchMatchCount:kl,showDateFilter:c!=="calendar",mobileFiltersOpen:ee,view:c,columnVisibility:ie,onColumnVisibilityChange:ye,showSubtasks:Q,onShowSubtasksChange:$,parentCount:Fe.length,collapsedCount:et,onCollapseAll:Da,onExpandAll:wn,onShowShortcuts:()=>Y(!0)}),d.jsxs("div",{className:"top-bar-right",children:[d.jsx(jv,{state:xe}),d.jsx("button",{className:"activity-btn",onClick:()=>Z(!0),children:"Activity"})]})]}),c==="kanban"&&d.jsxs(d.Fragment,{children:[d.jsx(zv,{tasks:Et,emojiMap:Ma,showSubtasks:Q,collapsedParents:pe,activeTab:I,onTabChange:fe,onToggleCollapse:aa,onCardClick:H,searchQuery:O}),d.jsx(J0,{tasks:Et,emojiMap:Ma,showSubtasks:Q,collapsedParents:pe,columnVisibility:ie,searchQuery:O,onToggleCollapse:aa,onCardClick:H})]}),c==="calendar"&&d.jsx(F0,{tasks:Oe,year:me,month:De,onNavigate:jt,onTaskClick:H}),c==="graph"&&d.jsx(ty,{tasks:Oe,onTaskClick:H}),c==="agents"&&d.jsx(oy,{selectedAgent:ue,onSelectAgent:Se,since:f,project:y,refreshKey:Pt,onAgentCounts:(K,te)=>J({active:K,idle:te}),onTaskClick:H})]}),U&&d.jsx(Nv,{taskId:U,onClose:()=>H(null)}),d.jsx(kv,{open:ne,events:tl,assignees:st,assignee:X,onAssigneeChange:be,keyword:Ce,onKeywordChange:he,onClose:()=>Z(!1),onEventClick:H}),M&&d.jsx("div",{className:"shortcuts-modal-overlay open",onClick:K=>{K.target===K.currentTarget&&Y(!1)},children:d.jsxs("div",{className:"shortcuts-modal",children:[d.jsxs("div",{className:"shortcuts-header",children:[d.jsx("span",{className:"shortcuts-title",children:"Keyboard Shortcuts"}),d.jsx("button",{type:"button",className:"shortcuts-close",onClick:()=>Y(!1),children:"×"})]}),d.jsxs("div",{className:"shortcuts-body",children:[d.jsxs("div",{className:"shortcuts-list",children:[d.jsx("span",{className:"shortcut-key",children:"/"}),d.jsx("span",{className:"shortcut-desc",children:"Focus task search"}),d.jsx("span",{className:"shortcut-key",children:"a"}),d.jsx("span",{className:"shortcut-desc",children:"Toggle activity panel"}),d.jsx("span",{className:"shortcut-key",children:"?"}),d.jsx("span",{className:"shortcut-desc",children:"Open this shortcuts dialog"}),d.jsx("span",{className:"shortcut-key",children:"Esc"}),d.jsx("span",{className:"shortcut-desc",children:"Close open dialogs/panels"})]}),d.jsx("div",{className:"shortcuts-note",children:"Shortcuts are disabled while typing in inputs."})]})]})})]})}E0.createRoot(document.getElementById("root")).render(d.jsx(z.StrictMode,{children:d.jsx(Mv,{})}));"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(()=>{});