specweave 1.0.260 → 1.0.261

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +0,0 @@
1
- (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))o(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const x of h.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&o(x)}).observe(document,{childList:!0,subtree:!0});function r(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(m){if(m.ep)return;m.ep=!0;const h=r(m);fetch(m.href,h)}})();var Bc={exports:{}},wn={};var c0;function Ax(){if(c0)return wn;c0=1;var s=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function r(o,m,h){var x=null;if(h!==void 0&&(x=""+h),m.key!==void 0&&(x=""+m.key),"key"in m){h={};for(var j in m)j!=="key"&&(h[j]=m[j])}else h=m;return m=h.ref,{$$typeof:s,type:o,key:x,ref:m!==void 0?m:null,props:h}}return wn.Fragment=f,wn.jsx=r,wn.jsxs=r,wn}var r0;function zx(){return r0||(r0=1,Bc.exports=Ax()),Bc.exports}var u=zx(),Lc={exports:{}},ee={};var o0;function Cx(){if(o0)return ee;o0=1;var s=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),x=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),T=Symbol.iterator;function B(N){return N===null||typeof N!="object"?null:(N=T&&N[T]||N["@@iterator"],typeof N=="function"?N:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,Y={};function q(N,w,Q){this.props=N,this.context=w,this.refs=Y,this.updater=Q||V}q.prototype.isReactComponent={},q.prototype.setState=function(N,w){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,w,"setState")},q.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function X(){}X.prototype=q.prototype;function H(N,w,Q){this.props=N,this.context=w,this.refs=Y,this.updater=Q||V}var $=H.prototype=new X;$.constructor=H,L($,q.prototype),$.isPureReactComponent=!0;var I=Array.isArray;function fe(){}var P={H:null,A:null,T:null,S:null},Ce=Object.prototype.hasOwnProperty;function Ye(N,w,Q){var K=Q.ref;return{$$typeof:s,type:N,key:w,ref:K!==void 0?K:null,props:Q}}function vt(N,w){return Ye(N.type,w,N.props)}function wt(N){return typeof N=="object"&&N!==null&&N.$$typeof===s}function Ie(N){var w={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(Q){return w[Q]})}var wl=/\/+/g;function Gt(N,w){return typeof N=="object"&&N!==null&&N.key!=null?Ie(""+N.key):w.toString(36)}function Rt(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(fe,fe):(N.status="pending",N.then(function(w){N.status==="pending"&&(N.status="fulfilled",N.value=w)},function(w){N.status==="pending"&&(N.status="rejected",N.reason=w)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function O(N,w,Q,K,te){var ie=typeof N;(ie==="undefined"||ie==="boolean")&&(N=null);var xe=!1;if(N===null)xe=!0;else switch(ie){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(N.$$typeof){case s:case f:xe=!0;break;case S:return xe=N._init,O(xe(N._payload),w,Q,K,te)}}if(xe)return te=te(N),xe=K===""?"."+Gt(N,0):K,I(te)?(Q="",xe!=null&&(Q=xe.replace(wl,"$&/")+"/"),O(te,w,Q,"",function(Ga){return Ga})):te!=null&&(wt(te)&&(te=vt(te,Q+(te.key==null||N&&N.key===te.key?"":(""+te.key).replace(wl,"$&/")+"/")+xe)),w.push(te)),1;xe=0;var We=K===""?".":K+":";if(I(N))for(var Oe=0;Oe<N.length;Oe++)K=N[Oe],ie=We+Gt(K,Oe),xe+=O(K,w,Q,ie,te);else if(Oe=B(N),typeof Oe=="function")for(N=Oe.call(N),Oe=0;!(K=N.next()).done;)K=K.value,ie=We+Gt(K,Oe++),xe+=O(K,w,Q,ie,te);else if(ie==="object"){if(typeof N.then=="function")return O(Rt(N),w,Q,K,te);throw w=String(N),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return xe}function G(N,w,Q){if(N==null)return N;var K=[],te=0;return O(N,K,"","",function(ie){return w.call(Q,ie,te++)}),K}function F(N){if(N._status===-1){var w=N._result;w=w(),w.then(function(Q){(N._status===0||N._status===-1)&&(N._status=1,N._result=Q)},function(Q){(N._status===0||N._status===-1)&&(N._status=2,N._result=Q)}),N._status===-1&&(N._status=0,N._result=w)}if(N._status===1)return N._result.default;throw N._result}var ve=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Se={map:G,forEach:function(N,w,Q){G(N,function(){w.apply(this,arguments)},Q)},count:function(N){var w=0;return G(N,function(){w++}),w},toArray:function(N){return G(N,function(w){return w})||[]},only:function(N){if(!wt(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ee.Activity=y,ee.Children=Se,ee.Component=q,ee.Fragment=r,ee.Profiler=m,ee.PureComponent=H,ee.StrictMode=o,ee.Suspense=p,ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ee.__COMPILER_RUNTIME={__proto__:null,c:function(N){return P.H.useMemoCache(N)}},ee.cache=function(N){return function(){return N.apply(null,arguments)}},ee.cacheSignal=function(){return null},ee.cloneElement=function(N,w,Q){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var K=L({},N.props),te=N.key;if(w!=null)for(ie in w.key!==void 0&&(te=""+w.key),w)!Ce.call(w,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&w.ref===void 0||(K[ie]=w[ie]);var ie=arguments.length-2;if(ie===1)K.children=Q;else if(1<ie){for(var xe=Array(ie),We=0;We<ie;We++)xe[We]=arguments[We+2];K.children=xe}return Ye(N.type,te,K)},ee.createContext=function(N){return N={$$typeof:x,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:h,_context:N},N},ee.createElement=function(N,w,Q){var K,te={},ie=null;if(w!=null)for(K in w.key!==void 0&&(ie=""+w.key),w)Ce.call(w,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(te[K]=w[K]);var xe=arguments.length-2;if(xe===1)te.children=Q;else if(1<xe){for(var We=Array(xe),Oe=0;Oe<xe;Oe++)We[Oe]=arguments[Oe+2];te.children=We}if(N&&N.defaultProps)for(K in xe=N.defaultProps,xe)te[K]===void 0&&(te[K]=xe[K]);return Ye(N,ie,te)},ee.createRef=function(){return{current:null}},ee.forwardRef=function(N){return{$$typeof:j,render:N}},ee.isValidElement=wt,ee.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:F}},ee.memo=function(N,w){return{$$typeof:g,type:N,compare:w===void 0?null:w}},ee.startTransition=function(N){var w=P.T,Q={};P.T=Q;try{var K=N(),te=P.S;te!==null&&te(Q,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(fe,ve)}catch(ie){ve(ie)}finally{w!==null&&Q.types!==null&&(w.types=Q.types),P.T=w}},ee.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ee.use=function(N){return P.H.use(N)},ee.useActionState=function(N,w,Q){return P.H.useActionState(N,w,Q)},ee.useCallback=function(N,w){return P.H.useCallback(N,w)},ee.useContext=function(N){return P.H.useContext(N)},ee.useDebugValue=function(){},ee.useDeferredValue=function(N,w){return P.H.useDeferredValue(N,w)},ee.useEffect=function(N,w){return P.H.useEffect(N,w)},ee.useEffectEvent=function(N){return P.H.useEffectEvent(N)},ee.useId=function(){return P.H.useId()},ee.useImperativeHandle=function(N,w,Q){return P.H.useImperativeHandle(N,w,Q)},ee.useInsertionEffect=function(N,w){return P.H.useInsertionEffect(N,w)},ee.useLayoutEffect=function(N,w){return P.H.useLayoutEffect(N,w)},ee.useMemo=function(N,w){return P.H.useMemo(N,w)},ee.useOptimistic=function(N,w){return P.H.useOptimistic(N,w)},ee.useReducer=function(N,w,Q){return P.H.useReducer(N,w,Q)},ee.useRef=function(N){return P.H.useRef(N)},ee.useState=function(N){return P.H.useState(N)},ee.useSyncExternalStore=function(N,w,Q){return P.H.useSyncExternalStore(N,w,Q)},ee.useTransition=function(){return P.H.useTransition()},ee.version="19.2.4",ee}var f0;function Wc(){return f0||(f0=1,Lc.exports=Cx()),Lc.exports}var A=Wc(),qc={exports:{}},Hn={},Yc={exports:{}},Gc={};var d0;function Mx(){return d0||(d0=1,(function(s){function f(O,G){var F=O.length;O.push(G);e:for(;0<F;){var ve=F-1>>>1,Se=O[ve];if(0<m(Se,G))O[ve]=G,O[F]=Se,F=ve;else break e}}function r(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var G=O[0],F=O.pop();if(F!==G){O[0]=F;e:for(var ve=0,Se=O.length,N=Se>>>1;ve<N;){var w=2*(ve+1)-1,Q=O[w],K=w+1,te=O[K];if(0>m(Q,F))K<Se&&0>m(te,Q)?(O[ve]=te,O[K]=F,ve=K):(O[ve]=Q,O[w]=F,ve=w);else if(K<Se&&0>m(te,F))O[ve]=te,O[K]=F,ve=K;else break e}}return G}function m(O,G){var F=O.sortIndex-G.sortIndex;return F!==0?F:O.id-G.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var x=Date,j=x.now();s.unstable_now=function(){return x.now()-j}}var p=[],g=[],S=1,y=null,T=3,B=!1,V=!1,L=!1,Y=!1,q=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function $(O){for(var G=r(g);G!==null;){if(G.callback===null)o(g);else if(G.startTime<=O)o(g),G.sortIndex=G.expirationTime,f(p,G);else break;G=r(g)}}function I(O){if(L=!1,$(O),!V)if(r(p)!==null)V=!0,fe||(fe=!0,Ie());else{var G=r(g);G!==null&&Rt(I,G.startTime-O)}}var fe=!1,P=-1,Ce=5,Ye=-1;function vt(){return Y?!0:!(s.unstable_now()-Ye<Ce)}function wt(){if(Y=!1,fe){var O=s.unstable_now();Ye=O;var G=!0;try{e:{V=!1,L&&(L=!1,X(P),P=-1),B=!0;var F=T;try{t:{for($(O),y=r(p);y!==null&&!(y.expirationTime>O&&vt());){var ve=y.callback;if(typeof ve=="function"){y.callback=null,T=y.priorityLevel;var Se=ve(y.expirationTime<=O);if(O=s.unstable_now(),typeof Se=="function"){y.callback=Se,$(O),G=!0;break t}y===r(p)&&o(p),$(O)}else o(p);y=r(p)}if(y!==null)G=!0;else{var N=r(g);N!==null&&Rt(I,N.startTime-O),G=!1}}break e}finally{y=null,T=F,B=!1}G=void 0}}finally{G?Ie():fe=!1}}}var Ie;if(typeof H=="function")Ie=function(){H(wt)};else if(typeof MessageChannel<"u"){var wl=new MessageChannel,Gt=wl.port2;wl.port1.onmessage=wt,Ie=function(){Gt.postMessage(null)}}else Ie=function(){q(wt,0)};function Rt(O,G){P=q(function(){O(s.unstable_now())},G)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ce=0<O?Math.floor(1e3/O):5},s.unstable_getCurrentPriorityLevel=function(){return T},s.unstable_next=function(O){switch(T){case 1:case 2:case 3:var G=3;break;default:G=T}var F=T;T=G;try{return O()}finally{T=F}},s.unstable_requestPaint=function(){Y=!0},s.unstable_runWithPriority=function(O,G){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var F=T;T=O;try{return G()}finally{T=F}},s.unstable_scheduleCallback=function(O,G,F){var ve=s.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ve+F:ve):F=ve,O){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=F+Se,O={id:S++,callback:G,priorityLevel:O,startTime:F,expirationTime:Se,sortIndex:-1},F>ve?(O.sortIndex=F,f(g,O),r(p)===null&&O===r(g)&&(L?(X(P),P=-1):L=!0,Rt(I,F-ve))):(O.sortIndex=Se,f(p,O),V||B||(V=!0,fe||(fe=!0,Ie()))),O},s.unstable_shouldYield=vt,s.unstable_wrapCallback=function(O){var G=T;return function(){var F=T;T=G;try{return O.apply(this,arguments)}finally{T=F}}}})(Gc)),Gc}var m0;function Rx(){return m0||(m0=1,Yc.exports=Mx()),Yc.exports}var Xc={exports:{}},ke={};var h0;function _x(){if(h0)return ke;h0=1;var s=Wc();function f(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)g+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(f(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(p,g,S){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:y==null?null:""+y,children:p,containerInfo:g,implementation:S}}var x=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ke.createPortal=function(p,g){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(f(299));return h(p,g,null,S)},ke.flushSync=function(p){var g=x.T,S=o.p;try{if(x.T=null,o.p=2,p)return p()}finally{x.T=g,o.p=S,o.d.f()}},ke.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(p,g))},ke.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},ke.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var S=g.as,y=j(S,g.crossOrigin),T=typeof g.integrity=="string"?g.integrity:void 0,B=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;S==="style"?o.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:T,fetchPriority:B}):S==="script"&&o.d.X(p,{crossOrigin:y,integrity:T,fetchPriority:B,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ke.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var S=j(g.as,g.crossOrigin);o.d.M(p,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(p)},ke.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var S=g.as,y=j(S,g.crossOrigin);o.d.L(p,S,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ke.preloadModule=function(p,g){if(typeof p=="string")if(g){var S=j(g.as,g.crossOrigin);o.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(p)},ke.requestFormReset=function(p){o.d.r(p)},ke.unstable_batchedUpdates=function(p,g){return p(g)},ke.useFormState=function(p,g,S){return x.H.useFormState(p,g,S)},ke.useFormStatus=function(){return x.H.useHostTransitionStatus()},ke.version="19.2.4",ke}var x0;function Ox(){if(x0)return Xc.exports;x0=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(f){console.error(f)}}return s(),Xc.exports=_x(),Xc.exports}var g0;function Dx(){if(g0)return Hn;g0=1;var s=Rx(),f=Wc(),r=Ox();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function x(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function j(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return p(n),e;if(i===a)return p(n),t;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=i;break}if(d===a){c=!0,a=n,l=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===l){c=!0,l=i,a=n;break}if(d===a){c=!0,a=i,l=n;break}d=d.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,T=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),H=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Ce=Symbol.for("react.lazy"),Ye=Symbol.for("react.activity"),vt=Symbol.for("react.memo_cache_sentinel"),wt=Symbol.iterator;function Ie(e){return e===null||typeof e!="object"?null:(e=wt&&e[wt]||e["@@iterator"],typeof e=="function"?e:null)}var wl=Symbol.for("react.client.reference");function Gt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===wl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case q:return"Profiler";case Y:return"StrictMode";case I:return"Suspense";case fe:return"SuspenseList";case Ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case V:return"Portal";case H:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:Gt(e.type)||"Memo";case Ce:t=e._payload,e=e._init;try{return Gt(e(t))}catch{}}return null}var Rt=Array.isArray,O=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ve=[],Se=-1;function N(e){return{current:e}}function w(e){0>Se||(e.current=ve[Se],ve[Se]=null,Se--)}function Q(e,t){Se++,ve[Se]=e.current,e.current=t}var K=N(null),te=N(null),ie=N(null),xe=N(null);function We(e,t){switch(Q(ie,t),Q(te,e),Q(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_d(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_d(t),e=Od(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}w(K),Q(K,e)}function Oe(){w(K),w(te),w(ie)}function Ga(e){e.memoizedState!==null&&Q(xe,e);var t=K.current,l=Od(t,e.type);t!==l&&(Q(te,e),Q(K,l))}function Kn(e){te.current===e&&(w(K),w(te)),xe.current===e&&(w(xe),_n._currentValue=F)}var pu,ir;function Hl(e){if(pu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);pu=t&&t[1]||"",ir=-1<l.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+pu+e+ir}var bu=!1;function ju(e,t){if(!e||bu)return"";bu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(R){var M=R}Reflect.construct(e,[],U)}else{try{U.call()}catch(R){M=R}e.call(U.prototype)}}else{try{throw Error()}catch(R){M=R}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(R){if(R&&M&&typeof R.stack=="string")return[R.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],d=i[1];if(c&&d){var v=c.split(`
4
- `),C=d.split(`
5
- `);for(n=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;n<C.length&&!C[n].includes("DetermineComponentFrameRoot");)n++;if(a===v.length||n===C.length)for(a=v.length-1,n=C.length-1;1<=a&&0<=n&&v[a]!==C[n];)n--;for(;1<=a&&0<=n;a--,n--)if(v[a]!==C[n]){if(a!==1||n!==1)do if(a--,n--,0>n||v[a]!==C[n]){var _=`
6
- `+v[a].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=a&&0<=n);break}}}finally{bu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Hl(l):""}function am(e,t){switch(e.tag){case 26:case 27:case 5:return Hl(e.type);case 16:return Hl("Lazy");case 13:return e.child!==t&&t!==null?Hl("Suspense Fallback"):Hl("Suspense");case 19:return Hl("SuspenseList");case 0:case 15:return ju(e.type,!1);case 11:return ju(e.type.render,!1);case 1:return ju(e.type,!0);case 31:return Hl("Activity");default:return""}}function ur(e){try{var t="",l=null;do t+=am(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var Su=Object.prototype.hasOwnProperty,Nu=s.unstable_scheduleCallback,Eu=s.unstable_cancelCallback,nm=s.unstable_shouldYield,im=s.unstable_requestPaint,st=s.unstable_now,um=s.unstable_getCurrentPriorityLevel,sr=s.unstable_ImmediatePriority,cr=s.unstable_UserBlockingPriority,Jn=s.unstable_NormalPriority,sm=s.unstable_LowPriority,rr=s.unstable_IdlePriority,cm=s.log,rm=s.unstable_setDisableYieldValue,Xa=null,ct=null;function cl(e){if(typeof cm=="function"&&rm(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Xa,e)}catch{}}var rt=Math.clz32?Math.clz32:dm,om=Math.log,fm=Math.LN2;function dm(e){return e>>>=0,e===0?32:31-(om(e)/fm|0)|0}var $n=256,kn=262144,Wn=4194304;function Bl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~i,a!==0?n=Bl(a):(c&=d,c!==0?n=Bl(c):l||(l=d&~e,l!==0&&(n=Bl(l))))):(d=a&~i,d!==0?n=Bl(d):c!==0?n=Bl(c):l||(l=a&~e,l!==0&&(n=Bl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Qa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function or(){var e=Wn;return Wn<<=1,(Wn&62914560)===0&&(Wn=4194304),e}function Tu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Va(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hm(e,t,l,a,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,v=e.expirationTimes,C=e.hiddenUpdates;for(l=c&~l;0<l;){var _=31-rt(l),U=1<<_;d[_]=0,v[_]=-1;var M=C[_];if(M!==null)for(C[_]=null,_=0;_<M.length;_++){var R=M[_];R!==null&&(R.lane&=-536870913)}l&=~U}a!==0&&fr(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function fr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-rt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function dr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-rt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function mr(e,t){var l=t&-t;return l=(l&42)!==0?1:Au(l),(l&(e.suspendedLanes|t))!==0?0:l}function Au(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function zu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hr(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:t0(e.type))}function xr(e,t){var l=G.p;try{return G.p=e,t()}finally{G.p=l}}var rl=Math.random().toString(36).slice(2),Ve="__reactFiber$"+rl,et="__reactProps$"+rl,ta="__reactContainer$"+rl,Cu="__reactEvents$"+rl,xm="__reactListeners$"+rl,gm="__reactHandles$"+rl,gr="__reactResources$"+rl,Za="__reactMarker$"+rl;function Mu(e){delete e[Ve],delete e[et],delete e[Cu],delete e[xm],delete e[gm]}function la(e){var t=e[Ve];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ta]||l[Ve]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=qd(e);e!==null;){if(l=e[Ve])return l;e=qd(e)}return t}e=l,l=e.parentNode}return null}function aa(e){if(e=e[Ve]||e[ta]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function na(e){var t=e[gr];return t||(t=e[gr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Xe(e){e[Za]=!0}var yr=new Set,vr={};function Ll(e,t){ia(e,t),ia(e+"Capture",t)}function ia(e,t){for(vr[e]=t,e=0;e<t.length;e++)yr.add(t[e])}var ym=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]*$"),pr={},br={};function vm(e){return Su.call(br,e)?!0:Su.call(pr,e)?!1:ym.test(e)?br[e]=!0:(pr[e]=!0,!1)}function Pn(e,t,l){if(vm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function In(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Xt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ru(e){if(!e._valueTracker){var t=jr(e)?"checked":"value";e._valueTracker=pm(e,t,""+e[t])}}function Sr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=jr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ei(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var bm=/[\n"\\]/g;function bt(e){return e.replace(bm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _u(e,t,l,a,n,i,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ou(e,c,pt(t)):l!=null?Ou(e,c,pt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+pt(d):e.removeAttribute("name")}function Nr(e,t,l,a,n,i,c,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Ru(e);return}l=l!=null?""+pt(l):"",t=t!=null?""+pt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ru(e)}function Ou(e,t,l){t==="number"&&ei(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+pt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Er(e,t,l){if(t!=null&&(t=""+pt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+pt(l):""}function Tr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Rt(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=pt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ru(e)}function sa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var jm=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 Ar(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||jm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function zr(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Ar(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Ar(e,i,t[i])}function Du(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var 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"]]),Nm=/^[\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 ti(e){return Nm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qt(){}var Uu=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,ra=null;function Cr(e){var t=aa(e);if(t&&(e=t.stateNode)){var l=e[et]||null;e:switch(e=t.stateNode,t.type){case"input":if(_u(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[et]||null;if(!n)throw Error(o(90));_u(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Sr(a)}break e;case"textarea":Er(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ua(e,!!l.multiple,t,!1)}}}var Hu=!1;function Mr(e,t,l){if(Hu)return e(t,l);Hu=!0;try{var a=e(t);return a}finally{if(Hu=!1,(ca!==null||ra!==null)&&(Xi(),ca&&(t=ca,e=ra,ra=ca=null,Cr(t),e)))for(t=0;t<e.length;t++)Cr(e[t])}}function Ja(e,t){var l=e.stateNode;if(l===null)return null;var a=l[et]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(Vt)try{var $a={};Object.defineProperty($a,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{Bu=!1}var ol=null,Lu=null,li=null;function Rr(){if(li)return li;var e,t=Lu,l=t.length,a,n="value"in ol?ol.value:ol.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[i-a];a++);return li=n.slice(e,1<a?1-a:void 0)}function ai(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ni(){return!0}function _r(){return!1}function tt(e){function t(l,a,n,i,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ni:_r,this.isPropagationStopped=_r,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ni)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ni)},persist:function(){},isPersistent:ni}),t}var ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ii=tt(ql),ka=y({},ql,{view:0,detail:0}),Em=tt(ka),qu,Yu,Wa,ui=y({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wa&&(Wa&&e.type==="mousemove"?(qu=e.screenX-Wa.screenX,Yu=e.screenY-Wa.screenY):Yu=qu=0,Wa=e),qu)},movementY:function(e){return"movementY"in e?e.movementY:Yu}}),Or=tt(ui),Tm=y({},ui,{dataTransfer:0}),Am=tt(Tm),zm=y({},ka,{relatedTarget:0}),Gu=tt(zm),Cm=y({},ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Mm=tt(Cm),Rm=y({},ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_m=tt(Rm),Om=y({},ql,{data:0}),Dr=tt(Om),Dm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Um={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"},wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wm[e])?!!t[e]:!1}function Xu(){return Hm}var Bm=y({},ka,{key:function(e){if(e.key){var t=Dm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ai(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Um[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xu,charCode:function(e){return e.type==="keypress"?ai(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ai(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lm=tt(Bm),qm=y({},ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ur=tt(qm),Ym=y({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xu}),Gm=tt(Ym),Xm=y({},ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qm=tt(Xm),Vm=y({},ui,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zm=tt(Vm),Km=y({},ql,{newState:0,oldState:0}),Jm=tt(Km),$m=[9,13,27,32],Qu=Vt&&"CompositionEvent"in window,Fa=null;Vt&&"documentMode"in document&&(Fa=document.documentMode);var km=Vt&&"TextEvent"in window&&!Fa,wr=Vt&&(!Qu||Fa&&8<Fa&&11>=Fa),Hr=" ",Br=!1;function Lr(e,t){switch(e){case"keyup":return $m.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oa=!1;function Wm(e,t){switch(e){case"compositionend":return qr(t);case"keypress":return t.which!==32?null:(Br=!0,Hr);case"textInput":return e=t.data,e===Hr&&Br?null:e;default:return null}}function Fm(e,t){if(oa)return e==="compositionend"||!Qu&&Lr(e,t)?(e=Rr(),li=Lu=ol=null,oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wr&&t.locale!=="ko"?null:t.data;default:return null}}var Pm={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 Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pm[e.type]:t==="textarea"}function Gr(e,t,l,a){ca?ra?ra.push(a):ra=[a]:ca=a,t=ki(t,"onChange"),0<t.length&&(l=new ii("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Pa=null,Ia=null;function Im(e){Td(e,0)}function si(e){var t=Ka(e);if(Sr(t))return e}function Xr(e,t){if(e==="change")return t}var Qr=!1;if(Vt){var Vu;if(Vt){var Zu="oninput"in document;if(!Zu){var Vr=document.createElement("div");Vr.setAttribute("oninput","return;"),Zu=typeof Vr.oninput=="function"}Vu=Zu}else Vu=!1;Qr=Vu&&(!document.documentMode||9<document.documentMode)}function Zr(){Pa&&(Pa.detachEvent("onpropertychange",Kr),Ia=Pa=null)}function Kr(e){if(e.propertyName==="value"&&si(Ia)){var t=[];Gr(t,Ia,e,wu(e)),Mr(Im,t)}}function eh(e,t,l){e==="focusin"?(Zr(),Pa=t,Ia=l,Pa.attachEvent("onpropertychange",Kr)):e==="focusout"&&Zr()}function th(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return si(Ia)}function lh(e,t){if(e==="click")return si(t)}function ah(e,t){if(e==="input"||e==="change")return si(t)}function nh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ot=typeof Object.is=="function"?Object.is:nh;function en(e,t){if(ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Su.call(t,n)||!ot(e[n],t[n]))return!1}return!0}function Jr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $r(e,t){var l=Jr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Jr(l)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ei(e.document)}return t}function Ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ih=Vt&&"documentMode"in document&&11>=document.documentMode,fa=null,Ju=null,tn=null,$u=!1;function Fr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;$u||fa==null||fa!==ei(a)||(a=fa,"selectionStart"in a&&Ku(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}),tn&&en(tn,a)||(tn=a,a=ki(Ju,"onSelect"),0<a.length&&(t=new ii("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fa)))}function Yl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var da={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},ku={},Pr={};Vt&&(Pr=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function Gl(e){if(ku[e])return ku[e];if(!da[e])return e;var t=da[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Pr)return ku[e]=t[l];return e}var Ir=Gl("animationend"),eo=Gl("animationiteration"),to=Gl("animationstart"),uh=Gl("transitionrun"),sh=Gl("transitionstart"),ch=Gl("transitioncancel"),lo=Gl("transitionend"),ao=new Map,Wu="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(" ");Wu.push("scrollEnd");function _t(e,t){ao.set(e,t),Ll(t,[e])}var ci=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jt=[],ma=0,Fu=0;function ri(){for(var e=ma,t=Fu=ma=0;t<e;){var l=jt[t];jt[t++]=null;var a=jt[t];jt[t++]=null;var n=jt[t];jt[t++]=null;var i=jt[t];if(jt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&no(l,n,i)}}function oi(e,t,l,a){jt[ma++]=e,jt[ma++]=t,jt[ma++]=l,jt[ma++]=a,Fu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Pu(e,t,l,a){return oi(e,t,l,a),fi(e)}function Xl(e,t){return oi(e,null,null,t),fi(e)}function no(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-rt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function fi(e){if(50<En)throw En=0,sc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ha={};function rh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,l,a){return new rh(e,t,l,a)}function Iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zt(e,t){var l=e.alternate;return l===null?(l=ft(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function io(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function di(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")Iu(e)&&(c=1);else if(typeof e=="string")c=hx(e,l,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ye:return e=ft(31,l,t,n),e.elementType=Ye,e.lanes=i,e;case L:return Ql(l.children,n,i,t);case Y:c=8,n|=24;break;case q:return e=ft(12,l,t,n|2),e.elementType=q,e.lanes=i,e;case I:return e=ft(13,l,t,n),e.elementType=I,e.lanes=i,e;case fe:return e=ft(19,l,t,n),e.elementType=fe,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:c=10;break e;case X:c=9;break e;case $:c=11;break e;case P:c=14;break e;case Ce:c=16,a=null;break e}c=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=ft(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Ql(e,t,l,a){return e=ft(7,e,a,t),e.lanes=l,e}function es(e,t,l){return e=ft(6,e,null,t),e.lanes=l,e}function uo(e){var t=ft(18,null,null,0);return t.stateNode=e,t}function ts(e,t,l){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var so=new WeakMap;function St(e,t){if(typeof e=="object"&&e!==null){var l=so.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ur(t)},so.set(e,t),t)}return{value:e,source:t,stack:ur(t)}}var xa=[],ga=0,mi=null,ln=0,Nt=[],Et=0,fl=null,Ht=1,Bt="";function Kt(e,t){xa[ga++]=ln,xa[ga++]=mi,mi=e,ln=t}function co(e,t,l){Nt[Et++]=Ht,Nt[Et++]=Bt,Nt[Et++]=fl,fl=e;var a=Ht;e=Bt;var n=32-rt(a)-1;a&=~(1<<n),l+=1;var i=32-rt(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Ht=1<<32-rt(t)+n|l<<n|a,Bt=i+e}else Ht=1<<i|l<<n|a,Bt=e}function ls(e){e.return!==null&&(Kt(e,1),co(e,1,0))}function as(e){for(;e===mi;)mi=xa[--ga],xa[ga]=null,ln=xa[--ga],xa[ga]=null;for(;e===fl;)fl=Nt[--Et],Nt[Et]=null,Bt=Nt[--Et],Nt[Et]=null,Ht=Nt[--Et],Nt[Et]=null}function ro(e,t){Nt[Et++]=Ht,Nt[Et++]=Bt,Nt[Et++]=fl,Ht=t.id,Bt=t.overflow,fl=e}var Ze=null,Te=null,oe=!1,dl=null,Tt=!1,ns=Error(o(519));function ml(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw an(St(t,e)),ns}function oo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ve]=e,t[et]=a,l){case"dialog":se("cancel",t),se("close",t);break;case"iframe":case"object":case"embed":se("load",t);break;case"video":case"audio":for(l=0;l<An.length;l++)se(An[l],t);break;case"source":se("error",t);break;case"img":case"image":case"link":se("error",t),se("load",t);break;case"details":se("toggle",t);break;case"input":se("invalid",t),Nr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":se("invalid",t);break;case"textarea":se("invalid",t),Tr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Md(t.textContent,l)?(a.popover!=null&&(se("beforetoggle",t),se("toggle",t)),a.onScroll!=null&&se("scroll",t),a.onScrollEnd!=null&&se("scrollend",t),a.onClick!=null&&(t.onclick=Qt),t=!0):t=!1,t||ml(e,!0)}function fo(e){for(Ze=e.return;Ze;)switch(Ze.tag){case 5:case 31:case 13:Tt=!1;return;case 27:case 3:Tt=!0;return;default:Ze=Ze.return}}function ya(e){if(e!==Ze)return!1;if(!oe)return fo(e),oe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Sc(e.type,e.memoizedProps)),l=!l),l&&Te&&ml(e),fo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Te=Ld(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Te=Ld(e)}else t===27?(t=Te,zl(e.type)?(e=zc,zc=null,Te=e):Te=t):Te=Ze?zt(e.stateNode.nextSibling):null;return!0}function Vl(){Te=Ze=null,oe=!1}function is(){var e=dl;return e!==null&&(it===null?it=e:it.push.apply(it,e),dl=null),e}function an(e){dl===null?dl=[e]:dl.push(e)}var us=N(null),Zl=null,Jt=null;function hl(e,t,l){Q(us,t._currentValue),t._currentValue=l}function $t(e){e._currentValue=us.current,w(us)}function ss(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function cs(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var v=0;v<t.length;v++)if(d.context===t[v]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),ss(i.return,l,e),a||(c=null);break e}i=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(o(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),ss(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function va(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var d=n.type;ot(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===xe.current){if(c=n.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(_n):e=[_n])}n=n.return}e!==null&&cs(t,e,l,a),t.flags|=262144}function hi(e){for(e=e.firstContext;e!==null;){if(!ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){Zl=e,Jt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ke(e){return mo(Zl,e)}function xi(e,t){return Zl===null&&Kl(e),mo(e,t)}function mo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Jt===null){if(e===null)throw Error(o(308));Jt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Jt=Jt.next=t;return l}var oh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},fh=s.unstable_scheduleCallback,dh=s.unstable_NormalPriority,we={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rs(){return{controller:new oh,data:new Map,refCount:0}}function nn(e){e.refCount--,e.refCount===0&&fh(dh,function(){e.controller.abort()})}var un=null,os=0,pa=0,ba=null;function mh(e,t){if(un===null){var l=un=[];os=0,pa=mc(),ba={status:"pending",value:void 0,then:function(a){l.push(a)}}}return os++,t.then(ho,ho),t}function ho(){if(--os===0&&un!==null){ba!==null&&(ba.status="fulfilled");var e=un;un=null,pa=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hh(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var xo=O.S;O.S=function(e,t){If=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&mh(e,t),xo!==null&&xo(e,t)};var Jl=N(null);function fs(){var e=Jl.current;return e!==null?e:Ne.pooledCache}function gi(e,t){t===null?Q(Jl,Jl.current):Q(Jl,t.pool)}function go(){var e=fs();return e===null?null:{parent:we._currentValue,pool:e}}var ja=Error(o(460)),ds=Error(o(474)),yi=Error(o(542)),vi={then:function(){}};function yo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Qt,Qt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bo(e),e;default:if(typeof t.status=="string")t.then(Qt,Qt);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bo(e),e}throw kl=t,ja}}function $l(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(kl=l,ja):l}}var kl=null;function po(){if(kl===null)throw Error(o(459));var e=kl;return kl=null,e}function bo(e){if(e===ja||e===yi)throw Error(o(483))}var Sa=null,sn=0;function pi(e){var t=sn;return sn+=1,Sa===null&&(Sa=[]),vo(Sa,e,t)}function cn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bi(e,t){throw t.$$typeof===T?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jo(e){function t(E,b){if(e){var z=E.deletions;z===null?(E.deletions=[b],E.flags|=16):z.push(b)}}function l(E,b){if(!e)return null;for(;b!==null;)t(E,b),b=b.sibling;return null}function a(E){for(var b=new Map;E!==null;)E.key!==null?b.set(E.key,E):b.set(E.index,E),E=E.sibling;return b}function n(E,b){return E=Zt(E,b),E.index=0,E.sibling=null,E}function i(E,b,z){return E.index=z,e?(z=E.alternate,z!==null?(z=z.index,z<b?(E.flags|=67108866,b):z):(E.flags|=67108866,b)):(E.flags|=1048576,b)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function d(E,b,z,D){return b===null||b.tag!==6?(b=es(z,E.mode,D),b.return=E,b):(b=n(b,z),b.return=E,b)}function v(E,b,z,D){var k=z.type;return k===L?_(E,b,z.props.children,D,z.key):b!==null&&(b.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ce&&$l(k)===b.type)?(b=n(b,z.props),cn(b,z),b.return=E,b):(b=di(z.type,z.key,z.props,null,E.mode,D),cn(b,z),b.return=E,b)}function C(E,b,z,D){return b===null||b.tag!==4||b.stateNode.containerInfo!==z.containerInfo||b.stateNode.implementation!==z.implementation?(b=ts(z,E.mode,D),b.return=E,b):(b=n(b,z.children||[]),b.return=E,b)}function _(E,b,z,D,k){return b===null||b.tag!==7?(b=Ql(z,E.mode,D,k),b.return=E,b):(b=n(b,z),b.return=E,b)}function U(E,b,z){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=es(""+b,E.mode,z),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case B:return z=di(b.type,b.key,b.props,null,E.mode,z),cn(z,b),z.return=E,z;case V:return b=ts(b,E.mode,z),b.return=E,b;case Ce:return b=$l(b),U(E,b,z)}if(Rt(b)||Ie(b))return b=Ql(b,E.mode,z,null),b.return=E,b;if(typeof b.then=="function")return U(E,pi(b),z);if(b.$$typeof===H)return U(E,xi(E,b),z);bi(E,b)}return null}function M(E,b,z,D){var k=b!==null?b.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return k!==null?null:d(E,b,""+z,D);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case B:return z.key===k?v(E,b,z,D):null;case V:return z.key===k?C(E,b,z,D):null;case Ce:return z=$l(z),M(E,b,z,D)}if(Rt(z)||Ie(z))return k!==null?null:_(E,b,z,D,null);if(typeof z.then=="function")return M(E,b,pi(z),D);if(z.$$typeof===H)return M(E,b,xi(E,z),D);bi(E,z)}return null}function R(E,b,z,D,k){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return E=E.get(z)||null,d(b,E,""+D,k);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case B:return E=E.get(D.key===null?z:D.key)||null,v(b,E,D,k);case V:return E=E.get(D.key===null?z:D.key)||null,C(b,E,D,k);case Ce:return D=$l(D),R(E,b,z,D,k)}if(Rt(D)||Ie(D))return E=E.get(z)||null,_(b,E,D,k,null);if(typeof D.then=="function")return R(E,b,z,pi(D),k);if(D.$$typeof===H)return R(E,b,z,xi(b,D),k);bi(b,D)}return null}function Z(E,b,z,D){for(var k=null,de=null,J=b,ae=b=0,re=null;J!==null&&ae<z.length;ae++){J.index>ae?(re=J,J=null):re=J.sibling;var me=M(E,J,z[ae],D);if(me===null){J===null&&(J=re);break}e&&J&&me.alternate===null&&t(E,J),b=i(me,b,ae),de===null?k=me:de.sibling=me,de=me,J=re}if(ae===z.length)return l(E,J),oe&&Kt(E,ae),k;if(J===null){for(;ae<z.length;ae++)J=U(E,z[ae],D),J!==null&&(b=i(J,b,ae),de===null?k=J:de.sibling=J,de=J);return oe&&Kt(E,ae),k}for(J=a(J);ae<z.length;ae++)re=R(J,E,ae,z[ae],D),re!==null&&(e&&re.alternate!==null&&J.delete(re.key===null?ae:re.key),b=i(re,b,ae),de===null?k=re:de.sibling=re,de=re);return e&&J.forEach(function(Ol){return t(E,Ol)}),oe&&Kt(E,ae),k}function W(E,b,z,D){if(z==null)throw Error(o(151));for(var k=null,de=null,J=b,ae=b=0,re=null,me=z.next();J!==null&&!me.done;ae++,me=z.next()){J.index>ae?(re=J,J=null):re=J.sibling;var Ol=M(E,J,me.value,D);if(Ol===null){J===null&&(J=re);break}e&&J&&Ol.alternate===null&&t(E,J),b=i(Ol,b,ae),de===null?k=Ol:de.sibling=Ol,de=Ol,J=re}if(me.done)return l(E,J),oe&&Kt(E,ae),k;if(J===null){for(;!me.done;ae++,me=z.next())me=U(E,me.value,D),me!==null&&(b=i(me,b,ae),de===null?k=me:de.sibling=me,de=me);return oe&&Kt(E,ae),k}for(J=a(J);!me.done;ae++,me=z.next())me=R(J,E,ae,me.value,D),me!==null&&(e&&me.alternate!==null&&J.delete(me.key===null?ae:me.key),b=i(me,b,ae),de===null?k=me:de.sibling=me,de=me);return e&&J.forEach(function(Tx){return t(E,Tx)}),oe&&Kt(E,ae),k}function je(E,b,z,D){if(typeof z=="object"&&z!==null&&z.type===L&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case B:e:{for(var k=z.key;b!==null;){if(b.key===k){if(k=z.type,k===L){if(b.tag===7){l(E,b.sibling),D=n(b,z.props.children),D.return=E,E=D;break e}}else if(b.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ce&&$l(k)===b.type){l(E,b.sibling),D=n(b,z.props),cn(D,z),D.return=E,E=D;break e}l(E,b);break}else t(E,b);b=b.sibling}z.type===L?(D=Ql(z.props.children,E.mode,D,z.key),D.return=E,E=D):(D=di(z.type,z.key,z.props,null,E.mode,D),cn(D,z),D.return=E,E=D)}return c(E);case V:e:{for(k=z.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===z.containerInfo&&b.stateNode.implementation===z.implementation){l(E,b.sibling),D=n(b,z.children||[]),D.return=E,E=D;break e}else{l(E,b);break}else t(E,b);b=b.sibling}D=ts(z,E.mode,D),D.return=E,E=D}return c(E);case Ce:return z=$l(z),je(E,b,z,D)}if(Rt(z))return Z(E,b,z,D);if(Ie(z)){if(k=Ie(z),typeof k!="function")throw Error(o(150));return z=k.call(z),W(E,b,z,D)}if(typeof z.then=="function")return je(E,b,pi(z),D);if(z.$$typeof===H)return je(E,b,xi(E,z),D);bi(E,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,b!==null&&b.tag===6?(l(E,b.sibling),D=n(b,z),D.return=E,E=D):(l(E,b),D=es(z,E.mode,D),D.return=E,E=D),c(E)):l(E,b)}return function(E,b,z,D){try{sn=0;var k=je(E,b,z,D);return Sa=null,k}catch(J){if(J===ja||J===yi)throw J;var de=ft(29,J,null,E.mode);return de.lanes=D,de.return=E,de}}}var Wl=jo(!0),So=jo(!1),xl=!1;function ms(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function yl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(he&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=fi(e),no(e,null,l),t}return oi(e,a,t,l),fi(e)}function rn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,dr(e,l)}}function xs(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var gs=!1;function on(){if(gs){var e=ba;if(e!==null)throw e}}function fn(e,t,l,a){gs=!1;var n=e.updateQueue;xl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var v=d,C=v.next;v.next=null,c===null?i=C:c.next=C,c=v;var _=e.alternate;_!==null&&(_=_.updateQueue,d=_.lastBaseUpdate,d!==c&&(d===null?_.firstBaseUpdate=C:d.next=C,_.lastBaseUpdate=v))}if(i!==null){var U=n.baseState;c=0,_=C=v=null,d=i;do{var M=d.lane&-536870913,R=M!==d.lane;if(R?(ce&M)===M:(a&M)===M){M!==0&&M===pa&&(gs=!0),_!==null&&(_=_.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var Z=e,W=d;M=t;var je=l;switch(W.tag){case 1:if(Z=W.payload,typeof Z=="function"){U=Z.call(je,U,M);break e}U=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=W.payload,M=typeof Z=="function"?Z.call(je,U,M):Z,M==null)break e;U=y({},U,M);break e;case 2:xl=!0}}M=d.callback,M!==null&&(e.flags|=64,R&&(e.flags|=8192),R=n.callbacks,R===null?n.callbacks=[M]:R.push(M))}else R={lane:M,tag:d.tag,payload:d.payload,callback:d.callback,next:null},_===null?(C=_=R,v=U):_=_.next=R,c|=M;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;R=d,d=R.next,R.next=null,n.lastBaseUpdate=R,n.shared.pending=null}}while(!0);_===null&&(v=U),n.baseState=v,n.firstBaseUpdate=C,n.lastBaseUpdate=_,i===null&&(n.shared.lanes=0),Sl|=c,e.lanes=c,e.memoizedState=U}}function No(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Eo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)No(l[e],t)}var Na=N(null),ji=N(0);function To(e,t){e=al,Q(ji,e),Q(Na,t),al=e|t.baseLanes}function ys(){Q(ji,al),Q(Na,Na.current)}function vs(){al=ji.current,w(Na),w(ji)}var dt=N(null),At=null;function vl(e){var t=e.alternate;Q(De,De.current&1),Q(dt,e),At===null&&(t===null||Na.current!==null||t.memoizedState!==null)&&(At=e)}function ps(e){Q(De,De.current),Q(dt,e),At===null&&(At=e)}function Ao(e){e.tag===22?(Q(De,De.current),Q(dt,e),At===null&&(At=e)):pl()}function pl(){Q(De,De.current),Q(dt,dt.current)}function mt(e){w(dt),At===e&&(At=null),w(De)}var De=N(0);function Si(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Tc(l)||Ac(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kt=0,le=null,pe=null,He=null,Ni=!1,Ea=!1,Fl=!1,Ei=0,dn=0,Ta=null,xh=0;function Re(){throw Error(o(321))}function bs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ot(e[l],t[l]))return!1;return!0}function js(e,t,l,a,n,i){return kt=i,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?of:Hs,Fl=!1,i=l(a,n),Fl=!1,Ea&&(i=Co(t,l,a,n)),zo(e),i}function zo(e){O.H=xn;var t=pe!==null&&pe.next!==null;if(kt=0,He=pe=le=null,Ni=!1,dn=0,Ta=null,t)throw Error(o(300));e===null||Be||(e=e.dependencies,e!==null&&hi(e)&&(Be=!0))}function Co(e,t,l,a){le=e;var n=0;do{if(Ea&&(Ta=null),dn=0,Ea=!1,25<=n)throw Error(o(301));if(n+=1,He=pe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}O.H=ff,i=t(l,a)}while(Ea);return i}function gh(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?mn(t):t,e=e.useState()[0],(pe!==null?pe.memoizedState:null)!==e&&(le.flags|=1024),t}function Ss(){var e=Ei!==0;return Ei=0,e}function Ns(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Es(e){if(Ni){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ni=!1}kt=0,He=pe=le=null,Ea=!1,dn=Ei=0,Ta=null}function Fe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?le.memoizedState=He=e:He=He.next=e,He}function Ue(){if(pe===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=He===null?le.memoizedState:He.next;if(t!==null)He=t,pe=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},He===null?le.memoizedState=He=e:He=He.next=e}return He}function Ti(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mn(e){var t=dn;return dn+=1,Ta===null&&(Ta=[]),e=vo(Ta,e,t),t=le,(He===null?t.memoizedState:He.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?of:Hs),e}function Ai(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mn(e);if(e.$$typeof===H)return Ke(e)}throw Error(o(438,String(e)))}function Ts(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ti(),le.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=vt;return t.index++,l}function Wt(e,t){return typeof t=="function"?t(e):t}function zi(e){var t=Ue();return As(t,pe,e)}function As(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=c=null,v=null,C=t,_=!1;do{var U=C.lane&-536870913;if(U!==C.lane?(ce&U)===U:(kt&U)===U){var M=C.revertLane;if(M===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),U===pa&&(_=!0);else if((kt&M)===M){C=C.next,M===pa&&(_=!0);continue}else U={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},v===null?(d=v=U,c=i):v=v.next=U,le.lanes|=M,Sl|=M;U=C.action,Fl&&l(i,U),i=C.hasEagerState?C.eagerState:l(i,U)}else M={lane:U,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},v===null?(d=v=M,c=i):v=v.next=M,le.lanes|=U,Sl|=U;C=C.next}while(C!==null&&C!==t);if(v===null?c=i:v.next=d,!ot(i,e.memoizedState)&&(Be=!0,_&&(l=ba,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=v,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function zs(e){var t=Ue(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);ot(i,t.memoizedState)||(Be=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Mo(e,t,l){var a=le,n=Ue(),i=oe;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var c=!ot((pe||n).memoizedState,l);if(c&&(n.memoizedState=l,Be=!0),n=n.queue,Rs(Oo.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||He!==null&&He.memoizedState.tag&1){if(a.flags|=2048,Aa(9,{destroy:void 0},_o.bind(null,a,n,l,t),null),Ne===null)throw Error(o(349));i||(kt&127)!==0||Ro(a,t,l)}return l}function Ro(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=Ti(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function _o(e,t,l,a){t.value=l,t.getSnapshot=a,Do(t)&&Uo(e)}function Oo(e,t,l){return l(function(){Do(t)&&Uo(e)})}function Do(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ot(e,l)}catch{return!0}}function Uo(e){var t=Xl(e,2);t!==null&&ut(t,e,2)}function Cs(e){var t=Fe();if(typeof e=="function"){var l=e;if(e=l(),Fl){cl(!0);try{l()}finally{cl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:e},t}function wo(e,t,l,a){return e.baseState=l,As(e,pe,typeof a=="function"?a:Wt)}function yh(e,t,l,a,n){if(Ri(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};O.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Ho(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Ho(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=O.T,c={};O.T=c;try{var d=l(n,a),v=O.S;v!==null&&v(c,d),Bo(e,t,d)}catch(C){Ms(e,t,C)}finally{i!==null&&c.types!==null&&(i.types=c.types),O.T=i}}else try{i=l(n,a),Bo(e,t,i)}catch(C){Ms(e,t,C)}}function Bo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Lo(e,t,a)},function(a){return Ms(e,t,a)}):Lo(e,t,l)}function Lo(e,t,l){t.status="fulfilled",t.value=l,qo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ho(e,l)))}function Ms(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,qo(t),t=t.next;while(t!==a)}e.action=null}function qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yo(e,t){return t}function Go(e,t){if(oe){var l=Ne.formState;if(l!==null){e:{var a=le;if(oe){if(Te){t:{for(var n=Te,i=Tt;n.nodeType!==8;){if(!i){n=null;break t}if(n=zt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Te=zt(n.nextSibling),a=n.data==="F!";break e}}ml(a)}a=!1}a&&(t=l[0])}}return l=Fe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:t},l.queue=a,l=sf.bind(null,le,a),a.dispatch=l,a=Cs(!1),i=ws.bind(null,le,!1,a.queue),a=Fe(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=yh.bind(null,le,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Xo(e){var t=Ue();return Qo(t,pe,e)}function Qo(e,t,l){if(t=As(e,t,Yo)[0],e=zi(Wt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=mn(t)}catch(c){throw c===ja?yi:c}else a=t;t=Ue();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(le.flags|=2048,Aa(9,{destroy:void 0},vh.bind(null,n,l),null)),[a,i,e]}function vh(e,t){e.action=t}function Vo(e){var t=Ue(),l=pe;if(l!==null)return Qo(t,l,e);Ue(),t=t.memoizedState,l=Ue();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Aa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=Ti(),le.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Zo(){return Ue().memoizedState}function Ci(e,t,l,a){var n=Fe();le.flags|=e,n.memoizedState=Aa(1|t,{destroy:void 0},l,a===void 0?null:a)}function Mi(e,t,l,a){var n=Ue();a=a===void 0?null:a;var i=n.memoizedState.inst;pe!==null&&a!==null&&bs(a,pe.memoizedState.deps)?n.memoizedState=Aa(t,i,l,a):(le.flags|=e,n.memoizedState=Aa(1|t,i,l,a))}function Ko(e,t){Ci(8390656,8,e,t)}function Rs(e,t){Mi(2048,8,e,t)}function ph(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=Ti(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Jo(e){var t=Ue().memoizedState;return ph({ref:t,nextImpl:e}),function(){if((he&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function $o(e,t){return Mi(4,2,e,t)}function ko(e,t){return Mi(4,4,e,t)}function Wo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Fo(e,t,l){l=l!=null?l.concat([e]):null,Mi(4,4,Wo.bind(null,t,e),l)}function _s(){}function Po(e,t){var l=Ue();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&bs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Io(e,t){var l=Ue();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&bs(t,a[1]))return a[0];if(a=e(),Fl){cl(!0);try{e()}finally{cl(!1)}}return l.memoizedState=[a,t],a}function Os(e,t,l){return l===void 0||(kt&1073741824)!==0&&(ce&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=td(),le.lanes|=e,Sl|=e,l)}function ef(e,t,l,a){return ot(l,t)?l:Na.current!==null?(e=Os(e,l,a),ot(e,t)||(Be=!0),e):(kt&42)===0||(kt&1073741824)!==0&&(ce&261930)===0?(Be=!0,e.memoizedState=l):(e=td(),le.lanes|=e,Sl|=e,t)}function tf(e,t,l,a,n){var i=G.p;G.p=i!==0&&8>i?i:8;var c=O.T,d={};O.T=d,ws(e,!1,t,l);try{var v=n(),C=O.S;if(C!==null&&C(d,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var _=hh(v,a);hn(e,t,_,gt(e))}else hn(e,t,a,gt(e))}catch(U){hn(e,t,{then:function(){},status:"rejected",reason:U},gt())}finally{G.p=i,c!==null&&d.types!==null&&(c.types=d.types),O.T=c}}function bh(){}function Ds(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=lf(e).queue;tf(e,n,t,F,l===null?bh:function(){return af(e),l(a)})}function lf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function af(e){var t=lf(e);t.next===null&&(t=e.alternate.memoizedState),hn(e,t.next.queue,{},gt())}function Us(){return Ke(_n)}function nf(){return Ue().memoizedState}function uf(){return Ue().memoizedState}function jh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=gt();e=gl(l);var a=yl(t,e,l);a!==null&&(ut(a,t,l),rn(a,t,l)),t={cache:rs()},e.payload=t;return}t=t.return}}function Sh(e,t,l){var a=gt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ri(e)?cf(t,l):(l=Pu(e,t,l,a),l!==null&&(ut(l,e,a),rf(l,t,a)))}function sf(e,t,l){var a=gt();hn(e,t,l,a)}function hn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ri(e))cf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,l);if(n.hasEagerState=!0,n.eagerState=d,ot(d,c))return oi(e,t,n,0),Ne===null&&ri(),!1}catch{}if(l=Pu(e,t,n,a),l!==null)return ut(l,e,a),rf(l,t,a),!0}return!1}function ws(e,t,l,a){if(a={lane:2,revertLane:mc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ri(e)){if(t)throw Error(o(479))}else t=Pu(e,l,a,2),t!==null&&ut(t,e,2)}function Ri(e){var t=e.alternate;return e===le||t!==null&&t===le}function cf(e,t){Ea=Ni=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function rf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,dr(e,l)}}var xn={readContext:Ke,use:Ai,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re};xn.useEffectEvent=Re;var of={readContext:Ke,use:Ai,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:Ko,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ci(4194308,4,Wo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){Ci(4,2,e,t)},useMemo:function(e,t){var l=Fe();t=t===void 0?null:t;var a=e();if(Fl){cl(!0);try{e()}finally{cl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Fe();if(l!==void 0){var n=l(t);if(Fl){cl(!0);try{l(t)}finally{cl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Sh.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:function(e){e=Cs(e);var t=e.queue,l=sf.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_s,useDeferredValue:function(e,t){var l=Fe();return Os(l,e,t)},useTransition:function(){var e=Cs(!1);return e=tf.bind(null,le,e.queue,!0,!1),Fe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,n=Fe();if(oe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Ne===null)throw Error(o(349));(ce&127)!==0||Ro(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Ko(Oo.bind(null,a,i,e),[e]),a.flags|=2048,Aa(9,{destroy:void 0},_o.bind(null,a,i,l,t),null),l},useId:function(){var e=Fe(),t=Ne.identifierPrefix;if(oe){var l=Bt,a=Ht;l=(a&~(1<<32-rt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ei++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=xh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Us,useFormState:Go,useActionState:Go,useOptimistic:function(e){var t=Fe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ws.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ts,useCacheRefresh:function(){return Fe().memoizedState=jh.bind(null,le)},useEffectEvent:function(e){var t=Fe(),l={impl:e};return t.memoizedState=l,function(){if((he&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Hs={readContext:Ke,use:Ai,useCallback:Po,useContext:Ke,useEffect:Rs,useImperativeHandle:Fo,useInsertionEffect:$o,useLayoutEffect:ko,useMemo:Io,useReducer:zi,useRef:Zo,useState:function(){return zi(Wt)},useDebugValue:_s,useDeferredValue:function(e,t){var l=Ue();return ef(l,pe.memoizedState,e,t)},useTransition:function(){var e=zi(Wt)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:mn(e),t]},useSyncExternalStore:Mo,useId:nf,useHostTransitionStatus:Us,useFormState:Xo,useActionState:Xo,useOptimistic:function(e,t){var l=Ue();return wo(l,pe,e,t)},useMemoCache:Ts,useCacheRefresh:uf};Hs.useEffectEvent=Jo;var ff={readContext:Ke,use:Ai,useCallback:Po,useContext:Ke,useEffect:Rs,useImperativeHandle:Fo,useInsertionEffect:$o,useLayoutEffect:ko,useMemo:Io,useReducer:zs,useRef:Zo,useState:function(){return zs(Wt)},useDebugValue:_s,useDeferredValue:function(e,t){var l=Ue();return pe===null?Os(l,e,t):ef(l,pe.memoizedState,e,t)},useTransition:function(){var e=zs(Wt)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:mn(e),t]},useSyncExternalStore:Mo,useId:nf,useHostTransitionStatus:Us,useFormState:Vo,useActionState:Vo,useOptimistic:function(e,t){var l=Ue();return pe!==null?wo(l,pe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ts,useCacheRefresh:uf};ff.useEffectEvent=Jo;function Bs(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ls={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=gt(),n=gl(a);n.payload=t,l!=null&&(n.callback=l),t=yl(e,n,a),t!==null&&(ut(t,e,a),rn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=gt(),n=gl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=yl(e,n,a),t!==null&&(ut(t,e,a),rn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=gt(),a=gl(l);a.tag=2,t!=null&&(a.callback=t),t=yl(e,a,l),t!==null&&(ut(t,e,l),rn(t,e,l))}};function df(e,t,l,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!en(l,a)||!en(n,i):!0}function mf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Pl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function hf(e){ci(e)}function xf(e){console.error(e)}function gf(e){ci(e)}function _i(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function yf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function qs(e,t,l){return l=gl(l),l.tag=3,l.payload={element:null},l.callback=function(){_i(e,t)},l}function vf(e){return e=gl(e),e.tag=3,e}function pf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){yf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){yf(t,l,a),typeof n!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Nh(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&va(t,l,n,!0),l=dt.current,l!==null){switch(l.tag){case 31:case 13:return At===null?Qi():l.alternate===null&&_e===0&&(_e=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===vi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),oc(e,a,n)),!1;case 22:return l.flags|=65536,a===vi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),oc(e,a,n)),!1}throw Error(o(435,l.tag))}return oc(e,a,n),Qi(),!1}if(oe)return t=dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ns&&(e=Error(o(422),{cause:a}),an(St(e,l)))):(a!==ns&&(t=Error(o(423),{cause:a}),an(St(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=St(a,l),n=qs(e.stateNode,a,n),xs(e,n),_e!==4&&(_e=2)),!1;var i=Error(o(520),{cause:a});if(i=St(i,l),Nn===null?Nn=[i]:Nn.push(i),_e!==4&&(_e=2),t===null)return!0;a=St(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=qs(l.stateNode,a,e),xs(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Nl===null||!Nl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=vf(n),pf(n,e,l,a),xs(l,n),!1}l=l.return}while(l!==null);return!1}var Ys=Error(o(461)),Be=!1;function Je(e,t,l,a){t.child=e===null?So(t,null,l,a):Wl(t,e.child,l,a)}function bf(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Kl(t),a=js(e,t,l,c,i,n),d=Ss(),e!==null&&!Be?(Ns(e,t,n),Ft(e,t,n)):(oe&&d&&ls(t),t.flags|=1,Je(e,t,a,n),t.child)}function jf(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Iu(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Sf(e,t,i,a,n)):(e=di(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!$s(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:en,l(c,a)&&e.ref===t.ref)return Ft(e,t,n)}return t.flags|=1,e=Zt(i,a),e.ref=t.ref,e.return=t,t.child=e}function Sf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(en(i,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=i,$s(e,n))(e.flags&131072)!==0&&(Be=!0);else return t.lanes=e.lanes,Ft(e,t,n)}return Gs(e,t,l,a,n)}function Nf(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return Ef(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gi(t,i!==null?i.cachePool:null),i!==null?To(t,i):ys(),Ao(t);else return a=t.lanes=536870912,Ef(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(gi(t,i.cachePool),To(t,i),pl(),t.memoizedState=null):(e!==null&&gi(t,null),ys(),pl());return Je(e,t,n,l),t.child}function gn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ef(e,t,l,a,n){var i=fs();return i=i===null?null:{parent:we._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&gi(t,null),ys(),Ao(t),e!==null&&va(e,t,a,!0),t.childLanes=n,null}function Oi(e,t){return t=Ui({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Tf(e,t,l){return Wl(t,e.child,null,l),e=Oi(t,t.pendingProps),e.flags|=2,mt(t),t.memoizedState=null,e}function Eh(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=Oi(t,a),t.lanes=536870912,gn(null,e);if(ps(t),(e=Te)?(e=Bd(e,Tt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},l=uo(e),l.return=t,t.child=l,Ze=t,Te=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return Oi(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(ps(t),n)if(t.flags&256)t.flags&=-257,t=Tf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Be||va(e,t,l,!1),n=(l&e.childLanes)!==0,Be||n){if(a=Ne,a!==null&&(c=mr(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Xl(e,c),ut(a,e,c),Ys;Qi(),t=Tf(e,t,l)}else e=i.treeContext,Te=zt(c.nextSibling),Ze=t,oe=!0,dl=null,Tt=!1,e!==null&&ro(t,e),t=Oi(t,a),t.flags|=4096;return t}return e=Zt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Di(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Gs(e,t,l,a,n){return Kl(t),l=js(e,t,l,a,void 0,n),a=Ss(),e!==null&&!Be?(Ns(e,t,n),Ft(e,t,n)):(oe&&a&&ls(t),t.flags|=1,Je(e,t,l,n),t.child)}function Af(e,t,l,a,n,i){return Kl(t),t.updateQueue=null,l=Co(t,a,l,n),zo(e),a=Ss(),e!==null&&!Be?(Ns(e,t,i),Ft(e,t,i)):(oe&&a&&ls(t),t.flags|=1,Je(e,t,l,i),t.child)}function zf(e,t,l,a,n){if(Kl(t),t.stateNode===null){var i=ha,c=l.contextType;typeof c=="object"&&c!==null&&(i=Ke(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ls,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},ms(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?Ke(c):ha,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Bs(t,l,c,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Ls.enqueueReplaceState(i,i.state,null),fn(t,a,i,n),on(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,v=Pl(l,d);i.props=v;var C=i.context,_=l.contextType;c=ha,typeof _=="object"&&_!==null&&(c=Ke(_));var U=l.getDerivedStateFromProps;_=typeof U=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,_||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||C!==c)&&mf(t,i,a,c),xl=!1;var M=t.memoizedState;i.state=M,fn(t,a,i,n),on(),C=t.memoizedState,d||M!==C||xl?(typeof U=="function"&&(Bs(t,l,U,a),C=t.memoizedState),(v=xl||df(t,l,v,a,M,C,c))?(_||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),i.props=a,i.state=C,i.context=c,a=v):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,hs(e,t),c=t.memoizedProps,_=Pl(l,c),i.props=_,U=t.pendingProps,M=i.context,C=l.contextType,v=ha,typeof C=="object"&&C!==null&&(v=Ke(C)),d=l.getDerivedStateFromProps,(C=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==U||M!==v)&&mf(t,i,a,v),xl=!1,M=t.memoizedState,i.state=M,fn(t,a,i,n),on();var R=t.memoizedState;c!==U||M!==R||xl||e!==null&&e.dependencies!==null&&hi(e.dependencies)?(typeof d=="function"&&(Bs(t,l,d,a),R=t.memoizedState),(_=xl||df(t,l,_,a,M,R,v)||e!==null&&e.dependencies!==null&&hi(e.dependencies))?(C||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,R,v),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,R,v)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=R),i.props=a,i.state=R,i.context=v,a=_):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Di(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Wl(t,e.child,null,n),t.child=Wl(t,null,l,n)):Je(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Ft(e,t,n),e}function Cf(e,t,l,a){return Vl(),t.flags|=256,Je(e,t,l,a),t.child}var Xs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qs(e){return{baseLanes:e,cachePool:go()}}function Vs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=xt),e}function Mf(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(De.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(n?vl(t):pl(),(e=Te)?(e=Bd(e,Tt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},l=uo(e),l.return=t,t.child=l,Ze=t,Te=null)):e=null,e===null)throw ml(t);return Ac(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(pl(),n=t.mode,d=Ui({mode:"hidden",children:d},n),a=Ql(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Qs(l),a.childLanes=Vs(e,c,l),t.memoizedState=Xs,gn(null,a)):(vl(t),Zs(t,d))}var v=e.memoizedState;if(v!==null&&(d=v.dehydrated,d!==null)){if(i)t.flags&256?(vl(t),t.flags&=-257,t=Ks(e,t,l)):t.memoizedState!==null?(pl(),t.child=e.child,t.flags|=128,t=null):(pl(),d=a.fallback,n=t.mode,a=Ui({mode:"visible",children:a.children},n),d=Ql(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Wl(t,e.child,null,l),a=t.child,a.memoizedState=Qs(l),a.childLanes=Vs(e,c,l),t.memoizedState=Xs,t=gn(null,a));else if(vl(t),Ac(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var C=c.dgst;c=C,a=Error(o(419)),a.stack="",a.digest=c,an({value:a,source:null,stack:null}),t=Ks(e,t,l)}else if(Be||va(e,t,l,!1),c=(l&e.childLanes)!==0,Be||c){if(c=Ne,c!==null&&(a=mr(c,l),a!==0&&a!==v.retryLane))throw v.retryLane=a,Xl(e,a),ut(c,e,a),Ys;Tc(d)||Qi(),t=Ks(e,t,l)}else Tc(d)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Te=zt(d.nextSibling),Ze=t,oe=!0,dl=null,Tt=!1,e!==null&&ro(t,e),t=Zs(t,a.children),t.flags|=4096);return t}return n?(pl(),d=a.fallback,n=t.mode,v=e.child,C=v.sibling,a=Zt(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,C!==null?d=Zt(C,d):(d=Ql(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,gn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Qs(l):(n=d.cachePool,n!==null?(v=we._currentValue,n=n.parent!==v?{parent:v,pool:v}:n):n=go(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Vs(e,c,l),t.memoizedState=Xs,gn(e.child,a)):(vl(t),l=e.child,e=l.sibling,l=Zt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Zs(e,t){return t=Ui({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ui(e,t){return e=ft(22,e,null,t),e.lanes=0,e}function Ks(e,t,l){return Wl(t,e.child,null,l),e=Zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ss(e.return,t,l)}function Js(e,t,l,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=i)}function _f(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=De.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,Q(De,c),Je(e,t,a,l),a=oe?ln:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rf(e,l,t);else if(e.tag===19)Rf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Si(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Js(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Si(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Js(t,!0,l,null,i,a);break;case"together":Js(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ft(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Sl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(va(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Zt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Zt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function $s(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hi(e)))}function Th(e,t,l){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),hl(t,we,e.memoizedState.cache),Vl();break;case 27:case 5:Ga(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:hl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ps(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(vl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Mf(e,t,l):(vl(t),e=Ft(e,t,l),e!==null?e.sibling:null);vl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(va(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return _f(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Q(De,De.current),a)break;return null;case 22:return t.lanes=0,Nf(e,t,l,t.pendingProps);case 24:hl(t,we,e.memoizedState.cache)}return Ft(e,t,l)}function Of(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!$s(e,l)&&(t.flags&128)===0)return Be=!1,Th(e,t,l);Be=(e.flags&131072)!==0}else Be=!1,oe&&(t.flags&1048576)!==0&&co(t,ln,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$l(t.elementType),t.type=e,typeof e=="function")Iu(e)?(a=Pl(e,a),t.tag=1,t=zf(null,t,e,a,l)):(t.tag=0,t=Gs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===$){t.tag=11,t=bf(null,t,e,a,l);break e}else if(n===P){t.tag=14,t=jf(null,t,e,a,l);break e}}throw t=Gt(e)||e,Error(o(306,t,""))}}return t;case 0:return Gs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Pl(a,t.pendingProps),zf(e,t,a,n,l);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,hs(e,t),fn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,hl(t,we,a),a!==i.cache&&cs(t,[we],l,!0),on(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Cf(e,t,a,l);break e}else if(a!==n){n=St(Error(o(424)),t),an(n),t=Cf(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Te=zt(e.firstChild),Ze=t,oe=!0,dl=null,Tt=!0,l=So(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Vl(),a===n){t=Ft(e,t,l);break e}Je(e,t,a,l)}t=t.child}return t;case 26:return Di(e,t),e===null?(l=Qd(t.type,null,t.pendingProps,null))?t.memoizedState=l:oe||(l=t.type,e=t.pendingProps,a=Wi(ie.current).createElement(l),a[Ve]=t,a[et]=e,$e(a,l,e),Xe(a),t.stateNode=a):t.memoizedState=Qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ga(t),e===null&&oe&&(a=t.stateNode=Yd(t.type,t.pendingProps,ie.current),Ze=t,Tt=!0,n=Te,zl(t.type)?(zc=n,Te=zt(a.firstChild)):Te=n),Je(e,t,t.pendingProps.children,l),Di(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((n=a=Te)&&(a=tx(a,t.type,t.pendingProps,Tt),a!==null?(t.stateNode=a,Ze=t,Te=zt(a.firstChild),Tt=!1,n=!0):n=!1),n||ml(t)),Ga(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,Sc(n,i)?a=null:c!==null&&Sc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=js(e,t,gh,null,null,l),_n._currentValue=n),Di(e,t),Je(e,t,a,l),t.child;case 6:return e===null&&oe&&((e=l=Te)&&(l=lx(l,t.pendingProps,Tt),l!==null?(t.stateNode=l,Ze=t,Te=null,e=!0):e=!1),e||ml(t)),null;case 13:return Mf(e,t,l);case 4:return We(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Wl(t,null,a,l):Je(e,t,a,l),t.child;case 11:return bf(e,t,t.type,t.pendingProps,l);case 7:return Je(e,t,t.pendingProps,l),t.child;case 8:return Je(e,t,t.pendingProps.children,l),t.child;case 12:return Je(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,hl(t,t.type,a.value),Je(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Kl(t),n=Ke(n),a=a(n),t.flags|=1,Je(e,t,a,l),t.child;case 14:return jf(e,t,t.type,t.pendingProps,l);case 15:return Sf(e,t,t.type,t.pendingProps,l);case 19:return _f(e,t,l);case 31:return Eh(e,t,l);case 22:return Nf(e,t,l,t.pendingProps);case 24:return Kl(t),a=Ke(we),e===null?(n=fs(),n===null&&(n=Ne,i=rs(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},ms(t),hl(t,we,n)):((e.lanes&l)!==0&&(hs(e,t),fn(t,null,null,l),on()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),hl(t,we,a)):(a=i.cache,hl(t,we,a),a!==n.cache&&cs(t,[we],l,!0))),Je(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Pt(e){e.flags|=4}function ks(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(id())e.flags|=8192;else throw kl=vi,ds}else e.flags&=-16777217}function Df(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$d(t))if(id())e.flags|=8192;else throw kl=vi,ds}function wi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?or():536870912,e.lanes|=t,Ra|=t)}function yn(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Ah(e,t,l){var a=t.pendingProps;switch(as(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),$t(we),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ya(t)?Pt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,is())),Ae(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Pt(t),i!==null?(Ae(t),Df(t,i)):(Ae(t),ks(t,n,null,a,l))):i?i!==e.memoizedState?(Pt(t),Ae(t),Df(t,i)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Pt(t),Ae(t),ks(t,n,e,a,l)),null;case 27:if(Kn(t),l=ie.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ae(t),null}e=K.current,ya(t)?oo(t):(e=Yd(n,a,l),t.stateNode=e,Pt(t))}return Ae(t),null;case 5:if(Kn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ae(t),null}if(i=K.current,ya(t))oo(t);else{var c=Wi(ie.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Ve]=t,i[et]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch($e(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Pt(t)}}return Ae(t),ks(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,ya(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ze,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ve]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Md(e.nodeValue,l)),e||ml(t,!0)}else e=Wi(e).createTextNode(a),e[Ve]=t,t.stateNode=e}return Ae(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ya(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Ve]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else l=is(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ae(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ya(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Ve]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),n=!1}else n=is(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),wi(t,t.updateQueue),Ae(t),null);case 4:return Oe(),e===null&&yc(t.stateNode.containerInfo),Ae(t),null;case 10:return $t(t.type),Ae(t),null;case 19:if(w(De),a=t.memoizedState,a===null)return Ae(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)yn(a,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Si(e),i!==null){for(t.flags|=128,yn(a,!1),e=i.updateQueue,t.updateQueue=e,wi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)io(l,e),l=l.sibling;return Q(De,De.current&1|2),oe&&Kt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>Yi&&(t.flags|=128,n=!0,yn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Si(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,wi(t,e),yn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!oe)return Ae(t),null}else 2*st()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,n=!0,yn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=st(),e.sibling=null,l=De.current,Q(De,n?l&1|2:l&1),oe&&Kt(t,a.treeForkCount),e):(Ae(t),null);case 22:case 23:return mt(t),vs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),l=t.updateQueue,l!==null&&wi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&w(Jl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),$t(we),Ae(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function zh(e,t){switch(as(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $t(we),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Kn(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(o(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return w(De),null;case 4:return Oe(),null;case 10:return $t(t.type),null;case 22:case 23:return mt(t),vs(),e!==null&&w(Jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $t(we),null;case 25:return null;default:return null}}function Uf(e,t){switch(as(t),t.tag){case 3:$t(we),Oe();break;case 26:case 27:case 5:Kn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:w(De);break;case 10:$t(t.type);break;case 22:case 23:mt(t),vs(),e!==null&&w(Jl);break;case 24:$t(we)}}function vn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){ye(t,t.return,d)}}function bl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var v=l,C=d;try{C()}catch(_){ye(n,v,_)}}}a=a.next}while(a!==i)}}catch(_){ye(t,t.return,_)}}function wf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Eo(t,l)}catch(a){ye(e,e.return,a)}}}function Hf(e,t,l){l.props=Pl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ye(e,t,a)}}function pn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){ye(e,t,n)}}function Lt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ye(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ye(e,t,n)}else l.current=null}function Bf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ye(e,e.return,n)}}function Ws(e,t,l){try{var a=e.stateNode;kh(a,e.type,l,t),a[et]=t}catch(n){ye(e,e.return,n)}}function Lf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zl(e.type)||e.tag===4}function Fs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ps(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Qt));else if(a!==4&&(a===27&&zl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ps(e,t,l),e=e.sibling;e!==null;)Ps(e,t,l),e=e.sibling}function Hi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&zl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,t,l),e=e.sibling;e!==null;)Hi(e,t,l),e=e.sibling}function qf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);$e(t,a,l),t[Ve]=e,t[et]=l}catch(i){ye(e,e.return,i)}}var It=!1,Le=!1,Is=!1,Yf=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function Ch(e,t){if(e=e.containerInfo,bc=au,e=Wr(e),Ku(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,d=-1,v=-1,C=0,_=0,U=e,M=null;t:for(;;){for(var R;U!==l||n!==0&&U.nodeType!==3||(d=c+n),U!==i||a!==0&&U.nodeType!==3||(v=c+a),U.nodeType===3&&(c+=U.nodeValue.length),(R=U.firstChild)!==null;)M=U,U=R;for(;;){if(U===e)break t;if(M===l&&++C===n&&(d=c),M===i&&++_===a&&(v=c),(R=U.nextSibling)!==null)break;U=M,M=U.parentNode}U=R}l=d===-1||v===-1?null:{start:d,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(jc={focusedElem:e,selectionRange:l},au=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){switch(t=Qe,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var Z=Pl(l.type,n);e=a.getSnapshotBeforeUpdate(Z,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){ye(l,l.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ec(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ec(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}}function Gf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:tl(e,l),a&4&&vn(5,l);break;case 1:if(tl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){ye(l,l.return,c)}else{var n=Pl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){ye(l,l.return,c)}}a&64&&wf(l),a&512&&pn(l,l.return);break;case 3:if(tl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Eo(e,t)}catch(c){ye(l,l.return,c)}}break;case 27:t===null&&a&4&&qf(l);case 26:case 5:tl(e,l),t===null&&a&4&&Bf(l),a&512&&pn(l,l.return);break;case 12:tl(e,l);break;case 31:tl(e,l),a&4&&Vf(e,l);break;case 13:tl(e,l),a&4&&Zf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Bh.bind(null,l),ax(e,l))));break;case 22:if(a=l.memoizedState!==null||It,!a){t=t!==null&&t.memoizedState!==null||Le,n=It;var i=Le;It=a,(Le=t)&&!i?ll(e,l,(l.subtreeFlags&8772)!==0):tl(e,l),It=n,Le=i}break;case 30:break;default:tl(e,l)}}function Xf(e){var t=e.alternate;t!==null&&(e.alternate=null,Xf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Mu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,lt=!1;function el(e,t,l){for(l=l.child;l!==null;)Qf(e,t,l),l=l.sibling}function Qf(e,t,l){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Xa,l)}catch{}switch(l.tag){case 26:Le||Lt(l,t),el(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||Lt(l,t);var a=ze,n=lt;zl(l.type)&&(ze=l.stateNode,lt=!1),el(e,t,l),Cn(l.stateNode),ze=a,lt=n;break;case 5:Le||Lt(l,t);case 6:if(a=ze,n=lt,ze=null,el(e,t,l),ze=a,lt=n,ze!==null)if(lt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(l.stateNode)}catch(i){ye(l,t,i)}else try{ze.removeChild(l.stateNode)}catch(i){ye(l,t,i)}break;case 18:ze!==null&&(lt?(e=ze,wd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),La(e)):wd(ze,l.stateNode));break;case 4:a=ze,n=lt,ze=l.stateNode.containerInfo,lt=!0,el(e,t,l),ze=a,lt=n;break;case 0:case 11:case 14:case 15:bl(2,l,t),Le||bl(4,l,t),el(e,t,l);break;case 1:Le||(Lt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Hf(l,t,a)),el(e,t,l);break;case 21:el(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,el(e,t,l),Le=a;break;default:el(e,t,l)}}function Vf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{La(e)}catch(l){ye(t,t.return,l)}}}function Zf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{La(e)}catch(l){ye(t,t.return,l)}}function Mh(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Yf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Yf),t;default:throw Error(o(435,e.tag))}}function Bi(e,t){var l=Mh(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Lh.bind(null,e,a);a.then(n,n)}})}function at(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(zl(d.type)){ze=d.stateNode,lt=!1;break e}break;case 5:ze=d.stateNode,lt=!1;break e;case 3:case 4:ze=d.stateNode.containerInfo,lt=!0;break e}d=d.return}if(ze===null)throw Error(o(160));Qf(i,c,n),ze=null,lt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Kf(t,e),t=t.sibling}var Ot=null;function Kf(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:at(t,e),nt(e),a&4&&(bl(3,e,e.return),vn(3,e),bl(5,e,e.return));break;case 1:at(t,e),nt(e),a&512&&(Le||l===null||Lt(l,l.return)),a&64&&It&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ot;if(at(t,e),nt(e),a&512&&(Le||l===null||Lt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Za]||i[Ve]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),$e(i,a,l),i[Ve]=e,Xe(i),a=i;break e;case"link":var c=Kd("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}i=n.createElement(a),$e(i,a,l),n.head.appendChild(i);break;case"meta":if(c=Kd("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}i=n.createElement(a),$e(i,a,l),n.head.appendChild(i);break;default:throw Error(o(468,a))}i[Ve]=e,Xe(i),a=i}e.stateNode=a}else Jd(n,e.type,e.stateNode);else e.stateNode=Zd(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Jd(n,e.type,e.stateNode):Zd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ws(e,e.memoizedProps,l.memoizedProps)}break;case 27:at(t,e),nt(e),a&512&&(Le||l===null||Lt(l,l.return)),l!==null&&a&4&&Ws(e,e.memoizedProps,l.memoizedProps);break;case 5:if(at(t,e),nt(e),a&512&&(Le||l===null||Lt(l,l.return)),e.flags&32){n=e.stateNode;try{sa(n,"")}catch(Z){ye(e,e.return,Z)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Ws(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Is=!0);break;case 6:if(at(t,e),nt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Z){ye(e,e.return,Z)}}break;case 3:if(Ii=null,n=Ot,Ot=Fi(t.containerInfo),at(t,e),Ot=n,nt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{La(t.containerInfo)}catch(Z){ye(e,e.return,Z)}Is&&(Is=!1,Jf(e));break;case 4:a=Ot,Ot=Fi(e.stateNode.containerInfo),at(t,e),nt(e),Ot=a;break;case 12:at(t,e),nt(e);break;case 31:at(t,e),nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bi(e,a)));break;case 13:at(t,e),nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(qi=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bi(e,a)));break;case 22:n=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,C=It,_=Le;if(It=C||n,Le=_||v,at(t,e),Le=_,It=C,nt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||v||It||Le||Il(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(i=v.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=v.stateNode;var U=v.memoizedProps.style,M=U!=null&&U.hasOwnProperty("display")?U.display:null;d.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(Z){ye(v,v.return,Z)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=n?"":v.memoizedProps}catch(Z){ye(v,v.return,Z)}}}else if(t.tag===18){if(l===null){v=t;try{var R=v.stateNode;n?Hd(R,!0):Hd(v.stateNode,!1)}catch(Z){ye(v,v.return,Z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Bi(e,l))));break;case 19:at(t,e),nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bi(e,a)));break;case 30:break;case 21:break;default:at(t,e),nt(e)}}function nt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Lf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,i=Fs(e);Hi(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(sa(c,""),l.flags&=-33);var d=Fs(e);Hi(e,d,c);break;case 3:case 4:var v=l.stateNode.containerInfo,C=Fs(e);Ps(e,C,v);break;default:throw Error(o(161))}}catch(_){ye(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function tl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Gf(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Il(t);break;case 1:Lt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Hf(t,t.return,l),Il(t);break;case 27:Cn(t.stateNode);case 26:case 5:Lt(t,t.return),Il(t);break;case 22:t.memoizedState===null&&Il(t);break;case 30:Il(t);break;default:Il(t)}e=e.sibling}}function ll(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:ll(n,i,l),vn(4,i);break;case 1:if(ll(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(C){ye(a,a.return,C)}if(a=i,n=a.updateQueue,n!==null){var d=a.stateNode;try{var v=n.shared.hiddenCallbacks;if(v!==null)for(n.shared.hiddenCallbacks=null,n=0;n<v.length;n++)No(v[n],d)}catch(C){ye(a,a.return,C)}}l&&c&64&&wf(i),pn(i,i.return);break;case 27:qf(i);case 26:case 5:ll(n,i,l),l&&a===null&&c&4&&Bf(i),pn(i,i.return);break;case 12:ll(n,i,l);break;case 31:ll(n,i,l),l&&c&4&&Vf(n,i);break;case 13:ll(n,i,l),l&&c&4&&Zf(n,i);break;case 22:i.memoizedState===null&&ll(n,i,l),pn(i,i.return);break;case 30:break;default:ll(n,i,l)}t=t.sibling}}function ec(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&nn(l))}function tc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nn(e))}function Dt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$f(e,t,l,a),t=t.sibling}function $f(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Dt(e,t,l,a),n&2048&&vn(9,t);break;case 1:Dt(e,t,l,a);break;case 3:Dt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nn(e)));break;case 12:if(n&2048){Dt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,d=i.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){ye(t,t.return,v)}}else Dt(e,t,l,a);break;case 31:Dt(e,t,l,a);break;case 13:Dt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Dt(e,t,l,a):bn(e,t):i._visibility&2?Dt(e,t,l,a):(i._visibility|=2,za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ec(c,t);break;case 24:Dt(e,t,l,a),n&2048&&tc(t.alternate,t);break;default:Dt(e,t,l,a)}}function za(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,d=l,v=a,C=c.flags;switch(c.tag){case 0:case 11:case 15:za(i,c,d,v,n),vn(8,c);break;case 23:break;case 22:var _=c.stateNode;c.memoizedState!==null?_._visibility&2?za(i,c,d,v,n):bn(i,c):(_._visibility|=2,za(i,c,d,v,n)),n&&C&2048&&ec(c.alternate,c);break;case 24:za(i,c,d,v,n),n&&C&2048&&tc(c.alternate,c);break;default:za(i,c,d,v,n)}t=t.sibling}}function bn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:bn(l,a),n&2048&&ec(a.alternate,a);break;case 24:bn(l,a),n&2048&&tc(a.alternate,a);break;default:bn(l,a)}t=t.sibling}}var jn=8192;function Ca(e,t,l){if(e.subtreeFlags&jn)for(e=e.child;e!==null;)kf(e,t,l),e=e.sibling}function kf(e,t,l){switch(e.tag){case 26:Ca(e,t,l),e.flags&jn&&e.memoizedState!==null&&xx(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:Ca(e,t,l);break;case 3:case 4:var a=Ot;Ot=Fi(e.stateNode.containerInfo),Ca(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=jn,jn=16777216,Ca(e,t,l),jn=a):Ca(e,t,l));break;default:Ca(e,t,l)}}function Wf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Sn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Qe=a,Pf(a,e)}Wf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ff(e),e=e.sibling}function Ff(e){switch(e.tag){case 0:case 11:case 15:Sn(e),e.flags&2048&&bl(9,e,e.return);break;case 3:Sn(e);break;case 12:Sn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Li(e)):Sn(e);break;default:Sn(e)}}function Li(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Qe=a,Pf(a,e)}Wf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bl(8,t,t.return),Li(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Li(t));break;default:Li(t)}e=e.sibling}}function Pf(e,t){for(;Qe!==null;){var l=Qe;switch(l.tag){case 0:case 11:case 15:bl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:nn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Qe=a;else e:for(l=e;Qe!==null;){a=Qe;var n=a.sibling,i=a.return;if(Xf(a),a===l){Qe=null;break e}if(n!==null){n.return=i,Qe=n;break e}Qe=i}}}var Rh={getCacheForType:function(e){var t=Ke(we),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ke(we).controller.signal}},_h=typeof WeakMap=="function"?WeakMap:Map,he=0,Ne=null,ue=null,ce=0,ge=0,ht=null,jl=!1,Ma=!1,lc=!1,al=0,_e=0,Sl=0,ea=0,ac=0,xt=0,Ra=0,Nn=null,it=null,nc=!1,qi=0,If=0,Yi=1/0,Gi=null,Nl=null,Ge=0,El=null,_a=null,nl=0,ic=0,uc=null,ed=null,En=0,sc=null;function gt(){return(he&2)!==0&&ce!==0?ce&-ce:O.T!==null?mc():hr()}function td(){if(xt===0)if((ce&536870912)===0||oe){var e=kn;kn<<=1,(kn&3932160)===0&&(kn=262144),xt=e}else xt=536870912;return e=dt.current,e!==null&&(e.flags|=32),xt}function ut(e,t,l){(e===Ne&&(ge===2||ge===9)||e.cancelPendingCommit!==null)&&(Oa(e,0),Tl(e,ce,xt,!1)),Va(e,l),((he&2)===0||e!==Ne)&&(e===Ne&&((he&2)===0&&(ea|=l),_e===4&&Tl(e,ce,xt,!1)),qt(e))}function ld(e,t,l){if((he&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Qa(e,t),n=a?Uh(e,t):rc(e,t,!0),i=a;do{if(n===0){Ma&&!a&&Tl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Oh(l)){n=rc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Nn;var v=d.current.memoizedState.isDehydrated;if(v&&(Oa(d,c).flags|=256),c=rc(d,c,!1),c!==2){if(lc&&!v){d.errorRecoveryDisabledLanes|=i,ea|=i,n=4;break e}i=it,it=n,i!==null&&(it===null?it=i:it.push.apply(it,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Oa(e,0),Tl(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Tl(a,t,xt,!jl);break e;case 2:it=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=qi+300-st(),10<n)){if(Tl(a,t,xt,!jl),Fn(a,0,!0)!==0)break e;nl=t,a.timeoutHandle=Dd(ad.bind(null,a,l,it,Gi,nc,t,xt,ea,Ra,jl,i,"Throttled",-0,0),n);break e}ad(a,l,it,Gi,nc,t,xt,ea,Ra,jl,i,null,-0,0)}}break}while(!0);qt(e)}function ad(e,t,l,a,n,i,c,d,v,C,_,U,M,R){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qt},kf(t,i,U);var Z=(i&62914560)===i?qi-st():(i&4194048)===i?If-st():0;if(Z=gx(U,Z),Z!==null){nl=i,e.cancelPendingCommit=Z(fd.bind(null,e,t,i,l,a,n,c,d,v,_,U,null,M,R)),Tl(e,i,c,!C);return}}fd(e,t,i,l,a,n,c,d,v)}function Oh(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!ot(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Tl(e,t,l,a){t&=~ac,t&=~ea,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-rt(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&fr(e,l,t)}function Xi(){return(he&6)===0?(Tn(0),!1):!0}function cc(){if(ue!==null){if(ge===0)var e=ue.return;else e=ue,Jt=Zl=null,Es(e),Sa=null,sn=0,e=ue;for(;e!==null;)Uf(e.alternate,e),e=e.return;ue=null}}function Oa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Ph(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),nl=0,cc(),Ne=e,ue=l=Zt(e.current,null),ce=t,ge=0,ht=null,jl=!1,Ma=Qa(e,t),lc=!1,Ra=xt=ac=ea=Sl=_e=0,it=Nn=null,nc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-rt(a),i=1<<n;t|=e[n],a&=~i}return al=t,ri(),l}function nd(e,t){le=null,O.H=xn,t===ja||t===yi?(t=po(),ge=3):t===ds?(t=po(),ge=4):ge=t===Ys?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ht=t,ue===null&&(_e=1,_i(e,St(t,e.current)))}function id(){var e=dt.current;return e===null?!0:(ce&4194048)===ce?At===null:(ce&62914560)===ce||(ce&536870912)!==0?e===At:!1}function ud(){var e=O.H;return O.H=xn,e===null?xn:e}function sd(){var e=O.A;return O.A=Rh,e}function Qi(){_e=4,jl||(ce&4194048)!==ce&&dt.current!==null||(Ma=!0),(Sl&134217727)===0&&(ea&134217727)===0||Ne===null||Tl(Ne,ce,xt,!1)}function rc(e,t,l){var a=he;he|=2;var n=ud(),i=sd();(Ne!==e||ce!==t)&&(Gi=null,Oa(e,t)),t=!1;var c=_e;e:do try{if(ge!==0&&ue!==null){var d=ue,v=ht;switch(ge){case 8:cc(),c=6;break e;case 3:case 2:case 9:case 6:dt.current===null&&(t=!0);var C=ge;if(ge=0,ht=null,Da(e,d,v,C),l&&Ma){c=0;break e}break;default:C=ge,ge=0,ht=null,Da(e,d,v,C)}}Dh(),c=_e;break}catch(_){nd(e,_)}while(!0);return t&&e.shellSuspendCounter++,Jt=Zl=null,he=a,O.H=n,O.A=i,ue===null&&(Ne=null,ce=0,ri()),c}function Dh(){for(;ue!==null;)cd(ue)}function Uh(e,t){var l=he;he|=2;var a=ud(),n=sd();Ne!==e||ce!==t?(Gi=null,Yi=st()+500,Oa(e,t)):Ma=Qa(e,t);e:do try{if(ge!==0&&ue!==null){t=ue;var i=ht;t:switch(ge){case 1:ge=0,ht=null,Da(e,t,i,1);break;case 2:case 9:if(yo(i)){ge=0,ht=null,rd(t);break}t=function(){ge!==2&&ge!==9||Ne!==e||(ge=7),qt(e)},i.then(t,t);break e;case 3:ge=7;break e;case 4:ge=5;break e;case 7:yo(i)?(ge=0,ht=null,rd(t)):(ge=0,ht=null,Da(e,t,i,7));break;case 5:var c=null;switch(ue.tag){case 26:c=ue.memoizedState;case 5:case 27:var d=ue;if(c?$d(c):d.stateNode.complete){ge=0,ht=null;var v=d.sibling;if(v!==null)ue=v;else{var C=d.return;C!==null?(ue=C,Vi(C)):ue=null}break t}}ge=0,ht=null,Da(e,t,i,5);break;case 6:ge=0,ht=null,Da(e,t,i,6);break;case 8:cc(),_e=6;break e;default:throw Error(o(462))}}wh();break}catch(_){nd(e,_)}while(!0);return Jt=Zl=null,O.H=a,O.A=n,he=l,ue!==null?0:(Ne=null,ce=0,ri(),_e)}function wh(){for(;ue!==null&&!nm();)cd(ue)}function cd(e){var t=Of(e.alternate,e,al);e.memoizedProps=e.pendingProps,t===null?Vi(e):ue=t}function rd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Af(l,t,t.pendingProps,t.type,void 0,ce);break;case 11:t=Af(l,t,t.pendingProps,t.type.render,t.ref,ce);break;case 5:Es(t);default:Uf(l,t),t=ue=io(t,al),t=Of(l,t,al)}e.memoizedProps=e.pendingProps,t===null?Vi(e):ue=t}function Da(e,t,l,a){Jt=Zl=null,Es(t),Sa=null,sn=0;var n=t.return;try{if(Nh(e,n,t,l,ce)){_e=1,_i(e,St(l,e.current)),ue=null;return}}catch(i){if(n!==null)throw ue=n,i;_e=1,_i(e,St(l,e.current)),ue=null;return}t.flags&32768?(oe||a===1?e=!0:Ma||(ce&536870912)!==0?e=!1:(jl=e=!0,(a===2||a===9||a===3||a===6)&&(a=dt.current,a!==null&&a.tag===13&&(a.flags|=16384))),od(t,e)):Vi(t)}function Vi(e){var t=e;do{if((t.flags&32768)!==0){od(t,jl);return}e=t.return;var l=Ah(t.alternate,t,al);if(l!==null){ue=l;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);_e===0&&(_e=5)}function od(e,t){do{var l=zh(e.alternate,e);if(l!==null){l.flags&=32767,ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=l}while(e!==null);_e=6,ue=null}function fd(e,t,l,a,n,i,c,d,v){e.cancelPendingCommit=null;do Zi();while(Ge!==0);if((he&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Fu,hm(e,l,i,c,d,v),e===Ne&&(ue=Ne=null,ce=0),_a=t,El=e,nl=l,ic=i,uc=n,ed=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qh(Jn,function(){return gd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,n=G.p,G.p=2,c=he,he|=4;try{Ch(e,t,l)}finally{he=c,G.p=n,O.T=a}}Ge=1,dd(),md(),hd()}}function dd(){if(Ge===1){Ge=0;var e=El,t=_a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var a=G.p;G.p=2;var n=he;he|=4;try{Kf(t,e);var i=jc,c=Wr(e.containerInfo),d=i.focusedElem,v=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&kr(d.ownerDocument.documentElement,d)){if(v!==null&&Ku(d)){var C=v.start,_=v.end;if(_===void 0&&(_=C),"selectionStart"in d)d.selectionStart=C,d.selectionEnd=Math.min(_,d.value.length);else{var U=d.ownerDocument||document,M=U&&U.defaultView||window;if(M.getSelection){var R=M.getSelection(),Z=d.textContent.length,W=Math.min(v.start,Z),je=v.end===void 0?W:Math.min(v.end,Z);!R.extend&&W>je&&(c=je,je=W,W=c);var E=$r(d,W),b=$r(d,je);if(E&&b&&(R.rangeCount!==1||R.anchorNode!==E.node||R.anchorOffset!==E.offset||R.focusNode!==b.node||R.focusOffset!==b.offset)){var z=U.createRange();z.setStart(E.node,E.offset),R.removeAllRanges(),W>je?(R.addRange(z),R.extend(b.node,b.offset)):(z.setEnd(b.node,b.offset),R.addRange(z))}}}}for(U=[],R=d;R=R.parentNode;)R.nodeType===1&&U.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<U.length;d++){var D=U[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}au=!!bc,jc=bc=null}finally{he=n,G.p=a,O.T=l}}e.current=t,Ge=2}}function md(){if(Ge===2){Ge=0;var e=El,t=_a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=G.p;G.p=2;var n=he;he|=4;try{Gf(e,t.alternate,t)}finally{he=n,G.p=a,O.T=l}}Ge=3}}function hd(){if(Ge===4||Ge===3){Ge=0,im();var e=El,t=_a,l=nl,a=ed;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ge=5:(Ge=0,_a=El=null,xd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Nl=null),zu(l),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Xa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,n=G.p,G.p=2,O.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];i(d.value,{componentStack:d.stack})}}finally{O.T=t,G.p=n}}(nl&3)!==0&&Zi(),qt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===sc?En++:(En=0,sc=e):En=0,Tn(0)}}function xd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nn(t)))}function Zi(){return dd(),md(),hd(),gd()}function gd(){if(Ge!==5)return!1;var e=El,t=ic;ic=0;var l=zu(nl),a=O.T,n=G.p;try{G.p=32>l?32:l,O.T=null,l=uc,uc=null;var i=El,c=nl;if(Ge=0,_a=El=null,nl=0,(he&6)!==0)throw Error(o(331));var d=he;if(he|=4,Ff(i.current),$f(i,i.current,c,l),he=d,Tn(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Xa,i)}catch{}return!0}finally{G.p=n,O.T=a,xd(e,t)}}function yd(e,t,l){t=St(l,t),t=qs(e.stateNode,t,2),e=yl(e,t,2),e!==null&&(Va(e,2),qt(e))}function ye(e,t,l){if(e.tag===3)yd(e,e,l);else for(;t!==null;){if(t.tag===3){yd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Nl===null||!Nl.has(a))){e=St(l,e),l=vf(2),a=yl(t,l,2),a!==null&&(pf(l,a,t,e),Va(a,2),qt(a));break}}t=t.return}}function oc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new _h;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(lc=!0,n.add(l),e=Hh.bind(null,e,t,l),t.then(e,e))}function Hh(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ne===e&&(ce&l)===l&&(_e===4||_e===3&&(ce&62914560)===ce&&300>st()-qi?(he&2)===0&&Oa(e,0):ac|=l,Ra===ce&&(Ra=0)),qt(e)}function vd(e,t){t===0&&(t=or()),e=Xl(e,t),e!==null&&(Va(e,t),qt(e))}function Bh(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),vd(e,l)}function Lh(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),vd(e,l)}function qh(e,t){return Nu(e,t)}var Ki=null,Ua=null,fc=!1,Ji=!1,dc=!1,Al=0;function qt(e){e!==Ua&&e.next===null&&(Ua===null?Ki=Ua=e:Ua=Ua.next=e),Ji=!0,fc||(fc=!0,Gh())}function Tn(e,t){if(!dc&&Ji){dc=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,d=a.pingedLanes;i=(1<<31-rt(42|e)+1)-1,i&=n&~(c&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Sd(a,i))}else i=ce,i=Fn(a,a===Ne?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Qa(a,i)||(l=!0,Sd(a,i));a=a.next}while(l);dc=!1}}function Yh(){pd()}function pd(){Ji=fc=!1;var e=0;Al!==0&&Fh()&&(e=Al);for(var t=st(),l=null,a=Ki;a!==null;){var n=a.next,i=bd(a,t);i===0?(a.next=null,l===null?Ki=n:l.next=n,n===null&&(Ua=l)):(l=a,(e!==0||(i&3)!==0)&&(Ji=!0)),a=n}Ge!==0&&Ge!==5||Tn(e),Al!==0&&(Al=0)}function bd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-rt(i),d=1<<c,v=n[c];v===-1?((d&l)===0||(d&a)!==0)&&(n[c]=mm(d,t)):v<=t&&(e.expiredLanes|=d),i&=~d}if(t=Ne,l=ce,l=Fn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ge===2||ge===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Eu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Qa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Eu(a),zu(l)){case 2:case 8:l=cr;break;case 32:l=Jn;break;case 268435456:l=rr;break;default:l=Jn}return a=jd.bind(null,e),l=Nu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Eu(a),e.callbackPriority=2,e.callbackNode=null,2}function jd(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Zi()&&e.callbackNode!==l)return null;var a=ce;return a=Fn(e,e===Ne?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(ld(e,a,t),bd(e,st()),e.callbackNode!=null&&e.callbackNode===l?jd.bind(null,e):null)}function Sd(e,t){if(Zi())return null;ld(e,t,!0)}function Gh(){Ih(function(){(he&6)!==0?Nu(sr,Yh):pd()})}function mc(){if(Al===0){var e=pa;e===0&&(e=$n,$n<<=1,($n&261888)===0&&($n=256)),Al=e}return Al}function Nd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ti(""+e)}function Ed(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Xh(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Nd((n[et]||null).action),c=a.submitter;c&&(t=(t=c[et]||null)?Nd(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var d=new ii("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var v=c?Ed(n,c):new FormData(n);Ds(l,{pending:!0,data:v,method:n.method,action:i},null,v)}}else typeof i=="function"&&(d.preventDefault(),v=c?Ed(n,c):new FormData(n),Ds(l,{pending:!0,data:v,method:n.method,action:i},i,v))},currentTarget:n}]})}}for(var hc=0;hc<Wu.length;hc++){var xc=Wu[hc],Qh=xc.toLowerCase(),Vh=xc[0].toUpperCase()+xc.slice(1);_t(Qh,"on"+Vh)}_t(Ir,"onAnimationEnd"),_t(eo,"onAnimationIteration"),_t(to,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(uh,"onTransitionRun"),_t(sh,"onTransitionStart"),_t(ch,"onTransitionCancel"),_t(lo,"onTransitionEnd"),ia("onMouseEnter",["mouseout","mouseover"]),ia("onMouseLeave",["mouseout","mouseover"]),ia("onPointerEnter",["pointerout","pointerover"]),ia("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="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(" "),Zh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(An));function Td(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],v=d.instance,C=d.currentTarget;if(d=d.listener,v!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=C;try{i(n)}catch(_){ci(_)}n.currentTarget=null,i=v}else for(c=0;c<a.length;c++){if(d=a[c],v=d.instance,C=d.currentTarget,d=d.listener,v!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=C;try{i(n)}catch(_){ci(_)}n.currentTarget=null,i=v}}}}function se(e,t){var l=t[Cu];l===void 0&&(l=t[Cu]=new Set);var a=e+"__bubble";l.has(a)||(Ad(t,e,2,!1),l.add(a))}function gc(e,t,l){var a=0;t&&(a|=4),Ad(l,e,a,t)}var $i="_reactListening"+Math.random().toString(36).slice(2);function yc(e){if(!e[$i]){e[$i]=!0,yr.forEach(function(l){l!=="selectionchange"&&(Zh.has(l)||gc(l,!1,e),gc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$i]||(t[$i]=!0,gc("selectionchange",!1,t))}}function Ad(e,t,l,a){switch(t0(t)){case 2:var n=px;break;case 8:n=bx;break;default:n=Oc}l=n.bind(null,t,l,e),n=void 0,!Bu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function vc(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var v=c.tag;if((v===3||v===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=la(d),c===null)return;if(v=c.tag,v===5||v===6||v===26||v===27){a=i=c;continue e}d=d.parentNode}}a=a.return}Mr(function(){var C=i,_=wu(l),U=[];e:{var M=ao.get(e);if(M!==void 0){var R=ii,Z=e;switch(e){case"keypress":if(ai(l)===0)break e;case"keydown":case"keyup":R=Lm;break;case"focusin":Z="focus",R=Gu;break;case"focusout":Z="blur",R=Gu;break;case"beforeblur":case"afterblur":R=Gu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=Or;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Am;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=Gm;break;case Ir:case eo:case to:R=Mm;break;case lo:R=Qm;break;case"scroll":case"scrollend":R=Em;break;case"wheel":R=Zm;break;case"copy":case"cut":case"paste":R=_m;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Ur;break;case"toggle":case"beforetoggle":R=Jm}var W=(t&4)!==0,je=!W&&(e==="scroll"||e==="scrollend"),E=W?M!==null?M+"Capture":null:M;W=[];for(var b=C,z;b!==null;){var D=b;if(z=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||z===null||E===null||(D=Ja(b,E),D!=null&&W.push(zn(b,D,z))),je)break;b=b.return}0<W.length&&(M=new R(M,Z,null,l,_),U.push({event:M,listeners:W}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",M&&l!==Uu&&(Z=l.relatedTarget||l.fromElement)&&(la(Z)||Z[ta]))break e;if((R||M)&&(M=_.window===_?_:(M=_.ownerDocument)?M.defaultView||M.parentWindow:window,R?(Z=l.relatedTarget||l.toElement,R=C,Z=Z?la(Z):null,Z!==null&&(je=h(Z),W=Z.tag,Z!==je||W!==5&&W!==27&&W!==6)&&(Z=null)):(R=null,Z=C),R!==Z)){if(W=Or,D="onMouseLeave",E="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(W=Ur,D="onPointerLeave",E="onPointerEnter",b="pointer"),je=R==null?M:Ka(R),z=Z==null?M:Ka(Z),M=new W(D,b+"leave",R,l,_),M.target=je,M.relatedTarget=z,D=null,la(_)===C&&(W=new W(E,b+"enter",Z,l,_),W.target=z,W.relatedTarget=je,D=W),je=D,R&&Z)t:{for(W=Kh,E=R,b=Z,z=0,D=E;D;D=W(D))z++;D=0;for(var k=b;k;k=W(k))D++;for(;0<z-D;)E=W(E),z--;for(;0<D-z;)b=W(b),D--;for(;z--;){if(E===b||b!==null&&E===b.alternate){W=E;break t}E=W(E),b=W(b)}W=null}else W=null;R!==null&&zd(U,M,R,W,!1),Z!==null&&je!==null&&zd(U,je,Z,W,!0)}}e:{if(M=C?Ka(C):window,R=M.nodeName&&M.nodeName.toLowerCase(),R==="select"||R==="input"&&M.type==="file")var de=Xr;else if(Yr(M))if(Qr)de=ah;else{de=th;var J=eh}else R=M.nodeName,!R||R.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?C&&Du(C.elementType)&&(de=Xr):de=lh;if(de&&(de=de(e,C))){Gr(U,de,l,_);break e}J&&J(e,M,C),e==="focusout"&&C&&M.type==="number"&&C.memoizedProps.value!=null&&Ou(M,"number",M.value)}switch(J=C?Ka(C):window,e){case"focusin":(Yr(J)||J.contentEditable==="true")&&(fa=J,Ju=C,tn=null);break;case"focusout":tn=Ju=fa=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,Fr(U,l,_);break;case"selectionchange":if(ih)break;case"keydown":case"keyup":Fr(U,l,_)}var ae;if(Qu)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else oa?Lr(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(wr&&l.locale!=="ko"&&(oa||re!=="onCompositionStart"?re==="onCompositionEnd"&&oa&&(ae=Rr()):(ol=_,Lu="value"in ol?ol.value:ol.textContent,oa=!0)),J=ki(C,re),0<J.length&&(re=new Dr(re,e,null,l,_),U.push({event:re,listeners:J}),ae?re.data=ae:(ae=qr(l),ae!==null&&(re.data=ae)))),(ae=km?Wm(e,l):Fm(e,l))&&(re=ki(C,"onBeforeInput"),0<re.length&&(J=new Dr("onBeforeInput","beforeinput",null,l,_),U.push({event:J,listeners:re}),J.data=ae)),Xh(U,e,C,l,_)}Td(U,t)})}function zn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ki(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ja(e,l),n!=null&&a.unshift(zn(e,n,i)),n=Ja(e,t),n!=null&&a.push(zn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Kh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zd(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var d=l,v=d.alternate,C=d.stateNode;if(d=d.tag,v!==null&&v===a)break;d!==5&&d!==26&&d!==27||C===null||(v=C,n?(C=Ja(l,i),C!=null&&c.unshift(zn(l,C,v))):n||(C=Ja(l,i),C!=null&&c.push(zn(l,C,v)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Jh=/\r\n?/g,$h=/\u0000|\uFFFD/g;function Cd(e){return(typeof e=="string"?e:""+e).replace(Jh,`
9
- `).replace($h,"")}function Md(e,t){return t=Cd(t),Cd(e)===t}function be(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||sa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&sa(e,""+a);break;case"className":In(e,"class",a);break;case"tabIndex":In(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":In(e,l,a);break;case"style":zr(e,a,i);break;case"data":if(t!=="object"){In(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ti(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&be(e,t,"name",n.name,n,null),be(e,t,"formEncType",n.formEncType,n,null),be(e,t,"formMethod",n.formMethod,n,null),be(e,t,"formTarget",n.formTarget,n,null)):(be(e,t,"encType",n.encType,n,null),be(e,t,"method",n.method,n,null),be(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ti(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Qt);break;case"onScroll":a!=null&&se("scroll",e);break;case"onScrollEnd":a!=null&&se("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=ti(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":se("beforetoggle",e),se("toggle",e),Pn(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Pn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Sm.get(l)||l,Pn(e,l,a))}}function pc(e,t,l,a,n,i){switch(l){case"style":zr(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?sa(e,a):(typeof a=="number"||typeof a=="bigint")&&sa(e,""+a);break;case"onScroll":a!=null&&se("scroll",e);break;case"onScrollEnd":a!=null&&se("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Qt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[et]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Pn(e,l,a)}}}function $e(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":se("error",e),se("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:be(e,t,i,c,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":se("invalid",e);var d=i=c=n=null,v=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var _=l[a];if(_!=null)switch(a){case"name":n=_;break;case"type":c=_;break;case"checked":v=_;break;case"defaultChecked":C=_;break;case"value":i=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:be(e,t,a,_,l,null)}}Nr(e,i,d,v,C,c,n,!1);return;case"select":se("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:be(e,t,n,d,l,null)}t=i,l=c,e.multiple=!!a,t!=null?ua(e,!!a,t,!1):l!=null&&ua(e,!!a,l,!0);return;case"textarea":se("invalid",e),i=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:be(e,t,c,d,l,null)}Tr(e,a,n,i);return;case"option":for(v in l)l.hasOwnProperty(v)&&(a=l[v],a!=null)&&(v==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":be(e,t,v,a,l,null));return;case"dialog":se("beforetoggle",e),se("toggle",e),se("cancel",e),se("close",e);break;case"iframe":case"object":se("load",e);break;case"video":case"audio":for(a=0;a<An.length;a++)se(An[a],e);break;case"image":se("error",e),se("load",e);break;case"details":se("toggle",e);break;case"embed":case"source":case"link":se("error",e),se("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:be(e,t,C,a,l,null)}return;default:if(Du(t)){for(_ in l)l.hasOwnProperty(_)&&(a=l[_],a!==void 0&&pc(e,t,_,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&be(e,t,d,a,l,null))}function kh(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,d=null,v=null,C=null,_=null;for(R in l){var U=l[R];if(l.hasOwnProperty(R)&&U!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":v=U;default:a.hasOwnProperty(R)||be(e,t,R,null,a,U)}}for(var M in a){var R=a[M];if(U=l[M],a.hasOwnProperty(M)&&(R!=null||U!=null))switch(M){case"type":i=R;break;case"name":n=R;break;case"checked":C=R;break;case"defaultChecked":_=R;break;case"value":c=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:R!==U&&be(e,t,M,R,a,U)}}_u(e,c,d,v,C,_,i,n);return;case"select":R=c=d=M=null;for(i in l)if(v=l[i],l.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":R=v;default:a.hasOwnProperty(i)||be(e,t,i,null,a,v)}for(n in a)if(i=a[n],v=l[n],a.hasOwnProperty(n)&&(i!=null||v!=null))switch(n){case"value":M=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==v&&be(e,t,n,i,a,v)}t=d,l=c,a=R,M!=null?ua(e,!!l,M,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":R=M=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:be(e,t,d,null,a,n)}for(c in a)if(n=a[c],i=l[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":M=n;break;case"defaultValue":R=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&be(e,t,c,n,a,i)}Er(e,M,R);return;case"option":for(var Z in l)M=l[Z],l.hasOwnProperty(Z)&&M!=null&&!a.hasOwnProperty(Z)&&(Z==="selected"?e.selected=!1:be(e,t,Z,null,a,M));for(v in a)M=a[v],R=l[v],a.hasOwnProperty(v)&&M!==R&&(M!=null||R!=null)&&(v==="selected"?e.selected=M&&typeof M!="function"&&typeof M!="symbol":be(e,t,v,M,a,R));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var W in l)M=l[W],l.hasOwnProperty(W)&&M!=null&&!a.hasOwnProperty(W)&&be(e,t,W,null,a,M);for(C in a)if(M=a[C],R=l[C],a.hasOwnProperty(C)&&M!==R&&(M!=null||R!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:be(e,t,C,M,a,R)}return;default:if(Du(t)){for(var je in l)M=l[je],l.hasOwnProperty(je)&&M!==void 0&&!a.hasOwnProperty(je)&&pc(e,t,je,void 0,a,M);for(_ in a)M=a[_],R=l[_],!a.hasOwnProperty(_)||M===R||M===void 0&&R===void 0||pc(e,t,_,M,a,R);return}}for(var E in l)M=l[E],l.hasOwnProperty(E)&&M!=null&&!a.hasOwnProperty(E)&&be(e,t,E,null,a,M);for(U in a)M=a[U],R=l[U],!a.hasOwnProperty(U)||M===R||M==null&&R==null||be(e,t,U,M,a,R)}function Rd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Wh(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,c=n.initiatorType,d=n.duration;if(i&&d&&Rd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var v=l[a],C=v.startTime;if(C>d)break;var _=v.transferSize,U=v.initiatorType;_&&Rd(U)&&(v=v.responseEnd,c+=_*(v<d?1:(d-C)/(v-C)))}if(--a,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var bc=null,jc=null;function Wi(e){return e.nodeType===9?e:e.ownerDocument}function _d(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Od(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Sc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nc=null;function Fh(){var e=window.event;return e&&e.type==="popstate"?e===Nc?!1:(Nc=e,!0):(Nc=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Ph=typeof clearTimeout=="function"?clearTimeout:void 0,Ud=typeof Promise=="function"?Promise:void 0,Ih=typeof queueMicrotask=="function"?queueMicrotask:typeof Ud<"u"?function(e){return Ud.resolve(null).then(e).catch(ex)}:Dd;function ex(e){setTimeout(function(){throw e})}function zl(e){return e==="head"}function wd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),La(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Cn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Cn(l);for(var i=l.firstChild;i;){var c=i.nextSibling,d=i.nodeName;i[Za]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Cn(e.ownerDocument.body);l=n}while(l);La(t)}function Hd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Ec(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ec(l),Mu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function tx(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Za])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=zt(e.nextSibling),e===null)break}return null}function lx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=zt(e.nextSibling),e===null))return null;return e}function Bd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function Tc(e){return e.data==="$?"||e.data==="$~"}function Ac(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ax(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zc=null;function Ld(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return zt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function qd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Yd(e,t,l){switch(t=Wi(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Cn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Mu(e)}var Ct=new Map,Gd=new Set;function Fi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var il=G.d;G.d={f:nx,r:ix,D:ux,C:sx,L:cx,m:rx,X:fx,S:ox,M:dx};function nx(){var e=il.f(),t=Xi();return e||t}function ix(e){var t=aa(e);t!==null&&t.tag===5&&t.type==="form"?af(t):il.r(e)}var wa=typeof document>"u"?null:document;function Xd(e,t,l){var a=wa;if(a&&typeof t=="string"&&t){var n=bt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Gd.has(n)||(Gd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),$e(t,"link",e),Xe(t),a.head.appendChild(t)))}}function ux(e){il.D(e),Xd("dns-prefetch",e,null)}function sx(e,t){il.C(e,t),Xd("preconnect",e,t)}function cx(e,t,l){il.L(e,t,l);var a=wa;if(a&&e&&t){var n='link[rel="preload"][as="'+bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+bt(l.imageSizes)+'"]')):n+='[href="'+bt(e)+'"]';var i=n;switch(t){case"style":i=Ha(e);break;case"script":i=Ba(e)}Ct.has(i)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ct.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Mn(i))||t==="script"&&a.querySelector(Rn(i))||(t=a.createElement("link"),$e(t,"link",e),Xe(t),a.head.appendChild(t)))}}function rx(e,t){il.m(e,t);var l=wa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+bt(a)+'"][href="'+bt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ba(e)}if(!Ct.has(i)&&(e=y({rel:"modulepreload",href:e},t),Ct.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Rn(i)))return}a=l.createElement("link"),$e(a,"link",e),Xe(a),l.head.appendChild(a)}}}function ox(e,t,l){il.S(e,t,l);var a=wa;if(a&&e){var n=na(a).hoistableStyles,i=Ha(e);t=t||"default";var c=n.get(i);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Mn(i)))d.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ct.get(i))&&Cc(e,l);var v=c=a.createElement("link");Xe(v),$e(v,"link",e),v._p=new Promise(function(C,_){v.onload=C,v.onerror=_}),v.addEventListener("load",function(){d.loading|=1}),v.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Pi(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(i,c)}}}function fx(e,t){il.X(e,t);var l=wa;if(l&&e){var a=na(l).hoistableScripts,n=Ba(e),i=a.get(n);i||(i=l.querySelector(Rn(n)),i||(e=y({src:e,async:!0},t),(t=Ct.get(n))&&Mc(e,t),i=l.createElement("script"),Xe(i),$e(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function dx(e,t){il.M(e,t);var l=wa;if(l&&e){var a=na(l).hoistableScripts,n=Ba(e),i=a.get(n);i||(i=l.querySelector(Rn(n)),i||(e=y({src:e,async:!0,type:"module"},t),(t=Ct.get(n))&&Mc(e,t),i=l.createElement("script"),Xe(i),$e(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Qd(e,t,l,a){var n=(n=ie.current)?Fi(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=na(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ha(l.href);var i=na(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(Mn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Ct.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ct.set(e,l),i||mx(n,e,l,c.state))),t&&a===null)throw Error(o(528,""));return c}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ba(l),l=na(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ha(e){return'href="'+bt(e)+'"'}function Mn(e){return'link[rel="stylesheet"]['+e+"]"}function Vd(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function mx(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),$e(t,"link",l),Xe(t),e.head.appendChild(t))}function Ba(e){return'[src="'+bt(e)+'"]'}function Rn(e){return"script[async]"+e}function Zd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+bt(l.href)+'"]');if(a)return t.instance=a,Xe(a),a;var n=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Xe(a),$e(a,"style",n),Pi(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var i=e.querySelector(Mn(n));if(i)return t.state.loading|=4,t.instance=i,Xe(i),i;a=Vd(l),(n=Ct.get(n))&&Cc(a,n),i=(e.ownerDocument||e).createElement("link"),Xe(i);var c=i;return c._p=new Promise(function(d,v){c.onload=d,c.onerror=v}),$e(i,"link",a),t.state.loading|=4,Pi(i,l.precedence,e),t.instance=i;case"script":return i=Ba(l.src),(n=e.querySelector(Rn(i)))?(t.instance=n,Xe(n),n):(a=l,(n=Ct.get(i))&&(a=y({},l),Mc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Xe(n),$e(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pi(a,l.precedence,e));return t.instance}function Pi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ii=null;function Kd(e,t,l){if(Ii===null){var a=new Map,n=Ii=new Map;n.set(l,a)}else n=Ii,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Za]||i[Ve]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(i):a.set(c,[i])}}return a}function Jd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function hx(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $d(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xx(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ha(a.href),i=t.querySelector(Mn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=eu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Xe(i);return}i=t.ownerDocument||t,a=Vd(a),(n=Ct.get(n))&&Cc(a,n),i=i.createElement("link"),Xe(i);var c=i;c._p=new Promise(function(d,v){c.onload=d,c.onerror=v}),$e(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=eu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Rc=0;function gx(e,t){return e.stylesheets&&e.count===0&&lu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&lu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Rc===0&&(Rc=62500*Wh());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Rc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tu=null;function lu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tu=new Map,t.forEach(yx,e),tu=null,eu.call(e))}function yx(e,t){if(!(t.state.loading&4)){var l=tu.get(e);if(l)var a=l.get(null);else{l=new Map,tu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,n),l.set(c,n),this.count++,a=eu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var _n={$$typeof:H,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function vx(e,t,l,a,n,i,c,d,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tu(0),this.hiddenUpdates=Tu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function kd(e,t,l,a,n,i,c,d,v,C,_,U){return e=new vx(e,t,l,c,v,C,_,U,d),t=1,i===!0&&(t|=24),i=ft(3,null,null,t),e.current=i,i.stateNode=e,t=rs(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},ms(i),e}function Wd(e){return e?(e=ha,e):ha}function Fd(e,t,l,a,n,i){n=Wd(n),a.context===null?a.context=n:a.pendingContext=n,a=gl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=yl(e,a,t),l!==null&&(ut(l,e,t),rn(l,e,t))}function Pd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function _c(e,t){Pd(e,t),(e=e.alternate)&&Pd(e,t)}function Id(e){if(e.tag===13||e.tag===31){var t=Xl(e,67108864);t!==null&&ut(t,e,67108864),_c(e,67108864)}}function e0(e){if(e.tag===13||e.tag===31){var t=gt();t=Au(t);var l=Xl(e,t);l!==null&&ut(l,e,t),_c(e,t)}}var au=!0;function px(e,t,l,a){var n=O.T;O.T=null;var i=G.p;try{G.p=2,Oc(e,t,l,a)}finally{G.p=i,O.T=n}}function bx(e,t,l,a){var n=O.T;O.T=null;var i=G.p;try{G.p=8,Oc(e,t,l,a)}finally{G.p=i,O.T=n}}function Oc(e,t,l,a){if(au){var n=Dc(a);if(n===null)vc(e,t,a,nu,l),l0(e,a);else if(Sx(n,e,t,l,a))a.stopPropagation();else if(l0(e,a),t&4&&-1<jx.indexOf(e)){for(;n!==null;){var i=aa(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Bl(i.pendingLanes);if(c!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var v=1<<31-rt(c);d.entanglements[1]|=v,c&=~v}qt(i),(he&6)===0&&(Yi=st()+500,Tn(0))}}break;case 31:case 13:d=Xl(i,2),d!==null&&ut(d,i,2),Xi(),_c(i,2)}if(i=Dc(a),i===null&&vc(e,t,a,nu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else vc(e,t,a,null,l)}}function Dc(e){return e=wu(e),Uc(e)}var nu=null;function Uc(e){if(nu=null,e=la(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===31){if(e=j(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nu=e,null}function t0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(um()){case sr:return 2;case cr:return 8;case Jn:case sm:return 32;case rr:return 268435456;default:return 32}default:return 32}}var wc=!1,Cl=null,Ml=null,Rl=null,On=new Map,Dn=new Map,_l=[],jx="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 l0(e,t){switch(e){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":On.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dn.delete(t.pointerId)}}function Un(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=aa(t),t!==null&&Id(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Sx(e,t,l,a,n){switch(t){case"focusin":return Cl=Un(Cl,e,t,l,a,n),!0;case"dragenter":return Ml=Un(Ml,e,t,l,a,n),!0;case"mouseover":return Rl=Un(Rl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return On.set(i,Un(On.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Dn.set(i,Un(Dn.get(i)||null,e,t,l,a,n)),!0}return!1}function a0(e){var t=la(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,xr(e.priority,function(){e0(l)});return}}else if(t===31){if(t=j(l),t!==null){e.blockedOn=t,xr(e.priority,function(){e0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function iu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Dc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Uu=a,l.target.dispatchEvent(a),Uu=null}else return t=aa(l),t!==null&&Id(t),e.blockedOn=l,!1;t.shift()}return!0}function n0(e,t,l){iu(e)&&l.delete(t)}function Nx(){wc=!1,Cl!==null&&iu(Cl)&&(Cl=null),Ml!==null&&iu(Ml)&&(Ml=null),Rl!==null&&iu(Rl)&&(Rl=null),On.forEach(n0),Dn.forEach(n0)}function uu(e,t){e.blockedOn===t&&(e.blockedOn=null,wc||(wc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Nx)))}var su=null;function i0(e){su!==e&&(su=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){su===e&&(su=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Uc(a||l)===null)continue;break}var i=aa(l);i!==null&&(e.splice(t,3),t-=3,Ds(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function La(e){function t(v){return uu(v,e)}Cl!==null&&uu(Cl,e),Ml!==null&&uu(Ml,e),Rl!==null&&uu(Rl,e),On.forEach(t),Dn.forEach(t);for(var l=0;l<_l.length;l++){var a=_l[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_l.length&&(l=_l[0],l.blockedOn===null);)a0(l),l.blockedOn===null&&_l.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],c=n[et]||null;if(typeof i=="function")c||i0(l);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[et]||null)d=c.formAction;else if(Uc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),i0(l)}}}function u0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Hc(e){this._internalRoot=e}cu.prototype.render=Hc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=gt();Fd(l,a,e,t,null,null)},cu.prototype.unmount=Hc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fd(e.current,2,null,e,null,null),Xi(),t[ta]=null}};function cu(e){this._internalRoot=e}cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=hr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<_l.length&&t!==0&&t<_l[l].priority;l++);_l.splice(l,0,e),l===0&&a0(e)}};var s0=f.version;if(s0!=="19.2.4")throw Error(o(527,s0,"19.2.4"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Ex={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{Xa=ru.inject(Ex),ct=ru}catch{}}return Hn.createRoot=function(e,t){if(!m(e))throw Error(o(299));var l=!1,a="",n=hf,i=xf,c=gf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=kd(e,1,!1,null,null,l,a,null,n,i,c,u0),e[ta]=t.current,yc(e),new Hc(t)},Hn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(o(299));var a=!1,n="",i=hf,c=xf,d=gf,v=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),t=kd(e,1,!0,t,l??null,a,n,v,i,c,d,u0),t.context=Wd(null),l=t.current,a=gt(),a=Au(a),n=gl(a),n.callback=null,yl(l,n,a),l=a,t.current.lanes=l,Va(t,l),qt(t),e[ta]=t.current,yc(e),new cu(t)},Hn.version="19.2.4",Hn}var y0;function Ux(){if(y0)return qc.exports;y0=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(f){console.error(f)}}return s(),qc.exports=Dx(),qc.exports}var wx=Ux();var v0="popstate";function Hx(s={}){function f(o,m){let{pathname:h,search:x,hash:j}=o.location;return Jc("",{pathname:h,search:x,hash:j},m.state&&m.state.usr||null,m.state&&m.state.key||"default")}function r(o,m){return typeof m=="string"?m:Yn(m)}return Lx(f,r,null,s)}function Me(s,f){if(s===!1||s===null||typeof s>"u")throw new Error(f)}function Ut(s,f){if(!s){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function Bx(){return Math.random().toString(36).substring(2,10)}function p0(s,f){return{usr:s.state,key:s.key,idx:f}}function Jc(s,f,r=null,o){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof f=="string"?qa(f):f,state:r,key:f&&f.key||o||Bx()}}function Yn({pathname:s="/",search:f="",hash:r=""}){return f&&f!=="?"&&(s+=f.charAt(0)==="?"?f:"?"+f),r&&r!=="#"&&(s+=r.charAt(0)==="#"?r:"#"+r),s}function qa(s){let f={};if(s){let r=s.indexOf("#");r>=0&&(f.hash=s.substring(r),s=s.substring(0,r));let o=s.indexOf("?");o>=0&&(f.search=s.substring(o),s=s.substring(0,o)),s&&(f.pathname=s)}return f}function Lx(s,f,r,o={}){let{window:m=document.defaultView,v5Compat:h=!1}=o,x=m.history,j="POP",p=null,g=S();g==null&&(g=0,x.replaceState({...x.state,idx:g},""));function S(){return(x.state||{idx:null}).idx}function y(){j="POP";let Y=S(),q=Y==null?null:Y-g;g=Y,p&&p({action:j,location:L.location,delta:q})}function T(Y,q){j="PUSH";let X=Jc(L.location,Y,q);g=S()+1;let H=p0(X,g),$=L.createHref(X);try{x.pushState(H,"",$)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;m.location.assign($)}h&&p&&p({action:j,location:L.location,delta:1})}function B(Y,q){j="REPLACE";let X=Jc(L.location,Y,q);g=S();let H=p0(X,g),$=L.createHref(X);x.replaceState(H,"",$),h&&p&&p({action:j,location:L.location,delta:0})}function V(Y){return qx(Y)}let L={get action(){return j},get location(){return s(m,x)},listen(Y){if(p)throw new Error("A history only accepts one active listener");return m.addEventListener(v0,y),p=Y,()=>{m.removeEventListener(v0,y),p=null}},createHref(Y){return f(m,Y)},createURL:V,encodeLocation(Y){let q=V(Y);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:T,replace:B,go(Y){return x.go(Y)}};return L}function qx(s,f=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Me(r,"No window.location.(origin|href) available to create URL");let o=typeof s=="string"?s:Yn(s);return o=o.replace(/ $/,"%20"),!f&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function M0(s,f,r="/"){return Yx(s,f,r,!1)}function Yx(s,f,r,o){let m=typeof f=="string"?qa(f):f,h=sl(m.pathname||"/",r);if(h==null)return null;let x=R0(s);Gx(x);let j=null;for(let p=0;j==null&&p<x.length;++p){let g=Px(h);j=Wx(x[p],g,o)}return j}function R0(s,f=[],r=[],o="",m=!1){let h=(x,j,p=m,g)=>{let S={relativePath:g===void 0?x.path||"":g,caseSensitive:x.caseSensitive===!0,childrenIndex:j,route:x};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(o)&&p)return;Me(S.relativePath.startsWith(o),`Absolute route path "${S.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(o.length)}let y=ul([o,S.relativePath]),T=r.concat(S);x.children&&x.children.length>0&&(Me(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),R0(x.children,f,T,y,p)),!(x.path==null&&!x.index)&&f.push({path:y,score:$x(y,x.index),routesMeta:T})};return s.forEach((x,j)=>{if(x.path===""||!x.path?.includes("?"))h(x,j);else for(let p of _0(x.path))h(x,j,!0,p)}),f}function _0(s){let f=s.split("/");if(f.length===0)return[];let[r,...o]=f,m=r.endsWith("?"),h=r.replace(/\?$/,"");if(o.length===0)return m?[h,""]:[h];let x=_0(o.join("/")),j=[];return j.push(...x.map(p=>p===""?h:[h,p].join("/"))),m&&j.push(...x),j.map(p=>s.startsWith("/")&&p===""?"/":p)}function Gx(s){s.sort((f,r)=>f.score!==r.score?r.score-f.score:kx(f.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var Xx=/^:[\w-]+$/,Qx=3,Vx=2,Zx=1,Kx=10,Jx=-2,b0=s=>s==="*";function $x(s,f){let r=s.split("/"),o=r.length;return r.some(b0)&&(o+=Jx),f&&(o+=Vx),r.filter(m=>!b0(m)).reduce((m,h)=>m+(Xx.test(h)?Qx:h===""?Zx:Kx),o)}function kx(s,f){return s.length===f.length&&s.slice(0,-1).every((o,m)=>o===f[m])?s[s.length-1]-f[f.length-1]:0}function Wx(s,f,r=!1){let{routesMeta:o}=s,m={},h="/",x=[];for(let j=0;j<o.length;++j){let p=o[j],g=j===o.length-1,S=h==="/"?f:f.slice(h.length)||"/",y=hu({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},S),T=p.route;if(!y&&g&&r&&!o[o.length-1].route.index&&(y=hu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},S)),!y)return null;Object.assign(m,y.params),x.push({params:m,pathname:ul([h,y.pathname]),pathnameBase:lg(ul([h,y.pathnameBase])),route:T}),y.pathnameBase!=="/"&&(h=ul([h,y.pathnameBase]))}return x}function hu(s,f){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[r,o]=Fx(s.path,s.caseSensitive,s.end),m=f.match(r);if(!m)return null;let h=m[0],x=h.replace(/(.)\/+$/,"$1"),j=m.slice(1);return{params:o.reduce((g,{paramName:S,isOptional:y},T)=>{if(S==="*"){let V=j[T]||"";x=h.slice(0,h.length-V.length).replace(/(.)\/+$/,"$1")}const B=j[T];return y&&!B?g[S]=void 0:g[S]=(B||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:x,pattern:s}}function Fx(s,f=!1,r=!0){Ut(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let o=[],m="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,j,p)=>(o.push({paramName:j,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(o.push({paramName:"*"}),m+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?m+="\\/*$":s!==""&&s!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,f?void 0:"i"),o]}function Px(s){try{return s.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Ut(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),s}}function sl(s,f){if(f==="/")return s;if(!s.toLowerCase().startsWith(f.toLowerCase()))return null;let r=f.endsWith("/")?f.length-1:f.length,o=s.charAt(r);return o&&o!=="/"?null:s.slice(r)||"/"}var Ix=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function eg(s,f="/"){let{pathname:r,search:o="",hash:m=""}=typeof s=="string"?qa(s):s,h;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?h=j0(r.substring(1),"/"):h=j0(r,f)):h=f,{pathname:h,search:ag(o),hash:ng(m)}}function j0(s,f){let r=f.replace(/\/+$/,"").split("/");return s.split("/").forEach(m=>{m===".."?r.length>1&&r.pop():m!=="."&&r.push(m)}),r.length>1?r.join("/"):"/"}function Qc(s,f,r,o){return`Cannot include a '${s}' character in a manually specified \`to.${f}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function tg(s){return s.filter((f,r)=>r===0||f.route.path&&f.route.path.length>0)}function O0(s){let f=tg(s);return f.map((r,o)=>o===f.length-1?r.pathname:r.pathnameBase)}function D0(s,f,r,o=!1){let m;typeof s=="string"?m=qa(s):(m={...s},Me(!m.pathname||!m.pathname.includes("?"),Qc("?","pathname","search",m)),Me(!m.pathname||!m.pathname.includes("#"),Qc("#","pathname","hash",m)),Me(!m.search||!m.search.includes("#"),Qc("#","search","hash",m)));let h=s===""||m.pathname==="",x=h?"/":m.pathname,j;if(x==null)j=r;else{let y=f.length-1;if(!o&&x.startsWith("..")){let T=x.split("/");for(;T[0]==="..";)T.shift(),y-=1;m.pathname=T.join("/")}j=y>=0?f[y]:"/"}let p=eg(m,j),g=x&&x!=="/"&&x.endsWith("/"),S=(h||x===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||S)&&(p.pathname+="/"),p}var ul=s=>s.join("/").replace(/\/\/+/g,"/"),lg=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),ag=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,ng=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,ig=class{constructor(s,f,r,o=!1){this.status=s,this.statusText=f||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ug(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function sg(s){return s.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var U0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function w0(s,f){let r=s;if(typeof r!="string"||!Ix.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,m=!1;if(U0)try{let h=new URL(window.location.href),x=r.startsWith("//")?new URL(h.protocol+r):new URL(r),j=sl(x.pathname,f);x.origin===h.origin&&j!=null?r=j+x.search+x.hash:m=!0}catch{Ut(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:m,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var H0=["POST","PUT","PATCH","DELETE"];new Set(H0);var cg=["GET",...H0];new Set(cg);var Ya=A.createContext(null);Ya.displayName="DataRouter";var xu=A.createContext(null);xu.displayName="DataRouterState";var rg=A.createContext(!1),B0=A.createContext({isTransitioning:!1});B0.displayName="ViewTransition";var og=A.createContext(new Map);og.displayName="Fetchers";var fg=A.createContext(null);fg.displayName="Await";var Mt=A.createContext(null);Mt.displayName="Navigation";var Gn=A.createContext(null);Gn.displayName="Location";var Yt=A.createContext({outlet:null,matches:[],isDataRoute:!1});Yt.displayName="Route";var Fc=A.createContext(null);Fc.displayName="RouteError";var L0="REACT_ROUTER_ERROR",dg="REDIRECT",mg="ROUTE_ERROR_RESPONSE";function hg(s){if(s.startsWith(`${L0}:${dg}:{`))try{let f=JSON.parse(s.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function xg(s){if(s.startsWith(`${L0}:${mg}:{`))try{let f=JSON.parse(s.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new ig(f.status,f.statusText,f.data)}catch{}}function gg(s,{relative:f}={}){Me(Xn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=A.useContext(Mt),{hash:m,pathname:h,search:x}=Qn(s,{relative:f}),j=h;return r!=="/"&&(j=h==="/"?r:ul([r,h])),o.createHref({pathname:j,search:x,hash:m})}function Xn(){return A.useContext(Gn)!=null}function Ul(){return Me(Xn(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Gn).location}var q0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Y0(s){A.useContext(Mt).static||A.useLayoutEffect(s)}function Pc(){let{isDataRoute:s}=A.useContext(Yt);return s?Rg():yg()}function yg(){Me(Xn(),"useNavigate() may be used only in the context of a <Router> component.");let s=A.useContext(Ya),{basename:f,navigator:r}=A.useContext(Mt),{matches:o}=A.useContext(Yt),{pathname:m}=Ul(),h=JSON.stringify(O0(o)),x=A.useRef(!1);return Y0(()=>{x.current=!0}),A.useCallback((p,g={})=>{if(Ut(x.current,q0),!x.current)return;if(typeof p=="number"){r.go(p);return}let S=D0(p,JSON.parse(h),m,g.relative==="path");s==null&&f!=="/"&&(S.pathname=S.pathname==="/"?f:ul([f,S.pathname])),(g.replace?r.replace:r.push)(S,g.state,g)},[f,r,h,m,s])}A.createContext(null);function vg(){let{matches:s}=A.useContext(Yt),f=s[s.length-1];return f?f.params:{}}function Qn(s,{relative:f}={}){let{matches:r}=A.useContext(Yt),{pathname:o}=Ul(),m=JSON.stringify(O0(r));return A.useMemo(()=>D0(s,JSON.parse(m),o,f==="path"),[s,m,o,f])}function pg(s,f){return G0(s,f)}function G0(s,f,r,o,m){Me(Xn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=A.useContext(Mt),{matches:x}=A.useContext(Yt),j=x[x.length-1],p=j?j.params:{},g=j?j.pathname:"/",S=j?j.pathnameBase:"/",y=j&&j.route;{let X=y&&y.path||"";Q0(g,!y||X.endsWith("*")||X.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${X}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
-
11
- Please change the parent <Route path="${X}"> to <Route path="${X==="/"?"*":`${X}/*`}">.`)}let T=Ul(),B;if(f){let X=typeof f=="string"?qa(f):f;Me(S==="/"||X.pathname?.startsWith(S),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${X.pathname}" was given in the \`location\` prop.`),B=X}else B=T;let V=B.pathname||"/",L=V;if(S!=="/"){let X=S.replace(/^\//,"").split("/");L="/"+V.replace(/^\//,"").split("/").slice(X.length).join("/")}let Y=M0(s,{pathname:L});Ut(y||Y!=null,`No routes matched location "${B.pathname}${B.search}${B.hash}" `),Ut(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${B.pathname}${B.search}${B.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let q=Eg(Y&&Y.map(X=>Object.assign({},X,{params:Object.assign({},p,X.params),pathname:ul([S,h.encodeLocation?h.encodeLocation(X.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathname]),pathnameBase:X.pathnameBase==="/"?S:ul([S,h.encodeLocation?h.encodeLocation(X.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathnameBase])})),x,r,o,m);return f&&q?A.createElement(Gn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...B},navigationType:"POP"}},q):q}function bg(){let s=Mg(),f=ug(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),r=s instanceof Error?s.stack:null,o="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},x=null;return console.error("Error handled by React Router default ErrorBoundary:",s),x=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:h},"ErrorBoundary")," or"," ",A.createElement("code",{style:h},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},f),r?A.createElement("pre",{style:m},r):null,x)}var jg=A.createElement(bg,null),X0=class extends A.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,f){return f.location!==s.location||f.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:f.error,location:f.location,revalidation:s.revalidation||f.revalidation}}componentDidCatch(s,f){this.props.onError?this.props.onError(s,f):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const r=xg(s.digest);r&&(s=r)}let f=s!==void 0?A.createElement(Yt.Provider,{value:this.props.routeContext},A.createElement(Fc.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?A.createElement(Sg,{error:s},f):f}};X0.contextType=rg;var Vc=new WeakMap;function Sg({children:s,error:f}){let{basename:r}=A.useContext(Mt);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let o=hg(f.digest);if(o){let m=Vc.get(f);if(m)throw m;let h=w0(o.location,r);if(U0&&!Vc.get(f))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw Vc.set(f,x),x}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return s}function Ng({routeContext:s,match:f,children:r}){let o=A.useContext(Ya);return o&&o.static&&o.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=f.route.id),A.createElement(Yt.Provider,{value:s},r)}function Eg(s,f=[],r=null,o=null,m=null){if(s==null){if(!r)return null;if(r.errors)s=r.matches;else if(f.length===0&&!r.initialized&&r.matches.length>0)s=r.matches;else return null}let h=s,x=r?.errors;if(x!=null){let S=h.findIndex(y=>y.route.id&&x?.[y.route.id]!==void 0);Me(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(x).join(",")}`),h=h.slice(0,Math.min(h.length,S+1))}let j=!1,p=-1;if(r)for(let S=0;S<h.length;S++){let y=h[S];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=S),y.route.id){let{loaderData:T,errors:B}=r,V=y.route.loader&&!T.hasOwnProperty(y.route.id)&&(!B||B[y.route.id]===void 0);if(y.route.lazy||V){j=!0,p>=0?h=h.slice(0,p+1):h=[h[0]];break}}}let g=r&&o?(S,y)=>{o(S,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:sg(r.matches),errorInfo:y})}:void 0;return h.reduceRight((S,y,T)=>{let B,V=!1,L=null,Y=null;r&&(B=x&&y.route.id?x[y.route.id]:void 0,L=y.route.errorElement||jg,j&&(p<0&&T===0?(Q0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),V=!0,Y=null):p===T&&(V=!0,Y=y.route.hydrateFallbackElement||null)));let q=f.concat(h.slice(0,T+1)),X=()=>{let H;return B?H=L:V?H=Y:y.route.Component?H=A.createElement(y.route.Component,null):y.route.element?H=y.route.element:H=S,A.createElement(Ng,{match:y,routeContext:{outlet:S,matches:q,isDataRoute:r!=null},children:H})};return r&&(y.route.ErrorBoundary||y.route.errorElement||T===0)?A.createElement(X0,{location:r.location,revalidation:r.revalidation,component:L,error:B,children:X(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:g}):X()},null)}function Ic(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tg(s){let f=A.useContext(Ya);return Me(f,Ic(s)),f}function Ag(s){let f=A.useContext(xu);return Me(f,Ic(s)),f}function zg(s){let f=A.useContext(Yt);return Me(f,Ic(s)),f}function er(s){let f=zg(s),r=f.matches[f.matches.length-1];return Me(r.route.id,`${s} can only be used on routes that contain a unique "id"`),r.route.id}function Cg(){return er("useRouteId")}function Mg(){let s=A.useContext(Fc),f=Ag("useRouteError"),r=er("useRouteError");return s!==void 0?s:f.errors?.[r]}function Rg(){let{router:s}=Tg("useNavigate"),f=er("useNavigate"),r=A.useRef(!1);return Y0(()=>{r.current=!0}),A.useCallback(async(m,h={})=>{Ut(r.current,q0),r.current&&(typeof m=="number"?await s.navigate(m):await s.navigate(m,{fromRouteId:f,...h}))},[s,f])}var S0={};function Q0(s,f,r){!f&&!S0[s]&&(S0[s]=!0,Ut(!1,r))}A.memo(_g);function _g({routes:s,future:f,state:r,onError:o}){return G0(s,void 0,r,o,f)}function Pe(s){Me(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Og({basename:s="/",children:f=null,location:r,navigationType:o="POP",navigator:m,static:h=!1,unstable_useTransitions:x}){Me(!Xn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let j=s.replace(/^\/*/,"/"),p=A.useMemo(()=>({basename:j,navigator:m,static:h,unstable_useTransitions:x,future:{}}),[j,m,h,x]);typeof r=="string"&&(r=qa(r));let{pathname:g="/",search:S="",hash:y="",state:T=null,key:B="default"}=r,V=A.useMemo(()=>{let L=sl(g,j);return L==null?null:{location:{pathname:L,search:S,hash:y,state:T,key:B},navigationType:o}},[j,g,S,y,T,B,o]);return Ut(V!=null,`<Router basename="${j}"> is not able to match the URL "${g}${S}${y}" because it does not start with the basename, so the <Router> won't render anything.`),V==null?null:A.createElement(Mt.Provider,{value:p},A.createElement(Gn.Provider,{children:f,value:V}))}function Dg({children:s,location:f}){return pg($c(s),f)}function $c(s,f=[]){let r=[];return A.Children.forEach(s,(o,m)=>{if(!A.isValidElement(o))return;let h=[...f,m];if(o.type===A.Fragment){r.push.apply(r,$c(o.props.children,h));return}Me(o.type===Pe,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Me(!o.props.index||!o.props.children,"An index route cannot have child routes.");let x={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(x.children=$c(o.props.children,h)),r.push(x)}),r}var du="get",mu="application/x-www-form-urlencoded";function gu(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function Ug(s){return gu(s)&&s.tagName.toLowerCase()==="button"}function wg(s){return gu(s)&&s.tagName.toLowerCase()==="form"}function Hg(s){return gu(s)&&s.tagName.toLowerCase()==="input"}function Bg(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function Lg(s,f){return s.button===0&&(!f||f==="_self")&&!Bg(s)}function kc(s=""){return new URLSearchParams(typeof s=="string"||Array.isArray(s)||s instanceof URLSearchParams?s:Object.keys(s).reduce((f,r)=>{let o=s[r];return f.concat(Array.isArray(o)?o.map(m=>[r,m]):[[r,o]])},[]))}function qg(s,f){let r=kc(s);return f&&f.forEach((o,m)=>{r.has(m)||f.getAll(m).forEach(h=>{r.append(m,h)})}),r}var ou=null;function Yg(){if(ou===null)try{new FormData(document.createElement("form"),0),ou=!1}catch{ou=!0}return ou}var Gg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zc(s){return s!=null&&!Gg.has(s)?(Ut(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${mu}"`),null):s}function Xg(s,f){let r,o,m,h,x;if(wg(s)){let j=s.getAttribute("action");o=j?sl(j,f):null,r=s.getAttribute("method")||du,m=Zc(s.getAttribute("enctype"))||mu,h=new FormData(s)}else if(Ug(s)||Hg(s)&&(s.type==="submit"||s.type==="image")){let j=s.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=s.getAttribute("formaction")||j.getAttribute("action");if(o=p?sl(p,f):null,r=s.getAttribute("formmethod")||j.getAttribute("method")||du,m=Zc(s.getAttribute("formenctype"))||Zc(j.getAttribute("enctype"))||mu,h=new FormData(j,s),!Yg()){let{name:g,type:S,value:y}=s;if(S==="image"){let T=g?`${g}.`:"";h.append(`${T}x`,"0"),h.append(`${T}y`,"0")}else g&&h.append(g,y)}}else{if(gu(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=du,o=null,m=mu,x=s}return h&&m==="text/plain"&&(x=h,h=void 0),{action:o,method:r.toLowerCase(),encType:m,formData:h,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tr(s,f){if(s===!1||s===null||typeof s>"u")throw new Error(f)}function Qg(s,f,r,o){let m=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return r?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${o}`:m.pathname=`${m.pathname}.${o}`:m.pathname==="/"?m.pathname=`_root.${o}`:f&&sl(m.pathname,f)==="/"?m.pathname=`${f.replace(/\/$/,"")}/_root.${o}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${o}`,m}async function Vg(s,f){if(s.id in f)return f[s.id];try{let r=await import(s.module);return f[s.id]=r,r}catch(r){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zg(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function Kg(s,f,r){let o=await Promise.all(s.map(async m=>{let h=f.routes[m.route.id];if(h){let x=await Vg(h,r);return x.links?x.links():[]}return[]}));return Wg(o.flat(1).filter(Zg).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function N0(s,f,r,o,m,h){let x=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,j=(p,g)=>r[g].pathname!==p.pathname||r[g].route.path?.endsWith("*")&&r[g].params["*"]!==p.params["*"];return h==="assets"?f.filter((p,g)=>x(p,g)||j(p,g)):h==="data"?f.filter((p,g)=>{let S=o.routes[p.route.id];if(!S||!S.hasLoader)return!1;if(x(p,g)||j(p,g))return!0;if(p.route.shouldRevalidate){let y=p.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Jg(s,f,{includeHydrateFallback:r}={}){return $g(s.map(o=>{let m=f.routes[o.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),r&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function $g(s){return[...new Set(s)]}function kg(s){let f={},r=Object.keys(s).sort();for(let o of r)f[o]=s[o];return f}function Wg(s,f){let r=new Set;return new Set(f),s.reduce((o,m)=>{let h=JSON.stringify(kg(m));return r.has(h)||(r.add(h),o.push({key:h,link:m})),o},[])}function V0(){let s=A.useContext(Ya);return tr(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function Fg(){let s=A.useContext(xu);return tr(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var lr=A.createContext(void 0);lr.displayName="FrameworkContext";function Z0(){let s=A.useContext(lr);return tr(s,"You must render this element inside a <HydratedRouter> element"),s}function Pg(s,f){let r=A.useContext(lr),[o,m]=A.useState(!1),[h,x]=A.useState(!1),{onFocus:j,onBlur:p,onMouseEnter:g,onMouseLeave:S,onTouchStart:y}=f,T=A.useRef(null);A.useEffect(()=>{if(s==="render"&&x(!0),s==="viewport"){let L=q=>{q.forEach(X=>{x(X.isIntersecting)})},Y=new IntersectionObserver(L,{threshold:.5});return T.current&&Y.observe(T.current),()=>{Y.disconnect()}}},[s]),A.useEffect(()=>{if(o){let L=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(L)}}},[o]);let B=()=>{m(!0)},V=()=>{m(!1),x(!1)};return r?s!=="intent"?[h,T,{}]:[h,T,{onFocus:Bn(j,B),onBlur:Bn(p,V),onMouseEnter:Bn(g,B),onMouseLeave:Bn(S,V),onTouchStart:Bn(y,B)}]:[!1,T,{}]}function Bn(s,f){return r=>{s&&s(r),r.defaultPrevented||f(r)}}function Ig({page:s,...f}){let{router:r}=V0(),o=A.useMemo(()=>M0(r.routes,s,r.basename),[r.routes,s,r.basename]);return o?A.createElement(ty,{page:s,matches:o,...f}):null}function ey(s){let{manifest:f,routeModules:r}=Z0(),[o,m]=A.useState([]);return A.useEffect(()=>{let h=!1;return Kg(s,f,r).then(x=>{h||m(x)}),()=>{h=!0}},[s,f,r]),o}function ty({page:s,matches:f,...r}){let o=Ul(),{future:m,manifest:h,routeModules:x}=Z0(),{basename:j}=V0(),{loaderData:p,matches:g}=Fg(),S=A.useMemo(()=>N0(s,f,g,h,o,"data"),[s,f,g,h,o]),y=A.useMemo(()=>N0(s,f,g,h,o,"assets"),[s,f,g,h,o]),T=A.useMemo(()=>{if(s===o.pathname+o.search+o.hash)return[];let L=new Set,Y=!1;if(f.forEach(X=>{let H=h.routes[X.route.id];!H||!H.hasLoader||(!S.some($=>$.route.id===X.route.id)&&X.route.id in p&&x[X.route.id]?.shouldRevalidate||H.hasClientLoader?Y=!0:L.add(X.route.id))}),L.size===0)return[];let q=Qg(s,j,m.unstable_trailingSlashAwareDataRequests,"data");return Y&&L.size>0&&q.searchParams.set("_routes",f.filter(X=>L.has(X.route.id)).map(X=>X.route.id).join(",")),[q.pathname+q.search]},[j,m.unstable_trailingSlashAwareDataRequests,p,o,h,S,f,s,x]),B=A.useMemo(()=>Jg(y,h),[y,h]),V=ey(y);return A.createElement(A.Fragment,null,T.map(L=>A.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...r})),B.map(L=>A.createElement("link",{key:L,rel:"modulepreload",href:L,...r})),V.map(({key:L,link:Y})=>A.createElement("link",{key:L,nonce:r.nonce,...Y,crossOrigin:Y.crossOrigin??r.crossOrigin})))}function ly(...s){return f=>{s.forEach(r=>{typeof r=="function"?r(f):r!=null&&(r.current=f)})}}var ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ay&&(window.__reactRouterVersion="7.13.0")}catch{}function ny({basename:s,children:f,unstable_useTransitions:r,window:o}){let m=A.useRef();m.current==null&&(m.current=Hx({window:o,v5Compat:!0}));let h=m.current,[x,j]=A.useState({action:h.action,location:h.location}),p=A.useCallback(g=>{r===!1?j(g):A.startTransition(()=>j(g))},[r]);return A.useLayoutEffect(()=>h.listen(p),[h,p]),A.createElement(Og,{basename:s,children:f,location:x.location,navigationType:x.action,navigator:h,unstable_useTransitions:r})}var K0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J0=A.forwardRef(function({onClick:f,discover:r="render",prefetch:o="none",relative:m,reloadDocument:h,replace:x,state:j,target:p,to:g,preventScrollReset:S,viewTransition:y,unstable_defaultShouldRevalidate:T,...B},V){let{basename:L,unstable_useTransitions:Y}=A.useContext(Mt),q=typeof g=="string"&&K0.test(g),X=w0(g,L);g=X.to;let H=gg(g,{relative:m}),[$,I,fe]=Pg(o,B),P=sy(g,{replace:x,state:j,target:p,preventScrollReset:S,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:T,unstable_useTransitions:Y});function Ce(vt){f&&f(vt),vt.defaultPrevented||P(vt)}let Ye=A.createElement("a",{...B,...fe,href:X.absoluteURL||H,onClick:X.isExternal||h?f:Ce,ref:ly(V,I),target:p,"data-discover":!q&&r==="render"?"true":void 0});return $&&!q?A.createElement(A.Fragment,null,Ye,A.createElement(Ig,{page:H})):Ye});J0.displayName="Link";var $0=A.forwardRef(function({"aria-current":f="page",caseSensitive:r=!1,className:o="",end:m=!1,style:h,to:x,viewTransition:j,children:p,...g},S){let y=Qn(x,{relative:g.relative}),T=Ul(),B=A.useContext(xu),{navigator:V,basename:L}=A.useContext(Mt),Y=B!=null&&dy(y)&&j===!0,q=V.encodeLocation?V.encodeLocation(y).pathname:y.pathname,X=T.pathname,H=B&&B.navigation&&B.navigation.location?B.navigation.location.pathname:null;r||(X=X.toLowerCase(),H=H?H.toLowerCase():null,q=q.toLowerCase()),H&&L&&(H=sl(H,L)||H);const $=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let I=X===q||!m&&X.startsWith(q)&&X.charAt($)==="/",fe=H!=null&&(H===q||!m&&H.startsWith(q)&&H.charAt(q.length)==="/"),P={isActive:I,isPending:fe,isTransitioning:Y},Ce=I?f:void 0,Ye;typeof o=="function"?Ye=o(P):Ye=[o,I?"active":null,fe?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let vt=typeof h=="function"?h(P):h;return A.createElement(J0,{...g,"aria-current":Ce,className:Ye,ref:S,style:vt,to:x,viewTransition:j},typeof p=="function"?p(P):p)});$0.displayName="NavLink";var iy=A.forwardRef(({discover:s="render",fetcherKey:f,navigate:r,reloadDocument:o,replace:m,state:h,method:x=du,action:j,onSubmit:p,relative:g,preventScrollReset:S,viewTransition:y,unstable_defaultShouldRevalidate:T,...B},V)=>{let{unstable_useTransitions:L}=A.useContext(Mt),Y=oy(),q=fy(j,{relative:g}),X=x.toLowerCase()==="get"?"get":"post",H=typeof j=="string"&&K0.test(j),$=I=>{if(p&&p(I),I.defaultPrevented)return;I.preventDefault();let fe=I.nativeEvent.submitter,P=fe?.getAttribute("formmethod")||x,Ce=()=>Y(fe||I.currentTarget,{fetcherKey:f,method:P,navigate:r,replace:m,state:h,relative:g,preventScrollReset:S,viewTransition:y,unstable_defaultShouldRevalidate:T});L&&r!==!1?A.startTransition(()=>Ce()):Ce()};return A.createElement("form",{ref:V,method:X,action:q,onSubmit:o?p:$,...B,"data-discover":!H&&s==="render"?"true":void 0})});iy.displayName="Form";function uy(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function k0(s){let f=A.useContext(Ya);return Me(f,uy(s)),f}function sy(s,{target:f,replace:r,state:o,preventScrollReset:m,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:j,unstable_useTransitions:p}={}){let g=Pc(),S=Ul(),y=Qn(s,{relative:h});return A.useCallback(T=>{if(Lg(T,f)){T.preventDefault();let B=r!==void 0?r:Yn(S)===Yn(y),V=()=>g(s,{replace:B,state:o,preventScrollReset:m,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:j});p?A.startTransition(()=>V()):V()}},[S,g,y,r,o,f,s,m,h,x,j,p])}function W0(s){Ut(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let f=A.useRef(kc(s)),r=A.useRef(!1),o=Ul(),m=A.useMemo(()=>qg(o.search,r.current?null:f.current),[o.search]),h=Pc(),x=A.useCallback((j,p)=>{const g=kc(typeof j=="function"?j(new URLSearchParams(m)):j);r.current=!0,h("?"+g,p)},[h,m]);return[m,x]}var cy=0,ry=()=>`__${String(++cy)}__`;function oy(){let{router:s}=k0("useSubmit"),{basename:f}=A.useContext(Mt),r=Cg(),o=s.fetch,m=s.navigate;return A.useCallback(async(h,x={})=>{let{action:j,method:p,encType:g,formData:S,body:y}=Xg(h,f);if(x.navigate===!1){let T=x.fetcherKey||ry();await o(T,r,x.action||j,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:S,body:y,formMethod:x.method||p,formEncType:x.encType||g,flushSync:x.flushSync})}else await m(x.action||j,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:S,body:y,formMethod:x.method||p,formEncType:x.encType||g,replace:x.replace,state:x.state,fromRouteId:r,flushSync:x.flushSync,viewTransition:x.viewTransition})},[o,m,f,r])}function fy(s,{relative:f}={}){let{basename:r}=A.useContext(Mt),o=A.useContext(Yt);Me(o,"useFormAction must be used inside a RouteContext");let[m]=o.matches.slice(-1),h={...Qn(s||".",{relative:f})},x=Ul();if(s==null){h.search=x.search;let j=new URLSearchParams(h.search),p=j.getAll("index");if(p.some(S=>S==="")){j.delete("index"),p.filter(y=>y).forEach(y=>j.append("index",y));let S=j.toString();h.search=S?`?${S}`:""}}return(!s||s===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(h.pathname=h.pathname==="/"?r:ul([r,h.pathname])),Yn(h)}function dy(s,{relative:f}={}){let r=A.useContext(B0);Me(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=k0("useViewTransitionState"),m=Qn(s,{relative:f});if(!r.isTransitioning)return!1;let h=sl(r.currentLocation.pathname,o)||r.currentLocation.pathname,x=sl(r.nextLocation.pathname,o)||r.nextLocation.pathname;return hu(m.pathname,x)!=null||hu(m.pathname,h)!=null}const F0=A.createContext({projects:[],activeProject:null,setActiveProject:()=>{},refreshProjects:()=>{}});function Vn(){return A.useContext(F0)}function my(){const[s,f]=A.useState([]),[r,o]=W0(),m=A.useCallback(async()=>{try{const g=await(await fetch("/api/projects")).json();g.ok&&f(g.data||[])}catch{}},[]);A.useEffect(()=>{m()},[m]);const h=r.get("project"),x=h?s.find(p=>p.id===h)||s[0]||null:s[0]||null,j=A.useCallback(p=>{o(g=>(g.set("project",p),g))},[o]);return{projects:s,activeProject:x,setActiveProject:j,refreshProjects:m}}function P0(s){const[f,r]=A.useState(null),[o,m]=A.useState(!0),[h,x]=A.useState(null),[j,p]=A.useState(0),g=A.useCallback(()=>p(S=>S+1),[]);return A.useEffect(()=>{let S=!1;return m(!0),fetch(s).then(y=>{if(!y.ok)throw new Error(`HTTP ${y.status}`);return y.json()}).then(y=>{S||(r(y.data??y),x(null))}).catch(y=>{S||x(String(y.message||y))}).finally(()=>{S||m(!1)}),()=>{S=!0}},[s,j]),{data:f,loading:o,error:h,refetch:g}}function qe(s){const{activeProject:f}=Vn(),r=s.includes("?")?"&":"?",o=f?`${s}${r}project=${f.id}`:s;return P0(o)}function ar(s){const{url:f="/api/events"}=s,r=A.useRef(null),o=A.useRef(null),m=A.useRef(s);m.current=s;const[h,x]=A.useState("connecting"),j=A.useCallback(()=>{r.current&&r.current.close(),x("connecting");const p=new EventSource(f);r.current=p;const g=["heartbeat","increment-update","analytics-event","cost-update","notification","sync-update","sync-audit","error-detected","config-changed","activity","command-output","command-complete","job-progress"];for(const S of g)p.addEventListener(S,y=>{try{const T=JSON.parse(y.data);m.current.onEvent?.[S]?.(T),m.current.onAnyEvent?.(S,T)}catch{}});p.onopen=()=>{x("connected")},p.onerror=()=>{p.close(),x("disconnected"),o.current=setTimeout(()=>{r.current===p&&j()},3e3)}},[f]);return A.useEffect(()=>(j(),()=>{o.current&&(clearTimeout(o.current),o.current=null),r.current?.close(),r.current=null}),[j]),{status:h}}const hy=[{path:"/",label:"Overview",icon:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-4 0a1 1 0 01-1-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 01-1 1"},{path:"/increments",label:"Increments",icon:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"},{path:"/analytics",label:"Analytics",icon:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"},{path:"/costs",label:"Costs",icon:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},{path:"/sync",label:"Sync",icon:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},{path:"/errors",label:"Errors",icon:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4.5c-.77-.833-2.694-.833-3.464 0L3.34 16.5c-.77.833.192 2.5 1.732 2.5z"},{path:"/activity",label:"Activity",icon:"M13 10V3L4 14h7v7l9-11h-7z"},{path:"/notifications",label:"Notifications",icon:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",badge:!0},{path:"/config",label:"Config",icon:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"},{path:"/plugins",label:"Plugins",icon:"M17 14v6m-3-3h6M6 10h2a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2zm10 0h2a2 2 0 002-2V6a2 2 0 00-2-2h-2a2 2 0 00-2 2v2a2 2 0 002 2zM6 20h2a2 2 0 002-2v-2a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2z"},{path:"/repos",label:"Repos",icon:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},{path:"/services",label:"Services",icon:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"}];function xy({d:s}){return u.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:s})})}function gy(){const{projects:s,activeProject:f,setActiveProject:r}=Vn(),[o]=W0(),{data:m}=qe("/api/overview"),[h,x]=A.useState(null),j=A.useCallback(T=>{const B=T;B?.pendingCount!=null&&x(B.pendingCount)},[]),{status:p}=ar({onEvent:{notification:j}}),g=h??m?.notifications?.pendingCount??0,S=o.get("project"),y=T=>S?`${T}?project=${S}`:T;return u.jsxs("aside",{className:"w-56 bg-gray-900 border-r border-gray-800 flex flex-col h-screen sticky top-0",children:[u.jsx("div",{className:"px-4 py-5 border-b border-gray-800",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-8 h-8 bg-indigo-500 rounded-lg flex items-center justify-center",children:u.jsx("span",{className:"text-white font-bold text-sm",children:"SW"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-white font-semibold text-sm",children:"SpecWeave"}),u.jsx("div",{className:"text-gray-500 text-xs",children:"Dashboard"})]})]})}),s.length>0&&u.jsxs("div",{className:"px-3 py-3 border-b border-gray-800",children:[u.jsx("label",{className:"text-[10px] text-gray-500 uppercase tracking-wider mb-1 block",children:"Project"}),u.jsx("select",{value:f?.id||"",onChange:T=>r(T.target.value),className:"w-full bg-gray-800 border border-gray-700 text-gray-300 text-xs rounded-lg px-2 py-1.5 focus:ring-indigo-500 focus:border-indigo-500",children:s.map(T=>u.jsx("option",{value:T.id,children:T.name},T.id))})]}),u.jsx("nav",{className:"flex-1 overflow-y-auto py-3 px-2",children:hy.map(T=>u.jsxs($0,{to:y(T.path),end:T.path==="/",className:({isActive:B})=>`flex items-center gap-3 px-3 py-2 rounded-lg text-sm mb-0.5 transition-colors ${B?"bg-indigo-500/10 text-indigo-400":"text-gray-400 hover:bg-gray-800 hover:text-gray-200"}`,children:[u.jsx(xy,{d:T.icon}),u.jsx("span",{className:"flex-1",children:T.label}),T.badge&&g>0&&u.jsx("span",{className:"min-w-[18px] h-[18px] px-1 bg-rose-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center",children:g>99?"99+":g})]},T.path))}),u.jsx("div",{className:"px-4 py-3 border-t border-gray-800",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:`w-2 h-2 rounded-full ${p==="connected"?"bg-emerald-400 pulse-dot":p==="connecting"?"bg-amber-400 pulse-dot":"bg-gray-500"}`}),u.jsx("span",{className:"text-xs text-gray-500",children:p==="connected"?"Connected":p==="connecting"?"Connecting...":"Disconnected"})]}),u.jsxs("span",{className:"text-[10px] text-gray-600",children:[s.length," project",s.length!==1?"s":""]})]})})]})}function yy(){const{data:s}=P0("/api/health"),f=s?.projectRoot?.split("/").pop()||"Project",r=s?.uptime?vy(s.uptime):"...";return u.jsxs("header",{className:"h-14 bg-gray-900/50 backdrop-blur border-b border-gray-800 flex items-center justify-between px-6",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h1",{className:"text-gray-200 font-medium text-sm",children:f}),u.jsx("span",{className:"text-gray-600 text-xs",children:"|"}),u.jsxs("span",{className:"text-gray-500 text-xs",children:["Uptime: ",r]})]}),u.jsx("div",{className:"flex items-center gap-4",children:u.jsxs("span",{className:"text-gray-500 text-xs",children:[s?.connections??0," client",(s?.connections??0)!==1?"s":""]})})]})}function vy(s){if(s<60)return`${Math.floor(s)}s`;if(s<3600)return`${Math.floor(s/60)}m`;const f=Math.floor(s/3600),r=Math.floor(s%3600/60);return`${f}h ${r}m`}const py={indigo:"from-indigo-500/10 to-indigo-500/5 border-indigo-500/20",emerald:"from-emerald-500/10 to-emerald-500/5 border-emerald-500/20",amber:"from-amber-500/10 to-amber-500/5 border-amber-500/20",rose:"from-rose-500/10 to-rose-500/5 border-rose-500/20",cyan:"from-cyan-500/10 to-cyan-500/5 border-cyan-500/20"},by={indigo:"text-indigo-400",emerald:"text-emerald-400",amber:"text-amber-400",rose:"text-rose-400",cyan:"text-cyan-400"};function ne({title:s,value:f,subtitle:r,color:o="indigo"}){return u.jsxs("div",{className:`bg-gradient-to-br ${py[o]} border rounded-xl p-4`,children:[u.jsx("div",{className:"text-gray-400 text-xs font-medium uppercase tracking-wider mb-2",children:s}),u.jsx("div",{className:`text-2xl font-bold ${by[o]}`,children:f}),r&&u.jsx("div",{className:"text-gray-500 text-xs mt-1",children:r})]})}const jy={active:"#6366f1",completed:"#10b981",paused:"#f59e0b",planning:"#06b6d4",abandoned:"#ef4444",backlog:"#6b7280",ready_for_review:"#8b5cf6"};function Sy(s){return jy[s]||"#6b7280"}function Ny({segments:s,size:f=160,centerLabel:r,centerValue:o}){const m=s.reduce((p,g)=>p+g.value,0);if(m===0)return u.jsx("div",{className:"flex items-center justify-center",style:{width:f,height:f},children:u.jsx("span",{className:"text-gray-600 text-xs",children:"No data"})});const h=52,x=2*Math.PI*h;let j=0;return u.jsxs("div",{className:"relative inline-flex items-center justify-center",style:{width:f,height:f},children:[u.jsx("svg",{viewBox:"0 0 128 128",className:"w-full h-full -rotate-90",children:s.map((p,g)=>{const y=p.value/m*x,T=j;return j+=y,u.jsx("circle",{cx:"64",cy:"64",r:h,fill:"none",stroke:p.color,strokeWidth:"12",strokeDasharray:`${y} ${x-y}`,strokeDashoffset:-T,className:"transition-all duration-500"},g)})}),u.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[o!=null&&u.jsx("span",{className:"text-xl font-bold text-white",children:o}),r&&u.jsx("span",{className:"text-[10px] text-gray-500 uppercase tracking-wider",children:r})]})]})}function Ey(s){return Object.entries(s).filter(([f,r])=>r>0).map(([f,r])=>({label:f,value:r,color:Sy(f)}))}const Ty={default:"bg-gray-800 text-gray-300",success:"bg-emerald-500/15 text-emerald-400",warning:"bg-amber-500/15 text-amber-400",error:"bg-rose-500/15 text-rose-400",info:"bg-cyan-500/15 text-cyan-400"};function Ee({label:s,variant:f="default"}){return u.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-md text-xs font-medium ${Ty[f]}`,children:s})}function Zn(s){switch(s){case"active":case"running":return"info";case"completed":case"success":return"success";case"paused":case"pending":case"planning":return"warning";case"failed":case"abandoned":case"error":return"error";default:return"default"}}function Ay({size:s="md"}){const f={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8"};return u.jsxs("svg",{className:`${f[s]} animate-spin text-indigo-400`,viewBox:"0 0 24 24",fill:"none",children:[u.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),u.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}function yt(){return u.jsx("div",{className:"flex items-center justify-center h-64",children:u.jsx(Ay,{size:"lg"})})}function zy(){const{data:s,loading:f,error:r}=qe("/api/overview"),[o,m]=A.useState([]),{activeProject:h}=Vn(),x=A.useRef(null);A.useEffect(()=>{if(!h||x.current===h.id)return;x.current=h.id;const g=`project=${h.id}`;fetch(`/api/activity/stream?limit=20&${g}`).then(S=>S.json()).then(S=>{S.ok&&Array.isArray(S.data)&&m(S.data)}).catch(()=>{})},[h]);const j=A.useCallback(g=>{m(S=>[g,...S].slice(0,20))},[]);if(ar({onEvent:{activity:j}}),f)return u.jsx(yt,{});if(r)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",r]});if(!s)return null;const p=Ey(s.project.statusBreakdown);return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("h2",{className:"text-lg font-semibold text-gray-200",children:[s.project.name||"Project"," Overview"]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Active Increments",value:s.project.activeIncrements,subtitle:`${s.project.totalIncrements} total`,color:"indigo"}),u.jsx(ne,{title:"Completed",value:s.project.completedIncrements,subtitle:`${Math.round(s.project.completedIncrements/Math.max(s.project.totalIncrements,1)*100)}% done`,color:"emerald"}),u.jsx(ne,{title:"Total Cost",value:`$${s.costs.totalCost.toFixed(2)}`,subtitle:`${s.costs.sessionCount} sessions`,color:"amber"}),u.jsx(ne,{title:"Events Today",value:s.analytics.last24hEvents,subtitle:`${s.analytics.totalEvents} total`,color:"cyan"})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Increment Status"}),u.jsx("div",{className:"flex items-center justify-center",children:u.jsx(Ny,{segments:p,centerValue:s.project.totalIncrements,centerLabel:"total"})}),u.jsx("div",{className:"flex flex-wrap gap-2 mt-4 justify-center",children:p.map(g=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:g.color}}),u.jsxs("span",{className:"text-xs text-gray-500",children:[g.label," (",g.value,")"]})]},g.label))})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Sync Health"}),u.jsx("div",{className:"space-y-3",children:Object.entries(s.sync.platforms).length===0?u.jsx("p",{className:"text-gray-600 text-xs",children:"No sync platforms configured"}):Object.entries(s.sync.platforms).map(([g,S])=>u.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-800/50 rounded-lg",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-sm text-gray-300 capitalize",children:g}),u.jsx("div",{className:"text-xs text-gray-600 mt-0.5",children:S.lastImport?`Last: ${new Date(S.lastImport).toLocaleDateString()}`:"Never synced"})]}),u.jsx(Ee,{label:S.lastSyncResult||"unknown",variant:Zn(S.lastSyncResult)})]},g))}),u.jsx("div",{className:"mt-4 pt-4 border-t border-gray-800",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-gray-500",children:"Notifications"}),u.jsxs("div",{className:"flex gap-2",children:[s.notifications.criticalCount>0&&u.jsx(Ee,{label:`${s.notifications.criticalCount} critical`,variant:"error"}),u.jsx(Ee,{label:`${s.notifications.pendingCount} pending`,variant:s.notifications.pendingCount>0?"warning":"default"})]})]})})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Live Activity"}),u.jsx("div",{className:"space-y-2 max-h-64 overflow-y-auto custom-scrollbar",children:o.length===0?u.jsx("p",{className:"text-gray-600 text-xs",children:"No recent activity"}):o.map((g,S)=>u.jsxs("div",{className:"flex items-start gap-2 py-1 slide-in",children:[u.jsx("div",{className:`w-1.5 h-1.5 rounded-full mt-1.5 ${g.severity==="error"?"bg-rose-400":g.severity==="warning"?"bg-amber-400":"bg-gray-600"}`}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("div",{className:"text-xs text-gray-400 truncate",children:g.title}),u.jsxs("div",{className:"text-[10px] text-gray-600",children:[g.category,g.timestamp&&` · ${Cy(g.timestamp)}`]})]})]},S))})]})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Increment Types"}),u.jsx("div",{className:"flex gap-4 flex-wrap",children:Object.entries(s.project.typeBreakdown).map(([g,S])=>u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-gray-800/50 rounded-lg",children:[u.jsx("span",{className:"text-sm text-gray-300 capitalize",children:g}),u.jsx("span",{className:"text-xs text-gray-500 bg-gray-800 px-2 py-0.5 rounded",children:S})]},g))})]})]})}function Cy(s){try{const f=Date.now()-new Date(s).getTime(),r=Math.floor(f/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}catch{return""}}function I0({title:s,description:f}){return u.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[u.jsx("div",{className:"w-12 h-12 rounded-full bg-gray-800 flex items-center justify-center mb-4",children:u.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"})})}),u.jsx("h3",{className:"text-gray-400 text-sm font-medium",children:s}),f&&u.jsx("p",{className:"text-gray-600 text-xs mt-1 max-w-xs",children:f})]})}function My(){const{data:s,loading:f,error:r}=qe("/api/increments"),[o,m]=A.useState("all"),[h,x]=A.useState("all"),j=Pc();if(f)return u.jsx(yt,{});if(r)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",r]});if(!s)return null;const p=s.increments.filter(y=>!(o!=="all"&&y.status!==o||h!=="all"&&y.type!==h)),g=[...new Set(s.increments.map(y=>y.status))],S=[...new Set(s.increments.map(y=>y.type))];return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Increments"}),u.jsxs("span",{className:"text-sm text-gray-500",children:[s.increments.length," total"]})]}),u.jsxs("div",{className:"flex gap-3 flex-wrap",children:[u.jsx(E0,{label:"Status",value:o,options:g,onChange:m}),u.jsx(E0,{label:"Type",value:h,options:S,onChange:x})]}),p.length===0?u.jsx(I0,{title:"No increments match filters",description:"Try adjusting your filters"}):u.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800",children:[u.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"ID"}),u.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Title"}),u.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Status"}),u.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Type"}),u.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Priority"}),u.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Tasks"}),u.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"ACs"}),u.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Last Activity"})]})}),u.jsx("tbody",{children:p.map(y=>u.jsxs("tr",{onClick:()=>j(`/increments/${y.id}`),className:"border-b border-gray-800/50 hover:bg-gray-800/30 transition-colors cursor-pointer",children:[u.jsx("td",{className:"px-4 py-3",children:u.jsx("span",{className:"text-xs text-indigo-400 font-mono",children:y.id})}),u.jsx("td",{className:"px-4 py-3",children:u.jsx("span",{className:"text-sm text-gray-300",children:y.title})}),u.jsx("td",{className:"px-4 py-3",children:u.jsx(Ee,{label:y.status,variant:Zn(y.status)})}),u.jsx("td",{className:"px-4 py-3",children:u.jsx("span",{className:"text-xs text-gray-400 capitalize",children:y.type})}),u.jsx("td",{className:"px-4 py-3",children:u.jsx(Ry,{priority:y.priority})}),u.jsx("td",{className:"px-4 py-3",children:u.jsx(T0,{completed:y.tasks.completed,total:y.tasks.total})}),u.jsx("td",{className:"px-4 py-3",children:u.jsx(T0,{completed:y.acs.completed,total:y.acs.total})}),u.jsx("td",{className:"px-4 py-3",children:u.jsx("span",{className:"text-xs text-gray-500",children:y.lastActivity?_y(y.lastActivity):"-"})})]},y.id))})]})})]})}function E0({label:s,value:f,options:r,onChange:o}){return u.jsxs("select",{value:f,onChange:m=>o(m.target.value),className:"bg-gray-800 border border-gray-700 text-gray-300 text-xs rounded-lg px-3 py-1.5 focus:ring-indigo-500 focus:border-indigo-500",children:[u.jsxs("option",{value:"all",children:[s,": All"]}),r.map(m=>u.jsx("option",{value:m,children:m},m))]})}function T0({completed:s,total:f}){const r=f>0?Math.round(s/f*100):0;return u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-16 h-1.5 bg-gray-800 rounded-full overflow-hidden",children:u.jsx("div",{className:"h-full bg-indigo-500 rounded-full transition-all",style:{width:`${r}%`}})}),u.jsxs("span",{className:"text-xs text-gray-500",children:[s,"/",f]})]})}function Ry({priority:s}){const f={P0:"text-rose-400 bg-rose-500/10",P1:"text-amber-400 bg-amber-500/10",P2:"text-cyan-400 bg-cyan-500/10",P3:"text-gray-400 bg-gray-500/10"};return u.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded ${f[s]||f.P2}`,children:s})}function _y(s){try{const f=new Date(s),o=new Date().getTime()-f.getTime(),m=Math.floor(o/6e4);if(m<1)return"Just now";if(m<60)return`${m}m ago`;const h=Math.floor(m/60);if(h<24)return`${h}h ago`;const x=Math.floor(h/24);return x<7?`${x}d ago`:f.toLocaleDateString()}catch{return s}}function nr({items:s,maxBars:f=10}){const r=[...s].sort((m,h)=>h.value-m.value).slice(0,f),o=Math.max(...r.map(m=>m.value),1);return u.jsx("div",{className:"space-y-2",children:r.map((m,h)=>u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"text-xs text-gray-400 w-28 truncate text-right",title:m.label,children:m.label}),u.jsx("div",{className:"flex-1 h-5 bg-gray-800 rounded overflow-hidden",children:u.jsx("div",{className:"h-full rounded transition-all duration-500",style:{width:`${m.value/o*100}%`,backgroundColor:m.color||"#6366f1"}})}),u.jsx("span",{className:"text-xs text-gray-500 w-10 text-right",children:m.value})]},h))})}function Oy(){const[s,f]=A.useState("overview"),{data:r,loading:o,error:m}=qe("/api/analytics/summary"),{data:h,loading:x}=qe("/api/analytics/skills");if(o||x)return u.jsx(yt,{});if(m)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",m]});if(!r)return null;const j=r.topCommands?.reduce((S,y)=>S+y.count,0)||0,p=r.topSkills?.reduce((S,y)=>S+y.count,0)||0,g=r.topAgents?.reduce((S,y)=>S+y.count,0)||0;return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Analytics"}),u.jsxs("span",{className:"text-sm text-gray-500",children:[r.totalEvents," total events"]})]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Total Events",value:r.totalEvents,color:"indigo"}),u.jsx(ne,{title:"Commands",value:j,color:"cyan"}),u.jsx(ne,{title:"Skills",value:p,color:"emerald"}),u.jsx(ne,{title:"Agents",value:g,color:"amber"})]}),u.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:["overview","skills"].map(S=>u.jsx("button",{onClick:()=>f(S),className:`flex-1 px-3 py-1.5 text-xs rounded-md transition-colors ${s===S?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:S==="overview"?"Usage Charts":"Skill Leaderboard"},S))}),s==="overview"&&u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[u.jsx(Kc,{title:"Top Commands",items:r.topCommands,color:"#6366f1"}),u.jsx(Kc,{title:"Top Skills",items:r.topSkills,color:"#10b981"}),u.jsx(Kc,{title:"Top Agents",items:r.topAgents,color:"#06b6d4"}),r.dailySummaries&&r.dailySummaries.length>0&&u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Daily Events (Last 14 Days)"}),u.jsx(Uy,{days:r.dailySummaries.slice(-14)})]})]}),s==="skills"&&u.jsx(Dy,{skills:h||[]})]})}function Kc({title:s,items:f,color:r}){const o=(f||[]).map(m=>({label:m.name,value:m.count,color:r}));return u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:s}),o.length>0?u.jsx(nr,{items:o}):u.jsx("p",{className:"text-gray-600 text-xs",children:"No data available"})]})}function Dy({skills:s}){const f=[...s].sort((o,m)=>m.count-o.count);if(f.length===0)return u.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:u.jsx("p",{className:"text-gray-600 text-xs",children:"No skill usage data available"})});const r=f[0]?.count||1;return u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[u.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Skill Usage Leaderboard"})}),u.jsx("div",{className:"divide-y divide-gray-800/50",children:f.map((o,m)=>{const h=o.count>0?Math.round(o.successCount/o.count*100):100,x=Math.max(2,o.count/r*100);return u.jsxs("div",{className:"px-5 py-3 hover:bg-gray-800/20 transition-colors",children:[u.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("span",{className:"text-xs text-gray-600 w-5 text-right",children:["#",m+1]}),u.jsx("span",{className:"text-sm text-gray-300",children:o.name}),o.plugin&&u.jsx("span",{className:"text-[10px] text-gray-600 bg-gray-800 px-1.5 py-0.5 rounded",children:o.plugin})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[o.avgDuration!=null&&u.jsxs("span",{className:"text-[10px] text-gray-600",children:[(o.avgDuration/1e3).toFixed(1),"s avg"]}),u.jsx(Ee,{label:`${h}%`,variant:h>=90?"success":h>=70?"warning":"error"}),u.jsx("span",{className:"text-sm font-mono text-gray-400 w-12 text-right",children:o.count})]})]}),u.jsxs("div",{className:"flex items-center gap-2 ml-7",children:[u.jsx("div",{className:"flex-1 h-1.5 bg-gray-800 rounded-full overflow-hidden",children:u.jsx("div",{className:"h-full rounded-full bg-emerald-500/60 transition-all",style:{width:`${x}%`}})}),o.lastUsed&&u.jsx("span",{className:"text-[10px] text-gray-700 whitespace-nowrap",children:wy(o.lastUsed)})]})]},o.name)})})]})}function Uy({days:s}){const f=Math.max(...s.map(r=>r.totalEvents),1);return u.jsx("div",{className:"flex items-end gap-1 h-24",children:s.map(r=>{const o=Math.max(2,r.totalEvents/f*100);return u.jsxs("div",{className:"flex-1 flex flex-col items-center gap-1",children:[u.jsx("div",{className:"w-full bg-indigo-500/40 rounded-t hover:bg-indigo-500/60 transition-colors",style:{height:`${o}%`},title:`${r.date}: ${r.totalEvents} events`}),u.jsx("span",{className:"text-[8px] text-gray-700",children:r.date.slice(-2)})]},r.date)})})}function wy(s){if(!s)return"";const f=Date.now()-new Date(s).getTime(),r=Math.floor(f/6e4);if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function Hy(){const[s,f]=A.useState("overview"),{data:r,loading:o,error:m}=qe("/api/costs/summary");if(o)return u.jsx(yt,{});if(m)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",m]});if(!r)return null;const h=r.sessions||[],x=new Map;for(const T of h){const B=T.model||"unknown",V=x.get(B)||{cost:0,tokens:0,sessions:0};V.cost+=T.cost||0,V.tokens+=(T.inputTokens||0)+(T.outputTokens||0),V.sessions++,x.set(B,V)}const j=Array.from(x.entries()).map(([T,B])=>({model:T,...B})).sort((T,B)=>B.cost-T.cost),p=h.reduce((T,B)=>T+(B.inputTokens||0),0),g=h.reduce((T,B)=>T+(B.outputTokens||0),0),S=h.reduce((T,B)=>T+(B.cacheReadTokens||0),0),y=h.reduce((T,B)=>T+(B.cacheWriteTokens||0),0);return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Token Usage & Costs"}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Total Cost",value:`$${r.totalCost.toFixed(2)}`,color:"amber"}),u.jsx(ne,{title:"Cache Savings",value:`$${r.totalSavings.toFixed(2)}`,color:"emerald"}),u.jsx(ne,{title:"Total Tokens",value:qn(r.totalTokens),color:"indigo"}),u.jsx(ne,{title:"Sessions",value:h.length,color:"cyan"})]}),u.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:["overview","sessions"].map(T=>u.jsx("button",{onClick:()=>f(T),className:`flex-1 px-3 py-1.5 text-xs rounded-md transition-colors ${s===T?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:T==="overview"?"Breakdown":"Sessions"},T))}),s==="overview"&&u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Cost by Model"}),j.length>0?u.jsx(nr,{items:j.map(T=>({label:T.model,value:parseFloat(T.cost.toFixed(2)),color:"#f59e0b"}))}):u.jsx("p",{className:"text-gray-600 text-xs",children:"No model data"})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Token Breakdown"}),u.jsxs("div",{className:"space-y-3",children:[u.jsx(fu,{label:"Input",value:p,total:r.totalTokens,color:"bg-indigo-500"}),u.jsx(fu,{label:"Output",value:g,total:r.totalTokens,color:"bg-cyan-500"}),S>0&&u.jsx(fu,{label:"Cache Read",value:S,total:r.totalTokens,color:"bg-emerald-500"}),y>0&&u.jsx(fu,{label:"Cache Write",value:y,total:r.totalTokens,color:"bg-amber-500"})]})]}),j.length>0&&u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden lg:col-span-2",children:[u.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Model Details"})}),u.jsxs("table",{className:"w-full",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800",children:[u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Model"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Sessions"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Tokens"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Cost"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Avg/Session"})]})}),u.jsx("tbody",{children:j.map(T=>u.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[u.jsx("td",{className:"px-4 py-2 text-sm text-gray-300",children:T.model}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:T.sessions}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:qn(T.tokens)}),u.jsxs("td",{className:"px-4 py-2 text-xs text-amber-400 text-right",children:["$",T.cost.toFixed(2)]}),u.jsxs("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:["$",(T.cost/T.sessions).toFixed(4)]})]},T.model))})]})]})]}),s==="sessions"&&h.length>0&&u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[u.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Recent Sessions"})}),u.jsxs("table",{className:"w-full",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800",children:[u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Session"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Model"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Input"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Output"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Cost"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"When"})]})}),u.jsx("tbody",{children:h.slice(0,30).map((T,B)=>u.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[u.jsx("td",{className:"px-4 py-2 text-xs text-gray-400 font-mono",children:T.sessionId?.slice(0,8)||"-"}),u.jsx("td",{className:"px-4 py-2",children:u.jsx(Ee,{label:T.model||"unknown",variant:"default"})}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:qn(T.inputTokens)}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:qn(T.outputTokens)}),u.jsxs("td",{className:"px-4 py-2 text-xs text-amber-400 text-right",children:["$",T.cost?.toFixed(4)||"0"]}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:By(T.timestamp)})]},B))})]})]})]})}function fu({label:s,value:f,total:r,color:o}){const m=r>0?f/r*100:0,h={"bg-indigo-500":"rgb(99 102 241 / 0.6)","bg-cyan-500":"rgb(6 182 212 / 0.6)","bg-emerald-500":"rgb(16 185 129 / 0.6)","bg-amber-500":"rgb(245 158 11 / 0.6)"};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-1",children:[u.jsx("span",{className:"text-xs text-gray-400",children:s}),u.jsxs("span",{className:"text-xs text-gray-500",children:[qn(f)," (",m.toFixed(1),"%)"]})]}),u.jsx("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:u.jsx("div",{className:"h-full rounded-full",style:{width:`${m}%`,backgroundColor:h[o]||o}})})]})}function qn(s){return s?s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e3?`${(s/1e3).toFixed(1)}K`:String(s):"0"}function By(s){if(!s)return"-";const f=Date.now()-new Date(s).getTime(),r=Math.floor(f/6e4);if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function yu(){const[s,f]=A.useState(!1),[r,o]=A.useState(null),[m,h]=A.useState(null);return{execute:A.useCallback(async j=>{f(!0),h(null);try{const g=await(await fetch(`/api/commands/${j}`,{method:"POST"})).json();return g.ok?(o(g.data),f(!1),g.data):(h(g.error||"Command failed"),f(!1),null)}catch(p){return h(String(p)),f(!1),null}},[]),running:s,result:r,error:m}}function Ly(){const[s,f]=A.useState("health"),{data:r,loading:o,error:m}=qe("/api/sync/status"),{data:h,loading:x}=qe("/api/sync/audit?limit=100"),{data:j,loading:p}=qe("/api/sync/audit/summary"),{execute:g,running:S}=yu();if(o||x||p)return u.jsx(yt,{});if(m)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",m]});if(!r)return null;const y=Object.entries(r.platforms).filter(([L])=>["github","jira","ado"].includes(L)),T=h?.length||0,B=h?.filter(L=>L.result==="error").length||0,V=h?.filter(L=>L.conflict)||[];return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Sync Health"}),u.jsx("button",{onClick:()=>g("sync-push"),disabled:S,className:"px-3 py-1.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:S?"Syncing...":"Sync Now"})]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Platforms",value:y.length,color:"indigo"}),u.jsx(ne,{title:"Audit Entries",value:T,color:"cyan"}),u.jsx(ne,{title:"Errors",value:B,color:"rose"}),u.jsx(ne,{title:"Conflicts",value:V.length,color:"amber"})]}),u.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:["health","audit","conflicts"].map(L=>u.jsx("button",{onClick:()=>f(L),className:`flex-1 px-3 py-1.5 text-xs rounded-md transition-colors ${s===L?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:L==="health"?"Platform Health":L==="audit"?"Audit Log":`Conflicts (${V.length})`},L))}),s==="health"&&u.jsx(u.Fragment,{children:y.length===0?u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:[u.jsx("p",{className:"text-gray-500 text-sm",children:"No sync platforms configured"}),u.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Configure GitHub, JIRA, or ADO in your config"})]}):u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:y.map(([L,Y])=>{const q=j?.[L];return u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(em,{platform:L}),u.jsx("span",{className:"text-sm font-medium text-gray-300 capitalize",children:L})]}),u.jsx(Ee,{label:Y.lastSyncResult||"unknown",variant:Zn(Y.lastSyncResult||"")})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ln,{label:"Last Import",value:Y.lastImport?new Date(Y.lastImport).toLocaleString():"Never"}),Y.lastImportCount!=null&&u.jsx(Ln,{label:"Items Imported",value:String(Y.lastImportCount)}),Y.lastSkippedCount!=null&&u.jsx(Ln,{label:"Skipped",value:String(Y.lastSkippedCount)}),q&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"border-t border-gray-800 my-2"}),u.jsx(Ln,{label:"Total Ops",value:String(q.total)}),u.jsx(Ln,{label:"Success",value:String(q.success)}),q.errors>0&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-gray-500",children:"Errors"}),u.jsx(Ee,{label:String(q.errors),variant:"error"})]})]})]})]},L)})})}),s==="audit"&&u.jsx(A0,{entries:h||[]}),s==="conflicts"&&u.jsx(A0,{entries:V}),r.lastUpdated&&u.jsxs("p",{className:"text-xs text-gray-600",children:["Last metadata update: ",new Date(r.lastUpdated).toLocaleString()]})]})}function A0({entries:s}){if(s.length===0)return u.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:u.jsx("p",{className:"text-gray-500 text-sm",children:"No audit entries"})});const f={success:"success",error:"error",denied:"warning",skipped:"default"};return u.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800",children:[u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Time"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Platform"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Operation"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Item"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Direction"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Result"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Duration"})]})}),u.jsx("tbody",{children:s.map((r,o)=>u.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:qy(r.timestamp)}),u.jsx("td",{className:"px-4 py-2",children:u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(em,{platform:r.platform}),u.jsx("span",{className:"text-xs text-gray-400 capitalize",children:r.platform})]})}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-400",children:r.operation}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 font-mono max-w-[120px] truncate",children:r.itemId||"-"}),u.jsx("td",{className:"px-4 py-2",children:u.jsx(Ee,{label:r.direction,variant:r.direction==="push"?"info":"default"})}),u.jsx("td",{className:"px-4 py-2",children:u.jsx(Ee,{label:r.result,variant:f[r.result]||"default"})}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-600 text-right",children:r.duration?`${r.duration}ms`:"-"})]},o))})]})})}function Ln({label:s,value:f}){return u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-gray-500",children:s}),u.jsx("span",{className:"text-xs text-gray-400",children:f})]})}function em({platform:s}){const f={github:"bg-gray-700",jira:"bg-blue-700",ado:"bg-blue-600"};return u.jsx("div",{className:`w-5 h-5 rounded ${f[s]||"bg-gray-700"} flex items-center justify-center`,children:u.jsx("span",{className:"text-[9px] text-white font-bold",children:s[0]?.toUpperCase()})})}function qy(s){if(!s)return"-";const f=Date.now()-new Date(s).getTime(),r=Math.floor(f/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function Yy(){const[s,f]=A.useState("groups"),[r,o]=A.useState(null),{data:m,loading:h}=qe("/api/errors/groups"),{data:x,loading:j}=qe("/api/errors/recent?limit=100"),{data:p,loading:g}=qe("/api/errors/sessions?limit=30");if(h||j||g)return u.jsx(yt,{});const S=x?.length||0,y=m?.length||0,T=new Set(x?.map(L=>L.sessionId)).size,B=m?.[0]?.type||"-",V=r?p?.find(L=>L.sessionId===r):null;return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Error Tracing"}),u.jsx("span",{className:"text-xs text-gray-500",children:"New Relic-style error investigation"})]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Total Errors",value:S,color:"rose"}),u.jsx(ne,{title:"Error Types",value:y,color:"amber"}),u.jsx(ne,{title:"Affected Sessions",value:T,color:"indigo"}),u.jsx(ne,{title:"Most Common",value:B,color:"cyan"})]}),u.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:["groups","timeline","sessions"].map(L=>u.jsx("button",{onClick:()=>{f(L),o(null)},className:`flex-1 px-3 py-1.5 text-xs rounded-md transition-colors ${s===L?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:L==="groups"?"Error Groups":L==="timeline"?"Timeline":"Sessions"},L))}),r&&V&&u.jsx(Vy,{session:V,onClose:()=>o(null)}),!r&&s==="groups"&&u.jsx(Gy,{groups:m||[]}),!r&&s==="timeline"&&u.jsx(Xy,{errors:x||[],onSessionClick:o}),!r&&s==="sessions"&&u.jsx(Qy,{sessions:p||[],onSelect:o}),S===0&&!r&&u.jsx(I0,{title:"No errors detected",description:"Claude Code session logs are clean"})]})}function Gy({groups:s}){if(s.length===0)return null;const f={prompt_too_long:"error",api_error:"warning",tool_failure:"info",hook_error:"default",rate_limit:"warning",unknown:"default"};return u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[u.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Error Groups"})}),u.jsxs("table",{className:"w-full",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800",children:[u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Type"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Count"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Sessions"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Last Seen"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Sample Message"})]})}),u.jsx("tbody",{children:s.map(r=>u.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[u.jsx("td",{className:"px-4 py-2",children:u.jsx(Ee,{label:r.type.replace(/_/g," "),variant:f[r.type]||"default"})}),u.jsx("td",{className:"px-4 py-2 text-sm text-gray-300 text-right font-mono",children:r.count}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:r.sessions}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:vu(r.lastSeen)}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 max-w-xs truncate",children:r.recentMessages[0]||"-"})]},r.type))})]})]})}function Xy({errors:s,onSessionClick:f}){if(s.length===0)return null;const r={prompt_too_long:"bg-rose-400",api_error:"bg-amber-400",tool_failure:"bg-blue-400",hook_error:"bg-gray-400",rate_limit:"bg-amber-400",unknown:"bg-gray-500"};return u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Error Timeline"}),u.jsx("div",{className:"space-y-1 max-h-[500px] overflow-y-auto custom-scrollbar",children:s.map((o,m)=>u.jsxs("div",{className:"flex items-start gap-3 py-2 px-2 hover:bg-gray-800/30 rounded cursor-pointer",onClick:()=>f(o.sessionId),children:[u.jsxs("div",{className:"flex flex-col items-center mt-1",children:[u.jsx("div",{className:`w-2 h-2 rounded-full ${r[o.type]||"bg-gray-500"}`}),m<s.length-1&&u.jsx("div",{className:"w-px h-full bg-gray-800 mt-1"})]}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-xs text-gray-400 font-mono",children:o.type.replace(/_/g," ")}),u.jsx("span",{className:"text-[10px] text-gray-600",children:vu(o.timestamp)})]}),u.jsx("div",{className:"text-xs text-gray-500 truncate mt-0.5",children:o.message}),u.jsxs("div",{className:"text-[10px] text-gray-700 font-mono mt-0.5",children:["Session: ",o.sessionId.slice(0,8)]})]})]},m))})]})}function Qy({sessions:s,onSelect:f}){return s.length===0?null:u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[u.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Recent Sessions"})}),u.jsxs("table",{className:"w-full",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800",children:[u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Session"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Branch"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Messages"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Tool Calls"}),u.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Errors"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Started"})]})}),u.jsx("tbody",{children:s.map(r=>u.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30 cursor-pointer",onClick:()=>f(r.sessionId),children:[u.jsx("td",{className:"px-4 py-2 text-xs text-gray-400 font-mono",children:r.sessionId.slice(0,8)}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:r.gitBranch||"-"}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:r.messageCount}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:r.toolCallCount}),u.jsx("td",{className:"px-4 py-2 text-right",children:r.errors.length>0?u.jsx(Ee,{label:String(r.errors.length),variant:"error"}):u.jsx("span",{className:"text-xs text-gray-600",children:"0"})}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:vu(r.startTime)})]},r.sessionId))})]})]})}function Vy({session:s,onClose:f}){return u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsxs("div",{children:[u.jsxs("h3",{className:"text-sm font-medium text-gray-300",children:["Session: ",u.jsx("span",{className:"font-mono",children:s.sessionId.slice(0,12)})]}),u.jsxs("div",{className:"text-[10px] text-gray-600 mt-0.5",children:["v",s.version," | ",s.gitBranch," | ",s.messageCount," messages | ",s.toolCallCount," tool calls"]})]}),u.jsx("button",{onClick:f,className:"px-2 py-1 text-xs text-gray-400 hover:text-white hover:bg-gray-700 rounded transition-colors",children:"Back"})]}),u.jsxs("div",{className:"flex gap-3 mb-4",children:[u.jsxs("div",{className:"text-xs text-gray-500",children:["Started: ",new Date(s.startTime).toLocaleString()]}),s.endTime&&u.jsxs("div",{className:"text-xs text-gray-500",children:["Ended: ",new Date(s.endTime).toLocaleString()]})]}),s.errors.length===0?u.jsx("p",{className:"text-gray-600 text-xs",children:"No errors in this session"}):u.jsx("div",{className:"space-y-2",children:s.errors.map((r,o)=>u.jsxs("div",{className:"p-3 bg-gray-800/50 rounded-lg border-l-2 border-rose-500/50",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx(Ee,{label:r.type.replace(/_/g," "),variant:"error"}),u.jsx("span",{className:"text-[10px] text-gray-600",children:vu(r.timestamp)})]}),u.jsx("div",{className:"text-xs text-gray-400 break-words",children:r.message}),r.context?.messageIndex!=null&&u.jsxs("div",{className:"text-[10px] text-gray-600 mt-1",children:["At message #",r.context.messageIndex,r.context.lastToolCall&&` | Tool: ${r.context.lastToolCall.slice(0,20)}`]})]},o))})]})}function vu(s){if(!s)return"-";const f=Date.now()-new Date(s).getTime(),r=Math.floor(f/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}const Zy=[{value:"all",label:"All"},{value:"command",label:"Commands"},{value:"hook",label:"Hooks"},{value:"notification",label:"Notifications"},{value:"cost",label:"Cost"}],Ky=[{value:"all",label:"All Levels"},{value:"error",label:"Errors"},{value:"warning",label:"Warnings"},{value:"info",label:"Info"}];function Jy(){const[s,f]=A.useState("all"),[r,o]=A.useState("all"),[m,h]=A.useState([]),x=new URLSearchParams;x.set("limit","200"),s!=="all"&&x.set("categories",s),r!=="all"&&x.set("severity",r);const{data:j,loading:p}=qe(`/api/activity/stream?${x.toString()}`),g=A.useCallback(q=>{h(X=>[q,...X].slice(0,50))},[]);if(ar({onEvent:{activity:g}}),p)return u.jsx(yt,{});const S=[...m,...j||[]],y=new Set,T=[];for(const q of S){const X=`${q.timestamp}:${q.title}`;y.has(X)||(y.add(X),T.push(q))}const B=T.filter(q=>!(s!=="all"&&q.category!==s||r!=="all"&&q.severity!==r)),V=T.filter(q=>q.severity==="error").length,L=T.filter(q=>q.severity==="warning").length,Y=new Set(T.map(q=>q.source));return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Activity Stream"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-400 pulse-dot"}),u.jsx("span",{className:"text-xs text-gray-500",children:"Live"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Total Events",value:T.length,color:"indigo"}),u.jsx(ne,{title:"Errors",value:V,color:"rose"}),u.jsx(ne,{title:"Warnings",value:L,color:"amber"}),u.jsx(ne,{title:"Sources",value:Y.size,color:"cyan"})]}),u.jsxs("div",{className:"flex flex-wrap gap-4",children:[u.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:Zy.map(q=>u.jsx("button",{onClick:()=>f(q.value),className:`px-3 py-1 text-xs rounded-md transition-colors ${s===q.value?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:q.label},q.value))}),u.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:Ky.map(q=>u.jsx("button",{onClick:()=>o(q.value),className:`px-3 py-1 text-xs rounded-md transition-colors ${r===q.value?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:q.label},q.value))}),u.jsxs("span",{className:"text-xs text-gray-500 self-center",children:[B.length," events"]})]}),u.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl divide-y divide-gray-800/50",children:B.length===0?u.jsxs("div",{className:"p-8 text-center",children:[u.jsx("p",{className:"text-gray-500 text-sm",children:"No events match filters"}),u.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Try adjusting category or severity filters"})]}):B.slice(0,200).map((q,X)=>u.jsx($y,{event:q},`${q.timestamp}-${X}`))})]})}function $y({event:s}){const f=s.severity==="error"?"bg-rose-400":s.severity==="warning"?"bg-amber-400":"bg-gray-600",r={command:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z",hook:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101",notification:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",cost:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1",sync:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581"};return u.jsxs("div",{className:"px-4 py-3 flex items-start gap-3 hover:bg-gray-800/20 transition-colors",children:[u.jsx("div",{className:`w-1.5 h-1.5 rounded-full mt-2 flex-shrink-0 ${f}`}),u.jsx("div",{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-gray-500",children:u.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:r[s.category]||r.command})})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-sm text-gray-300",children:s.title}),u.jsx(Ee,{label:s.category,variant:Zn(s.severity)})]}),s.detail&&u.jsx("p",{className:"text-xs text-gray-500 mt-0.5 truncate",children:s.detail}),s.source&&u.jsxs("span",{className:"text-[10px] text-gray-600 mt-0.5 block",children:["via ",s.source]})]}),s.timestamp&&u.jsx("span",{className:"text-[10px] text-gray-600 whitespace-nowrap flex-shrink-0",children:ky(s.timestamp)})]})}function ky(s){if(!s)return"-";const f=Date.now()-new Date(s).getTime(),r=Math.floor(f/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function Wy(){const{data:s,loading:f,error:r,refetch:o}=qe("/api/config"),{activeProject:m}=Vn(),[h,x]=A.useState(new Set),[j,p]=A.useState({}),[g,S]=A.useState(!1),[y,T]=A.useState(null);if(f)return u.jsx(yt,{});if(r)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",r]});if(!s)return null;const B=$=>{x(I=>{const fe=new Set(I);return fe.has($)?fe.delete($):fe.add($),fe})},V=Object.keys(j).length>0,L=($,I)=>{p(fe=>({...fe,[$]:I}))},Y=async()=>{if(V){S(!0),T(null);try{const $={};for(const[Ce,Ye]of Object.entries(j))Fy($,Ce,Ye);const I=m?`?project=${m.id}`:"",P=await(await fetch(`/api/config${I}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})).json();P.ok?(T("Saved"),p({}),o(),setTimeout(()=>T(null),2e3)):T(`Error: ${P.error}`)}catch($){T(`Error: ${$}`)}finally{S(!1)}}},q=()=>{p({}),T(null)},X=Object.entries(s).filter(([$,I])=>typeof I=="object"&&I!==null),H=Object.entries(s).filter(([$,I])=>typeof I!="object"||I===null);return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Configuration"}),u.jsx("span",{className:"text-xs text-gray-500",children:".specweave/config.json"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[y&&u.jsx("span",{className:`text-xs ${y.startsWith("Error")?"text-rose-400":"text-emerald-400"}`,children:y}),V&&u.jsxs(u.Fragment,{children:[u.jsx(Ee,{label:`${Object.keys(j).length} changes`,variant:"warning"}),u.jsx("button",{onClick:q,className:"px-3 py-1.5 text-xs text-gray-400 hover:text-gray-200 border border-gray-700 rounded-lg transition-colors",children:"Discard"}),u.jsx("button",{onClick:Y,disabled:g,className:"px-3 py-1.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:g?"Saving...":"Save Changes"})]})]})]}),H.length>0&&u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-3",children:"General"}),u.jsx("div",{className:"space-y-3",children:H.map(([$,I])=>u.jsx(lm,{path:$,label:$,value:j[$]!==void 0?j[$]:I,original:I,onChange:fe=>L($,fe),edited:j[$]!==void 0},$))})]}),X.map(([$,I])=>u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[u.jsxs("button",{onClick:()=>B($),className:"w-full px-5 py-3 flex items-center justify-between hover:bg-gray-800/30 transition-colors",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 capitalize",children:$}),z0(j,$)>0&&u.jsx(Ee,{label:`${z0(j,$)} edited`,variant:"warning"})]}),u.jsx("svg",{className:`w-4 h-4 text-gray-500 transition-transform ${h.has($)?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),h.has($)&&u.jsx("div",{className:"px-5 py-3 border-t border-gray-800",children:u.jsx(tm,{data:I,path:$,edits:j,onChange:L,depth:0})})]},$))]})}function tm({data:s,path:f,edits:r,onChange:o,depth:m}){return m>4?u.jsx("span",{className:"text-xs text-gray-600",children:"..."}):u.jsx("div",{className:"space-y-3",style:{marginLeft:m>0?16:0},children:Object.entries(s).map(([h,x])=>{const j=`${f}.${h}`;return x&&typeof x=="object"&&!Array.isArray(x)?u.jsxs("div",{children:[u.jsx("span",{className:"text-xs text-gray-400 font-mono font-medium",children:h}),u.jsx(tm,{data:x,path:j,edits:r,onChange:o,depth:m+1})]},h):u.jsx(lm,{path:j,label:h,value:r[j]!==void 0?r[j]:x,original:x,onChange:p=>o(j,p),edited:r[j]!==void 0},h)})})}function lm({path:s,label:f,value:r,original:o,onChange:m,edited:h}){return typeof o=="boolean"||typeof r=="boolean"?u.jsxs("div",{className:"flex items-center justify-between py-1",children:[u.jsx("span",{className:"text-xs text-gray-500 font-mono",children:f}),u.jsx("button",{onClick:()=>m(!r),className:`relative w-9 h-5 rounded-full transition-colors ${r?"bg-indigo-600":"bg-gray-700"} ${h?"ring-1 ring-amber-500/50":""}`,children:u.jsx("div",{className:`absolute top-0.5 w-4 h-4 bg-white rounded-full transition-transform ${r?"left-[18px]":"left-0.5"}`})})]}):typeof o=="number"||typeof r=="number"?u.jsxs("div",{className:"flex items-center justify-between py-1",children:[u.jsx("span",{className:"text-xs text-gray-500 font-mono",children:f}),u.jsx("input",{type:"number",value:String(r??""),onChange:x=>m(x.target.value?Number(x.target.value):0),className:`bg-gray-800 border text-xs text-amber-400 font-mono rounded px-2 py-1 w-24 text-right ${h?"border-amber-500/50":"border-gray-700"} focus:ring-indigo-500 focus:border-indigo-500`})]}):Array.isArray(r)?u.jsxs("div",{className:"flex items-center justify-between py-1",children:[u.jsx("span",{className:"text-xs text-gray-500 font-mono",children:f}),u.jsxs("span",{className:"text-xs text-gray-400 font-mono",children:["[",r.length," items]"]})]}):u.jsxs("div",{className:"flex items-center justify-between py-1",children:[u.jsx("span",{className:"text-xs text-gray-500 font-mono",children:f}),u.jsx("input",{type:"text",value:String(r??""),onChange:x=>m(x.target.value),className:`bg-gray-800 border text-xs text-gray-300 rounded px-2 py-1 w-48 text-right ${h?"border-amber-500/50":"border-gray-700"} focus:ring-indigo-500 focus:border-indigo-500`})]})}function z0(s,f){return Object.keys(s).filter(r=>r.startsWith(f+".")).length}function Fy(s,f,r){const o=f.split(".");let m=s;for(let h=0;h<o.length-1;h++)(!m[o[h]]||typeof m[o[h]]!="object")&&(m[o[h]]={}),m=m[o[h]];m[o[o.length-1]]=r}function Py(){const{data:s,loading:f}=qe("/api/plugins/full"),{execute:r,running:o}=yu();if(f)return u.jsx(yt,{});const m=s?.plugins||[],h=s?.skills||[],x=s?.lsp,j=s?.warmup,p=s?.triggerCount||0,g=m.reduce((y,T)=>y+T.skillCount,0),S=m.reduce((y,T)=>y+T.commandCount,0);return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Plugins & LSP"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>r("lsp-status"),disabled:o,className:"px-3 py-1.5 bg-gray-700 hover:bg-gray-600 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:"Check LSP"}),u.jsx("button",{onClick:()=>r("refresh-marketplace"),disabled:o,className:"px-3 py-1.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:o?"Running...":"Refresh Marketplace"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[u.jsx(Dl,{label:"Plugins",value:m.length}),u.jsx(Dl,{label:"Total Skills",value:g}),u.jsx(Dl,{label:"Total Commands",value:S}),u.jsx(Dl,{label:"Trigger Keywords",value:p})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[u.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Installed Plugins"})}),m.length===0?u.jsx("div",{className:"p-5 text-gray-500 text-xs",children:"No plugins installed"}):u.jsxs("table",{className:"w-full",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800",children:[u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Plugin"}),u.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Version"}),u.jsx("th",{className:"text-center px-4 py-2 text-xs text-gray-500",children:"Skills"}),u.jsx("th",{className:"text-center px-4 py-2 text-xs text-gray-500",children:"Commands"})]})}),u.jsx("tbody",{children:m.map(y=>u.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[u.jsx("td",{className:"px-4 py-2 text-sm text-gray-300",children:y.name}),u.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 font-mono",children:y.version}),u.jsx("td",{className:"px-4 py-2 text-center",children:u.jsx(Ee,{label:String(y.skillCount),variant:"info"})}),u.jsx("td",{className:"px-4 py-2 text-center",children:u.jsx(Ee,{label:String(y.commandCount),variant:"default"})})]},y.name))})]})]}),h.length>0&&u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Skill Usage Leaderboard"}),u.jsx(nr,{items:h.sort((y,T)=>T.count-y.count).slice(0,20).map(y=>({label:y.name,value:y.count,color:"#10b981"})),maxBars:20})]}),x&&u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"LSP Status"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ee,{label:x.status,variant:x.status==="ok"?"success":"warning"}),x.checked&&u.jsxs("span",{className:"text-[10px] text-gray-600",children:["Checked: ",new Date(x.checked).toLocaleDateString()]})]})]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-4",children:[u.jsx(Dl,{label:"Total Languages",value:x.stats.totalLanguages}),u.jsx(Dl,{label:"Checked",value:x.stats.checkedLanguages}),u.jsx(Dl,{label:"Binary Missing",value:x.stats.binaryMissing}),u.jsx(Dl,{label:"Plugin Missing",value:x.stats.pluginMissing})]}),x.missing.length>0&&u.jsxs("div",{className:"space-y-2",children:[u.jsx("h4",{className:"text-xs text-gray-500",children:"Missing Languages"}),x.missing.map((y,T)=>u.jsxs("div",{className:"flex items-center justify-between p-2 bg-gray-800/50 rounded",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ee,{label:y.type,variant:y.type==="binary"?"warning":"default"}),u.jsx("span",{className:"text-xs text-gray-300",children:y.language})]}),u.jsx("code",{className:"text-[10px] text-gray-500",children:y.binaryInstall})]},T))]})]}),j&&u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"LSP Warmup Status"}),u.jsxs("span",{className:"text-[10px] text-gray-600",children:[j.elapsed?`${(j.elapsed/1e3).toFixed(1)}s`:""," |"," ",j.timestamp?new Date(j.timestamp).toLocaleString():""]})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[j.warmedUp.map(y=>u.jsx(Ee,{label:y,variant:"success"},y)),j.failed.map(y=>u.jsx(Ee,{label:y,variant:"error"},y))]}),j.warmedUp.length===0&&j.failed.length===0&&u.jsx("p",{className:"text-gray-600 text-xs",children:"No warmup data"})]})]})}function Dl({label:s,value:f}){return u.jsxs("div",{className:"bg-gray-800/50 rounded-lg p-3 text-center",children:[u.jsx("div",{className:"text-lg font-bold text-gray-300",children:f}),u.jsx("div",{className:"text-[10px] text-gray-500",children:s})]})}function Iy(){const{data:s,loading:f}=qe("/api/links"),{data:r,loading:o,refetch:m}=qe("/api/services"),{execute:h,running:x}=yu();if(f||o)return u.jsx(yt,{});const j=(r||[]).filter(y=>y.status==="running").length,p=(r||[]).length,g=async()=>{await h("docs-preview-start"),setTimeout(()=>m(),3e3)},S=async()=>{await h("docs-preview-stop"),setTimeout(()=>m(),2e3)};return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Services & Links"}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Services",value:p,color:"indigo"}),u.jsx(ne,{title:"Running",value:j,color:"emerald"}),u.jsx(ne,{title:"External Links",value:(s||[]).length,color:"cyan"}),u.jsx(ne,{title:"Stopped",value:p-j,color:"rose"})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Service Status"}),u.jsx("div",{className:"space-y-3",children:(r||[]).map((y,T)=>u.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-800/50 rounded-lg",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:`w-2 h-2 rounded-full ${y.status==="running"?"bg-emerald-400":"bg-gray-600"}`}),u.jsxs("div",{children:[u.jsx("span",{className:"text-sm text-gray-300",children:y.name}),u.jsx("div",{className:"text-[10px] text-gray-600",children:y.detail})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ee,{label:y.status,variant:y.status==="running"?"success":"default"}),y.name==="Docs Preview"&&(y.status==="running"?u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("a",{href:y.detail,target:"_blank",rel:"noopener noreferrer",className:"px-2 py-1 text-[10px] text-indigo-400 hover:text-indigo-300 border border-indigo-500/30 rounded transition-colors",children:"Open"}),u.jsx("button",{onClick:S,disabled:x,className:"px-2 py-1 text-[10px] text-rose-400 hover:text-rose-300 border border-rose-500/30 rounded transition-colors disabled:opacity-50",children:"Stop"})]}):u.jsx("button",{onClick:g,disabled:x,className:"px-2 py-1 text-[10px] text-emerald-400 hover:text-emerald-300 border border-emerald-500/30 rounded transition-colors disabled:opacity-50",children:x?"Starting...":"Start"})),y.status==="running"&&y.name!=="Docs Preview"&&u.jsx("a",{href:y.detail,target:"_blank",rel:"noopener noreferrer",className:"px-2 py-1 text-[10px] text-indigo-400 hover:text-indigo-300 border border-indigo-500/30 rounded transition-colors",children:"Open"})]})]},T))})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"External Links"}),(s||[]).length===0?u.jsx("p",{className:"text-xs text-gray-500",children:"No external links configured"}):u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:(s||[]).map((y,T)=>u.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between p-3 bg-gray-800/50 rounded-lg hover:bg-gray-800 transition-colors group",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(ev,{type:y.type}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-gray-300 group-hover:text-white transition-colors",children:y.name}),u.jsx("div",{className:"text-[10px] text-gray-600 truncate max-w-[200px]",children:y.url})]})]}),u.jsx("svg",{className:"w-4 h-4 text-gray-600 group-hover:text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]},T))})]})]})}function ev({type:s}){const f={docs:"bg-indigo-600",github:"bg-gray-700",jira:"bg-blue-700",ado:"bg-blue-600"};return u.jsx("div",{className:`w-8 h-8 rounded-lg ${f[s]||"bg-gray-700"} flex items-center justify-center`,children:u.jsx("span",{className:"text-xs text-white font-bold",children:s[0]?.toUpperCase()})})}function tv(){const[s,f]=A.useState("pending"),[r,o]=A.useState(null),{activeProject:m}=Vn(),{data:h,loading:x,error:j,refetch:p}=qe("/api/notifications");if(x)return u.jsx(yt,{});if(j)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",j]});const g=h||[],S=g.filter(H=>!H.dismissedAt),y=g.filter(H=>!!H.dismissedAt),T=S.filter(H=>H.severity==="critical"),B=S.filter(H=>H.severity==="warning"),V=s==="pending"?S:s==="dismissed"?y:g,L=async H=>{o(H);try{const $=m?`?project=${m.id}`:"";(await fetch(`/api/notifications/${H}/dismiss${$}`,{method:"POST"})).ok&&p()}finally{o(null)}},Y=async()=>{o("__all__");try{const H=m?`?project=${m.id}`:"";for(const $ of S)await fetch(`/api/notifications/${$.id}/dismiss${H}`,{method:"POST"});p()}finally{o(null)}},q=H=>H==="critical"?"error":H==="warning"?"warning":"info",X=H=>H==="critical"?"border-l-rose-500":H==="warning"?"border-l-amber-500":"border-l-blue-500";return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Notifications"}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Pending",value:S.length,color:"indigo"}),u.jsx(ne,{title:"Critical",value:T.length,color:"rose"}),u.jsx(ne,{title:"Warnings",value:B.length,color:"amber"}),u.jsx(ne,{title:"Dismissed",value:y.length,color:"cyan"})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:[{value:"pending",label:`Pending (${S.length})`},{value:"dismissed",label:`Dismissed (${y.length})`},{value:"all",label:`All (${g.length})`}].map(H=>u.jsx("button",{onClick:()=>f(H.value),className:`px-3 py-1.5 text-xs rounded-md transition-colors ${s===H.value?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:H.label},H.value))}),S.length>0&&u.jsx("button",{onClick:Y,disabled:r==="__all__",className:"px-3 py-1.5 text-xs text-gray-400 hover:text-gray-200 border border-gray-700 rounded-lg transition-colors disabled:opacity-50",children:r==="__all__"?"Dismissing...":"Dismiss All"})]}),u.jsx("div",{className:"space-y-2",children:V.length===0?u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:[u.jsx("p",{className:"text-gray-500 text-sm",children:s==="pending"?"No pending notifications":"No notifications"}),u.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Notifications appear here when imports complete, discrepancies are found, or syncs fail"})]}):V.map(H=>u.jsxs("div",{className:`bg-gray-900/50 border border-gray-800 border-l-4 ${X(H.severity)} rounded-xl p-4 flex items-start gap-4 ${H.dismissedAt?"opacity-60":""}`,children:[u.jsx(lv,{severity:H.severity}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"text-sm font-medium text-gray-200",children:H.title}),u.jsx(Ee,{label:H.severity,variant:q(H.severity)}),H.type&&u.jsx(Ee,{label:H.type,variant:"default"})]}),H.message&&u.jsx("p",{className:"text-xs text-gray-400 mb-2",children:H.message}),u.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-gray-600",children:[u.jsx("span",{children:new Date(H.createdAt).toLocaleString()}),H.source&&u.jsxs("span",{children:["via ",H.source]}),H.dismissedAt&&u.jsxs("span",{children:["Dismissed ",new Date(H.dismissedAt).toLocaleString()]})]})]}),!H.dismissedAt&&u.jsx("button",{onClick:()=>L(H.id),disabled:r===H.id,className:"px-2 py-1 text-xs text-gray-500 hover:text-gray-300 hover:bg-gray-800 rounded transition-colors disabled:opacity-50 flex-shrink-0",children:r===H.id?"...":"Dismiss"})]},H.id))})]})}function lv({severity:s}){return s==="critical"?u.jsx("div",{className:"w-8 h-8 rounded-full bg-rose-500/10 flex items-center justify-center flex-shrink-0",children:u.jsx("svg",{className:"w-4 h-4 text-rose-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4.5c-.77-.833-2.694-.833-3.464 0L3.34 16.5c-.77.833.192 2.5 1.732 2.5z"})})}):s==="warning"?u.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:u.jsx("svg",{className:"w-4 h-4 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}):u.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-500/10 flex items-center justify-center flex-shrink-0",children:u.jsx("svg",{className:"w-4 h-4 text-blue-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}function av(){const{data:s,loading:f,error:r}=qe("/api/repos"),{execute:o,running:m}=yu();if(f)return u.jsx(yt,{});if(r)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",r]});const h=s||[],x=[...new Set(h.map(p=>p.org))],j=h.filter(p=>p.hasSpecweave).length;return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Repositories"}),h.length>0&&u.jsx("button",{onClick:()=>o("clone-repos"),disabled:m,className:"px-3 py-1.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:m?"Cloning...":"Clone All"})]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Repositories",value:h.length,color:"indigo"}),u.jsx(ne,{title:"Organizations",value:x.length,color:"cyan"}),u.jsx(ne,{title:"With SpecWeave",value:j,color:"emerald"}),u.jsx(ne,{title:"Without SpecWeave",value:h.length-j,color:"amber"})]}),h.length===0?u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:[u.jsx("p",{className:"text-gray-500 text-sm",children:"No repositories found"}),u.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"This project doesn't use multi-repo mode, or the repositories/ directory hasn't been set up yet"})]}):u.jsx(u.Fragment,{children:x.map(p=>{const g=h.filter(S=>S.org===p);return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx(nv,{}),u.jsx("h3",{className:"text-sm font-medium text-gray-300",children:p}),u.jsxs("span",{className:"text-[10px] text-gray-600",children:[g.length," repos"]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:g.map(S=>u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-4",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(iv,{}),u.jsx("span",{className:"text-sm font-medium text-gray-300",children:S.name})]}),u.jsx(Ee,{label:S.hasSpecweave?"initialized":"no specweave",variant:S.hasSpecweave?"success":"default"})]}),u.jsxs("div",{className:"space-y-1.5 mt-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-[10px] text-gray-500",children:"Organization"}),u.jsx("span",{className:"text-[10px] text-gray-400",children:S.org})]}),S.lastModified&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-[10px] text-gray-500",children:"Last Modified"}),u.jsx("span",{className:"text-[10px] text-gray-400",children:uv(S.lastModified)})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-[10px] text-gray-500",children:"Path"}),u.jsx("span",{className:"text-[10px] text-gray-600 font-mono truncate max-w-[150px]",title:S.path,children:S.path.split("/").slice(-2).join("/")})]})]})]},S.path))})]},p)})})]})}function nv(){return u.jsx("div",{className:"w-6 h-6 rounded bg-gray-700 flex items-center justify-center",children:u.jsx("svg",{className:"w-3.5 h-3.5 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})})})}function iv(){return u.jsx("svg",{className:"w-4 h-4 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})})}function uv(s){if(!s)return"-";const f=Date.now()-new Date(s).getTime(),r=Math.floor(f/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function sv(){const{id:s}=vg(),{data:f,loading:r,error:o}=qe(`/api/increments/${s||"_none"}`);if(!s)return u.jsx("div",{className:"p-6 text-gray-500 text-sm",children:"No increment ID specified"});if(r)return u.jsx(yt,{});if(o)return u.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",o]});if(!f)return u.jsx("div",{className:"p-6 text-gray-500 text-sm",children:"Increment not found"});const m=f.taskSummary.total>0?Math.round(f.taskSummary.completed/f.taskSummary.total*100):0,h=f.acSummary.total>0?Math.round(f.acSummary.completed/f.acSummary.total*100):0;return u.jsxs("div",{className:"p-6 space-y-6",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[u.jsx("span",{className:"text-xs text-indigo-400 font-mono",children:f.dirName}),u.jsx(Ee,{label:f.metadata.status||"unknown",variant:Zn(f.metadata.status||"")}),f.metadata.type&&u.jsx("span",{className:"text-xs text-gray-400 capitalize",children:f.metadata.type}),f.metadata.priority&&u.jsx(cv,{priority:f.metadata.priority})]}),u.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:f.metadata.title||f.id}),f.metadata.project&&u.jsxs("span",{className:"text-xs text-gray-500",children:["Project: ",f.metadata.project]})]}),u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsx(ne,{title:"Tasks",value:`${f.taskSummary.completed}/${f.taskSummary.total}`,color:"indigo"}),u.jsx(ne,{title:"Task Progress",value:`${m}%`,color:"cyan"}),u.jsx(ne,{title:"ACs",value:`${f.acSummary.completed}/${f.acSummary.total}`,color:"emerald"}),u.jsx(ne,{title:"AC Progress",value:`${h}%`,color:"amber"})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5 space-y-4",children:[u.jsx(C0,{label:"Tasks",completed:f.taskSummary.completed,total:f.taskSummary.total,color:"indigo"}),u.jsx(C0,{label:"Acceptance Criteria",completed:f.acSummary.completed,total:f.acSummary.total,color:"emerald"})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[u.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:u.jsxs("h3",{className:"text-sm font-medium text-gray-300",children:["Tasks (",f.tasks.length,")"]})}),f.tasks.length===0?u.jsx("div",{className:"p-5 text-center text-gray-500 text-xs",children:"No tasks found in tasks.md"}):u.jsx("div",{className:"divide-y divide-gray-800/50",children:f.tasks.map(x=>u.jsxs("div",{className:"px-5 py-3 flex items-center gap-3",children:[u.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center flex-shrink-0 ${x.status==="completed"?"bg-indigo-500/20 border-indigo-500 text-indigo-400":"border-gray-600"}`,children:x.status==="completed"&&u.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-xs text-gray-500 font-mono",children:x.id}),u.jsx("span",{className:`text-sm ${x.status==="completed"?"text-gray-500 line-through":"text-gray-300"}`,children:x.title})]}),(x.userStory||x.acs)&&u.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[x.userStory&&u.jsx("span",{className:"text-[10px] text-indigo-400",children:x.userStory}),x.acs?.map(j=>u.jsx("span",{className:"text-[10px] text-emerald-500",children:j},j))]})]})]},x.id))})]}),f.acs.length>0&&u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[u.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:u.jsxs("h3",{className:"text-sm font-medium text-gray-300",children:["Acceptance Criteria (",f.acs.length,")"]})}),u.jsx("div",{className:"divide-y divide-gray-800/50",children:f.acs.map(x=>u.jsxs("div",{className:"px-5 py-3 flex items-start gap-3",children:[u.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center flex-shrink-0 mt-0.5 ${x.completed?"bg-emerald-500/20 border-emerald-500 text-emerald-400":"border-gray-600"}`,children:x.completed&&u.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),u.jsxs("div",{children:[u.jsx("span",{className:"text-xs text-emerald-500 font-mono",children:x.id}),u.jsx("span",{className:`text-sm ml-2 ${x.completed?"text-gray-500 line-through":"text-gray-300"}`,children:x.text})]})]},x.id))})]}),u.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[u.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-3",children:"Metadata"}),u.jsx("div",{className:"space-y-1.5",children:Object.entries(f.metadata).filter(([x])=>!["title"].includes(x)).map(([x,j])=>u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-gray-500 font-mono",children:x}),u.jsx("span",{className:"text-xs text-gray-400",children:typeof j=="object"?JSON.stringify(j):String(j??"")})]},x))})]})]})}function C0({label:s,completed:f,total:r,color:o}){const m=r>0?Math.round(f/r*100):0,h=o==="emerald"?"bg-emerald-500":"bg-indigo-500";return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[u.jsx("span",{className:"text-xs text-gray-400",children:s}),u.jsxs("span",{className:"text-xs text-gray-500",children:[f,"/",r," (",m,"%)"]})]}),u.jsx("div",{className:"w-full h-2 bg-gray-800 rounded-full overflow-hidden",children:u.jsx("div",{className:`h-full ${h} rounded-full transition-all`,style:{width:`${m}%`}})})]})}function cv({priority:s}){const f={P0:"text-rose-400 bg-rose-500/10",P1:"text-amber-400 bg-amber-500/10",P2:"text-cyan-400 bg-cyan-500/10",P3:"text-gray-400 bg-gray-500/10"};return u.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded ${f[s]||f.P2}`,children:s})}function rv(){const s=my();return u.jsx(F0.Provider,{value:s,children:u.jsxs("div",{className:"flex min-h-screen bg-gray-950 text-gray-100",children:[u.jsx(gy,{}),u.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[u.jsx(yy,{}),u.jsx("main",{className:"flex-1 overflow-y-auto",children:u.jsxs(Dg,{children:[u.jsx(Pe,{path:"/",element:u.jsx(zy,{})}),u.jsx(Pe,{path:"/increments",element:u.jsx(My,{})}),u.jsx(Pe,{path:"/increments/:id",element:u.jsx(sv,{})}),u.jsx(Pe,{path:"/analytics",element:u.jsx(Oy,{})}),u.jsx(Pe,{path:"/costs",element:u.jsx(Hy,{})}),u.jsx(Pe,{path:"/sync",element:u.jsx(Ly,{})}),u.jsx(Pe,{path:"/errors",element:u.jsx(Yy,{})}),u.jsx(Pe,{path:"/activity",element:u.jsx(Jy,{})}),u.jsx(Pe,{path:"/config",element:u.jsx(Wy,{})}),u.jsx(Pe,{path:"/plugins",element:u.jsx(Py,{})}),u.jsx(Pe,{path:"/services",element:u.jsx(Iy,{})}),u.jsx(Pe,{path:"/notifications",element:u.jsx(tv,{})}),u.jsx(Pe,{path:"/repos",element:u.jsx(av,{})}),u.jsx(Pe,{path:"*",element:u.jsxs("div",{className:"p-6 text-center",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-200 mb-2",children:"Page Not Found"}),u.jsx("p",{className:"text-sm text-gray-500",children:"The page you're looking for doesn't exist."})]})})]})})]})]})})}wx.createRoot(document.getElementById("root")).render(u.jsx(A.StrictMode,{children:u.jsx(ny,{children:u.jsx(rv,{})})}));