claude-code-rehab 1.1.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,81 @@
1
+ (function(){const T=document.createElement("link").relList;if(T&&T.supports&&T.supports("modulepreload"))return;for(const C of document.querySelectorAll('link[rel="modulepreload"]'))f(C);new MutationObserver(C=>{for(const D of C)if(D.type==="childList")for(const j of D.addedNodes)j.tagName==="LINK"&&j.rel==="modulepreload"&&f(j)}).observe(document,{childList:!0,subtree:!0});function p(C){const D={};return C.integrity&&(D.integrity=C.integrity),C.referrerPolicy&&(D.referrerPolicy=C.referrerPolicy),C.crossOrigin==="use-credentials"?D.credentials="include":C.crossOrigin==="anonymous"?D.credentials="omit":D.credentials="same-origin",D}function f(C){if(C.ep)return;C.ep=!0;const D=p(C);fetch(C.href,D)}})();var of={exports:{}},zn={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Sr;function fy(){if(Sr)return zn;Sr=1;var d=Symbol.for("react.transitional.element"),T=Symbol.for("react.fragment");function p(f,C,D){var j=null;if(D!==void 0&&(j=""+D),C.key!==void 0&&(j=""+C.key),"key"in C){D={};for(var m in C)m!=="key"&&(D[m]=C[m])}else D=C;return C=D.ref,{$$typeof:d,type:f,key:j,ref:C!==void 0?C:null,props:D}}return zn.Fragment=T,zn.jsx=p,zn.jsxs=p,zn}var xr;function oy(){return xr||(xr=1,of.exports=fy()),of.exports}var s=oy(),sf={exports:{}},An={},df={exports:{}},rf={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Tr;function sy(){return Tr||(Tr=1,(function(d){function T(M,N){var J=M.length;M.push(N);t:for(;0<J;){var P=J-1>>>1,nt=M[P];if(0<C(nt,N))M[P]=N,M[J]=nt,J=P;else break t}}function p(M){return M.length===0?null:M[0]}function f(M){if(M.length===0)return null;var N=M[0],J=M.pop();if(J!==N){M[0]=J;t:for(var P=0,nt=M.length,r=nt>>>1;P<r;){var _=2*(P+1)-1,q=M[_],L=_+1,$=M[L];if(0>C(q,J))L<nt&&0>C($,q)?(M[P]=$,M[L]=J,P=L):(M[P]=q,M[_]=J,P=_);else if(L<nt&&0>C($,J))M[P]=$,M[L]=J,P=L;else break t}}return N}function C(M,N){var J=M.sortIndex-N.sortIndex;return J!==0?J:M.id-N.id}if(d.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var D=performance;d.unstable_now=function(){return D.now()}}else{var j=Date,m=j.now();d.unstable_now=function(){return j.now()-m}}var x=[],g=[],Y=1,R=null,K=3,at=!1,U=!1,G=!1,w=!1,rt=typeof setTimeout=="function"?setTimeout:null,St=typeof clearTimeout=="function"?clearTimeout:null,ft=typeof setImmediate<"u"?setImmediate:null;function H(M){for(var N=p(g);N!==null;){if(N.callback===null)f(g);else if(N.startTime<=M)f(g),N.sortIndex=N.expirationTime,T(x,N);else break;N=p(g)}}function B(M){if(G=!1,H(M),!U)if(p(x)!==null)U=!0,V||(V=!0,xt());else{var N=p(g);N!==null&&Ft(B,N.startTime-M)}}var V=!1,Z=-1,ht=5,Mt=-1;function Wt(){return w?!0:!(d.unstable_now()-Mt<ht)}function lt(){if(w=!1,V){var M=d.unstable_now();Mt=M;var N=!0;try{t:{U=!1,G&&(G=!1,St(Z),Z=-1),at=!0;var J=K;try{l:{for(H(M),R=p(x);R!==null&&!(R.expirationTime>M&&Wt());){var P=R.callback;if(typeof P=="function"){R.callback=null,K=R.priorityLevel;var nt=P(R.expirationTime<=M);if(M=d.unstable_now(),typeof nt=="function"){R.callback=nt,H(M),N=!0;break l}R===p(x)&&f(x),H(M)}else f(x);R=p(x)}if(R!==null)N=!0;else{var r=p(g);r!==null&&Ft(B,r.startTime-M),N=!1}}break t}finally{R=null,K=J,at=!1}N=void 0}}finally{N?xt():V=!1}}}var xt;if(typeof ft=="function")xt=function(){ft(lt)};else if(typeof MessageChannel<"u"){var Zt=new MessageChannel,Gt=Zt.port2;Zt.port1.onmessage=lt,xt=function(){Gt.postMessage(null)}}else xt=function(){rt(lt,0)};function Ft(M,N){Z=rt(function(){M(d.unstable_now())},N)}d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(M){M.callback=null},d.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ht=0<M?Math.floor(1e3/M):5},d.unstable_getCurrentPriorityLevel=function(){return K},d.unstable_next=function(M){switch(K){case 1:case 2:case 3:var N=3;break;default:N=K}var J=K;K=N;try{return M()}finally{K=J}},d.unstable_requestPaint=function(){w=!0},d.unstable_runWithPriority=function(M,N){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var J=K;K=M;try{return N()}finally{K=J}},d.unstable_scheduleCallback=function(M,N,J){var P=d.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?P+J:P):J=P,M){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=J+nt,M={id:Y++,callback:N,priorityLevel:M,startTime:J,expirationTime:nt,sortIndex:-1},J>P?(M.sortIndex=J,T(g,M),p(x)===null&&M===p(g)&&(G?(St(Z),Z=-1):G=!0,Ft(B,J-P))):(M.sortIndex=nt,T(x,M),U||at||(U=!0,V||(V=!0,xt()))),M},d.unstable_shouldYield=Wt,d.unstable_wrapCallback=function(M){var N=K;return function(){var J=K;K=N;try{return M.apply(this,arguments)}finally{K=J}}}})(rf)),rf}var zr;function dy(){return zr||(zr=1,df.exports=sy()),df.exports}var hf={exports:{}},I={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Ar;function ry(){if(Ar)return I;Ar=1;var d=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),j=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),K=Symbol.iterator;function at(r){return r===null||typeof r!="object"?null:(r=K&&r[K]||r["@@iterator"],typeof r=="function"?r:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,w={};function rt(r,_,q){this.props=r,this.context=_,this.refs=w,this.updater=q||U}rt.prototype.isReactComponent={},rt.prototype.setState=function(r,_){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,_,"setState")},rt.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function St(){}St.prototype=rt.prototype;function ft(r,_,q){this.props=r,this.context=_,this.refs=w,this.updater=q||U}var H=ft.prototype=new St;H.constructor=ft,G(H,rt.prototype),H.isPureReactComponent=!0;var B=Array.isArray;function V(){}var Z={H:null,A:null,T:null,S:null},ht=Object.prototype.hasOwnProperty;function Mt(r,_,q){var L=q.ref;return{$$typeof:d,type:r,key:_,ref:L!==void 0?L:null,props:q}}function Wt(r,_){return Mt(r.type,_,r.props)}function lt(r){return typeof r=="object"&&r!==null&&r.$$typeof===d}function xt(r){var _={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(q){return _[q]})}var Zt=/\/+/g;function Gt(r,_){return typeof r=="object"&&r!==null&&r.key!=null?xt(""+r.key):_.toString(36)}function Ft(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(V,V):(r.status="pending",r.then(function(_){r.status==="pending"&&(r.status="fulfilled",r.value=_)},function(_){r.status==="pending"&&(r.status="rejected",r.reason=_)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function M(r,_,q,L,$){var ut=typeof r;(ut==="undefined"||ut==="boolean")&&(r=null);var vt=!1;if(r===null)vt=!0;else switch(ut){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(r.$$typeof){case d:case T:vt=!0;break;case Y:return vt=r._init,M(vt(r._payload),_,q,L,$)}}if(vt)return $=$(r),vt=L===""?"."+Gt(r,0):L,B($)?(q="",vt!=null&&(q=vt.replace(Zt,"$&/")+"/"),M($,_,q,"",function(Oa){return Oa})):$!=null&&(lt($)&&($=Wt($,q+($.key==null||r&&r.key===$.key?"":(""+$.key).replace(Zt,"$&/")+"/")+vt)),_.push($)),1;vt=0;var It=L===""?".":L+":";if(B(r))for(var Rt=0;Rt<r.length;Rt++)L=r[Rt],ut=It+Gt(L,Rt),vt+=M(L,_,q,ut,$);else if(Rt=at(r),typeof Rt=="function")for(r=Rt.call(r),Rt=0;!(L=r.next()).done;)L=L.value,ut=It+Gt(L,Rt++),vt+=M(L,_,q,ut,$);else if(ut==="object"){if(typeof r.then=="function")return M(Ft(r),_,q,L,$);throw _=String(r),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return vt}function N(r,_,q){if(r==null)return r;var L=[],$=0;return M(r,L,"","",function(ut){return _.call(q,ut,$++)}),L}function J(r){if(r._status===-1){var _=r._result;_=_(),_.then(function(q){(r._status===0||r._status===-1)&&(r._status=1,r._result=q)},function(q){(r._status===0||r._status===-1)&&(r._status=2,r._result=q)}),r._status===-1&&(r._status=0,r._result=_)}if(r._status===1)return r._result.default;throw r._result}var P=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},nt={map:N,forEach:function(r,_,q){N(r,function(){_.apply(this,arguments)},q)},count:function(r){var _=0;return N(r,function(){_++}),_},toArray:function(r){return N(r,function(_){return _})||[]},only:function(r){if(!lt(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};return I.Activity=R,I.Children=nt,I.Component=rt,I.Fragment=p,I.Profiler=C,I.PureComponent=ft,I.StrictMode=f,I.Suspense=x,I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,I.__COMPILER_RUNTIME={__proto__:null,c:function(r){return Z.H.useMemoCache(r)}},I.cache=function(r){return function(){return r.apply(null,arguments)}},I.cacheSignal=function(){return null},I.cloneElement=function(r,_,q){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var L=G({},r.props),$=r.key;if(_!=null)for(ut in _.key!==void 0&&($=""+_.key),_)!ht.call(_,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&_.ref===void 0||(L[ut]=_[ut]);var ut=arguments.length-2;if(ut===1)L.children=q;else if(1<ut){for(var vt=Array(ut),It=0;It<ut;It++)vt[It]=arguments[It+2];L.children=vt}return Mt(r.type,$,L)},I.createContext=function(r){return r={$$typeof:j,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:D,_context:r},r},I.createElement=function(r,_,q){var L,$={},ut=null;if(_!=null)for(L in _.key!==void 0&&(ut=""+_.key),_)ht.call(_,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&($[L]=_[L]);var vt=arguments.length-2;if(vt===1)$.children=q;else if(1<vt){for(var It=Array(vt),Rt=0;Rt<vt;Rt++)It[Rt]=arguments[Rt+2];$.children=It}if(r&&r.defaultProps)for(L in vt=r.defaultProps,vt)$[L]===void 0&&($[L]=vt[L]);return Mt(r,ut,$)},I.createRef=function(){return{current:null}},I.forwardRef=function(r){return{$$typeof:m,render:r}},I.isValidElement=lt,I.lazy=function(r){return{$$typeof:Y,_payload:{_status:-1,_result:r},_init:J}},I.memo=function(r,_){return{$$typeof:g,type:r,compare:_===void 0?null:_}},I.startTransition=function(r){var _=Z.T,q={};Z.T=q;try{var L=r(),$=Z.S;$!==null&&$(q,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(V,P)}catch(ut){P(ut)}finally{_!==null&&q.types!==null&&(_.types=q.types),Z.T=_}},I.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},I.use=function(r){return Z.H.use(r)},I.useActionState=function(r,_,q){return Z.H.useActionState(r,_,q)},I.useCallback=function(r,_){return Z.H.useCallback(r,_)},I.useContext=function(r){return Z.H.useContext(r)},I.useDebugValue=function(){},I.useDeferredValue=function(r,_){return Z.H.useDeferredValue(r,_)},I.useEffect=function(r,_){return Z.H.useEffect(r,_)},I.useEffectEvent=function(r){return Z.H.useEffectEvent(r)},I.useId=function(){return Z.H.useId()},I.useImperativeHandle=function(r,_,q){return Z.H.useImperativeHandle(r,_,q)},I.useInsertionEffect=function(r,_){return Z.H.useInsertionEffect(r,_)},I.useLayoutEffect=function(r,_){return Z.H.useLayoutEffect(r,_)},I.useMemo=function(r,_){return Z.H.useMemo(r,_)},I.useOptimistic=function(r,_){return Z.H.useOptimistic(r,_)},I.useReducer=function(r,_,q){return Z.H.useReducer(r,_,q)},I.useRef=function(r){return Z.H.useRef(r)},I.useState=function(r){return Z.H.useState(r)},I.useSyncExternalStore=function(r,_,q){return Z.H.useSyncExternalStore(r,_,q)},I.useTransition=function(){return Z.H.useTransition()},I.version="19.2.4",I}var Mr;function vf(){return Mr||(Mr=1,hf.exports=ry()),hf.exports}var yf={exports:{}},$t={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Er;function hy(){if(Er)return $t;Er=1;var d=vf();function T(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var Y=2;Y<arguments.length;Y++)g+="&args[]="+encodeURIComponent(arguments[Y])}return"Minified React error #"+x+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(){}var f={d:{f:p,r:function(){throw Error(T(522))},D:p,C:p,L:p,m:p,X:p,S:p,M:p},p:0,findDOMNode:null},C=Symbol.for("react.portal");function D(x,g,Y){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:R==null?null:""+R,children:x,containerInfo:g,implementation:Y}}var j=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,$t.createPortal=function(x,g){var Y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(T(299));return D(x,g,null,Y)},$t.flushSync=function(x){var g=j.T,Y=f.p;try{if(j.T=null,f.p=2,x)return x()}finally{j.T=g,f.p=Y,f.d.f()}},$t.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,f.d.C(x,g))},$t.prefetchDNS=function(x){typeof x=="string"&&f.d.D(x)},$t.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var Y=g.as,R=m(Y,g.crossOrigin),K=typeof g.integrity=="string"?g.integrity:void 0,at=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;Y==="style"?f.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:R,integrity:K,fetchPriority:at}):Y==="script"&&f.d.X(x,{crossOrigin:R,integrity:K,fetchPriority:at,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},$t.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var Y=m(g.as,g.crossOrigin);f.d.M(x,{crossOrigin:Y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&f.d.M(x)},$t.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var Y=g.as,R=m(Y,g.crossOrigin);f.d.L(x,Y,{crossOrigin:R,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})}},$t.preloadModule=function(x,g){if(typeof x=="string")if(g){var Y=m(g.as,g.crossOrigin);f.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:Y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else f.d.m(x)},$t.requestFormReset=function(x){f.d.r(x)},$t.unstable_batchedUpdates=function(x,g){return x(g)},$t.useFormState=function(x,g,Y){return j.H.useFormState(x,g,Y)},$t.useFormStatus=function(){return j.H.useHostTransitionStatus()},$t.version="19.2.4",$t}var jr;function yy(){if(jr)return yf.exports;jr=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(T){console.error(T)}}return d(),yf.exports=hy(),yf.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var _r;function my(){if(_r)return An;_r=1;var d=dy(),T=vf(),p=yy();function f(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function C(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function D(t){var l=t,e=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(e=l.return),t=l.return;while(t)}return l.tag===3?e:null}function j(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function m(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function x(t){if(D(t)!==t)throw Error(f(188))}function g(t){var l=t.alternate;if(!l){if(l=D(t),l===null)throw Error(f(188));return l!==t?null:t}for(var e=t,a=l;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return x(n),t;if(u===a)return x(n),l;u=u.sibling}throw Error(f(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===e){i=!0,e=n,a=u;break}if(c===a){i=!0,a=n,e=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===e){i=!0,e=u,a=n;break}if(c===a){i=!0,a=u,e=n;break}c=c.sibling}if(!i)throw Error(f(189))}}if(e.alternate!==a)throw Error(f(190))}if(e.tag!==3)throw Error(f(188));return e.stateNode.current===e?t:l}function Y(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=Y(t),l!==null)return l;t=t.sibling}return null}var R=Object.assign,K=Symbol.for("react.element"),at=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),rt=Symbol.for("react.profiler"),St=Symbol.for("react.consumer"),ft=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),Wt=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function xt(t){return t===null||typeof t!="object"?null:(t=lt&&t[lt]||t["@@iterator"],typeof t=="function"?t:null)}var Zt=Symbol.for("react.client.reference");function Gt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Zt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case G:return"Fragment";case rt:return"Profiler";case w:return"StrictMode";case B:return"Suspense";case V:return"SuspenseList";case Mt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case U:return"Portal";case ft:return t.displayName||"Context";case St:return(t._context.displayName||"Context")+".Consumer";case H:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return l=t.displayName||null,l!==null?l:Gt(t.type)||"Memo";case ht:l=t._payload,t=t._init;try{return Gt(t(l))}catch{}}return null}var Ft=Array.isArray,M=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=p.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},P=[],nt=-1;function r(t){return{current:t}}function _(t){0>nt||(t.current=P[nt],P[nt]=null,nt--)}function q(t,l){nt++,P[nt]=t.current,t.current=l}var L=r(null),$=r(null),ut=r(null),vt=r(null);function It(t,l){switch(q(ut,l),q($,t),q(L,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?Zd(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=Zd(l),t=kd(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}_(L),q(L,t)}function Rt(){_(L),_($),_(ut)}function Oa(t){t.memoizedState!==null&&q(vt,t);var l=L.current,e=kd(l,t.type);l!==e&&(q($,t),q(L,e))}function Mn(t){$.current===t&&(_(L),_($)),vt.current===t&&(_(vt),pn._currentValue=J)}var ku,bf;function Me(t){if(ku===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\n( *(at )?)/);ku=l&&l[1]||"",bf=-1<e.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ku+t+bf}var Vu=!1;function Ju(t,l){if(!t||Vu)return"";Vu=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(z){var S=z}Reflect.construct(t,[],O)}else{try{O.call()}catch(z){S=z}t.call(O.prototype)}}else{try{throw Error()}catch(z){S=z}(O=t())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(z){if(z&&S&&typeof z.stack=="string")return[z.stack,S.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var o=i.split(`
44
+ `),b=c.split(`
45
+ `);for(n=a=0;a<o.length&&!o[a].includes("DetermineComponentFrameRoot");)a++;for(;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;if(a===o.length||n===b.length)for(a=o.length-1,n=b.length-1;1<=a&&0<=n&&o[a]!==b[n];)n--;for(;1<=a&&0<=n;a--,n--)if(o[a]!==b[n]){if(a!==1||n!==1)do if(a--,n--,0>n||o[a]!==b[n]){var A=`
46
+ `+o[a].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=a&&0<=n);break}}}finally{Vu=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?Me(e):""}function Gr(t,l){switch(t.tag){case 26:case 27:case 5:return Me(t.type);case 16:return Me("Lazy");case 13:return t.child!==l&&l!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return Ju(t.type,!1);case 11:return Ju(t.type.render,!1);case 1:return Ju(t.type,!0);case 31:return Me("Activity");default:return""}}function pf(t){try{var l="",e=null;do l+=Gr(t,e),e=t,t=t.return;while(t);return l}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Ku=Object.prototype.hasOwnProperty,wu=d.unstable_scheduleCallback,Wu=d.unstable_cancelCallback,Lr=d.unstable_shouldYield,Xr=d.unstable_requestPaint,cl=d.unstable_now,Qr=d.unstable_getCurrentPriorityLevel,Sf=d.unstable_ImmediatePriority,xf=d.unstable_UserBlockingPriority,En=d.unstable_NormalPriority,Zr=d.unstable_LowPriority,Tf=d.unstable_IdlePriority,kr=d.log,Vr=d.unstable_setDisableYieldValue,Da=null,fl=null;function te(t){if(typeof kr=="function"&&Vr(t),fl&&typeof fl.setStrictMode=="function")try{fl.setStrictMode(Da,t)}catch{}}var ol=Math.clz32?Math.clz32:wr,Jr=Math.log,Kr=Math.LN2;function wr(t){return t>>>=0,t===0?32:31-(Jr(t)/Kr|0)|0}var jn=256,_n=262144,On=4194304;function Ee(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Dn(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=Ee(a):(i&=c,i!==0?n=Ee(i):e||(e=c&~t,e!==0&&(n=Ee(e))))):(c=a&~u,c!==0?n=Ee(c):i!==0?n=Ee(i):e||(e=a&~t,e!==0&&(n=Ee(e)))),n===0?0:l!==0&&l!==n&&(l&u)===0&&(u=n&-n,e=l&-l,u>=e||u===32&&(e&4194048)!==0)?l:n}function Ca(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Wr(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zf(){var t=On;return On<<=1,(On&62914560)===0&&(On=4194304),t}function $u(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Ra(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function $r(t,l,e,a,n,u){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var c=t.entanglements,o=t.expirationTimes,b=t.hiddenUpdates;for(e=i&~e;0<e;){var A=31-ol(e),O=1<<A;c[A]=0,o[A]=-1;var S=b[A];if(S!==null)for(b[A]=null,A=0;A<S.length;A++){var z=S[A];z!==null&&(z.lane&=-536870913)}e&=~O}a!==0&&Af(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~l))}function Af(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var a=31-ol(l);t.entangledLanes|=l,t.entanglements[a]=t.entanglements[a]|1073741824|e&261930}function Mf(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var a=31-ol(e),n=1<<a;n&l|t[a]&l&&(t[a]|=l),e&=~n}}function Ef(t,l){var e=l&-l;return e=(e&42)!==0?1:Fu(e),(e&(t.suspendedLanes|l))!==0?0:e}function Fu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Iu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function jf(){var t=N.p;return t!==0?t:(t=window.event,t===void 0?32:hr(t.type))}function _f(t,l){var e=N.p;try{return N.p=t,l()}finally{N.p=e}}var le=Math.random().toString(36).slice(2),kt="__reactFiber$"+le,tl="__reactProps$"+le,Ve="__reactContainer$"+le,Pu="__reactEvents$"+le,Fr="__reactListeners$"+le,Ir="__reactHandles$"+le,Of="__reactResources$"+le,Ua="__reactMarker$"+le;function ti(t){delete t[kt],delete t[tl],delete t[Pu],delete t[Fr],delete t[Ir]}function Je(t){var l=t[kt];if(l)return l;for(var e=t.parentNode;e;){if(l=e[Ve]||e[kt]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=Fd(t);t!==null;){if(e=t[kt])return e;t=Fd(t)}return l}t=e,e=t.parentNode}return null}function Ke(t){if(t=t[kt]||t[Ve]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function Ha(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(f(33))}function we(t){var l=t[Of];return l||(l=t[Of]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Xt(t){t[Ua]=!0}var Df=new Set,Cf={};function je(t,l){We(t,l),We(t+"Capture",l)}function We(t,l){for(Cf[t]=l,t=0;t<l.length;t++)Df.add(l[t])}var Pr=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]*$"),Rf={},Uf={};function t0(t){return Ku.call(Uf,t)?!0:Ku.call(Rf,t)?!1:Pr.test(t)?Uf[t]=!0:(Rf[t]=!0,!1)}function Cn(t,l,e){if(t0(l))if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":t.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,""+e)}}function Rn(t,l,e){if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttribute(l,""+e)}}function Nl(t,l,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttributeNS(l,e,""+a)}}function bl(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Hf(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function l0(t,l,e){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.call(this,i)}}),Object.defineProperty(t,l,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function li(t){if(!t._valueTracker){var l=Hf(t)?"checked":"value";t._valueTracker=l0(t,l,""+t[l])}}function Bf(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),a="";return t&&(a=Hf(t)?t.checked?"true":"false":t.value),t=a,t!==e?(l.setValue(t),!0):!1}function Un(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var e0=/[\n"\\]/g;function pl(t){return t.replace(e0,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function ei(t,l,e,a,n,u,i,c){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),l!=null?i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+bl(l)):t.value!==""+bl(l)&&(t.value=""+bl(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?ai(t,i,bl(l)):e!=null?ai(t,i,bl(e)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+bl(c):t.removeAttribute("name")}function Nf(t,l,e,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),l!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||l!=null)){li(t);return}e=e!=null?""+bl(e):"",l=l!=null?""+bl(l):e,c||l===t.value||(t.value=l),t.defaultValue=l}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=c?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),li(t)}function ai(t,l,e){l==="number"&&Un(t.ownerDocument)===t||t.defaultValue===""+e||(t.defaultValue=""+e)}function $e(t,l,e,a){if(t=t.options,l){l={};for(var n=0;n<e.length;n++)l["$"+e[n]]=!0;for(e=0;e<t.length;e++)n=l.hasOwnProperty("$"+t[e].value),t[e].selected!==n&&(t[e].selected=n),n&&a&&(t[e].defaultSelected=!0)}else{for(e=""+bl(e),l=null,n=0;n<t.length;n++){if(t[n].value===e){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}l!==null||t[n].disabled||(l=t[n])}l!==null&&(l.selected=!0)}}function qf(t,l,e){if(l!=null&&(l=""+bl(l),l!==t.value&&(t.value=l),e==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=e!=null?""+bl(e):""}function Yf(t,l,e,a){if(l==null){if(a!=null){if(e!=null)throw Error(f(92));if(Ft(a)){if(1<a.length)throw Error(f(93));a=a[0]}e=a}e==null&&(e=""),l=e}e=bl(l),t.defaultValue=e,a=t.textContent,a===e&&a!==""&&a!==null&&(t.value=a),li(t)}function Fe(t,l){if(l){var e=t.firstChild;if(e&&e===t.lastChild&&e.nodeType===3){e.nodeValue=l;return}}t.textContent=l}var a0=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 Gf(t,l,e){var a=l.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":a?t.setProperty(l,e):typeof e!="number"||e===0||a0.has(l)?l==="float"?t.cssFloat=e:t[l]=(""+e).trim():t[l]=e+"px"}function Lf(t,l,e){if(l!=null&&typeof l!="object")throw Error(f(62));if(t=t.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in l)a=l[n],l.hasOwnProperty(n)&&e[n]!==a&&Gf(t,n,a)}else for(var u in l)l.hasOwnProperty(u)&&Gf(t,u,l[u])}function ni(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var n0=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"]]),u0=/^[\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 Hn(t){return u0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ql(){}var ui=null;function ii(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ie=null,Pe=null;function Xf(t){var l=Ke(t);if(l&&(t=l.stateNode)){var e=t[tl]||null;t:switch(t=l.stateNode,l.type){case"input":if(ei(t,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),l=e.name,e.type==="radio"&&l!=null){for(e=t;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+pl(""+l)+'"][type="radio"]'),l=0;l<e.length;l++){var a=e[l];if(a!==t&&a.form===t.form){var n=a[tl]||null;if(!n)throw Error(f(90));ei(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(l=0;l<e.length;l++)a=e[l],a.form===t.form&&Bf(a)}break t;case"textarea":qf(t,e.value,e.defaultValue);break t;case"select":l=e.value,l!=null&&$e(t,!!e.multiple,l,!1)}}}var ci=!1;function Qf(t,l,e){if(ci)return t(l,e);ci=!0;try{var a=t(l);return a}finally{if(ci=!1,(Ie!==null||Pe!==null)&&(xu(),Ie&&(l=Ie,t=Pe,Pe=Ie=null,Xf(l),t)))for(l=0;l<t.length;l++)Xf(t[l])}}function Ba(t,l){var e=t.stateNode;if(e===null)return null;var a=e[tl]||null;if(a===null)return null;e=a[l];t:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(e&&typeof e!="function")throw Error(f(231,l,typeof e));return e}var Yl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fi=!1;if(Yl)try{var Na={};Object.defineProperty(Na,"passive",{get:function(){fi=!0}}),window.addEventListener("test",Na,Na),window.removeEventListener("test",Na,Na)}catch{fi=!1}var ee=null,oi=null,Bn=null;function Zf(){if(Bn)return Bn;var t,l=oi,e=l.length,a,n="value"in ee?ee.value:ee.textContent,u=n.length;for(t=0;t<e&&l[t]===n[t];t++);var i=e-t;for(a=1;a<=i&&l[e-a]===n[u-a];a++);return Bn=n.slice(t,1<a?1-a:void 0)}function Nn(t){var l=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function qn(){return!0}function kf(){return!1}function ll(t){function l(e,a,n,u,i){this._reactName=e,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(e=t[c],this[c]=e?e(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?qn:kf,this.isPropagationStopped=kf,this}return R(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=qn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=qn)},persist:function(){},isPersistent:qn}),l}var _e={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yn=ll(_e),qa=R({},_e,{view:0,detail:0}),i0=ll(qa),si,di,Ya,Gn=R({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hi,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ya&&(Ya&&t.type==="mousemove"?(si=t.screenX-Ya.screenX,di=t.screenY-Ya.screenY):di=si=0,Ya=t),si)},movementY:function(t){return"movementY"in t?t.movementY:di}}),Vf=ll(Gn),c0=R({},Gn,{dataTransfer:0}),f0=ll(c0),o0=R({},qa,{relatedTarget:0}),ri=ll(o0),s0=R({},_e,{animationName:0,elapsedTime:0,pseudoElement:0}),d0=ll(s0),r0=R({},_e,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),h0=ll(r0),y0=R({},_e,{data:0}),Jf=ll(y0),m0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g0={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"},v0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function b0(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=v0[t])?!!l[t]:!1}function hi(){return b0}var p0=R({},qa,{key:function(t){if(t.key){var l=m0[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=Nn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?g0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hi,charCode:function(t){return t.type==="keypress"?Nn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Nn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),S0=ll(p0),x0=R({},Gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kf=ll(x0),T0=R({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hi}),z0=ll(T0),A0=R({},_e,{propertyName:0,elapsedTime:0,pseudoElement:0}),M0=ll(A0),E0=R({},Gn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),j0=ll(E0),_0=R({},_e,{newState:0,oldState:0}),O0=ll(_0),D0=[9,13,27,32],yi=Yl&&"CompositionEvent"in window,Ga=null;Yl&&"documentMode"in document&&(Ga=document.documentMode);var C0=Yl&&"TextEvent"in window&&!Ga,wf=Yl&&(!yi||Ga&&8<Ga&&11>=Ga),Wf=" ",$f=!1;function Ff(t,l){switch(t){case"keyup":return D0.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function If(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ta=!1;function R0(t,l){switch(t){case"compositionend":return If(l);case"keypress":return l.which!==32?null:($f=!0,Wf);case"textInput":return t=l.data,t===Wf&&$f?null:t;default:return null}}function U0(t,l){if(ta)return t==="compositionend"||!yi&&Ff(t,l)?(t=Zf(),Bn=oi=ee=null,ta=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return wf&&l.locale!=="ko"?null:l.data;default:return null}}var H0={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 Pf(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!H0[t.type]:l==="textarea"}function to(t,l,e,a){Ie?Pe?Pe.push(a):Pe=[a]:Ie=a,l=_u(l,"onChange"),0<l.length&&(e=new Yn("onChange","change",null,e,a),t.push({event:e,listeners:l}))}var La=null,Xa=null;function B0(t){qd(t,0)}function Ln(t){var l=Ha(t);if(Bf(l))return t}function lo(t,l){if(t==="change")return l}var eo=!1;if(Yl){var mi;if(Yl){var gi="oninput"in document;if(!gi){var ao=document.createElement("div");ao.setAttribute("oninput","return;"),gi=typeof ao.oninput=="function"}mi=gi}else mi=!1;eo=mi&&(!document.documentMode||9<document.documentMode)}function no(){La&&(La.detachEvent("onpropertychange",uo),Xa=La=null)}function uo(t){if(t.propertyName==="value"&&Ln(Xa)){var l=[];to(l,Xa,t,ii(t)),Qf(B0,l)}}function N0(t,l,e){t==="focusin"?(no(),La=l,Xa=e,La.attachEvent("onpropertychange",uo)):t==="focusout"&&no()}function q0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ln(Xa)}function Y0(t,l){if(t==="click")return Ln(l)}function G0(t,l){if(t==="input"||t==="change")return Ln(l)}function L0(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var sl=typeof Object.is=="function"?Object.is:L0;function Qa(t,l){if(sl(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;var e=Object.keys(t),a=Object.keys(l);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var n=e[a];if(!Ku.call(l,n)||!sl(t[n],l[n]))return!1}return!0}function io(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function co(t,l){var e=io(t);t=0;for(var a;e;){if(e.nodeType===3){if(a=t+e.textContent.length,t<=l&&a>=l)return{node:e,offset:l-t};t=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=io(e)}}function fo(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?fo(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function oo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Un(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href=="string"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Un(t.document)}return l}function vi(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var X0=Yl&&"documentMode"in document&&11>=document.documentMode,la=null,bi=null,Za=null,pi=!1;function so(t,l,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;pi||la==null||la!==Un(a)||(a=la,"selectionStart"in a&&vi(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}),Za&&Qa(Za,a)||(Za=a,a=_u(bi,"onSelect"),0<a.length&&(l=new Yn("onSelect","select",null,l,e),t.push({event:l,listeners:a}),l.target=la)))}function Oe(t,l){var e={};return e[t.toLowerCase()]=l.toLowerCase(),e["Webkit"+t]="webkit"+l,e["Moz"+t]="moz"+l,e}var ea={animationend:Oe("Animation","AnimationEnd"),animationiteration:Oe("Animation","AnimationIteration"),animationstart:Oe("Animation","AnimationStart"),transitionrun:Oe("Transition","TransitionRun"),transitionstart:Oe("Transition","TransitionStart"),transitioncancel:Oe("Transition","TransitionCancel"),transitionend:Oe("Transition","TransitionEnd")},Si={},ro={};Yl&&(ro=document.createElement("div").style,"AnimationEvent"in window||(delete ea.animationend.animation,delete ea.animationiteration.animation,delete ea.animationstart.animation),"TransitionEvent"in window||delete ea.transitionend.transition);function De(t){if(Si[t])return Si[t];if(!ea[t])return t;var l=ea[t],e;for(e in l)if(l.hasOwnProperty(e)&&e in ro)return Si[t]=l[e];return t}var ho=De("animationend"),yo=De("animationiteration"),mo=De("animationstart"),Q0=De("transitionrun"),Z0=De("transitionstart"),k0=De("transitioncancel"),go=De("transitionend"),vo=new Map,xi="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(" ");xi.push("scrollEnd");function _l(t,l){vo.set(t,l),je(l,[t])}var Xn=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Sl=[],aa=0,Ti=0;function Qn(){for(var t=aa,l=Ti=aa=0;l<t;){var e=Sl[l];Sl[l++]=null;var a=Sl[l];Sl[l++]=null;var n=Sl[l];Sl[l++]=null;var u=Sl[l];if(Sl[l++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&bo(e,n,u)}}function Zn(t,l,e,a){Sl[aa++]=t,Sl[aa++]=l,Sl[aa++]=e,Sl[aa++]=a,Ti|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function zi(t,l,e,a){return Zn(t,l,e,a),kn(t)}function Ce(t,l){return Zn(t,null,null,l),kn(t)}function bo(t,l,e){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=t.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&l!==null&&(n=31-ol(e),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[l]:a.push(l),l.lane=e|536870912),u):null}function kn(t){if(50<rn)throw rn=0,Rc=null,Error(f(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var na={};function V0(t,l,e,a){this.tag=t,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dl(t,l,e,a){return new V0(t,l,e,a)}function Ai(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Gl(t,l){var e=t.alternate;return e===null?(e=dl(t.tag,l,t.key,t.mode),e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.alternate=t,t.alternate=e):(e.pendingProps=l,e.type=t.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=t.flags&65011712,e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.refCleanup=t.refCleanup,e}function po(t,l){t.flags&=65011714;var e=t.alternate;return e===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.type=e.type,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Vn(t,l,e,a,n,u){var i=0;if(a=t,typeof t=="function")Ai(t)&&(i=1);else if(typeof t=="string")i=$h(t,e,L.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Mt:return t=dl(31,e,l,n),t.elementType=Mt,t.lanes=u,t;case G:return Re(e.children,n,u,l);case w:i=8,n|=24;break;case rt:return t=dl(12,e,l,n|2),t.elementType=rt,t.lanes=u,t;case B:return t=dl(13,e,l,n),t.elementType=B,t.lanes=u,t;case V:return t=dl(19,e,l,n),t.elementType=V,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ft:i=10;break t;case St:i=9;break t;case H:i=11;break t;case Z:i=14;break t;case ht:i=16,a=null;break t}i=29,e=Error(f(130,t===null?"null":typeof t,"")),a=null}return l=dl(i,e,l,n),l.elementType=t,l.type=a,l.lanes=u,l}function Re(t,l,e,a){return t=dl(7,t,a,l),t.lanes=e,t}function Mi(t,l,e){return t=dl(6,t,null,l),t.lanes=e,t}function So(t){var l=dl(18,null,null,0);return l.stateNode=t,l}function Ei(t,l,e){return l=dl(4,t.children!==null?t.children:[],t.key,l),l.lanes=e,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var xo=new WeakMap;function xl(t,l){if(typeof t=="object"&&t!==null){var e=xo.get(t);return e!==void 0?e:(l={value:t,source:l,stack:pf(l)},xo.set(t,l),l)}return{value:t,source:l,stack:pf(l)}}var ua=[],ia=0,Jn=null,ka=0,Tl=[],zl=0,ae=null,Rl=1,Ul="";function Ll(t,l){ua[ia++]=ka,ua[ia++]=Jn,Jn=t,ka=l}function To(t,l,e){Tl[zl++]=Rl,Tl[zl++]=Ul,Tl[zl++]=ae,ae=t;var a=Rl;t=Ul;var n=32-ol(a)-1;a&=~(1<<n),e+=1;var u=32-ol(l)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Rl=1<<32-ol(l)+n|e<<n|a,Ul=u+t}else Rl=1<<u|e<<n|a,Ul=t}function ji(t){t.return!==null&&(Ll(t,1),To(t,1,0))}function _i(t){for(;t===Jn;)Jn=ua[--ia],ua[ia]=null,ka=ua[--ia],ua[ia]=null;for(;t===ae;)ae=Tl[--zl],Tl[zl]=null,Ul=Tl[--zl],Tl[zl]=null,Rl=Tl[--zl],Tl[zl]=null}function zo(t,l){Tl[zl++]=Rl,Tl[zl++]=Ul,Tl[zl++]=ae,Rl=l.id,Ul=l.overflow,ae=t}var Vt=null,jt=null,dt=!1,ne=null,Al=!1,Oi=Error(f(519));function ue(t){var l=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(xl(l,t)),Oi}function Ao(t){var l=t.stateNode,e=t.type,a=t.memoizedProps;switch(l[kt]=t,l[tl]=a,e){case"dialog":ct("cancel",l),ct("close",l);break;case"iframe":case"object":case"embed":ct("load",l);break;case"video":case"audio":for(e=0;e<yn.length;e++)ct(yn[e],l);break;case"source":ct("error",l);break;case"img":case"image":case"link":ct("error",l),ct("load",l);break;case"details":ct("toggle",l);break;case"input":ct("invalid",l),Nf(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ct("invalid",l);break;case"textarea":ct("invalid",l),Yf(l,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||l.textContent===""+e||a.suppressHydrationWarning===!0||Xd(l.textContent,e)?(a.popover!=null&&(ct("beforetoggle",l),ct("toggle",l)),a.onScroll!=null&&ct("scroll",l),a.onScrollEnd!=null&&ct("scrollend",l),a.onClick!=null&&(l.onclick=ql),l=!0):l=!1,l||ue(t,!0)}function Mo(t){for(Vt=t.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:Al=!1;return;case 27:case 3:Al=!0;return;default:Vt=Vt.return}}function ca(t){if(t!==Vt)return!1;if(!dt)return Mo(t),dt=!0,!1;var l=t.tag,e;if((e=l!==3&&l!==27)&&((e=l===5)&&(e=t.type,e=!(e!=="form"&&e!=="button")||Kc(t.type,t.memoizedProps)),e=!e),e&&jt&&ue(t),Mo(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));jt=$d(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));jt=$d(t)}else l===27?(l=jt,pe(t.type)?(t=Ic,Ic=null,jt=t):jt=l):jt=Vt?El(t.stateNode.nextSibling):null;return!0}function Ue(){jt=Vt=null,dt=!1}function Di(){var t=ne;return t!==null&&(ul===null?ul=t:ul.push.apply(ul,t),ne=null),t}function Va(t){ne===null?ne=[t]:ne.push(t)}var Ci=r(null),He=null,Xl=null;function ie(t,l,e){q(Ci,l._currentValue),l._currentValue=e}function Ql(t){t._currentValue=Ci.current,_(Ci)}function Ri(t,l,e){for(;t!==null;){var a=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),t===e)break;t=t.return}}function Ui(t,l,e,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;t:for(;u!==null;){var c=u;u=n;for(var o=0;o<l.length;o++)if(c.context===l[o]){u.lanes|=e,c=u.alternate,c!==null&&(c.lanes|=e),Ri(u.return,e,t),a||(i=null);break t}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(f(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),Ri(i,e,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function fa(t,l,e,a){t=null;for(var n=l,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(f(387));if(i=i.memoizedProps,i!==null){var c=n.type;sl(n.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(n===vt.current){if(i=n.alternate,i===null)throw Error(f(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(pn):t=[pn])}n=n.return}t!==null&&Ui(l,t,e,a),l.flags|=262144}function Kn(t){for(t=t.firstContext;t!==null;){if(!sl(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Be(t){He=t,Xl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return Eo(He,t)}function wn(t,l){return He===null&&Be(t),Eo(t,l)}function Eo(t,l){var e=l._currentValue;if(l={context:l,memoizedValue:e,next:null},Xl===null){if(t===null)throw Error(f(308));Xl=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Xl=Xl.next=l;return e}var J0=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(e,a){t.push(a)}};this.abort=function(){l.aborted=!0,t.forEach(function(e){return e()})}},K0=d.unstable_scheduleCallback,w0=d.unstable_NormalPriority,Bt={$$typeof:ft,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hi(){return{controller:new J0,data:new Map,refCount:0}}function Ja(t){t.refCount--,t.refCount===0&&K0(w0,function(){t.controller.abort()})}var Ka=null,Bi=0,oa=0,sa=null;function W0(t,l){if(Ka===null){var e=Ka=[];Bi=0,oa=Yc(),sa={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Bi++,l.then(jo,jo),l}function jo(){if(--Bi===0&&Ka!==null){sa!==null&&(sa.status="fulfilled");var t=Ka;Ka=null,oa=0,sa=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function $0(t,l){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return t.then(function(){a.status="fulfilled",a.value=l;for(var n=0;n<e.length;n++)(0,e[n])(l)},function(n){for(a.status="rejected",a.reason=n,n=0;n<e.length;n++)(0,e[n])(void 0)}),a}var _o=M.S;M.S=function(t,l){dd=cl(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&W0(t,l),_o!==null&&_o(t,l)};var Ne=r(null);function Ni(){var t=Ne.current;return t!==null?t:Et.pooledCache}function Wn(t,l){l===null?q(Ne,Ne.current):q(Ne,l.pool)}function Oo(){var t=Ni();return t===null?null:{parent:Bt._currentValue,pool:t}}var da=Error(f(460)),qi=Error(f(474)),$n=Error(f(542)),Fn={then:function(){}};function Do(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Co(t,l,e){switch(e=t[e],e===void 0?t.push(l):e!==l&&(l.then(ql,ql),l=e),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Uo(t),t;default:if(typeof l.status=="string")l.then(ql,ql);else{if(t=Et,t!==null&&100<t.shellSuspendCounter)throw Error(f(482));t=l,t.status="pending",t.then(function(a){if(l.status==="pending"){var n=l;n.status="fulfilled",n.value=a}},function(a){if(l.status==="pending"){var n=l;n.status="rejected",n.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Uo(t),t}throw Ye=l,da}}function qe(t){try{var l=t._init;return l(t._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(Ye=e,da):e}}var Ye=null;function Ro(){if(Ye===null)throw Error(f(459));var t=Ye;return Ye=null,t}function Uo(t){if(t===da||t===$n)throw Error(f(483))}var ra=null,wa=0;function In(t){var l=wa;return wa+=1,ra===null&&(ra=[]),Co(ra,t,l)}function Wa(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function Pn(t,l){throw l.$$typeof===K?Error(f(525)):(t=Object.prototype.toString.call(l),Error(f(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function Ho(t){function l(y,h){if(t){var v=y.deletions;v===null?(y.deletions=[h],y.flags|=16):v.push(h)}}function e(y,h){if(!t)return null;for(;h!==null;)l(y,h),h=h.sibling;return null}function a(y){for(var h=new Map;y!==null;)y.key!==null?h.set(y.key,y):h.set(y.index,y),y=y.sibling;return h}function n(y,h){return y=Gl(y,h),y.index=0,y.sibling=null,y}function u(y,h,v){return y.index=v,t?(v=y.alternate,v!==null?(v=v.index,v<h?(y.flags|=67108866,h):v):(y.flags|=67108866,h)):(y.flags|=1048576,h)}function i(y){return t&&y.alternate===null&&(y.flags|=67108866),y}function c(y,h,v,E){return h===null||h.tag!==6?(h=Mi(v,y.mode,E),h.return=y,h):(h=n(h,v),h.return=y,h)}function o(y,h,v,E){var k=v.type;return k===G?A(y,h,v.props.children,E,v.key):h!==null&&(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ht&&qe(k)===h.type)?(h=n(h,v.props),Wa(h,v),h.return=y,h):(h=Vn(v.type,v.key,v.props,null,y.mode,E),Wa(h,v),h.return=y,h)}function b(y,h,v,E){return h===null||h.tag!==4||h.stateNode.containerInfo!==v.containerInfo||h.stateNode.implementation!==v.implementation?(h=Ei(v,y.mode,E),h.return=y,h):(h=n(h,v.children||[]),h.return=y,h)}function A(y,h,v,E,k){return h===null||h.tag!==7?(h=Re(v,y.mode,E,k),h.return=y,h):(h=n(h,v),h.return=y,h)}function O(y,h,v){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Mi(""+h,y.mode,v),h.return=y,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case at:return v=Vn(h.type,h.key,h.props,null,y.mode,v),Wa(v,h),v.return=y,v;case U:return h=Ei(h,y.mode,v),h.return=y,h;case ht:return h=qe(h),O(y,h,v)}if(Ft(h)||xt(h))return h=Re(h,y.mode,v,null),h.return=y,h;if(typeof h.then=="function")return O(y,In(h),v);if(h.$$typeof===ft)return O(y,wn(y,h),v);Pn(y,h)}return null}function S(y,h,v,E){var k=h!==null?h.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return k!==null?null:c(y,h,""+v,E);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case at:return v.key===k?o(y,h,v,E):null;case U:return v.key===k?b(y,h,v,E):null;case ht:return v=qe(v),S(y,h,v,E)}if(Ft(v)||xt(v))return k!==null?null:A(y,h,v,E,null);if(typeof v.then=="function")return S(y,h,In(v),E);if(v.$$typeof===ft)return S(y,h,wn(y,v),E);Pn(y,v)}return null}function z(y,h,v,E,k){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return y=y.get(v)||null,c(h,y,""+E,k);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case at:return y=y.get(E.key===null?v:E.key)||null,o(h,y,E,k);case U:return y=y.get(E.key===null?v:E.key)||null,b(h,y,E,k);case ht:return E=qe(E),z(y,h,v,E,k)}if(Ft(E)||xt(E))return y=y.get(v)||null,A(h,y,E,k,null);if(typeof E.then=="function")return z(y,h,v,In(E),k);if(E.$$typeof===ft)return z(y,h,v,wn(h,E),k);Pn(h,E)}return null}function X(y,h,v,E){for(var k=null,yt=null,Q=h,et=h=0,st=null;Q!==null&&et<v.length;et++){Q.index>et?(st=Q,Q=null):st=Q.sibling;var mt=S(y,Q,v[et],E);if(mt===null){Q===null&&(Q=st);break}t&&Q&&mt.alternate===null&&l(y,Q),h=u(mt,h,et),yt===null?k=mt:yt.sibling=mt,yt=mt,Q=st}if(et===v.length)return e(y,Q),dt&&Ll(y,et),k;if(Q===null){for(;et<v.length;et++)Q=O(y,v[et],E),Q!==null&&(h=u(Q,h,et),yt===null?k=Q:yt.sibling=Q,yt=Q);return dt&&Ll(y,et),k}for(Q=a(Q);et<v.length;et++)st=z(Q,y,et,v[et],E),st!==null&&(t&&st.alternate!==null&&Q.delete(st.key===null?et:st.key),h=u(st,h,et),yt===null?k=st:yt.sibling=st,yt=st);return t&&Q.forEach(function(Ae){return l(y,Ae)}),dt&&Ll(y,et),k}function W(y,h,v,E){if(v==null)throw Error(f(151));for(var k=null,yt=null,Q=h,et=h=0,st=null,mt=v.next();Q!==null&&!mt.done;et++,mt=v.next()){Q.index>et?(st=Q,Q=null):st=Q.sibling;var Ae=S(y,Q,mt.value,E);if(Ae===null){Q===null&&(Q=st);break}t&&Q&&Ae.alternate===null&&l(y,Q),h=u(Ae,h,et),yt===null?k=Ae:yt.sibling=Ae,yt=Ae,Q=st}if(mt.done)return e(y,Q),dt&&Ll(y,et),k;if(Q===null){for(;!mt.done;et++,mt=v.next())mt=O(y,mt.value,E),mt!==null&&(h=u(mt,h,et),yt===null?k=mt:yt.sibling=mt,yt=mt);return dt&&Ll(y,et),k}for(Q=a(Q);!mt.done;et++,mt=v.next())mt=z(Q,y,et,mt.value,E),mt!==null&&(t&&mt.alternate!==null&&Q.delete(mt.key===null?et:mt.key),h=u(mt,h,et),yt===null?k=mt:yt.sibling=mt,yt=mt);return t&&Q.forEach(function(cy){return l(y,cy)}),dt&&Ll(y,et),k}function At(y,h,v,E){if(typeof v=="object"&&v!==null&&v.type===G&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case at:t:{for(var k=v.key;h!==null;){if(h.key===k){if(k=v.type,k===G){if(h.tag===7){e(y,h.sibling),E=n(h,v.props.children),E.return=y,y=E;break t}}else if(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ht&&qe(k)===h.type){e(y,h.sibling),E=n(h,v.props),Wa(E,v),E.return=y,y=E;break t}e(y,h);break}else l(y,h);h=h.sibling}v.type===G?(E=Re(v.props.children,y.mode,E,v.key),E.return=y,y=E):(E=Vn(v.type,v.key,v.props,null,y.mode,E),Wa(E,v),E.return=y,y=E)}return i(y);case U:t:{for(k=v.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){e(y,h.sibling),E=n(h,v.children||[]),E.return=y,y=E;break t}else{e(y,h);break}else l(y,h);h=h.sibling}E=Ei(v,y.mode,E),E.return=y,y=E}return i(y);case ht:return v=qe(v),At(y,h,v,E)}if(Ft(v))return X(y,h,v,E);if(xt(v)){if(k=xt(v),typeof k!="function")throw Error(f(150));return v=k.call(v),W(y,h,v,E)}if(typeof v.then=="function")return At(y,h,In(v),E);if(v.$$typeof===ft)return At(y,h,wn(y,v),E);Pn(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,h!==null&&h.tag===6?(e(y,h.sibling),E=n(h,v),E.return=y,y=E):(e(y,h),E=Mi(v,y.mode,E),E.return=y,y=E),i(y)):e(y,h)}return function(y,h,v,E){try{wa=0;var k=At(y,h,v,E);return ra=null,k}catch(Q){if(Q===da||Q===$n)throw Q;var yt=dl(29,Q,null,y.mode);return yt.lanes=E,yt.return=y,yt}finally{}}}var Ge=Ho(!0),Bo=Ho(!1),ce=!1;function Yi(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gi(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function fe(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function oe(t,l,e){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(gt&2)!==0){var n=a.pending;return n===null?l.next=l:(l.next=n.next,n.next=l),a.pending=l,l=kn(t),bo(t,null,e),l}return Zn(t,a,l,e),kn(t)}function $a(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,Mf(t,e)}}function Li(t,l){var e=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=l:u=u.next=l}else n=u=l;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var Xi=!1;function Fa(){if(Xi){var t=sa;if(t!==null)throw t}}function Ia(t,l,e,a){Xi=!1;var n=t.updateQueue;ce=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var o=c,b=o.next;o.next=null,i===null?u=b:i.next=b,i=o;var A=t.alternate;A!==null&&(A=A.updateQueue,c=A.lastBaseUpdate,c!==i&&(c===null?A.firstBaseUpdate=b:c.next=b,A.lastBaseUpdate=o))}if(u!==null){var O=n.baseState;i=0,A=b=o=null,c=u;do{var S=c.lane&-536870913,z=S!==c.lane;if(z?(ot&S)===S:(a&S)===S){S!==0&&S===oa&&(Xi=!0),A!==null&&(A=A.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var X=t,W=c;S=l;var At=e;switch(W.tag){case 1:if(X=W.payload,typeof X=="function"){O=X.call(At,O,S);break t}O=X;break t;case 3:X.flags=X.flags&-65537|128;case 0:if(X=W.payload,S=typeof X=="function"?X.call(At,O,S):X,S==null)break t;O=R({},O,S);break t;case 2:ce=!0}}S=c.callback,S!==null&&(t.flags|=64,z&&(t.flags|=8192),z=n.callbacks,z===null?n.callbacks=[S]:z.push(S))}else z={lane:S,tag:c.tag,payload:c.payload,callback:c.callback,next:null},A===null?(b=A=z,o=O):A=A.next=z,i|=S;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;z=c,c=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);A===null&&(o=O),n.baseState=o,n.firstBaseUpdate=b,n.lastBaseUpdate=A,u===null&&(n.shared.lanes=0),ye|=i,t.lanes=i,t.memoizedState=O}}function No(t,l){if(typeof t!="function")throw Error(f(191,t));t.call(l)}function qo(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;t<e.length;t++)No(e[t],l)}var ha=r(null),tu=r(0);function Yo(t,l){t=Fl,q(tu,t),q(ha,l),Fl=t|l.baseLanes}function Qi(){q(tu,Fl),q(ha,ha.current)}function Zi(){Fl=tu.current,_(ha),_(tu)}var rl=r(null),Ml=null;function se(t){var l=t.alternate;q(Ut,Ut.current&1),q(rl,t),Ml===null&&(l===null||ha.current!==null||l.memoizedState!==null)&&(Ml=t)}function ki(t){q(Ut,Ut.current),q(rl,t),Ml===null&&(Ml=t)}function Go(t){t.tag===22?(q(Ut,Ut.current),q(rl,t),Ml===null&&(Ml=t)):de()}function de(){q(Ut,Ut.current),q(rl,rl.current)}function hl(t){_(rl),Ml===t&&(Ml=null),_(Ut)}var Ut=r(0);function lu(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||$c(e)||Fc(e)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Zl=0,tt=null,Tt=null,Nt=null,eu=!1,ya=!1,Le=!1,au=0,Pa=0,ma=null,F0=0;function Dt(){throw Error(f(321))}function Vi(t,l){if(l===null)return!1;for(var e=0;e<l.length&&e<t.length;e++)if(!sl(t[e],l[e]))return!1;return!0}function Ji(t,l,e,a,n,u){return Zl=u,tt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,M.H=t===null||t.memoizedState===null?Ts:cc,Le=!1,u=e(a,n),Le=!1,ya&&(u=Xo(l,e,a,n)),Lo(t),u}function Lo(t){M.H=en;var l=Tt!==null&&Tt.next!==null;if(Zl=0,Nt=Tt=tt=null,eu=!1,Pa=0,ma=null,l)throw Error(f(300));t===null||qt||(t=t.dependencies,t!==null&&Kn(t)&&(qt=!0))}function Xo(t,l,e,a){tt=t;var n=0;do{if(ya&&(ma=null),Pa=0,ya=!1,25<=n)throw Error(f(301));if(n+=1,Nt=Tt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=zs,u=l(e,a)}while(ya);return u}function I0(){var t=M.H,l=t.useState()[0];return l=typeof l.then=="function"?tn(l):l,t=t.useState()[0],(Tt!==null?Tt.memoizedState:null)!==t&&(tt.flags|=1024),l}function Ki(){var t=au!==0;return au=0,t}function wi(t,l,e){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~e}function Wi(t){if(eu){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}eu=!1}Zl=0,Nt=Tt=tt=null,ya=!1,Pa=au=0,ma=null}function Pt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?tt.memoizedState=Nt=t:Nt=Nt.next=t,Nt}function Ht(){if(Tt===null){var t=tt.alternate;t=t!==null?t.memoizedState:null}else t=Tt.next;var l=Nt===null?tt.memoizedState:Nt.next;if(l!==null)Nt=l,Tt=t;else{if(t===null)throw tt.alternate===null?Error(f(467)):Error(f(310));Tt=t,t={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},Nt===null?tt.memoizedState=Nt=t:Nt=Nt.next=t}return Nt}function nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tn(t){var l=Pa;return Pa+=1,ma===null&&(ma=[]),t=Co(ma,t,l),l=tt,(Nt===null?l.memoizedState:Nt.next)===null&&(l=l.alternate,M.H=l===null||l.memoizedState===null?Ts:cc),t}function uu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return tn(t);if(t.$$typeof===ft)return Jt(t)}throw Error(f(438,String(t)))}function $i(t){var l=null,e=tt.updateQueue;if(e!==null&&(l=e.memoCache),l==null){var a=tt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(n){return n.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),e===null&&(e=nu(),tt.updateQueue=e),e.memoCache=l,e=l.data[l.index],e===void 0)for(e=l.data[l.index]=Array(t),a=0;a<t;a++)e[a]=Wt;return l.index++,e}function kl(t,l){return typeof l=="function"?l(t):l}function iu(t){var l=Ht();return Fi(l,Tt,t)}function Fi(t,l,e){var a=t.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=e;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}l.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{l=n.next;var c=i=null,o=null,b=l,A=!1;do{var O=b.lane&-536870913;if(O!==b.lane?(ot&O)===O:(Zl&O)===O){var S=b.revertLane;if(S===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),O===oa&&(A=!0);else if((Zl&S)===S){b=b.next,S===oa&&(A=!0);continue}else O={lane:0,revertLane:b.revertLane,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},o===null?(c=o=O,i=u):o=o.next=O,tt.lanes|=S,ye|=S;O=b.action,Le&&e(u,O),u=b.hasEagerState?b.eagerState:e(u,O)}else S={lane:O,revertLane:b.revertLane,gesture:b.gesture,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},o===null?(c=o=S,i=u):o=o.next=S,tt.lanes|=O,ye|=O;b=b.next}while(b!==null&&b!==l);if(o===null?i=u:o.next=c,!sl(u,t.memoizedState)&&(qt=!0,A&&(e=sa,e!==null)))throw e;t.memoizedState=u,t.baseState=i,t.baseQueue=o,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Ii(t){var l=Ht(),e=l.queue;if(e===null)throw Error(f(311));e.lastRenderedReducer=t;var a=e.dispatch,n=e.pending,u=l.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);sl(u,l.memoizedState)||(qt=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),e.lastRenderedState=u}return[u,a]}function Qo(t,l,e){var a=tt,n=Ht(),u=dt;if(u){if(e===void 0)throw Error(f(407));e=e()}else e=l();var i=!sl((Tt||n).memoizedState,e);if(i&&(n.memoizedState=e,qt=!0),n=n.queue,lc(Vo.bind(null,a,n,t),[t]),n.getSnapshot!==l||i||Nt!==null&&Nt.memoizedState.tag&1){if(a.flags|=2048,ga(9,{destroy:void 0},ko.bind(null,a,n,e,l),null),Et===null)throw Error(f(349));u||(Zl&127)!==0||Zo(a,l,e)}return e}function Zo(t,l,e){t.flags|=16384,t={getSnapshot:l,value:e},l=tt.updateQueue,l===null?(l=nu(),tt.updateQueue=l,l.stores=[t]):(e=l.stores,e===null?l.stores=[t]:e.push(t))}function ko(t,l,e,a){l.value=e,l.getSnapshot=a,Jo(l)&&Ko(t)}function Vo(t,l,e){return e(function(){Jo(l)&&Ko(t)})}function Jo(t){var l=t.getSnapshot;t=t.value;try{var e=l();return!sl(t,e)}catch{return!0}}function Ko(t){var l=Ce(t,2);l!==null&&il(l,t,2)}function Pi(t){var l=Pt();if(typeof t=="function"){var e=t;if(t=e(),Le){te(!0);try{e()}finally{te(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:t},l}function wo(t,l,e,a){return t.baseState=e,Fi(t,Tt,typeof a=="function"?a:kl)}function P0(t,l,e,a,n){if(ou(t))throw Error(f(485));if(t=l.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};M.T!==null?e(!0):u.isTransition=!1,a(u),e=l.pending,e===null?(u.next=l.pending=u,Wo(l,u)):(u.next=e.next,l.pending=e.next=u)}}function Wo(t,l){var e=l.action,a=l.payload,n=t.state;if(l.isTransition){var u=M.T,i={};M.T=i;try{var c=e(n,a),o=M.S;o!==null&&o(i,c),$o(t,l,c)}catch(b){tc(t,l,b)}finally{u!==null&&i.types!==null&&(u.types=i.types),M.T=u}}else try{u=e(n,a),$o(t,l,u)}catch(b){tc(t,l,b)}}function $o(t,l,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){Fo(t,l,a)},function(a){return tc(t,l,a)}):Fo(t,l,e)}function Fo(t,l,e){l.status="fulfilled",l.value=e,Io(l),t.state=e,l=t.pending,l!==null&&(e=l.next,e===l?t.pending=null:(e=e.next,l.next=e,Wo(t,e)))}function tc(t,l,e){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=e,Io(l),l=l.next;while(l!==a)}t.action=null}function Io(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function Po(t,l){return l}function ts(t,l){if(dt){var e=Et.formState;if(e!==null){t:{var a=tt;if(dt){if(jt){l:{for(var n=jt,u=Al;n.nodeType!==8;){if(!u){n=null;break l}if(n=El(n.nextSibling),n===null){n=null;break l}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){jt=El(n.nextSibling),a=n.data==="F!";break t}}ue(a)}a=!1}a&&(l=e[0])}}return e=Pt(),e.memoizedState=e.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:l},e.queue=a,e=ps.bind(null,tt,a),a.dispatch=e,a=Pi(!1),u=ic.bind(null,tt,!1,a.queue),a=Pt(),n={state:l,dispatch:null,action:t,pending:null},a.queue=n,e=P0.bind(null,tt,n,u,e),n.dispatch=e,a.memoizedState=t,[l,e,!1]}function ls(t){var l=Ht();return es(l,Tt,t)}function es(t,l,e){if(l=Fi(t,l,Po)[0],t=iu(kl)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=tn(l)}catch(i){throw i===da?$n:i}else a=l;l=Ht();var n=l.queue,u=n.dispatch;return e!==l.memoizedState&&(tt.flags|=2048,ga(9,{destroy:void 0},th.bind(null,n,e),null)),[a,u,t]}function th(t,l){t.action=l}function as(t){var l=Ht(),e=Tt;if(e!==null)return es(l,e,t);Ht(),l=l.memoizedState,e=Ht();var a=e.queue.dispatch;return e.memoizedState=t,[l,a,!1]}function ga(t,l,e,a){return t={tag:t,create:e,deps:a,inst:l,next:null},l=tt.updateQueue,l===null&&(l=nu(),tt.updateQueue=l),e=l.lastEffect,e===null?l.lastEffect=t.next=t:(a=e.next,e.next=t,t.next=a,l.lastEffect=t),t}function ns(){return Ht().memoizedState}function cu(t,l,e,a){var n=Pt();tt.flags|=t,n.memoizedState=ga(1|l,{destroy:void 0},e,a===void 0?null:a)}function fu(t,l,e,a){var n=Ht();a=a===void 0?null:a;var u=n.memoizedState.inst;Tt!==null&&a!==null&&Vi(a,Tt.memoizedState.deps)?n.memoizedState=ga(l,u,e,a):(tt.flags|=t,n.memoizedState=ga(1|l,u,e,a))}function us(t,l){cu(8390656,8,t,l)}function lc(t,l){fu(2048,8,t,l)}function lh(t){tt.flags|=4;var l=tt.updateQueue;if(l===null)l=nu(),tt.updateQueue=l,l.events=[t];else{var e=l.events;e===null?l.events=[t]:e.push(t)}}function is(t){var l=Ht().memoizedState;return lh({ref:l,nextImpl:t}),function(){if((gt&2)!==0)throw Error(f(440));return l.impl.apply(void 0,arguments)}}function cs(t,l){return fu(4,2,t,l)}function fs(t,l){return fu(4,4,t,l)}function os(t,l){if(typeof l=="function"){t=t();var e=l(t);return function(){typeof e=="function"?e():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function ss(t,l,e){e=e!=null?e.concat([t]):null,fu(4,4,os.bind(null,l,t),e)}function ec(){}function ds(t,l){var e=Ht();l=l===void 0?null:l;var a=e.memoizedState;return l!==null&&Vi(l,a[1])?a[0]:(e.memoizedState=[t,l],t)}function rs(t,l){var e=Ht();l=l===void 0?null:l;var a=e.memoizedState;if(l!==null&&Vi(l,a[1]))return a[0];if(a=t(),Le){te(!0);try{t()}finally{te(!1)}}return e.memoizedState=[a,l],a}function ac(t,l,e){return e===void 0||(Zl&1073741824)!==0&&(ot&261930)===0?t.memoizedState=l:(t.memoizedState=e,t=hd(),tt.lanes|=t,ye|=t,e)}function hs(t,l,e,a){return sl(e,l)?e:ha.current!==null?(t=ac(t,e,a),sl(t,l)||(qt=!0),t):(Zl&42)===0||(Zl&1073741824)!==0&&(ot&261930)===0?(qt=!0,t.memoizedState=e):(t=hd(),tt.lanes|=t,ye|=t,l)}function ys(t,l,e,a,n){var u=N.p;N.p=u!==0&&8>u?u:8;var i=M.T,c={};M.T=c,ic(t,!1,l,e);try{var o=n(),b=M.S;if(b!==null&&b(c,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var A=$0(o,a);ln(t,l,A,gl(t))}else ln(t,l,a,gl(t))}catch(O){ln(t,l,{then:function(){},status:"rejected",reason:O},gl())}finally{N.p=u,i!==null&&c.types!==null&&(i.types=c.types),M.T=i}}function eh(){}function nc(t,l,e,a){if(t.tag!==5)throw Error(f(476));var n=ms(t).queue;ys(t,n,l,J,e===null?eh:function(){return gs(t),e(a)})}function ms(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:J},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function gs(t){var l=ms(t);l.next===null&&(l=t.alternate.memoizedState),ln(t,l.next.queue,{},gl())}function uc(){return Jt(pn)}function vs(){return Ht().memoizedState}function bs(){return Ht().memoizedState}function ah(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=gl();t=fe(e);var a=oe(l,t,e);a!==null&&(il(a,l,e),$a(a,l,e)),l={cache:Hi()},t.payload=l;return}l=l.return}}function nh(t,l,e){var a=gl();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},ou(t)?Ss(l,e):(e=zi(t,l,e,a),e!==null&&(il(e,t,a),xs(e,l,a)))}function ps(t,l,e){var a=gl();ln(t,l,e,a)}function ln(t,l,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(ou(t))Ss(l,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,c=u(i,e);if(n.hasEagerState=!0,n.eagerState=c,sl(c,i))return Zn(t,l,n,0),Et===null&&Qn(),!1}catch{}finally{}if(e=zi(t,l,n,a),e!==null)return il(e,t,a),xs(e,l,a),!0}return!1}function ic(t,l,e,a){if(a={lane:2,revertLane:Yc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ou(t)){if(l)throw Error(f(479))}else l=zi(t,e,a,2),l!==null&&il(l,t,2)}function ou(t){var l=t.alternate;return t===tt||l!==null&&l===tt}function Ss(t,l){ya=eu=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function xs(t,l,e){if((e&4194048)!==0){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,Mf(t,e)}}var en={readContext:Jt,use:uu,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};en.useEffectEvent=Dt;var Ts={readContext:Jt,use:uu,useCallback:function(t,l){return Pt().memoizedState=[t,l===void 0?null:l],t},useContext:Jt,useEffect:us,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,cu(4194308,4,os.bind(null,l,t),e)},useLayoutEffect:function(t,l){return cu(4194308,4,t,l)},useInsertionEffect:function(t,l){cu(4,2,t,l)},useMemo:function(t,l){var e=Pt();l=l===void 0?null:l;var a=t();if(Le){te(!0);try{t()}finally{te(!1)}}return e.memoizedState=[a,l],a},useReducer:function(t,l,e){var a=Pt();if(e!==void 0){var n=e(l);if(Le){te(!0);try{e(l)}finally{te(!1)}}}else n=l;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=nh.bind(null,tt,t),[a.memoizedState,t]},useRef:function(t){var l=Pt();return t={current:t},l.memoizedState=t},useState:function(t){t=Pi(t);var l=t.queue,e=ps.bind(null,tt,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:ec,useDeferredValue:function(t,l){var e=Pt();return ac(e,t,l)},useTransition:function(){var t=Pi(!1);return t=ys.bind(null,tt,t.queue,!0,!1),Pt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var a=tt,n=Pt();if(dt){if(e===void 0)throw Error(f(407));e=e()}else{if(e=l(),Et===null)throw Error(f(349));(ot&127)!==0||Zo(a,l,e)}n.memoizedState=e;var u={value:e,getSnapshot:l};return n.queue=u,us(Vo.bind(null,a,u,t),[t]),a.flags|=2048,ga(9,{destroy:void 0},ko.bind(null,a,u,e,l),null),e},useId:function(){var t=Pt(),l=Et.identifierPrefix;if(dt){var e=Ul,a=Rl;e=(a&~(1<<32-ol(a)-1)).toString(32)+e,l="_"+l+"R_"+e,e=au++,0<e&&(l+="H"+e.toString(32)),l+="_"}else e=F0++,l="_"+l+"r_"+e.toString(32)+"_";return t.memoizedState=l},useHostTransitionStatus:uc,useFormState:ts,useActionState:ts,useOptimistic:function(t){var l=Pt();l.memoizedState=l.baseState=t;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=e,l=ic.bind(null,tt,!0,e),e.dispatch=l,[t,l]},useMemoCache:$i,useCacheRefresh:function(){return Pt().memoizedState=ah.bind(null,tt)},useEffectEvent:function(t){var l=Pt(),e={impl:t};return l.memoizedState=e,function(){if((gt&2)!==0)throw Error(f(440));return e.impl.apply(void 0,arguments)}}},cc={readContext:Jt,use:uu,useCallback:ds,useContext:Jt,useEffect:lc,useImperativeHandle:ss,useInsertionEffect:cs,useLayoutEffect:fs,useMemo:rs,useReducer:iu,useRef:ns,useState:function(){return iu(kl)},useDebugValue:ec,useDeferredValue:function(t,l){var e=Ht();return hs(e,Tt.memoizedState,t,l)},useTransition:function(){var t=iu(kl)[0],l=Ht().memoizedState;return[typeof t=="boolean"?t:tn(t),l]},useSyncExternalStore:Qo,useId:vs,useHostTransitionStatus:uc,useFormState:ls,useActionState:ls,useOptimistic:function(t,l){var e=Ht();return wo(e,Tt,t,l)},useMemoCache:$i,useCacheRefresh:bs};cc.useEffectEvent=is;var zs={readContext:Jt,use:uu,useCallback:ds,useContext:Jt,useEffect:lc,useImperativeHandle:ss,useInsertionEffect:cs,useLayoutEffect:fs,useMemo:rs,useReducer:Ii,useRef:ns,useState:function(){return Ii(kl)},useDebugValue:ec,useDeferredValue:function(t,l){var e=Ht();return Tt===null?ac(e,t,l):hs(e,Tt.memoizedState,t,l)},useTransition:function(){var t=Ii(kl)[0],l=Ht().memoizedState;return[typeof t=="boolean"?t:tn(t),l]},useSyncExternalStore:Qo,useId:vs,useHostTransitionStatus:uc,useFormState:as,useActionState:as,useOptimistic:function(t,l){var e=Ht();return Tt!==null?wo(e,Tt,t,l):(e.baseState=t,[t,e.queue.dispatch])},useMemoCache:$i,useCacheRefresh:bs};zs.useEffectEvent=is;function fc(t,l,e,a){l=t.memoizedState,e=e(a,l),e=e==null?l:R({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var oc={enqueueSetState:function(t,l,e){t=t._reactInternals;var a=gl(),n=fe(a);n.payload=l,e!=null&&(n.callback=e),l=oe(t,n,a),l!==null&&(il(l,t,a),$a(l,t,a))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var a=gl(),n=fe(a);n.tag=1,n.payload=l,e!=null&&(n.callback=e),l=oe(t,n,a),l!==null&&(il(l,t,a),$a(l,t,a))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=gl(),a=fe(e);a.tag=2,l!=null&&(a.callback=l),l=oe(t,a,e),l!==null&&(il(l,t,e),$a(l,t,e))}};function As(t,l,e,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):l.prototype&&l.prototype.isPureReactComponent?!Qa(e,a)||!Qa(n,u):!0}function Ms(t,l,e,a){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(e,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(e,a),l.state!==t&&oc.enqueueReplaceState(l,l.state,null)}function Xe(t,l){var e=l;if("ref"in l){e={};for(var a in l)a!=="ref"&&(e[a]=l[a])}if(t=t.defaultProps){e===l&&(e=R({},e));for(var n in t)e[n]===void 0&&(e[n]=t[n])}return e}function Es(t){Xn(t)}function js(t){console.error(t)}function _s(t){Xn(t)}function su(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function Os(t,l,e){try{var a=t.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function sc(t,l,e){return e=fe(e),e.tag=3,e.payload={element:null},e.callback=function(){su(t,l)},e}function Ds(t){return t=fe(t),t.tag=3,t}function Cs(t,l,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){Os(l,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Os(l,e,a),typeof n!="function"&&(me===null?me=new Set([this]):me.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function uh(t,l,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=e.alternate,l!==null&&fa(l,e,n,!0),e=rl.current,e!==null){switch(e.tag){case 31:case 13:return Ml===null?Tu():e.alternate===null&&Ct===0&&(Ct=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===Fn?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([a]):l.add(a),Bc(t,a,n)),!1;case 22:return e.flags|=65536,a===Fn?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([a]):e.add(a)),Bc(t,a,n)),!1}throw Error(f(435,e.tag))}return Bc(t,a,n),Tu(),!1}if(dt)return l=rl.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=n,a!==Oi&&(t=Error(f(422),{cause:a}),Va(xl(t,e)))):(a!==Oi&&(l=Error(f(423),{cause:a}),Va(xl(l,e))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=xl(a,e),n=sc(t.stateNode,a,n),Li(t,n),Ct!==4&&(Ct=2)),!1;var u=Error(f(520),{cause:a});if(u=xl(u,e),dn===null?dn=[u]:dn.push(u),Ct!==4&&(Ct=2),l===null)return!0;a=xl(a,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=n&-n,e.lanes|=t,t=sc(e.stateNode,a,t),Li(e,t),!1;case 1:if(l=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(me===null||!me.has(u))))return e.flags|=65536,n&=-n,e.lanes|=n,n=Ds(n),Cs(n,t,e,a),Li(e,n),!1}e=e.return}while(e!==null);return!1}var dc=Error(f(461)),qt=!1;function Kt(t,l,e,a){l.child=t===null?Bo(l,null,e,a):Ge(l,t.child,e,a)}function Rs(t,l,e,a,n){e=e.render;var u=l.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Be(l),a=Ji(t,l,e,i,u,n),c=Ki(),t!==null&&!qt?(wi(t,l,n),Vl(t,l,n)):(dt&&c&&ji(l),l.flags|=1,Kt(t,l,a,n),l.child)}function Us(t,l,e,a,n){if(t===null){var u=e.type;return typeof u=="function"&&!Ai(u)&&u.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=u,Hs(t,l,u,a,n)):(t=Vn(e.type,null,a,l,l.mode,n),t.ref=l.ref,t.return=l,l.child=t)}if(u=t.child,!pc(t,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:Qa,e(i,a)&&t.ref===l.ref)return Vl(t,l,n)}return l.flags|=1,t=Gl(u,a),t.ref=l.ref,t.return=l,l.child=t}function Hs(t,l,e,a,n){if(t!==null){var u=t.memoizedProps;if(Qa(u,a)&&t.ref===l.ref)if(qt=!1,l.pendingProps=a=u,pc(t,n))(t.flags&131072)!==0&&(qt=!0);else return l.lanes=t.lanes,Vl(t,l,n)}return rc(t,l,e,a,n)}function Bs(t,l,e,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((l.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,t!==null){for(a=l.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,l.child=null;return Ns(t,l,u,e,a)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&Wn(l,u!==null?u.cachePool:null),u!==null?Yo(l,u):Qi(),Go(l);else return a=l.lanes=536870912,Ns(t,l,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(Wn(l,u.cachePool),Yo(l,u),de(),l.memoizedState=null):(t!==null&&Wn(l,null),Qi(),de());return Kt(t,l,n,e),l.child}function an(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Ns(t,l,e,a,n){var u=Ni();return u=u===null?null:{parent:Bt._currentValue,pool:u},l.memoizedState={baseLanes:e,cachePool:u},t!==null&&Wn(l,null),Qi(),Go(l),t!==null&&fa(t,l,a,!0),l.childLanes=n,null}function du(t,l){return l=hu({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function qs(t,l,e){return Ge(l,t.child,null,e),t=du(l,l.pendingProps),t.flags|=2,hl(l),l.memoizedState=null,t}function ih(t,l,e){var a=l.pendingProps,n=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(dt){if(a.mode==="hidden")return t=du(l,a),l.lanes=536870912,an(null,t);if(ki(l),(t=jt)?(t=Wd(t,Al),t=t!==null&&t.data==="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:ae!==null?{id:Rl,overflow:Ul}:null,retryLane:536870912,hydrationErrors:null},e=So(t),e.return=l,l.child=e,Vt=l,jt=null)):t=null,t===null)throw ue(l);return l.lanes=536870912,null}return du(l,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(ki(l),n)if(l.flags&256)l.flags&=-257,l=qs(t,l,e);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(f(558));else if(qt||fa(t,l,e,!1),n=(e&t.childLanes)!==0,qt||n){if(a=Et,a!==null&&(i=Ef(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ce(t,i),il(a,t,i),dc;Tu(),l=qs(t,l,e)}else t=u.treeContext,jt=El(i.nextSibling),Vt=l,dt=!0,ne=null,Al=!1,t!==null&&zo(l,t),l=du(l,a),l.flags|=4096;return l}return t=Gl(t.child,{mode:a.mode,children:a.children}),t.ref=l.ref,l.child=t,t.return=l,t}function ru(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(f(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function rc(t,l,e,a,n){return Be(l),e=Ji(t,l,e,a,void 0,n),a=Ki(),t!==null&&!qt?(wi(t,l,n),Vl(t,l,n)):(dt&&a&&ji(l),l.flags|=1,Kt(t,l,e,n),l.child)}function Ys(t,l,e,a,n,u){return Be(l),l.updateQueue=null,e=Xo(l,a,e,n),Lo(t),a=Ki(),t!==null&&!qt?(wi(t,l,u),Vl(t,l,u)):(dt&&a&&ji(l),l.flags|=1,Kt(t,l,e,u),l.child)}function Gs(t,l,e,a,n){if(Be(l),l.stateNode===null){var u=na,i=e.contextType;typeof i=="object"&&i!==null&&(u=Jt(i)),u=new e(a,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=oc,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=a,u.state=l.memoizedState,u.refs={},Yi(l),i=e.contextType,u.context=typeof i=="object"&&i!==null?Jt(i):na,u.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(fc(l,e,i,a),u.state=l.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&oc.enqueueReplaceState(u,u.state,null),Ia(l,a,u,n),Fa(),u.state=l.memoizedState),typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(t===null){u=l.stateNode;var c=l.memoizedProps,o=Xe(e,c);u.props=o;var b=u.context,A=e.contextType;i=na,typeof A=="object"&&A!==null&&(i=Jt(A));var O=e.getDerivedStateFromProps;A=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=l.pendingProps!==c,A||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||b!==i)&&Ms(l,u,a,i),ce=!1;var S=l.memoizedState;u.state=S,Ia(l,a,u,n),Fa(),b=l.memoizedState,c||S!==b||ce?(typeof O=="function"&&(fc(l,e,O,a),b=l.memoizedState),(o=ce||As(l,e,o,a,S,b,i))?(A||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(l.flags|=4194308)):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=b),u.props=a,u.state=b,u.context=i,a=o):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{u=l.stateNode,Gi(t,l),i=l.memoizedProps,A=Xe(e,i),u.props=A,O=l.pendingProps,S=u.context,b=e.contextType,o=na,typeof b=="object"&&b!==null&&(o=Jt(b)),c=e.getDerivedStateFromProps,(b=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==O||S!==o)&&Ms(l,u,a,o),ce=!1,S=l.memoizedState,u.state=S,Ia(l,a,u,n),Fa();var z=l.memoizedState;i!==O||S!==z||ce||t!==null&&t.dependencies!==null&&Kn(t.dependencies)?(typeof c=="function"&&(fc(l,e,c,a),z=l.memoizedState),(A=ce||As(l,e,A,a,S,z,o)||t!==null&&t.dependencies!==null&&Kn(t.dependencies))?(b||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,z,o),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,z,o)),typeof u.componentDidUpdate=="function"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=z),u.props=a,u.state=z,u.context=o,a=A):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=1024),a=!1)}return u=a,ru(t,l),a=(l.flags&128)!==0,u||a?(u=l.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),l.flags|=1,t!==null&&a?(l.child=Ge(l,t.child,null,n),l.child=Ge(l,null,e,n)):Kt(t,l,e,n),l.memoizedState=u.state,t=l.child):t=Vl(t,l,n),t}function Ls(t,l,e,a){return Ue(),l.flags|=256,Kt(t,l,e,a),l.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(t){return{baseLanes:t,cachePool:Oo()}}function mc(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=ml),t}function Xs(t,l,e){var a=l.pendingProps,n=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(Ut.current&2)!==0),i&&(n=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(dt){if(n?se(l):de(),(t=jt)?(t=Wd(t,Al),t=t!==null&&t.data!=="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:ae!==null?{id:Rl,overflow:Ul}:null,retryLane:536870912,hydrationErrors:null},e=So(t),e.return=l,l.child=e,Vt=l,jt=null)):t=null,t===null)throw ue(l);return Fc(t)?l.lanes=32:l.lanes=536870912,null}var c=a.children;return a=a.fallback,n?(de(),n=l.mode,c=hu({mode:"hidden",children:c},n),a=Re(a,n,e,null),c.return=l,a.return=l,c.sibling=a,l.child=c,a=l.child,a.memoizedState=yc(e),a.childLanes=mc(t,i,e),l.memoizedState=hc,an(null,a)):(se(l),gc(l,c))}var o=t.memoizedState;if(o!==null&&(c=o.dehydrated,c!==null)){if(u)l.flags&256?(se(l),l.flags&=-257,l=vc(t,l,e)):l.memoizedState!==null?(de(),l.child=t.child,l.flags|=128,l=null):(de(),c=a.fallback,n=l.mode,a=hu({mode:"visible",children:a.children},n),c=Re(c,n,e,null),c.flags|=2,a.return=l,c.return=l,a.sibling=c,l.child=a,Ge(l,t.child,null,e),a=l.child,a.memoizedState=yc(e),a.childLanes=mc(t,i,e),l.memoizedState=hc,l=an(null,a));else if(se(l),Fc(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var b=i.dgst;i=b,a=Error(f(419)),a.stack="",a.digest=i,Va({value:a,source:null,stack:null}),l=vc(t,l,e)}else if(qt||fa(t,l,e,!1),i=(e&t.childLanes)!==0,qt||i){if(i=Et,i!==null&&(a=Ef(i,e),a!==0&&a!==o.retryLane))throw o.retryLane=a,Ce(t,a),il(i,t,a),dc;$c(c)||Tu(),l=vc(t,l,e)}else $c(c)?(l.flags|=192,l.child=t.child,l=null):(t=o.treeContext,jt=El(c.nextSibling),Vt=l,dt=!0,ne=null,Al=!1,t!==null&&zo(l,t),l=gc(l,a.children),l.flags|=4096);return l}return n?(de(),c=a.fallback,n=l.mode,o=t.child,b=o.sibling,a=Gl(o,{mode:"hidden",children:a.children}),a.subtreeFlags=o.subtreeFlags&65011712,b!==null?c=Gl(b,c):(c=Re(c,n,e,null),c.flags|=2),c.return=l,a.return=l,a.sibling=c,l.child=a,an(null,a),a=l.child,c=t.child.memoizedState,c===null?c=yc(e):(n=c.cachePool,n!==null?(o=Bt._currentValue,n=n.parent!==o?{parent:o,pool:o}:n):n=Oo(),c={baseLanes:c.baseLanes|e,cachePool:n}),a.memoizedState=c,a.childLanes=mc(t,i,e),l.memoizedState=hc,an(t.child,a)):(se(l),e=t.child,t=e.sibling,e=Gl(e,{mode:"visible",children:a.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function gc(t,l){return l=hu({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function hu(t,l){return t=dl(22,t,null,l),t.lanes=0,t}function vc(t,l,e){return Ge(l,t.child,null,e),t=gc(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function Qs(t,l,e){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l),Ri(t.return,l,e)}function bc(t,l,e,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function Zs(t,l,e){var a=l.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Ut.current,c=(i&2)!==0;if(c?(i=i&1|2,l.flags|=128):i&=1,q(Ut,i),Kt(t,l,a,e),a=dt?ka:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Qs(t,e,l);else if(t.tag===19)Qs(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(e=l.child,n=null;e!==null;)t=e.alternate,t!==null&&lu(t)===null&&(n=e),e=e.sibling;e=n,e===null?(n=l.child,l.child=null):(n=e.sibling,e.sibling=null),bc(l,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=l.child,l.child=null;n!==null;){if(t=n.alternate,t!==null&&lu(t)===null){l.child=n;break}t=n.sibling,n.sibling=e,e=n,n=t}bc(l,!0,e,null,u,a);break;case"together":bc(l,!1,null,null,void 0,a);break;default:l.memoizedState=null}return l.child}function Vl(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),ye|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(fa(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(f(153));if(l.child!==null){for(t=l.child,e=Gl(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=Gl(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function pc(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Kn(t)))}function ch(t,l,e){switch(l.tag){case 3:It(l,l.stateNode.containerInfo),ie(l,Bt,t.memoizedState.cache),Ue();break;case 27:case 5:Oa(l);break;case 4:It(l,l.stateNode.containerInfo);break;case 10:ie(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,ki(l),null;break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(se(l),l.flags|=128,null):(e&l.child.childLanes)!==0?Xs(t,l,e):(se(l),t=Vl(t,l,e),t!==null?t.sibling:null);se(l);break;case 19:var n=(t.flags&128)!==0;if(a=(e&l.childLanes)!==0,a||(fa(t,l,e,!1),a=(e&l.childLanes)!==0),n){if(a)return Zs(t,l,e);l.flags|=128}if(n=l.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),q(Ut,Ut.current),a)break;return null;case 22:return l.lanes=0,Bs(t,l,e,l.pendingProps);case 24:ie(l,Bt,t.memoizedState.cache)}return Vl(t,l,e)}function ks(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)qt=!0;else{if(!pc(t,e)&&(l.flags&128)===0)return qt=!1,ch(t,l,e);qt=(t.flags&131072)!==0}else qt=!1,dt&&(l.flags&1048576)!==0&&To(l,ka,l.index);switch(l.lanes=0,l.tag){case 16:t:{var a=l.pendingProps;if(t=qe(l.elementType),l.type=t,typeof t=="function")Ai(t)?(a=Xe(t,a),l.tag=1,l=Gs(null,l,t,a,e)):(l.tag=0,l=rc(null,l,t,a,e));else{if(t!=null){var n=t.$$typeof;if(n===H){l.tag=11,l=Rs(null,l,t,a,e);break t}else if(n===Z){l.tag=14,l=Us(null,l,t,a,e);break t}}throw l=Gt(t)||t,Error(f(306,l,""))}}return l;case 0:return rc(t,l,l.type,l.pendingProps,e);case 1:return a=l.type,n=Xe(a,l.pendingProps),Gs(t,l,a,n,e);case 3:t:{if(It(l,l.stateNode.containerInfo),t===null)throw Error(f(387));a=l.pendingProps;var u=l.memoizedState;n=u.element,Gi(t,l),Ia(l,a,null,e);var i=l.memoizedState;if(a=i.cache,ie(l,Bt,a),a!==u.cache&&Ui(l,[Bt],e,!0),Fa(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=Ls(t,l,a,e);break t}else if(a!==n){n=xl(Error(f(424)),l),Va(n),l=Ls(t,l,a,e);break t}else{switch(t=l.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(jt=El(t.firstChild),Vt=l,dt=!0,ne=null,Al=!0,e=Bo(l,null,a,e),l.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ue(),a===n){l=Vl(t,l,e);break t}Kt(t,l,a,e)}l=l.child}return l;case 26:return ru(t,l),t===null?(e=lr(l.type,null,l.pendingProps,null))?l.memoizedState=e:dt||(e=l.type,t=l.pendingProps,a=Ou(ut.current).createElement(e),a[kt]=l,a[tl]=t,wt(a,e,t),Xt(a),l.stateNode=a):l.memoizedState=lr(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Oa(l),t===null&&dt&&(a=l.stateNode=Id(l.type,l.pendingProps,ut.current),Vt=l,Al=!0,n=jt,pe(l.type)?(Ic=n,jt=El(a.firstChild)):jt=n),Kt(t,l,l.pendingProps.children,e),ru(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&dt&&((n=a=jt)&&(a=qh(a,l.type,l.pendingProps,Al),a!==null?(l.stateNode=a,Vt=l,jt=El(a.firstChild),Al=!1,n=!0):n=!1),n||ue(l)),Oa(l),n=l.type,u=l.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,Kc(n,u)?a=null:i!==null&&Kc(n,i)&&(l.flags|=32),l.memoizedState!==null&&(n=Ji(t,l,I0,null,null,e),pn._currentValue=n),ru(t,l),Kt(t,l,a,e),l.child;case 6:return t===null&&dt&&((t=e=jt)&&(e=Yh(e,l.pendingProps,Al),e!==null?(l.stateNode=e,Vt=l,jt=null,t=!0):t=!1),t||ue(l)),null;case 13:return Xs(t,l,e);case 4:return It(l,l.stateNode.containerInfo),a=l.pendingProps,t===null?l.child=Ge(l,null,a,e):Kt(t,l,a,e),l.child;case 11:return Rs(t,l,l.type,l.pendingProps,e);case 7:return Kt(t,l,l.pendingProps,e),l.child;case 8:return Kt(t,l,l.pendingProps.children,e),l.child;case 12:return Kt(t,l,l.pendingProps.children,e),l.child;case 10:return a=l.pendingProps,ie(l,l.type,a.value),Kt(t,l,a.children,e),l.child;case 9:return n=l.type._context,a=l.pendingProps.children,Be(l),n=Jt(n),a=a(n),l.flags|=1,Kt(t,l,a,e),l.child;case 14:return Us(t,l,l.type,l.pendingProps,e);case 15:return Hs(t,l,l.type,l.pendingProps,e);case 19:return Zs(t,l,e);case 31:return ih(t,l,e);case 22:return Bs(t,l,e,l.pendingProps);case 24:return Be(l),a=Jt(Bt),t===null?(n=Ni(),n===null&&(n=Et,u=Hi(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),l.memoizedState={parent:a,cache:n},Yi(l),ie(l,Bt,n)):((t.lanes&e)!==0&&(Gi(t,l),Ia(l,null,null,e),Fa()),n=t.memoizedState,u=l.memoizedState,n.parent!==a?(n={parent:a,cache:a},l.memoizedState=n,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=n),ie(l,Bt,a)):(a=u.cache,ie(l,Bt,a),a!==n.cache&&Ui(l,[Bt],e,!0))),Kt(t,l,l.pendingProps.children,e),l.child;case 29:throw l.pendingProps}throw Error(f(156,l.tag))}function Jl(t){t.flags|=4}function Sc(t,l,e,a,n){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(vd())t.flags|=8192;else throw Ye=Fn,qi}else t.flags&=-16777217}function Vs(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ir(l))if(vd())t.flags|=8192;else throw Ye=Fn,qi}function yu(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?zf():536870912,t.lanes|=l,Sa|=l)}function nn(t,l){if(!dt)switch(t.tailMode){case"hidden":l=t.tail;for(var e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null;break;case"collapsed":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function _t(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,a=0;if(l)for(var n=t.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=e,l}function fh(t,l,e){var a=l.pendingProps;switch(_i(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(l),null;case 1:return _t(l),null;case 3:return e=l.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Ql(Bt),Rt(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(ca(l)?Jl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Di())),_t(l),null;case 26:var n=l.type,u=l.memoizedState;return t===null?(Jl(l),u!==null?(_t(l),Vs(l,u)):(_t(l),Sc(l,n,null,a,e))):u?u!==t.memoizedState?(Jl(l),_t(l),Vs(l,u)):(_t(l),l.flags&=-16777217):(t=t.memoizedProps,t!==a&&Jl(l),_t(l),Sc(l,n,t,a,e)),null;case 27:if(Mn(l),e=ut.current,n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Jl(l);else{if(!a){if(l.stateNode===null)throw Error(f(166));return _t(l),null}t=L.current,ca(l)?Ao(l):(t=Id(n,a,e),l.stateNode=t,Jl(l))}return _t(l),null;case 5:if(Mn(l),n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Jl(l);else{if(!a){if(l.stateNode===null)throw Error(f(166));return _t(l),null}if(u=L.current,ca(l))Ao(l);else{var i=Ou(ut.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[kt]=l,u[tl]=a;t:for(i=l.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=u;t:switch(wt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Jl(l)}}return _t(l),Sc(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==a&&Jl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(f(166));if(t=ut.current,ca(l)){if(t=l.stateNode,e=l.memoizedProps,a=null,n=Vt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[kt]=l,t=!!(t.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Xd(t.nodeValue,e)),t||ue(l,!0)}else t=Ou(t).createTextNode(a),t[kt]=l,l.stateNode=t}return _t(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(a=ca(l),e!==null){if(t===null){if(!a)throw Error(f(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(557));t[kt]=l}else Ue(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;_t(l),t=!1}else e=Di(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(hl(l),l):(hl(l),null);if((l.flags&128)!==0)throw Error(f(558))}return _t(l),null;case 13:if(a=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=ca(l),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(f(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[kt]=l}else Ue(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;_t(l),n=!1}else n=Di(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return l.flags&256?(hl(l),l):(hl(l),null)}return hl(l),(l.flags&128)!==0?(l.lanes=e,l):(e=a!==null,t=t!==null&&t.memoizedState!==null,e&&(a=l.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),e!==t&&e&&(l.child.flags|=8192),yu(l,l.updateQueue),_t(l),null);case 4:return Rt(),t===null&&Qc(l.stateNode.containerInfo),_t(l),null;case 10:return Ql(l.type),_t(l),null;case 19:if(_(Ut),a=l.memoizedState,a===null)return _t(l),null;if(n=(l.flags&128)!==0,u=a.rendering,u===null)if(n)nn(a,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(u=lu(t),u!==null){for(l.flags|=128,nn(a,!1),t=u.updateQueue,l.updateQueue=t,yu(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)po(e,t),e=e.sibling;return q(Ut,Ut.current&1|2),dt&&Ll(l,a.treeForkCount),l.child}t=t.sibling}a.tail!==null&&cl()>pu&&(l.flags|=128,n=!0,nn(a,!1),l.lanes=4194304)}else{if(!n)if(t=lu(u),t!==null){if(l.flags|=128,n=!0,t=t.updateQueue,l.updateQueue=t,yu(l,t),nn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!dt)return _t(l),null}else 2*cl()-a.renderingStartTime>pu&&e!==536870912&&(l.flags|=128,n=!0,nn(a,!1),l.lanes=4194304);a.isBackwards?(u.sibling=l.child,l.child=u):(t=a.last,t!==null?t.sibling=u:l.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=cl(),t.sibling=null,e=Ut.current,q(Ut,n?e&1|2:e&1),dt&&Ll(l,a.treeForkCount),t):(_t(l),null);case 22:case 23:return hl(l),Zi(),a=l.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(e&536870912)!==0&&(l.flags&128)===0&&(_t(l),l.subtreeFlags&6&&(l.flags|=8192)):_t(l),e=l.updateQueue,e!==null&&yu(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==e&&(l.flags|=2048),t!==null&&_(Ne),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Ql(Bt),_t(l),null;case 25:return null;case 30:return null}throw Error(f(156,l.tag))}function oh(t,l){switch(_i(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Ql(Bt),Rt(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return Mn(l),null;case 31:if(l.memoizedState!==null){if(hl(l),l.alternate===null)throw Error(f(340));Ue()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(hl(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(f(340));Ue()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return _(Ut),null;case 4:return Rt(),null;case 10:return Ql(l.type),null;case 22:case 23:return hl(l),Zi(),t!==null&&_(Ne),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Ql(Bt),null;case 25:return null;default:return null}}function Js(t,l){switch(_i(l),l.tag){case 3:Ql(Bt),Rt();break;case 26:case 27:case 5:Mn(l);break;case 4:Rt();break;case 31:l.memoizedState!==null&&hl(l);break;case 13:hl(l);break;case 19:_(Ut);break;case 10:Ql(l.type);break;case 22:case 23:hl(l),Zi(),t!==null&&_(Ne);break;case 24:Ql(Bt)}}function un(t,l){try{var e=l.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&t)===t){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(c){pt(l,l.return,c)}}function re(t,l,e){try{var a=l.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=l;var o=e,b=c;try{b()}catch(A){pt(n,o,A)}}}a=a.next}while(a!==u)}}catch(A){pt(l,l.return,A)}}function Ks(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{qo(l,e)}catch(a){pt(t,t.return,a)}}}function ws(t,l,e){e.props=Xe(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(a){pt(t,l,a)}}function cn(t,l){try{var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof e=="function"?t.refCleanup=e(a):e.current=a}}catch(n){pt(t,l,n)}}function Hl(t,l){var e=t.ref,a=t.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){pt(t,l,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){pt(t,l,n)}else e.current=null}function Ws(t){var l=t.type,e=t.memoizedProps,a=t.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break t;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){pt(t,t.return,n)}}function xc(t,l,e){try{var a=t.stateNode;Ch(a,t.type,e,l),a[tl]=l}catch(n){pt(t,t.return,n)}}function $s(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&pe(t.type)||t.tag===4}function Tc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$s(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&pe(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function zc(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(t,l):(l=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.appendChild(t),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=ql));else if(a!==4&&(a===27&&pe(t.type)&&(e=t.stateNode,l=null),t=t.child,t!==null))for(zc(t,l,e),t=t.sibling;t!==null;)zc(t,l,e),t=t.sibling}function mu(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?e.insertBefore(t,l):e.appendChild(t);else if(a!==4&&(a===27&&pe(t.type)&&(e=t.stateNode),t=t.child,t!==null))for(mu(t,l,e),t=t.sibling;t!==null;)mu(t,l,e),t=t.sibling}function Fs(t){var l=t.stateNode,e=t.memoizedProps;try{for(var a=t.type,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);wt(l,a,e),l[kt]=t,l[tl]=e}catch(u){pt(t,t.return,u)}}var Kl=!1,Yt=!1,Ac=!1,Is=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function sh(t,l){if(t=t.containerInfo,Vc=Nu,t=oo(t),vi(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{e=(e=t.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break t}var i=0,c=-1,o=-1,b=0,A=0,O=t,S=null;l:for(;;){for(var z;O!==e||n!==0&&O.nodeType!==3||(c=i+n),O!==u||a!==0&&O.nodeType!==3||(o=i+a),O.nodeType===3&&(i+=O.nodeValue.length),(z=O.firstChild)!==null;)S=O,O=z;for(;;){if(O===t)break l;if(S===e&&++b===n&&(c=i),S===u&&++A===a&&(o=i),(z=O.nextSibling)!==null)break;O=S,S=O.parentNode}O=z}e=c===-1||o===-1?null:{start:c,end:o}}else e=null}e=e||{start:0,end:0}}else e=null;for(Jc={focusedElem:t,selectionRange:e},Nu=!1,Qt=l;Qt!==null;)if(l=Qt,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Qt=t;else for(;Qt!==null;){switch(l=Qt,u=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(e=0;e<t.length;e++)n=t[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,e=l,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var X=Xe(e.type,n);t=a.getSnapshotBeforeUpdate(X,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(W){pt(e,e.return,W)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,e=t.nodeType,e===9)Wc(t);else if(e===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Wc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(f(163))}if(t=l.sibling,t!==null){t.return=l.return,Qt=t;break}Qt=l.return}}function Ps(t,l,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Wl(t,e),a&4&&un(5,e);break;case 1:if(Wl(t,e),a&4)if(t=e.stateNode,l===null)try{t.componentDidMount()}catch(i){pt(e,e.return,i)}else{var n=Xe(e.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(n,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){pt(e,e.return,i)}}a&64&&Ks(e),a&512&&cn(e,e.return);break;case 3:if(Wl(t,e),a&64&&(t=e.updateQueue,t!==null)){if(l=null,e.child!==null)switch(e.child.tag){case 27:case 5:l=e.child.stateNode;break;case 1:l=e.child.stateNode}try{qo(t,l)}catch(i){pt(e,e.return,i)}}break;case 27:l===null&&a&4&&Fs(e);case 26:case 5:Wl(t,e),l===null&&a&4&&Ws(e),a&512&&cn(e,e.return);break;case 12:Wl(t,e);break;case 31:Wl(t,e),a&4&&ed(t,e);break;case 13:Wl(t,e),a&4&&ad(t,e),a&64&&(t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(e=ph.bind(null,e),Gh(t,e))));break;case 22:if(a=e.memoizedState!==null||Kl,!a){l=l!==null&&l.memoizedState!==null||Yt,n=Kl;var u=Yt;Kl=a,(Yt=l)&&!u?$l(t,e,(e.subtreeFlags&8772)!==0):Wl(t,e),Kl=n,Yt=u}break;case 30:break;default:Wl(t,e)}}function td(t){var l=t.alternate;l!==null&&(t.alternate=null,td(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&ti(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ot=null,el=!1;function wl(t,l,e){for(e=e.child;e!==null;)ld(t,l,e),e=e.sibling}function ld(t,l,e){if(fl&&typeof fl.onCommitFiberUnmount=="function")try{fl.onCommitFiberUnmount(Da,e)}catch{}switch(e.tag){case 26:Yt||Hl(e,l),wl(t,l,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Yt||Hl(e,l);var a=Ot,n=el;pe(e.type)&&(Ot=e.stateNode,el=!1),wl(t,l,e),gn(e.stateNode),Ot=a,el=n;break;case 5:Yt||Hl(e,l);case 6:if(a=Ot,n=el,Ot=null,wl(t,l,e),Ot=a,el=n,Ot!==null)if(el)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(e.stateNode)}catch(u){pt(e,l,u)}else try{Ot.removeChild(e.stateNode)}catch(u){pt(e,l,u)}break;case 18:Ot!==null&&(el?(t=Ot,Kd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,e.stateNode),_a(t)):Kd(Ot,e.stateNode));break;case 4:a=Ot,n=el,Ot=e.stateNode.containerInfo,el=!0,wl(t,l,e),Ot=a,el=n;break;case 0:case 11:case 14:case 15:re(2,e,l),Yt||re(4,e,l),wl(t,l,e);break;case 1:Yt||(Hl(e,l),a=e.stateNode,typeof a.componentWillUnmount=="function"&&ws(e,l,a)),wl(t,l,e);break;case 21:wl(t,l,e);break;case 22:Yt=(a=Yt)||e.memoizedState!==null,wl(t,l,e),Yt=a;break;default:wl(t,l,e)}}function ed(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{_a(t)}catch(e){pt(l,l.return,e)}}}function ad(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_a(t)}catch(e){pt(l,l.return,e)}}function dh(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new Is),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new Is),l;default:throw Error(f(435,t.tag))}}function gu(t,l){var e=dh(t);l.forEach(function(a){if(!e.has(a)){e.add(a);var n=Sh.bind(null,t,a);a.then(n,n)}})}function al(t,l){var e=l.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=t,i=l,c=i;t:for(;c!==null;){switch(c.tag){case 27:if(pe(c.type)){Ot=c.stateNode,el=!1;break t}break;case 5:Ot=c.stateNode,el=!1;break t;case 3:case 4:Ot=c.stateNode.containerInfo,el=!0;break t}c=c.return}if(Ot===null)throw Error(f(160));ld(u,i,n),Ot=null,el=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)nd(l,t),l=l.sibling}var Ol=null;function nd(t,l){var e=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:al(l,t),nl(t),a&4&&(re(3,t,t.return),un(3,t),re(5,t,t.return));break;case 1:al(l,t),nl(t),a&512&&(Yt||e===null||Hl(e,e.return)),a&64&&Kl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(e=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var n=Ol;if(al(l,t),nl(t),a&512&&(Yt||e===null||Hl(e,e.return)),a&4){var u=e!==null?e.memoizedState:null;if(a=t.memoizedState,e===null)if(a===null)if(t.stateNode===null){t:{a=t.type,e=t.memoizedProps,n=n.ownerDocument||n;l:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ua]||u[kt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),wt(u,a,e),u[kt]=t,Xt(u),a=u;break t;case"link":var i=nr("link","href",n).get(a+(e.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&u.getAttribute("rel")===(e.rel==null?null:e.rel)&&u.getAttribute("title")===(e.title==null?null:e.title)&&u.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(c,1);break l}}u=n.createElement(a),wt(u,a,e),n.head.appendChild(u);break;case"meta":if(i=nr("meta","content",n).get(a+(e.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(e.content==null?null:""+e.content)&&u.getAttribute("name")===(e.name==null?null:e.name)&&u.getAttribute("property")===(e.property==null?null:e.property)&&u.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(c,1);break l}}u=n.createElement(a),wt(u,a,e),n.head.appendChild(u);break;default:throw Error(f(468,a))}u[kt]=t,Xt(u),a=u}t.stateNode=a}else ur(n,t.type,t.stateNode);else t.stateNode=ar(n,a,t.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?ur(n,t.type,t.stateNode):ar(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&xc(t,t.memoizedProps,e.memoizedProps)}break;case 27:al(l,t),nl(t),a&512&&(Yt||e===null||Hl(e,e.return)),e!==null&&a&4&&xc(t,t.memoizedProps,e.memoizedProps);break;case 5:if(al(l,t),nl(t),a&512&&(Yt||e===null||Hl(e,e.return)),t.flags&32){n=t.stateNode;try{Fe(n,"")}catch(X){pt(t,t.return,X)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,xc(t,n,e!==null?e.memoizedProps:n)),a&1024&&(Ac=!0);break;case 6:if(al(l,t),nl(t),a&4){if(t.stateNode===null)throw Error(f(162));a=t.memoizedProps,e=t.stateNode;try{e.nodeValue=a}catch(X){pt(t,t.return,X)}}break;case 3:if(Ru=null,n=Ol,Ol=Du(l.containerInfo),al(l,t),Ol=n,nl(t),a&4&&e!==null&&e.memoizedState.isDehydrated)try{_a(l.containerInfo)}catch(X){pt(t,t.return,X)}Ac&&(Ac=!1,ud(t));break;case 4:a=Ol,Ol=Du(t.stateNode.containerInfo),al(l,t),nl(t),Ol=a;break;case 12:al(l,t),nl(t);break;case 31:al(l,t),nl(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,gu(t,a)));break;case 13:al(l,t),nl(t),t.child.flags&8192&&t.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(bu=cl()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,gu(t,a)));break;case 22:n=t.memoizedState!==null;var o=e!==null&&e.memoizedState!==null,b=Kl,A=Yt;if(Kl=b||n,Yt=A||o,al(l,t),Yt=A,Kl=b,nl(t),a&8192)t:for(l=t.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,n&&(e===null||o||Kl||Yt||Qe(t)),e=null,l=t;;){if(l.tag===5||l.tag===26){if(e===null){o=e=l;try{if(u=o.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=o.stateNode;var O=o.memoizedProps.style,S=O!=null&&O.hasOwnProperty("display")?O.display:null;c.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(X){pt(o,o.return,X)}}}else if(l.tag===6){if(e===null){o=l;try{o.stateNode.nodeValue=n?"":o.memoizedProps}catch(X){pt(o,o.return,X)}}}else if(l.tag===18){if(e===null){o=l;try{var z=o.stateNode;n?wd(z,!0):wd(o.stateNode,!1)}catch(X){pt(o,o.return,X)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;e===l&&(e=null),l=l.return}e===l&&(e=null),l.sibling.return=l.return,l=l.sibling}a&4&&(a=t.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,gu(t,e))));break;case 19:al(l,t),nl(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,gu(t,a)));break;case 30:break;case 21:break;default:al(l,t),nl(t)}}function nl(t){var l=t.flags;if(l&2){try{for(var e,a=t.return;a!==null;){if($s(a)){e=a;break}a=a.return}if(e==null)throw Error(f(160));switch(e.tag){case 27:var n=e.stateNode,u=Tc(t);mu(t,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(Fe(i,""),e.flags&=-33);var c=Tc(t);mu(t,c,i);break;case 3:case 4:var o=e.stateNode.containerInfo,b=Tc(t);zc(t,b,o);break;default:throw Error(f(161))}}catch(A){pt(t,t.return,A)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function ud(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;ud(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function Wl(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Ps(t,l.alternate,l),l=l.sibling}function Qe(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:re(4,l,l.return),Qe(l);break;case 1:Hl(l,l.return);var e=l.stateNode;typeof e.componentWillUnmount=="function"&&ws(l,l.return,e),Qe(l);break;case 27:gn(l.stateNode);case 26:case 5:Hl(l,l.return),Qe(l);break;case 22:l.memoizedState===null&&Qe(l);break;case 30:Qe(l);break;default:Qe(l)}t=t.sibling}}function $l(t,l,e){for(e=e&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var a=l.alternate,n=t,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:$l(n,u,e),un(4,u);break;case 1:if($l(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(b){pt(a,a.return,b)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var o=n.shared.hiddenCallbacks;if(o!==null)for(n.shared.hiddenCallbacks=null,n=0;n<o.length;n++)No(o[n],c)}catch(b){pt(a,a.return,b)}}e&&i&64&&Ks(u),cn(u,u.return);break;case 27:Fs(u);case 26:case 5:$l(n,u,e),e&&a===null&&i&4&&Ws(u),cn(u,u.return);break;case 12:$l(n,u,e);break;case 31:$l(n,u,e),e&&i&4&&ed(n,u);break;case 13:$l(n,u,e),e&&i&4&&ad(n,u);break;case 22:u.memoizedState===null&&$l(n,u,e),cn(u,u.return);break;case 30:break;default:$l(n,u,e)}l=l.sibling}}function Mc(t,l){var e=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==e&&(t!=null&&t.refCount++,e!=null&&Ja(e))}function Ec(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ja(t))}function Dl(t,l,e,a){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)id(t,l,e,a),l=l.sibling}function id(t,l,e,a){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Dl(t,l,e,a),n&2048&&un(9,l);break;case 1:Dl(t,l,e,a);break;case 3:Dl(t,l,e,a),n&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ja(t)));break;case 12:if(n&2048){Dl(t,l,e,a),t=l.stateNode;try{var u=l.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,l.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(o){pt(l,l.return,o)}}else Dl(t,l,e,a);break;case 31:Dl(t,l,e,a);break;case 13:Dl(t,l,e,a);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?Dl(t,l,e,a):fn(t,l):u._visibility&2?Dl(t,l,e,a):(u._visibility|=2,va(t,l,e,a,(l.subtreeFlags&10256)!==0||!1)),n&2048&&Mc(i,l);break;case 24:Dl(t,l,e,a),n&2048&&Ec(l.alternate,l);break;default:Dl(t,l,e,a)}}function va(t,l,e,a,n){for(n=n&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var u=t,i=l,c=e,o=a,b=i.flags;switch(i.tag){case 0:case 11:case 15:va(u,i,c,o,n),un(8,i);break;case 23:break;case 22:var A=i.stateNode;i.memoizedState!==null?A._visibility&2?va(u,i,c,o,n):fn(u,i):(A._visibility|=2,va(u,i,c,o,n)),n&&b&2048&&Mc(i.alternate,i);break;case 24:va(u,i,c,o,n),n&&b&2048&&Ec(i.alternate,i);break;default:va(u,i,c,o,n)}l=l.sibling}}function fn(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var e=t,a=l,n=a.flags;switch(a.tag){case 22:fn(e,a),n&2048&&Mc(a.alternate,a);break;case 24:fn(e,a),n&2048&&Ec(a.alternate,a);break;default:fn(e,a)}l=l.sibling}}var on=8192;function ba(t,l,e){if(t.subtreeFlags&on)for(t=t.child;t!==null;)cd(t,l,e),t=t.sibling}function cd(t,l,e){switch(t.tag){case 26:ba(t,l,e),t.flags&on&&t.memoizedState!==null&&Fh(e,Ol,t.memoizedState,t.memoizedProps);break;case 5:ba(t,l,e);break;case 3:case 4:var a=Ol;Ol=Du(t.stateNode.containerInfo),ba(t,l,e),Ol=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=on,on=16777216,ba(t,l,e),on=a):ba(t,l,e));break;default:ba(t,l,e)}}function fd(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function sn(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Qt=a,sd(a,t)}fd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)od(t),t=t.sibling}function od(t){switch(t.tag){case 0:case 11:case 15:sn(t),t.flags&2048&&re(9,t,t.return);break;case 3:sn(t);break;case 12:sn(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,vu(t)):sn(t);break;default:sn(t)}}function vu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Qt=a,sd(a,t)}fd(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:re(8,l,l.return),vu(l);break;case 22:e=l.stateNode,e._visibility&2&&(e._visibility&=-3,vu(l));break;default:vu(l)}t=t.sibling}}function sd(t,l){for(;Qt!==null;){var e=Qt;switch(e.tag){case 0:case 11:case 15:re(8,e,l);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ja(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Qt=a;else t:for(e=t;Qt!==null;){a=Qt;var n=a.sibling,u=a.return;if(td(a),a===e){Qt=null;break t}if(n!==null){n.return=u,Qt=n;break t}Qt=u}}}var rh={getCacheForType:function(t){var l=Jt(Bt),e=l.data.get(t);return e===void 0&&(e=t(),l.data.set(t,e)),e},cacheSignal:function(){return Jt(Bt).controller.signal}},hh=typeof WeakMap=="function"?WeakMap:Map,gt=0,Et=null,it=null,ot=0,bt=0,yl=null,he=!1,pa=!1,jc=!1,Fl=0,Ct=0,ye=0,Ze=0,_c=0,ml=0,Sa=0,dn=null,ul=null,Oc=!1,bu=0,dd=0,pu=1/0,Su=null,me=null,Lt=0,ge=null,xa=null,Il=0,Dc=0,Cc=null,rd=null,rn=0,Rc=null;function gl(){return(gt&2)!==0&&ot!==0?ot&-ot:M.T!==null?Yc():jf()}function hd(){if(ml===0)if((ot&536870912)===0||dt){var t=_n;_n<<=1,(_n&3932160)===0&&(_n=262144),ml=t}else ml=536870912;return t=rl.current,t!==null&&(t.flags|=32),ml}function il(t,l,e){(t===Et&&(bt===2||bt===9)||t.cancelPendingCommit!==null)&&(Ta(t,0),ve(t,ot,ml,!1)),Ra(t,e),((gt&2)===0||t!==Et)&&(t===Et&&((gt&2)===0&&(Ze|=e),Ct===4&&ve(t,ot,ml,!1)),Bl(t))}function yd(t,l,e){if((gt&6)!==0)throw Error(f(327));var a=!e&&(l&127)===0&&(l&t.expiredLanes)===0||Ca(t,l),n=a?gh(t,l):Hc(t,l,!0),u=a;do{if(n===0){pa&&!a&&ve(t,l,0,!1);break}else{if(e=t.current.alternate,u&&!yh(e)){n=Hc(t,l,!1),u=!1;continue}if(n===2){if(u=l,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var c=t;n=dn;var o=c.current.memoizedState.isDehydrated;if(o&&(Ta(c,i).flags|=256),i=Hc(c,i,!1),i!==2){if(jc&&!o){c.errorRecoveryDisabledLanes|=u,Ze|=u,n=4;break t}u=ul,ul=n,u!==null&&(ul===null?ul=u:ul.push.apply(ul,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ta(t,0),ve(t,l,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(f(345));case 4:if((l&4194048)!==l)break;case 6:ve(a,l,ml,!he);break t;case 2:ul=null;break;case 3:case 5:break;default:throw Error(f(329))}if((l&62914560)===l&&(n=bu+300-cl(),10<n)){if(ve(a,l,ml,!he),Dn(a,0,!0)!==0)break t;Il=l,a.timeoutHandle=Vd(md.bind(null,a,e,ul,Su,Oc,l,ml,Ze,Sa,he,u,"Throttled",-0,0),n);break t}md(a,e,ul,Su,Oc,l,ml,Ze,Sa,he,u,null,-0,0)}}break}while(!0);Bl(t)}function md(t,l,e,a,n,u,i,c,o,b,A,O,S,z){if(t.timeoutHandle=-1,O=l.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ql},cd(l,u,O);var X=(u&62914560)===u?bu-cl():(u&4194048)===u?dd-cl():0;if(X=Ih(O,X),X!==null){Il=u,t.cancelPendingCommit=X(zd.bind(null,t,l,u,e,a,n,i,c,o,A,O,null,S,z)),ve(t,u,i,!b);return}}zd(t,l,u,e,a,n,i,c,o)}function yh(t){for(var l=t;;){var e=l.tag;if((e===0||e===11||e===15)&&l.flags&16384&&(e=l.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var n=e[a],u=n.getSnapshot;n=n.value;try{if(!sl(u(),n))return!1}catch{return!1}}if(e=l.child,l.subtreeFlags&16384&&e!==null)e.return=l,l=e;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function ve(t,l,e,a){l&=~_c,l&=~Ze,t.suspendedLanes|=l,t.pingedLanes&=~l,a&&(t.warmLanes|=l),a=t.expirationTimes;for(var n=l;0<n;){var u=31-ol(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&Af(t,e,l)}function xu(){return(gt&6)===0?(hn(0),!1):!0}function Uc(){if(it!==null){if(bt===0)var t=it.return;else t=it,Xl=He=null,Wi(t),ra=null,wa=0,t=it;for(;t!==null;)Js(t.alternate,t),t=t.return;it=null}}function Ta(t,l){var e=t.timeoutHandle;e!==-1&&(t.timeoutHandle=-1,Hh(e)),e=t.cancelPendingCommit,e!==null&&(t.cancelPendingCommit=null,e()),Il=0,Uc(),Et=t,it=e=Gl(t.current,null),ot=l,bt=0,yl=null,he=!1,pa=Ca(t,l),jc=!1,Sa=ml=_c=Ze=ye=Ct=0,ul=dn=null,Oc=!1,(l&8)!==0&&(l|=l&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=l;0<a;){var n=31-ol(a),u=1<<n;l|=t[n],a&=~u}return Fl=l,Qn(),e}function gd(t,l){tt=null,M.H=en,l===da||l===$n?(l=Ro(),bt=3):l===qi?(l=Ro(),bt=4):bt=l===dc?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,yl=l,it===null&&(Ct=1,su(t,xl(l,t.current)))}function vd(){var t=rl.current;return t===null?!0:(ot&4194048)===ot?Ml===null:(ot&62914560)===ot||(ot&536870912)!==0?t===Ml:!1}function bd(){var t=M.H;return M.H=en,t===null?en:t}function pd(){var t=M.A;return M.A=rh,t}function Tu(){Ct=4,he||(ot&4194048)!==ot&&rl.current!==null||(pa=!0),(ye&134217727)===0&&(Ze&134217727)===0||Et===null||ve(Et,ot,ml,!1)}function Hc(t,l,e){var a=gt;gt|=2;var n=bd(),u=pd();(Et!==t||ot!==l)&&(Su=null,Ta(t,l)),l=!1;var i=Ct;t:do try{if(bt!==0&&it!==null){var c=it,o=yl;switch(bt){case 8:Uc(),i=6;break t;case 3:case 2:case 9:case 6:rl.current===null&&(l=!0);var b=bt;if(bt=0,yl=null,za(t,c,o,b),e&&pa){i=0;break t}break;default:b=bt,bt=0,yl=null,za(t,c,o,b)}}mh(),i=Ct;break}catch(A){gd(t,A)}while(!0);return l&&t.shellSuspendCounter++,Xl=He=null,gt=a,M.H=n,M.A=u,it===null&&(Et=null,ot=0,Qn()),i}function mh(){for(;it!==null;)Sd(it)}function gh(t,l){var e=gt;gt|=2;var a=bd(),n=pd();Et!==t||ot!==l?(Su=null,pu=cl()+500,Ta(t,l)):pa=Ca(t,l);t:do try{if(bt!==0&&it!==null){l=it;var u=yl;l:switch(bt){case 1:bt=0,yl=null,za(t,l,u,1);break;case 2:case 9:if(Do(u)){bt=0,yl=null,xd(l);break}l=function(){bt!==2&&bt!==9||Et!==t||(bt=7),Bl(t)},u.then(l,l);break t;case 3:bt=7;break t;case 4:bt=5;break t;case 7:Do(u)?(bt=0,yl=null,xd(l)):(bt=0,yl=null,za(t,l,u,7));break;case 5:var i=null;switch(it.tag){case 26:i=it.memoizedState;case 5:case 27:var c=it;if(i?ir(i):c.stateNode.complete){bt=0,yl=null;var o=c.sibling;if(o!==null)it=o;else{var b=c.return;b!==null?(it=b,zu(b)):it=null}break l}}bt=0,yl=null,za(t,l,u,5);break;case 6:bt=0,yl=null,za(t,l,u,6);break;case 8:Uc(),Ct=6;break t;default:throw Error(f(462))}}vh();break}catch(A){gd(t,A)}while(!0);return Xl=He=null,M.H=a,M.A=n,gt=e,it!==null?0:(Et=null,ot=0,Qn(),Ct)}function vh(){for(;it!==null&&!Lr();)Sd(it)}function Sd(t){var l=ks(t.alternate,t,Fl);t.memoizedProps=t.pendingProps,l===null?zu(t):it=l}function xd(t){var l=t,e=l.alternate;switch(l.tag){case 15:case 0:l=Ys(e,l,l.pendingProps,l.type,void 0,ot);break;case 11:l=Ys(e,l,l.pendingProps,l.type.render,l.ref,ot);break;case 5:Wi(l);default:Js(e,l),l=it=po(l,Fl),l=ks(e,l,Fl)}t.memoizedProps=t.pendingProps,l===null?zu(t):it=l}function za(t,l,e,a){Xl=He=null,Wi(l),ra=null,wa=0;var n=l.return;try{if(uh(t,n,l,e,ot)){Ct=1,su(t,xl(e,t.current)),it=null;return}}catch(u){if(n!==null)throw it=n,u;Ct=1,su(t,xl(e,t.current)),it=null;return}l.flags&32768?(dt||a===1?t=!0:pa||(ot&536870912)!==0?t=!1:(he=t=!0,(a===2||a===9||a===3||a===6)&&(a=rl.current,a!==null&&a.tag===13&&(a.flags|=16384))),Td(l,t)):zu(l)}function zu(t){var l=t;do{if((l.flags&32768)!==0){Td(l,he);return}t=l.return;var e=fh(l.alternate,l,Fl);if(e!==null){it=e;return}if(l=l.sibling,l!==null){it=l;return}it=l=t}while(l!==null);Ct===0&&(Ct=5)}function Td(t,l){do{var e=oh(t.alternate,t);if(e!==null){e.flags&=32767,it=e;return}if(e=t.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!l&&(t=t.sibling,t!==null)){it=t;return}it=t=e}while(t!==null);Ct=6,it=null}function zd(t,l,e,a,n,u,i,c,o){t.cancelPendingCommit=null;do Au();while(Lt!==0);if((gt&6)!==0)throw Error(f(327));if(l!==null){if(l===t.current)throw Error(f(177));if(u=l.lanes|l.childLanes,u|=Ti,$r(t,e,u,i,c,o),t===Et&&(it=Et=null,ot=0),xa=l,ge=t,Il=e,Dc=u,Cc=n,rd=a,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,xh(En,function(){return _d(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,n=N.p,N.p=2,i=gt,gt|=4;try{sh(t,l,e)}finally{gt=i,N.p=n,M.T=a}}Lt=1,Ad(),Md(),Ed()}}function Ad(){if(Lt===1){Lt=0;var t=ge,l=xa,e=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||e){e=M.T,M.T=null;var a=N.p;N.p=2;var n=gt;gt|=4;try{nd(l,t);var u=Jc,i=oo(t.containerInfo),c=u.focusedElem,o=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&fo(c.ownerDocument.documentElement,c)){if(o!==null&&vi(c)){var b=o.start,A=o.end;if(A===void 0&&(A=b),"selectionStart"in c)c.selectionStart=b,c.selectionEnd=Math.min(A,c.value.length);else{var O=c.ownerDocument||document,S=O&&O.defaultView||window;if(S.getSelection){var z=S.getSelection(),X=c.textContent.length,W=Math.min(o.start,X),At=o.end===void 0?W:Math.min(o.end,X);!z.extend&&W>At&&(i=At,At=W,W=i);var y=co(c,W),h=co(c,At);if(y&&h&&(z.rangeCount!==1||z.anchorNode!==y.node||z.anchorOffset!==y.offset||z.focusNode!==h.node||z.focusOffset!==h.offset)){var v=O.createRange();v.setStart(y.node,y.offset),z.removeAllRanges(),W>At?(z.addRange(v),z.extend(h.node,h.offset)):(v.setEnd(h.node,h.offset),z.addRange(v))}}}}for(O=[],z=c;z=z.parentNode;)z.nodeType===1&&O.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<O.length;c++){var E=O[c];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}Nu=!!Vc,Jc=Vc=null}finally{gt=n,N.p=a,M.T=e}}t.current=l,Lt=2}}function Md(){if(Lt===2){Lt=0;var t=ge,l=xa,e=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||e){e=M.T,M.T=null;var a=N.p;N.p=2;var n=gt;gt|=4;try{Ps(t,l.alternate,l)}finally{gt=n,N.p=a,M.T=e}}Lt=3}}function Ed(){if(Lt===4||Lt===3){Lt=0,Xr();var t=ge,l=xa,e=Il,a=rd;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Lt=5:(Lt=0,xa=ge=null,jd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(me=null),Iu(e),l=l.stateNode,fl&&typeof fl.onCommitFiberRoot=="function")try{fl.onCommitFiberRoot(Da,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=M.T,n=N.p,N.p=2,M.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{M.T=l,N.p=n}}(Il&3)!==0&&Au(),Bl(t),n=t.pendingLanes,(e&261930)!==0&&(n&42)!==0?t===Rc?rn++:(rn=0,Rc=t):rn=0,hn(0)}}function jd(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Ja(l)))}function Au(){return Ad(),Md(),Ed(),_d()}function _d(){if(Lt!==5)return!1;var t=ge,l=Dc;Dc=0;var e=Iu(Il),a=M.T,n=N.p;try{N.p=32>e?32:e,M.T=null,e=Cc,Cc=null;var u=ge,i=Il;if(Lt=0,xa=ge=null,Il=0,(gt&6)!==0)throw Error(f(331));var c=gt;if(gt|=4,od(u.current),id(u,u.current,i,e),gt=c,hn(0,!1),fl&&typeof fl.onPostCommitFiberRoot=="function")try{fl.onPostCommitFiberRoot(Da,u)}catch{}return!0}finally{N.p=n,M.T=a,jd(t,l)}}function Od(t,l,e){l=xl(e,l),l=sc(t.stateNode,l,2),t=oe(t,l,2),t!==null&&(Ra(t,2),Bl(t))}function pt(t,l,e){if(t.tag===3)Od(t,t,e);else for(;l!==null;){if(l.tag===3){Od(l,t,e);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(me===null||!me.has(a))){t=xl(e,t),e=Ds(2),a=oe(l,e,2),a!==null&&(Cs(e,a,l,t),Ra(a,2),Bl(a));break}}l=l.return}}function Bc(t,l,e){var a=t.pingCache;if(a===null){a=t.pingCache=new hh;var n=new Set;a.set(l,n)}else n=a.get(l),n===void 0&&(n=new Set,a.set(l,n));n.has(e)||(jc=!0,n.add(e),t=bh.bind(null,t,l,e),l.then(t,t))}function bh(t,l,e){var a=t.pingCache;a!==null&&a.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,Et===t&&(ot&e)===e&&(Ct===4||Ct===3&&(ot&62914560)===ot&&300>cl()-bu?(gt&2)===0&&Ta(t,0):_c|=e,Sa===ot&&(Sa=0)),Bl(t)}function Dd(t,l){l===0&&(l=zf()),t=Ce(t,l),t!==null&&(Ra(t,l),Bl(t))}function ph(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),Dd(t,e)}function Sh(t,l){var e=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(l),Dd(t,e)}function xh(t,l){return wu(t,l)}var Mu=null,Aa=null,Nc=!1,Eu=!1,qc=!1,be=0;function Bl(t){t!==Aa&&t.next===null&&(Aa===null?Mu=Aa=t:Aa=Aa.next=t),Eu=!0,Nc||(Nc=!0,zh())}function hn(t,l){if(!qc&&Eu){qc=!0;do for(var e=!1,a=Mu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-ol(42|t)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,Hd(a,u))}else u=ot,u=Dn(a,a===Et?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ca(a,u)||(e=!0,Hd(a,u));a=a.next}while(e);qc=!1}}function Th(){Cd()}function Cd(){Eu=Nc=!1;var t=0;be!==0&&Uh()&&(t=be);for(var l=cl(),e=null,a=Mu;a!==null;){var n=a.next,u=Rd(a,l);u===0?(a.next=null,e===null?Mu=n:e.next=n,n===null&&(Aa=e)):(e=a,(t!==0||(u&3)!==0)&&(Eu=!0)),a=n}Lt!==0&&Lt!==5||hn(t),be!==0&&(be=0)}function Rd(t,l){for(var e=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-ol(u),c=1<<i,o=n[i];o===-1?((c&e)===0||(c&a)!==0)&&(n[i]=Wr(c,l)):o<=l&&(t.expiredLanes|=c),u&=~c}if(l=Et,e=ot,e=Dn(t,t===l?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,e===0||t===l&&(bt===2||bt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Wu(a),t.callbackNode=null,t.callbackPriority=0;if((e&3)===0||Ca(t,e)){if(l=e&-e,l===t.callbackPriority)return l;switch(a!==null&&Wu(a),Iu(e)){case 2:case 8:e=xf;break;case 32:e=En;break;case 268435456:e=Tf;break;default:e=En}return a=Ud.bind(null,t),e=wu(e,a),t.callbackPriority=l,t.callbackNode=e,l}return a!==null&&a!==null&&Wu(a),t.callbackPriority=2,t.callbackNode=null,2}function Ud(t,l){if(Lt!==0&&Lt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var e=t.callbackNode;if(Au()&&t.callbackNode!==e)return null;var a=ot;return a=Dn(t,t===Et?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(yd(t,a,l),Rd(t,cl()),t.callbackNode!=null&&t.callbackNode===e?Ud.bind(null,t):null)}function Hd(t,l){if(Au())return null;yd(t,l,!0)}function zh(){Bh(function(){(gt&6)!==0?wu(Sf,Th):Cd()})}function Yc(){if(be===0){var t=oa;t===0&&(t=jn,jn<<=1,(jn&261888)===0&&(jn=256)),be=t}return be}function Bd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Hn(""+t)}function Nd(t,l){var e=l.ownerDocument.createElement("input");return e.name=l.name,e.value=l.value,t.id&&e.setAttribute("form",t.id),l.parentNode.insertBefore(e,l),t=new FormData(t),e.parentNode.removeChild(e),t}function Ah(t,l,e,a,n){if(l==="submit"&&e&&e.stateNode===n){var u=Bd((n[tl]||null).action),i=a.submitter;i&&(l=(l=i[tl]||null)?Bd(l.formAction):i.getAttribute("formAction"),l!==null&&(u=l,i=null));var c=new Yn("action","action",null,a,n);t.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(be!==0){var o=i?Nd(n,i):new FormData(n);nc(e,{pending:!0,data:o,method:n.method,action:u},null,o)}}else typeof u=="function"&&(c.preventDefault(),o=i?Nd(n,i):new FormData(n),nc(e,{pending:!0,data:o,method:n.method,action:u},u,o))},currentTarget:n}]})}}for(var Gc=0;Gc<xi.length;Gc++){var Lc=xi[Gc],Mh=Lc.toLowerCase(),Eh=Lc[0].toUpperCase()+Lc.slice(1);_l(Mh,"on"+Eh)}_l(ho,"onAnimationEnd"),_l(yo,"onAnimationIteration"),_l(mo,"onAnimationStart"),_l("dblclick","onDoubleClick"),_l("focusin","onFocus"),_l("focusout","onBlur"),_l(Q0,"onTransitionRun"),_l(Z0,"onTransitionStart"),_l(k0,"onTransitionCancel"),_l(go,"onTransitionEnd"),We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"]),je("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),je("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),je("onBeforeInput",["compositionend","keypress","textInput","paste"]),je("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),je("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),je("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yn="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(" "),jh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yn));function qd(t,l){l=(l&4)!==0;for(var e=0;e<t.length;e++){var a=t[e],n=a.event;a=a.listeners;t:{var u=void 0;if(l)for(var i=a.length-1;0<=i;i--){var c=a[i],o=c.instance,b=c.currentTarget;if(c=c.listener,o!==u&&n.isPropagationStopped())break t;u=c,n.currentTarget=b;try{u(n)}catch(A){Xn(A)}n.currentTarget=null,u=o}else for(i=0;i<a.length;i++){if(c=a[i],o=c.instance,b=c.currentTarget,c=c.listener,o!==u&&n.isPropagationStopped())break t;u=c,n.currentTarget=b;try{u(n)}catch(A){Xn(A)}n.currentTarget=null,u=o}}}}function ct(t,l){var e=l[Pu];e===void 0&&(e=l[Pu]=new Set);var a=t+"__bubble";e.has(a)||(Yd(l,t,2,!1),e.add(a))}function Xc(t,l,e){var a=0;l&&(a|=4),Yd(e,t,a,l)}var ju="_reactListening"+Math.random().toString(36).slice(2);function Qc(t){if(!t[ju]){t[ju]=!0,Df.forEach(function(e){e!=="selectionchange"&&(jh.has(e)||Xc(e,!1,t),Xc(e,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[ju]||(l[ju]=!0,Xc("selectionchange",!1,l))}}function Yd(t,l,e,a){switch(hr(l)){case 2:var n=ly;break;case 8:n=ey;break;default:n=af}e=n.bind(null,l,e,t),n=void 0,!fi||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(l,e,{capture:!0,passive:n}):t.addEventListener(l,e,!0):n!==void 0?t.addEventListener(l,e,{passive:n}):t.addEventListener(l,e,!1)}function Zc(t,l,e,a,n){var u=a;if((l&1)===0&&(l&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var o=i.tag;if((o===3||o===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=Je(c),i===null)return;if(o=i.tag,o===5||o===6||o===26||o===27){a=u=i;continue t}c=c.parentNode}}a=a.return}Qf(function(){var b=u,A=ii(e),O=[];t:{var S=vo.get(t);if(S!==void 0){var z=Yn,X=t;switch(t){case"keypress":if(Nn(e)===0)break t;case"keydown":case"keyup":z=S0;break;case"focusin":X="focus",z=ri;break;case"focusout":X="blur",z=ri;break;case"beforeblur":case"afterblur":z=ri;break;case"click":if(e.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=f0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=z0;break;case ho:case yo:case mo:z=d0;break;case go:z=M0;break;case"scroll":case"scrollend":z=i0;break;case"wheel":z=j0;break;case"copy":case"cut":case"paste":z=h0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Kf;break;case"toggle":case"beforetoggle":z=O0}var W=(l&4)!==0,At=!W&&(t==="scroll"||t==="scrollend"),y=W?S!==null?S+"Capture":null:S;W=[];for(var h=b,v;h!==null;){var E=h;if(v=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||v===null||y===null||(E=Ba(h,y),E!=null&&W.push(mn(h,E,v))),At)break;h=h.return}0<W.length&&(S=new z(S,X,null,e,A),O.push({event:S,listeners:W}))}}if((l&7)===0){t:{if(S=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",S&&e!==ui&&(X=e.relatedTarget||e.fromElement)&&(Je(X)||X[Ve]))break t;if((z||S)&&(S=A.window===A?A:(S=A.ownerDocument)?S.defaultView||S.parentWindow:window,z?(X=e.relatedTarget||e.toElement,z=b,X=X?Je(X):null,X!==null&&(At=D(X),W=X.tag,X!==At||W!==5&&W!==27&&W!==6)&&(X=null)):(z=null,X=b),z!==X)){if(W=Vf,E="onMouseLeave",y="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(W=Kf,E="onPointerLeave",y="onPointerEnter",h="pointer"),At=z==null?S:Ha(z),v=X==null?S:Ha(X),S=new W(E,h+"leave",z,e,A),S.target=At,S.relatedTarget=v,E=null,Je(A)===b&&(W=new W(y,h+"enter",X,e,A),W.target=v,W.relatedTarget=At,E=W),At=E,z&&X)l:{for(W=_h,y=z,h=X,v=0,E=y;E;E=W(E))v++;E=0;for(var k=h;k;k=W(k))E++;for(;0<v-E;)y=W(y),v--;for(;0<E-v;)h=W(h),E--;for(;v--;){if(y===h||h!==null&&y===h.alternate){W=y;break l}y=W(y),h=W(h)}W=null}else W=null;z!==null&&Gd(O,S,z,W,!1),X!==null&&At!==null&&Gd(O,At,X,W,!0)}}t:{if(S=b?Ha(b):window,z=S.nodeName&&S.nodeName.toLowerCase(),z==="select"||z==="input"&&S.type==="file")var yt=lo;else if(Pf(S))if(eo)yt=G0;else{yt=q0;var Q=N0}else z=S.nodeName,!z||z.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?b&&ni(b.elementType)&&(yt=lo):yt=Y0;if(yt&&(yt=yt(t,b))){to(O,yt,e,A);break t}Q&&Q(t,S,b),t==="focusout"&&b&&S.type==="number"&&b.memoizedProps.value!=null&&ai(S,"number",S.value)}switch(Q=b?Ha(b):window,t){case"focusin":(Pf(Q)||Q.contentEditable==="true")&&(la=Q,bi=b,Za=null);break;case"focusout":Za=bi=la=null;break;case"mousedown":pi=!0;break;case"contextmenu":case"mouseup":case"dragend":pi=!1,so(O,e,A);break;case"selectionchange":if(X0)break;case"keydown":case"keyup":so(O,e,A)}var et;if(yi)t:{switch(t){case"compositionstart":var st="onCompositionStart";break t;case"compositionend":st="onCompositionEnd";break t;case"compositionupdate":st="onCompositionUpdate";break t}st=void 0}else ta?Ff(t,e)&&(st="onCompositionEnd"):t==="keydown"&&e.keyCode===229&&(st="onCompositionStart");st&&(wf&&e.locale!=="ko"&&(ta||st!=="onCompositionStart"?st==="onCompositionEnd"&&ta&&(et=Zf()):(ee=A,oi="value"in ee?ee.value:ee.textContent,ta=!0)),Q=_u(b,st),0<Q.length&&(st=new Jf(st,t,null,e,A),O.push({event:st,listeners:Q}),et?st.data=et:(et=If(e),et!==null&&(st.data=et)))),(et=C0?R0(t,e):U0(t,e))&&(st=_u(b,"onBeforeInput"),0<st.length&&(Q=new Jf("onBeforeInput","beforeinput",null,e,A),O.push({event:Q,listeners:st}),Q.data=et)),Ah(O,t,b,e,A)}qd(O,l)})}function mn(t,l,e){return{instance:t,listener:l,currentTarget:e}}function _u(t,l){for(var e=l+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ba(t,e),n!=null&&a.unshift(mn(t,n,u)),n=Ba(t,l),n!=null&&a.push(mn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function _h(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Gd(t,l,e,a,n){for(var u=l._reactName,i=[];e!==null&&e!==a;){var c=e,o=c.alternate,b=c.stateNode;if(c=c.tag,o!==null&&o===a)break;c!==5&&c!==26&&c!==27||b===null||(o=b,n?(b=Ba(e,u),b!=null&&i.unshift(mn(e,b,o))):n||(b=Ba(e,u),b!=null&&i.push(mn(e,b,o)))),e=e.return}i.length!==0&&t.push({event:l,listeners:i})}var Oh=/\r\n?/g,Dh=/\u0000|\uFFFD/g;function Ld(t){return(typeof t=="string"?t:""+t).replace(Oh,`
49
+ `).replace(Dh,"")}function Xd(t,l){return l=Ld(l),Ld(t)===l}function zt(t,l,e,a,n,u){switch(e){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||Fe(t,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&Fe(t,""+a);break;case"className":Rn(t,"class",a);break;case"tabIndex":Rn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Rn(t,e,a);break;case"style":Lf(t,a,u);break;case"data":if(l!=="object"){Rn(t,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||e!=="href")){t.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Hn(""+a),t.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(e,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(e==="formAction"?(l!=="input"&&zt(t,l,"name",n.name,n,null),zt(t,l,"formEncType",n.formEncType,n,null),zt(t,l,"formMethod",n.formMethod,n,null),zt(t,l,"formTarget",n.formTarget,n,null)):(zt(t,l,"encType",n.encType,n,null),zt(t,l,"method",n.method,n,null),zt(t,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Hn(""+a),t.setAttribute(e,a);break;case"onClick":a!=null&&(t.onclick=ql);break;case"onScroll":a!=null&&ct("scroll",t);break;case"onScrollEnd":a!=null&&ct("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(f(60));t.innerHTML=e}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}e=Hn(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,""+a):t.removeAttribute(e);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,""):t.removeAttribute(e);break;case"capture":case"download":a===!0?t.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,a):t.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(e,a):t.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(e):t.setAttribute(e,a);break;case"popover":ct("beforetoggle",t),ct("toggle",t),Cn(t,"popover",a);break;case"xlinkActuate":Nl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Nl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Nl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Nl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Nl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Nl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Nl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Nl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Nl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Cn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=n0.get(e)||e,Cn(t,e,a))}}function kc(t,l,e,a,n,u){switch(e){case"style":Lf(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(f(60));t.innerHTML=e}}break;case"children":typeof a=="string"?Fe(t,a):(typeof a=="number"||typeof a=="bigint")&&Fe(t,""+a);break;case"onScroll":a!=null&&ct("scroll",t);break;case"onScrollEnd":a!=null&&ct("scrollend",t);break;case"onClick":a!=null&&(t.onclick=ql);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cf.hasOwnProperty(e))t:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),l=e.slice(2,n?e.length-7:void 0),u=t[tl]||null,u=u!=null?u[e]:null,typeof u=="function"&&t.removeEventListener(l,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in t?t[e]=null:t.hasAttribute(e)&&t.removeAttribute(e)),t.addEventListener(l,a,n);break t}e in t?t[e]=a:a===!0?t.setAttribute(e,""):Cn(t,e,a)}}}function wt(t,l,e){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ct("error",t),ct("load",t);var a=!1,n=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,l));default:zt(t,l,u,i,e,null)}}n&&zt(t,l,"srcSet",e.srcSet,e,null),a&&zt(t,l,"src",e.src,e,null);return;case"input":ct("invalid",t);var c=u=i=n=null,o=null,b=null;for(a in e)if(e.hasOwnProperty(a)){var A=e[a];if(A!=null)switch(a){case"name":n=A;break;case"type":i=A;break;case"checked":o=A;break;case"defaultChecked":b=A;break;case"value":u=A;break;case"defaultValue":c=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(f(137,l));break;default:zt(t,l,a,A,e,null)}}Nf(t,u,c,o,b,i,n,!1);return;case"select":ct("invalid",t),a=i=u=null;for(n in e)if(e.hasOwnProperty(n)&&(c=e[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:zt(t,l,n,c,e,null)}l=u,e=i,t.multiple=!!a,l!=null?$e(t,!!a,l,!1):e!=null&&$e(t,!!a,e,!0);return;case"textarea":ct("invalid",t),u=n=a=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(f(91));break;default:zt(t,l,i,c,e,null)}Yf(t,a,n,u);return;case"option":for(o in e)if(e.hasOwnProperty(o)&&(a=e[o],a!=null))switch(o){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:zt(t,l,o,a,e,null)}return;case"dialog":ct("beforetoggle",t),ct("toggle",t),ct("cancel",t),ct("close",t);break;case"iframe":case"object":ct("load",t);break;case"video":case"audio":for(a=0;a<yn.length;a++)ct(yn[a],t);break;case"image":ct("error",t),ct("load",t);break;case"details":ct("toggle",t);break;case"embed":case"source":case"link":ct("error",t),ct("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(b in e)if(e.hasOwnProperty(b)&&(a=e[b],a!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,l));default:zt(t,l,b,a,e,null)}return;default:if(ni(l)){for(A in e)e.hasOwnProperty(A)&&(a=e[A],a!==void 0&&kc(t,l,A,a,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(a=e[c],a!=null&&zt(t,l,c,a,e,null))}function Ch(t,l,e,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,c=null,o=null,b=null,A=null;for(z in e){var O=e[z];if(e.hasOwnProperty(z)&&O!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":o=O;default:a.hasOwnProperty(z)||zt(t,l,z,null,a,O)}}for(var S in a){var z=a[S];if(O=e[S],a.hasOwnProperty(S)&&(z!=null||O!=null))switch(S){case"type":u=z;break;case"name":n=z;break;case"checked":b=z;break;case"defaultChecked":A=z;break;case"value":i=z;break;case"defaultValue":c=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(137,l));break;default:z!==O&&zt(t,l,S,z,a,O)}}ei(t,i,c,o,b,A,u,n);return;case"select":z=i=c=S=null;for(u in e)if(o=e[u],e.hasOwnProperty(u)&&o!=null)switch(u){case"value":break;case"multiple":z=o;default:a.hasOwnProperty(u)||zt(t,l,u,null,a,o)}for(n in a)if(u=a[n],o=e[n],a.hasOwnProperty(n)&&(u!=null||o!=null))switch(n){case"value":S=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==o&&zt(t,l,n,u,a,o)}l=c,e=i,a=z,S!=null?$e(t,!!e,S,!1):!!a!=!!e&&(l!=null?$e(t,!!e,l,!0):$e(t,!!e,e?[]:"",!1));return;case"textarea":z=S=null;for(c in e)if(n=e[c],e.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:zt(t,l,c,null,a,n)}for(i in a)if(n=a[i],u=e[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":S=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==u&&zt(t,l,i,n,a,u)}qf(t,S,z);return;case"option":for(var X in e)if(S=e[X],e.hasOwnProperty(X)&&S!=null&&!a.hasOwnProperty(X))switch(X){case"selected":t.selected=!1;break;default:zt(t,l,X,null,a,S)}for(o in a)if(S=a[o],z=e[o],a.hasOwnProperty(o)&&S!==z&&(S!=null||z!=null))switch(o){case"selected":t.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:zt(t,l,o,S,a,z)}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 e)S=e[W],e.hasOwnProperty(W)&&S!=null&&!a.hasOwnProperty(W)&&zt(t,l,W,null,a,S);for(b in a)if(S=a[b],z=e[b],a.hasOwnProperty(b)&&S!==z&&(S!=null||z!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(f(137,l));break;default:zt(t,l,b,S,a,z)}return;default:if(ni(l)){for(var At in e)S=e[At],e.hasOwnProperty(At)&&S!==void 0&&!a.hasOwnProperty(At)&&kc(t,l,At,void 0,a,S);for(A in a)S=a[A],z=e[A],!a.hasOwnProperty(A)||S===z||S===void 0&&z===void 0||kc(t,l,A,S,a,z);return}}for(var y in e)S=e[y],e.hasOwnProperty(y)&&S!=null&&!a.hasOwnProperty(y)&&zt(t,l,y,null,a,S);for(O in a)S=a[O],z=e[O],!a.hasOwnProperty(O)||S===z||S==null&&z==null||zt(t,l,O,S,a,z)}function Qd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rh(){if(typeof performance.getEntriesByType=="function"){for(var t=0,l=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var n=e[a],u=n.transferSize,i=n.initiatorType,c=n.duration;if(u&&c&&Qd(i)){for(i=0,c=n.responseEnd,a+=1;a<e.length;a++){var o=e[a],b=o.startTime;if(b>c)break;var A=o.transferSize,O=o.initiatorType;A&&Qd(O)&&(o=o.responseEnd,i+=A*(o<c?1:(c-b)/(o-b)))}if(--a,l+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Vc=null,Jc=null;function Ou(t){return t.nodeType===9?t:t.ownerDocument}function Zd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kd(t,l){if(t===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function Kc(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var wc=null;function Uh(){var t=window.event;return t&&t.type==="popstate"?t===wc?!1:(wc=t,!0):(wc=null,!1)}var Vd=typeof setTimeout=="function"?setTimeout:void 0,Hh=typeof clearTimeout=="function"?clearTimeout:void 0,Jd=typeof Promise=="function"?Promise:void 0,Bh=typeof queueMicrotask=="function"?queueMicrotask:typeof Jd<"u"?function(t){return Jd.resolve(null).then(t).catch(Nh)}:Vd;function Nh(t){setTimeout(function(){throw t})}function pe(t){return t==="head"}function Kd(t,l){var e=l,a=0;do{var n=e.nextSibling;if(t.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){t.removeChild(n),_a(l);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")gn(t.ownerDocument.documentElement);else if(e==="head"){e=t.ownerDocument.head,gn(e);for(var u=e.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Ua]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||e.removeChild(u),u=i}}else e==="body"&&gn(t.ownerDocument.body);e=n}while(e);_a(l)}function wd(t,l){var e=t;t=0;do{var a=e.nextSibling;if(e.nodeType===1?l?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(l?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(t===0)break;t--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||t++;e=a}while(e)}function Wc(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var e=l;switch(l=l.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":Wc(e),ti(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}t.removeChild(e)}}function qh(t,l,e,a){for(;t.nodeType===1;){var n=e;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ua])switch(l){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(l==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=El(t.nextSibling),t===null)break}return null}function Yh(t,l,e){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=El(t.nextSibling),t===null))return null;return t}function Wd(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=El(t.nextSibling),t===null))return null;return t}function $c(t){return t.data==="$?"||t.data==="$~"}function Fc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Gh(t,l){var e=t.ownerDocument;if(t.data==="$~")t._reactRetry=l;else if(t.data!=="$?"||e.readyState!=="loading")l();else{var a=function(){l(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function El(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return t}var Ic=null;function $d(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="/$"||e==="/&"){if(l===0)return El(t.nextSibling);l--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||l++}t=t.nextSibling}return null}function Fd(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(l===0)return t;l--}else e!=="/$"&&e!=="/&"||l++}t=t.previousSibling}return null}function Id(t,l,e){switch(l=Ou(e),t){case"html":if(t=l.documentElement,!t)throw Error(f(452));return t;case"head":if(t=l.head,!t)throw Error(f(453));return t;case"body":if(t=l.body,!t)throw Error(f(454));return t;default:throw Error(f(451))}}function gn(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);ti(t)}var jl=new Map,Pd=new Set;function Du(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Pl=N.d;N.d={f:Lh,r:Xh,D:Qh,C:Zh,L:kh,m:Vh,X:Kh,S:Jh,M:wh};function Lh(){var t=Pl.f(),l=xu();return t||l}function Xh(t){var l=Ke(t);l!==null&&l.tag===5&&l.type==="form"?gs(l):Pl.r(t)}var Ma=typeof document>"u"?null:document;function tr(t,l,e){var a=Ma;if(a&&typeof l=="string"&&l){var n=pl(l);n='link[rel="'+t+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),Pd.has(n)||(Pd.add(n),t={rel:t,crossOrigin:e,href:l},a.querySelector(n)===null&&(l=a.createElement("link"),wt(l,"link",t),Xt(l),a.head.appendChild(l)))}}function Qh(t){Pl.D(t),tr("dns-prefetch",t,null)}function Zh(t,l){Pl.C(t,l),tr("preconnect",t,l)}function kh(t,l,e){Pl.L(t,l,e);var a=Ma;if(a&&t&&l){var n='link[rel="preload"][as="'+pl(l)+'"]';l==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+pl(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+pl(e.imageSizes)+'"]')):n+='[href="'+pl(t)+'"]';var u=n;switch(l){case"style":u=Ea(t);break;case"script":u=ja(t)}jl.has(u)||(t=R({rel:"preload",href:l==="image"&&e&&e.imageSrcSet?void 0:t,as:l},e),jl.set(u,t),a.querySelector(n)!==null||l==="style"&&a.querySelector(vn(u))||l==="script"&&a.querySelector(bn(u))||(l=a.createElement("link"),wt(l,"link",t),Xt(l),a.head.appendChild(l)))}}function Vh(t,l){Pl.m(t,l);var e=Ma;if(e&&t){var a=l&&typeof l.as=="string"?l.as:"script",n='link[rel="modulepreload"][as="'+pl(a)+'"][href="'+pl(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ja(t)}if(!jl.has(u)&&(t=R({rel:"modulepreload",href:t},l),jl.set(u,t),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(bn(u)))return}a=e.createElement("link"),wt(a,"link",t),Xt(a),e.head.appendChild(a)}}}function Jh(t,l,e){Pl.S(t,l,e);var a=Ma;if(a&&t){var n=we(a).hoistableStyles,u=Ea(t);l=l||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(vn(u)))c.loading=5;else{t=R({rel:"stylesheet",href:t,"data-precedence":l},e),(e=jl.get(u))&&Pc(t,e);var o=i=a.createElement("link");Xt(o),wt(o,"link",t),o._p=new Promise(function(b,A){o.onload=b,o.onerror=A}),o.addEventListener("load",function(){c.loading|=1}),o.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Cu(i,l,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function Kh(t,l){Pl.X(t,l);var e=Ma;if(e&&t){var a=we(e).hoistableScripts,n=ja(t),u=a.get(n);u||(u=e.querySelector(bn(n)),u||(t=R({src:t,async:!0},l),(l=jl.get(n))&&tf(t,l),u=e.createElement("script"),Xt(u),wt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function wh(t,l){Pl.M(t,l);var e=Ma;if(e&&t){var a=we(e).hoistableScripts,n=ja(t),u=a.get(n);u||(u=e.querySelector(bn(n)),u||(t=R({src:t,async:!0,type:"module"},l),(l=jl.get(n))&&tf(t,l),u=e.createElement("script"),Xt(u),wt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function lr(t,l,e,a){var n=(n=ut.current)?Du(n):null;if(!n)throw Error(f(446));switch(t){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(l=Ea(e.href),e=we(n).hoistableStyles,a=e.get(l),a||(a={type:"style",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){t=Ea(e.href);var u=we(n).hoistableStyles,i=u.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=n.querySelector(vn(t)))&&!u._p&&(i.instance=u,i.state.loading=5),jl.has(t)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},jl.set(t,e),u||Wh(n,t,e,i.state))),l&&a===null)throw Error(f(528,""));return i}if(l&&a!==null)throw Error(f(529,""));return null;case"script":return l=e.async,e=e.src,typeof e=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=ja(e),e=we(n).hoistableScripts,a=e.get(l),a||(a={type:"script",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,t))}}function Ea(t){return'href="'+pl(t)+'"'}function vn(t){return'link[rel="stylesheet"]['+t+"]"}function er(t){return R({},t,{"data-precedence":t.precedence,precedence:null})}function Wh(t,l,e,a){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=t.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),wt(l,"link",e),Xt(l),t.head.appendChild(l))}function ja(t){return'[src="'+pl(t)+'"]'}function bn(t){return"script[async]"+t}function ar(t,l,e){if(l.count++,l.instance===null)switch(l.type){case"style":var a=t.querySelector('style[data-href~="'+pl(e.href)+'"]');if(a)return l.instance=a,Xt(a),a;var n=R({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Xt(a),wt(a,"style",n),Cu(a,e.precedence,t),l.instance=a;case"stylesheet":n=Ea(e.href);var u=t.querySelector(vn(n));if(u)return l.state.loading|=4,l.instance=u,Xt(u),u;a=er(e),(n=jl.get(n))&&Pc(a,n),u=(t.ownerDocument||t).createElement("link"),Xt(u);var i=u;return i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),wt(u,"link",a),l.state.loading|=4,Cu(u,e.precedence,t),l.instance=u;case"script":return u=ja(e.src),(n=t.querySelector(bn(u)))?(l.instance=n,Xt(n),n):(a=e,(n=jl.get(u))&&(a=R({},e),tf(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Xt(n),wt(n,"link",a),t.head.appendChild(n),l.instance=n);case"void":return null;default:throw Error(f(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Cu(a,e.precedence,t));return l.instance}function Cu(t,l,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===l)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(l=e.nodeType===9?e.head:e,l.insertBefore(t,l.firstChild))}function Pc(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function tf(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Ru=null;function nr(t,l,e){if(Ru===null){var a=new Map,n=Ru=new Map;n.set(e,a)}else n=Ru,a=n.get(e),a||(a=new Map,n.set(e,a));if(a.has(t))return a;for(a.set(t,null),e=e.getElementsByTagName(t),n=0;n<e.length;n++){var u=e[n];if(!(u[Ua]||u[kt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(l)||"";i=t+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function ur(t,l,e){t=t.ownerDocument||t,t.head.insertBefore(e,l==="title"?t.querySelector("head > title"):null)}function $h(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return t=l.disabled,typeof l.precedence=="string"&&t==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function ir(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Fh(t,l,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=Ea(a.href),u=l.querySelector(vn(n));if(u){l=u._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=Uu.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=u,Xt(u);return}u=l.ownerDocument||l,a=er(a),(n=jl.get(n))&&Pc(a,n),u=u.createElement("link"),Xt(u);var i=u;i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),wt(u,"link",a),e.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=Uu.bind(t),l.addEventListener("load",e),l.addEventListener("error",e))}}var lf=0;function Ih(t,l){return t.stylesheets&&t.count===0&&Bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(e){var a=setTimeout(function(){if(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+l);0<t.imgBytes&&lf===0&&(lf=62500*Rh());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>lf?50:800)+l);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Hu=null;function Bu(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Hu=new Map,l.forEach(Ph,t),Hu=null,Uu.call(t))}function Ph(t,l){if(!(l.state.loading&4)){var e=Hu.get(t);if(e)var a=e.get(null);else{e=new Map,Hu.set(t,e);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}n=l.instance,i=n.getAttribute("data-precedence"),u=e.get(i)||a,u===a&&e.set(null,n),e.set(i,n),this.count++,a=Uu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),l.state.loading|=4}}var pn={$$typeof:ft,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function ty(t,l,e,a,n,u,i,c,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.hiddenUpdates=$u(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function cr(t,l,e,a,n,u,i,c,o,b,A,O){return t=new ty(t,l,e,i,o,b,A,O,c),l=1,u===!0&&(l|=24),u=dl(3,null,null,l),t.current=u,u.stateNode=t,l=Hi(),l.refCount++,t.pooledCache=l,l.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:l},Yi(u),t}function fr(t){return t?(t=na,t):na}function or(t,l,e,a,n,u){n=fr(n),a.context===null?a.context=n:a.pendingContext=n,a=fe(l),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=oe(t,a,l),e!==null&&(il(e,t,l),$a(e,t,l))}function sr(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var e=t.retryLane;t.retryLane=e!==0&&e<l?e:l}}function ef(t,l){sr(t,l),(t=t.alternate)&&sr(t,l)}function dr(t){if(t.tag===13||t.tag===31){var l=Ce(t,67108864);l!==null&&il(l,t,67108864),ef(t,67108864)}}function rr(t){if(t.tag===13||t.tag===31){var l=gl();l=Fu(l);var e=Ce(t,l);e!==null&&il(e,t,l),ef(t,l)}}var Nu=!0;function ly(t,l,e,a){var n=M.T;M.T=null;var u=N.p;try{N.p=2,af(t,l,e,a)}finally{N.p=u,M.T=n}}function ey(t,l,e,a){var n=M.T;M.T=null;var u=N.p;try{N.p=8,af(t,l,e,a)}finally{N.p=u,M.T=n}}function af(t,l,e,a){if(Nu){var n=nf(a);if(n===null)Zc(t,l,a,qu,e),yr(t,a);else if(ny(n,t,l,e,a))a.stopPropagation();else if(yr(t,a),l&4&&-1<ay.indexOf(t)){for(;n!==null;){var u=Ke(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Ee(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var o=1<<31-ol(i);c.entanglements[1]|=o,i&=~o}Bl(u),(gt&6)===0&&(pu=cl()+500,hn(0))}}break;case 31:case 13:c=Ce(u,2),c!==null&&il(c,u,2),xu(),ef(u,2)}if(u=nf(a),u===null&&Zc(t,l,a,qu,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else Zc(t,l,a,null,e)}}function nf(t){return t=ii(t),uf(t)}var qu=null;function uf(t){if(qu=null,t=Je(t),t!==null){var l=D(t);if(l===null)t=null;else{var e=l.tag;if(e===13){if(t=j(l),t!==null)return t;t=null}else if(e===31){if(t=m(l),t!==null)return t;t=null}else if(e===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return qu=t,null}function hr(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Qr()){case Sf:return 2;case xf:return 8;case En:case Zr:return 32;case Tf:return 268435456;default:return 32}default:return 32}}var cf=!1,Se=null,xe=null,Te=null,Sn=new Map,xn=new Map,ze=[],ay="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 yr(t,l){switch(t){case"focusin":case"focusout":Se=null;break;case"dragenter":case"dragleave":xe=null;break;case"mouseover":case"mouseout":Te=null;break;case"pointerover":case"pointerout":Sn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":xn.delete(l.pointerId)}}function Tn(t,l,e,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:l,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},l!==null&&(l=Ke(l),l!==null&&dr(l)),t):(t.eventSystemFlags|=a,l=t.targetContainers,n!==null&&l.indexOf(n)===-1&&l.push(n),t)}function ny(t,l,e,a,n){switch(l){case"focusin":return Se=Tn(Se,t,l,e,a,n),!0;case"dragenter":return xe=Tn(xe,t,l,e,a,n),!0;case"mouseover":return Te=Tn(Te,t,l,e,a,n),!0;case"pointerover":var u=n.pointerId;return Sn.set(u,Tn(Sn.get(u)||null,t,l,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,xn.set(u,Tn(xn.get(u)||null,t,l,e,a,n)),!0}return!1}function mr(t){var l=Je(t.target);if(l!==null){var e=D(l);if(e!==null){if(l=e.tag,l===13){if(l=j(e),l!==null){t.blockedOn=l,_f(t.priority,function(){rr(e)});return}}else if(l===31){if(l=m(e),l!==null){t.blockedOn=l,_f(t.priority,function(){rr(e)});return}}else if(l===3&&e.stateNode.current.memoizedState.isDehydrated){t.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Yu(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var e=nf(t.nativeEvent);if(e===null){e=t.nativeEvent;var a=new e.constructor(e.type,e);ui=a,e.target.dispatchEvent(a),ui=null}else return l=Ke(e),l!==null&&dr(l),t.blockedOn=e,!1;l.shift()}return!0}function gr(t,l,e){Yu(t)&&e.delete(l)}function uy(){cf=!1,Se!==null&&Yu(Se)&&(Se=null),xe!==null&&Yu(xe)&&(xe=null),Te!==null&&Yu(Te)&&(Te=null),Sn.forEach(gr),xn.forEach(gr)}function Gu(t,l){t.blockedOn===l&&(t.blockedOn=null,cf||(cf=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,uy)))}var Lu=null;function vr(t){Lu!==t&&(Lu=t,d.unstable_scheduleCallback(d.unstable_NormalPriority,function(){Lu===t&&(Lu=null);for(var l=0;l<t.length;l+=3){var e=t[l],a=t[l+1],n=t[l+2];if(typeof a!="function"){if(uf(a||e)===null)continue;break}var u=Ke(e);u!==null&&(t.splice(l,3),l-=3,nc(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function _a(t){function l(o){return Gu(o,t)}Se!==null&&Gu(Se,t),xe!==null&&Gu(xe,t),Te!==null&&Gu(Te,t),Sn.forEach(l),xn.forEach(l);for(var e=0;e<ze.length;e++){var a=ze[e];a.blockedOn===t&&(a.blockedOn=null)}for(;0<ze.length&&(e=ze[0],e.blockedOn===null);)mr(e),e.blockedOn===null&&ze.shift();if(e=(t.ownerDocument||t).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[tl]||null;if(typeof u=="function")i||vr(e);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[tl]||null)c=i.formAction;else if(uf(n)!==null)continue}else c=i.action;typeof c=="function"?e[a+1]=c:(e.splice(a,3),a-=3),vr(e)}}}function br(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function l(){n!==null&&(n(),n=null),a||setTimeout(e,20)}function e(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),n!==null&&(n(),n=null)}}}function ff(t){this._internalRoot=t}Xu.prototype.render=ff.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(f(409));var e=l.current,a=gl();or(e,a,t,l,null,null)},Xu.prototype.unmount=ff.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;or(t.current,2,null,t,null,null),xu(),l[Ve]=null}};function Xu(t){this._internalRoot=t}Xu.prototype.unstable_scheduleHydration=function(t){if(t){var l=jf();t={blockedOn:null,target:t,priority:l};for(var e=0;e<ze.length&&l!==0&&l<ze[e].priority;e++);ze.splice(e,0,t),e===0&&mr(t)}};var pr=T.version;if(pr!=="19.2.4")throw Error(f(527,pr,"19.2.4"));N.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(f(188)):(t=Object.keys(t).join(","),Error(f(268,t)));return t=g(l),t=t!==null?Y(t):null,t=t===null?null:t.stateNode,t};var iy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qu.isDisabled&&Qu.supportsFiber)try{Da=Qu.inject(iy),fl=Qu}catch{}}return An.createRoot=function(t,l){if(!C(t))throw Error(f(299));var e=!1,a="",n=Es,u=js,i=_s;return l!=null&&(l.unstable_strictMode===!0&&(e=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=cr(t,1,!1,null,null,e,a,null,n,u,i,br),t[Ve]=l.current,Qc(t),new ff(l)},An.hydrateRoot=function(t,l,e){if(!C(t))throw Error(f(299));var a=!1,n="",u=Es,i=js,c=_s,o=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(o=e.formState)),l=cr(t,1,!0,l,e??null,a,n,o,u,i,c,br),l.context=fr(null),e=l.current,a=gl(),a=Fu(a),n=fe(a),n.callback=null,oe(e,n,a),e=a,l.current.lanes=e,Ra(l,e),Bl(l),t[Ve]=l.current,Qc(t),new Xu(l)},An.version="19.2.4",An}var Or;function gy(){if(Or)return sf.exports;Or=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(T){console.error(T)}}return d(),sf.exports=my(),sf.exports}var vy=gy(),F=vf();const Nr="https://bshigxubfrnojstlemvx.supabase.co",gf="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJzaGlneHViZnJub2pzdGxlbXZ4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzUyMjA0MDYsImV4cCI6MjA5MDc5NjQwNn0.CkwTOLXeC3j7pFElBeIMHAPtoO-uADR0Six7h5MOBxA",by={apikey:gf,Authorization:`Bearer ${gf}`,"Content-Type":"application/json"};function qr(){const d="rehab_uid";let T=null;try{T=localStorage.getItem(d)}catch{}if(!T){T="u-"+Math.random().toString(36).slice(2,10)+Date.now().toString(36);try{localStorage.setItem(d,T)}catch{}}return T}async function mf(){try{const d=await fetch(`${Nr}/rest/v1/leaderboard?select=*&order=monthly_tokens.desc&limit=50`,{headers:{apikey:gf}});return d.ok?await d.json():[]}catch{return[]}}async function Dr(d,T,p){const f=qr(),C=(()=>{const j=d.todayTokens/5e5*100;let m=0;for(let x=0;x<7;x++)j>=[0,15,30,50,70,85,95][x]&&(m=x);return m})(),D={id:f,name:T||"Anonymous",avatar:p,monthly_tokens:d.monthlyTokens,monthly_sessions:d.monthlySessions,monthly_messages:d.monthlyMessages,streak:d.streak,max_daily_tokens:d.maxDailyTokens,opus_ratio:Math.round(d.opusRatio*100)/100,stage:C,updated_at:new Date().toISOString()};try{await fetch(`${Nr}/rest/v1/leaderboard`,{method:"POST",headers:{...by,Prefer:"resolution=merge-duplicates"},body:JSON.stringify(D)})}catch{}}function py(d=3e4){const[T,p]=F.useState(null),[f,C]=F.useState(null),[D,j]=F.useState(!0),[m,x]=F.useState(null),g=F.useRef(!0),Y=F.useCallback(async()=>{var R;try{const K=await fetch("/api/sessions",{signal:AbortSignal.timeout(8e3)});if(!K.ok)throw new Error(`HTTP ${K.status}`);const at=await K.json();if(!g.current)return;(R=at.sessions)!=null&&R.length&&(p(at.sessions),C(at.meta),x(null))}catch(K){g.current&&x(K.message)}finally{g.current&&j(!1)}},[]);return F.useEffect(()=>{g.current=!0,Y();const R=setInterval(Y,d);return()=>{g.current=!1,clearInterval(R)}},[Y,d]),{data:T,meta:f,loading:D,error:m}}const Cr={zh:{title:"戒断中心",subtitle:"Claude Code Rehab",liveData:"● 实时数据",connecting:"● 连接中…",hoverHint:"划过标题文字试试",tabHome:"监控",tabRank:"排行",tabBadge:"成就",tabMe:"我的",tokenUsage:"Token用量",todayToken:"今日Token",todayMsg:"今日消息",codingTime:"编码时长",todaySess:"今日会话",weekToken:"本周Token",monthToken:"月度Token",coding:"编码中",stopped:"已停止",lastActivity:"最后活动:",todayLabel:"今日",msgCount:"条消息",lastSession:"上次:",lasted:"持续",minutes:"分钟",overLimit:"今日已超限",overMinutes:"分钟!该休息了",active:"活跃",idle:"空闲",limitLabel:"上限",secAgo:"秒前",minAgo:"分钟前",hourAgo:"小时",dayAgo:"天前",heatmapTitle:"28天热力图",weekdays:["日","一","二","三","四","五","六"],less:"少",more:"多",today:"今天",sparkTitle:"7天用量趋势",projectTitle:"项目用量分布",quoteTitle:"瘾君子语录",lbTitle:"成瘾排行榜",joinDesc:"加入排行榜,看看你在瘾君子中排第几",namePlaceholder:"你的昵称",joinBtn:"加入",joinNote:"匿名 · 仅分享用量数据",emptyBoard:"还没有人加入,成为第一个!",myRank:"我的排名",me:"我",sessionsUnit:"次会话",daysStreak:"天连续",topAddict:" · 真正的瘾君子",heavyUser:" · 重度用户",stillHope:" · 还有救",you:"你",timesUnit:"次",daysUnit:"天",achieveTitle:"成瘾成就",shareTitle:"晒一晒你的瘾",shareReport:"我的 Claude Code 成瘾报告",shareLevel:"成瘾等级:",shareMonthToken:"月消耗Token:",shareStreak:"连续使用:",shareDays:"天",shareAchieve:"解锁成就:",shareSessions:"月会话数:",shareTag:"#ClaudeCode戒断中心 #我没有上瘾",cardTitle:"Claude Code 成瘾报告",cardSub:"戒断中心",cardMonthToken:"月Token",cardStreak:"连续天数",cardAchieve:"成就",copied:"已复制到剪贴板",copyShare:"复制分享文案",shareBtn:"分享",copyText:"复制文案",saveImage:"保存图片",imageSaved:"图片已保存",imgCopiedHint:"图片已复制到剪贴板 — 在帖子里粘贴即可",imgCopyFail:"请手动添加已保存的图片",shareMenuHint:"图片自动复制到剪贴板",pasteHintShort:"打开后粘贴图片",demoMode:"演示模式",demoDesc:"当前展示的是示例数据。想看你的真实 Claude Code 用量?在电脑终端执行:",step1Guide:"在终端运行上面的命令",step2Guide:"打开终端输出的地址",step3Guide:"手机?同一 WiFi 下打开 Network 地址",required:"required",settingsTitle:"戒断参数",dailyLimit:"每日Token限额 (K)",contLimit:"连续使用提醒 (h)",dataTitle:"数据接入",liveConnected:"实时数据已连接",liveDesc:"自动读取 ~/.claude/ · 每30秒刷新",fileCount:"会话文件",sessCount:"有效会话",lastRefresh:"上次刷新:",dataLoaded:"真实数据已加载",sessionsLabel:"个会话",reset:"重置",step1:"在终端运行",step2:"粘贴运行结果",copiedCmd:"已复制!去终端粘贴运行",copyCmd:"复制命令",cmdNote:"支持所有系统 · 需要 Node.js · 自动扫描所有项目",pasteHint:"粘贴命令输出的 JSON(以 [ 开头)",importData:"导入数据",cancel:"取消",clickPaste:"点击粘贴结果",importOk:"导入成功!共",importUnit:"个会话",importFail:"格式不对,请确认粘贴的是命令输出的完整 JSON",myData:"我的数据",totalSessions:"总会话数",monthlyTokens:"月度Token",monthlyMsg:"月度消息",streak:"连续使用",daysLabel:"天",maxDailyToken:"最高日Token",opusRatio:"Opus 使用率",unlocked:"解锁成就",notifOverLimit:"今日Token用量即将超限!该摸鱼了",notifHalf:"今日Token已过半,注意控制",footer:"代码可以等,健康不能等",stages:[{label:"好奇宝宝",sub:"就看看,不用"},{label:"初次尝试",sub:"只试一次不会怎样的…"},{label:"社交性使用",sub:"朋友都在用我也用用"},{label:"习惯形成",sub:"不用就写不出代码了"},{label:"深度依赖",sub:"Claude是我的氧气"},{label:"无法自拔",sub:"做梦都在写prompt"},{label:"病入膏肓",sub:"我就是Claude本身"}],achievements:[{name:"第一针",desc:"首次使用 Claude Code"},{name:"Token 焚烧炉",desc:"单日消耗超过 500K tokens"},{name:"通宵达旦",desc:"连续编码超过 6 小时"},{name:"Token 巨鲸",desc:"月消耗超过 5M tokens"},{name:"重度成瘾",desc:"连续 7 天使用"},{name:"只用最贵的",desc:"Opus 使用率超过 50%"},{name:"百万Token",desc:"单日消耗超 1M tokens"},{name:"极速输出",desc:"单次会话超 50 条消息"},{name:"戒断成功",desc:"连续 3 天未使用"},{name:"难兄难弟",desc:"查看排行榜 10 次"}],quotes:["一开始以为,只试一次不会怎样的……","我可以随时停下来的(已连续编码8小时)","再调一个bug就睡觉",`医生:你不能把Claude Code当饭吃
50
+ 我:watch me`,`朋友:你最近怎么不出门了?
51
+ 我:在和AI结对编程`,"键盘:求求你放过我吧",`妈妈:你在和谁聊天?
52
+ 我:一个很懂我的AI…`,"我的钱包看到API账单后已报警"],lbNames:["码农小王","prompt工程师","全栈老李","独立开发者","AI炼丹师","创业狗阿强","后端小陈","摸鱼大师"]},en:{title:"Rehab Center",subtitle:"Claude Code Rehab",liveData:"● Live",connecting:"● Connecting…",hoverHint:"Try hovering the title",tabHome:"Dashboard",tabRank:"Rankings",tabBadge:"Badges",tabMe:"Profile",tokenUsage:"token usage",todayToken:"Today's Tokens",todayMsg:"Messages",codingTime:"Time Coded",todaySess:"Sessions",weekToken:"This Week",monthToken:"This Month",coding:"In Session",stopped:"Offline",lastActivity:"Last seen",todayLabel:"Today",msgCount:"msgs",lastSession:"Prev:",lasted:"",minutes:"min session",overLimit:"Over limit by",overMinutes:"min — go touch grass",active:"Live",idle:"Away",limitLabel:"limit",secAgo:"s ago",minAgo:"m ago",hourAgo:"h ",dayAgo:"d ago",heatmapTitle:"28-Day Activity",weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],less:"Less",more:"More",today:"Today",sparkTitle:"Weekly Trend",projectTitle:"By Project",quoteTitle:"Overheard at Rehab",lbTitle:"Hall of Shame",joinDesc:"Join the leaderboard and see how you rank among fellow addicts",namePlaceholder:"Your nickname",joinBtn:"Join",joinNote:"Anonymous · only usage stats are shared",emptyBoard:"No one here yet. Be the first!",myRank:"Your Rank",me:"You",sessionsUnit:"sessions",daysStreak:"d streak",topAddict:" · down bad",heavyUser:" · needs help",stillHope:" · still salvageable",you:"You",timesUnit:"×",daysUnit:"d",achieveTitle:"Wall of Shame",shareTitle:"Flex Your Addiction",shareReport:"My Claude Code Addiction Report",shareLevel:"Addiction Level: ",shareMonthToken:"Monthly Tokens: ",shareStreak:"Streak: ",shareDays:" days",shareAchieve:"Unlocked: ",shareSessions:"Sessions: ",shareTag:"#ClaudeCodeRehab #NotAddicted #SendHelp",cardTitle:"Addiction Report",cardSub:"Claude Code Rehab",cardMonthToken:"Tokens/mo",cardStreak:"Streak",cardAchieve:"Badges",copied:"Copied!",copyShare:"Copy as Text",shareBtn:"Share",copyText:"Copy text",saveImage:"Save image",imageSaved:"Image saved!",imgCopiedHint:"Image copied — just paste it in your post!",imgCopyFail:"Attach the saved image manually",shareMenuHint:"Image auto-copied to clipboard",pasteHintShort:"Paste image after opening",demoMode:"Demo Mode",demoDesc:"You're viewing sample data. To see your real Claude Code usage, run this on your computer:",step1Guide:"Run the command above in your terminal",step2Guide:"Open the URL it prints in your browser",step3Guide:"Phone? Use the Network URL on the same WiFi",required:"required",settingsTitle:"Settings",dailyLimit:"Daily Token Cap (K)",contLimit:"Session Alert (h)",dataTitle:"Data Source",liveConnected:"Live — Connected",liveDesc:"Reading ~/.claude/ · refreshes every 30s",fileCount:"Files",sessCount:"Sessions",lastRefresh:"Updated:",dataLoaded:"Loaded from disk",sessionsLabel:"sessions",reset:"Reset",step1:"Run in terminal",step2:"Paste the output",copiedCmd:"Copied — paste it in your terminal",copyCmd:"Copy Command",cmdNote:"Works everywhere · needs Node.js · scans all projects",pasteHint:"Paste JSON output here (starts with [)",importData:"Import",cancel:"Cancel",clickPaste:"Tap to paste output",importOk:"Imported",importUnit:"sessions",importFail:"Doesn't look right — paste the full JSON array from the command",myData:"Your Stats",totalSessions:"Total Sessions",monthlyTokens:"Monthly Tokens",monthlyMsg:"Monthly Msgs",streak:"Current Streak",daysLabel:"days",maxDailyToken:"Peak Daily Tokens",opusRatio:"Opus Usage",unlocked:"Badges Earned",notifOverLimit:"You're about to hit your daily cap — maybe go outside?",notifHalf:"Halfway through today's token budget. Just saying.",footer:"The code will be there tomorrow. Will you?",stages:[{label:"Curious",sub:"I swear I'm just browsing"},{label:"Experimenting",sub:"Just this once, I promise…"},{label:"Social User",sub:"All the cool kids are doing it"},{label:"Hooked",sub:"Can't ship without it anymore"},{label:"Dependent",sub:"Claude is my co-founder now"},{label:"Too Far Gone",sub:"I dream in system prompts"},{label:"Terminal",sub:"I have become Claude, destroyer of tokens"}],achievements:[{name:"First Hit",desc:"Completed your first session"},{name:"Token Furnace",desc:"Burned 500K tokens in a day"},{name:"All-Nighter",desc:"Coded for 6+ hours straight"},{name:"Token Whale",desc:"5M tokens in a single month"},{name:"Down Bad",desc:"Used it 7 days in a row"},{name:"Bougie",desc:"Over 50% Opus usage"},{name:"Million Club",desc:"1M tokens in a single day"},{name:"Speed Run",desc:"50+ messages in one session"},{name:"Touched Grass",desc:"3 consecutive days clean"},{name:"Support Group",desc:"Checked the leaderboard 10x"}],quotes:['"Just one more prompt" — me, 47 prompts ago',"I can quit whenever I want (narrator: he could not)","One more bug fix and I'll go to bed (it's 4 AM)",`Doctor: You need to stop using Claude Code
53
+ Me: lol no`,`My friends think I ghosted them.
54
+ I'm pair-programming with an AI.`,"My keyboard filed a restraining order",`Mom: Are you talking to someone?
55
+ Me: …it's complicated`,"My AWS bill is a cry for help"],lbNames:["TokenMaxxer","PromptLord","10x Andy","Ship-It Steve","The Alchemist","Grindset Gary","Mr. Backend","AFK King"]}},Zu=[{min:0,emoji:"👶",color:"#4ade80"},{min:15,emoji:"🌱",color:"#a3e635"},{min:30,emoji:"🍺",color:"#facc15"},{min:50,emoji:"💊",color:"#fb923c"},{min:70,emoji:"🫁",color:"#f87171"},{min:85,emoji:"🧟",color:"#ef4444"},{min:95,emoji:"💀",color:"#dc2626"}],ke=[{id:"first_hit",icon:"💉",condition:d=>d.totalSessions>=1},{id:"burning",icon:"🔥",condition:d=>d.maxDailyTokens>=5e5},{id:"allnighter",icon:"🌙",condition:d=>d.maxSessionHours>=6},{id:"whale",icon:"🐋",condition:d=>d.monthlyTokens>=5e6},{id:"addict",icon:"🧟",condition:d=>d.streak>=7},{id:"opus_lover",icon:"👑",condition:d=>d.opusRatio>.5},{id:"million",icon:"🏭",condition:d=>d.maxDailyTokens>=1e6},{id:"speedrun",icon:"⚡",condition:d=>d.maxSessionMessages>=50},{id:"clean",icon:"🌿",condition:d=>d.cleanDays>=3},{id:"social",icon:"🤝",condition:()=>!1}];function Yr(d,T){let p=0;for(let D=0;D<Zu.length;D++)d>=Zu[D].min&&(p=D);const f=Zu[p],C=T.stages[p];return{...f,label:C.label,sub:C.sub}}function vl(d){return d>=1e9?(d/1e9).toFixed(1)+"B":d>=1e6?(d/1e6).toFixed(1)+"M":d>=1e3?(d/1e3).toFixed(0)+"K":String(d)}function Sy(d){let T=d;return()=>(T=(T*16807+0)%2147483647,(T-1)/2147483646)}function xy(){const d=new Date;d.setHours(0,0,0,0);const T=d.getTime(),p=Sy(42),f=[],C=["saas-app","data-pipeline","frontend-v2","api-server","ml-lab"];for(let D=29;D>=0;D--){const j=T-D*864e5,m=Math.floor(p()*5)+1;for(let x=0;x<m;x++){const g=p()>.35,Y=Math.floor(p()*18e4)+15e3,R=Math.floor(p()*45e3)+3e3;f.push({id:`${D}-${x}`,project:C[Math.floor(p()*C.length)],model:g?"opus":"sonnet",startTime:j+x*72e5+p()*36e5,durationMin:Math.floor(p()*100)+10,inputTokens:Y,outputTokens:R,messages:Math.floor(p()*60)+5})}}return f.sort((D,j)=>D.startTime-j.startTime)}function Ty(d){const T=Date.now(),p=new Date;p.setHours(0,0,0,0);const f=d.filter(U=>U.startTime>=p.getTime()),C=d.filter(U=>U.startTime>=T-7*864e5),D=d.filter(U=>U.startTime>=T-30*864e5),j={};d.forEach(U=>{const G=new Date(U.startTime);G.setHours(0,0,0,0);const w=G.getTime();j[w]||(j[w]={tokens:0,sessions:0,messages:0}),j[w].tokens+=U.inputTokens+U.outputTokens,j[w].sessions+=1,j[w].messages+=U.messages||0});let m=0;for(let U=0;U<60;U++){const G=new Date(T-U*864e5);if(G.setHours(0,0,0,0),j[G.getTime()])m++;else break}let x=0;for(let U=0;U<60;U++){const G=new Date(T-U*864e5);if(G.setHours(0,0,0,0),!j[G.getTime()])x++;else break}const g=Object.values(j).map(U=>U.tokens),Y=D.filter(U=>U.model==="opus").length,R={};D.forEach(U=>{R[U.project]||(R[U.project]={tokens:0,sessions:0,messages:0}),R[U.project].tokens+=U.inputTokens+U.outputTokens,R[U.project].sessions+=1,R[U.project].messages+=U.messages||0});const K=[];for(let U=6;U>=0;U--){const G=new Date(T-U*864e5);G.setHours(0,0,0,0);const w=j[G.getTime()];K.push({date:G,tokens:(w==null?void 0:w.tokens)||0})}const at=d.length?d.reduce((U,G)=>(G.endTime||G.startTime)>(U.endTime||U.startTime)?G:U):null;return{todayTokens:f.reduce((U,G)=>U+G.inputTokens+G.outputTokens,0),todaySessions:f.length,todayMessages:f.reduce((U,G)=>U+(G.messages||0),0),todayMinutes:f.reduce((U,G)=>U+G.durationMin,0),weekTokens:C.reduce((U,G)=>U+G.inputTokens+G.outputTokens,0),weekSessions:C.length,monthlyTokens:D.reduce((U,G)=>U+G.inputTokens+G.outputTokens,0),monthlySessions:D.length,monthlyMessages:D.reduce((U,G)=>U+(G.messages||0),0),totalSessions:d.length,maxDailyTokens:Math.max(0,...g),maxSessionHours:Math.max(0,...d.map(U=>U.durationMin/60)),maxSessionMessages:Math.max(0,...d.map(U=>U.messages||0)),streak:m,cleanDays:x,opusRatio:D.length?Y/D.length:0,dailyMap:j,last30:D,projectMap:R,last7DailyTokens:K,latestSession:at}}function zy({text:d,fontSize:T=40}){const p=F.useRef(null),f=F.useRef([]),C=F.useRef({x:-999,y:-999}),D=F.useRef(null);F.useEffect(()=>{const m=p.current;if(!m)return;const x=m.getContext("2d"),g=window.devicePixelRatio||1,Y=m.parentElement.offsetWidth,R=T*2.2;m.width=Y*g,m.height=R*g,m.style.width=Y+"px",m.style.height=R+"px",x.scale(g,g),x.font=`900 ${T}px "Noto Sans SC", sans-serif`,x.textBaseline="middle",x.fillStyle="#fff",x.clearRect(0,0,Y,R);const K=(Y-x.measureText(d).width)/2;x.fillText(d,K,R/2);const U=x.getImageData(0,0,Y*g,R*g).data,G=[],w=4;for(let St=0;St<R*g;St+=w)for(let ft=0;ft<Y*g;ft+=w)U[(St*Y*g+ft)*4+3]>128&&G.push({x:ft/g,y:St/g,ox:ft/g,oy:St/g,vx:0,vy:0,s:1+Math.random()*2,h:15+Math.random()*25,l:50+Math.random()*25});f.current=G;const rt=()=>{x.clearRect(0,0,Y,R);const St=C.current.x,ft=C.current.y;for(const H of G){const B=St-H.x,V=ft-H.y,Z=Math.sqrt(B*B+V*V),ht=Math.max(0,80-Z)/80;ht>0&&(H.vx-=B/Z*ht*5,H.vy-=V/Z*ht*5),H.vx+=(H.ox-H.x)*.07,H.vy+=(H.oy-H.y)*.07,H.vx*=.87,H.vy*=.87,H.x+=H.vx,H.y+=H.vy;const Mt=Math.sqrt(H.vx*H.vx+H.vy*H.vy);x.fillStyle=`hsl(${H.h+Mt*8},100%,${H.l}%)`,x.fillRect(H.x,H.y,H.s,H.s)}D.current=requestAnimationFrame(rt)};return rt(),()=>cancelAnimationFrame(D.current)},[d,T]);const j=(m,x)=>{const g=p.current.getBoundingClientRect();C.current={x:m-g.left,y:x-g.top}};return s.jsx("canvas",{ref:p,onMouseMove:m=>j(m.clientX,m.clientY),onTouchMove:m=>{const x=m.touches[0];j(x.clientX,x.clientY)},onMouseLeave:()=>{C.current={x:-999,y:-999}},onTouchEnd:()=>{C.current={x:-999,y:-999}},style:{display:"block",cursor:"crosshair",margin:"0 auto",touchAction:"none"}})}function Ay({items:d,onDismiss:T}){const p={warning:"#d97706",danger:"#dc2626",critical:"#7f1d1d",info:"#7c3aed"};return s.jsx("div",{style:{position:"fixed",top:12,left:12,right:12,zIndex:9999,display:"flex",flexDirection:"column",gap:6,pointerEvents:"none"},children:d.map(f=>s.jsxs("div",{style:{background:p[f.level]||p.info,color:"#fff",padding:"12px 16px",borderRadius:14,boxShadow:"0 12px 40px rgba(0,0,0,0.5)",animation:"slideDown .4s cubic-bezier(.16,1,.3,1)",display:"flex",gap:10,alignItems:"center",pointerEvents:"auto"},children:[s.jsx("div",{style:{width:6,height:6,borderRadius:"50%",background:"#fff",opacity:.7,flexShrink:0}}),s.jsx("div",{style:{flex:1,fontSize:13,lineHeight:1.5},children:f.message}),s.jsx("button",{onClick:()=>T(f.id),style:{background:"rgba(255,255,255,.2)",border:"none",color:"#fff",width:22,height:22,borderRadius:6,cursor:"pointer",fontSize:12,flexShrink:0},children:"×"})]},f.id))})}function My({pct:d,t:T}){const p=Yr(d,T),f=Math.min(d,100);return s.jsxs("div",{style:{background:"rgba(255,255,255,.03)",border:`1px solid ${p.color}33`,borderRadius:20,padding:"20px 18px",marginBottom:14},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,marginBottom:14},children:[s.jsx("div",{style:{width:56,height:56,borderRadius:"50%",background:`radial-gradient(circle at 35% 35%, ${p.color}40, ${p.color}15)`,border:`2px solid ${p.color}55`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:28,animation:d>80?"pulse 1.5s infinite":"none",flexShrink:0},children:p.emoji}),s.jsxs("div",{style:{flex:1},children:[s.jsx("div",{style:{fontSize:20,fontWeight:800,color:p.color,lineHeight:1.2},children:p.label}),s.jsx("div",{style:{fontSize:12,color:"rgba(255,255,255,.4)",marginTop:2},children:p.sub})]}),s.jsxs("div",{style:{textAlign:"right"},children:[s.jsxs("div",{style:{fontFamily:"JBM",fontSize:22,fontWeight:700,color:p.color},children:[Math.round(d),"%"]}),s.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,.3)"},children:T.tokenUsage})]})]}),s.jsx("div",{style:{height:8,borderRadius:4,background:"rgba(255,255,255,.04)",overflow:"hidden"},children:s.jsx("div",{style:{height:"100%",width:`${f}%`,borderRadius:4,background:"linear-gradient(90deg, #4ade80, #facc15, #f97316, #ef4444)",backgroundSize:"300% 100%",backgroundPosition:`${f}% 0`,transition:"width 1s cubic-bezier(.16,1,.3,1)"}})})]})}function Ey({stats:d,t:T}){const p=[{label:T.todayToken,value:vl(d.todayTokens),color:"#f97316"},{label:T.todayMsg,value:d.todayMessages,color:"#a78bfa"},{label:T.codingTime,value:`${Math.floor(d.todayMinutes/60)}h${d.todayMinutes%60}m`,color:"#2dd4bf"},{label:T.todaySess,value:d.todaySessions,color:"#fbbf24"},{label:T.weekToken,value:vl(d.weekTokens),color:"#f472b6"},{label:T.monthToken,value:vl(d.monthlyTokens),color:"#f97316"}];return s.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:8,marginBottom:14},children:p.map((f,C)=>s.jsxs("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.05)",borderRadius:14,padding:"14px 12px",textAlign:"center"},children:[s.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,.35)",marginBottom:4},children:f.label}),s.jsx("div",{style:{fontFamily:"JBM",fontSize:16,fontWeight:700,color:f.color,lineHeight:1.2},children:f.value})]},C))})}function jy({dailyMap:d,t:T}){const p=Date.now(),f=[];for(let j=27;j>=0;j--){const m=new Date(p-j*864e5);m.setHours(0,0,0,0);const x=d[m.getTime()];f.push({date:m,tokens:(x==null?void 0:x.tokens)||0})}const C=Math.max(...f.map(j=>j.tokens),1),D=[f.slice(0,7),f.slice(7,14),f.slice(14,21),f.slice(21,28)];if(f[0]){const j=T.weekdays;D.forEach((m,x)=>{var Y;const g=(Y=m[0])==null?void 0:Y.date.getDay();x===0&&j[g]})}return s.jsxs("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.05)",borderRadius:16,padding:"14px 14px 10px",marginBottom:14},children:[s.jsx("div",{style:{fontSize:11,color:"rgba(255,255,255,.35)",marginBottom:8,paddingLeft:8,borderLeft:"2px solid rgba(249,115,22,.4)"},children:T.heatmapTitle}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:3},children:D.map((j,m)=>s.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:3},children:j.map((x,g)=>{const Y=m*7+g,R=x.tokens/C;return s.jsx("div",{title:`${x.date.getMonth()+1}/${x.date.getDate()}: ${vl(x.tokens)}`,style:{aspectRatio:"1",borderRadius:4,background:x.tokens>0?`rgba(249, ${Math.round(115*(1-R*.6))}, 22, ${.12+R*.88})`:"rgba(255,255,255,.02)",border:Y===27?"1.5px solid rgba(255,255,255,.25)":"none"}},Y)})},m))}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:9,color:"rgba(255,255,255,.2)",marginTop:6},children:[s.jsx("span",{children:f[0]&&`${f[0].date.getMonth()+1}/${f[0].date.getDate()}`}),s.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[s.jsx("span",{style:{opacity:.5},children:T.less}),[.1,.3,.5,.8,1].map((j,m)=>s.jsx("div",{style:{width:8,height:8,borderRadius:2,background:`rgba(249, ${Math.round(115*(1-j*.6))}, 22, ${.12+j*.88})`}},m)),s.jsx("span",{style:{opacity:.5},children:T.more})]}),s.jsx("span",{children:T.today})]})]})}function _y({data:d,t:T}){var at,U;const p=Math.max(...d.map(G=>G.tokens),1),f=100,C=40,D=2,m=d.map((G,w)=>{const rt=D+w/(d.length-1)*(f-D*2),St=C-D-G.tokens/p*(C-D*2);return`${rt},${St}`}).join(" "),x=`${D},${C-D} ${m} ${f-D},${C-D}`,g=((at=d[d.length-1])==null?void 0:at.tokens)||0,Y=((U=d[d.length-2])==null?void 0:U.tokens)||0,R=g-Y,K=Y>0?(R/Y*100).toFixed(0):"—";return s.jsxs("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.05)",borderRadius:16,padding:"14px",marginBottom:14},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[s.jsx("div",{style:{fontSize:11,color:"rgba(255,255,255,.35)",paddingLeft:8,borderLeft:"2px solid rgba(249,115,22,.4)"},children:T.sparkTitle}),s.jsx("div",{style:{fontSize:11,fontFamily:"JBM"},children:R>=0?s.jsxs("span",{style:{color:"#ef4444"},children:["+",K,"% ↑"]}):s.jsxs("span",{style:{color:"#4ade80"},children:[K,"% ↓"]})})]}),s.jsxs("svg",{viewBox:`0 0 ${f} ${C}`,style:{width:"100%",height:50},children:[s.jsx("polygon",{points:x,fill:"url(#sparkGrad)"}),s.jsx("polyline",{points:m,fill:"none",stroke:"#f97316",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"sparkGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"0%",stopColor:"#f97316",stopOpacity:"0.3"}),s.jsx("stop",{offset:"100%",stopColor:"#f97316",stopOpacity:"0"})]})})]}),s.jsx("div",{style:{display:"flex",justifyContent:"space-between",fontSize:9,color:"rgba(255,255,255,.2)",marginTop:2},children:d.map((G,w)=>s.jsxs("span",{children:[G.date.getMonth()+1,"/",G.date.getDate()]},w))})]})}function Oy({projectMap:d,t:T}){const p=Object.entries(d).sort((D,j)=>j[1].tokens-D[1].tokens);if(!p.length)return null;const f=p[0][1].tokens,C=["#f97316","#a78bfa","#2dd4bf","#f472b6","#fbbf24","#4ade80"];return s.jsxs("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.05)",borderRadius:16,padding:"14px",marginBottom:14},children:[s.jsx("div",{style:{fontSize:11,color:"rgba(255,255,255,.35)",marginBottom:10,paddingLeft:8,borderLeft:"2px solid rgba(249,115,22,.4)"},children:T.projectTitle}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:p.slice(0,5).map(([D,j],m)=>s.jsxs("div",{children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:3},children:[s.jsx("span",{style:{fontSize:12,color:"rgba(255,255,255,.6)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"60%"},children:D}),s.jsx("span",{style:{fontFamily:"JBM",fontSize:11,color:C[m%C.length],fontWeight:600},children:vl(j.tokens)})]}),s.jsx("div",{style:{height:6,borderRadius:3,background:"rgba(255,255,255,.04)",overflow:"hidden"},children:s.jsx("div",{style:{height:"100%",borderRadius:3,width:`${j.tokens/f*100}%`,background:C[m%C.length],transition:"width .6s cubic-bezier(.16,1,.3,1)"}})})]},D))})]})}function Dy({stats:d,limit:T,t:p}){const[f,C]=F.useState(Date.now());F.useEffect(()=>{const w=setInterval(()=>C(Date.now()),1e3);return()=>clearInterval(w)},[]);const D=d==null?void 0:d.latestSession;if(!D)return null;const j=D.endTime||D.startTime,m=Math.max(0,Math.floor((f-j)/1e3)),x=m<600,g=D.durationMin,Y=d.todayMinutes,R=Y>T*60,K=w=>w<60?`${w}${p.secAgo}`:w<3600?`${Math.floor(w/60)}${p.minAgo}`:w<86400?`${Math.floor(w/3600)}${p.hourAgo}${Math.floor(w%3600/60)}${p.minAgo}`:`${Math.floor(w/86400)}${p.dayAgo}`,at=Math.floor(Y/60),U=Y%60,G=Math.min(Y/(T*60)*100,100);return s.jsxs("div",{style:{background:x?R?"rgba(220,38,38,.1)":"rgba(124,58,237,.08)":"rgba(255,255,255,.025)",border:`1px solid ${x?R?"#dc262640":"#7c3aed30":"rgba(255,255,255,.05)"}`,borderRadius:18,padding:"16px",marginBottom:14,animation:R&&x?"breathe 2s infinite":"none"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:10},children:[s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{style:{fontSize:11,color:"rgba(255,255,255,.35)",marginBottom:3,display:"flex",alignItems:"center",gap:6},children:[s.jsx("div",{style:{width:6,height:6,borderRadius:"50%",background:x?R?"#ef4444":"#a78bfa":"rgba(255,255,255,.2)",animation:x?"pulse 2s infinite":"none",flexShrink:0}}),x?p.coding:p.stopped,s.jsxs("span",{style:{fontSize:10,color:"rgba(255,255,255,.2)"},children:[p.lastActivity," ",K(m)]})]}),s.jsx("div",{style:{display:"flex",alignItems:"baseline",gap:12},children:s.jsxs("div",{style:{fontFamily:"JBM",fontSize:28,fontWeight:700,color:R?"#ef4444":x?"#a78bfa":"rgba(255,255,255,.4)",letterSpacing:1,animation:R&&x?"shake .5s infinite":"none"},children:[p.todayLabel," ",at,"h",String(U).padStart(2,"0"),"m"]})}),s.jsx("div",{style:{fontSize:11,color:"rgba(255,255,255,.25)",marginTop:2},children:x?`${D.project} · ${D.messages} ${p.msgCount} · ${vl(D.inputTokens+D.outputTokens)} tokens`:`${p.lastSession} ${D.project} · ${p.lasted}${g}${p.minutes}`}),R&&s.jsxs("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:[p.overLimit," ",Math.floor(Y-T*60),p.overMinutes]})]}),s.jsx("div",{style:{background:x?R?"#dc2626":"#7c3aed":"rgba(255,255,255,.08)",color:x?"#fff":"rgba(255,255,255,.3)",padding:"8px 14px",borderRadius:12,fontSize:12,fontWeight:700,fontFamily:"NSC",whiteSpace:"nowrap"},children:x?p.active:p.idle})]}),s.jsx("div",{style:{marginTop:10,height:4,borderRadius:2,background:"rgba(255,255,255,.04)",overflow:"hidden"},children:s.jsx("div",{style:{height:"100%",width:`${G}%`,borderRadius:2,background:R?"#ef4444":"#7c3aed",transition:"width .5s"}})}),s.jsxs("div",{style:{fontSize:10,color:"rgba(255,255,255,.2)",marginTop:4,textAlign:"right"},children:[Math.round(G),"% / ",T,"h ",p.limitLabel]})]})}function Cy({t:d}){const T=d.quotes.map(p=>p.replace(/\n/g," ")).join(" · ")+" · ";return s.jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",background:"rgba(249,115,22,.06)",borderTop:"1px solid rgba(249,115,22,.1)",borderBottom:"1px solid rgba(249,115,22,.1)",padding:"8px 0",marginBottom:16,fontSize:12,color:"#f97316",fontWeight:500},children:s.jsxs("div",{style:{display:"inline-block",animation:"ticker 40s linear infinite"},children:[T,T]})})}function Ry({myStats:d,t:T,isLive:p}){const[f,C]=F.useState("tokens"),[D,j]=F.useState([]),[m,x]=F.useState(()=>{try{return!!localStorage.getItem("rehab_uid")}catch{return!1}}),[g,Y]=F.useState(()=>{try{return localStorage.getItem("rehab_name")||""}catch{return""}}),[R,K]=F.useState(!1),at=qr();F.useEffect(()=>{mf().then(j);const H=setInterval(()=>mf().then(j),3e4);return()=>clearInterval(H)},[]),F.useEffect(()=>{m&&p&&Dr(d,g||"Anonymous","🫠")},[m,p,d.monthlyTokens,d.streak]);const U=()=>{const H=g.trim()||"Anonymous";try{localStorage.setItem("rehab_name",H)}catch{}x(!0),Dr(d,H,"🫠").then(()=>mf().then(j)),K(!1)},G=f==="tokens"?"monthly_tokens":f==="sessions"?"monthly_sessions":"streak",w=[...D].sort((H,B)=>(B[G]||0)-(H[G]||0)),rt=w.findIndex(H=>H.id===at)+1,St=w.find(H=>H.id===at),ft=["🥇","🥈","🥉"];return s.jsxs("div",{style:{marginBottom:14},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10},children:[s.jsx("div",{style:{fontSize:15,fontWeight:800,paddingLeft:10,borderLeft:"3px solid #f97316"},children:T.lbTitle}),s.jsx("div",{style:{display:"flex",gap:4},children:[{k:"tokens",l:"Tokens"},{k:"sessions",l:"Sessions"},{k:"streak",l:"Streak"}].map(H=>s.jsx("button",{onClick:()=>C(H.k),style:{background:f===H.k?"rgba(249,115,22,.15)":"rgba(255,255,255,.04)",border:`1px solid ${f===H.k?"rgba(249,115,22,.3)":"rgba(255,255,255,.06)"}`,borderRadius:8,padding:"5px 10px",fontSize:12,cursor:"pointer",color:f===H.k?"#f97316":"rgba(255,255,255,.4)"},children:H.l},H.k))})]}),m?s.jsxs("div",{style:{background:"linear-gradient(135deg, rgba(249,115,22,.1), rgba(234,88,12,.05))",border:"1px solid rgba(249,115,22,.25)",borderRadius:16,padding:"14px 16px",marginBottom:10,display:"flex",alignItems:"center",gap:12},children:[s.jsx("div",{style:{fontFamily:"JBM",fontSize:22,fontWeight:800,color:"#f97316",width:36,textAlign:"center"},children:rt>0?`#${rt}`:"—"}),s.jsx("div",{style:{fontSize:28},children:"🫠"}),s.jsx("div",{style:{flex:1},children:R?s.jsxs("div",{style:{display:"flex",gap:6},children:[s.jsx("input",{type:"text",value:g,onChange:H=>Y(H.target.value),onKeyDown:H=>H.key==="Enter"&&U(),style:{flex:1,background:"rgba(0,0,0,.3)",border:"1px solid rgba(255,255,255,.15)",borderRadius:8,padding:"4px 8px",color:"#fff",fontSize:13,outline:"none"}}),s.jsx("button",{onClick:U,style:{background:"rgba(249,115,22,.2)",border:"none",borderRadius:8,color:"#f97316",padding:"4px 10px",fontSize:11,cursor:"pointer"},children:"OK"})]}):s.jsxs("div",{onClick:()=>K(!0),style:{cursor:"pointer"},children:[s.jsx("div",{style:{fontSize:14,fontWeight:700,color:"#f97316"},children:(St==null?void 0:St.name)||g||"Anonymous"}),s.jsxs("div",{style:{fontSize:11,color:"rgba(255,255,255,.4)"},children:[f==="tokens"?vl(d.monthlyTokens):f==="sessions"?`${d.monthlySessions} ${T.sessionsUnit}`:`${d.streak} ${T.daysStreak}`,rt>0&&rt<=3?T.topAddict:rt<=5?T.heavyUser:T.stillHope]})]})})]}):s.jsxs("div",{style:{background:"rgba(255,255,255,.03)",border:"1px solid rgba(255,255,255,.08)",borderRadius:16,padding:16,marginBottom:10,textAlign:"center"},children:[s.jsx("div",{style:{fontSize:13,color:"rgba(255,255,255,.5)",marginBottom:10},children:T.joinDesc||"Join the leaderboard to see how you rank against other Claude Code addicts"}),s.jsxs("div",{style:{display:"flex",gap:8,marginBottom:10},children:[s.jsx("input",{type:"text",value:g,onChange:H=>Y(H.target.value),onKeyDown:H=>H.key==="Enter"&&U(),placeholder:T.namePlaceholder||"Your nickname",style:{flex:1,background:"rgba(0,0,0,.3)",border:"1px solid rgba(255,255,255,.1)",borderRadius:10,padding:"10px 12px",color:"#fff",fontSize:14,outline:"none",fontFamily:"NSC"}}),s.jsx("button",{onClick:U,style:{padding:"10px 20px",borderRadius:10,border:"none",cursor:"pointer",background:"linear-gradient(135deg, #f97316, #ea580c)",color:"#fff",fontSize:13,fontWeight:700,fontFamily:"NSC"},children:T.joinBtn||"Join"})]}),s.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,.2)"},children:T.joinNote||"Anonymous · only usage stats are shared, no personal data"})]}),w.length===0?s.jsx("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.05)",borderRadius:16,padding:20,textAlign:"center",color:"rgba(255,255,255,.3)",fontSize:13},children:T.emptyBoard||"No one here yet. Be the first to join!"}):s.jsx("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.05)",borderRadius:16,overflow:"hidden"},children:w.map((H,B)=>{var Wt,lt;const V=H.id===at,Z=H.monthly_tokens||0,ht=H.monthly_sessions||0,Mt=H.streak||0;return s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"12px 14px",borderBottom:B<w.length-1?"1px solid rgba(255,255,255,.04)":"none",background:V?"rgba(249,115,22,.06)":"none"},children:[s.jsx("div",{style:{fontFamily:"JBM",fontSize:14,fontWeight:700,color:B<3?"#fbbf24":"rgba(255,255,255,.3)",width:28,textAlign:"center"},children:B<3?ft[B]:B+1}),s.jsx("div",{style:{fontSize:22},children:H.avatar||"🫠"}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{fontSize:13,fontWeight:600,color:V?"#f97316":"rgba(255,255,255,.8)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[H.name," ",V&&s.jsx("span",{style:{fontSize:10,color:"#f97316",background:"rgba(249,115,22,.15)",padding:"1px 6px",borderRadius:4,marginLeft:4},children:T.you})]}),s.jsxs("div",{style:{fontSize:11,color:"rgba(255,255,255,.3)"},children:[(Wt=Zu[H.stage])==null?void 0:Wt.emoji," ",(lt=T.stages[H.stage])==null?void 0:lt.label," · ",Mt," ",T.daysStreak]})]}),s.jsx("div",{style:{textAlign:"right",flexShrink:0},children:s.jsx("div",{style:{fontFamily:"JBM",fontSize:13,fontWeight:600,color:B<3?"#fbbf24":"rgba(255,255,255,.5)"},children:f==="tokens"?vl(Z):f==="sessions"?`${ht}${T.timesUnit}`:`${Mt}${T.daysUnit}`})})]},H.id)})})]})}function Uy({stats:d,t:T}){return s.jsxs("div",{style:{marginBottom:14},children:[s.jsx("div",{style:{fontSize:15,fontWeight:800,marginBottom:10,paddingLeft:10,borderLeft:"3px solid #f97316"},children:T.achieveTitle}),s.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:ke.map((p,f)=>{const C=p.condition(d),D=T.achievements[f];return s.jsxs("div",{style:{background:C?"rgba(255,255,255,.04)":"rgba(255,255,255,.015)",border:`1px solid ${C?"rgba(249,115,22,.2)":"rgba(255,255,255,.04)"}`,borderRadius:14,padding:"14px 12px",textAlign:"center",opacity:C?1:.4,transition:"all .3s"},children:[s.jsx("div",{style:{fontSize:28,marginBottom:4,filter:C?"none":"grayscale(1)"},children:p.icon}),s.jsx("div",{style:{fontSize:12,fontWeight:700,color:C?"#f97316":"rgba(255,255,255,.4)"},children:D.name}),s.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,.3)",marginTop:2,lineHeight:1.4},children:D.desc})]},p.id)})})]})}let Cl=null;const Hy=new Promise(d=>{const T=new Image;T.onload=()=>{Cl=T,d(T)},T.onerror=()=>d(null),T.src="/meme.jpg"});function By(d,T,p){const f=T.split("");let C=[],D="";for(const j of f){const m=D+j;d.measureText(m).width>p&&D?(C.push(D),D=j):D=m}return D&&C.push(D),C}function Ny(d,T,p,f,C){d.width=1080,d.height=1350;const m=d.getContext("2d"),x=60;if(Cl){const P=Cl.width/Cl.height,nt=1080/1350;let r=0,_=0,q=Cl.width,L=Cl.height;P>nt?(q=Cl.height*nt,r=(Cl.width-q)/2):(L=Cl.width/nt,_=(Cl.height-L)/2),m.drawImage(Cl,r,_,q,L,0,0,1080,1350)}else m.fillStyle="#0a0a14",m.fillRect(0,0,1080,1350);const g=1350*.48,Y=m.createLinearGradient(0,g-60,0,g+160);Y.addColorStop(0,"rgba(8,6,14,0)"),Y.addColorStop(.4,"rgba(8,6,14,.7)"),Y.addColorStop(1,"rgba(8,6,14,.97)"),m.fillStyle=Y,m.fillRect(0,g-60,1080,1350-g+60),m.fillStyle="rgba(8,6,14,.97)",m.fillRect(0,g+160,1080,1350);const R=m.createRadialGradient(1080*.8,1350*.75,0,1080*.8,1350*.75,300);R.addColorStop(0,"rgba(249,115,22,.06)"),R.addColorStop(1,"transparent"),m.fillStyle=R,m.fillRect(0,g,1080,1350-g);const K=m.createRadialGradient(1080*.15,1350*.9,0,1080*.15,1350*.9,250);K.addColorStop(0,"rgba(124,58,237,.04)"),K.addColorStop(1,"transparent"),m.fillStyle=K,m.fillRect(0,g,1080,1350-g),m.fillStyle="rgba(0,0,0,.45)",m.beginPath(),m.roundRect(x-10,30,300,50,25),m.fill();const at=m.createLinearGradient(x,36,x+38,74);at.addColorStop(0,"#f97316"),at.addColorStop(1,"#ea580c"),m.beginPath(),m.roundRect(x,36,38,38,10),m.fillStyle=at,m.fill(),m.fillStyle="#fff",m.font="bold 17px 'JetBrains Mono',monospace",m.textAlign="center",m.fillText("CC",x+19,60),m.textAlign="left",m.fillStyle="#fff",m.font="700 18px 'Noto Sans SC',sans-serif",m.fillText("Claude Code Rehab",x+48,61);const U=g+130;m.font="72px sans-serif",m.textAlign="left",m.fillText(p.emoji,x,U+10),m.fillStyle=p.color,m.font="900 52px 'Noto Sans SC',sans-serif",m.fillText(p.label,x+95,U-4),m.fillStyle="rgba(255,255,255,.45)",m.font="italic 22px 'Noto Sans SC',sans-serif",m.fillText(`"${p.sub}"`,x+95,U+32);const G=U+54,w=6,rt=1080-x*2;m.fillStyle="rgba(255,255,255,.06)",m.beginPath(),m.roundRect(x,G,rt,w,3),m.fill();const St=Math.min(100,T.todayTokens/5e5*100),ft=m.createLinearGradient(x,G,x+rt,G);ft.addColorStop(0,"#4ade80"),ft.addColorStop(.5,"#f97316"),ft.addColorStop(1,"#ef4444"),m.fillStyle=ft,m.beginPath(),m.roundRect(x,G,rt*St/100,w,3),m.fill();const H=G+26,B=10,V=(1080-x*2-B*2)/3,Z=92;[{label:f.cardMonthToken,value:vl(T.monthlyTokens),color:"#f97316"},{label:f.cardStreak,value:`${T.streak}${f.daysUnit}`,color:"#ef4444"},{label:f.cardAchieve,value:`${C}/${ke.length}`,color:"#a78bfa"}].forEach((P,nt)=>{const r=x+nt*(V+B);m.fillStyle="rgba(255,255,255,.04)",m.beginPath(),m.roundRect(r,H,V,Z,14),m.fill(),m.strokeStyle="rgba(255,255,255,.06)",m.lineWidth=1,m.beginPath(),m.roundRect(r,H,V,Z,14),m.stroke(),m.fillStyle="rgba(255,255,255,.3)",m.font="400 13px 'Noto Sans SC',sans-serif",m.textAlign="center",m.fillText(P.label,r+V/2,H+30),m.fillStyle=P.color,m.font="700 28px 'JetBrains Mono',monospace",m.fillText(P.value,r+V/2,H+66)});const Mt=H+Z+B,Wt=(1080-x*2-B)/2,lt=68;[{label:f.todayToken,value:vl(T.todayTokens),color:"#fb923c"},{label:f.monthlyMsg||f.todayMsg,value:String(T.monthlyMessages),color:"#a78bfa"}].forEach((P,nt)=>{const r=x+nt*(Wt+B);m.fillStyle="rgba(255,255,255,.03)",m.beginPath(),m.roundRect(r,Mt,Wt,lt,12),m.fill(),m.fillStyle="rgba(255,255,255,.25)",m.font="400 12px 'Noto Sans SC',sans-serif",m.textAlign="center",m.fillText(P.label,r+Wt/2,Mt+24),m.fillStyle=P.color,m.font="700 22px 'JetBrains Mono',monospace",m.fillText(P.value,r+Wt/2,Mt+52)});const Zt=ke.filter(P=>P.condition(T));let Gt=Mt+lt+18;if(Zt.length){const _=(1080-(Zt.length*46+(Zt.length-1)*8))/2;Zt.slice(0,10).forEach((q,L)=>{const $=_+L*54;m.fillStyle="rgba(249,115,22,.08)",m.beginPath(),m.roundRect($,Gt,46,46,10),m.fill(),m.strokeStyle="rgba(249,115,22,.15)",m.lineWidth=1,m.beginPath(),m.roundRect($,Gt,46,46,10),m.stroke(),m.font="24px sans-serif",m.textAlign="center",m.fillText(q.icon,$+46/2,Gt+34)}),Gt+=64}const Ft=f.quotes[Math.floor(Math.random()*f.quotes.length)].replace(/\n/g," ");m.fillStyle="rgba(255,255,255,.35)",m.font="italic 18px 'Noto Sans SC',sans-serif",m.textAlign="center";const M=By(m,Ft,1080-x*2-40);M.length*26,M.forEach((P,nt)=>m.fillText(P,1080/2,Gt+10+nt*26));const N=1292,J=m.createLinearGradient(x*2,N-20,1080-x*2,N-20);J.addColorStop(0,"transparent"),J.addColorStop(.3,"rgba(249,115,22,.25)"),J.addColorStop(.7,"rgba(249,115,22,.25)"),J.addColorStop(1,"transparent"),m.fillStyle=J,m.fillRect(x*2,N-20,1080-x*4,1),m.fillStyle="rgba(255,255,255,.15)",m.font="500 14px 'JetBrains Mono',monospace",m.textAlign="center",m.fillText(f.shareTag,1080/2,N+6),m.fillStyle="rgba(255,255,255,.1)",m.font="400 13px 'Noto Sans SC',sans-serif",m.fillText(f.footer,1080/2,N+30)}const qy=[{id:"x",name:"X / Twitter",color:"#000",bg:"#fff",icon:(d,T,p,f)=>{d.fillStyle="#000",d.font=`bold ${f*.6}px sans-serif`,d.textAlign="center",d.textBaseline="middle",d.fillText("𝕏",T+f/2,p+f/2)},url:d=>`https://x.com/intent/tweet?text=${encodeURIComponent(d)}`},{id:"reddit",name:"Reddit",color:"#ff4500",bg:"rgba(255,69,0,.12)",icon:(d,T,p,f)=>{d.fillStyle="#ff4500",d.font=`bold ${f*.5}px sans-serif`,d.textAlign="center",d.textBaseline="middle",d.fillText("r/",T+f/2,p+f/2)},url:d=>`https://www.reddit.com/submit?title=${encodeURIComponent(d)}`},{id:"threads",name:"Threads",color:"#000",bg:"rgba(255,255,255,.1)",icon:(d,T,p,f)=>{d.fillStyle="#fff",d.font=`bold ${f*.55}px sans-serif`,d.textAlign="center",d.textBaseline="middle",d.fillText("@",T+f/2,p+f/2)},url:d=>`https://www.threads.net/intent/post?text=${encodeURIComponent(d)}`},{id:"copy",name:null,color:"rgba(255,255,255,.5)",bg:"rgba(255,255,255,.06)"},{id:"save",name:null,color:"#f97316",bg:"rgba(249,115,22,.1)"}];function Yy({stats:d,pct:T,t:p}){const f=Yr(T,p),[C,D]=F.useState(!1),[j,m]=F.useState(null),[x,g]=F.useState(null),Y=F.useRef(null),R=F.useRef(null),K=ke.filter(B=>B.condition(d)).length,at=`${p.shareReport}
56
+
57
+ ${f.emoji} ${p.shareLevel}${f.label}
58
+ ${p.shareMonthToken}${vl(d.monthlyTokens)}
59
+ ${p.shareStreak}${d.streak}${p.shareDays}
60
+ ${p.shareAchieve}${K}/${ke.length}
61
+ ${p.shareSessions}${d.monthlySessions}
62
+
63
+ "${f.sub}"
64
+
65
+ ${p.shareTag}`;F.useEffect(()=>{const B=document.createElement("canvas");Y.current=B,Hy.then(()=>{Ny(B,d,f,p,K),g(B.toDataURL("image/png"))})},[d,T,p]),F.useEffect(()=>{if(!C)return;const B=V=>{R.current&&!R.current.contains(V.target)&&D(!1)};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[C]);const U=B=>{m(B),setTimeout(()=>m(null),2e3)},G=()=>{const B=Y.current;B&&(B.toBlob(V=>{if(!V)return;const Z=URL.createObjectURL(V),ht=document.createElement("a");ht.href=Z,ht.download=`claude-rehab-${Date.now()}.png`,ht.click(),URL.revokeObjectURL(Z)},"image/png"),U(p.imageSaved||"Image saved!"),D(!1))},w=()=>{var B;(B=navigator.clipboard)==null||B.writeText(at),U(p.copied),D(!1)},rt=async()=>{var V;const B=Y.current;if(!B)return!1;try{const Z=await new Promise(ht=>B.toBlob(ht,"image/png"));if(Z&&((V=navigator.clipboard)!=null&&V.write))return await navigator.clipboard.write([new ClipboardItem({"image/png":Z})]),!0}catch{}return!1},St=async B=>{const V=await rt();window.open(B.url(at),"_blank","noopener,width=600,height=500"),U(V?p.imgCopiedHint||"Image copied — paste it in your post!":p.imgCopyFail||"Open the platform and attach the saved image"),D(!1)},ft=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),H=async()=>{var B;if(ft&&navigator.share)try{const V={title:p.cardTitle,text:at},Z=Y.current;if(Z){const ht=await new Promise(Mt=>Z.toBlob(Mt,"image/png"));if(ht){const Mt=new File([ht],"claude-rehab.png",{type:"image/png"});(B=navigator.canShare)!=null&&B.call(navigator,{files:[Mt]})&&(V.files=[Mt])}}await navigator.share(V);return}catch(V){if(V.name==="AbortError")return}D(V=>!V)};return s.jsxs("div",{style:{marginBottom:14},children:[s.jsx("div",{style:{fontSize:15,fontWeight:800,marginBottom:10,paddingLeft:10,borderLeft:"3px solid #f97316"},children:p.shareTitle}),x&&s.jsx("div",{style:{borderRadius:16,overflow:"hidden",marginBottom:10,border:"1px solid rgba(249,115,22,.15)"},children:s.jsx("img",{src:x,alt:"Share card",style:{width:"100%",display:"block"}})}),s.jsxs("div",{style:{position:"relative"},ref:R,children:[s.jsxs("button",{onClick:H,style:{width:"100%",padding:"14px",borderRadius:14,border:"none",cursor:"pointer",background:"linear-gradient(135deg, #f97316, #ea580c)",color:"#fff",fontSize:15,fontWeight:700,fontFamily:"NSC",display:"flex",alignItems:"center",justifyContent:"center",gap:8},children:[s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8"}),s.jsx("polyline",{points:"16 6 12 2 8 6"}),s.jsx("line",{x1:"12",y1:"2",x2:"12",y2:"15"})]}),p.shareBtn||"Share"]}),C&&s.jsxs("div",{style:{position:"absolute",bottom:"calc(100% + 8px)",left:0,right:0,background:"rgba(18,18,24,.97)",backdropFilter:"blur(20px)",border:"1px solid rgba(255,255,255,.1)",borderRadius:16,padding:6,zIndex:50,animation:"fadeIn .2s ease-out",boxShadow:"0 -8px 40px rgba(0,0,0,.5)"},children:[s.jsx("div",{style:{padding:"8px 14px 4px",fontSize:11,color:"rgba(255,255,255,.25)"},children:p.shareMenuHint||"Image auto-copied to clipboard"}),qy.filter(B=>B.name).map(B=>s.jsxs("button",{onClick:()=>St(B),style:{width:"100%",padding:"12px 14px",borderRadius:10,border:"none",cursor:"pointer",background:"transparent",display:"flex",alignItems:"center",gap:12,color:"#fff",fontSize:14,fontWeight:600,fontFamily:"NSC",transition:"background .15s"},onMouseEnter:V=>V.currentTarget.style.background="rgba(255,255,255,.06)",onMouseLeave:V=>V.currentTarget.style.background="transparent",children:[s.jsx("div",{style:{width:36,height:36,borderRadius:10,background:B.bg,display:"flex",alignItems:"center",justifyContent:"center",fontSize:18,fontWeight:800,color:B.color,flexShrink:0},children:B.id==="x"?"𝕏":B.id==="reddit"?s.jsx("span",{style:{fontSize:15},children:"r/"}):"@"}),s.jsxs("div",{children:[s.jsx("div",{children:B.name}),s.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,.25)",fontWeight:400},children:p.pasteHintShort||"Paste image after opening"})]})]},B.id)),s.jsx("div",{style:{height:1,background:"rgba(255,255,255,.06)",margin:"4px 10px"}}),s.jsxs("div",{style:{display:"flex",gap:6,padding:"6px 6px 4px"},children:[s.jsxs("button",{onClick:w,style:{flex:1,padding:"10px",borderRadius:10,border:"1px solid rgba(255,255,255,.08)",background:"rgba(255,255,255,.03)",cursor:"pointer",color:"rgba(255,255,255,.5)",fontSize:12,fontWeight:600,fontFamily:"NSC",display:"flex",alignItems:"center",justifyContent:"center",gap:6},children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[s.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),s.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}),p.copyText||"Copy text"]}),s.jsxs("button",{onClick:G,style:{flex:1,padding:"10px",borderRadius:10,border:"1px solid rgba(255,255,255,.08)",background:"rgba(255,255,255,.03)",cursor:"pointer",color:"rgba(255,255,255,.5)",fontSize:12,fontWeight:600,fontFamily:"NSC",display:"flex",alignItems:"center",justifyContent:"center",gap:6},children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[s.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),s.jsx("polyline",{points:"7 10 12 15 17 10"}),s.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),p.saveImage||"Save image"]})]})]})]}),j&&s.jsx("div",{style:{textAlign:"center",marginTop:8,fontSize:12,fontWeight:600,color:"#4ade80",animation:"fadeIn .2s"},children:j})]})}function Gy({config:d,setConfig:T,t:p}){const f=[{key:"dailyTokenLimit",label:p.dailyLimit},{key:"continuousHoursLimit",label:p.contLimit}];return s.jsxs("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.05)",borderRadius:16,padding:"16px",marginBottom:14},children:[s.jsx("div",{style:{fontSize:14,fontWeight:800,marginBottom:12,paddingLeft:10,borderLeft:"3px solid #f97316"},children:p.settingsTitle}),f.map(C=>s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 0",borderBottom:"1px solid rgba(255,255,255,.04)"},children:[s.jsx("span",{style:{fontSize:13,color:"rgba(255,255,255,.5)"},children:C.label}),s.jsx("input",{type:"number",value:d[C.key],onChange:D=>T(j=>({...j,[C.key]:Number(D.target.value)||0})),style:{background:"rgba(255,255,255,.05)",border:"1px solid rgba(255,255,255,.1)",borderRadius:8,color:"#fff",padding:"6px 10px",fontFamily:"JBM",fontSize:13,width:80,textAlign:"right",outline:"none"}})]},C.key))]})}function Ly({liveMeta:d,t:T}){const[p,f]=F.useState(!1);return s.jsxs("div",{style:{marginBottom:14},children:[s.jsx("div",{style:{fontSize:14,fontWeight:800,marginBottom:10,paddingLeft:10,borderLeft:"3px solid #f97316"},children:T.dataTitle}),d?s.jsxs("div",{style:{background:"rgba(74,222,128,.06)",border:"1px solid rgba(74,222,128,.2)",borderRadius:14,padding:"14px 16px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:[s.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#4ade80",animation:"pulse 2s infinite",flexShrink:0}}),s.jsxs("div",{style:{flex:1},children:[s.jsx("div",{style:{fontSize:13,fontWeight:700,color:"#4ade80"},children:T.liveConnected}),s.jsx("div",{style:{fontSize:11,color:"rgba(255,255,255,.35)"},children:T.liveDesc})]})]}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[s.jsxs("div",{style:{background:"rgba(255,255,255,.03)",borderRadius:8,padding:"8px 10px",textAlign:"center"},children:[s.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,.3)"},children:T.fileCount}),s.jsx("div",{style:{fontFamily:"JBM",fontSize:14,fontWeight:600,color:"#4ade80"},children:d.fileCount})]}),s.jsxs("div",{style:{background:"rgba(255,255,255,.03)",borderRadius:8,padding:"8px 10px",textAlign:"center"},children:[s.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,.3)"},children:T.sessCount}),s.jsx("div",{style:{fontFamily:"JBM",fontSize:14,fontWeight:600,color:"#4ade80"},children:d.sessionCount})]})]}),d.lastRefresh&&s.jsxs("div",{style:{fontSize:10,color:"rgba(255,255,255,.2)",marginTop:6,textAlign:"center"},children:[T.lastRefresh," ",new Date(d.lastRefresh).toLocaleTimeString()]})]}):s.jsxs("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.06)",borderRadius:14,padding:20,textAlign:"center"},children:[s.jsx("div",{style:{fontSize:32,marginBottom:8},children:s.jsx("span",{style:{display:"inline-block",width:12,height:12,borderRadius:"50%",background:"rgba(255,255,255,.15)",marginRight:4}})}),s.jsx("div",{style:{fontSize:14,fontWeight:700,color:"rgba(255,255,255,.7)",marginBottom:4},children:T.demoMode||"Demo Mode"}),s.jsx("div",{style:{fontSize:12,color:"rgba(255,255,255,.35)",marginBottom:16,lineHeight:1.6},children:T.demoDesc||"You're viewing sample data. To see your real Claude Code usage, run this on your computer:"}),s.jsxs("div",{style:{background:"rgba(0,0,0,.4)",borderRadius:12,padding:"14px 16px",fontFamily:"'JetBrains Mono',monospace",fontSize:14,color:"#a3e635",textAlign:"left",marginBottom:10,border:"1px solid rgba(163,230,53,.1)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:10},children:[s.jsxs("div",{children:[s.jsx("span",{style:{color:"rgba(255,255,255,.3)"},children:"$ "}),"npx claude-code-rehab"]}),s.jsx("button",{onClick:()=>{var C;(C=navigator.clipboard)==null||C.writeText("npx claude-code-rehab"),f(!0),setTimeout(()=>f(!1),2e3)},style:{background:"rgba(255,255,255,.08)",border:"none",borderRadius:6,color:p?"#4ade80":"rgba(255,255,255,.4)",padding:"4px 10px",fontSize:11,cursor:"pointer",flexShrink:0,fontFamily:"NSC"},children:p?"OK":"Copy"})]}),s.jsxs("div",{style:{textAlign:"left",fontSize:12,color:"rgba(255,255,255,.3)",lineHeight:2},children:[s.jsxs("div",{children:[s.jsx("span",{style:{color:"#f97316",fontWeight:700,marginRight:6},children:"1."}),T.step1Guide||"Run the command above in your terminal"]}),s.jsxs("div",{children:[s.jsx("span",{style:{color:"#f97316",fontWeight:700,marginRight:6},children:"2."}),T.step2Guide||"Open the URL it prints in your browser"]}),s.jsxs("div",{children:[s.jsx("span",{style:{color:"#f97316",fontWeight:700,marginRight:6},children:"3."}),T.step3Guide||"Phone? Use the Network URL on the same WiFi"]})]}),s.jsxs("div",{style:{fontSize:10,color:"rgba(255,255,255,.15)",marginTop:12},children:["Node.js 18+ ",T.required||"required"]})]})]})}const Rr="rehab_sessions",Ur="rehab_config";function Hr(d,T){try{const p=localStorage.getItem(d);return p?JSON.parse(p):T}catch{return T}}const Br="rehab_lang";function Xy(){const[d,T]=F.useState(()=>Hr(Rr,null)||xy()),[p,f]=F.useState(()=>Hr(Ur,{dailyTokenLimit:500,continuousHoursLimit:4})),[C,D]=F.useState(()=>{try{return localStorage.getItem(Br)||"zh"}catch{return"zh"}}),j=Cr[C]||Cr.zh,[m,x]=F.useState([]),[g,Y]=F.useState("home"),[R,K]=F.useState(0),[at,U]=F.useState(!1),G=F.useRef(0),{data:w,meta:rt,loading:St}=py(3e4),ft=w||d,H=!!w,B=F.useMemo(()=>Ty(ft),[ft]),V=B.todayTokens/(p.dailyTokenLimit*1e3)*100;F.useEffect(()=>{if(!H)try{localStorage.setItem(Rr,JSON.stringify(d))}catch{}},[d,H]),F.useEffect(()=>{try{localStorage.setItem(Ur,JSON.stringify(p))}catch{}},[p]),F.useEffect(()=>{try{localStorage.setItem(Br,C)}catch{}},[C]),F.useEffect(()=>{const lt=setInterval(()=>K(xt=>(xt+1)%j.quotes.length),5e3);return()=>clearInterval(lt)},[j]);const Z=F.useCallback((lt,xt="warning")=>{const Zt=++G.current;x(Gt=>[...Gt,{id:Zt,message:lt,level:xt}]),setTimeout(()=>x(Gt=>Gt.filter(Ft=>Ft.id!==Zt)),4e3)},[]);F.useEffect(()=>{V>=90?setTimeout(()=>Z(j.notifOverLimit,"critical"),1e3):V>=50&&setTimeout(()=>Z(j.notifHalf,"warning"),1e3)},[]);const ht=F.useCallback(lt=>{lt!==g&&(U(!0),setTimeout(()=>{Y(lt),U(!1),window.scrollTo({top:0,behavior:"smooth"})},150))},[g]),Mt=F.useCallback(()=>D(lt=>lt==="zh"?"en":"zh"),[]),Wt=[{id:"home",label:j.tabHome},{id:"rank",label:j.tabRank},{id:"badge",label:j.tabBadge},{id:"me",label:j.tabMe}];return s.jsxs(s.Fragment,{children:[s.jsx("style",{children:`
66
+ @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;600;700&display=swap');
67
+ @keyframes slideDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
68
+ @keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
69
+ @keyframes pulse { 0%,100%{opacity:1}50%{opacity:.35} }
70
+ @keyframes breathe { 0%,100%{box-shadow:0 0 15px rgba(220,38,38,.1)}50%{box-shadow:0 0 40px rgba(220,38,38,.3)} }
71
+ @keyframes shake { 0%,100%{transform:translateX(0)}25%{transform:translateX(-2px)}75%{transform:translateX(2px)} }
72
+ @keyframes ticker { from{transform:translateX(0)}to{transform:translateX(-50%)} }
73
+ * { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
74
+ html,body { background:#08080c; overflow-x:hidden; }
75
+ .root { font-family:'Noto Sans SC',sans-serif; background:#08080c; color:#e4e4e7; min-height:100dvh; padding-bottom:72px; position:relative; }
76
+ .root::before { content:''; position:fixed; inset:0; background: radial-gradient(ellipse at 20% 0%,rgba(249,115,22,.06) 0%,transparent 50%), radial-gradient(ellipse at 80% 100%,rgba(124,58,237,.04) 0%,transparent 50%); pointer-events:none; z-index:0; }
77
+ .JBM { font-family:'JetBrains Mono',monospace; }
78
+ .NSC { font-family:'Noto Sans SC',sans-serif; }
79
+ .tab-content { animation: fadeIn .3s cubic-bezier(.16,1,.3,1); }
80
+ .tab-exit { opacity:0; transform:translateY(6px); transition: all .15s ease-in; }
81
+ `}),s.jsxs("div",{className:"root",children:[s.jsx(Ay,{items:m,onDismiss:lt=>x(xt=>xt.filter(Zt=>Zt.id!==lt))}),s.jsxs("div",{style:{position:"relative",zIndex:1,maxWidth:480,margin:"0 auto",padding:"16px 14px 0"},children:[s.jsx("div",{style:{position:"absolute",top:16,right:14,zIndex:10},children:s.jsxs("button",{onClick:Mt,style:{background:"rgba(255,255,255,.06)",border:"1px solid rgba(255,255,255,.1)",borderRadius:8,padding:"4px 10px",cursor:"pointer",color:"rgba(255,255,255,.5)",fontSize:11,fontWeight:600,display:"flex",alignItems:"center",gap:4,transition:"all .2s"},onMouseEnter:lt=>lt.target.style.background="rgba(255,255,255,.1)",onMouseLeave:lt=>lt.target.style.background="rgba(255,255,255,.06)",children:["🌐 ",C==="zh"?"EN":"中文"]})}),s.jsx(zy,{text:j.title,fontSize:38}),s.jsxs("div",{style:{textAlign:"center",fontSize:11,color:"rgba(255,255,255,.2)",marginTop:-4,marginBottom:4},children:[j.subtitle," · ",H?s.jsx("span",{style:{color:"#4ade80"},children:j.liveData}):St?s.jsx("span",{style:{color:"#fbbf24"},children:j.connecting}):j.hoverHint]}),s.jsx(Cy,{t:j}),s.jsxs("div",{className:at?"tab-exit":"tab-content",children:[g==="home"&&s.jsxs(s.Fragment,{children:[s.jsx(My,{pct:V,t:j}),s.jsx(Dy,{stats:B,limit:p.continuousHoursLimit,t:j}),s.jsx(Ey,{stats:B,t:j}),s.jsx(_y,{data:B.last7DailyTokens,t:j}),s.jsx(Oy,{projectMap:B.projectMap,t:j}),s.jsxs("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.06)",borderRadius:16,padding:"14px 16px",marginBottom:14,minHeight:60},children:[s.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,.35)",marginBottom:6,paddingLeft:8,borderLeft:"2px solid rgba(249,115,22,.4)"},children:j.quoteTitle}),s.jsx("div",{style:{fontSize:14,fontWeight:600,color:"rgba(255,255,255,.7)",lineHeight:1.6,whiteSpace:"pre-line",transition:"opacity .3s"},children:j.quotes[R%j.quotes.length]})]}),s.jsx(jy,{dailyMap:B.dailyMap,t:j})]}),g==="rank"&&s.jsx(Ry,{myStats:B,t:j,isLive:H}),g==="badge"&&s.jsxs(s.Fragment,{children:[s.jsx(Uy,{stats:B,t:j}),s.jsx(Yy,{stats:B,pct:V,t:j})]}),g==="me"&&s.jsxs(s.Fragment,{children:[s.jsx(Gy,{config:p,setConfig:f,t:j}),s.jsx(Ly,{liveMeta:H?rt:null,t:j}),s.jsxs("div",{style:{background:"rgba(255,255,255,.025)",border:"1px solid rgba(255,255,255,.05)",borderRadius:16,padding:16,marginBottom:14},children:[s.jsx("div",{style:{fontSize:14,fontWeight:800,marginBottom:12,paddingLeft:10,borderLeft:"3px solid #f97316"},children:j.myData}),[{l:j.totalSessions,v:B.totalSessions},{l:j.monthlyTokens,v:vl(B.monthlyTokens)},{l:j.monthlyMsg,v:B.monthlyMessages},{l:j.streak,v:`${B.streak} ${j.daysLabel}`},{l:j.maxDailyToken,v:vl(B.maxDailyTokens)},{l:j.opusRatio,v:`${Math.round(B.opusRatio*100)}%`},{l:j.unlocked,v:`${ke.filter(lt=>lt.condition(B)).length} / ${ke.length}`}].map((lt,xt)=>s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px 0",borderBottom:xt<6?"1px solid rgba(255,255,255,.04)":"none"},children:[s.jsx("span",{style:{fontSize:13,color:"rgba(255,255,255,.45)"},children:lt.l}),s.jsx("span",{style:{fontFamily:"JBM",fontSize:13,fontWeight:600,color:"rgba(255,255,255,.7)"},children:lt.v})]},xt))]})]})]},g),s.jsx("div",{style:{textAlign:"center",padding:"20px 0 16px",fontSize:10,color:"rgba(255,255,255,.1)",lineHeight:1.6},children:j.footer})]}),s.jsx("div",{style:{position:"fixed",bottom:0,left:0,right:0,zIndex:100,background:"rgba(8,8,12,.95)",backdropFilter:"blur(20px)",borderTop:"1px solid rgba(255,255,255,.06)",display:"flex",justifyContent:"space-around",alignItems:"center",padding:"0 0 env(safe-area-inset-bottom, 4px)",maxWidth:480,margin:"0 auto"},children:Wt.map(lt=>{const xt=g===lt.id;return s.jsx("button",{onClick:()=>ht(lt.id),style:{background:"none",border:"none",cursor:"pointer",padding:"12px 20px 10px",color:xt?"#f97316":"rgba(255,255,255,.3)",fontSize:13,fontWeight:xt?700:500,fontFamily:"'Noto Sans SC'",borderTop:xt?"2px solid #f97316":"2px solid transparent",transition:"all .2s"},children:lt.label},lt.id)})})]})]})}vy.createRoot(document.getElementById("root")).render(s.jsx(Xy,{}));
package/dist/icon.svg ADDED
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2
+ <defs>
3
+ <linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0%" stop-color="#f97316"/>
5
+ <stop offset="100%" stop-color="#ea580c"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect width="512" height="512" rx="102" fill="url(#g)"/>
9
+ <text x="256" y="280" text-anchor="middle" fill="#fff" font-family="monospace" font-weight="bold" font-size="200">CC</text>
10
+ </svg>
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6
+ <meta name="theme-color" content="#08080c" />
7
+ <meta name="apple-mobile-web-app-capable" content="yes" />
8
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
9
+ <meta name="apple-mobile-web-app-title" content="CC Rehab" />
10
+ <meta name="description" content="Claude Code addiction monitor & meme dashboard" />
11
+ <link rel="manifest" href="/manifest.json" />
12
+ <link rel="icon" type="image/svg+xml" href="/icon.svg" />
13
+ <link rel="apple-touch-icon" href="/icon.svg" />
14
+ <title>Claude Code Rehab</title>
15
+ <style>
16
+ * { margin: 0; padding: 0; box-sizing: border-box; }
17
+ html, body, #root { background: #08080c; min-height: 100dvh; }
18
+ </style>
19
+ <script type="module" crossorigin src="/assets/index-lGfWGhE6.js"></script>
20
+ </head>
21
+ <body>
22
+ <div id="root"></div>
23
+ <script>
24
+ if ("serviceWorker" in navigator) {
25
+ window.addEventListener("load", () => {
26
+ navigator.serviceWorker.register("/sw.js").catch(() => {});
27
+ });
28
+ }
29
+ </script>
30
+ </body>
31
+ </html>
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "Claude Code Rehab",
3
+ "short_name": "CC Rehab",
4
+ "description": "Claude Code addiction monitor & meme dashboard",
5
+ "start_url": "/",
6
+ "display": "standalone",
7
+ "background_color": "#08080c",
8
+ "theme_color": "#08080c",
9
+ "orientation": "portrait",
10
+ "icons": [
11
+ { "src": "/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" },
12
+ { "src": "/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "maskable" }
13
+ ]
14
+ }
package/dist/meme.jpg ADDED
Binary file
@@ -0,0 +1,142 @@
1
+ #!/usr/bin/env node
2
+ // Claude Code Rehab — Lightweight data server
3
+ // Run: node server.mjs
4
+ // Then open the app on your phone and enter this computer's IP
5
+
6
+ import { createServer } from "http";
7
+ import { createReadStream, existsSync, readdirSync, statSync, readFileSync } from "fs";
8
+ import { join, basename } from "path";
9
+ import { homedir, networkInterfaces } from "os";
10
+ import { createInterface } from "readline";
11
+
12
+ const PORT = 3456;
13
+ const CLAUDE_DIR = join(homedir(), ".claude", "projects");
14
+
15
+ function mapModel(m) { return m?.toLowerCase().includes("opus") ? "opus" : "sonnet"; }
16
+ function projName(cwd) { return cwd ? basename(cwd) : "unknown"; }
17
+
18
+ function dayKey(ts) { const d = new Date(ts); d.setHours(0,0,0,0); return d.getTime(); }
19
+
20
+ async function parseFile(fp, dirName) {
21
+ return new Promise((resolve) => {
22
+ const fileId = basename(fp, ".jsonl");
23
+ let project = dirName.split("-").filter(Boolean).pop() || dirName;
24
+ const days = {};
25
+ let hasData = false;
26
+ const rl = createInterface({ input: createReadStream(fp, { encoding: "utf-8" }), crlfDelay: Infinity });
27
+ rl.on("line", (line) => {
28
+ if (!line.trim()) return;
29
+ try {
30
+ const obj = JSON.parse(line);
31
+ const ts = obj.timestamp ? new Date(obj.timestamp).getTime() : null;
32
+ if (!ts || isNaN(ts)) return;
33
+ const dk = dayKey(ts);
34
+ if (!days[dk]) days[dk] = { inp: 0, out: 0, msgs: 0, models: { opus: 0, sonnet: 0 }, minTs: ts, maxTs: ts };
35
+ const b = days[dk];
36
+ if (ts < b.minTs) b.minTs = ts; if (ts > b.maxTs) b.maxTs = ts;
37
+ if (obj.type === "user") { b.msgs++; if (obj.cwd) project = projName(obj.cwd); }
38
+ if (obj.type === "assistant" && obj.message) {
39
+ if (obj.message.model) b.models[mapModel(obj.message.model)]++;
40
+ if (obj.message.usage) { hasData = true; b.inp += obj.message.usage.input_tokens || 0; b.out += obj.message.usage.output_tokens || 0; }
41
+ }
42
+ } catch {}
43
+ });
44
+ rl.on("close", () => {
45
+ if (!hasData) return resolve(null);
46
+ const sessions = [];
47
+ for (const [dk, b] of Object.entries(days)) {
48
+ if (!b.inp && !b.out) continue;
49
+ sessions.push({
50
+ id: `${fileId}-${dk}`, project,
51
+ model: b.models.opus >= b.models.sonnet ? "opus" : "sonnet",
52
+ startTime: b.minTs, endTime: b.maxTs,
53
+ durationMin: Math.max(1, Math.round((b.maxTs - b.minTs) / 60000)),
54
+ inputTokens: b.inp, outputTokens: b.out, messages: b.msgs,
55
+ });
56
+ }
57
+ resolve(sessions.length ? sessions : null);
58
+ });
59
+ rl.on("error", () => resolve(null));
60
+ });
61
+ }
62
+
63
+ async function scan() {
64
+ if (!existsSync(CLAUDE_DIR)) return [];
65
+ const sessions = [];
66
+ const dirs = readdirSync(CLAUDE_DIR).filter(d => statSync(join(CLAUDE_DIR, d)).isDirectory());
67
+ for (const dir of dirs) {
68
+ const dp = join(CLAUDE_DIR, dir);
69
+ let files; try { files = readdirSync(dp).filter(f => f.endsWith(".jsonl")); } catch { continue; }
70
+ for (const f of files) {
71
+ const r = await parseFile(join(dp, f), dir);
72
+ if (r) sessions.push(...r);
73
+ }
74
+ }
75
+ return sessions.sort((a, b) => a.startTime - b.startTime);
76
+ }
77
+
78
+ function getLocalIPs() {
79
+ const ifs = networkInterfaces();
80
+ const ips = [];
81
+ for (const name of Object.keys(ifs)) {
82
+ for (const iface of ifs[name]) {
83
+ if (iface.family === "IPv4" && !iface.internal) ips.push(iface.address);
84
+ }
85
+ }
86
+ return ips;
87
+ }
88
+
89
+ let cached = null, lastScan = 0;
90
+
91
+ const server = createServer(async (req, res) => {
92
+ res.setHeader("Access-Control-Allow-Origin", "*");
93
+ res.setHeader("Access-Control-Allow-Methods", "GET");
94
+
95
+ if (req.url === "/api/sessions") {
96
+ if (!cached || Date.now() - lastScan > 15000) {
97
+ cached = await scan();
98
+ lastScan = Date.now();
99
+ }
100
+ res.setHeader("Content-Type", "application/json");
101
+ res.end(JSON.stringify({ sessions: cached, meta: { sessionCount: cached.length, lastRefresh: lastScan, ready: true } }));
102
+ } else {
103
+ // Proxy to Vercel frontend — avoids HTTPS mixed-content issues
104
+ const target = `https://claude-code-rehab.vercel.app${req.url === "/" ? "/" : req.url}`;
105
+ try {
106
+ const resp = await fetch(target);
107
+ const ct = resp.headers.get("content-type") || "text/html";
108
+ res.writeHead(resp.status, { "Content-Type": ct, "Cache-Control": "public, max-age=3600" });
109
+ const buf = Buffer.from(await resp.arrayBuffer());
110
+ res.end(buf);
111
+ } catch {
112
+ res.writeHead(502);
113
+ res.end("Failed to load frontend. Visit https://claude-code-rehab.vercel.app directly.");
114
+ }
115
+ }
116
+ });
117
+
118
+ function tryListen(port) {
119
+ server.listen(port, "0.0.0.0", () => {
120
+ const ips = getLocalIPs();
121
+ const url = `http://localhost:${port}`;
122
+ console.log("\n Claude Code Rehab — Ready!\n");
123
+ console.log(` Local: ${url}`);
124
+ ips.forEach(ip => console.log(` Network: http://${ip}:${port}`));
125
+ console.log(`\n Phone? Same WiFi, open the Network URL above.`);
126
+ console.log("\n Ctrl+C to stop\n");
127
+ // Auto-open browser
128
+ const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
129
+ import("child_process").then(cp => cp.exec(`${cmd} ${url}`)).catch(() => {});
130
+ });
131
+ server.on("error", (e) => {
132
+ if (e.code === "EADDRINUSE" && port < PORT + 10) {
133
+ console.log(` Port ${port} in use, trying ${port + 1}...`);
134
+ server.close();
135
+ tryListen(port + 1);
136
+ } else {
137
+ console.error(` Error: ${e.message}`);
138
+ process.exit(1);
139
+ }
140
+ });
141
+ }
142
+ tryListen(PORT);
package/dist/sw.js ADDED
@@ -0,0 +1,32 @@
1
+ const CACHE = "cc-rehab-v1";
2
+ const PRECACHE = ["/", "/index.html", "/icon.svg", "/meme.jpg"];
3
+
4
+ self.addEventListener("install", (e) => {
5
+ e.waitUntil(caches.open(CACHE).then((c) => c.addAll(PRECACHE)));
6
+ self.skipWaiting();
7
+ });
8
+
9
+ self.addEventListener("activate", (e) => {
10
+ e.waitUntil(
11
+ caches.keys().then((keys) =>
12
+ Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k)))
13
+ )
14
+ );
15
+ self.clients.claim();
16
+ });
17
+
18
+ self.addEventListener("fetch", (e) => {
19
+ const url = new URL(e.request.url);
20
+ // Skip API calls — always go to network
21
+ if (url.pathname.startsWith("/api")) return;
22
+ // Network-first for navigation, cache-first for assets
23
+ if (e.request.mode === "navigate") {
24
+ e.respondWith(
25
+ fetch(e.request).catch(() => caches.match("/index.html"))
26
+ );
27
+ } else {
28
+ e.respondWith(
29
+ caches.match(e.request).then((r) => r || fetch(e.request))
30
+ );
31
+ }
32
+ });
package/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- // Claude Code Rehab — Lightweight data server
3
- // Run: node server.mjs
4
- // Then open the app on your phone and enter this computer's IP
2
+ // Claude Code Rehab — Full app: frontend + data server
3
+ // Run: npx claude-code-rehab
5
4
 
6
5
  import { createServer } from "http";
7
6
  import { createReadStream, existsSync, readdirSync, statSync, readFileSync } from "fs";
8
- import { join, basename } from "path";
7
+ import { join, basename, extname } from "path";
8
+ import { fileURLToPath } from "url";
9
9
  import { homedir, networkInterfaces } from "os";
10
10
  import { createInterface } from "readline";
11
11
 
@@ -100,17 +100,19 @@ const server = createServer(async (req, res) => {
100
100
  res.setHeader("Content-Type", "application/json");
101
101
  res.end(JSON.stringify({ sessions: cached, meta: { sessionCount: cached.length, lastRefresh: lastScan, ready: true } }));
102
102
  } else {
103
- // Proxy to Vercel frontend — avoids HTTPS mixed-content issues
104
- const target = `https://claude-code-rehab.vercel.app${req.url === "/" ? "/" : req.url}`;
103
+ // Serve bundled frontend
104
+ const __dir = join(fileURLToPath(import.meta.url), "..");
105
+ const distDir = join(__dir, "dist");
106
+ const MIME = { ".html":"text/html", ".js":"application/javascript", ".css":"text/css", ".json":"application/json", ".svg":"image/svg+xml", ".png":"image/png", ".jpg":"image/jpeg", ".ico":"image/x-icon" };
107
+ let filePath = join(distDir, req.url === "/" ? "index.html" : req.url);
108
+ // SPA fallback: if file doesn't exist, serve index.html
109
+ if (!existsSync(filePath)) filePath = join(distDir, "index.html");
105
110
  try {
106
- const resp = await fetch(target);
107
- const ct = resp.headers.get("content-type") || "text/html";
108
- res.writeHead(resp.status, { "Content-Type": ct, "Cache-Control": "public, max-age=3600" });
109
- const buf = Buffer.from(await resp.arrayBuffer());
110
- res.end(buf);
111
+ const ext = extname(filePath);
112
+ res.writeHead(200, { "Content-Type": MIME[ext] || "application/octet-stream", "Cache-Control": ext === ".html" ? "no-cache" : "public, max-age=86400" });
113
+ createReadStream(filePath).pipe(res);
111
114
  } catch {
112
- res.writeHead(502);
113
- res.end("Failed to load frontend. Visit https://claude-code-rehab.vercel.app directly.");
115
+ res.writeHead(404); res.end("Not found");
114
116
  }
115
117
  }
116
118
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-rehab",
3
- "version": "1.1.0",
3
+ "version": "2.1.0",
4
4
  "description": "Claude Code usage data server — connects to the Rehab dashboard",
5
5
  "type": "module",
6
6
  "bin": {