conductor-board 1.3.0 → 2.1.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.
- package/bin/cli.js +101 -12
- package/cli/check.js +89 -0
- package/cli/clean.js +121 -0
- package/cli/complete.js +169 -0
- package/cli/discover.js +42 -0
- package/cli/ps.js +38 -0
- package/cli/setup.js +19 -6
- package/cli/stop.js +71 -0
- package/cli/validate.js +22 -3
- package/cli/writer.js +218 -0
- package/dist/assets/index-D0azgMCk.css +1 -0
- package/dist/assets/index-DV9PNUB3.js +34 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/server/server.js +277 -12
- package/dist/assets/index-Dauby4vm.js +0 -34
- package/dist/assets/index-nvl4ljRP.css +0 -1
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{r as Cd,a as Y,j as s,m as vn,A as xn,L as m0}from"./motion-Dmvx5jlk.js";import{i as h0}from"./yaml-NA7d4LV6.js";(function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const y of document.querySelectorAll('link[rel="modulepreload"]'))o(y);new MutationObserver(y=>{for(const T of y)if(T.type==="childList")for(const M of T.addedNodes)M.tagName==="LINK"&&M.rel==="modulepreload"&&o(M)}).observe(document,{childList:!0,subtree:!0});function b(y){const T={};return y.integrity&&(T.integrity=y.integrity),y.referrerPolicy&&(T.referrerPolicy=y.referrerPolicy),y.crossOrigin==="use-credentials"?T.credentials="include":y.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function o(y){if(y.ep)return;y.ep=!0;const T=b(y);fetch(y.href,T)}})();var ff={exports:{}},yn={},sf={exports:{}},of={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* scheduler.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var xd;function g0(){return xd||(xd=1,(function(f){function d(z,H){var G=z.length;z.push(H);t:for(;0<G;){var lt=G-1>>>1,ht=z[lt];if(0<y(ht,H))z[lt]=H,z[G]=ht,G=lt;else break t}}function b(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var H=z[0],G=z.pop();if(G!==H){z[0]=G;t:for(var lt=0,ht=z.length,Ct=ht>>>1;lt<Ct;){var yt=2*(lt+1)-1,et=z[yt],X=yt+1,nt=z[X];if(0>y(et,G))X<ht&&0>y(nt,et)?(z[lt]=nt,z[X]=G,lt=X):(z[lt]=et,z[yt]=G,lt=yt);else if(X<ht&&0>y(nt,G))z[lt]=nt,z[X]=G,lt=X;else break t}}return H}function y(z,H){var G=z.sortIndex-H.sortIndex;return G!==0?G:z.id-H.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;f.unstable_now=function(){return T.now()}}else{var M=Date,_=M.now();f.unstable_now=function(){return M.now()-_}}var E=[],h=[],O=1,D=null,C=3,L=!1,I=!1,ft=!1,J=!1,Z=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,tt=typeof setImmediate<"u"?setImmediate:null;function at(z){for(var H=b(h);H!==null;){if(H.callback===null)o(h);else if(H.startTime<=z)o(h),H.sortIndex=H.expirationTime,d(E,H);else break;H=b(h)}}function _t(z){if(ft=!1,at(z),!I)if(b(E)!==null)I=!0,U||(U=!0,Qt());else{var H=b(h);H!==null&&fl(_t,H.startTime-z)}}var U=!1,St=-1,pt=5,cl=-1;function Nl(){return J?!0:!(f.unstable_now()-cl<pt)}function zl(){if(J=!1,U){var z=f.unstable_now();cl=z;var H=!0;try{t:{I=!1,ft&&(ft=!1,V(St),St=-1),L=!0;var G=C;try{l:{for(at(z),D=b(E);D!==null&&!(D.expirationTime>z&&Nl());){var lt=D.callback;if(typeof lt=="function"){D.callback=null,C=D.priorityLevel;var ht=lt(D.expirationTime<=z);if(z=f.unstable_now(),typeof ht=="function"){D.callback=ht,at(z),H=!0;break l}D===b(E)&&o(E),at(z)}else o(E);D=b(E)}if(D!==null)H=!0;else{var Ct=b(h);Ct!==null&&fl(_t,Ct.startTime-z),H=!1}}break t}finally{D=null,C=G,L=!1}H=void 0}}finally{H?Qt():U=!1}}}var Qt;if(typeof tt=="function")Qt=function(){tt(zl)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,Ml=Re.port2;Re.port1.onmessage=zl,Qt=function(){Ml.postMessage(null)}}else Qt=function(){Z(zl,0)};function fl(z,H){St=Z(function(){z(f.unstable_now())},H)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(z){z.callback=null},f.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pt=0<z?Math.floor(1e3/z):5},f.unstable_getCurrentPriorityLevel=function(){return C},f.unstable_next=function(z){switch(C){case 1:case 2:case 3:var H=3;break;default:H=C}var G=C;C=H;try{return z()}finally{C=G}},f.unstable_requestPaint=function(){J=!0},f.unstable_runWithPriority=function(z,H){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var G=C;C=z;try{return H()}finally{C=G}},f.unstable_scheduleCallback=function(z,H,G){var lt=f.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?lt+G:lt):G=lt,z){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=G+ht,z={id:O++,callback:H,priorityLevel:z,startTime:G,expirationTime:ht,sortIndex:-1},G>lt?(z.sortIndex=G,d(h,z),b(E)===null&&z===b(h)&&(ft?(V(St),St=-1):ft=!0,fl(_t,G-lt))):(z.sortIndex=ht,d(E,z),I||L||(I=!0,U||(U=!0,Qt()))),z},f.unstable_shouldYield=Nl,f.unstable_wrapCallback=function(z){var H=C;return function(){var G=C;C=H;try{return z.apply(this,arguments)}finally{C=G}}}})(of)),of}var pd;function y0(){return pd||(pd=1,sf.exports=g0()),sf.exports}var rf={exports:{}},Xt={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-dom.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var bd;function v0(){if(bd)return Xt;bd=1;var f=Cd();function d(E){var h="https://react.dev/errors/"+E;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)h+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+E+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function b(){}var o={d:{f:b,r:function(){throw Error(d(522))},D:b,C:b,L:b,m:b,X:b,S:b,M:b},p:0,findDOMNode:null},y=Symbol.for("react.portal");function T(E,h,O){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:y,key:D==null?null:""+D,children:E,containerInfo:h,implementation:O}}var M=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(E,h){if(E==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Xt.createPortal=function(E,h){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(d(299));return T(E,h,null,O)},Xt.flushSync=function(E){var h=M.T,O=o.p;try{if(M.T=null,o.p=2,E)return E()}finally{M.T=h,o.p=O,o.d.f()}},Xt.preconnect=function(E,h){typeof E=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(E,h))},Xt.prefetchDNS=function(E){typeof E=="string"&&o.d.D(E)},Xt.preinit=function(E,h){if(typeof E=="string"&&h&&typeof h.as=="string"){var O=h.as,D=_(O,h.crossOrigin),C=typeof h.integrity=="string"?h.integrity:void 0,L=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;O==="style"?o.d.S(E,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:D,integrity:C,fetchPriority:L}):O==="script"&&o.d.X(E,{crossOrigin:D,integrity:C,fetchPriority:L,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Xt.preinitModule=function(E,h){if(typeof E=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var O=_(h.as,h.crossOrigin);o.d.M(E,{crossOrigin:O,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(E)},Xt.preload=function(E,h){if(typeof E=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var O=h.as,D=_(O,h.crossOrigin);o.d.L(E,O,{crossOrigin:D,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Xt.preloadModule=function(E,h){if(typeof E=="string")if(h){var O=_(h.as,h.crossOrigin);o.d.m(E,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:O,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(E)},Xt.requestFormReset=function(E){o.d.r(E)},Xt.unstable_batchedUpdates=function(E,h){return E(h)},Xt.useFormState=function(E,h,O){return M.H.useFormState(E,h,O)},Xt.useFormStatus=function(){return M.H.useHostTransitionStatus()},Xt.version="19.2.7",Xt}var Sd;function x0(){if(Sd)return rf.exports;Sd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(d){console.error(d)}}return f(),rf.exports=v0(),rf.exports}/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom-client.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Nd;function p0(){if(Nd)return yn;Nd=1;var f=y0(),d=Cd(),b=x0();function o(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function T(t){var l=t,e=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(e=l.return),t=l.return;while(t)}return l.tag===3?e:null}function M(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function _(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function E(t){if(T(t)!==t)throw Error(o(188))}function h(t){var l=t.alternate;if(!l){if(l=T(t),l===null)throw Error(o(188));return l!==t?null:t}for(var e=t,a=l;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return E(n),t;if(u===a)return E(n),l;u=u.sibling}throw Error(o(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===e){i=!0,e=n,a=u;break}if(c===a){i=!0,a=n,e=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===e){i=!0,e=u,a=n;break}if(c===a){i=!0,a=u,e=n;break}c=c.sibling}if(!i)throw Error(o(189))}}if(e.alternate!==a)throw Error(o(190))}if(e.tag!==3)throw Error(o(188));return e.stateNode.current===e?t:l}function O(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=O(t),l!==null)return l;t=t.sibling}return null}var D=Object.assign,C=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),ft=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),tt=Symbol.for("react.context"),at=Symbol.for("react.forward_ref"),_t=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),St=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),cl=Symbol.for("react.activity"),Nl=Symbol.for("react.memo_cache_sentinel"),zl=Symbol.iterator;function Qt(t){return t===null||typeof t!="object"?null:(t=zl&&t[zl]||t["@@iterator"],typeof t=="function"?t:null)}var Re=Symbol.for("react.client.reference");function Ml(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Re?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ft:return"Fragment";case Z:return"Profiler";case J:return"StrictMode";case _t:return"Suspense";case U:return"SuspenseList";case cl:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case I:return"Portal";case tt:return t.displayName||"Context";case V:return(t._context.displayName||"Context")+".Consumer";case at:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case St:return l=t.displayName||null,l!==null?l:Ml(t.type)||"Memo";case pt:l=t._payload,t=t._init;try{return Ml(t(l))}catch{}}return null}var fl=Array.isArray,z=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=b.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},lt=[],ht=-1;function Ct(t){return{current:t}}function yt(t){0>ht||(t.current=lt[ht],lt[ht]=null,ht--)}function et(t,l){ht++,lt[ht]=t.current,t.current=l}var X=Ct(null),nt=Ct(null),Zt=Ct(null),bn=Ct(null);function Sn(t,l){switch(et(Zt,l),et(nt,t),et(X,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?Qr(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=Qr(l),t=Zr(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}yt(X),et(X,t)}function Ye(){yt(X),yt(nt),yt(Zt)}function Zu(t){t.memoizedState!==null&&et(bn,t);var l=X.current,e=Zr(l,t.type);l!==e&&(et(nt,t),et(X,e))}function Nn(t){nt.current===t&&(yt(X),yt(nt)),bn.current===t&&(yt(bn),dn._currentValue=G)}var Lu,yf;function xe(t){if(Lu===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\n( *(at )?)/);Lu=l&&l[1]||"",yf=-1<e.stack.indexOf(`
|
|
26
|
-
at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
-
`+Lu+t+yf}var Vu=!1;function wu(t,l){if(!t||Vu)return"";Vu=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(S){var p=S}Reflect.construct(t,[],A)}else{try{A.call()}catch(S){p=S}t.call(A.prototype)}}else{try{throw Error()}catch(S){p=S}(A=t())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(S){if(S&&p&&typeof S.stack=="string")return[S.stack,p.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var r=i.split(`
|
|
28
|
-
`),x=c.split(`
|
|
29
|
-
`);for(n=a=0;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;for(;n<x.length&&!x[n].includes("DetermineComponentFrameRoot");)n++;if(a===r.length||n===x.length)for(a=r.length-1,n=x.length-1;1<=a&&0<=n&&r[a]!==x[n];)n--;for(;1<=a&&0<=n;a--,n--)if(r[a]!==x[n]){if(a!==1||n!==1)do if(a--,n--,0>n||r[a]!==x[n]){var N=`
|
|
30
|
-
`+r[a].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=a&&0<=n);break}}}finally{Vu=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?xe(e):""}function Vd(t,l){switch(t.tag){case 26:case 27:case 5:return xe(t.type);case 16:return xe("Lazy");case 13:return t.child!==l&&l!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return wu(t.type,!1);case 11:return wu(t.type.render,!1);case 1:return wu(t.type,!0);case 31:return xe("Activity");default:return""}}function vf(t){try{var l="",e=null;do l+=Vd(t,e),e=t,t=t.return;while(t);return l}catch(a){return`
|
|
31
|
-
Error generating stack: `+a.message+`
|
|
32
|
-
`+a.stack}}var Ku=Object.prototype.hasOwnProperty,Ju=f.unstable_scheduleCallback,ku=f.unstable_cancelCallback,wd=f.unstable_shouldYield,Kd=f.unstable_requestPaint,Ft=f.unstable_now,Jd=f.unstable_getCurrentPriorityLevel,xf=f.unstable_ImmediatePriority,pf=f.unstable_UserBlockingPriority,zn=f.unstable_NormalPriority,kd=f.unstable_LowPriority,bf=f.unstable_IdlePriority,$d=f.log,Wd=f.unstable_setDisableYieldValue,za=null,It=null;function Jl(t){if(typeof $d=="function"&&Wd(t),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(za,t)}catch{}}var Pt=Math.clz32?Math.clz32:Pd,Fd=Math.log,Id=Math.LN2;function Pd(t){return t>>>=0,t===0?32:31-(Fd(t)/Id|0)|0}var jn=256,Tn=262144,An=4194304;function pe(t){var l=t&42;if(l!==0)return l;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function En(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=pe(a):(i&=c,i!==0?n=pe(i):e||(e=c&~t,e!==0&&(n=pe(e))))):(c=a&~u,c!==0?n=pe(c):i!==0?n=pe(i):e||(e=a&~t,e!==0&&(n=pe(e)))),n===0?0:l!==0&&l!==n&&(l&u)===0&&(u=n&-n,e=l&-l,u>=e||u===32&&(e&4194048)!==0)?l:n}function ja(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function tm(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 Sf(){var t=An;return An<<=1,(An&62914560)===0&&(An=4194304),t}function $u(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Ta(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function lm(t,l,e,a,n,u){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var c=t.entanglements,r=t.expirationTimes,x=t.hiddenUpdates;for(e=i&~e;0<e;){var N=31-Pt(e),A=1<<N;c[N]=0,r[N]=-1;var p=x[N];if(p!==null)for(x[N]=null,N=0;N<p.length;N++){var S=p[N];S!==null&&(S.lane&=-536870913)}e&=~A}a!==0&&Nf(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~l))}function Nf(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var a=31-Pt(l);t.entangledLanes|=l,t.entanglements[a]=t.entanglements[a]|1073741824|e&261930}function zf(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var a=31-Pt(e),n=1<<a;n&l|t[a]&l&&(t[a]|=l),e&=~n}}function jf(t,l){var e=l&-l;return e=(e&42)!==0?1:Wu(e),(e&(t.suspendedLanes|l))!==0?0:e}function Wu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Fu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Tf(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:rd(t.type))}function Af(t,l){var e=H.p;try{return H.p=t,l()}finally{H.p=e}}var kl=Math.random().toString(36).slice(2),Bt="__reactFiber$"+kl,Vt="__reactProps$"+kl,Ge="__reactContainer$"+kl,Iu="__reactEvents$"+kl,em="__reactListeners$"+kl,am="__reactHandles$"+kl,Ef="__reactResources$"+kl,Aa="__reactMarker$"+kl;function Pu(t){delete t[Bt],delete t[Vt],delete t[Iu],delete t[em],delete t[am]}function Xe(t){var l=t[Bt];if(l)return l;for(var e=t.parentNode;e;){if(l=e[Ge]||e[Bt]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=$r(t);t!==null;){if(e=t[Bt])return e;t=$r(t)}return l}t=e,e=t.parentNode}return null}function Qe(t){if(t=t[Bt]||t[Ge]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function Ea(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(o(33))}function Ze(t){var l=t[Ef];return l||(l=t[Ef]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ut(t){t[Aa]=!0}var Mf=new Set,Of={};function be(t,l){Le(t,l),Le(t+"Capture",l)}function Le(t,l){for(Of[t]=l,t=0;t<l.length;t++)Mf.add(l[t])}var nm=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]*$"),Df={},_f={};function um(t){return Ku.call(_f,t)?!0:Ku.call(Df,t)?!1:nm.test(t)?_f[t]=!0:(Df[t]=!0,!1)}function Mn(t,l,e){if(um(l))if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":t.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,""+e)}}function On(t,l,e){if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttribute(l,""+e)}}function Ol(t,l,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttributeNS(l,e,""+a)}}function sl(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Uf(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function im(t,l,e){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.call(this,i)}}),Object.defineProperty(t,l,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function ti(t){if(!t._valueTracker){var l=Uf(t)?"checked":"value";t._valueTracker=im(t,l,""+t[l])}}function Hf(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),a="";return t&&(a=Uf(t)?t.checked?"true":"false":t.value),t=a,t!==e?(l.setValue(t),!0):!1}function Dn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var cm=/[\n"\\]/g;function ol(t){return t.replace(cm,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function li(t,l,e,a,n,u,i,c){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),l!=null?i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+sl(l)):t.value!==""+sl(l)&&(t.value=""+sl(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?ei(t,i,sl(l)):e!=null?ei(t,i,sl(e)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+sl(c):t.removeAttribute("name")}function Cf(t,l,e,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),l!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||l!=null)){ti(t);return}e=e!=null?""+sl(e):"",l=l!=null?""+sl(l):e,c||l===t.value||(t.value=l),t.defaultValue=l}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=c?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),ti(t)}function ei(t,l,e){l==="number"&&Dn(t.ownerDocument)===t||t.defaultValue===""+e||(t.defaultValue=""+e)}function Ve(t,l,e,a){if(t=t.options,l){l={};for(var n=0;n<e.length;n++)l["$"+e[n]]=!0;for(e=0;e<t.length;e++)n=l.hasOwnProperty("$"+t[e].value),t[e].selected!==n&&(t[e].selected=n),n&&a&&(t[e].defaultSelected=!0)}else{for(e=""+sl(e),l=null,n=0;n<t.length;n++){if(t[n].value===e){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}l!==null||t[n].disabled||(l=t[n])}l!==null&&(l.selected=!0)}}function Bf(t,l,e){if(l!=null&&(l=""+sl(l),l!==t.value&&(t.value=l),e==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=e!=null?""+sl(e):""}function qf(t,l,e,a){if(l==null){if(a!=null){if(e!=null)throw Error(o(92));if(fl(a)){if(1<a.length)throw Error(o(93));a=a[0]}e=a}e==null&&(e=""),l=e}e=sl(l),t.defaultValue=e,a=t.textContent,a===e&&a!==""&&a!==null&&(t.value=a),ti(t)}function we(t,l){if(l){var e=t.firstChild;if(e&&e===t.lastChild&&e.nodeType===3){e.nodeValue=l;return}}t.textContent=l}var fm=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 Rf(t,l,e){var a=l.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":a?t.setProperty(l,e):typeof e!="number"||e===0||fm.has(l)?l==="float"?t.cssFloat=e:t[l]=(""+e).trim():t[l]=e+"px"}function Yf(t,l,e){if(l!=null&&typeof l!="object")throw Error(o(62));if(t=t.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in l)a=l[n],l.hasOwnProperty(n)&&e[n]!==a&&Rf(t,n,a)}else for(var u in l)l.hasOwnProperty(u)&&Rf(t,u,l[u])}function ai(t){if(t.indexOf("-")===-1)return!1;switch(t){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 sm=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"]]),om=/^[\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 _n(t){return om.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Dl(){}var ni=null;function ui(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ke=null,Je=null;function Gf(t){var l=Qe(t);if(l&&(t=l.stateNode)){var e=t[Vt]||null;t:switch(t=l.stateNode,l.type){case"input":if(li(t,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),l=e.name,e.type==="radio"&&l!=null){for(e=t;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+ol(""+l)+'"][type="radio"]'),l=0;l<e.length;l++){var a=e[l];if(a!==t&&a.form===t.form){var n=a[Vt]||null;if(!n)throw Error(o(90));li(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(l=0;l<e.length;l++)a=e[l],a.form===t.form&&Hf(a)}break t;case"textarea":Bf(t,e.value,e.defaultValue);break t;case"select":l=e.value,l!=null&&Ve(t,!!e.multiple,l,!1)}}}var ii=!1;function Xf(t,l,e){if(ii)return t(l,e);ii=!0;try{var a=t(l);return a}finally{if(ii=!1,(Ke!==null||Je!==null)&&(xu(),Ke&&(l=Ke,t=Je,Je=Ke=null,Gf(l),t)))for(l=0;l<t.length;l++)Gf(t[l])}}function Ma(t,l){var e=t.stateNode;if(e===null)return null;var a=e[Vt]||null;if(a===null)return null;e=a[l];t:switch(l){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(e&&typeof e!="function")throw Error(o(231,l,typeof e));return e}var _l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ci=!1;if(_l)try{var Oa={};Object.defineProperty(Oa,"passive",{get:function(){ci=!0}}),window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{ci=!1}var $l=null,fi=null,Un=null;function Qf(){if(Un)return Un;var t,l=fi,e=l.length,a,n="value"in $l?$l.value:$l.textContent,u=n.length;for(t=0;t<e&&l[t]===n[t];t++);var i=e-t;for(a=1;a<=i&&l[e-a]===n[u-a];a++);return Un=n.slice(t,1<a?1-a:void 0)}function Hn(t){var l=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function Cn(){return!0}function Zf(){return!1}function wt(t){function l(e,a,n,u,i){this._reactName=e,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(e=t[c],this[c]=e?e(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Cn:Zf,this.isPropagationStopped=Zf,this}return D(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=Cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=Cn)},persist:function(){},isPersistent:Cn}),l}var Se={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bn=wt(Se),Da=D({},Se,{view:0,detail:0}),rm=wt(Da),si,oi,_a,qn=D({},Da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:di,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==_a&&(_a&&t.type==="mousemove"?(si=t.screenX-_a.screenX,oi=t.screenY-_a.screenY):oi=si=0,_a=t),si)},movementY:function(t){return"movementY"in t?t.movementY:oi}}),Lf=wt(qn),dm=D({},qn,{dataTransfer:0}),mm=wt(dm),hm=D({},Da,{relatedTarget:0}),ri=wt(hm),gm=D({},Se,{animationName:0,elapsedTime:0,pseudoElement:0}),ym=wt(gm),vm=D({},Se,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),xm=wt(vm),pm=D({},Se,{data:0}),Vf=wt(pm),bm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sm={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"},Nm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zm(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=Nm[t])?!!l[t]:!1}function di(){return zm}var jm=D({},Da,{key:function(t){if(t.key){var l=bm[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=Hn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Sm[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:di,charCode:function(t){return t.type==="keypress"?Hn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Hn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Tm=wt(jm),Am=D({},qn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wf=wt(Am),Em=D({},Da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:di}),Mm=wt(Em),Om=D({},Se,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dm=wt(Om),_m=D({},qn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Um=wt(_m),Hm=D({},Se,{newState:0,oldState:0}),Cm=wt(Hm),Bm=[9,13,27,32],mi=_l&&"CompositionEvent"in window,Ua=null;_l&&"documentMode"in document&&(Ua=document.documentMode);var qm=_l&&"TextEvent"in window&&!Ua,Kf=_l&&(!mi||Ua&&8<Ua&&11>=Ua),Jf=" ",kf=!1;function $f(t,l){switch(t){case"keyup":return Bm.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ke=!1;function Rm(t,l){switch(t){case"compositionend":return Wf(l);case"keypress":return l.which!==32?null:(kf=!0,Jf);case"textInput":return t=l.data,t===Jf&&kf?null:t;default:return null}}function Ym(t,l){if(ke)return t==="compositionend"||!mi&&$f(t,l)?(t=Qf(),Un=fi=$l=null,ke=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Kf&&l.locale!=="ko"?null:l.data;default:return null}}var Gm={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 Ff(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!Gm[t.type]:l==="textarea"}function If(t,l,e,a){Ke?Je?Je.push(a):Je=[a]:Ke=a,l=Tu(l,"onChange"),0<l.length&&(e=new Bn("onChange","change",null,e,a),t.push({event:e,listeners:l}))}var Ha=null,Ca=null;function Xm(t){Br(t,0)}function Rn(t){var l=Ea(t);if(Hf(l))return t}function Pf(t,l){if(t==="change")return l}var ts=!1;if(_l){var hi;if(_l){var gi="oninput"in document;if(!gi){var ls=document.createElement("div");ls.setAttribute("oninput","return;"),gi=typeof ls.oninput=="function"}hi=gi}else hi=!1;ts=hi&&(!document.documentMode||9<document.documentMode)}function es(){Ha&&(Ha.detachEvent("onpropertychange",as),Ca=Ha=null)}function as(t){if(t.propertyName==="value"&&Rn(Ca)){var l=[];If(l,Ca,t,ui(t)),Xf(Xm,l)}}function Qm(t,l,e){t==="focusin"?(es(),Ha=l,Ca=e,Ha.attachEvent("onpropertychange",as)):t==="focusout"&&es()}function Zm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Rn(Ca)}function Lm(t,l){if(t==="click")return Rn(l)}function Vm(t,l){if(t==="input"||t==="change")return Rn(l)}function wm(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var tl=typeof Object.is=="function"?Object.is:wm;function Ba(t,l){if(tl(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;var e=Object.keys(t),a=Object.keys(l);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var n=e[a];if(!Ku.call(l,n)||!tl(t[n],l[n]))return!1}return!0}function ns(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function us(t,l){var e=ns(t);t=0;for(var a;e;){if(e.nodeType===3){if(a=t+e.textContent.length,t<=l&&a>=l)return{node:e,offset:l-t};t=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=ns(e)}}function is(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?is(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function cs(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Dn(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href=="string"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Dn(t.document)}return l}function yi(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var Km=_l&&"documentMode"in document&&11>=document.documentMode,$e=null,vi=null,qa=null,xi=!1;function fs(t,l,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;xi||$e==null||$e!==Dn(a)||(a=$e,"selectionStart"in a&&yi(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}),qa&&Ba(qa,a)||(qa=a,a=Tu(vi,"onSelect"),0<a.length&&(l=new Bn("onSelect","select",null,l,e),t.push({event:l,listeners:a}),l.target=$e)))}function Ne(t,l){var e={};return e[t.toLowerCase()]=l.toLowerCase(),e["Webkit"+t]="webkit"+l,e["Moz"+t]="moz"+l,e}var We={animationend:Ne("Animation","AnimationEnd"),animationiteration:Ne("Animation","AnimationIteration"),animationstart:Ne("Animation","AnimationStart"),transitionrun:Ne("Transition","TransitionRun"),transitionstart:Ne("Transition","TransitionStart"),transitioncancel:Ne("Transition","TransitionCancel"),transitionend:Ne("Transition","TransitionEnd")},pi={},ss={};_l&&(ss=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function ze(t){if(pi[t])return pi[t];if(!We[t])return t;var l=We[t],e;for(e in l)if(l.hasOwnProperty(e)&&e in ss)return pi[t]=l[e];return t}var os=ze("animationend"),rs=ze("animationiteration"),ds=ze("animationstart"),Jm=ze("transitionrun"),km=ze("transitionstart"),$m=ze("transitioncancel"),ms=ze("transitionend"),hs=new Map,bi="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(" ");bi.push("scrollEnd");function pl(t,l){hs.set(t,l),be(l,[t])}var Yn=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},rl=[],Fe=0,Si=0;function Gn(){for(var t=Fe,l=Si=Fe=0;l<t;){var e=rl[l];rl[l++]=null;var a=rl[l];rl[l++]=null;var n=rl[l];rl[l++]=null;var u=rl[l];if(rl[l++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&gs(e,n,u)}}function Xn(t,l,e,a){rl[Fe++]=t,rl[Fe++]=l,rl[Fe++]=e,rl[Fe++]=a,Si|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ni(t,l,e,a){return Xn(t,l,e,a),Qn(t)}function je(t,l){return Xn(t,null,null,l),Qn(t)}function gs(t,l,e){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=t.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&l!==null&&(n=31-Pt(e),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[l]:a.push(l),l.lane=e|536870912),u):null}function Qn(t){if(50<nn)throw nn=0,_c=null,Error(o(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var Ie={};function Wm(t,l,e,a){this.tag=t,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,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 ll(t,l,e,a){return new Wm(t,l,e,a)}function zi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ul(t,l){var e=t.alternate;return e===null?(e=ll(t.tag,l,t.key,t.mode),e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.alternate=t,t.alternate=e):(e.pendingProps=l,e.type=t.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=t.flags&65011712,e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.refCleanup=t.refCleanup,e}function ys(t,l){t.flags&=65011714;var e=t.alternate;return e===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.type=e.type,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Zn(t,l,e,a,n,u){var i=0;if(a=t,typeof t=="function")zi(t)&&(i=1);else if(typeof t=="string")i=l0(t,e,X.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case cl:return t=ll(31,e,l,n),t.elementType=cl,t.lanes=u,t;case ft:return Te(e.children,n,u,l);case J:i=8,n|=24;break;case Z:return t=ll(12,e,l,n|2),t.elementType=Z,t.lanes=u,t;case _t:return t=ll(13,e,l,n),t.elementType=_t,t.lanes=u,t;case U:return t=ll(19,e,l,n),t.elementType=U,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case tt:i=10;break t;case V:i=9;break t;case at:i=11;break t;case St:i=14;break t;case pt:i=16,a=null;break t}i=29,e=Error(o(130,t===null?"null":typeof t,"")),a=null}return l=ll(i,e,l,n),l.elementType=t,l.type=a,l.lanes=u,l}function Te(t,l,e,a){return t=ll(7,t,a,l),t.lanes=e,t}function ji(t,l,e){return t=ll(6,t,null,l),t.lanes=e,t}function vs(t){var l=ll(18,null,null,0);return l.stateNode=t,l}function Ti(t,l,e){return l=ll(4,t.children!==null?t.children:[],t.key,l),l.lanes=e,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var xs=new WeakMap;function dl(t,l){if(typeof t=="object"&&t!==null){var e=xs.get(t);return e!==void 0?e:(l={value:t,source:l,stack:vf(l)},xs.set(t,l),l)}return{value:t,source:l,stack:vf(l)}}var Pe=[],ta=0,Ln=null,Ra=0,ml=[],hl=0,Wl=null,jl=1,Tl="";function Hl(t,l){Pe[ta++]=Ra,Pe[ta++]=Ln,Ln=t,Ra=l}function ps(t,l,e){ml[hl++]=jl,ml[hl++]=Tl,ml[hl++]=Wl,Wl=t;var a=jl;t=Tl;var n=32-Pt(a)-1;a&=~(1<<n),e+=1;var u=32-Pt(l)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,jl=1<<32-Pt(l)+n|e<<n|a,Tl=u+t}else jl=1<<u|e<<n|a,Tl=t}function Ai(t){t.return!==null&&(Hl(t,1),ps(t,1,0))}function Ei(t){for(;t===Ln;)Ln=Pe[--ta],Pe[ta]=null,Ra=Pe[--ta],Pe[ta]=null;for(;t===Wl;)Wl=ml[--hl],ml[hl]=null,Tl=ml[--hl],ml[hl]=null,jl=ml[--hl],ml[hl]=null}function bs(t,l){ml[hl++]=jl,ml[hl++]=Tl,ml[hl++]=Wl,jl=l.id,Tl=l.overflow,Wl=t}var qt=null,vt=null,P=!1,Fl=null,gl=!1,Mi=Error(o(519));function Il(t){var l=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ya(dl(l,t)),Mi}function Ss(t){var l=t.stateNode,e=t.type,a=t.memoizedProps;switch(l[Bt]=t,l[Vt]=a,e){case"dialog":$("cancel",l),$("close",l);break;case"iframe":case"object":case"embed":$("load",l);break;case"video":case"audio":for(e=0;e<cn.length;e++)$(cn[e],l);break;case"source":$("error",l);break;case"img":case"image":case"link":$("error",l),$("load",l);break;case"details":$("toggle",l);break;case"input":$("invalid",l),Cf(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":$("invalid",l);break;case"textarea":$("invalid",l),qf(l,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||l.textContent===""+e||a.suppressHydrationWarning===!0||Gr(l.textContent,e)?(a.popover!=null&&($("beforetoggle",l),$("toggle",l)),a.onScroll!=null&&$("scroll",l),a.onScrollEnd!=null&&$("scrollend",l),a.onClick!=null&&(l.onclick=Dl),l=!0):l=!1,l||Il(t,!0)}function Ns(t){for(qt=t.return;qt;)switch(qt.tag){case 5:case 31:case 13:gl=!1;return;case 27:case 3:gl=!0;return;default:qt=qt.return}}function la(t){if(t!==qt)return!1;if(!P)return Ns(t),P=!0,!1;var l=t.tag,e;if((e=l!==3&&l!==27)&&((e=l===5)&&(e=t.type,e=!(e!=="form"&&e!=="button")||Kc(t.type,t.memoizedProps)),e=!e),e&&vt&&Il(t),Ns(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));vt=kr(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));vt=kr(t)}else l===27?(l=vt,de(t.type)?(t=Fc,Fc=null,vt=t):vt=l):vt=qt?vl(t.stateNode.nextSibling):null;return!0}function Ae(){vt=qt=null,P=!1}function Oi(){var t=Fl;return t!==null&&($t===null?$t=t:$t.push.apply($t,t),Fl=null),t}function Ya(t){Fl===null?Fl=[t]:Fl.push(t)}var Di=Ct(null),Ee=null,Cl=null;function Pl(t,l,e){et(Di,l._currentValue),l._currentValue=e}function Bl(t){t._currentValue=Di.current,yt(Di)}function _i(t,l,e){for(;t!==null;){var a=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),t===e)break;t=t.return}}function Ui(t,l,e,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;t:for(;u!==null;){var c=u;u=n;for(var r=0;r<l.length;r++)if(c.context===l[r]){u.lanes|=e,c=u.alternate,c!==null&&(c.lanes|=e),_i(u.return,e,t),a||(i=null);break t}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),_i(i,e,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ea(t,l,e,a){t=null;for(var n=l,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var c=n.type;tl(n.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(n===bn.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(dn):t=[dn])}n=n.return}t!==null&&Ui(l,t,e,a),l.flags|=262144}function Vn(t){for(t=t.firstContext;t!==null;){if(!tl(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Me(t){Ee=t,Cl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Rt(t){return zs(Ee,t)}function wn(t,l){return Ee===null&&Me(t),zs(t,l)}function zs(t,l){var e=l._currentValue;if(l={context:l,memoizedValue:e,next:null},Cl===null){if(t===null)throw Error(o(308));Cl=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Cl=Cl.next=l;return e}var Fm=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(e,a){t.push(a)}};this.abort=function(){l.aborted=!0,t.forEach(function(e){return e()})}},Im=f.unstable_scheduleCallback,Pm=f.unstable_NormalPriority,At={$$typeof:tt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hi(){return{controller:new Fm,data:new Map,refCount:0}}function Ga(t){t.refCount--,t.refCount===0&&Im(Pm,function(){t.controller.abort()})}var Xa=null,Ci=0,aa=0,na=null;function th(t,l){if(Xa===null){var e=Xa=[];Ci=0,aa=Rc(),na={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Ci++,l.then(js,js),l}function js(){if(--Ci===0&&Xa!==null){na!==null&&(na.status="fulfilled");var t=Xa;Xa=null,aa=0,na=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function lh(t,l){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return t.then(function(){a.status="fulfilled",a.value=l;for(var n=0;n<e.length;n++)(0,e[n])(l)},function(n){for(a.status="rejected",a.reason=n,n=0;n<e.length;n++)(0,e[n])(void 0)}),a}var Ts=z.S;z.S=function(t,l){sr=Ft(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&th(t,l),Ts!==null&&Ts(t,l)};var Oe=Ct(null);function Bi(){var t=Oe.current;return t!==null?t:gt.pooledCache}function Kn(t,l){l===null?et(Oe,Oe.current):et(Oe,l.pool)}function As(){var t=Bi();return t===null?null:{parent:At._currentValue,pool:t}}var ua=Error(o(460)),qi=Error(o(474)),Jn=Error(o(542)),kn={then:function(){}};function Es(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ms(t,l,e){switch(e=t[e],e===void 0?t.push(l):e!==l&&(l.then(Dl,Dl),l=e),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Ds(t),t;default:if(typeof l.status=="string")l.then(Dl,Dl);else{if(t=gt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=l,t.status="pending",t.then(function(a){if(l.status==="pending"){var n=l;n.status="fulfilled",n.value=a}},function(a){if(l.status==="pending"){var n=l;n.status="rejected",n.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Ds(t),t}throw _e=l,ua}}function De(t){try{var l=t._init;return l(t._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(_e=e,ua):e}}var _e=null;function Os(){if(_e===null)throw Error(o(459));var t=_e;return _e=null,t}function Ds(t){if(t===ua||t===Jn)throw Error(o(483))}var ia=null,Qa=0;function $n(t){var l=Qa;return Qa+=1,ia===null&&(ia=[]),Ms(ia,t,l)}function Za(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function Wn(t,l){throw l.$$typeof===C?Error(o(525)):(t=Object.prototype.toString.call(l),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function _s(t){function l(g,m){if(t){var v=g.deletions;v===null?(g.deletions=[m],g.flags|=16):v.push(m)}}function e(g,m){if(!t)return null;for(;m!==null;)l(g,m),m=m.sibling;return null}function a(g){for(var m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function n(g,m){return g=Ul(g,m),g.index=0,g.sibling=null,g}function u(g,m,v){return g.index=v,t?(v=g.alternate,v!==null?(v=v.index,v<m?(g.flags|=67108866,m):v):(g.flags|=67108866,m)):(g.flags|=1048576,m)}function i(g){return t&&g.alternate===null&&(g.flags|=67108866),g}function c(g,m,v,j){return m===null||m.tag!==6?(m=ji(v,g.mode,j),m.return=g,m):(m=n(m,v),m.return=g,m)}function r(g,m,v,j){var R=v.type;return R===ft?N(g,m,v.props.children,j,v.key):m!==null&&(m.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===pt&&De(R)===m.type)?(m=n(m,v.props),Za(m,v),m.return=g,m):(m=Zn(v.type,v.key,v.props,null,g.mode,j),Za(m,v),m.return=g,m)}function x(g,m,v,j){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Ti(v,g.mode,j),m.return=g,m):(m=n(m,v.children||[]),m.return=g,m)}function N(g,m,v,j,R){return m===null||m.tag!==7?(m=Te(v,g.mode,j,R),m.return=g,m):(m=n(m,v),m.return=g,m)}function A(g,m,v){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=ji(""+m,g.mode,v),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case L:return v=Zn(m.type,m.key,m.props,null,g.mode,v),Za(v,m),v.return=g,v;case I:return m=Ti(m,g.mode,v),m.return=g,m;case pt:return m=De(m),A(g,m,v)}if(fl(m)||Qt(m))return m=Te(m,g.mode,v,null),m.return=g,m;if(typeof m.then=="function")return A(g,$n(m),v);if(m.$$typeof===tt)return A(g,wn(g,m),v);Wn(g,m)}return null}function p(g,m,v,j){var R=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return R!==null?null:c(g,m,""+v,j);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case L:return v.key===R?r(g,m,v,j):null;case I:return v.key===R?x(g,m,v,j):null;case pt:return v=De(v),p(g,m,v,j)}if(fl(v)||Qt(v))return R!==null?null:N(g,m,v,j,null);if(typeof v.then=="function")return p(g,m,$n(v),j);if(v.$$typeof===tt)return p(g,m,wn(g,v),j);Wn(g,v)}return null}function S(g,m,v,j,R){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return g=g.get(v)||null,c(m,g,""+j,R);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case L:return g=g.get(j.key===null?v:j.key)||null,r(m,g,j,R);case I:return g=g.get(j.key===null?v:j.key)||null,x(m,g,j,R);case pt:return j=De(j),S(g,m,v,j,R)}if(fl(j)||Qt(j))return g=g.get(v)||null,N(m,g,j,R,null);if(typeof j.then=="function")return S(g,m,v,$n(j),R);if(j.$$typeof===tt)return S(g,m,v,wn(m,j),R);Wn(m,j)}return null}function B(g,m,v,j){for(var R=null,ut=null,q=m,K=m=0,F=null;q!==null&&K<v.length;K++){q.index>K?(F=q,q=null):F=q.sibling;var it=p(g,q,v[K],j);if(it===null){q===null&&(q=F);break}t&&q&&it.alternate===null&&l(g,q),m=u(it,m,K),ut===null?R=it:ut.sibling=it,ut=it,q=F}if(K===v.length)return e(g,q),P&&Hl(g,K),R;if(q===null){for(;K<v.length;K++)q=A(g,v[K],j),q!==null&&(m=u(q,m,K),ut===null?R=q:ut.sibling=q,ut=q);return P&&Hl(g,K),R}for(q=a(q);K<v.length;K++)F=S(q,g,K,v[K],j),F!==null&&(t&&F.alternate!==null&&q.delete(F.key===null?K:F.key),m=u(F,m,K),ut===null?R=F:ut.sibling=F,ut=F);return t&&q.forEach(function(ve){return l(g,ve)}),P&&Hl(g,K),R}function Q(g,m,v,j){if(v==null)throw Error(o(151));for(var R=null,ut=null,q=m,K=m=0,F=null,it=v.next();q!==null&&!it.done;K++,it=v.next()){q.index>K?(F=q,q=null):F=q.sibling;var ve=p(g,q,it.value,j);if(ve===null){q===null&&(q=F);break}t&&q&&ve.alternate===null&&l(g,q),m=u(ve,m,K),ut===null?R=ve:ut.sibling=ve,ut=ve,q=F}if(it.done)return e(g,q),P&&Hl(g,K),R;if(q===null){for(;!it.done;K++,it=v.next())it=A(g,it.value,j),it!==null&&(m=u(it,m,K),ut===null?R=it:ut.sibling=it,ut=it);return P&&Hl(g,K),R}for(q=a(q);!it.done;K++,it=v.next())it=S(q,g,K,it.value,j),it!==null&&(t&&it.alternate!==null&&q.delete(it.key===null?K:it.key),m=u(it,m,K),ut===null?R=it:ut.sibling=it,ut=it);return t&&q.forEach(function(d0){return l(g,d0)}),P&&Hl(g,K),R}function mt(g,m,v,j){if(typeof v=="object"&&v!==null&&v.type===ft&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case L:t:{for(var R=v.key;m!==null;){if(m.key===R){if(R=v.type,R===ft){if(m.tag===7){e(g,m.sibling),j=n(m,v.props.children),j.return=g,g=j;break t}}else if(m.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===pt&&De(R)===m.type){e(g,m.sibling),j=n(m,v.props),Za(j,v),j.return=g,g=j;break t}e(g,m);break}else l(g,m);m=m.sibling}v.type===ft?(j=Te(v.props.children,g.mode,j,v.key),j.return=g,g=j):(j=Zn(v.type,v.key,v.props,null,g.mode,j),Za(j,v),j.return=g,g=j)}return i(g);case I:t:{for(R=v.key;m!==null;){if(m.key===R)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){e(g,m.sibling),j=n(m,v.children||[]),j.return=g,g=j;break t}else{e(g,m);break}else l(g,m);m=m.sibling}j=Ti(v,g.mode,j),j.return=g,g=j}return i(g);case pt:return v=De(v),mt(g,m,v,j)}if(fl(v))return B(g,m,v,j);if(Qt(v)){if(R=Qt(v),typeof R!="function")throw Error(o(150));return v=R.call(v),Q(g,m,v,j)}if(typeof v.then=="function")return mt(g,m,$n(v),j);if(v.$$typeof===tt)return mt(g,m,wn(g,v),j);Wn(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,m!==null&&m.tag===6?(e(g,m.sibling),j=n(m,v),j.return=g,g=j):(e(g,m),j=ji(v,g.mode,j),j.return=g,g=j),i(g)):e(g,m)}return function(g,m,v,j){try{Qa=0;var R=mt(g,m,v,j);return ia=null,R}catch(q){if(q===ua||q===Jn)throw q;var ut=ll(29,q,null,g.mode);return ut.lanes=j,ut.return=g,ut}finally{}}}var Ue=_s(!0),Us=_s(!1),te=!1;function Ri(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yi(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function le(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ee(t,l,e){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(ct&2)!==0){var n=a.pending;return n===null?l.next=l:(l.next=n.next,n.next=l),a.pending=l,l=Qn(t),gs(t,null,e),l}return Xn(t,a,l,e),Qn(t)}function La(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,zf(t,e)}}function Gi(t,l){var e=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=l:u=u.next=l}else n=u=l;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var Xi=!1;function Va(){if(Xi){var t=na;if(t!==null)throw t}}function wa(t,l,e,a){Xi=!1;var n=t.updateQueue;te=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var r=c,x=r.next;r.next=null,i===null?u=x:i.next=x,i=r;var N=t.alternate;N!==null&&(N=N.updateQueue,c=N.lastBaseUpdate,c!==i&&(c===null?N.firstBaseUpdate=x:c.next=x,N.lastBaseUpdate=r))}if(u!==null){var A=n.baseState;i=0,N=x=r=null,c=u;do{var p=c.lane&-536870913,S=p!==c.lane;if(S?(W&p)===p:(a&p)===p){p!==0&&p===aa&&(Xi=!0),N!==null&&(N=N.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var B=t,Q=c;p=l;var mt=e;switch(Q.tag){case 1:if(B=Q.payload,typeof B=="function"){A=B.call(mt,A,p);break t}A=B;break t;case 3:B.flags=B.flags&-65537|128;case 0:if(B=Q.payload,p=typeof B=="function"?B.call(mt,A,p):B,p==null)break t;A=D({},A,p);break t;case 2:te=!0}}p=c.callback,p!==null&&(t.flags|=64,S&&(t.flags|=8192),S=n.callbacks,S===null?n.callbacks=[p]:S.push(p))}else S={lane:p,tag:c.tag,payload:c.payload,callback:c.callback,next:null},N===null?(x=N=S,r=A):N=N.next=S,i|=p;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;S=c,c=S.next,S.next=null,n.lastBaseUpdate=S,n.shared.pending=null}}while(!0);N===null&&(r=A),n.baseState=r,n.firstBaseUpdate=x,n.lastBaseUpdate=N,u===null&&(n.shared.lanes=0),ce|=i,t.lanes=i,t.memoizedState=A}}function Hs(t,l){if(typeof t!="function")throw Error(o(191,t));t.call(l)}function Cs(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;t<e.length;t++)Hs(e[t],l)}var ca=Ct(null),Fn=Ct(0);function Bs(t,l){t=Vl,et(Fn,t),et(ca,l),Vl=t|l.baseLanes}function Qi(){et(Fn,Vl),et(ca,ca.current)}function Zi(){Vl=Fn.current,yt(ca),yt(Fn)}var el=Ct(null),yl=null;function ae(t){var l=t.alternate;et(jt,jt.current&1),et(el,t),yl===null&&(l===null||ca.current!==null||l.memoizedState!==null)&&(yl=t)}function Li(t){et(jt,jt.current),et(el,t),yl===null&&(yl=t)}function qs(t){t.tag===22?(et(jt,jt.current),et(el,t),yl===null&&(yl=t)):ne()}function ne(){et(jt,jt.current),et(el,el.current)}function al(t){yt(el),yl===t&&(yl=null),yt(jt)}var jt=Ct(0);function In(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||$c(e)||Wc(e)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var ql=0,w=null,rt=null,Et=null,Pn=!1,fa=!1,He=!1,tu=0,Ka=0,sa=null,eh=0;function Nt(){throw Error(o(321))}function Vi(t,l){if(l===null)return!1;for(var e=0;e<l.length&&e<t.length;e++)if(!tl(t[e],l[e]))return!1;return!0}function wi(t,l,e,a,n,u){return ql=u,w=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,z.H=t===null||t.memoizedState===null?bo:ic,He=!1,u=e(a,n),He=!1,fa&&(u=Ys(l,e,a,n)),Rs(t),u}function Rs(t){z.H=$a;var l=rt!==null&&rt.next!==null;if(ql=0,Et=rt=w=null,Pn=!1,Ka=0,sa=null,l)throw Error(o(300));t===null||Mt||(t=t.dependencies,t!==null&&Vn(t)&&(Mt=!0))}function Ys(t,l,e,a){w=t;var n=0;do{if(fa&&(sa=null),Ka=0,fa=!1,25<=n)throw Error(o(301));if(n+=1,Et=rt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=So,u=l(e,a)}while(fa);return u}function ah(){var t=z.H,l=t.useState()[0];return l=typeof l.then=="function"?Ja(l):l,t=t.useState()[0],(rt!==null?rt.memoizedState:null)!==t&&(w.flags|=1024),l}function Ki(){var t=tu!==0;return tu=0,t}function Ji(t,l,e){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~e}function ki(t){if(Pn){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}Pn=!1}ql=0,Et=rt=w=null,fa=!1,Ka=tu=0,sa=null}function Lt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?w.memoizedState=Et=t:Et=Et.next=t,Et}function Tt(){if(rt===null){var t=w.alternate;t=t!==null?t.memoizedState:null}else t=rt.next;var l=Et===null?w.memoizedState:Et.next;if(l!==null)Et=l,rt=t;else{if(t===null)throw w.alternate===null?Error(o(467)):Error(o(310));rt=t,t={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Et===null?w.memoizedState=Et=t:Et=Et.next=t}return Et}function lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ja(t){var l=Ka;return Ka+=1,sa===null&&(sa=[]),t=Ms(sa,t,l),l=w,(Et===null?l.memoizedState:Et.next)===null&&(l=l.alternate,z.H=l===null||l.memoizedState===null?bo:ic),t}function eu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ja(t);if(t.$$typeof===tt)return Rt(t)}throw Error(o(438,String(t)))}function $i(t){var l=null,e=w.updateQueue;if(e!==null&&(l=e.memoCache),l==null){var a=w.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(n){return n.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),e===null&&(e=lu(),w.updateQueue=e),e.memoCache=l,e=l.data[l.index],e===void 0)for(e=l.data[l.index]=Array(t),a=0;a<t;a++)e[a]=Nl;return l.index++,e}function Rl(t,l){return typeof l=="function"?l(t):l}function au(t){var l=Tt();return Wi(l,rt,t)}function Wi(t,l,e){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}l.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{l=n.next;var c=i=null,r=null,x=l,N=!1;do{var A=x.lane&-536870913;if(A!==x.lane?(W&A)===A:(ql&A)===A){var p=x.revertLane;if(p===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),A===aa&&(N=!0);else if((ql&p)===p){x=x.next,p===aa&&(N=!0);continue}else A={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},r===null?(c=r=A,i=u):r=r.next=A,w.lanes|=p,ce|=p;A=x.action,He&&e(u,A),u=x.hasEagerState?x.eagerState:e(u,A)}else p={lane:A,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},r===null?(c=r=p,i=u):r=r.next=p,w.lanes|=A,ce|=A;x=x.next}while(x!==null&&x!==l);if(r===null?i=u:r.next=c,!tl(u,t.memoizedState)&&(Mt=!0,N&&(e=na,e!==null)))throw e;t.memoizedState=u,t.baseState=i,t.baseQueue=r,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Fi(t){var l=Tt(),e=l.queue;if(e===null)throw Error(o(311));e.lastRenderedReducer=t;var a=e.dispatch,n=e.pending,u=l.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);tl(u,l.memoizedState)||(Mt=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),e.lastRenderedState=u}return[u,a]}function Gs(t,l,e){var a=w,n=Tt(),u=P;if(u){if(e===void 0)throw Error(o(407));e=e()}else e=l();var i=!tl((rt||n).memoizedState,e);if(i&&(n.memoizedState=e,Mt=!0),n=n.queue,tc(Zs.bind(null,a,n,t),[t]),n.getSnapshot!==l||i||Et!==null&&Et.memoizedState.tag&1){if(a.flags|=2048,oa(9,{destroy:void 0},Qs.bind(null,a,n,e,l),null),gt===null)throw Error(o(349));u||(ql&127)!==0||Xs(a,l,e)}return e}function Xs(t,l,e){t.flags|=16384,t={getSnapshot:l,value:e},l=w.updateQueue,l===null?(l=lu(),w.updateQueue=l,l.stores=[t]):(e=l.stores,e===null?l.stores=[t]:e.push(t))}function Qs(t,l,e,a){l.value=e,l.getSnapshot=a,Ls(l)&&Vs(t)}function Zs(t,l,e){return e(function(){Ls(l)&&Vs(t)})}function Ls(t){var l=t.getSnapshot;t=t.value;try{var e=l();return!tl(t,e)}catch{return!0}}function Vs(t){var l=je(t,2);l!==null&&Wt(l,t,2)}function Ii(t){var l=Lt();if(typeof t=="function"){var e=t;if(t=e(),He){Jl(!0);try{e()}finally{Jl(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:t},l}function ws(t,l,e,a){return t.baseState=e,Wi(t,rt,typeof a=="function"?a:Rl)}function nh(t,l,e,a,n){if(iu(t))throw Error(o(485));if(t=l.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};z.T!==null?e(!0):u.isTransition=!1,a(u),e=l.pending,e===null?(u.next=l.pending=u,Ks(l,u)):(u.next=e.next,l.pending=e.next=u)}}function Ks(t,l){var e=l.action,a=l.payload,n=t.state;if(l.isTransition){var u=z.T,i={};z.T=i;try{var c=e(n,a),r=z.S;r!==null&&r(i,c),Js(t,l,c)}catch(x){Pi(t,l,x)}finally{u!==null&&i.types!==null&&(u.types=i.types),z.T=u}}else try{u=e(n,a),Js(t,l,u)}catch(x){Pi(t,l,x)}}function Js(t,l,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){ks(t,l,a)},function(a){return Pi(t,l,a)}):ks(t,l,e)}function ks(t,l,e){l.status="fulfilled",l.value=e,$s(l),t.state=e,l=t.pending,l!==null&&(e=l.next,e===l?t.pending=null:(e=e.next,l.next=e,Ks(t,e)))}function Pi(t,l,e){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=e,$s(l),l=l.next;while(l!==a)}t.action=null}function $s(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function Ws(t,l){return l}function Fs(t,l){if(P){var e=gt.formState;if(e!==null){t:{var a=w;if(P){if(vt){l:{for(var n=vt,u=gl;n.nodeType!==8;){if(!u){n=null;break l}if(n=vl(n.nextSibling),n===null){n=null;break l}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){vt=vl(n.nextSibling),a=n.data==="F!";break t}}Il(a)}a=!1}a&&(l=e[0])}}return e=Lt(),e.memoizedState=e.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:l},e.queue=a,e=vo.bind(null,w,a),a.dispatch=e,a=Ii(!1),u=uc.bind(null,w,!1,a.queue),a=Lt(),n={state:l,dispatch:null,action:t,pending:null},a.queue=n,e=nh.bind(null,w,n,u,e),n.dispatch=e,a.memoizedState=t,[l,e,!1]}function Is(t){var l=Tt();return Ps(l,rt,t)}function Ps(t,l,e){if(l=Wi(t,l,Ws)[0],t=au(Rl)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=Ja(l)}catch(i){throw i===ua?Jn:i}else a=l;l=Tt();var n=l.queue,u=n.dispatch;return e!==l.memoizedState&&(w.flags|=2048,oa(9,{destroy:void 0},uh.bind(null,n,e),null)),[a,u,t]}function uh(t,l){t.action=l}function to(t){var l=Tt(),e=rt;if(e!==null)return Ps(l,e,t);Tt(),l=l.memoizedState,e=Tt();var a=e.queue.dispatch;return e.memoizedState=t,[l,a,!1]}function oa(t,l,e,a){return t={tag:t,create:e,deps:a,inst:l,next:null},l=w.updateQueue,l===null&&(l=lu(),w.updateQueue=l),e=l.lastEffect,e===null?l.lastEffect=t.next=t:(a=e.next,e.next=t,t.next=a,l.lastEffect=t),t}function lo(){return Tt().memoizedState}function nu(t,l,e,a){var n=Lt();w.flags|=t,n.memoizedState=oa(1|l,{destroy:void 0},e,a===void 0?null:a)}function uu(t,l,e,a){var n=Tt();a=a===void 0?null:a;var u=n.memoizedState.inst;rt!==null&&a!==null&&Vi(a,rt.memoizedState.deps)?n.memoizedState=oa(l,u,e,a):(w.flags|=t,n.memoizedState=oa(1|l,u,e,a))}function eo(t,l){nu(8390656,8,t,l)}function tc(t,l){uu(2048,8,t,l)}function ih(t){w.flags|=4;var l=w.updateQueue;if(l===null)l=lu(),w.updateQueue=l,l.events=[t];else{var e=l.events;e===null?l.events=[t]:e.push(t)}}function ao(t){var l=Tt().memoizedState;return ih({ref:l,nextImpl:t}),function(){if((ct&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}function no(t,l){return uu(4,2,t,l)}function uo(t,l){return uu(4,4,t,l)}function io(t,l){if(typeof l=="function"){t=t();var e=l(t);return function(){typeof e=="function"?e():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function co(t,l,e){e=e!=null?e.concat([t]):null,uu(4,4,io.bind(null,l,t),e)}function lc(){}function fo(t,l){var e=Tt();l=l===void 0?null:l;var a=e.memoizedState;return l!==null&&Vi(l,a[1])?a[0]:(e.memoizedState=[t,l],t)}function so(t,l){var e=Tt();l=l===void 0?null:l;var a=e.memoizedState;if(l!==null&&Vi(l,a[1]))return a[0];if(a=t(),He){Jl(!0);try{t()}finally{Jl(!1)}}return e.memoizedState=[a,l],a}function ec(t,l,e){return e===void 0||(ql&1073741824)!==0&&(W&261930)===0?t.memoizedState=l:(t.memoizedState=e,t=rr(),w.lanes|=t,ce|=t,e)}function oo(t,l,e,a){return tl(e,l)?e:ca.current!==null?(t=ec(t,e,a),tl(t,l)||(Mt=!0),t):(ql&42)===0||(ql&1073741824)!==0&&(W&261930)===0?(Mt=!0,t.memoizedState=e):(t=rr(),w.lanes|=t,ce|=t,l)}function ro(t,l,e,a,n){var u=H.p;H.p=u!==0&&8>u?u:8;var i=z.T,c={};z.T=c,uc(t,!1,l,e);try{var r=n(),x=z.S;if(x!==null&&x(c,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var N=lh(r,a);ka(t,l,N,il(t))}else ka(t,l,a,il(t))}catch(A){ka(t,l,{then:function(){},status:"rejected",reason:A},il())}finally{H.p=u,i!==null&&c.types!==null&&(i.types=c.types),z.T=i}}function ch(){}function ac(t,l,e,a){if(t.tag!==5)throw Error(o(476));var n=mo(t).queue;ro(t,n,l,G,e===null?ch:function(){return ho(t),e(a)})}function mo(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:G},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function ho(t){var l=mo(t);l.next===null&&(l=t.alternate.memoizedState),ka(t,l.next.queue,{},il())}function nc(){return Rt(dn)}function go(){return Tt().memoizedState}function yo(){return Tt().memoizedState}function fh(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=il();t=le(e);var a=ee(l,t,e);a!==null&&(Wt(a,l,e),La(a,l,e)),l={cache:Hi()},t.payload=l;return}l=l.return}}function sh(t,l,e){var a=il();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},iu(t)?xo(l,e):(e=Ni(t,l,e,a),e!==null&&(Wt(e,t,a),po(e,l,a)))}function vo(t,l,e){var a=il();ka(t,l,e,a)}function ka(t,l,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(iu(t))xo(l,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,c=u(i,e);if(n.hasEagerState=!0,n.eagerState=c,tl(c,i))return Xn(t,l,n,0),gt===null&&Gn(),!1}catch{}finally{}if(e=Ni(t,l,n,a),e!==null)return Wt(e,t,a),po(e,l,a),!0}return!1}function uc(t,l,e,a){if(a={lane:2,revertLane:Rc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},iu(t)){if(l)throw Error(o(479))}else l=Ni(t,e,a,2),l!==null&&Wt(l,t,2)}function iu(t){var l=t.alternate;return t===w||l!==null&&l===w}function xo(t,l){fa=Pn=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function po(t,l,e){if((e&4194048)!==0){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,zf(t,e)}}var $a={readContext:Rt,use:eu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};$a.useEffectEvent=Nt;var bo={readContext:Rt,use:eu,useCallback:function(t,l){return Lt().memoizedState=[t,l===void 0?null:l],t},useContext:Rt,useEffect:eo,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,nu(4194308,4,io.bind(null,l,t),e)},useLayoutEffect:function(t,l){return nu(4194308,4,t,l)},useInsertionEffect:function(t,l){nu(4,2,t,l)},useMemo:function(t,l){var e=Lt();l=l===void 0?null:l;var a=t();if(He){Jl(!0);try{t()}finally{Jl(!1)}}return e.memoizedState=[a,l],a},useReducer:function(t,l,e){var a=Lt();if(e!==void 0){var n=e(l);if(He){Jl(!0);try{e(l)}finally{Jl(!1)}}}else n=l;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=sh.bind(null,w,t),[a.memoizedState,t]},useRef:function(t){var l=Lt();return t={current:t},l.memoizedState=t},useState:function(t){t=Ii(t);var l=t.queue,e=vo.bind(null,w,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:lc,useDeferredValue:function(t,l){var e=Lt();return ec(e,t,l)},useTransition:function(){var t=Ii(!1);return t=ro.bind(null,w,t.queue,!0,!1),Lt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var a=w,n=Lt();if(P){if(e===void 0)throw Error(o(407));e=e()}else{if(e=l(),gt===null)throw Error(o(349));(W&127)!==0||Xs(a,l,e)}n.memoizedState=e;var u={value:e,getSnapshot:l};return n.queue=u,eo(Zs.bind(null,a,u,t),[t]),a.flags|=2048,oa(9,{destroy:void 0},Qs.bind(null,a,u,e,l),null),e},useId:function(){var t=Lt(),l=gt.identifierPrefix;if(P){var e=Tl,a=jl;e=(a&~(1<<32-Pt(a)-1)).toString(32)+e,l="_"+l+"R_"+e,e=tu++,0<e&&(l+="H"+e.toString(32)),l+="_"}else e=eh++,l="_"+l+"r_"+e.toString(32)+"_";return t.memoizedState=l},useHostTransitionStatus:nc,useFormState:Fs,useActionState:Fs,useOptimistic:function(t){var l=Lt();l.memoizedState=l.baseState=t;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=e,l=uc.bind(null,w,!0,e),e.dispatch=l,[t,l]},useMemoCache:$i,useCacheRefresh:function(){return Lt().memoizedState=fh.bind(null,w)},useEffectEvent:function(t){var l=Lt(),e={impl:t};return l.memoizedState=e,function(){if((ct&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}},ic={readContext:Rt,use:eu,useCallback:fo,useContext:Rt,useEffect:tc,useImperativeHandle:co,useInsertionEffect:no,useLayoutEffect:uo,useMemo:so,useReducer:au,useRef:lo,useState:function(){return au(Rl)},useDebugValue:lc,useDeferredValue:function(t,l){var e=Tt();return oo(e,rt.memoizedState,t,l)},useTransition:function(){var t=au(Rl)[0],l=Tt().memoizedState;return[typeof t=="boolean"?t:Ja(t),l]},useSyncExternalStore:Gs,useId:go,useHostTransitionStatus:nc,useFormState:Is,useActionState:Is,useOptimistic:function(t,l){var e=Tt();return ws(e,rt,t,l)},useMemoCache:$i,useCacheRefresh:yo};ic.useEffectEvent=ao;var So={readContext:Rt,use:eu,useCallback:fo,useContext:Rt,useEffect:tc,useImperativeHandle:co,useInsertionEffect:no,useLayoutEffect:uo,useMemo:so,useReducer:Fi,useRef:lo,useState:function(){return Fi(Rl)},useDebugValue:lc,useDeferredValue:function(t,l){var e=Tt();return rt===null?ec(e,t,l):oo(e,rt.memoizedState,t,l)},useTransition:function(){var t=Fi(Rl)[0],l=Tt().memoizedState;return[typeof t=="boolean"?t:Ja(t),l]},useSyncExternalStore:Gs,useId:go,useHostTransitionStatus:nc,useFormState:to,useActionState:to,useOptimistic:function(t,l){var e=Tt();return rt!==null?ws(e,rt,t,l):(e.baseState=t,[t,e.queue.dispatch])},useMemoCache:$i,useCacheRefresh:yo};So.useEffectEvent=ao;function cc(t,l,e,a){l=t.memoizedState,e=e(a,l),e=e==null?l:D({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var fc={enqueueSetState:function(t,l,e){t=t._reactInternals;var a=il(),n=le(a);n.payload=l,e!=null&&(n.callback=e),l=ee(t,n,a),l!==null&&(Wt(l,t,a),La(l,t,a))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var a=il(),n=le(a);n.tag=1,n.payload=l,e!=null&&(n.callback=e),l=ee(t,n,a),l!==null&&(Wt(l,t,a),La(l,t,a))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=il(),a=le(e);a.tag=2,l!=null&&(a.callback=l),l=ee(t,a,e),l!==null&&(Wt(l,t,e),La(l,t,e))}};function No(t,l,e,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):l.prototype&&l.prototype.isPureReactComponent?!Ba(e,a)||!Ba(n,u):!0}function zo(t,l,e,a){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(e,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(e,a),l.state!==t&&fc.enqueueReplaceState(l,l.state,null)}function Ce(t,l){var e=l;if("ref"in l){e={};for(var a in l)a!=="ref"&&(e[a]=l[a])}if(t=t.defaultProps){e===l&&(e=D({},e));for(var n in t)e[n]===void 0&&(e[n]=t[n])}return e}function jo(t){Yn(t)}function To(t){console.error(t)}function Ao(t){Yn(t)}function cu(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function Eo(t,l,e){try{var a=t.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function sc(t,l,e){return e=le(e),e.tag=3,e.payload={element:null},e.callback=function(){cu(t,l)},e}function Mo(t){return t=le(t),t.tag=3,t}function Oo(t,l,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){Eo(l,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Eo(l,e,a),typeof n!="function"&&(fe===null?fe=new Set([this]):fe.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function oh(t,l,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=e.alternate,l!==null&&ea(l,e,n,!0),e=el.current,e!==null){switch(e.tag){case 31:case 13:return yl===null?pu():e.alternate===null&&zt===0&&(zt=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===kn?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([a]):l.add(a),Cc(t,a,n)),!1;case 22:return e.flags|=65536,a===kn?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([a]):e.add(a)),Cc(t,a,n)),!1}throw Error(o(435,e.tag))}return Cc(t,a,n),pu(),!1}if(P)return l=el.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=n,a!==Mi&&(t=Error(o(422),{cause:a}),Ya(dl(t,e)))):(a!==Mi&&(l=Error(o(423),{cause:a}),Ya(dl(l,e))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=dl(a,e),n=sc(t.stateNode,a,n),Gi(t,n),zt!==4&&(zt=2)),!1;var u=Error(o(520),{cause:a});if(u=dl(u,e),an===null?an=[u]:an.push(u),zt!==4&&(zt=2),l===null)return!0;a=dl(a,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=n&-n,e.lanes|=t,t=sc(e.stateNode,a,t),Gi(e,t),!1;case 1:if(l=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(fe===null||!fe.has(u))))return e.flags|=65536,n&=-n,e.lanes|=n,n=Mo(n),Oo(n,t,e,a),Gi(e,n),!1}e=e.return}while(e!==null);return!1}var oc=Error(o(461)),Mt=!1;function Yt(t,l,e,a){l.child=t===null?Us(l,null,e,a):Ue(l,t.child,e,a)}function Do(t,l,e,a,n){e=e.render;var u=l.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Me(l),a=wi(t,l,e,i,u,n),c=Ki(),t!==null&&!Mt?(Ji(t,l,n),Yl(t,l,n)):(P&&c&&Ai(l),l.flags|=1,Yt(t,l,a,n),l.child)}function _o(t,l,e,a,n){if(t===null){var u=e.type;return typeof u=="function"&&!zi(u)&&u.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=u,Uo(t,l,u,a,n)):(t=Zn(e.type,null,a,l,l.mode,n),t.ref=l.ref,t.return=l,l.child=t)}if(u=t.child,!xc(t,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:Ba,e(i,a)&&t.ref===l.ref)return Yl(t,l,n)}return l.flags|=1,t=Ul(u,a),t.ref=l.ref,t.return=l,l.child=t}function Uo(t,l,e,a,n){if(t!==null){var u=t.memoizedProps;if(Ba(u,a)&&t.ref===l.ref)if(Mt=!1,l.pendingProps=a=u,xc(t,n))(t.flags&131072)!==0&&(Mt=!0);else return l.lanes=t.lanes,Yl(t,l,n)}return rc(t,l,e,a,n)}function Ho(t,l,e,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((l.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,t!==null){for(a=l.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,l.child=null;return Co(t,l,u,e,a)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&Kn(l,u!==null?u.cachePool:null),u!==null?Bs(l,u):Qi(),qs(l);else return a=l.lanes=536870912,Co(t,l,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(Kn(l,u.cachePool),Bs(l,u),ne(),l.memoizedState=null):(t!==null&&Kn(l,null),Qi(),ne());return Yt(t,l,n,e),l.child}function Wa(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Co(t,l,e,a,n){var u=Bi();return u=u===null?null:{parent:At._currentValue,pool:u},l.memoizedState={baseLanes:e,cachePool:u},t!==null&&Kn(l,null),Qi(),qs(l),t!==null&&ea(t,l,a,!0),l.childLanes=n,null}function fu(t,l){return l=ou({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function Bo(t,l,e){return Ue(l,t.child,null,e),t=fu(l,l.pendingProps),t.flags|=2,al(l),l.memoizedState=null,t}function rh(t,l,e){var a=l.pendingProps,n=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(P){if(a.mode==="hidden")return t=fu(l,a),l.lanes=536870912,Wa(null,t);if(Li(l),(t=vt)?(t=Jr(t,gl),t=t!==null&&t.data==="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:Wl!==null?{id:jl,overflow:Tl}:null,retryLane:536870912,hydrationErrors:null},e=vs(t),e.return=l,l.child=e,qt=l,vt=null)):t=null,t===null)throw Il(l);return l.lanes=536870912,null}return fu(l,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(Li(l),n)if(l.flags&256)l.flags&=-257,l=Bo(t,l,e);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(o(558));else if(Mt||ea(t,l,e,!1),n=(e&t.childLanes)!==0,Mt||n){if(a=gt,a!==null&&(i=jf(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,je(t,i),Wt(a,t,i),oc;pu(),l=Bo(t,l,e)}else t=u.treeContext,vt=vl(i.nextSibling),qt=l,P=!0,Fl=null,gl=!1,t!==null&&bs(l,t),l=fu(l,a),l.flags|=4096;return l}return t=Ul(t.child,{mode:a.mode,children:a.children}),t.ref=l.ref,l.child=t,t.return=l,t}function su(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(o(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function rc(t,l,e,a,n){return Me(l),e=wi(t,l,e,a,void 0,n),a=Ki(),t!==null&&!Mt?(Ji(t,l,n),Yl(t,l,n)):(P&&a&&Ai(l),l.flags|=1,Yt(t,l,e,n),l.child)}function qo(t,l,e,a,n,u){return Me(l),l.updateQueue=null,e=Ys(l,a,e,n),Rs(t),a=Ki(),t!==null&&!Mt?(Ji(t,l,u),Yl(t,l,u)):(P&&a&&Ai(l),l.flags|=1,Yt(t,l,e,u),l.child)}function Ro(t,l,e,a,n){if(Me(l),l.stateNode===null){var u=Ie,i=e.contextType;typeof i=="object"&&i!==null&&(u=Rt(i)),u=new e(a,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=fc,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=a,u.state=l.memoizedState,u.refs={},Ri(l),i=e.contextType,u.context=typeof i=="object"&&i!==null?Rt(i):Ie,u.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(cc(l,e,i,a),u.state=l.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&fc.enqueueReplaceState(u,u.state,null),wa(l,a,u,n),Va(),u.state=l.memoizedState),typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(t===null){u=l.stateNode;var c=l.memoizedProps,r=Ce(e,c);u.props=r;var x=u.context,N=e.contextType;i=Ie,typeof N=="object"&&N!==null&&(i=Rt(N));var A=e.getDerivedStateFromProps;N=typeof A=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=l.pendingProps!==c,N||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||x!==i)&&zo(l,u,a,i),te=!1;var p=l.memoizedState;u.state=p,wa(l,a,u,n),Va(),x=l.memoizedState,c||p!==x||te?(typeof A=="function"&&(cc(l,e,A,a),x=l.memoizedState),(r=te||No(l,e,r,a,p,x,i))?(N||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(l.flags|=4194308)):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=x),u.props=a,u.state=x,u.context=i,a=r):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{u=l.stateNode,Yi(t,l),i=l.memoizedProps,N=Ce(e,i),u.props=N,A=l.pendingProps,p=u.context,x=e.contextType,r=Ie,typeof x=="object"&&x!==null&&(r=Rt(x)),c=e.getDerivedStateFromProps,(x=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==A||p!==r)&&zo(l,u,a,r),te=!1,p=l.memoizedState,u.state=p,wa(l,a,u,n),Va();var S=l.memoizedState;i!==A||p!==S||te||t!==null&&t.dependencies!==null&&Vn(t.dependencies)?(typeof c=="function"&&(cc(l,e,c,a),S=l.memoizedState),(N=te||No(l,e,N,a,p,S,r)||t!==null&&t.dependencies!==null&&Vn(t.dependencies))?(x||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,S,r),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,S,r)),typeof u.componentDidUpdate=="function"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=S),u.props=a,u.state=S,u.context=r,a=N):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(l.flags|=1024),a=!1)}return u=a,su(t,l),a=(l.flags&128)!==0,u||a?(u=l.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),l.flags|=1,t!==null&&a?(l.child=Ue(l,t.child,null,n),l.child=Ue(l,null,e,n)):Yt(t,l,e,n),l.memoizedState=u.state,t=l.child):t=Yl(t,l,n),t}function Yo(t,l,e,a){return Ae(),l.flags|=256,Yt(t,l,e,a),l.child}var dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(t){return{baseLanes:t,cachePool:As()}}function hc(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=ul),t}function Go(t,l,e){var a=l.pendingProps,n=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(jt.current&2)!==0),i&&(n=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(P){if(n?ae(l):ne(),(t=vt)?(t=Jr(t,gl),t=t!==null&&t.data!=="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:Wl!==null?{id:jl,overflow:Tl}:null,retryLane:536870912,hydrationErrors:null},e=vs(t),e.return=l,l.child=e,qt=l,vt=null)):t=null,t===null)throw Il(l);return Wc(t)?l.lanes=32:l.lanes=536870912,null}var c=a.children;return a=a.fallback,n?(ne(),n=l.mode,c=ou({mode:"hidden",children:c},n),a=Te(a,n,e,null),c.return=l,a.return=l,c.sibling=a,l.child=c,a=l.child,a.memoizedState=mc(e),a.childLanes=hc(t,i,e),l.memoizedState=dc,Wa(null,a)):(ae(l),gc(l,c))}var r=t.memoizedState;if(r!==null&&(c=r.dehydrated,c!==null)){if(u)l.flags&256?(ae(l),l.flags&=-257,l=yc(t,l,e)):l.memoizedState!==null?(ne(),l.child=t.child,l.flags|=128,l=null):(ne(),c=a.fallback,n=l.mode,a=ou({mode:"visible",children:a.children},n),c=Te(c,n,e,null),c.flags|=2,a.return=l,c.return=l,a.sibling=c,l.child=a,Ue(l,t.child,null,e),a=l.child,a.memoizedState=mc(e),a.childLanes=hc(t,i,e),l.memoizedState=dc,l=Wa(null,a));else if(ae(l),Wc(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var x=i.dgst;i=x,a=Error(o(419)),a.stack="",a.digest=i,Ya({value:a,source:null,stack:null}),l=yc(t,l,e)}else if(Mt||ea(t,l,e,!1),i=(e&t.childLanes)!==0,Mt||i){if(i=gt,i!==null&&(a=jf(i,e),a!==0&&a!==r.retryLane))throw r.retryLane=a,je(t,a),Wt(i,t,a),oc;$c(c)||pu(),l=yc(t,l,e)}else $c(c)?(l.flags|=192,l.child=t.child,l=null):(t=r.treeContext,vt=vl(c.nextSibling),qt=l,P=!0,Fl=null,gl=!1,t!==null&&bs(l,t),l=gc(l,a.children),l.flags|=4096);return l}return n?(ne(),c=a.fallback,n=l.mode,r=t.child,x=r.sibling,a=Ul(r,{mode:"hidden",children:a.children}),a.subtreeFlags=r.subtreeFlags&65011712,x!==null?c=Ul(x,c):(c=Te(c,n,e,null),c.flags|=2),c.return=l,a.return=l,a.sibling=c,l.child=a,Wa(null,a),a=l.child,c=t.child.memoizedState,c===null?c=mc(e):(n=c.cachePool,n!==null?(r=At._currentValue,n=n.parent!==r?{parent:r,pool:r}:n):n=As(),c={baseLanes:c.baseLanes|e,cachePool:n}),a.memoizedState=c,a.childLanes=hc(t,i,e),l.memoizedState=dc,Wa(t.child,a)):(ae(l),e=t.child,t=e.sibling,e=Ul(e,{mode:"visible",children:a.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function gc(t,l){return l=ou({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function ou(t,l){return t=ll(22,t,null,l),t.lanes=0,t}function yc(t,l,e){return Ue(l,t.child,null,e),t=gc(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function Xo(t,l,e){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l),_i(t.return,l,e)}function vc(t,l,e,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function Qo(t,l,e){var a=l.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=jt.current,c=(i&2)!==0;if(c?(i=i&1|2,l.flags|=128):i&=1,et(jt,i),Yt(t,l,a,e),a=P?Ra:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Xo(t,e,l);else if(t.tag===19)Xo(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(e=l.child,n=null;e!==null;)t=e.alternate,t!==null&&In(t)===null&&(n=e),e=e.sibling;e=n,e===null?(n=l.child,l.child=null):(n=e.sibling,e.sibling=null),vc(l,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=l.child,l.child=null;n!==null;){if(t=n.alternate,t!==null&&In(t)===null){l.child=n;break}t=n.sibling,n.sibling=e,e=n,n=t}vc(l,!0,e,null,u,a);break;case"together":vc(l,!1,null,null,void 0,a);break;default:l.memoizedState=null}return l.child}function Yl(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),ce|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(ea(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(o(153));if(l.child!==null){for(t=l.child,e=Ul(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=Ul(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function xc(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Vn(t)))}function dh(t,l,e){switch(l.tag){case 3:Sn(l,l.stateNode.containerInfo),Pl(l,At,t.memoizedState.cache),Ae();break;case 27:case 5:Zu(l);break;case 4:Sn(l,l.stateNode.containerInfo);break;case 10:Pl(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Li(l),null;break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(ae(l),l.flags|=128,null):(e&l.child.childLanes)!==0?Go(t,l,e):(ae(l),t=Yl(t,l,e),t!==null?t.sibling:null);ae(l);break;case 19:var n=(t.flags&128)!==0;if(a=(e&l.childLanes)!==0,a||(ea(t,l,e,!1),a=(e&l.childLanes)!==0),n){if(a)return Qo(t,l,e);l.flags|=128}if(n=l.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),et(jt,jt.current),a)break;return null;case 22:return l.lanes=0,Ho(t,l,e,l.pendingProps);case 24:Pl(l,At,t.memoizedState.cache)}return Yl(t,l,e)}function Zo(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)Mt=!0;else{if(!xc(t,e)&&(l.flags&128)===0)return Mt=!1,dh(t,l,e);Mt=(t.flags&131072)!==0}else Mt=!1,P&&(l.flags&1048576)!==0&&ps(l,Ra,l.index);switch(l.lanes=0,l.tag){case 16:t:{var a=l.pendingProps;if(t=De(l.elementType),l.type=t,typeof t=="function")zi(t)?(a=Ce(t,a),l.tag=1,l=Ro(null,l,t,a,e)):(l.tag=0,l=rc(null,l,t,a,e));else{if(t!=null){var n=t.$$typeof;if(n===at){l.tag=11,l=Do(null,l,t,a,e);break t}else if(n===St){l.tag=14,l=_o(null,l,t,a,e);break t}}throw l=Ml(t)||t,Error(o(306,l,""))}}return l;case 0:return rc(t,l,l.type,l.pendingProps,e);case 1:return a=l.type,n=Ce(a,l.pendingProps),Ro(t,l,a,n,e);case 3:t:{if(Sn(l,l.stateNode.containerInfo),t===null)throw Error(o(387));a=l.pendingProps;var u=l.memoizedState;n=u.element,Yi(t,l),wa(l,a,null,e);var i=l.memoizedState;if(a=i.cache,Pl(l,At,a),a!==u.cache&&Ui(l,[At],e,!0),Va(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=Yo(t,l,a,e);break t}else if(a!==n){n=dl(Error(o(424)),l),Ya(n),l=Yo(t,l,a,e);break t}else{switch(t=l.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(vt=vl(t.firstChild),qt=l,P=!0,Fl=null,gl=!0,e=Us(l,null,a,e),l.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ae(),a===n){l=Yl(t,l,e);break t}Yt(t,l,a,e)}l=l.child}return l;case 26:return su(t,l),t===null?(e=Pr(l.type,null,l.pendingProps,null))?l.memoizedState=e:P||(e=l.type,t=l.pendingProps,a=Au(Zt.current).createElement(e),a[Bt]=l,a[Vt]=t,Gt(a,e,t),Ut(a),l.stateNode=a):l.memoizedState=Pr(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Zu(l),t===null&&P&&(a=l.stateNode=Wr(l.type,l.pendingProps,Zt.current),qt=l,gl=!0,n=vt,de(l.type)?(Fc=n,vt=vl(a.firstChild)):vt=n),Yt(t,l,l.pendingProps.children,e),su(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&P&&((n=a=vt)&&(a=Zh(a,l.type,l.pendingProps,gl),a!==null?(l.stateNode=a,qt=l,vt=vl(a.firstChild),gl=!1,n=!0):n=!1),n||Il(l)),Zu(l),n=l.type,u=l.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,Kc(n,u)?a=null:i!==null&&Kc(n,i)&&(l.flags|=32),l.memoizedState!==null&&(n=wi(t,l,ah,null,null,e),dn._currentValue=n),su(t,l),Yt(t,l,a,e),l.child;case 6:return t===null&&P&&((t=e=vt)&&(e=Lh(e,l.pendingProps,gl),e!==null?(l.stateNode=e,qt=l,vt=null,t=!0):t=!1),t||Il(l)),null;case 13:return Go(t,l,e);case 4:return Sn(l,l.stateNode.containerInfo),a=l.pendingProps,t===null?l.child=Ue(l,null,a,e):Yt(t,l,a,e),l.child;case 11:return Do(t,l,l.type,l.pendingProps,e);case 7:return Yt(t,l,l.pendingProps,e),l.child;case 8:return Yt(t,l,l.pendingProps.children,e),l.child;case 12:return Yt(t,l,l.pendingProps.children,e),l.child;case 10:return a=l.pendingProps,Pl(l,l.type,a.value),Yt(t,l,a.children,e),l.child;case 9:return n=l.type._context,a=l.pendingProps.children,Me(l),n=Rt(n),a=a(n),l.flags|=1,Yt(t,l,a,e),l.child;case 14:return _o(t,l,l.type,l.pendingProps,e);case 15:return Uo(t,l,l.type,l.pendingProps,e);case 19:return Qo(t,l,e);case 31:return rh(t,l,e);case 22:return Ho(t,l,e,l.pendingProps);case 24:return Me(l),a=Rt(At),t===null?(n=Bi(),n===null&&(n=gt,u=Hi(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),l.memoizedState={parent:a,cache:n},Ri(l),Pl(l,At,n)):((t.lanes&e)!==0&&(Yi(t,l),wa(l,null,null,e),Va()),n=t.memoizedState,u=l.memoizedState,n.parent!==a?(n={parent:a,cache:a},l.memoizedState=n,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=n),Pl(l,At,a)):(a=u.cache,Pl(l,At,a),a!==n.cache&&Ui(l,[At],e,!0))),Yt(t,l,l.pendingProps.children,e),l.child;case 29:throw l.pendingProps}throw Error(o(156,l.tag))}function Gl(t){t.flags|=4}function pc(t,l,e,a,n){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(gr())t.flags|=8192;else throw _e=kn,qi}else t.flags&=-16777217}function Lo(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!nd(l))if(gr())t.flags|=8192;else throw _e=kn,qi}function ru(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?Sf():536870912,t.lanes|=l,ha|=l)}function Fa(t,l){if(!P)switch(t.tailMode){case"hidden":l=t.tail;for(var e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null;break;case"collapsed":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function xt(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,a=0;if(l)for(var n=t.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=e,l}function mh(t,l,e){var a=l.pendingProps;switch(Ei(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(l),null;case 1:return xt(l),null;case 3:return e=l.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Bl(At),Ye(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(la(l)?Gl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Oi())),xt(l),null;case 26:var n=l.type,u=l.memoizedState;return t===null?(Gl(l),u!==null?(xt(l),Lo(l,u)):(xt(l),pc(l,n,null,a,e))):u?u!==t.memoizedState?(Gl(l),xt(l),Lo(l,u)):(xt(l),l.flags&=-16777217):(t=t.memoizedProps,t!==a&&Gl(l),xt(l),pc(l,n,t,a,e)),null;case 27:if(Nn(l),e=Zt.current,n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Gl(l);else{if(!a){if(l.stateNode===null)throw Error(o(166));return xt(l),null}t=X.current,la(l)?Ss(l):(t=Wr(n,a,e),l.stateNode=t,Gl(l))}return xt(l),null;case 5:if(Nn(l),n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Gl(l);else{if(!a){if(l.stateNode===null)throw Error(o(166));return xt(l),null}if(u=X.current,la(l))Ss(l);else{var i=Au(Zt.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Bt]=l,u[Vt]=a;t:for(i=l.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=u;t:switch(Gt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Gl(l)}}return xt(l),pc(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==a&&Gl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(o(166));if(t=Zt.current,la(l)){if(t=l.stateNode,e=l.memoizedProps,a=null,n=qt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Bt]=l,t=!!(t.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Gr(t.nodeValue,e)),t||Il(l,!0)}else t=Au(t).createTextNode(a),t[Bt]=l,l.stateNode=t}return xt(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(a=la(l),e!==null){if(t===null){if(!a)throw Error(o(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Bt]=l}else Ae(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;xt(l),t=!1}else e=Oi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(al(l),l):(al(l),null);if((l.flags&128)!==0)throw Error(o(558))}return xt(l),null;case 13:if(a=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=la(l),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Bt]=l}else Ae(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;xt(l),n=!1}else n=Oi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return l.flags&256?(al(l),l):(al(l),null)}return al(l),(l.flags&128)!==0?(l.lanes=e,l):(e=a!==null,t=t!==null&&t.memoizedState!==null,e&&(a=l.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),e!==t&&e&&(l.child.flags|=8192),ru(l,l.updateQueue),xt(l),null);case 4:return Ye(),t===null&&Qc(l.stateNode.containerInfo),xt(l),null;case 10:return Bl(l.type),xt(l),null;case 19:if(yt(jt),a=l.memoizedState,a===null)return xt(l),null;if(n=(l.flags&128)!==0,u=a.rendering,u===null)if(n)Fa(a,!1);else{if(zt!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(u=In(t),u!==null){for(l.flags|=128,Fa(a,!1),t=u.updateQueue,l.updateQueue=t,ru(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)ys(e,t),e=e.sibling;return et(jt,jt.current&1|2),P&&Hl(l,a.treeForkCount),l.child}t=t.sibling}a.tail!==null&&Ft()>yu&&(l.flags|=128,n=!0,Fa(a,!1),l.lanes=4194304)}else{if(!n)if(t=In(u),t!==null){if(l.flags|=128,n=!0,t=t.updateQueue,l.updateQueue=t,ru(l,t),Fa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!P)return xt(l),null}else 2*Ft()-a.renderingStartTime>yu&&e!==536870912&&(l.flags|=128,n=!0,Fa(a,!1),l.lanes=4194304);a.isBackwards?(u.sibling=l.child,l.child=u):(t=a.last,t!==null?t.sibling=u:l.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ft(),t.sibling=null,e=jt.current,et(jt,n?e&1|2:e&1),P&&Hl(l,a.treeForkCount),t):(xt(l),null);case 22:case 23:return al(l),Zi(),a=l.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(e&536870912)!==0&&(l.flags&128)===0&&(xt(l),l.subtreeFlags&6&&(l.flags|=8192)):xt(l),e=l.updateQueue,e!==null&&ru(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==e&&(l.flags|=2048),t!==null&&yt(Oe),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Bl(At),xt(l),null;case 25:return null;case 30:return null}throw Error(o(156,l.tag))}function hh(t,l){switch(Ei(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Bl(At),Ye(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return Nn(l),null;case 31:if(l.memoizedState!==null){if(al(l),l.alternate===null)throw Error(o(340));Ae()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(al(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(o(340));Ae()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return yt(jt),null;case 4:return Ye(),null;case 10:return Bl(l.type),null;case 22:case 23:return al(l),Zi(),t!==null&&yt(Oe),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Bl(At),null;case 25:return null;default:return null}}function Vo(t,l){switch(Ei(l),l.tag){case 3:Bl(At),Ye();break;case 26:case 27:case 5:Nn(l);break;case 4:Ye();break;case 31:l.memoizedState!==null&&al(l);break;case 13:al(l);break;case 19:yt(jt);break;case 10:Bl(l.type);break;case 22:case 23:al(l),Zi(),t!==null&&yt(Oe);break;case 24:Bl(At)}}function Ia(t,l){try{var e=l.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&t)===t){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(c){ot(l,l.return,c)}}function ue(t,l,e){try{var a=l.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=l;var r=e,x=c;try{x()}catch(N){ot(n,r,N)}}}a=a.next}while(a!==u)}}catch(N){ot(l,l.return,N)}}function wo(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{Cs(l,e)}catch(a){ot(t,t.return,a)}}}function Ko(t,l,e){e.props=Ce(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(a){ot(t,l,a)}}function Pa(t,l){try{var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof e=="function"?t.refCleanup=e(a):e.current=a}}catch(n){ot(t,l,n)}}function Al(t,l){var e=t.ref,a=t.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){ot(t,l,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){ot(t,l,n)}else e.current=null}function Jo(t){var l=t.type,e=t.memoizedProps,a=t.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break t;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){ot(t,t.return,n)}}function bc(t,l,e){try{var a=t.stateNode;qh(a,t.type,e,l),a[Vt]=l}catch(n){ot(t,t.return,n)}}function ko(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&de(t.type)||t.tag===4}function Sc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ko(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&de(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Nc(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(t,l):(l=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.appendChild(t),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=Dl));else if(a!==4&&(a===27&&de(t.type)&&(e=t.stateNode,l=null),t=t.child,t!==null))for(Nc(t,l,e),t=t.sibling;t!==null;)Nc(t,l,e),t=t.sibling}function du(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?e.insertBefore(t,l):e.appendChild(t);else if(a!==4&&(a===27&&de(t.type)&&(e=t.stateNode),t=t.child,t!==null))for(du(t,l,e),t=t.sibling;t!==null;)du(t,l,e),t=t.sibling}function $o(t){var l=t.stateNode,e=t.memoizedProps;try{for(var a=t.type,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);Gt(l,a,e),l[Bt]=t,l[Vt]=e}catch(u){ot(t,t.return,u)}}var Xl=!1,Ot=!1,zc=!1,Wo=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function gh(t,l){if(t=t.containerInfo,Vc=Hu,t=cs(t),yi(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{e=(e=t.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break t}var i=0,c=-1,r=-1,x=0,N=0,A=t,p=null;l:for(;;){for(var S;A!==e||n!==0&&A.nodeType!==3||(c=i+n),A!==u||a!==0&&A.nodeType!==3||(r=i+a),A.nodeType===3&&(i+=A.nodeValue.length),(S=A.firstChild)!==null;)p=A,A=S;for(;;){if(A===t)break l;if(p===e&&++x===n&&(c=i),p===u&&++N===a&&(r=i),(S=A.nextSibling)!==null)break;A=p,p=A.parentNode}A=S}e=c===-1||r===-1?null:{start:c,end:r}}else e=null}e=e||{start:0,end:0}}else e=null;for(wc={focusedElem:t,selectionRange:e},Hu=!1,Ht=l;Ht!==null;)if(l=Ht,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Ht=t;else for(;Ht!==null;){switch(l=Ht,u=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(e=0;e<t.length;e++)n=t[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,e=l,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var B=Ce(e.type,n);t=a.getSnapshotBeforeUpdate(B,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(Q){ot(e,e.return,Q)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,e=t.nodeType,e===9)kc(t);else if(e===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":kc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=l.sibling,t!==null){t.return=l.return,Ht=t;break}Ht=l.return}}function Fo(t,l,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Zl(t,e),a&4&&Ia(5,e);break;case 1:if(Zl(t,e),a&4)if(t=e.stateNode,l===null)try{t.componentDidMount()}catch(i){ot(e,e.return,i)}else{var n=Ce(e.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(n,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){ot(e,e.return,i)}}a&64&&wo(e),a&512&&Pa(e,e.return);break;case 3:if(Zl(t,e),a&64&&(t=e.updateQueue,t!==null)){if(l=null,e.child!==null)switch(e.child.tag){case 27:case 5:l=e.child.stateNode;break;case 1:l=e.child.stateNode}try{Cs(t,l)}catch(i){ot(e,e.return,i)}}break;case 27:l===null&&a&4&&$o(e);case 26:case 5:Zl(t,e),l===null&&a&4&&Jo(e),a&512&&Pa(e,e.return);break;case 12:Zl(t,e);break;case 31:Zl(t,e),a&4&&tr(t,e);break;case 13:Zl(t,e),a&4&&lr(t,e),a&64&&(t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(e=jh.bind(null,e),Vh(t,e))));break;case 22:if(a=e.memoizedState!==null||Xl,!a){l=l!==null&&l.memoizedState!==null||Ot,n=Xl;var u=Ot;Xl=a,(Ot=l)&&!u?Ll(t,e,(e.subtreeFlags&8772)!==0):Zl(t,e),Xl=n,Ot=u}break;case 30:break;default:Zl(t,e)}}function Io(t){var l=t.alternate;l!==null&&(t.alternate=null,Io(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&Pu(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var bt=null,Kt=!1;function Ql(t,l,e){for(e=e.child;e!==null;)Po(t,l,e),e=e.sibling}function Po(t,l,e){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(za,e)}catch{}switch(e.tag){case 26:Ot||Al(e,l),Ql(t,l,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Ot||Al(e,l);var a=bt,n=Kt;de(e.type)&&(bt=e.stateNode,Kt=!1),Ql(t,l,e),sn(e.stateNode),bt=a,Kt=n;break;case 5:Ot||Al(e,l);case 6:if(a=bt,n=Kt,bt=null,Ql(t,l,e),bt=a,Kt=n,bt!==null)if(Kt)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(e.stateNode)}catch(u){ot(e,l,u)}else try{bt.removeChild(e.stateNode)}catch(u){ot(e,l,u)}break;case 18:bt!==null&&(Kt?(t=bt,wr(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,e.stateNode),Na(t)):wr(bt,e.stateNode));break;case 4:a=bt,n=Kt,bt=e.stateNode.containerInfo,Kt=!0,Ql(t,l,e),bt=a,Kt=n;break;case 0:case 11:case 14:case 15:ue(2,e,l),Ot||ue(4,e,l),Ql(t,l,e);break;case 1:Ot||(Al(e,l),a=e.stateNode,typeof a.componentWillUnmount=="function"&&Ko(e,l,a)),Ql(t,l,e);break;case 21:Ql(t,l,e);break;case 22:Ot=(a=Ot)||e.memoizedState!==null,Ql(t,l,e),Ot=a;break;default:Ql(t,l,e)}}function tr(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Na(t)}catch(e){ot(l,l.return,e)}}}function lr(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Na(t)}catch(e){ot(l,l.return,e)}}function yh(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new Wo),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new Wo),l;default:throw Error(o(435,t.tag))}}function mu(t,l){var e=yh(t);l.forEach(function(a){if(!e.has(a)){e.add(a);var n=Th.bind(null,t,a);a.then(n,n)}})}function Jt(t,l){var e=l.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=t,i=l,c=i;t:for(;c!==null;){switch(c.tag){case 27:if(de(c.type)){bt=c.stateNode,Kt=!1;break t}break;case 5:bt=c.stateNode,Kt=!1;break t;case 3:case 4:bt=c.stateNode.containerInfo,Kt=!0;break t}c=c.return}if(bt===null)throw Error(o(160));Po(u,i,n),bt=null,Kt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)er(l,t),l=l.sibling}var bl=null;function er(t,l){var e=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Jt(l,t),kt(t),a&4&&(ue(3,t,t.return),Ia(3,t),ue(5,t,t.return));break;case 1:Jt(l,t),kt(t),a&512&&(Ot||e===null||Al(e,e.return)),a&64&&Xl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(e=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var n=bl;if(Jt(l,t),kt(t),a&512&&(Ot||e===null||Al(e,e.return)),a&4){var u=e!==null?e.memoizedState:null;if(a=t.memoizedState,e===null)if(a===null)if(t.stateNode===null){t:{a=t.type,e=t.memoizedProps,n=n.ownerDocument||n;l:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Aa]||u[Bt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Gt(u,a,e),u[Bt]=t,Ut(u),a=u;break t;case"link":var i=ed("link","href",n).get(a+(e.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&u.getAttribute("rel")===(e.rel==null?null:e.rel)&&u.getAttribute("title")===(e.title==null?null:e.title)&&u.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(c,1);break l}}u=n.createElement(a),Gt(u,a,e),n.head.appendChild(u);break;case"meta":if(i=ed("meta","content",n).get(a+(e.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(e.content==null?null:""+e.content)&&u.getAttribute("name")===(e.name==null?null:e.name)&&u.getAttribute("property")===(e.property==null?null:e.property)&&u.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(c,1);break l}}u=n.createElement(a),Gt(u,a,e),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Bt]=t,Ut(u),a=u}t.stateNode=a}else ad(n,t.type,t.stateNode);else t.stateNode=ld(n,a,t.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?ad(n,t.type,t.stateNode):ld(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&bc(t,t.memoizedProps,e.memoizedProps)}break;case 27:Jt(l,t),kt(t),a&512&&(Ot||e===null||Al(e,e.return)),e!==null&&a&4&&bc(t,t.memoizedProps,e.memoizedProps);break;case 5:if(Jt(l,t),kt(t),a&512&&(Ot||e===null||Al(e,e.return)),t.flags&32){n=t.stateNode;try{we(n,"")}catch(B){ot(t,t.return,B)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,bc(t,n,e!==null?e.memoizedProps:n)),a&1024&&(zc=!0);break;case 6:if(Jt(l,t),kt(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,e=t.stateNode;try{e.nodeValue=a}catch(B){ot(t,t.return,B)}}break;case 3:if(Ou=null,n=bl,bl=Eu(l.containerInfo),Jt(l,t),bl=n,kt(t),a&4&&e!==null&&e.memoizedState.isDehydrated)try{Na(l.containerInfo)}catch(B){ot(t,t.return,B)}zc&&(zc=!1,ar(t));break;case 4:a=bl,bl=Eu(t.stateNode.containerInfo),Jt(l,t),kt(t),bl=a;break;case 12:Jt(l,t),kt(t);break;case 31:Jt(l,t),kt(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,mu(t,a)));break;case 13:Jt(l,t),kt(t),t.child.flags&8192&&t.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(gu=Ft()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,mu(t,a)));break;case 22:n=t.memoizedState!==null;var r=e!==null&&e.memoizedState!==null,x=Xl,N=Ot;if(Xl=x||n,Ot=N||r,Jt(l,t),Ot=N,Xl=x,kt(t),a&8192)t:for(l=t.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,n&&(e===null||r||Xl||Ot||Be(t)),e=null,l=t;;){if(l.tag===5||l.tag===26){if(e===null){r=e=l;try{if(u=r.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=r.stateNode;var A=r.memoizedProps.style,p=A!=null&&A.hasOwnProperty("display")?A.display:null;c.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(B){ot(r,r.return,B)}}}else if(l.tag===6){if(e===null){r=l;try{r.stateNode.nodeValue=n?"":r.memoizedProps}catch(B){ot(r,r.return,B)}}}else if(l.tag===18){if(e===null){r=l;try{var S=r.stateNode;n?Kr(S,!0):Kr(r.stateNode,!1)}catch(B){ot(r,r.return,B)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;e===l&&(e=null),l=l.return}e===l&&(e=null),l.sibling.return=l.return,l=l.sibling}a&4&&(a=t.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,mu(t,e))));break;case 19:Jt(l,t),kt(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,mu(t,a)));break;case 30:break;case 21:break;default:Jt(l,t),kt(t)}}function kt(t){var l=t.flags;if(l&2){try{for(var e,a=t.return;a!==null;){if(ko(a)){e=a;break}a=a.return}if(e==null)throw Error(o(160));switch(e.tag){case 27:var n=e.stateNode,u=Sc(t);du(t,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(we(i,""),e.flags&=-33);var c=Sc(t);du(t,c,i);break;case 3:case 4:var r=e.stateNode.containerInfo,x=Sc(t);Nc(t,x,r);break;default:throw Error(o(161))}}catch(N){ot(t,t.return,N)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function ar(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;ar(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function Zl(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Fo(t,l.alternate,l),l=l.sibling}function Be(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:ue(4,l,l.return),Be(l);break;case 1:Al(l,l.return);var e=l.stateNode;typeof e.componentWillUnmount=="function"&&Ko(l,l.return,e),Be(l);break;case 27:sn(l.stateNode);case 26:case 5:Al(l,l.return),Be(l);break;case 22:l.memoizedState===null&&Be(l);break;case 30:Be(l);break;default:Be(l)}t=t.sibling}}function Ll(t,l,e){for(e=e&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var a=l.alternate,n=t,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:Ll(n,u,e),Ia(4,u);break;case 1:if(Ll(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(x){ot(a,a.return,x)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var r=n.shared.hiddenCallbacks;if(r!==null)for(n.shared.hiddenCallbacks=null,n=0;n<r.length;n++)Hs(r[n],c)}catch(x){ot(a,a.return,x)}}e&&i&64&&wo(u),Pa(u,u.return);break;case 27:$o(u);case 26:case 5:Ll(n,u,e),e&&a===null&&i&4&&Jo(u),Pa(u,u.return);break;case 12:Ll(n,u,e);break;case 31:Ll(n,u,e),e&&i&4&&tr(n,u);break;case 13:Ll(n,u,e),e&&i&4&&lr(n,u);break;case 22:u.memoizedState===null&&Ll(n,u,e),Pa(u,u.return);break;case 30:break;default:Ll(n,u,e)}l=l.sibling}}function jc(t,l){var e=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==e&&(t!=null&&t.refCount++,e!=null&&Ga(e))}function Tc(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ga(t))}function Sl(t,l,e,a){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)nr(t,l,e,a),l=l.sibling}function nr(t,l,e,a){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Sl(t,l,e,a),n&2048&&Ia(9,l);break;case 1:Sl(t,l,e,a);break;case 3:Sl(t,l,e,a),n&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ga(t)));break;case 12:if(n&2048){Sl(t,l,e,a),t=l.stateNode;try{var u=l.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,l.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(r){ot(l,l.return,r)}}else Sl(t,l,e,a);break;case 31:Sl(t,l,e,a);break;case 13:Sl(t,l,e,a);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?Sl(t,l,e,a):tn(t,l):u._visibility&2?Sl(t,l,e,a):(u._visibility|=2,ra(t,l,e,a,(l.subtreeFlags&10256)!==0||!1)),n&2048&&jc(i,l);break;case 24:Sl(t,l,e,a),n&2048&&Tc(l.alternate,l);break;default:Sl(t,l,e,a)}}function ra(t,l,e,a,n){for(n=n&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var u=t,i=l,c=e,r=a,x=i.flags;switch(i.tag){case 0:case 11:case 15:ra(u,i,c,r,n),Ia(8,i);break;case 23:break;case 22:var N=i.stateNode;i.memoizedState!==null?N._visibility&2?ra(u,i,c,r,n):tn(u,i):(N._visibility|=2,ra(u,i,c,r,n)),n&&x&2048&&jc(i.alternate,i);break;case 24:ra(u,i,c,r,n),n&&x&2048&&Tc(i.alternate,i);break;default:ra(u,i,c,r,n)}l=l.sibling}}function tn(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var e=t,a=l,n=a.flags;switch(a.tag){case 22:tn(e,a),n&2048&&jc(a.alternate,a);break;case 24:tn(e,a),n&2048&&Tc(a.alternate,a);break;default:tn(e,a)}l=l.sibling}}var ln=8192;function da(t,l,e){if(t.subtreeFlags&ln)for(t=t.child;t!==null;)ur(t,l,e),t=t.sibling}function ur(t,l,e){switch(t.tag){case 26:da(t,l,e),t.flags&ln&&t.memoizedState!==null&&e0(e,bl,t.memoizedState,t.memoizedProps);break;case 5:da(t,l,e);break;case 3:case 4:var a=bl;bl=Eu(t.stateNode.containerInfo),da(t,l,e),bl=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ln,ln=16777216,da(t,l,e),ln=a):da(t,l,e));break;default:da(t,l,e)}}function ir(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function en(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Ht=a,fr(a,t)}ir(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cr(t),t=t.sibling}function cr(t){switch(t.tag){case 0:case 11:case 15:en(t),t.flags&2048&&ue(9,t,t.return);break;case 3:en(t);break;case 12:en(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,hu(t)):en(t);break;default:en(t)}}function hu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Ht=a,fr(a,t)}ir(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:ue(8,l,l.return),hu(l);break;case 22:e=l.stateNode,e._visibility&2&&(e._visibility&=-3,hu(l));break;default:hu(l)}t=t.sibling}}function fr(t,l){for(;Ht!==null;){var e=Ht;switch(e.tag){case 0:case 11:case 15:ue(8,e,l);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ga(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Ht=a;else t:for(e=t;Ht!==null;){a=Ht;var n=a.sibling,u=a.return;if(Io(a),a===e){Ht=null;break t}if(n!==null){n.return=u,Ht=n;break t}Ht=u}}}var vh={getCacheForType:function(t){var l=Rt(At),e=l.data.get(t);return e===void 0&&(e=t(),l.data.set(t,e)),e},cacheSignal:function(){return Rt(At).controller.signal}},xh=typeof WeakMap=="function"?WeakMap:Map,ct=0,gt=null,k=null,W=0,st=0,nl=null,ie=!1,ma=!1,Ac=!1,Vl=0,zt=0,ce=0,qe=0,Ec=0,ul=0,ha=0,an=null,$t=null,Mc=!1,gu=0,sr=0,yu=1/0,vu=null,fe=null,Dt=0,se=null,ga=null,wl=0,Oc=0,Dc=null,or=null,nn=0,_c=null;function il(){return(ct&2)!==0&&W!==0?W&-W:z.T!==null?Rc():Tf()}function rr(){if(ul===0)if((W&536870912)===0||P){var t=Tn;Tn<<=1,(Tn&3932160)===0&&(Tn=262144),ul=t}else ul=536870912;return t=el.current,t!==null&&(t.flags|=32),ul}function Wt(t,l,e){(t===gt&&(st===2||st===9)||t.cancelPendingCommit!==null)&&(ya(t,0),oe(t,W,ul,!1)),Ta(t,e),((ct&2)===0||t!==gt)&&(t===gt&&((ct&2)===0&&(qe|=e),zt===4&&oe(t,W,ul,!1)),El(t))}function dr(t,l,e){if((ct&6)!==0)throw Error(o(327));var a=!e&&(l&127)===0&&(l&t.expiredLanes)===0||ja(t,l),n=a?Sh(t,l):Hc(t,l,!0),u=a;do{if(n===0){ma&&!a&&oe(t,l,0,!1);break}else{if(e=t.current.alternate,u&&!ph(e)){n=Hc(t,l,!1),u=!1;continue}if(n===2){if(u=l,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var c=t;n=an;var r=c.current.memoizedState.isDehydrated;if(r&&(ya(c,i).flags|=256),i=Hc(c,i,!1),i!==2){if(Ac&&!r){c.errorRecoveryDisabledLanes|=u,qe|=u,n=4;break t}u=$t,$t=n,u!==null&&($t===null?$t=u:$t.push.apply($t,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){ya(t,0),oe(t,l,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((l&4194048)!==l)break;case 6:oe(a,l,ul,!ie);break t;case 2:$t=null;break;case 3:case 5:break;default:throw Error(o(329))}if((l&62914560)===l&&(n=gu+300-Ft(),10<n)){if(oe(a,l,ul,!ie),En(a,0,!0)!==0)break t;wl=l,a.timeoutHandle=Lr(mr.bind(null,a,e,$t,vu,Mc,l,ul,qe,ha,ie,u,"Throttled",-0,0),n);break t}mr(a,e,$t,vu,Mc,l,ul,qe,ha,ie,u,null,-0,0)}}break}while(!0);El(t)}function mr(t,l,e,a,n,u,i,c,r,x,N,A,p,S){if(t.timeoutHandle=-1,A=l.subtreeFlags,A&8192||(A&16785408)===16785408){A={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Dl},ur(l,u,A);var B=(u&62914560)===u?gu-Ft():(u&4194048)===u?sr-Ft():0;if(B=a0(A,B),B!==null){wl=u,t.cancelPendingCommit=B(Sr.bind(null,t,l,u,e,a,n,i,c,r,N,A,null,p,S)),oe(t,u,i,!x);return}}Sr(t,l,u,e,a,n,i,c,r)}function ph(t){for(var l=t;;){var e=l.tag;if((e===0||e===11||e===15)&&l.flags&16384&&(e=l.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var n=e[a],u=n.getSnapshot;n=n.value;try{if(!tl(u(),n))return!1}catch{return!1}}if(e=l.child,l.subtreeFlags&16384&&e!==null)e.return=l,l=e;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function oe(t,l,e,a){l&=~Ec,l&=~qe,t.suspendedLanes|=l,t.pingedLanes&=~l,a&&(t.warmLanes|=l),a=t.expirationTimes;for(var n=l;0<n;){var u=31-Pt(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&Nf(t,e,l)}function xu(){return(ct&6)===0?(un(0),!1):!0}function Uc(){if(k!==null){if(st===0)var t=k.return;else t=k,Cl=Ee=null,ki(t),ia=null,Qa=0,t=k;for(;t!==null;)Vo(t.alternate,t),t=t.return;k=null}}function ya(t,l){var e=t.timeoutHandle;e!==-1&&(t.timeoutHandle=-1,Gh(e)),e=t.cancelPendingCommit,e!==null&&(t.cancelPendingCommit=null,e()),wl=0,Uc(),gt=t,k=e=Ul(t.current,null),W=l,st=0,nl=null,ie=!1,ma=ja(t,l),Ac=!1,ha=ul=Ec=qe=ce=zt=0,$t=an=null,Mc=!1,(l&8)!==0&&(l|=l&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=l;0<a;){var n=31-Pt(a),u=1<<n;l|=t[n],a&=~u}return Vl=l,Gn(),e}function hr(t,l){w=null,z.H=$a,l===ua||l===Jn?(l=Os(),st=3):l===qi?(l=Os(),st=4):st=l===oc?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,nl=l,k===null&&(zt=1,cu(t,dl(l,t.current)))}function gr(){var t=el.current;return t===null?!0:(W&4194048)===W?yl===null:(W&62914560)===W||(W&536870912)!==0?t===yl:!1}function yr(){var t=z.H;return z.H=$a,t===null?$a:t}function vr(){var t=z.A;return z.A=vh,t}function pu(){zt=4,ie||(W&4194048)!==W&&el.current!==null||(ma=!0),(ce&134217727)===0&&(qe&134217727)===0||gt===null||oe(gt,W,ul,!1)}function Hc(t,l,e){var a=ct;ct|=2;var n=yr(),u=vr();(gt!==t||W!==l)&&(vu=null,ya(t,l)),l=!1;var i=zt;t:do try{if(st!==0&&k!==null){var c=k,r=nl;switch(st){case 8:Uc(),i=6;break t;case 3:case 2:case 9:case 6:el.current===null&&(l=!0);var x=st;if(st=0,nl=null,va(t,c,r,x),e&&ma){i=0;break t}break;default:x=st,st=0,nl=null,va(t,c,r,x)}}bh(),i=zt;break}catch(N){hr(t,N)}while(!0);return l&&t.shellSuspendCounter++,Cl=Ee=null,ct=a,z.H=n,z.A=u,k===null&&(gt=null,W=0,Gn()),i}function bh(){for(;k!==null;)xr(k)}function Sh(t,l){var e=ct;ct|=2;var a=yr(),n=vr();gt!==t||W!==l?(vu=null,yu=Ft()+500,ya(t,l)):ma=ja(t,l);t:do try{if(st!==0&&k!==null){l=k;var u=nl;l:switch(st){case 1:st=0,nl=null,va(t,l,u,1);break;case 2:case 9:if(Es(u)){st=0,nl=null,pr(l);break}l=function(){st!==2&&st!==9||gt!==t||(st=7),El(t)},u.then(l,l);break t;case 3:st=7;break t;case 4:st=5;break t;case 7:Es(u)?(st=0,nl=null,pr(l)):(st=0,nl=null,va(t,l,u,7));break;case 5:var i=null;switch(k.tag){case 26:i=k.memoizedState;case 5:case 27:var c=k;if(i?nd(i):c.stateNode.complete){st=0,nl=null;var r=c.sibling;if(r!==null)k=r;else{var x=c.return;x!==null?(k=x,bu(x)):k=null}break l}}st=0,nl=null,va(t,l,u,5);break;case 6:st=0,nl=null,va(t,l,u,6);break;case 8:Uc(),zt=6;break t;default:throw Error(o(462))}}Nh();break}catch(N){hr(t,N)}while(!0);return Cl=Ee=null,z.H=a,z.A=n,ct=e,k!==null?0:(gt=null,W=0,Gn(),zt)}function Nh(){for(;k!==null&&!wd();)xr(k)}function xr(t){var l=Zo(t.alternate,t,Vl);t.memoizedProps=t.pendingProps,l===null?bu(t):k=l}function pr(t){var l=t,e=l.alternate;switch(l.tag){case 15:case 0:l=qo(e,l,l.pendingProps,l.type,void 0,W);break;case 11:l=qo(e,l,l.pendingProps,l.type.render,l.ref,W);break;case 5:ki(l);default:Vo(e,l),l=k=ys(l,Vl),l=Zo(e,l,Vl)}t.memoizedProps=t.pendingProps,l===null?bu(t):k=l}function va(t,l,e,a){Cl=Ee=null,ki(l),ia=null,Qa=0;var n=l.return;try{if(oh(t,n,l,e,W)){zt=1,cu(t,dl(e,t.current)),k=null;return}}catch(u){if(n!==null)throw k=n,u;zt=1,cu(t,dl(e,t.current)),k=null;return}l.flags&32768?(P||a===1?t=!0:ma||(W&536870912)!==0?t=!1:(ie=t=!0,(a===2||a===9||a===3||a===6)&&(a=el.current,a!==null&&a.tag===13&&(a.flags|=16384))),br(l,t)):bu(l)}function bu(t){var l=t;do{if((l.flags&32768)!==0){br(l,ie);return}t=l.return;var e=mh(l.alternate,l,Vl);if(e!==null){k=e;return}if(l=l.sibling,l!==null){k=l;return}k=l=t}while(l!==null);zt===0&&(zt=5)}function br(t,l){do{var e=hh(t.alternate,t);if(e!==null){e.flags&=32767,k=e;return}if(e=t.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!l&&(t=t.sibling,t!==null)){k=t;return}k=t=e}while(t!==null);zt=6,k=null}function Sr(t,l,e,a,n,u,i,c,r){t.cancelPendingCommit=null;do Su();while(Dt!==0);if((ct&6)!==0)throw Error(o(327));if(l!==null){if(l===t.current)throw Error(o(177));if(u=l.lanes|l.childLanes,u|=Si,lm(t,e,u,i,c,r),t===gt&&(k=gt=null,W=0),ga=l,se=t,wl=e,Oc=u,Dc=n,or=a,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ah(zn,function(){return Ar(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,n=H.p,H.p=2,i=ct,ct|=4;try{gh(t,l,e)}finally{ct=i,H.p=n,z.T=a}}Dt=1,Nr(),zr(),jr()}}function Nr(){if(Dt===1){Dt=0;var t=se,l=ga,e=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||e){e=z.T,z.T=null;var a=H.p;H.p=2;var n=ct;ct|=4;try{er(l,t);var u=wc,i=cs(t.containerInfo),c=u.focusedElem,r=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&is(c.ownerDocument.documentElement,c)){if(r!==null&&yi(c)){var x=r.start,N=r.end;if(N===void 0&&(N=x),"selectionStart"in c)c.selectionStart=x,c.selectionEnd=Math.min(N,c.value.length);else{var A=c.ownerDocument||document,p=A&&A.defaultView||window;if(p.getSelection){var S=p.getSelection(),B=c.textContent.length,Q=Math.min(r.start,B),mt=r.end===void 0?Q:Math.min(r.end,B);!S.extend&&Q>mt&&(i=mt,mt=Q,Q=i);var g=us(c,Q),m=us(c,mt);if(g&&m&&(S.rangeCount!==1||S.anchorNode!==g.node||S.anchorOffset!==g.offset||S.focusNode!==m.node||S.focusOffset!==m.offset)){var v=A.createRange();v.setStart(g.node,g.offset),S.removeAllRanges(),Q>mt?(S.addRange(v),S.extend(m.node,m.offset)):(v.setEnd(m.node,m.offset),S.addRange(v))}}}}for(A=[],S=c;S=S.parentNode;)S.nodeType===1&&A.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<A.length;c++){var j=A[c];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Hu=!!Vc,wc=Vc=null}finally{ct=n,H.p=a,z.T=e}}t.current=l,Dt=2}}function zr(){if(Dt===2){Dt=0;var t=se,l=ga,e=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||e){e=z.T,z.T=null;var a=H.p;H.p=2;var n=ct;ct|=4;try{Fo(t,l.alternate,l)}finally{ct=n,H.p=a,z.T=e}}Dt=3}}function jr(){if(Dt===4||Dt===3){Dt=0,Kd();var t=se,l=ga,e=wl,a=or;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Dt=5:(Dt=0,ga=se=null,Tr(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(fe=null),Fu(e),l=l.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(za,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=z.T,n=H.p,H.p=2,z.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{z.T=l,H.p=n}}(wl&3)!==0&&Su(),El(t),n=t.pendingLanes,(e&261930)!==0&&(n&42)!==0?t===_c?nn++:(nn=0,_c=t):nn=0,un(0)}}function Tr(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Ga(l)))}function Su(){return Nr(),zr(),jr(),Ar()}function Ar(){if(Dt!==5)return!1;var t=se,l=Oc;Oc=0;var e=Fu(wl),a=z.T,n=H.p;try{H.p=32>e?32:e,z.T=null,e=Dc,Dc=null;var u=se,i=wl;if(Dt=0,ga=se=null,wl=0,(ct&6)!==0)throw Error(o(331));var c=ct;if(ct|=4,cr(u.current),nr(u,u.current,i,e),ct=c,un(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(za,u)}catch{}return!0}finally{H.p=n,z.T=a,Tr(t,l)}}function Er(t,l,e){l=dl(e,l),l=sc(t.stateNode,l,2),t=ee(t,l,2),t!==null&&(Ta(t,2),El(t))}function ot(t,l,e){if(t.tag===3)Er(t,t,e);else for(;l!==null;){if(l.tag===3){Er(l,t,e);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(fe===null||!fe.has(a))){t=dl(e,t),e=Mo(2),a=ee(l,e,2),a!==null&&(Oo(e,a,l,t),Ta(a,2),El(a));break}}l=l.return}}function Cc(t,l,e){var a=t.pingCache;if(a===null){a=t.pingCache=new xh;var n=new Set;a.set(l,n)}else n=a.get(l),n===void 0&&(n=new Set,a.set(l,n));n.has(e)||(Ac=!0,n.add(e),t=zh.bind(null,t,l,e),l.then(t,t))}function zh(t,l,e){var a=t.pingCache;a!==null&&a.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,gt===t&&(W&e)===e&&(zt===4||zt===3&&(W&62914560)===W&&300>Ft()-gu?(ct&2)===0&&ya(t,0):Ec|=e,ha===W&&(ha=0)),El(t)}function Mr(t,l){l===0&&(l=Sf()),t=je(t,l),t!==null&&(Ta(t,l),El(t))}function jh(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),Mr(t,e)}function Th(t,l){var e=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(l),Mr(t,e)}function Ah(t,l){return Ju(t,l)}var Nu=null,xa=null,Bc=!1,zu=!1,qc=!1,re=0;function El(t){t!==xa&&t.next===null&&(xa===null?Nu=xa=t:xa=xa.next=t),zu=!0,Bc||(Bc=!0,Mh())}function un(t,l){if(!qc&&zu){qc=!0;do for(var e=!1,a=Nu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-Pt(42|t)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,Ur(a,u))}else u=W,u=En(a,a===gt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||ja(a,u)||(e=!0,Ur(a,u));a=a.next}while(e);qc=!1}}function Eh(){Or()}function Or(){zu=Bc=!1;var t=0;re!==0&&Yh()&&(t=re);for(var l=Ft(),e=null,a=Nu;a!==null;){var n=a.next,u=Dr(a,l);u===0?(a.next=null,e===null?Nu=n:e.next=n,n===null&&(xa=e)):(e=a,(t!==0||(u&3)!==0)&&(zu=!0)),a=n}Dt!==0&&Dt!==5||un(t),re!==0&&(re=0)}function Dr(t,l){for(var e=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-Pt(u),c=1<<i,r=n[i];r===-1?((c&e)===0||(c&a)!==0)&&(n[i]=tm(c,l)):r<=l&&(t.expiredLanes|=c),u&=~c}if(l=gt,e=W,e=En(t,t===l?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,e===0||t===l&&(st===2||st===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&ku(a),t.callbackNode=null,t.callbackPriority=0;if((e&3)===0||ja(t,e)){if(l=e&-e,l===t.callbackPriority)return l;switch(a!==null&&ku(a),Fu(e)){case 2:case 8:e=pf;break;case 32:e=zn;break;case 268435456:e=bf;break;default:e=zn}return a=_r.bind(null,t),e=Ju(e,a),t.callbackPriority=l,t.callbackNode=e,l}return a!==null&&a!==null&&ku(a),t.callbackPriority=2,t.callbackNode=null,2}function _r(t,l){if(Dt!==0&&Dt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var e=t.callbackNode;if(Su()&&t.callbackNode!==e)return null;var a=W;return a=En(t,t===gt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(dr(t,a,l),Dr(t,Ft()),t.callbackNode!=null&&t.callbackNode===e?_r.bind(null,t):null)}function Ur(t,l){if(Su())return null;dr(t,l,!0)}function Mh(){Xh(function(){(ct&6)!==0?Ju(xf,Eh):Or()})}function Rc(){if(re===0){var t=aa;t===0&&(t=jn,jn<<=1,(jn&261888)===0&&(jn=256)),re=t}return re}function Hr(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:_n(""+t)}function Cr(t,l){var e=l.ownerDocument.createElement("input");return e.name=l.name,e.value=l.value,t.id&&e.setAttribute("form",t.id),l.parentNode.insertBefore(e,l),t=new FormData(t),e.parentNode.removeChild(e),t}function Oh(t,l,e,a,n){if(l==="submit"&&e&&e.stateNode===n){var u=Hr((n[Vt]||null).action),i=a.submitter;i&&(l=(l=i[Vt]||null)?Hr(l.formAction):i.getAttribute("formAction"),l!==null&&(u=l,i=null));var c=new Bn("action","action",null,a,n);t.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(re!==0){var r=i?Cr(n,i):new FormData(n);ac(e,{pending:!0,data:r,method:n.method,action:u},null,r)}}else typeof u=="function"&&(c.preventDefault(),r=i?Cr(n,i):new FormData(n),ac(e,{pending:!0,data:r,method:n.method,action:u},u,r))},currentTarget:n}]})}}for(var Yc=0;Yc<bi.length;Yc++){var Gc=bi[Yc],Dh=Gc.toLowerCase(),_h=Gc[0].toUpperCase()+Gc.slice(1);pl(Dh,"on"+_h)}pl(os,"onAnimationEnd"),pl(rs,"onAnimationIteration"),pl(ds,"onAnimationStart"),pl("dblclick","onDoubleClick"),pl("focusin","onFocus"),pl("focusout","onBlur"),pl(Jm,"onTransitionRun"),pl(km,"onTransitionStart"),pl($m,"onTransitionCancel"),pl(ms,"onTransitionEnd"),Le("onMouseEnter",["mouseout","mouseover"]),Le("onMouseLeave",["mouseout","mouseover"]),Le("onPointerEnter",["pointerout","pointerover"]),Le("onPointerLeave",["pointerout","pointerover"]),be("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),be("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),be("onBeforeInput",["compositionend","keypress","textInput","paste"]),be("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),be("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),be("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cn="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(" "),Uh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cn));function Br(t,l){l=(l&4)!==0;for(var e=0;e<t.length;e++){var a=t[e],n=a.event;a=a.listeners;t:{var u=void 0;if(l)for(var i=a.length-1;0<=i;i--){var c=a[i],r=c.instance,x=c.currentTarget;if(c=c.listener,r!==u&&n.isPropagationStopped())break t;u=c,n.currentTarget=x;try{u(n)}catch(N){Yn(N)}n.currentTarget=null,u=r}else for(i=0;i<a.length;i++){if(c=a[i],r=c.instance,x=c.currentTarget,c=c.listener,r!==u&&n.isPropagationStopped())break t;u=c,n.currentTarget=x;try{u(n)}catch(N){Yn(N)}n.currentTarget=null,u=r}}}}function $(t,l){var e=l[Iu];e===void 0&&(e=l[Iu]=new Set);var a=t+"__bubble";e.has(a)||(qr(l,t,2,!1),e.add(a))}function Xc(t,l,e){var a=0;l&&(a|=4),qr(e,t,a,l)}var ju="_reactListening"+Math.random().toString(36).slice(2);function Qc(t){if(!t[ju]){t[ju]=!0,Mf.forEach(function(e){e!=="selectionchange"&&(Uh.has(e)||Xc(e,!1,t),Xc(e,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[ju]||(l[ju]=!0,Xc("selectionchange",!1,l))}}function qr(t,l,e,a){switch(rd(l)){case 2:var n=i0;break;case 8:n=c0;break;default:n=ef}e=n.bind(null,l,e,t),n=void 0,!ci||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(l,e,{capture:!0,passive:n}):t.addEventListener(l,e,!0):n!==void 0?t.addEventListener(l,e,{passive:n}):t.addEventListener(l,e,!1)}function Zc(t,l,e,a,n){var u=a;if((l&1)===0&&(l&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var r=i.tag;if((r===3||r===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=Xe(c),i===null)return;if(r=i.tag,r===5||r===6||r===26||r===27){a=u=i;continue t}c=c.parentNode}}a=a.return}Xf(function(){var x=u,N=ui(e),A=[];t:{var p=hs.get(t);if(p!==void 0){var S=Bn,B=t;switch(t){case"keypress":if(Hn(e)===0)break t;case"keydown":case"keyup":S=Tm;break;case"focusin":B="focus",S=ri;break;case"focusout":B="blur",S=ri;break;case"beforeblur":case"afterblur":S=ri;break;case"click":if(e.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=Lf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=mm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=Mm;break;case os:case rs:case ds:S=ym;break;case ms:S=Dm;break;case"scroll":case"scrollend":S=rm;break;case"wheel":S=Um;break;case"copy":case"cut":case"paste":S=xm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=wf;break;case"toggle":case"beforetoggle":S=Cm}var Q=(l&4)!==0,mt=!Q&&(t==="scroll"||t==="scrollend"),g=Q?p!==null?p+"Capture":null:p;Q=[];for(var m=x,v;m!==null;){var j=m;if(v=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||v===null||g===null||(j=Ma(m,g),j!=null&&Q.push(fn(m,j,v))),mt)break;m=m.return}0<Q.length&&(p=new S(p,B,null,e,N),A.push({event:p,listeners:Q}))}}if((l&7)===0){t:{if(p=t==="mouseover"||t==="pointerover",S=t==="mouseout"||t==="pointerout",p&&e!==ni&&(B=e.relatedTarget||e.fromElement)&&(Xe(B)||B[Ge]))break t;if((S||p)&&(p=N.window===N?N:(p=N.ownerDocument)?p.defaultView||p.parentWindow:window,S?(B=e.relatedTarget||e.toElement,S=x,B=B?Xe(B):null,B!==null&&(mt=T(B),Q=B.tag,B!==mt||Q!==5&&Q!==27&&Q!==6)&&(B=null)):(S=null,B=x),S!==B)){if(Q=Lf,j="onMouseLeave",g="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(Q=wf,j="onPointerLeave",g="onPointerEnter",m="pointer"),mt=S==null?p:Ea(S),v=B==null?p:Ea(B),p=new Q(j,m+"leave",S,e,N),p.target=mt,p.relatedTarget=v,j=null,Xe(N)===x&&(Q=new Q(g,m+"enter",B,e,N),Q.target=v,Q.relatedTarget=mt,j=Q),mt=j,S&&B)l:{for(Q=Hh,g=S,m=B,v=0,j=g;j;j=Q(j))v++;j=0;for(var R=m;R;R=Q(R))j++;for(;0<v-j;)g=Q(g),v--;for(;0<j-v;)m=Q(m),j--;for(;v--;){if(g===m||m!==null&&g===m.alternate){Q=g;break l}g=Q(g),m=Q(m)}Q=null}else Q=null;S!==null&&Rr(A,p,S,Q,!1),B!==null&&mt!==null&&Rr(A,mt,B,Q,!0)}}t:{if(p=x?Ea(x):window,S=p.nodeName&&p.nodeName.toLowerCase(),S==="select"||S==="input"&&p.type==="file")var ut=Pf;else if(Ff(p))if(ts)ut=Vm;else{ut=Zm;var q=Qm}else S=p.nodeName,!S||S.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?x&&ai(x.elementType)&&(ut=Pf):ut=Lm;if(ut&&(ut=ut(t,x))){If(A,ut,e,N);break t}q&&q(t,p,x),t==="focusout"&&x&&p.type==="number"&&x.memoizedProps.value!=null&&ei(p,"number",p.value)}switch(q=x?Ea(x):window,t){case"focusin":(Ff(q)||q.contentEditable==="true")&&($e=q,vi=x,qa=null);break;case"focusout":qa=vi=$e=null;break;case"mousedown":xi=!0;break;case"contextmenu":case"mouseup":case"dragend":xi=!1,fs(A,e,N);break;case"selectionchange":if(Km)break;case"keydown":case"keyup":fs(A,e,N)}var K;if(mi)t:{switch(t){case"compositionstart":var F="onCompositionStart";break t;case"compositionend":F="onCompositionEnd";break t;case"compositionupdate":F="onCompositionUpdate";break t}F=void 0}else ke?$f(t,e)&&(F="onCompositionEnd"):t==="keydown"&&e.keyCode===229&&(F="onCompositionStart");F&&(Kf&&e.locale!=="ko"&&(ke||F!=="onCompositionStart"?F==="onCompositionEnd"&&ke&&(K=Qf()):($l=N,fi="value"in $l?$l.value:$l.textContent,ke=!0)),q=Tu(x,F),0<q.length&&(F=new Vf(F,t,null,e,N),A.push({event:F,listeners:q}),K?F.data=K:(K=Wf(e),K!==null&&(F.data=K)))),(K=qm?Rm(t,e):Ym(t,e))&&(F=Tu(x,"onBeforeInput"),0<F.length&&(q=new Vf("onBeforeInput","beforeinput",null,e,N),A.push({event:q,listeners:F}),q.data=K)),Oh(A,t,x,e,N)}Br(A,l)})}function fn(t,l,e){return{instance:t,listener:l,currentTarget:e}}function Tu(t,l){for(var e=l+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ma(t,e),n!=null&&a.unshift(fn(t,n,u)),n=Ma(t,l),n!=null&&a.push(fn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function Hh(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Rr(t,l,e,a,n){for(var u=l._reactName,i=[];e!==null&&e!==a;){var c=e,r=c.alternate,x=c.stateNode;if(c=c.tag,r!==null&&r===a)break;c!==5&&c!==26&&c!==27||x===null||(r=x,n?(x=Ma(e,u),x!=null&&i.unshift(fn(e,x,r))):n||(x=Ma(e,u),x!=null&&i.push(fn(e,x,r)))),e=e.return}i.length!==0&&t.push({event:l,listeners:i})}var Ch=/\r\n?/g,Bh=/\u0000|\uFFFD/g;function Yr(t){return(typeof t=="string"?t:""+t).replace(Ch,`
|
|
33
|
-
`).replace(Bh,"")}function Gr(t,l){return l=Yr(l),Yr(t)===l}function dt(t,l,e,a,n,u){switch(e){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||we(t,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&we(t,""+a);break;case"className":On(t,"class",a);break;case"tabIndex":On(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":On(t,e,a);break;case"style":Yf(t,a,u);break;case"data":if(l!=="object"){On(t,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||e!=="href")){t.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=_n(""+a),t.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(e,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(e==="formAction"?(l!=="input"&&dt(t,l,"name",n.name,n,null),dt(t,l,"formEncType",n.formEncType,n,null),dt(t,l,"formMethod",n.formMethod,n,null),dt(t,l,"formTarget",n.formTarget,n,null)):(dt(t,l,"encType",n.encType,n,null),dt(t,l,"method",n.method,n,null),dt(t,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=_n(""+a),t.setAttribute(e,a);break;case"onClick":a!=null&&(t.onclick=Dl);break;case"onScroll":a!=null&&$("scroll",t);break;case"onScrollEnd":a!=null&&$("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=e}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}e=_n(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);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"?t.setAttribute(e,""+a):t.removeAttribute(e);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"?t.setAttribute(e,""):t.removeAttribute(e);break;case"capture":case"download":a===!0?t.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,a):t.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(e,a):t.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(e):t.setAttribute(e,a);break;case"popover":$("beforetoggle",t),$("toggle",t),Mn(t,"popover",a);break;case"xlinkActuate":Ol(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ol(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ol(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ol(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ol(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ol(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ol(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ol(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ol(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Mn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=sm.get(e)||e,Mn(t,e,a))}}function Lc(t,l,e,a,n,u){switch(e){case"style":Yf(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=e}}break;case"children":typeof a=="string"?we(t,a):(typeof a=="number"||typeof a=="bigint")&&we(t,""+a);break;case"onScroll":a!=null&&$("scroll",t);break;case"onScrollEnd":a!=null&&$("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Dl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(e))t:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),l=e.slice(2,n?e.length-7:void 0),u=t[Vt]||null,u=u!=null?u[e]:null,typeof u=="function"&&t.removeEventListener(l,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in t?t[e]=null:t.hasAttribute(e)&&t.removeAttribute(e)),t.addEventListener(l,a,n);break t}e in t?t[e]=a:a===!0?t.setAttribute(e,""):Mn(t,e,a)}}}function Gt(t,l,e){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$("error",t),$("load",t);var a=!1,n=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,l));default:dt(t,l,u,i,e,null)}}n&&dt(t,l,"srcSet",e.srcSet,e,null),a&&dt(t,l,"src",e.src,e,null);return;case"input":$("invalid",t);var c=u=i=n=null,r=null,x=null;for(a in e)if(e.hasOwnProperty(a)){var N=e[a];if(N!=null)switch(a){case"name":n=N;break;case"type":i=N;break;case"checked":r=N;break;case"defaultChecked":x=N;break;case"value":u=N;break;case"defaultValue":c=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,l));break;default:dt(t,l,a,N,e,null)}}Cf(t,u,c,r,x,i,n,!1);return;case"select":$("invalid",t),a=i=u=null;for(n in e)if(e.hasOwnProperty(n)&&(c=e[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:dt(t,l,n,c,e,null)}l=u,e=i,t.multiple=!!a,l!=null?Ve(t,!!a,l,!1):e!=null&&Ve(t,!!a,e,!0);return;case"textarea":$("invalid",t),u=n=a=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:dt(t,l,i,c,e,null)}qf(t,a,n,u);return;case"option":for(r in e)if(e.hasOwnProperty(r)&&(a=e[r],a!=null))switch(r){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:dt(t,l,r,a,e,null)}return;case"dialog":$("beforetoggle",t),$("toggle",t),$("cancel",t),$("close",t);break;case"iframe":case"object":$("load",t);break;case"video":case"audio":for(a=0;a<cn.length;a++)$(cn[a],t);break;case"image":$("error",t),$("load",t);break;case"details":$("toggle",t);break;case"embed":case"source":case"link":$("error",t),$("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in e)if(e.hasOwnProperty(x)&&(a=e[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,l));default:dt(t,l,x,a,e,null)}return;default:if(ai(l)){for(N in e)e.hasOwnProperty(N)&&(a=e[N],a!==void 0&&Lc(t,l,N,a,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(a=e[c],a!=null&&dt(t,l,c,a,e,null))}function qh(t,l,e,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,c=null,r=null,x=null,N=null;for(S in e){var A=e[S];if(e.hasOwnProperty(S)&&A!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":r=A;default:a.hasOwnProperty(S)||dt(t,l,S,null,a,A)}}for(var p in a){var S=a[p];if(A=e[p],a.hasOwnProperty(p)&&(S!=null||A!=null))switch(p){case"type":u=S;break;case"name":n=S;break;case"checked":x=S;break;case"defaultChecked":N=S;break;case"value":i=S;break;case"defaultValue":c=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(o(137,l));break;default:S!==A&&dt(t,l,p,S,a,A)}}li(t,i,c,r,x,N,u,n);return;case"select":S=i=c=p=null;for(u in e)if(r=e[u],e.hasOwnProperty(u)&&r!=null)switch(u){case"value":break;case"multiple":S=r;default:a.hasOwnProperty(u)||dt(t,l,u,null,a,r)}for(n in a)if(u=a[n],r=e[n],a.hasOwnProperty(n)&&(u!=null||r!=null))switch(n){case"value":p=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==r&&dt(t,l,n,u,a,r)}l=c,e=i,a=S,p!=null?Ve(t,!!e,p,!1):!!a!=!!e&&(l!=null?Ve(t,!!e,l,!0):Ve(t,!!e,e?[]:"",!1));return;case"textarea":S=p=null;for(c in e)if(n=e[c],e.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:dt(t,l,c,null,a,n)}for(i in a)if(n=a[i],u=e[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":p=n;break;case"defaultValue":S=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&dt(t,l,i,n,a,u)}Bf(t,p,S);return;case"option":for(var B in e)if(p=e[B],e.hasOwnProperty(B)&&p!=null&&!a.hasOwnProperty(B))switch(B){case"selected":t.selected=!1;break;default:dt(t,l,B,null,a,p)}for(r in a)if(p=a[r],S=e[r],a.hasOwnProperty(r)&&p!==S&&(p!=null||S!=null))switch(r){case"selected":t.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:dt(t,l,r,p,a,S)}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 Q in e)p=e[Q],e.hasOwnProperty(Q)&&p!=null&&!a.hasOwnProperty(Q)&&dt(t,l,Q,null,a,p);for(x in a)if(p=a[x],S=e[x],a.hasOwnProperty(x)&&p!==S&&(p!=null||S!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(137,l));break;default:dt(t,l,x,p,a,S)}return;default:if(ai(l)){for(var mt in e)p=e[mt],e.hasOwnProperty(mt)&&p!==void 0&&!a.hasOwnProperty(mt)&&Lc(t,l,mt,void 0,a,p);for(N in a)p=a[N],S=e[N],!a.hasOwnProperty(N)||p===S||p===void 0&&S===void 0||Lc(t,l,N,p,a,S);return}}for(var g in e)p=e[g],e.hasOwnProperty(g)&&p!=null&&!a.hasOwnProperty(g)&&dt(t,l,g,null,a,p);for(A in a)p=a[A],S=e[A],!a.hasOwnProperty(A)||p===S||p==null&&S==null||dt(t,l,A,p,a,S)}function Xr(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rh(){if(typeof performance.getEntriesByType=="function"){for(var t=0,l=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var n=e[a],u=n.transferSize,i=n.initiatorType,c=n.duration;if(u&&c&&Xr(i)){for(i=0,c=n.responseEnd,a+=1;a<e.length;a++){var r=e[a],x=r.startTime;if(x>c)break;var N=r.transferSize,A=r.initiatorType;N&&Xr(A)&&(r=r.responseEnd,i+=N*(r<c?1:(c-x)/(r-x)))}if(--a,l+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Vc=null,wc=null;function Au(t){return t.nodeType===9?t:t.ownerDocument}function Qr(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zr(t,l){if(t===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function Kc(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Jc=null;function Yh(){var t=window.event;return t&&t.type==="popstate"?t===Jc?!1:(Jc=t,!0):(Jc=null,!1)}var Lr=typeof setTimeout=="function"?setTimeout:void 0,Gh=typeof clearTimeout=="function"?clearTimeout:void 0,Vr=typeof Promise=="function"?Promise:void 0,Xh=typeof queueMicrotask=="function"?queueMicrotask:typeof Vr<"u"?function(t){return Vr.resolve(null).then(t).catch(Qh)}:Lr;function Qh(t){setTimeout(function(){throw t})}function de(t){return t==="head"}function wr(t,l){var e=l,a=0;do{var n=e.nextSibling;if(t.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){t.removeChild(n),Na(l);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")sn(t.ownerDocument.documentElement);else if(e==="head"){e=t.ownerDocument.head,sn(e);for(var u=e.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Aa]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||e.removeChild(u),u=i}}else e==="body"&&sn(t.ownerDocument.body);e=n}while(e);Na(l)}function Kr(t,l){var e=t;t=0;do{var a=e.nextSibling;if(e.nodeType===1?l?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(l?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(t===0)break;t--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||t++;e=a}while(e)}function kc(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var e=l;switch(l=l.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":kc(e),Pu(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}t.removeChild(e)}}function Zh(t,l,e,a){for(;t.nodeType===1;){var n=e;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Aa])switch(l){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(l==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=vl(t.nextSibling),t===null)break}return null}function Lh(t,l,e){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=vl(t.nextSibling),t===null))return null;return t}function Jr(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=vl(t.nextSibling),t===null))return null;return t}function $c(t){return t.data==="$?"||t.data==="$~"}function Wc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vh(t,l){var e=t.ownerDocument;if(t.data==="$~")t._reactRetry=l;else if(t.data!=="$?"||e.readyState!=="loading")l();else{var a=function(){l(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function vl(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return t}var Fc=null;function kr(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="/$"||e==="/&"){if(l===0)return vl(t.nextSibling);l--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||l++}t=t.nextSibling}return null}function $r(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(l===0)return t;l--}else e!=="/$"&&e!=="/&"||l++}t=t.previousSibling}return null}function Wr(t,l,e){switch(l=Au(e),t){case"html":if(t=l.documentElement,!t)throw Error(o(452));return t;case"head":if(t=l.head,!t)throw Error(o(453));return t;case"body":if(t=l.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function sn(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);Pu(t)}var xl=new Map,Fr=new Set;function Eu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Kl=H.d;H.d={f:wh,r:Kh,D:Jh,C:kh,L:$h,m:Wh,X:Ih,S:Fh,M:Ph};function wh(){var t=Kl.f(),l=xu();return t||l}function Kh(t){var l=Qe(t);l!==null&&l.tag===5&&l.type==="form"?ho(l):Kl.r(t)}var pa=typeof document>"u"?null:document;function Ir(t,l,e){var a=pa;if(a&&typeof l=="string"&&l){var n=ol(l);n='link[rel="'+t+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),Fr.has(n)||(Fr.add(n),t={rel:t,crossOrigin:e,href:l},a.querySelector(n)===null&&(l=a.createElement("link"),Gt(l,"link",t),Ut(l),a.head.appendChild(l)))}}function Jh(t){Kl.D(t),Ir("dns-prefetch",t,null)}function kh(t,l){Kl.C(t,l),Ir("preconnect",t,l)}function $h(t,l,e){Kl.L(t,l,e);var a=pa;if(a&&t&&l){var n='link[rel="preload"][as="'+ol(l)+'"]';l==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+ol(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+ol(e.imageSizes)+'"]')):n+='[href="'+ol(t)+'"]';var u=n;switch(l){case"style":u=ba(t);break;case"script":u=Sa(t)}xl.has(u)||(t=D({rel:"preload",href:l==="image"&&e&&e.imageSrcSet?void 0:t,as:l},e),xl.set(u,t),a.querySelector(n)!==null||l==="style"&&a.querySelector(on(u))||l==="script"&&a.querySelector(rn(u))||(l=a.createElement("link"),Gt(l,"link",t),Ut(l),a.head.appendChild(l)))}}function Wh(t,l){Kl.m(t,l);var e=pa;if(e&&t){var a=l&&typeof l.as=="string"?l.as:"script",n='link[rel="modulepreload"][as="'+ol(a)+'"][href="'+ol(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Sa(t)}if(!xl.has(u)&&(t=D({rel:"modulepreload",href:t},l),xl.set(u,t),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(rn(u)))return}a=e.createElement("link"),Gt(a,"link",t),Ut(a),e.head.appendChild(a)}}}function Fh(t,l,e){Kl.S(t,l,e);var a=pa;if(a&&t){var n=Ze(a).hoistableStyles,u=ba(t);l=l||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(on(u)))c.loading=5;else{t=D({rel:"stylesheet",href:t,"data-precedence":l},e),(e=xl.get(u))&&Ic(t,e);var r=i=a.createElement("link");Ut(r),Gt(r,"link",t),r._p=new Promise(function(x,N){r.onload=x,r.onerror=N}),r.addEventListener("load",function(){c.loading|=1}),r.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Mu(i,l,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function Ih(t,l){Kl.X(t,l);var e=pa;if(e&&t){var a=Ze(e).hoistableScripts,n=Sa(t),u=a.get(n);u||(u=e.querySelector(rn(n)),u||(t=D({src:t,async:!0},l),(l=xl.get(n))&&Pc(t,l),u=e.createElement("script"),Ut(u),Gt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ph(t,l){Kl.M(t,l);var e=pa;if(e&&t){var a=Ze(e).hoistableScripts,n=Sa(t),u=a.get(n);u||(u=e.querySelector(rn(n)),u||(t=D({src:t,async:!0,type:"module"},l),(l=xl.get(n))&&Pc(t,l),u=e.createElement("script"),Ut(u),Gt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Pr(t,l,e,a){var n=(n=Zt.current)?Eu(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(l=ba(e.href),e=Ze(n).hoistableStyles,a=e.get(l),a||(a={type:"style",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){t=ba(e.href);var u=Ze(n).hoistableStyles,i=u.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=n.querySelector(on(t)))&&!u._p&&(i.instance=u,i.state.loading=5),xl.has(t)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},xl.set(t,e),u||t0(n,t,e,i.state))),l&&a===null)throw Error(o(528,""));return i}if(l&&a!==null)throw Error(o(529,""));return null;case"script":return l=e.async,e=e.src,typeof e=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Sa(e),e=Ze(n).hoistableScripts,a=e.get(l),a||(a={type:"script",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ba(t){return'href="'+ol(t)+'"'}function on(t){return'link[rel="stylesheet"]['+t+"]"}function td(t){return D({},t,{"data-precedence":t.precedence,precedence:null})}function t0(t,l,e,a){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=t.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),Gt(l,"link",e),Ut(l),t.head.appendChild(l))}function Sa(t){return'[src="'+ol(t)+'"]'}function rn(t){return"script[async]"+t}function ld(t,l,e){if(l.count++,l.instance===null)switch(l.type){case"style":var a=t.querySelector('style[data-href~="'+ol(e.href)+'"]');if(a)return l.instance=a,Ut(a),a;var n=D({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ut(a),Gt(a,"style",n),Mu(a,e.precedence,t),l.instance=a;case"stylesheet":n=ba(e.href);var u=t.querySelector(on(n));if(u)return l.state.loading|=4,l.instance=u,Ut(u),u;a=td(e),(n=xl.get(n))&&Ic(a,n),u=(t.ownerDocument||t).createElement("link"),Ut(u);var i=u;return i._p=new Promise(function(c,r){i.onload=c,i.onerror=r}),Gt(u,"link",a),l.state.loading|=4,Mu(u,e.precedence,t),l.instance=u;case"script":return u=Sa(e.src),(n=t.querySelector(rn(u)))?(l.instance=n,Ut(n),n):(a=e,(n=xl.get(u))&&(a=D({},e),Pc(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Ut(n),Gt(n,"link",a),t.head.appendChild(n),l.instance=n);case"void":return null;default:throw Error(o(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Mu(a,e.precedence,t));return l.instance}function Mu(t,l,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===l)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(l=e.nodeType===9?e.head:e,l.insertBefore(t,l.firstChild))}function Ic(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function Pc(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Ou=null;function ed(t,l,e){if(Ou===null){var a=new Map,n=Ou=new Map;n.set(e,a)}else n=Ou,a=n.get(e),a||(a=new Map,n.set(e,a));if(a.has(t))return a;for(a.set(t,null),e=e.getElementsByTagName(t),n=0;n<e.length;n++){var u=e[n];if(!(u[Aa]||u[Bt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(l)||"";i=t+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function ad(t,l,e){t=t.ownerDocument||t,t.head.insertBefore(e,l==="title"?t.querySelector("head > title"):null)}function l0(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return t=l.disabled,typeof l.precedence=="string"&&t==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function nd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function e0(t,l,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=ba(a.href),u=l.querySelector(on(n));if(u){l=u._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=Du.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=u,Ut(u);return}u=l.ownerDocument||l,a=td(a),(n=xl.get(n))&&Ic(a,n),u=u.createElement("link"),Ut(u);var i=u;i._p=new Promise(function(c,r){i.onload=c,i.onerror=r}),Gt(u,"link",a),e.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=Du.bind(t),l.addEventListener("load",e),l.addEventListener("error",e))}}var tf=0;function a0(t,l){return t.stylesheets&&t.count===0&&Uu(t,t.stylesheets),0<t.count||0<t.imgCount?function(e){var a=setTimeout(function(){if(t.stylesheets&&Uu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+l);0<t.imgBytes&&tf===0&&(tf=62500*Rh());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Uu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>tf?50:800)+l);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Du(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var _u=null;function Uu(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,_u=new Map,l.forEach(n0,t),_u=null,Du.call(t))}function n0(t,l){if(!(l.state.loading&4)){var e=_u.get(t);if(e)var a=e.get(null);else{e=new Map,_u.set(t,e);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}n=l.instance,i=n.getAttribute("data-precedence"),u=e.get(i)||a,u===a&&e.set(null,n),e.set(i,n),this.count++,a=Du.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),l.state.loading|=4}}var dn={$$typeof:tt,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function u0(t,l,e,a,n,u,i,c,r){this.tag=1,this.containerInfo=t,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=$u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.hiddenUpdates=$u(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function ud(t,l,e,a,n,u,i,c,r,x,N,A){return t=new u0(t,l,e,i,r,x,N,A,c),l=1,u===!0&&(l|=24),u=ll(3,null,null,l),t.current=u,u.stateNode=t,l=Hi(),l.refCount++,t.pooledCache=l,l.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:l},Ri(u),t}function id(t){return t?(t=Ie,t):Ie}function cd(t,l,e,a,n,u){n=id(n),a.context===null?a.context=n:a.pendingContext=n,a=le(l),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=ee(t,a,l),e!==null&&(Wt(e,t,l),La(e,t,l))}function fd(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var e=t.retryLane;t.retryLane=e!==0&&e<l?e:l}}function lf(t,l){fd(t,l),(t=t.alternate)&&fd(t,l)}function sd(t){if(t.tag===13||t.tag===31){var l=je(t,67108864);l!==null&&Wt(l,t,67108864),lf(t,67108864)}}function od(t){if(t.tag===13||t.tag===31){var l=il();l=Wu(l);var e=je(t,l);e!==null&&Wt(e,t,l),lf(t,l)}}var Hu=!0;function i0(t,l,e,a){var n=z.T;z.T=null;var u=H.p;try{H.p=2,ef(t,l,e,a)}finally{H.p=u,z.T=n}}function c0(t,l,e,a){var n=z.T;z.T=null;var u=H.p;try{H.p=8,ef(t,l,e,a)}finally{H.p=u,z.T=n}}function ef(t,l,e,a){if(Hu){var n=af(a);if(n===null)Zc(t,l,a,Cu,e),dd(t,a);else if(s0(n,t,l,e,a))a.stopPropagation();else if(dd(t,a),l&4&&-1<f0.indexOf(t)){for(;n!==null;){var u=Qe(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=pe(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var r=1<<31-Pt(i);c.entanglements[1]|=r,i&=~r}El(u),(ct&6)===0&&(yu=Ft()+500,un(0))}}break;case 31:case 13:c=je(u,2),c!==null&&Wt(c,u,2),xu(),lf(u,2)}if(u=af(a),u===null&&Zc(t,l,a,Cu,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else Zc(t,l,a,null,e)}}function af(t){return t=ui(t),nf(t)}var Cu=null;function nf(t){if(Cu=null,t=Xe(t),t!==null){var l=T(t);if(l===null)t=null;else{var e=l.tag;if(e===13){if(t=M(l),t!==null)return t;t=null}else if(e===31){if(t=_(l),t!==null)return t;t=null}else if(e===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return Cu=t,null}function rd(t){switch(t){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(Jd()){case xf:return 2;case pf:return 8;case zn:case kd:return 32;case bf:return 268435456;default:return 32}default:return 32}}var uf=!1,me=null,he=null,ge=null,mn=new Map,hn=new Map,ye=[],f0="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 dd(t,l){switch(t){case"focusin":case"focusout":me=null;break;case"dragenter":case"dragleave":he=null;break;case"mouseover":case"mouseout":ge=null;break;case"pointerover":case"pointerout":mn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":hn.delete(l.pointerId)}}function gn(t,l,e,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:l,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},l!==null&&(l=Qe(l),l!==null&&sd(l)),t):(t.eventSystemFlags|=a,l=t.targetContainers,n!==null&&l.indexOf(n)===-1&&l.push(n),t)}function s0(t,l,e,a,n){switch(l){case"focusin":return me=gn(me,t,l,e,a,n),!0;case"dragenter":return he=gn(he,t,l,e,a,n),!0;case"mouseover":return ge=gn(ge,t,l,e,a,n),!0;case"pointerover":var u=n.pointerId;return mn.set(u,gn(mn.get(u)||null,t,l,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,hn.set(u,gn(hn.get(u)||null,t,l,e,a,n)),!0}return!1}function md(t){var l=Xe(t.target);if(l!==null){var e=T(l);if(e!==null){if(l=e.tag,l===13){if(l=M(e),l!==null){t.blockedOn=l,Af(t.priority,function(){od(e)});return}}else if(l===31){if(l=_(e),l!==null){t.blockedOn=l,Af(t.priority,function(){od(e)});return}}else if(l===3&&e.stateNode.current.memoizedState.isDehydrated){t.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Bu(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var e=af(t.nativeEvent);if(e===null){e=t.nativeEvent;var a=new e.constructor(e.type,e);ni=a,e.target.dispatchEvent(a),ni=null}else return l=Qe(e),l!==null&&sd(l),t.blockedOn=e,!1;l.shift()}return!0}function hd(t,l,e){Bu(t)&&e.delete(l)}function o0(){uf=!1,me!==null&&Bu(me)&&(me=null),he!==null&&Bu(he)&&(he=null),ge!==null&&Bu(ge)&&(ge=null),mn.forEach(hd),hn.forEach(hd)}function qu(t,l){t.blockedOn===l&&(t.blockedOn=null,uf||(uf=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,o0)))}var Ru=null;function gd(t){Ru!==t&&(Ru=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Ru===t&&(Ru=null);for(var l=0;l<t.length;l+=3){var e=t[l],a=t[l+1],n=t[l+2];if(typeof a!="function"){if(nf(a||e)===null)continue;break}var u=Qe(e);u!==null&&(t.splice(l,3),l-=3,ac(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function Na(t){function l(r){return qu(r,t)}me!==null&&qu(me,t),he!==null&&qu(he,t),ge!==null&&qu(ge,t),mn.forEach(l),hn.forEach(l);for(var e=0;e<ye.length;e++){var a=ye[e];a.blockedOn===t&&(a.blockedOn=null)}for(;0<ye.length&&(e=ye[0],e.blockedOn===null);)md(e),e.blockedOn===null&&ye.shift();if(e=(t.ownerDocument||t).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[Vt]||null;if(typeof u=="function")i||gd(e);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Vt]||null)c=i.formAction;else if(nf(n)!==null)continue}else c=i.action;typeof c=="function"?e[a+1]=c:(e.splice(a,3),a-=3),gd(e)}}}function yd(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function l(){n!==null&&(n(),n=null),a||setTimeout(e,20)}function e(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),n!==null&&(n(),n=null)}}}function cf(t){this._internalRoot=t}Yu.prototype.render=cf.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(o(409));var e=l.current,a=il();cd(e,a,t,l,null,null)},Yu.prototype.unmount=cf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;cd(t.current,2,null,t,null,null),xu(),l[Ge]=null}};function Yu(t){this._internalRoot=t}Yu.prototype.unstable_scheduleHydration=function(t){if(t){var l=Tf();t={blockedOn:null,target:t,priority:l};for(var e=0;e<ye.length&&l!==0&&l<ye[e].priority;e++);ye.splice(e,0,t),e===0&&md(t)}};var vd=d.version;if(vd!=="19.2.7")throw Error(o(527,vd,"19.2.7"));H.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=h(l),t=t!==null?O(t):null,t=t===null?null:t.stateNode,t};var r0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gu.isDisabled&&Gu.supportsFiber)try{za=Gu.inject(r0),It=Gu}catch{}}return yn.createRoot=function(t,l){if(!y(t))throw Error(o(299));var e=!1,a="",n=jo,u=To,i=Ao;return l!=null&&(l.unstable_strictMode===!0&&(e=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=ud(t,1,!1,null,null,e,a,null,n,u,i,yd),t[Ge]=l.current,Qc(t),new cf(l)},yn.hydrateRoot=function(t,l,e){if(!y(t))throw Error(o(299));var a=!1,n="",u=jo,i=To,c=Ao,r=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(r=e.formState)),l=ud(t,1,!0,l,e??null,a,n,r,u,i,c,yd),l.context=id(null),e=l.current,a=il(),a=Wu(a),n=le(a),n.callback=null,ee(e,n,a),e=a,l.current.lanes=e,Ta(l,e),El(l),t[Ge]=l.current,Qc(t),new Yu(l)},yn.version="19.2.7",yn}var zd;function b0(){if(zd)return ff.exports;zd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(d){console.error(d)}}return f(),ff.exports=p0(),ff.exports}var S0=b0();const Bd={status:null,conductorYaml:null,statusPath:".conductor/status.json",conductorPath:null};function N0(){const[f,d]=Y.useState({}),[b,o]=Y.useState([]),[y,T]=Y.useState("connecting");return Y.useEffect(()=>{let M=null,_;const E=O=>o(D=>D.includes(O)?D:[...D,O]),h=()=>{M=new EventSource("/events"),M.addEventListener("open",()=>T("live")),M.addEventListener("update",O=>{try{const D=JSON.parse(O.data),C=D.workflow??"workflow";E(C),d(L=>{var I;return{...L,[C]:{snap:D,history:((I=L[C])==null?void 0:I.history)??[]}}}),T("live")}catch{}}),M.addEventListener("history",O=>{try{const D=JSON.parse(O.data);if(Array.isArray(D))return;const C=D.workflow,L=D.runs??[];E(C),d(I=>{var ft;return{...I,[C]:{snap:((ft=I[C])==null?void 0:ft.snap)??Bd,history:L}}})}catch{}}),M.addEventListener("error",()=>{T("lost"),M==null||M.close(),clearTimeout(_),_=setTimeout(h,2e3)})};return h(),()=>{M==null||M.close(),clearTimeout(_)}},[]),{workflows:f,order:b,conn:y}}function z0(f){const d=[],b=[];if(!Array.isArray(f))return{soft:d,hard:b};for(const o of f)if(typeof o=="string")d.push(o);else if(o&&typeof o=="object"){const y=o;typeof y.check=="string"?b.push({text:y.check,name:typeof y.name=="string"?y.name:void 0}):d.push(String(o))}return{soft:d,hard:b}}const j0=f=>f.split(`
|
|
34
|
-
`).map(d=>d.trim()).find(d=>d.length>0)??"";function qd(f,d){const b=(f.instruction??"").trim(),{soft:o,hard:y}=z0(f.gate),T=f.type==="loop";return{id:f.id,index:d,instruction:b,firstLine:j0(b),isCondition:f.type==="condition",ifTrue:f.if_true,ifFalse:f.if_false,then:f.then,output:f.output,requires:Array.isArray(f.requires)?f.requires:[],soft:o,hard:y,isLoop:T,over:f.over,as:f.as,subSteps:T&&Array.isArray(f.steps)?f.steps.filter(M=>M&&M.id).map((M,_)=>qd(M,_)):void 0}}function T0(f){if(!f)return null;let d;try{d=h0.load(f)??{}}catch{return null}const o=(Array.isArray(d.steps)?d.steps:[]).filter(y=>y&&y.id).map((y,T)=>qd(y,T));return{name:d.name,description:d.description,steps:o}}function A0(f){return Array.isArray(f.heartbeat)?f.heartbeat.filter(d=>d&&typeof d.at=="string"&&typeof d.note=="string").map(d=>({at:d.at,note:d.note,iteration:d.iteration,insight:d.insight&&typeof d.insight.type=="string"?{type:d.insight.type,seed:d.insight.seed??"",step:d.insight.step,confidence:d.insight.confidence}:void 0,finalBeat:d.finalBeat===!0,handoff:d.handoff&&typeof d.handoff=="object"?{to:d.handoff.to,to_iteration:d.handoff.to_iteration,context:d.handoff.context,produced:d.handoff.produced}:void 0})):[]}function E0(f,d){if(!f.isLoop)return;const b=f.subSteps??[],o=d.iterations??{},y=Object.keys(o),T=y.map(M=>{const _=o[M]??{},h=(b.length?b.map(O=>O.id):Object.keys(_)).map(O=>{const D=_[O]??{};return{id:O,status:D.status??"pending",gate:D.gate??"pending",attempt:D.attempt??1}});return{item:M,steps:h,done:h.length>0&&h.every(O=>O.status==="done"),failed:h.some(O=>O.status==="failed")}});return{total:typeof d.total=="number"?d.total:y.length,completed:typeof d.completed=="number"?d.completed:T.filter(M=>M.done).length,currentItem:d.current_item,iterations:T}}function M0(f,d){return f==="failed"||d==="failed"?"failed":f==="done"?"done":d==="checking"?"gate":f==="running"?"running":"pending"}function O0(f,d){const b=[],o=y=>d==null?void 0:d.find(T=>T.criterion===y||T.criterion===y.trim());for(const y of f.soft){const T=o(y);b.push({kind:"soft",text:y,passed:T?!!T.passed:null})}for(const y of f.hard){const T=o(y.text)??(y.name?o(y.name):void 0);b.push({kind:"hard",text:y.text,name:y.name,passed:T?!!T.passed:null,exitCode:T==null?void 0:T.exit_code})}return b}function D0(f){return Object.keys(f).map((d,b)=>{var o,y;return{id:d,index:b,instruction:"",firstLine:"",isCondition:!!((o=f[d])!=null&&o.branch_taken),requires:[],soft:[],hard:[],isLoop:((y=f[d])==null?void 0:y.type)==="loop"}})}function jd(f){const d=f.status??{},b=d.steps??{},o=T0(f.conductorYaml),y=!!o&&o.steps.length>0,M=(y?o.steps:D0(b)).map(C=>{const L=b[C.id]??{},I=L.status??"pending",ft=L.gate??"pending";return{...C,column:M0(I,ft),rawStatus:I,gateState:ft,attempt:L.attempt??1,branchTaken:L.branch_taken,output_value:L.output,criteria:O0(C,L.gate_detail),loop:E0(C,L),heartbeat:A0(L),learnings:Array.isArray(L.learnings)?L.learnings.filter(J=>typeof J=="string"):[]}}),_=M.length,E=M.filter(C=>C.column==="done").length,h=M.flatMap(C=>C.heartbeat.map(L=>L.at)).sort().at(-1),O=M.reduce((C,L)=>C+L.heartbeat.filter(I=>I.insight).length,0),D=Array.isArray(d.suggestions)?d.suggestions:[];return{workflow:d.workflow??(o==null?void 0:o.name)??"workflow",description:(o==null?void 0:o.description)??d.description,goal:d.goal??(o==null?void 0:o.description),currentStepGoal:d.current_step_goal,lastBeatAt:h,insightCount:O,suggestions:D,runId:d.run_id,startedAt:d.started_at,endedAt:d.completed_at,overallStatus:d.status??"idle",currentStep:d.current_step,steps:M,done:E,total:_,hasConductor:y,error:d._error}}let Td=null,Ad=0;const Rd="cb-muted";function mf(){try{return localStorage.getItem(Rd)==="1"}catch{return!1}}function _0(f){try{localStorage.setItem(Rd,f?"1":"0")}catch{}}function Yd(){try{const f=window.AudioContext||window.webkitAudioContext;return Td??(Td=new f),Td}catch{return null}}function Gd(f,d){if(mf())return!1;const b=Date.now();if(b-Ad<2e3)return!1;const o=Yd();if(!o)return!1;Ad=b;try{o.state==="suspended"&&o.resume();const y=o.currentTime,T=o.createOscillator(),M=o.createGain();return T.type="sine",T.frequency.setValueAtTime(f,y),M.gain.setValueAtTime(.15,y),M.gain.exponentialRampToValueAtTime(1e-4,y+d),T.connect(M).connect(o.destination),T.start(y),T.stop(y+d),!0}catch{return!1}}const U0=()=>Gd(800,.5),H0=()=>Gd(400,.7);let Ed=0;function C0(){if(mf())return!1;const f=Date.now();if(f-Ed<120)return!1;const d=Yd();if(!d)return!1;Ed=f;try{d.state==="suspended"&&d.resume();const b=d.currentTime,o=d.createOscillator(),y=d.createGain();return o.type="sine",o.frequency.setValueAtTime(2e3,b),y.gain.setValueAtTime(1e-4,b),y.gain.exponentialRampToValueAtTime(.03,b+.005),y.gain.exponentialRampToValueAtTime(1e-4,b+.05),o.connect(y).connect(d.destination),o.start(b),o.stop(b+.06),!0}catch{return!1}}function B0(f,d){var o,y;const b=[];for(const T of d){const M=(o=f[T])==null?void 0:o.snap.status,_=(M==null?void 0:M.steps)??{};for(const E of Object.keys(_)){const h=(y=_[E])==null?void 0:y.heartbeat;Array.isArray(h)&&h.forEach((O,D)=>{!O||typeof O.at!="string"||typeof O.note!="string"||b.push({key:`${T}\0${E}\0${O.at}\0${D}`,workflow:T,step:E,at:O.at,note:O.note,iteration:O.iteration,finalBeat:O.finalBeat===!0,insight:O.insight&&typeof O.insight.type=="string"?{type:O.insight.type,seed:O.insight.seed??"",step:O.insight.step,confidence:O.insight.confidence}:void 0})})}}return b.sort((T,M)=>T.at<M.at?-1:T.at>M.at?1:0),b}function q0(f,d){const b=Y.useMemo(()=>B0(f,d),[f,d]),o=Y.useRef(null),y=Y.useRef(0),[T,M]=Y.useState(null);return Y.useEffect(()=>{if(o.current===null){o.current=new Set(b.map(E=>E.key));return}const _=b.filter(E=>!o.current.has(E.key));if(_.length!==0){for(const E of _)o.current.add(E.key);y.current+=1,M({beat:_[_.length-1],nonce:y.current})}},[b]),{beats:b,arrival:T}}function R0(f){return f.length?f[f.length-1].at:void 0}function Qu(f=1e3){const[d,b]=Y.useState(()=>Date.now());return Y.useEffect(()=>{const o=setInterval(()=>b(Date.now()),f);return()=>clearInterval(o)},[f]),d}const df=/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g;function hf(f){const d=[];let b=0,o;df.lastIndex=0;let y=0;for(;(o=df.exec(f))!==null;)o.index>b&&d.push(f.slice(b,o.index)),d.push(s.jsxs("a",{href:o[2],target:"_blank",rel:"noopener noreferrer",onClick:T=>T.stopPropagation(),className:"text-cyan underline-offset-2 hover:underline",children:[o[1],s.jsx("span",{"aria-hidden":!0,className:"ml-0.5 text-[0.85em]",children:"↗"})]},y++)),b=o.index+o[0].length;return b<f.length&&d.push(f.slice(b)),d}function Xu(f){return f.replace(df,"$1")}function gf(f,d){if(!f)return null;const b=new Date(f).getTime();return Number.isNaN(b)?null:Math.max(0,Math.floor((d-b)/1e3))}function Xd(f,d){const b=gf(f,d);if(b===null)return"";if(b<60)return`${b}s ago`;const o=Math.floor(b/60);return o<60?`${o}m ago`:`${Math.floor(o/60)}h ago`}const Y0="#FF4D6A",G0=90;function pn({lastBeatIso:f,size:d=14,title:b}){const o=Qu(1e3),y=!!f&&(gf(f,o)??0)>G0,[T,M]=Y.useState(!1),_=Y.useRef(void 0),E=Y.useRef(!1);Y.useEffect(()=>{if(!E.current){E.current=!0,_.current=f;return}if(f&&f!==_.current){_.current=f,M(!0);const O=setTimeout(()=>M(!1),470);return()=>clearTimeout(O)}},[f]);const h=T?"heart-strong":y?"heart-weak":"heart-rest";return s.jsxs("svg",{className:h,width:d,height:d,viewBox:"0 0 24 24",style:{color:y&&!T?"var(--color-amber)":Y0},"aria-label":b??"heartbeat",children:[s.jsx("title",{children:b??(y?"beats have gone quiet":"heartbeat")}),s.jsx("path",{fill:"currentColor",d:"M12 21s-7.5-4.7-10-9.2C.4 8.4 2 5 5.2 5c2 0 3.3 1.1 4.1 2.3l.9 1.3.9-1.3C11.9 6.1 13.2 5 15.2 5 18.4 5 20 8.4 18.5 11.8 16 16.3 12 21 12 21Z"})]})}function X0(f,d,b){const[o,y]=Y.useState(()=>Date.now());if(Y.useEffect(()=>{if(!b)return;const O=setInterval(()=>y(Date.now()),1e3);return()=>clearInterval(O)},[b]),!f)return null;const T=new Date(f).getTime();if(Number.isNaN(T))return null;const M=!b&&d?new Date(d).getTime():o,_=Math.max(0,Math.floor((M-T)/1e3)),E=Math.floor(_/60),h=_%60;return`${E}:${String(h).padStart(2,"0")}`}const Md={running:"text-cyan border-cyan/30 bg-cyan/10",done:"text-mint border-mint/30 bg-mint/10",failed:"text-rose border-rose/30 bg-rose/10",idle:"text-mist border-line-2 bg-panel"};function Q0({conn:f}){const d={live:{c:"bg-mint",t:"live"},connecting:{c:"bg-amber animate-pulse",t:"connecting"},lost:{c:"bg-rose",t:"reconnecting"}}[f];return s.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-[11px] text-mist",children:[s.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${d.c}`}),d.t]})}function Z0({model:f,conn:d,viewing:b,muted:o,onToggleMute:y,onBackToLive:T,onToggleSidebar:M}){const _=!b&&f.overallStatus==="running",E=X0(f.startedAt,f.endedAt,_),h=Qu(1e3),O=_&&f.lastBeatAt?Xd(f.lastBeatAt,h):null,D=f.total?Math.round(f.done/f.total*100):0;return s.jsxs("header",{className:"sticky top-0 z-30 border-b border-line bg-ink/80 backdrop-blur-xl",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 px-5 py-3",children:[s.jsx("button",{onClick:M,"aria-label":"Toggle history",className:"grid h-7 w-7 place-items-center rounded-md border border-line text-mist transition-colors hover:border-line-2 hover:text-chalk",children:s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",children:s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",d:"M4 6h16M4 12h16M4 18h16"})})}),s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("img",{src:"./conductor.svg",alt:"",className:"h-6 w-6"}),s.jsx("span",{className:"font-mono text-sm font-medium text-chalk",children:f.workflow}),s.jsx("span",{className:`rounded-md border px-2 py-0.5 font-mono text-[10px] capitalize ${Md[f.overallStatus]??Md.idle}`,children:f.overallStatus})]}),b?s.jsxs("button",{onClick:T,className:"flex items-center gap-1.5 rounded-md border border-amber/30 bg-amber/10 px-2.5 py-1 font-mono text-[11px] text-amber transition-colors hover:bg-amber/15",children:[s.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",children:s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",d:"M11 17 6 12l5-5M6 12h12"})}),"past run — back to live"]}):f.goal&&s.jsxs("span",{title:f.goal,className:"hidden max-w-md items-center gap-1.5 truncate text-sm text-mist-2 lg:flex",children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",className:"shrink-0 text-iris",children:[s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M12 2v4m0 12v4M2 12h4m12 0h4"}),s.jsx("circle",{cx:"12",cy:"12",r:"3.2",fill:"currentColor"})]}),s.jsx("span",{className:"truncate",children:f.goal})]}),s.jsxs("div",{className:"ml-auto flex items-center gap-5",children:[f.insightCount>0&&s.jsxs("span",{title:"Improvement signals gathered this run",className:"flex items-center gap-1 font-mono text-[11px] text-amber",children:["💡 ",f.insightCount," insight",f.insightCount===1?"":"s"]}),O&&s.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-[11px] text-mist",children:[s.jsx(pn,{lastBeatIso:f.lastBeatAt,size:13,title:`last beat: ${O}`}),"last beat: ",O]}),E&&s.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-xs text-mist",children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",className:"text-line-2",children:s.jsx("path",{fill:"currentColor",d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10V6h-2v8h6v-2h-4Z"})}),E]}),s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"h-1.5 w-28 overflow-hidden rounded-full bg-panel-2",children:s.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${f.overallStatus==="failed"?"bg-gradient-to-r from-rose to-amber":"bg-gradient-to-r from-iris to-cyan"}`,style:{width:`${D}%`}})}),s.jsxs("span",{className:"font-mono text-xs text-mist-2",children:[f.done,"/",f.total]})]}),s.jsx("button",{onClick:y,title:o?"Unmute completion sounds":"Mute completion sounds",className:"grid h-7 w-7 place-items-center rounded-md border border-line text-mist transition-colors hover:border-line-2 hover:text-chalk",children:o?s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M11 5 6 9H2v6h4l5 4V5Z"}),s.jsx("path",{d:"m23 9-6 6M17 9l6 6"})]}):s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M11 5 6 9H2v6h4l5 4V5Z"}),s.jsx("path",{d:"M15.5 8.5a5 5 0 0 1 0 7"})]})}),b?s.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-[11px] text-amber",children:[s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-amber"}),"archived"]}):s.jsx(Q0,{conn:d})]})]}),!b&&_&&f.currentStepGoal&&s.jsxs("div",{className:"flex items-center gap-2 border-t border-line/60 px-5 py-1.5",children:[s.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wide text-cyan",children:"now"}),f.currentStep&&s.jsx("span",{className:"font-mono text-[11px] text-chalk",children:f.currentStep}),s.jsx("span",{className:"truncate text-xs text-mist",children:f.currentStepGoal})]})]})}function L0(f){const d=new Date(f);return Number.isNaN(d.getTime())?"":d.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}function V0({iso:f,running:d,now:b}){return s.jsx("span",{className:"shrink-0 font-mono text-[9px] text-line-2",title:f,children:d?Xd(f,b):L0(f)})}function w0({entries:f,learnings:d,now:b,running:o,loop:y}){const T=(y==null?void 0:y.iterations.map(h=>h.item))??[],[M,_]=Y.useState("all"),E=M==="all"?f:f.filter(h=>h.iteration===M);return s.jsxs("div",{className:"mt-2.5 border-t border-line pt-2 pl-7",children:[T.length>0&&s.jsx("div",{className:"mb-2 flex flex-wrap items-center gap-1",children:["all",...T].map(h=>{const O=M===h;return s.jsx("button",{onClick:D=>{D.stopPropagation(),_(h)},className:`rounded-full border px-1.5 py-0.5 font-mono text-[9px] transition-colors ${O?"border-iris/50 bg-iris/15 text-chalk":"border-line text-mist hover:text-chalk"}`,children:h==="all"?"All":h},h)})}),d.length>0&&s.jsxs("div",{className:"mb-2 rounded-lg border border-cyan/20 bg-cyan/[0.06] px-2.5 py-2",children:[s.jsx("div",{className:"mb-1 font-mono text-[9px] uppercase tracking-wide text-cyan",children:"learnings"}),s.jsx("ul",{className:"space-y-0.5",children:d.map((h,O)=>s.jsxs("li",{className:"flex gap-1.5 text-[11px] leading-snug text-mist-2",children:[s.jsx("span",{className:"text-cyan",children:"·"}),s.jsx("span",{children:h})]},O))})]}),E.length>0&&s.jsxs("div",{className:"relative max-h-64 space-y-2 overflow-y-auto board-scroll pl-3.5",children:[s.jsx("span",{className:"pointer-events-none absolute bottom-1 left-[3px] top-1.5 w-px bg-line"}),[...E].reverse().map((h,O)=>{var D,C;return s.jsxs("div",{className:`relative ${h.insight?"-ml-1 rounded-md border-l-2 border-amber/50 bg-amber/[0.05] pl-2":""}`,children:[h.finalBeat?s.jsx("span",{className:"absolute -left-[15px] top-[3px] font-mono text-[10px] leading-none text-mint",title:(D=h.handoff)!=null&&D.to?`handoff → ${h.handoff.to}`:"final beat",children:"·→"}):s.jsx("span",{className:`absolute -left-[13px] top-[5px] h-1.5 w-1.5 rounded-full ${h.insight?"bg-amber":"bg-line-2"}`}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(V0,{iso:h.at,running:o,now:b}),s.jsxs("span",{className:"flex-1 text-[11px] leading-snug text-mist-2",children:[h.iteration&&M==="all"&&s.jsx("span",{className:"mr-1 rounded bg-iris/10 px-1 font-mono text-[9px] text-iris",children:h.iteration}),h.insight&&s.jsx("span",{className:"mr-1",children:"💡"}),hf(h.note),h.insight&&s.jsxs("span",{className:"mt-0.5 block text-[10px] italic text-amber/90",children:["↳ ",h.insight.seed]}),h.finalBeat&&((C=h.handoff)==null?void 0:C.to)&&s.jsxs("span",{className:"mt-0.5 block font-mono text-[9px] text-mint/80",children:["→ handoff to ",h.handoff.to]})]})]})]},O)})]})]})}function K0(){return s.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",className:"text-amber",children:s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",d:"M6 4v6a4 4 0 0 0 4 4h0M6 4v16M6 10a4 4 0 0 1 4-4h0m8 0-3-3m3 3-3 3m3-3h-4"})})}function J0(){return s.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",className:"text-iris",children:s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M17 2l4 4-4 4M3 11V9a4 4 0 0 1 4-4h14M7 22l-4-4 4-4m14-1v2a4 4 0 0 1-4 4H3"})})}function k0({step:f}){switch(f.column){case"done":return s.jsx("span",{className:"check-pop grid h-5 w-5 place-items-center rounded-full bg-mint/15 text-mint",children:s.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",children:s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",d:"m5 12 5 5L20 6"})})});case"failed":return s.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-full bg-rose/15 text-rose",children:s.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",children:s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",d:"M6 6l12 12M18 6 6 18"})})});case"gate":return s.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-full bg-amber/15 text-amber",children:s.jsx("svg",{className:"spin",width:"12",height:"12",viewBox:"0 0 24 24",children:s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",d:"M12 3a9 9 0 1 0 9 9"})})});case"running":return s.jsx("span",{className:"grid h-5 w-5 place-items-center",children:s.jsx("span",{className:"h-2.5 w-2.5 animate-pulse rounded-full bg-cyan"})});default:return s.jsx("span",{className:"grid h-5 w-5 place-items-center",children:s.jsx("span",{className:"h-2.5 w-2.5 rounded-full border border-line-2"})})}}function $0({c:f}){const d=f.passed===!0?s.jsx("span",{className:"text-mint",children:"✓"}):f.passed===!1?s.jsx("span",{className:"text-rose",children:"✕"}):s.jsx("span",{className:"text-line-2",children:"○"});return s.jsxs("div",{className:"flex items-start gap-2 py-1",children:[s.jsx("span",{className:"mt-0.5 w-3 shrink-0 text-center font-mono text-[11px]",children:d}),s.jsx("span",{className:`rounded border px-1 py-px font-mono text-[9px] ${f.kind==="hard"?"border-mint/25 text-mint":"border-line-2 text-mist"}`,children:f.kind}),s.jsxs("span",{className:"flex-1 font-mono text-[11px] leading-snug text-mist-2",children:[f.kind==="hard"&&f.name?f.name:f.text,f.kind==="hard"&&typeof f.exitCode=="number"&&s.jsxs("span",{className:"ml-1 text-mist",children:["exit ",f.exitCode]})]})]})}const W0={done:"bg-mint",failed:"bg-rose",running:"bg-cyan animate-pulse",checking:"bg-amber",pending:"bg-line-2"};function F0({it:f,beats:d}){const[b,o]=Y.useState(!1),y=f.steps.some(h=>h.status==="running"),T=f.failed?"bg-rose":f.done?"bg-mint":y?"bg-cyan animate-pulse":"bg-line-2",M=d.at(-1),_=M?hf(M.note):f.done?"done":y?"running":"pending",E=f.steps.find(h=>h.attempt>1);return s.jsxs("div",{className:"border-b border-line/40 last:border-0",children:[s.jsxs("button",{onClick:h=>{h.stopPropagation(),o(O=>!O)},className:"flex w-full items-center gap-2 py-1.5 text-left",children:[s.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${T}`}),s.jsx("span",{className:"shrink-0 font-mono text-[11px] text-mist-2",children:f.item}),E&&s.jsxs("span",{className:"shrink-0 rounded border border-amber/30 px-1 font-mono text-[9px] text-amber",children:["×",E.attempt]}),s.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px] italic text-mist",children:_})]}),b&&s.jsx("div",{className:"pb-2 pl-3.5",children:s.jsx("div",{className:"flex flex-wrap gap-1.5",children:f.steps.map((h,O)=>s.jsxs("span",{className:"inline-flex items-center gap-1 rounded border border-line-2 px-1.5 py-0.5 font-mono text-[9px] text-mist",children:[s.jsx("span",{className:`h-1 w-1 rounded-full ${W0[h.gate==="checking"?"checking":h.status]??"bg-line-2"}`}),h.id]},O))})})]})}const I0={done:"border-mint/25",failed:"border-rose/40",gate:"border-amber/40",running:"border-cyan/40 pulse-ring",pending:"border-line-2"},P0={layout:{type:"spring",stiffness:480,damping:40,mass:.9},opacity:{duration:.16},scale:{duration:.16},default:{duration:.16}};function t1({step:f}){const[d,b]=Y.useState(!1),o=Qu(5e3),y=f.isLoop?f.loop:void 0,T=f.heartbeat.at(-1),M=f.column==="running"&&T!=null&&(gf(T.at,o)??0)>90,_=f.heartbeat.length>0||f.learnings.length>0,h=(y?y.iterations.length>0:f.criteria.length>0)||_,O=f.column==="pending"?"opacity-70":"",D=y&&y.total?Math.round(y.completed/y.total*100):0;return s.jsxs(vn.div,{layout:!0,layoutId:f.id,initial:{opacity:0,scale:.92,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.92},transition:P0,onClick:()=>h&&b(C=>!C),className:`rounded-xl border bg-panel px-3 py-2.5 ${I0[f.column]} ${O} ${h?"cursor-pointer":""} ${f.column==="done"?"opacity-85":""}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[f.isCondition?s.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-md bg-amber/10",children:s.jsx(K0,{})}):y?s.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-md bg-iris/10",children:s.jsx(J0,{})}):s.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-md bg-iris/15 font-mono text-[10px] text-iris",children:f.index+1}),s.jsx("span",{className:"flex-1 truncate font-mono text-[12.5px] text-chalk",children:f.id}),M&&s.jsx("span",{title:"No heartbeat for 90s — agent may be stalled",className:"h-2 w-2 animate-pulse rounded-full bg-amber"}),!y&&f.attempt>1&&s.jsxs("span",{title:`${f.attempt} attempts`,className:"rounded border border-amber/30 bg-amber/10 px-1 font-mono text-[9px] text-amber",children:["×",f.attempt]}),s.jsx(k0,{step:f})]}),y?s.jsxs("div",{className:"mt-2 pl-7",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("span",{className:"font-mono text-[10px] text-mist-2",children:[y.completed,"/",y.total," iterations"]}),y.currentItem&&f.column==="running"&&s.jsx("span",{className:"max-w-[130px] truncate font-mono text-[10px] text-cyan",children:y.currentItem})]}),s.jsx("div",{className:"mt-1.5 h-1.5 overflow-hidden rounded-full bg-panel-2",children:s.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-iris to-cyan transition-all duration-500",style:{width:`${D}%`}})}),s.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[s.jsx("span",{className:"inline-flex items-center gap-1 rounded-md border border-iris/25 bg-iris/[0.08] px-1.5 py-0.5 font-mono text-[10px] text-iris",children:"loop"}),f.over&&s.jsxs("span",{className:"rounded-md border border-line-2 bg-ink/40 px-1.5 py-0.5 font-mono text-[10px] text-mist",children:["over ",f.over]}),h&&s.jsx("span",{className:"font-mono text-[10px] text-line-2",children:d?"▾ hide":"▸ iterations"})]})]}):s.jsxs(s.Fragment,{children:[f.firstLine&&s.jsx("p",{className:"mt-1.5 line-clamp-2 pl-7 text-[11.5px] leading-snug text-mist",children:f.firstLine}),s.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1.5 pl-7",children:[f.soft.length>0&&s.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md border border-line-2 bg-ink/50 px-1.5 py-0.5 font-mono text-[10px] text-mist-2",children:[s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-iris"}),f.soft.length," soft"]}),f.hard.length>0&&s.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md border border-mint/25 bg-mint/[0.08] px-1.5 py-0.5 font-mono text-[10px] text-mint",children:[s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-mint"}),f.hard.length," check"]}),f.isCondition&&f.branchTaken&&s.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md border border-amber/30 bg-amber/10 px-1.5 py-0.5 font-mono text-[10px] text-amber",children:["→ ",f.branchTaken]}),f.output&&s.jsxs("span",{className:"rounded-md border border-cyan/30 bg-cyan/10 px-1.5 py-0.5 font-mono text-[10px] text-cyan",children:["→ ",f.output]}),f.requires.length>0&&s.jsxs("span",{title:`requires ${f.requires.join(", ")}`,className:"inline-flex items-center gap-1 rounded-md border border-line-2 bg-ink/40 px-1.5 py-0.5 font-mono text-[10px] text-mist",children:[s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",className:"text-line-2",children:s.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",d:"M9 6 4 12l5 6M15 6l5 6-5 6"})}),f.requires.join(", ")]})]})]}),T&&s.jsxs("div",{title:T.note,className:"mt-2 flex items-start gap-1.5 pl-7 text-[11px] italic leading-snug text-mist",children:[s.jsx("span",{className:"mt-[3px] h-1 w-1 shrink-0 rounded-full bg-cyan"}),s.jsxs("span",{className:"truncate",children:[T.insight&&s.jsx("span",{className:"mr-0.5 not-italic",children:"💡"}),hf(T.note)]})]}),s.jsx(xn,{initial:!1,children:d&&h&&s.jsxs(vn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22},className:"overflow-hidden",children:[_&&s.jsx(w0,{entries:f.heartbeat,learnings:f.learnings,now:o,running:f.column==="running",loop:y}),y&&y.iterations.length>0&&s.jsx("div",{className:"mt-2.5 border-t border-line pt-1 pl-7",children:y.iterations.map(C=>s.jsx(F0,{it:C,beats:f.heartbeat.filter(L=>L.iteration===C.item)},C.item))}),!y&&f.criteria.length>0&&s.jsx("div",{className:"mt-2.5 border-t border-line pt-2 pl-7",children:f.criteria.map((C,L)=>s.jsx($0,{c:C},L))})]})})]})}const l1={pending:{label:"Pending",dot:"bg-line-2",text:"text-mist"},running:{label:"Running",dot:"bg-cyan",text:"text-cyan"},gate:{label:"Gate Check",dot:"bg-amber",text:"text-amber"},done:{label:"Done",dot:"bg-mint",text:"text-mint"},failed:{label:"Failed",dot:"bg-rose",text:"text-rose"}};function Od({col:f,steps:d,side:b}){const o=l1[f],y=d.length>=6,T=d.length>=6;return s.jsxs("div",{className:`flex min-h-0 flex-col rounded-2xl border bg-ink-2/40 ${b?"border-rose/15":"border-line"}`,children:[s.jsxs("div",{className:"flex shrink-0 items-center gap-2 rounded-t-2xl border-b border-line/70 bg-ink-2/60 px-3.5 py-2.5",children:[s.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${o.dot}`}),s.jsx("span",{className:`font-mono text-[11px] uppercase tracking-wide ${o.text}`,children:o.label}),s.jsx("span",{className:"ml-auto grid h-5 min-w-5 place-items-center rounded-md bg-panel px-1 font-mono text-[10px] text-mist",children:d.length})]}),s.jsxs("div",{className:"relative min-h-0 flex-1",children:[s.jsxs("div",{className:"board-scroll max-h-[calc(100vh-168px)] overflow-y-auto scroll-smooth p-2.5",children:[s.jsx("div",{className:`flex flex-col ${y?"gap-1.5":"gap-2"}`,children:s.jsx(xn,{mode:"popLayout",initial:!1,children:d.map(M=>s.jsx(t1,{step:M},M.id))})}),d.length===0&&s.jsx("div",{className:"grid place-items-center py-6",children:s.jsx("span",{className:"font-mono text-[10px] text-line-2",children:"empty"})})]}),T&&s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-8 rounded-b-2xl bg-gradient-to-t from-ink-2 to-transparent"})]})]})}const e1=["pending","running","gate","done"];function a1({model:f}){const d=o=>f.steps.filter(y=>y.column===o),b=d("failed");return s.jsx(m0,{children:s.jsx("div",{className:"mx-auto max-w-[1400px] px-5 py-6",children:s.jsxs("div",{className:`grid items-start gap-3 ${b.length>0?"lg:grid-cols-[repeat(4,minmax(0,1fr))_0.85fr]":"lg:grid-cols-4"} sm:grid-cols-2`,children:[e1.map(o=>s.jsx(Od,{col:o,steps:d(o)},o)),b.length>0&&s.jsx(Od,{col:"failed",steps:b,side:!0})]})})})}function n1(f){if(!f)return"";const d=new Date(f);return Number.isNaN(d.getTime())?"":d.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function u1(f,d){if(!f||!d)return"";const b=new Date(f).getTime(),o=new Date(d).getTime();if(Number.isNaN(b)||Number.isNaN(o)||o<b)return"";const y=Math.round((o-b)/1e3);return y<60?`${y}s`:`${Math.floor(y/60)}m ${y%60}s`}function i1(f,d){if(!f)return"";const b=new Date(f).getTime();if(Number.isNaN(b))return"";const o=Math.max(0,Math.floor((d-b)/1e3)),y=Math.floor(o/3600),T=Math.floor(o%3600/60),M=o%60;return`${y}:${String(T).padStart(2,"0")}:${String(M).padStart(2,"0")}`}function c1(f){let d;for(const b of Object.values((f==null?void 0:f.steps)??{})){const o=b==null?void 0:b.heartbeat;if(Array.isArray(o))for(const y of o)y!=null&&y.at&&(!d||y.at>d)&&(d=y.at)}return d}function f1(f){const d=(f==null?void 0:f.steps)??{},b=Object.keys(d).length,o=Object.values(d).filter(y=>(y==null?void 0:y.status)==="done").length;return{total:b,done:o}}function s1({workflows:f,order:d,activeWf:b,selectedRun:o,onPickWorkflow:y,onPickRun:T,onPin:M,width:_,onResize:E}){const h=Qu(1e3),[O,D]=Y.useState(new Set),C=Z=>D(V=>{const tt=new Set(V);return tt.has(Z)?tt.delete(Z):tt.add(Z),tt}),L=Z=>{Z.preventDefault();const V=at=>E(Math.max(220,Math.min(320,at.clientX))),tt=()=>{window.removeEventListener("pointermove",V),window.removeEventListener("pointerup",tt)};window.addEventListener("pointermove",V),window.addEventListener("pointerup",tt)},I=Z=>{var V;return(V=f[Z])==null?void 0:V.snap.status},ft=d.filter(Z=>{var V;return((V=I(Z))==null?void 0:V.status)==="running"}),J=d.map(Z=>{var _t;const V=I(Z),tt=(V==null?void 0:V.status)==="running",at=(((_t=f[Z])==null?void 0:_t.history)??[]).filter(U=>!(tt&&U.run_id===(V==null?void 0:V.run_id)));return{name:Z,runs:at}}).filter(Z=>Z.runs.length>0);return s.jsxs("aside",{style:{width:_},className:"relative flex h-screen shrink-0 flex-col border-r border-line bg-ink-2/60 backdrop-blur",children:[s.jsxs("div",{className:"flex items-center gap-2 border-b border-line px-4 py-3.5",children:[s.jsx("img",{src:"./conductor.svg",alt:"",className:"h-5 w-5 opacity-90"}),s.jsx("span",{className:"font-mono text-xs font-medium tracking-wide text-chalk",children:"conductor"}),s.jsx("span",{className:"ml-auto font-mono text-[11px] text-mist",children:d.length})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto",children:[s.jsxs("div",{className:"px-3 pt-3.5",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-1 pb-1.5",children:[s.jsx("span",{className:"h-2 w-2 rounded-full bg-mint shadow-[0_0_6px] shadow-mint/60"}),s.jsx("span",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.14em] text-mint",children:"Running"}),s.jsx("span",{className:"ml-auto font-mono text-[10px] text-mist",children:ft.length})]}),ft.length===0?s.jsx("p",{className:"px-1 pb-1 pt-0.5 font-mono text-[11px] text-line-2",children:"No active workflows."}):s.jsx("div",{className:"space-y-1.5",children:ft.map(Z=>{const V=I(Z),{done:tt,total:at}=f1(V),_t=b===Z&&o===null;return s.jsxs("button",{onClick:()=>y(Z),onContextMenu:U=>{U.preventDefault(),M==null||M(Z)},title:"Click to open · right-click to pin as a tab",className:`block w-full rounded-lg border px-2.5 py-2 text-left transition-colors ${_t?"border-iris/40 bg-iris/10":"border-line bg-panel/50 hover:border-line-2 hover:bg-panel"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px] font-medium text-chalk",children:Z}),s.jsxs("span",{className:"shrink-0 font-mono text-[10px] text-mist",children:[tt,"/",at]})]}),s.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[s.jsx(pn,{lastBeatIso:c1(V),size:12}),s.jsx("span",{className:"font-mono text-[10.5px] tabular-nums text-mist-2",children:i1(V==null?void 0:V.started_at,h)}),(V==null?void 0:V.current_step)&&s.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[10.5px] text-cyan",children:V.current_step})]})]},Z)})})]}),s.jsxs("div",{className:"mt-4 px-3",children:[s.jsxs("div",{className:"flex items-center gap-2 px-1 pb-1",children:[s.jsx("span",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.14em] text-mist",children:"History"}),s.jsx("span",{className:"h-px flex-1 bg-line"})]}),J.length===0?s.jsx("p",{className:"px-1 pt-1 font-mono text-[11px] text-line-2",children:"No past runs yet."}):s.jsx("div",{className:"space-y-0.5 pt-1",children:J.map(({name:Z,runs:V})=>{const tt=!O.has(Z);return s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>C(Z),onContextMenu:at=>{at.preventDefault(),M==null||M(Z)},className:"flex w-full items-center gap-1.5 rounded-md px-1 py-1 text-left hover:bg-panel/60",children:[s.jsx("span",{className:"font-mono text-[10px] text-mist",children:tt?"▾":"▸"}),s.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-mist-2",children:Z}),s.jsxs("span",{className:"shrink-0 font-mono text-[10px] text-line-2",children:[V.length," run",V.length===1?"":"s"]})]}),tt&&s.jsx("div",{className:"ml-2.5 border-l border-line/60 pl-1.5",children:V.map(at=>{const _t=b===Z&&o===at.run_id,U=at.status==="failed";return s.jsxs("button",{onClick:()=>T(Z,at.run_id),className:`flex w-full items-center gap-2 rounded-md px-1.5 py-1 text-left transition-colors ${_t?"bg-iris/15":"hover:bg-panel"}`,children:[s.jsx("span",{className:"shrink-0 text-[10px]",children:U?"❌":"✅"}),s.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[10px] text-mist-2",children:n1(at.completed_at||at.archived_at||at.started_at)}),s.jsx("span",{className:"shrink-0 font-mono text-[9px] text-line-2",children:u1(at.started_at,at.completed_at)})]},at.run_id)})})]},Z)})})]})]}),s.jsx("div",{onPointerDown:L,className:"absolute inset-y-0 -right-1 w-2 cursor-col-resize",title:"Drag to resize"})]})}const o1={high:"bg-mint",medium:"bg-amber",low:"bg-line-2"};function r1(f){if(!f)return"";const d=new Date(f);return Number.isNaN(d.getTime())?f:d.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Dd({kind:f,text:d}){return s.jsxs("div",{className:`rounded px-2 py-1 font-mono text-[10.5px] leading-snug ${f==="before"?"bg-rose/10 text-rose/90":"bg-mint/10 text-mint"}`,children:[s.jsx("span",{className:"select-none opacity-60",children:f==="before"?"- ":"+ "}),d]})}function d1({s:f,state:d,onApply:b,onSkip:o}){return s.jsxs(vn.div,{layout:!0,initial:{opacity:0,y:12},animate:{opacity:d==="skipped"?.4:1,y:0,scale:d==="applied"?.985:1},exit:{opacity:0,scale:.9},transition:{duration:.25},className:`rounded-xl border p-3.5 ${d==="applied"?"border-mint/40 bg-mint/[0.06]":"border-line bg-panel/60"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${o1[f.confidence??"low"]}`}),s.jsx("span",{className:"flex-1 text-sm font-medium text-chalk",children:f.title}),d==="applied"&&s.jsx("span",{className:"text-xs text-mint",children:"applied ✓"})]}),s.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-x-3 gap-y-1 pl-4 font-mono text-[10px] text-mist",children:[f.step&&s.jsxs("span",{children:["step: ",f.step]}),s.jsx("span",{className:"rounded border border-line-2 px-1",children:f.type}),f.impact&&s.jsx("span",{className:"text-mint/80",children:f.impact})]}),f.rationale&&s.jsx("p",{className:"mt-2 pl-4 text-[11.5px] leading-snug text-mist-2",children:f.rationale}),(f.current||f.proposed)&&s.jsxs("div",{className:"mt-2 space-y-1 pl-4",children:[f.current&&s.jsx(Dd,{kind:"before",text:f.current}),f.proposed&&s.jsx(Dd,{kind:"after",text:f.proposed})]}),f.source_heartbeat&&s.jsxs("div",{className:"mt-2 pl-4 font-mono text-[10px] text-mist",children:["Source: heartbeat at ",r1(f.source_heartbeat)," 💡"]}),d==="pending"&&s.jsxs("div",{className:"mt-3 flex gap-2 pl-4",children:[s.jsx("button",{onClick:b,className:"rounded-lg bg-mint/15 px-3 py-1 text-xs font-medium text-mint transition-colors hover:bg-mint/25",children:"✓ Apply"}),s.jsx("button",{onClick:o,className:"rounded-lg border border-line px-3 py-1 text-xs text-mist transition-colors hover:text-chalk",children:"Skip"})]})]})}function m1({workflow:f,suggestions:d,onApply:b,onClose:o}){const[y,T]=Y.useState({}),[M,_]=Y.useState(null),[E,h]=Y.useState(!1),[O,D]=Y.useState(""),C=J=>y[J]??"pending",L=d.filter(J=>C(J.id)==="pending").map(J=>J.id),I=async J=>{if(J.length===0||E)return;h(!0);const Z=await b(J);h(!1),Z.ok?(T(V=>({...V,...Object.fromEntries(J.map(tt=>[tt,"applied"]))})),_(`${J.length} optimization${J.length===1?"":"s"} applied to ${f}.conductor.yaml`),setTimeout(()=>_(null),4e3)):(_(`⚠ ${Z.error??"Could not apply — conductor left unchanged."}`),setTimeout(()=>_(null),5e3))},ft=J=>T(Z=>({...Z,[J]:"skipped"}));return s.jsxs(vn.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",stiffness:260,damping:30},className:"absolute inset-y-0 right-0 z-40 flex w-[400px] max-w-full flex-col border-l border-line bg-ink-2/95 shadow-2xl backdrop-blur",children:[s.jsxs("div",{className:"flex items-center gap-2 border-b border-line px-4 py-3.5",children:[s.jsx("span",{className:"text-base",children:"✨"}),s.jsx("span",{className:"font-medium text-chalk",children:"Optimization Review"}),s.jsx("span",{className:"grid h-5 min-w-5 place-items-center rounded-md bg-iris/15 px-1 font-mono text-[11px] text-iris",children:d.length}),s.jsx("button",{onClick:o,className:"ml-auto text-mist hover:text-chalk",title:"Close",children:"✕"})]}),s.jsxs("div",{className:"flex-1 space-y-2.5 overflow-y-auto p-3",children:[s.jsx(xn,{initial:!1,children:d.map(J=>s.jsx(d1,{s:J,state:C(J.id),onApply:()=>I([J.id]),onSkip:()=>ft(J.id)},J.id))}),s.jsx("form",{onSubmit:J=>{J.preventDefault(),O.trim()&&(_("Your suggestion was noted (source: user)."),D(""),setTimeout(()=>_(null),3e3))},className:"rounded-xl border border-dashed border-line-2 p-2",children:s.jsx("input",{value:O,onChange:J=>D(J.target.value),placeholder:"💬 Add your own suggestion…",className:"w-full bg-transparent px-1.5 py-1 text-xs text-mist-2 outline-none placeholder:text-mist"})})]}),s.jsxs("div",{className:"flex items-center gap-2 border-t border-line p-3",children:[s.jsx("button",{onClick:()=>I(L),disabled:L.length===0||E,className:"flex-1 rounded-lg bg-gradient-to-b from-iris to-iris-deep px-3 py-2 text-sm font-medium text-white transition-opacity disabled:opacity-40",children:E?"Applying…":`Apply ${L.length} selected`}),s.jsx("button",{onClick:o,className:"rounded-lg border border-line px-3 py-2 text-sm text-mist transition-colors hover:text-chalk",children:"Skip all"})]}),s.jsx(xn,{children:M&&s.jsx(vn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"pointer-events-none absolute inset-x-3 bottom-20 rounded-lg border border-line bg-panel px-3 py-2 text-center text-[11px] text-chalk shadow-xl",children:M})})]})}function Qd({text:f,speed:d=30,className:b,cursor:o=!0,onDone:y}){const[T,M]=Y.useState(0);Y.useEffect(()=>{if(M(0),!f){y==null||y();return}let E=0;const h=setInterval(()=>{E+=1,M(E),E>=f.length&&(clearInterval(h),y==null||y())},d);return()=>clearInterval(h)},[f,d]);const _=T<f.length;return s.jsxs("span",{className:b,children:[f.slice(0,T),o&&_&&s.jsx("span",{className:"tw-cursor text-cyan",children:"█"})]})}const Zd="cb-monitor",_d=["text-cyan","text-iris","text-mint","text-amber","text-rose"];function Ld(f){const d=new Date(f);return Number.isNaN(d.getTime())?"--:--:--":d.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function h1(){try{const f=new URLSearchParams(window.location.search).get("monitor");if(f==="min"||f==="expanded"||f==="hidden")return f}catch{}try{const f=localStorage.getItem(Zd);if(f==="min"||f==="expanded"||f==="hidden")return f}catch{}return"min"}function g1({beats:f,arrival:d,order:b,mode:o,onMode:y,lastBeatIso:T}){const M=O=>_d[Math.max(0,b.indexOf(O))%_d.length],_=b.length>1,E=f[f.length-1],h=d==null?void 0:d.beat.key;return Y.useEffect(()=>{try{localStorage.setItem(Zd,o)}catch{}},[o]),Y.useEffect(()=>{const O=D=>{D.ctrlKey&&(D.key==="`"||D.code==="Backquote")&&(D.preventDefault(),y(o==="expanded"?"min":"expanded"))};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[o,y]),o==="hidden"?s.jsxs("button",{onClick:()=>y("min"),title:"Show heartbeat monitor",className:"fixed bottom-4 right-4 z-40 flex items-center gap-2 rounded-full border border-line bg-ink-2/90 px-3 py-2 shadow-lg backdrop-blur transition-colors hover:border-line-2",children:[s.jsx(pn,{lastBeatIso:T,size:15}),s.jsx("span",{className:"font-mono text-[10px] text-mist",children:"monitor"})]}):o==="min"?s.jsx("div",{className:"shrink-0 border-t border-line bg-ink-2/80 backdrop-blur",children:s.jsxs("button",{onClick:()=>y("expanded"),className:"flex w-full items-center gap-2.5 px-4 py-1.5 text-left",title:"Expand heartbeat monitor (Ctrl+`)",children:[s.jsx(pn,{lastBeatIso:T,size:13}),E?s.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2 font-mono text-[11px]",children:[s.jsx("span",{className:"shrink-0 text-line-2",children:Ld(E.at)}),_&&s.jsx("span",{className:`shrink-0 ${M(E.workflow)}`,children:E.workflow}),s.jsxs("span",{className:"shrink-0 text-cyan/80",children:[E.step,":"]}),s.jsx("span",{className:"min-w-0 flex-1 truncate text-mist-2",children:E.key===h?s.jsx(Qd,{text:Xu(E.note)}):Xu(E.note)}),E.insight&&s.jsx("span",{className:"shrink-0",children:"💡"})]}):s.jsx("span",{className:"flex-1 font-mono text-[11px] text-line-2",children:"waiting for the first heartbeat…"}),s.jsx("span",{className:"shrink-0 font-mono text-[10px] text-mist",children:"▲"})]})}):s.jsx(y1,{beats:f,order:b,streamKey:h,onMode:y,wfColor:M,multi:_,lastBeatIso:T})}function y1({beats:f,order:d,streamKey:b,onMode:o,wfColor:y,multi:T,lastBeatIso:M}){const[_,E]=Y.useState("all"),[h,O]=Y.useState(280),D=Y.useRef(null),C=Y.useRef(!0),[L,I]=Y.useState(!1),[ft,J]=Y.useState(!1),Z=f.filter(U=>_==="all"?!0:_==="insights"?!!U.insight:U.workflow===_);Y.useLayoutEffect(()=>{const U=D.current;U&&C.current&&(U.scrollTop=U.scrollHeight,I(!1))},[Z.length,_]),Y.useEffect(()=>{if(!b)return;J(!0);const U=setTimeout(()=>J(!1),1e4);return()=>clearTimeout(U)},[b]);const V=()=>{const U=D.current;if(!U)return;const St=U.scrollHeight-U.scrollTop-U.clientHeight<24;C.current=St,I(!St)},tt=()=>{const U=D.current;U&&(U.scrollTop=U.scrollHeight),C.current=!0,I(!1)},at=U=>{U.preventDefault();const St=U.clientY,pt=h,cl=zl=>O(Math.max(150,Math.min(window.innerHeight*.7,pt+(St-zl.clientY)))),Nl=()=>{window.removeEventListener("pointermove",cl),window.removeEventListener("pointerup",Nl)};window.addEventListener("pointermove",cl),window.addEventListener("pointerup",Nl)},_t=["all",...d,"insights"];return s.jsxs("div",{style:{height:h},className:"relative flex shrink-0 flex-col border-t border-line bg-[#08080d] font-mono",children:[s.jsx("div",{onPointerDown:at,className:"absolute inset-x-0 -top-1 z-10 h-2 cursor-row-resize",title:"Drag to resize"}),s.jsxs("div",{className:"flex items-center gap-2 border-b border-line/70 px-3 py-1.5",children:[s.jsx(pn,{lastBeatIso:M,size:13}),s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-mist-2",children:"Heartbeat Monitor"}),s.jsx("span",{className:"text-[10px] text-line-2",children:f.length}),s.jsxs("div",{className:"ml-auto flex items-center gap-1.5 text-mist",children:[s.jsx("button",{onClick:()=>o("min"),title:"Minimize",className:"grid h-5 w-5 place-items-center rounded hover:bg-panel hover:text-chalk",children:"▼"}),s.jsx("button",{onClick:()=>o("hidden"),title:"Hide",className:"grid h-5 w-5 place-items-center rounded text-[13px] hover:bg-panel hover:text-chalk",children:"─"})]})]}),s.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto border-b border-line/50 px-3 py-1.5",children:_t.map(U=>{const St=_===U,pt=U==="all"?"All":U==="insights"?"💡 Insights":U;return s.jsx("button",{onClick:()=>E(U),className:`shrink-0 rounded-full border px-2 py-0.5 text-[10px] transition-colors ${St?"border-iris/50 bg-iris/15 text-chalk":"border-line bg-panel/40 text-mist hover:text-chalk"}`,children:pt},U)})}),s.jsxs("div",{ref:D,onScroll:V,className:"board-scroll monitor-grain relative min-h-0 flex-1 overflow-y-auto px-3 py-2 text-[11.5px] leading-relaxed",children:[Z.length===0?s.jsxs("div",{className:"grid h-full place-items-center text-[11px] text-line-2",children:["no heartbeats",_==="all"?" yet":` for “${_}”`]}):Z.map(U=>s.jsxs("div",{className:"flex items-start gap-2 py-px",children:[s.jsx("span",{className:"shrink-0 text-line-2",children:Ld(U.at)}),T&&s.jsx("span",{className:`shrink-0 ${y(U.workflow)}`,children:U.workflow}),s.jsx("span",{className:"w-32 shrink-0 truncate text-cyan/80",title:U.step,children:U.step}),s.jsx("span",{className:"min-w-0 flex-1 text-mist-2",children:U.key===b?s.jsx(Qd,{text:Xu(U.note)}):Xu(U.note)}),U.finalBeat&&s.jsx("span",{className:"shrink-0 text-line-2",title:"final beat — handoff to next step",children:"·→"}),U.insight&&s.jsx("span",{className:"shrink-0",children:"💡"})]},U.key)),ft&&Z.length>0&&s.jsx("div",{className:"px-0 text-cyan",children:s.jsx("span",{className:"tw-cursor",children:"▌"})})]}),L&&s.jsx("button",{onClick:tt,className:"absolute bottom-3 left-1/2 z-10 -translate-x-1/2 rounded-full border border-cyan/40 bg-ink/90 px-3 py-1 text-[10px] text-cyan shadow-lg backdrop-blur hover:bg-cyan/10",children:"↓ Jump to latest"})]})}const Ud=new URLSearchParams(window.location.search);function v1(){var yt,et;const{workflows:f,order:d,conn:b}=N0(),[o,y]=Y.useState(Ud.get("wf")),[T,M]=Y.useState(Ud.get("run")),[_,E]=Y.useState(null),[h,O]=Y.useState(!0),[D,C]=Y.useState(248),[L,I]=Y.useState(mf()),[ft,J]=Y.useState([]),[Z,V]=Y.useState(h1),{beats:tt,arrival:at}=q0(f,d),_t=R0(tt);Y.useEffect(()=>{at&&C0()},[at]);const U=(o&&f[o]?o:null)??d.find(X=>Hd(f[X])==="running")??d[0]??null,St=U&&((yt=f[U])==null?void 0:yt.snap)||Bd,pt=jd(St),cl=Y.useRef({});Y.useEffect(()=>{for(const X of d){const nt=Hd(f[X]);if(!nt)continue;const Zt=cl.current[X];Zt!==void 0&&Zt!==nt&&(nt==="done"?U0():nt==="failed"&&H0()),cl.current[X]=nt}},[f,d]),Y.useEffect(()=>{const X=new URL(window.location.href);U?X.searchParams.set("wf",U):X.searchParams.delete("wf"),T?X.searchParams.set("run",T):X.searchParams.delete("run"),window.history.replaceState(null,"",X)},[U,T]),Y.useEffect(()=>{if(T===null||!U){E(null);return}let X=!0;return E(null),fetch(`/api/workflow/${encodeURIComponent(U)}/history/${encodeURIComponent(T)}`).then(nt=>nt.ok?nt.json():null).then(nt=>X&&E(nt)).catch(()=>X&&M(null)),()=>{X=!1}},[T,U]);const Nl=X=>{y(X),M(null)},zl=(X,nt)=>{y(X),M(nt)},Qt=X=>J(nt=>nt.includes(X)?nt.filter(Zt=>Zt!==X):[...nt,X]),[Re,Ml]=Y.useState(null),fl=Y.useRef(new Set),z=(et=St.status)==null?void 0:et.run_id;Y.useEffect(()=>{if(T===null&&pt.overallStatus==="done"&&pt.suggestions.length>0&&z&&!fl.current.has(`${U}:${z}`)){const X=setTimeout(()=>Ml(z),1500);return()=>clearTimeout(X)}Ml(null)},[pt.overallStatus,pt.suggestions.length,z,U]);const H=async X=>{if(!U)return{ok:!1,error:"no active workflow"};try{const nt=await fetch(`/api/workflow/${encodeURIComponent(U)}/apply-suggestion`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({suggestions:X})}),Zt=await nt.json().catch(()=>({}));return nt.ok?{ok:!0}:{ok:!1,error:Zt.error}}catch(nt){return{ok:!1,error:String(nt)}}},G=T!==null,lt=G?_?jd(_.snapshot):null:pt,ht=!!(St.status&&typeof St.status=="object"&&Object.keys(St.status.steps??{}).length>0),Ct=G?!!_:ht;return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"aurora"}),s.jsxs("div",{className:"flex h-screen overflow-hidden",children:[h&&s.jsx(s1,{workflows:f,order:d,activeWf:U,selectedRun:T,onPickWorkflow:Nl,onPickRun:zl,onPin:Qt,width:D,onResize:C}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsx(Z0,{model:lt??pt,conn:b,viewing:G,muted:L,onToggleMute:()=>{const X=!L;_0(X),I(X)},onBackToLive:()=>M(null),onToggleSidebar:()=>O(X=>!X)}),ft.length>0&&s.jsx(p1,{pinned:ft,workflows:f,activeWf:U,onPick:Nl,onUnpin:Qt}),(lt==null?void 0:lt.error)&&s.jsx("div",{className:"px-5 pt-4",children:s.jsxs("div",{className:"rounded-lg border border-rose/30 bg-rose/10 px-4 py-2.5 font-mono text-xs text-rose",children:["⚠ ",lt.error]})}),s.jsxs("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:[G&&!_?s.jsx("div",{className:"grid h-full place-items-center",children:s.jsx("span",{className:"font-mono text-xs text-mist",children:"loading run…"})}):Ct&<?s.jsx(a1,{model:lt}):s.jsx(b1,{model:pt,statusPath:St.statusPath}),s.jsx(xn,{children:Re&&U&&s.jsx(m1,{workflow:U,suggestions:pt.suggestions,onApply:H,onClose:()=>{z&&fl.current.add(`${U}:${z}`),Ml(null)}})})]}),s.jsx(g1,{beats:tt,arrival:at,order:d,mode:Z,onMode:V,lastBeatIso:_t})]})]})]})}function Hd(f){var d;return(d=f==null?void 0:f.snap.status)==null?void 0:d.status}const x1={running:"bg-cyan animate-pulse",done:"bg-mint",failed:"bg-rose"};function p1({pinned:f,workflows:d,activeWf:b,onPick:o,onUnpin:y}){return s.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto border-b border-line bg-ink/60 px-3 py-1.5",children:f.map(T=>{var D;const M=(D=d[T])==null?void 0:D.snap.status,_=(M==null?void 0:M.steps)??{},E=Object.keys(_).length,h=Object.values(_).filter(C=>(C==null?void 0:C.status)==="done").length,O=b===T;return s.jsxs("div",{className:`flex shrink-0 items-center gap-1.5 rounded-lg border px-2.5 py-1 ${O?"border-iris/40 bg-iris/10":"border-line bg-panel/40"}`,children:[s.jsxs("button",{onClick:()=>o(T),className:"flex items-center gap-1.5",children:[s.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${x1[(M==null?void 0:M.status)??""]??"bg-line-2"}`}),s.jsx("span",{className:"font-mono text-xs text-chalk",children:T}),E>0&&s.jsxs("span",{className:"font-mono text-[10px] text-mist",children:[h,"/",E]})]}),s.jsx("button",{onClick:()=>y(T),title:"Unpin",className:"text-mist hover:text-chalk",children:"×"})]},T)})})}function b1({model:f,statusPath:d}){return s.jsx("div",{className:"grid h-full place-items-center px-5",children:s.jsxs("div",{className:"max-w-md text-center",children:[s.jsx("img",{src:"./conductor.svg",alt:"",className:"mx-auto h-12 w-12 opacity-80"}),f.hasConductor?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mt-5 flex items-center justify-center gap-2",children:[s.jsx("span",{className:"font-mono text-sm font-medium text-chalk",children:f.workflow}),s.jsxs("span",{className:"rounded-md border border-line bg-panel px-2 py-0.5 font-mono text-[11px] text-mist",children:[f.total," step",f.total===1?"":"s"]})]}),s.jsx("h1",{className:"mt-4 text-xl font-semibold text-chalk",children:"Waiting for the agent to start execution."}),s.jsxs("p",{className:"mt-2 text-sm leading-relaxed text-mist",children:["Cards will appear the moment it writes"," ",s.jsx("code",{className:"rounded bg-panel px-1.5 py-0.5 font-mono text-xs text-cyan",children:d}),"."]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("h1",{className:"mt-5 text-xl font-semibold text-chalk",children:["Watching ",s.jsx("span",{className:"font-mono text-cyan",children:".conductor/"})," for changes"]}),s.jsx("p",{className:"mt-2 text-sm leading-relaxed text-mist",children:"The board will light up when your agent writes a conductor and a status file. Start your agent and point it at this project."})]}),s.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2 font-mono text-xs text-mist",children:[s.jsx("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-mint"}),"watching for changes"]}),s.jsx("p",{className:"mt-2 font-mono text-[11px] text-line-2",children:d})]})})}S0.createRoot(document.getElementById("root")).render(s.jsx(Y.StrictMode,{children:s.jsx(v1,{})}));
|