@seanxdo/superview 0.1.15 → 0.2.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,18 @@
|
|
|
1
|
+
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))f(v);new MutationObserver(v=>{for(const C of v)if(C.type==="childList")for(const x of C.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&f(x)}).observe(document,{childList:!0,subtree:!0});function d(v){const C={};return v.integrity&&(C.integrity=v.integrity),v.referrerPolicy&&(C.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?C.credentials="include":v.crossOrigin==="anonymous"?C.credentials="omit":C.credentials="same-origin",C}function f(v){if(v.ep)return;v.ep=!0;const C=d(v);fetch(v.href,C)}})();function Pg(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Wc={exports:{}},fi={};var mh;function ep(){if(mh)return fi;mh=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function d(f,v,C){var x=null;if(C!==void 0&&(x=""+C),v.key!==void 0&&(x=""+v.key),"key"in v){C={};for(var H in v)H!=="key"&&(C[H]=v[H])}else C=v;return v=C.ref,{$$typeof:u,type:f,key:x,ref:v!==void 0?v:null,props:C}}return fi.Fragment=o,fi.jsx=d,fi.jsxs=d,fi}var gh;function tp(){return gh||(gh=1,Wc.exports=ep()),Wc.exports}var s=tp(),Fc={exports:{}},ve={};var ph;function ap(){if(ph)return ve;ph=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),x=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),k=Symbol.iterator;function J(h){return h===null||typeof h!="object"?null:(h=k&&h[k]||h["@@iterator"],typeof h=="function"?h:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,V={};function $(h,M,Z){this.props=h,this.context=M,this.refs=V,this.updater=Z||_}$.prototype.isReactComponent={},$.prototype.setState=function(h,M){if(typeof h!="object"&&typeof h!="function"&&h!=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,h,M,"setState")},$.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function ee(){}ee.prototype=$.prototype;function O(h,M,Z){this.props=h,this.context=M,this.refs=V,this.updater=Z||_}var ie=O.prototype=new ee;ie.constructor=O,P(ie,$.prototype),ie.isPureReactComponent=!0;var de=Array.isArray;function F(){}var I={H:null,A:null,T:null,S:null},he=Object.prototype.hasOwnProperty;function B(h,M,Z){var ae=Z.ref;return{$$typeof:u,type:h,key:M,ref:ae!==void 0?ae:null,props:Z}}function K(h,M){return B(h.type,M,h.props)}function Y(h){return typeof h=="object"&&h!==null&&h.$$typeof===u}function X(h){var M={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(Z){return M[Z]})}var W=/\/+/g;function le(h,M){return typeof h=="object"&&h!==null&&h.key!=null?X(""+h.key):M.toString(36)}function ue(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(F,F):(h.status="pending",h.then(function(M){h.status==="pending"&&(h.status="fulfilled",h.value=M)},function(M){h.status==="pending"&&(h.status="rejected",h.reason=M)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function A(h,M,Z,ae,ce){var me=typeof h;(me==="undefined"||me==="boolean")&&(h=null);var be=!1;if(h===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(h.$$typeof){case u:case o:be=!0;break;case E:return be=h._init,A(be(h._payload),M,Z,ae,ce)}}if(be)return ce=ce(h),be=ae===""?"."+le(h,0):ae,de(ce)?(Z="",be!=null&&(Z=be.replace(W,"$&/")+"/"),A(ce,M,Z,"",function(Kt){return Kt})):ce!=null&&(Y(ce)&&(ce=K(ce,Z+(ce.key==null||h&&h.key===ce.key?"":(""+ce.key).replace(W,"$&/")+"/")+be)),M.push(ce)),1;be=0;var qe=ae===""?".":ae+":";if(de(h))for(var ze=0;ze<h.length;ze++)ae=h[ze],me=qe+le(ae,ze),be+=A(ae,M,Z,me,ce);else if(ze=J(h),typeof ze=="function")for(h=ze.call(h),ze=0;!(ae=h.next()).done;)ae=ae.value,me=qe+le(ae,ze++),be+=A(ae,M,Z,me,ce);else if(me==="object"){if(typeof h.then=="function")return A(ue(h),M,Z,ae,ce);throw M=String(h),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return be}function b(h,M,Z){if(h==null)return h;var ae=[],ce=0;return A(h,ae,"","",function(me){return M.call(Z,me,ce++)}),ae}function Q(h){if(h._status===-1){var M=h._result;M=M(),M.then(function(Z){(h._status===0||h._status===-1)&&(h._status=1,h._result=Z)},function(Z){(h._status===0||h._status===-1)&&(h._status=2,h._result=Z)}),h._status===-1&&(h._status=0,h._result=M)}if(h._status===1)return h._result.default;throw h._result}var te=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},G={map:b,forEach:function(h,M,Z){b(h,function(){M.apply(this,arguments)},Z)},count:function(h){var M=0;return b(h,function(){M++}),M},toArray:function(h){return b(h,function(M){return M})||[]},only:function(h){if(!Y(h))throw Error("React.Children.only expected to receive a single React element child.");return h}};return ve.Activity=T,ve.Children=G,ve.Component=$,ve.Fragment=d,ve.Profiler=v,ve.PureComponent=O,ve.StrictMode=f,ve.Suspense=j,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ve.__COMPILER_RUNTIME={__proto__:null,c:function(h){return I.H.useMemoCache(h)}},ve.cache=function(h){return function(){return h.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(h,M,Z){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var ae=P({},h.props),ce=h.key;if(M!=null)for(me in M.key!==void 0&&(ce=""+M.key),M)!he.call(M,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&M.ref===void 0||(ae[me]=M[me]);var me=arguments.length-2;if(me===1)ae.children=Z;else if(1<me){for(var be=Array(me),qe=0;qe<me;qe++)be[qe]=arguments[qe+2];ae.children=be}return B(h.type,ce,ae)},ve.createContext=function(h){return h={$$typeof:x,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:C,_context:h},h},ve.createElement=function(h,M,Z){var ae,ce={},me=null;if(M!=null)for(ae in M.key!==void 0&&(me=""+M.key),M)he.call(M,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ce[ae]=M[ae]);var be=arguments.length-2;if(be===1)ce.children=Z;else if(1<be){for(var qe=Array(be),ze=0;ze<be;ze++)qe[ze]=arguments[ze+2];ce.children=qe}if(h&&h.defaultProps)for(ae in be=h.defaultProps,be)ce[ae]===void 0&&(ce[ae]=be[ae]);return B(h,me,ce)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(h){return{$$typeof:H,render:h}},ve.isValidElement=Y,ve.lazy=function(h){return{$$typeof:E,_payload:{_status:-1,_result:h},_init:Q}},ve.memo=function(h,M){return{$$typeof:m,type:h,compare:M===void 0?null:M}},ve.startTransition=function(h){var M=I.T,Z={};I.T=Z;try{var ae=h(),ce=I.S;ce!==null&&ce(Z,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(F,te)}catch(me){te(me)}finally{M!==null&&Z.types!==null&&(M.types=Z.types),I.T=M}},ve.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ve.use=function(h){return I.H.use(h)},ve.useActionState=function(h,M,Z){return I.H.useActionState(h,M,Z)},ve.useCallback=function(h,M){return I.H.useCallback(h,M)},ve.useContext=function(h){return I.H.useContext(h)},ve.useDebugValue=function(){},ve.useDeferredValue=function(h,M){return I.H.useDeferredValue(h,M)},ve.useEffect=function(h,M){return I.H.useEffect(h,M)},ve.useEffectEvent=function(h){return I.H.useEffectEvent(h)},ve.useId=function(){return I.H.useId()},ve.useImperativeHandle=function(h,M,Z){return I.H.useImperativeHandle(h,M,Z)},ve.useInsertionEffect=function(h,M){return I.H.useInsertionEffect(h,M)},ve.useLayoutEffect=function(h,M){return I.H.useLayoutEffect(h,M)},ve.useMemo=function(h,M){return I.H.useMemo(h,M)},ve.useOptimistic=function(h,M){return I.H.useOptimistic(h,M)},ve.useReducer=function(h,M,Z){return I.H.useReducer(h,M,Z)},ve.useRef=function(h){return I.H.useRef(h)},ve.useState=function(h){return I.H.useState(h)},ve.useSyncExternalStore=function(h,M,Z){return I.H.useSyncExternalStore(h,M,Z)},ve.useTransition=function(){return I.H.useTransition()},ve.version="19.2.6",ve}var vh;function go(){return vh||(vh=1,Fc.exports=ap()),Fc.exports}var D=go();const lp=Pg(D);var Ic={exports:{}},di={},Pc={exports:{}},eo={};var yh;function np(){return yh||(yh=1,(function(u){function o(A,b){var Q=A.length;A.push(b);e:for(;0<Q;){var te=Q-1>>>1,G=A[te];if(0<v(G,b))A[te]=b,A[Q]=G,Q=te;else break e}}function d(A){return A.length===0?null:A[0]}function f(A){if(A.length===0)return null;var b=A[0],Q=A.pop();if(Q!==b){A[0]=Q;e:for(var te=0,G=A.length,h=G>>>1;te<h;){var M=2*(te+1)-1,Z=A[M],ae=M+1,ce=A[ae];if(0>v(Z,Q))ae<G&&0>v(ce,Z)?(A[te]=ce,A[ae]=Q,te=ae):(A[te]=Z,A[M]=Q,te=M);else if(ae<G&&0>v(ce,Q))A[te]=ce,A[ae]=Q,te=ae;else break e}}return b}function v(A,b){var Q=A.sortIndex-b.sortIndex;return Q!==0?Q:A.id-b.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var C=performance;u.unstable_now=function(){return C.now()}}else{var x=Date,H=x.now();u.unstable_now=function(){return x.now()-H}}var j=[],m=[],E=1,T=null,k=3,J=!1,_=!1,P=!1,V=!1,$=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function ie(A){for(var b=d(m);b!==null;){if(b.callback===null)f(m);else if(b.startTime<=A)f(m),b.sortIndex=b.expirationTime,o(j,b);else break;b=d(m)}}function de(A){if(P=!1,ie(A),!_)if(d(j)!==null)_=!0,F||(F=!0,X());else{var b=d(m);b!==null&&ue(de,b.startTime-A)}}var F=!1,I=-1,he=5,B=-1;function K(){return V?!0:!(u.unstable_now()-B<he)}function Y(){if(V=!1,F){var A=u.unstable_now();B=A;var b=!0;try{e:{_=!1,P&&(P=!1,ee(I),I=-1),J=!0;var Q=k;try{t:{for(ie(A),T=d(j);T!==null&&!(T.expirationTime>A&&K());){var te=T.callback;if(typeof te=="function"){T.callback=null,k=T.priorityLevel;var G=te(T.expirationTime<=A);if(A=u.unstable_now(),typeof G=="function"){T.callback=G,ie(A),b=!0;break t}T===d(j)&&f(j),ie(A)}else f(j);T=d(j)}if(T!==null)b=!0;else{var h=d(m);h!==null&&ue(de,h.startTime-A),b=!1}}break e}finally{T=null,k=Q,J=!1}b=void 0}}finally{b?X():F=!1}}}var X;if(typeof O=="function")X=function(){O(Y)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,le=W.port2;W.port1.onmessage=Y,X=function(){le.postMessage(null)}}else X=function(){$(Y,0)};function ue(A,b){I=$(function(){A(u.unstable_now())},b)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(A){A.callback=null},u.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<A?Math.floor(1e3/A):5},u.unstable_getCurrentPriorityLevel=function(){return k},u.unstable_next=function(A){switch(k){case 1:case 2:case 3:var b=3;break;default:b=k}var Q=k;k=b;try{return A()}finally{k=Q}},u.unstable_requestPaint=function(){V=!0},u.unstable_runWithPriority=function(A,b){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var Q=k;k=A;try{return b()}finally{k=Q}},u.unstable_scheduleCallback=function(A,b,Q){var te=u.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?te+Q:te):Q=te,A){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=Q+G,A={id:E++,callback:b,priorityLevel:A,startTime:Q,expirationTime:G,sortIndex:-1},Q>te?(A.sortIndex=Q,o(m,A),d(j)===null&&A===d(m)&&(P?(ee(I),I=-1):P=!0,ue(de,Q-te))):(A.sortIndex=G,o(j,A),_||J||(_=!0,F||(F=!0,X()))),A},u.unstable_shouldYield=K,u.unstable_wrapCallback=function(A){var b=k;return function(){var Q=k;k=b;try{return A.apply(this,arguments)}finally{k=Q}}}})(eo)),eo}var xh;function ip(){return xh||(xh=1,Pc.exports=np()),Pc.exports}var to={exports:{}},ot={};var bh;function sp(){if(bh)return ot;bh=1;var u=go();function o(j){var m="https://react.dev/errors/"+j;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)m+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+j+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var f={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},v=Symbol.for("react.portal");function C(j,m,E){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:T==null?null:""+T,children:j,containerInfo:m,implementation:E}}var x=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function H(j,m){if(j==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ot.createPortal=function(j,m){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return C(j,m,null,E)},ot.flushSync=function(j){var m=x.T,E=f.p;try{if(x.T=null,f.p=2,j)return j()}finally{x.T=m,f.p=E,f.d.f()}},ot.preconnect=function(j,m){typeof j=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,f.d.C(j,m))},ot.prefetchDNS=function(j){typeof j=="string"&&f.d.D(j)},ot.preinit=function(j,m){if(typeof j=="string"&&m&&typeof m.as=="string"){var E=m.as,T=H(E,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,J=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;E==="style"?f.d.S(j,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:T,integrity:k,fetchPriority:J}):E==="script"&&f.d.X(j,{crossOrigin:T,integrity:k,fetchPriority:J,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ot.preinitModule=function(j,m){if(typeof j=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var E=H(m.as,m.crossOrigin);f.d.M(j,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&f.d.M(j)},ot.preload=function(j,m){if(typeof j=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var E=m.as,T=H(E,m.crossOrigin);f.d.L(j,E,{crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ot.preloadModule=function(j,m){if(typeof j=="string")if(m){var E=H(m.as,m.crossOrigin);f.d.m(j,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else f.d.m(j)},ot.requestFormReset=function(j){f.d.r(j)},ot.unstable_batchedUpdates=function(j,m){return j(m)},ot.useFormState=function(j,m,E){return x.H.useFormState(j,m,E)},ot.useFormStatus=function(){return x.H.useHostTransitionStatus()},ot.version="19.2.6",ot}var Sh;function _h(){if(Sh)return to.exports;Sh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),to.exports=sp(),to.exports}var jh;function up(){if(jh)return di;jh=1;var u=ip(),o=go(),d=_h();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function C(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function x(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function H(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function j(e){if(C(e)!==e)throw Error(f(188))}function m(e){var t=e.alternate;if(!t){if(t=C(e),t===null)throw Error(f(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return j(n),e;if(i===l)return j(n),t;i=i.sibling}throw Error(f(188))}if(a.return!==l.return)a=n,l=i;else{for(var c=!1,r=n.child;r;){if(r===a){c=!0,a=n,l=i;break}if(r===l){c=!0,l=n,a=i;break}r=r.sibling}if(!c){for(r=i.child;r;){if(r===a){c=!0,a=i,l=n;break}if(r===l){c=!0,l=i,a=n;break}r=r.sibling}if(!c)throw Error(f(189))}}if(a.alternate!==l)throw Error(f(190))}if(a.tag!==3)throw Error(f(188));return a.stateNode.current===a?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var T=Object.assign,k=Symbol.for("react.element"),J=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),O=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case P:return"Fragment";case $:return"Profiler";case V:return"StrictMode";case de:return"Suspense";case F:return"SuspenseList";case B:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case O:return e.displayName||"Context";case ee:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case he:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,A=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},te=[],G=-1;function h(e){return{current:e}}function M(e){0>G||(e.current=te[G],te[G]=null,G--)}function Z(e,t){G++,te[G]=e.current,e.current=t}var ae=h(null),ce=h(null),me=h(null),be=h(null);function qe(e,t){switch(Z(me,t),Z(ce,e),Z(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=wd(t),e=Ld(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(ae),Z(ae,e)}function ze(){M(ae),M(ce),M(me)}function Kt(e){e.memoizedState!==null&&Z(be,e);var t=ae.current,a=Ld(t,e.type);t!==a&&(Z(ce,e),Z(ae,a))}function la(e){ce.current===e&&(M(ae),M(ce)),be.current===e&&(M(be),ui._currentValue=Q)}var na,al;function Jt(e){if(na===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);na=t&&t[1]||"",al=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+na+e+al}var ll=!1;function ia(e,t){if(!e||ll)return"";ll=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(z){var R=z}Reflect.construct(e,[],q)}else{try{q.call()}catch(z){R=z}e.call(q.prototype)}}else{try{throw Error()}catch(z){R=z}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(z){if(z&&R&&typeof z.stack=="string")return[z.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),c=i[0],r=i[1];if(c&&r){var g=c.split(`
|
|
4
|
+
`),N=r.split(`
|
|
5
|
+
`);for(n=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;if(l===g.length||n===N.length)for(l=g.length-1,n=N.length-1;1<=l&&0<=n&&g[l]!==N[n];)n--;for(;1<=l&&0<=n;l--,n--)if(g[l]!==N[n]){if(l!==1||n!==1)do if(l--,n--,0>n||g[l]!==N[n]){var U=`
|
|
6
|
+
`+g[l].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=l&&0<=n);break}}}finally{ll=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Jt(a):""}function hi(e,t){switch(e.tag){case 26:case 27:case 5:return Jt(e.type);case 16:return Jt("Lazy");case 13:return e.child!==t&&t!==null?Jt("Suspense Fallback"):Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 15:return ia(e.type,!1);case 11:return ia(e.type.render,!1);case 1:return ia(e.type,!0);case 31:return Jt("Activity");default:return""}}function xn(e){try{var t="",a=null;do t+=hi(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var tt=Object.prototype.hasOwnProperty,bn=u.unstable_scheduleCallback,nl=u.unstable_cancelCallback,sa=u.unstable_shouldYield,ua=u.unstable_requestPaint,rt=u.unstable_now,Ls=u.unstable_getCurrentPriorityLevel,il=u.unstable_ImmediatePriority,mi=u.unstable_UserBlockingPriority,Ma=u.unstable_NormalPriority,Rl=u.unstable_LowPriority,Ml=u.unstable_IdlePriority,oe=u.log,Bs=u.unstable_setDisableYieldValue,za=null,ft=null;function Wt(e){if(typeof oe=="function"&&Bs(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(za,e)}catch{}}var dt=Math.clz32?Math.clz32:qs,zl=Math.log,gi=Math.LN2;function qs(e){return e>>>=0,e===0?32:31-(zl(e)/gi|0)|0}var kl=256,ca=262144,zt=4194304;function ht(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function sl(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=l&134217727;return r!==0?(l=r&~i,l!==0?n=ht(l):(c&=r,c!==0?n=ht(c):a||(a=r&~e,a!==0&&(n=ht(a))))):(r=l&~i,r!==0?n=ht(r):c!==0?n=ht(c):a||(a=l&~e,a!==0&&(n=ht(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function Gt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function oa(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kt(){var e=zt;return zt<<=1,(zt&62914560)===0&&(zt=4194304),e}function ul(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function w(e,t,a,l,n,i){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var r=e.entanglements,g=e.expirationTimes,N=e.hiddenUpdates;for(a=c&~a;0<a;){var U=31-dt(a),q=1<<U;r[U]=0,g[U]=-1;var R=N[U];if(R!==null)for(N[U]=null,U=0;U<R.length;U++){var z=R[U];z!==null&&(z.lane&=-536870913)}a&=~q}l!==0&&fe(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function fe(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-dt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function pe(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-dt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function He(e,t){var a=t&-t;return a=(a&42)!==0?1:mt(a),(a&(e.suspendedLanes|t))!==0?0:a}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ka(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Dl(){var e=b.p;return e!==0?e:(e=window.event,e===void 0?32:uh(e.type))}function Ys(e,t){var a=b.p;try{return b.p=e,t()}finally{b.p=a}}var Ft=Math.random().toString(36).slice(2),We="__reactFiber$"+Ft,ut="__reactProps$"+Ft,Xt="__reactContainer$"+Ft,ct="__reactEvents$"+Ft,ol="__reactListeners$"+Ft,It="__reactHandles$"+Ft,Sn="__reactResources$"+Ft,jn="__reactMarker$"+Ft;function Gs(e){delete e[We],delete e[ut],delete e[ct],delete e[ol],delete e[It]}function Ol(e){var t=e[We];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xt]||a[We]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Qd(e);e!==null;){if(a=e[We])return a;e=Qd(e)}return t}e=a,a=e.parentNode}return null}function _l(e){if(e=e[We]||e[Xt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function Ul(e){var t=e[Sn];return t||(t=e[Sn]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[jn]=!0}var To=new Set,Ao={};function rl(e,t){Hl(e,t),Hl(e+"Capture",t)}function Hl(e,t){for(Ao[e]=t,e=0;e<t.length;e++)To.add(t[e])}var Vh=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]*$"),Eo={},Co={};function Qh(e){return tt.call(Co,e)?!0:tt.call(Eo,e)?!1:Vh.test(e)?Co[e]=!0:(Eo[e]=!0,!1)}function pi(e,t,a){if(Qh(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function vi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ra(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ro(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zh(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){a=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){if(!e._valueTracker){var t=Ro(e)?"checked":"value";e._valueTracker=Zh(e,t,""+e[t])}}function Mo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Ro(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var $h=/[\n"\\]/g;function Ot(e){return e.replace($h,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Vs(e,t,a,l,n,i,c,r){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Qs(e,c,Dt(t)):a!=null?Qs(e,c,Dt(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Dt(r):e.removeAttribute("name")}function zo(e,t,a,l,n,i,c,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Xs(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,r||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=r?e.checked:!!l,e.defaultChecked=!!l,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Xs(e)}function Qs(e,t,a){t==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function wl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function ko(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function Do(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(f(92));if(ue(l)){if(1<l.length)throw Error(f(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Xs(e)}function Ll(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Kh=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 Oo(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Kh.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function _o(e,t,a){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&Oo(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&Oo(e,i,t[i])}function Zs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jh=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"]]),Wh=/^[\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 xi(e){return Wh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fa(){}var $s=null;function Ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,ql=null;function Uo(e){var t=_l(e);if(t&&(e=t.stateNode)){var a=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ot(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[ut]||null;if(!n)throw Error(f(90));Vs(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Mo(l)}break e;case"textarea":ko(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&wl(e,!!a.multiple,t,!1)}}}var Js=!1;function Ho(e,t,a){if(Js)return e(t,a);Js=!0;try{var l=e(t);return l}finally{if(Js=!1,(Bl!==null||ql!==null)&&(ss(),Bl&&(t=Bl,e=ql,ql=Bl=null,Uo(t),e)))for(t=0;t<e.length;t++)Uo(e[t])}}function Tn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ut]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(f(231,t,typeof a));return a}var da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ws=!1;if(da)try{var An={};Object.defineProperty(An,"passive",{get:function(){Ws=!0}}),window.addEventListener("test",An,An),window.removeEventListener("test",An,An)}catch{Ws=!1}var Da=null,Fs=null,bi=null;function wo(){if(bi)return bi;var e,t=Fs,a=t.length,l,n="value"in Da?Da.value:Da.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var c=a-e;for(l=1;l<=c&&t[a-l]===n[i-l];l++);return bi=n.slice(e,1<l?1-l:void 0)}function Si(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ji(){return!0}function Lo(){return!1}function pt(e){function t(a,l,n,i,c){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(a=e[r],this[r]=a?a(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ji:Lo,this.isPropagationStopped=Lo,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ji)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),t}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ni=pt(fl),En=T({},fl,{view:0,detail:0}),Fh=pt(En),Is,Ps,Cn,Ti=T({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Cn&&(Cn&&e.type==="mousemove"?(Is=e.screenX-Cn.screenX,Ps=e.screenY-Cn.screenY):Ps=Is=0,Cn=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:Ps}}),Bo=pt(Ti),Ih=T({},Ti,{dataTransfer:0}),Ph=pt(Ih),em=T({},En,{relatedTarget:0}),eu=pt(em),tm=T({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),am=pt(tm),lm=T({},fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nm=pt(lm),im=T({},fl,{data:0}),qo=pt(im),sm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},um={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cm[e])?!!t[e]:!1}function tu(){return om}var rm=T({},En,{key:function(e){if(e.key){var t=sm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?um[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tu,charCode:function(e){return e.type==="keypress"?Si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fm=pt(rm),dm=T({},Ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yo=pt(dm),hm=T({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tu}),mm=pt(hm),gm=T({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),pm=pt(gm),vm=T({},Ti,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ym=pt(vm),xm=T({},fl,{newState:0,oldState:0}),bm=pt(xm),Sm=[9,13,27,32],au=da&&"CompositionEvent"in window,Rn=null;da&&"documentMode"in document&&(Rn=document.documentMode);var jm=da&&"TextEvent"in window&&!Rn,Go=da&&(!au||Rn&&8<Rn&&11>=Rn),Xo=" ",Vo=!1;function Qo(e,t){switch(e){case"keyup":return Sm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function Nm(e,t){switch(e){case"compositionend":return Zo(t);case"keypress":return t.which!==32?null:(Vo=!0,Xo);case"textInput":return e=t.data,e===Xo&&Vo?null:e;default:return null}}function Tm(e,t){if(Yl)return e==="compositionend"||!au&&Qo(e,t)?(e=wo(),bi=Fs=Da=null,Yl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Go&&t.locale!=="ko"?null:t.data;default:return null}}var Am={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 $o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Am[e.type]:t==="textarea"}function Ko(e,t,a,l){Bl?ql?ql.push(l):ql=[l]:Bl=l,t=hs(t,"onChange"),0<t.length&&(a=new Ni("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Mn=null,zn=null;function Em(e){kd(e,0)}function Ai(e){var t=Nn(e);if(Mo(t))return e}function Jo(e,t){if(e==="change")return t}var Wo=!1;if(da){var lu;if(da){var nu="oninput"in document;if(!nu){var Fo=document.createElement("div");Fo.setAttribute("oninput","return;"),nu=typeof Fo.oninput=="function"}lu=nu}else lu=!1;Wo=lu&&(!document.documentMode||9<document.documentMode)}function Io(){Mn&&(Mn.detachEvent("onpropertychange",Po),zn=Mn=null)}function Po(e){if(e.propertyName==="value"&&Ai(zn)){var t=[];Ko(t,zn,e,Ks(e)),Ho(Em,t)}}function Cm(e,t,a){e==="focusin"?(Io(),Mn=t,zn=a,Mn.attachEvent("onpropertychange",Po)):e==="focusout"&&Io()}function Rm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(zn)}function Mm(e,t){if(e==="click")return Ai(t)}function zm(e,t){if(e==="input"||e==="change")return Ai(t)}function km(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:km;function kn(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!tt.call(t,n)||!jt(e[n],t[n]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var a=er(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=er(a)}}function ar(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ar(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=yi(e.document)}return t}function iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Dm=da&&"documentMode"in document&&11>=document.documentMode,Gl=null,su=null,Dn=null,uu=!1;function nr(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;uu||Gl==null||Gl!==yi(l)||(l=Gl,"selectionStart"in l&&iu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Dn&&kn(Dn,l)||(Dn=l,l=hs(su,"onSelect"),0<l.length&&(t=new Ni("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Gl)))}function dl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Xl={animationend:dl("Animation","AnimationEnd"),animationiteration:dl("Animation","AnimationIteration"),animationstart:dl("Animation","AnimationStart"),transitionrun:dl("Transition","TransitionRun"),transitionstart:dl("Transition","TransitionStart"),transitioncancel:dl("Transition","TransitionCancel"),transitionend:dl("Transition","TransitionEnd")},cu={},ir={};da&&(ir=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function hl(e){if(cu[e])return cu[e];if(!Xl[e])return e;var t=Xl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ir)return cu[e]=t[a];return e}var sr=hl("animationend"),ur=hl("animationiteration"),cr=hl("animationstart"),Om=hl("transitionrun"),_m=hl("transitionstart"),Um=hl("transitioncancel"),or=hl("transitionend"),rr=new Map,ou="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(" ");ou.push("scrollEnd");function Vt(e,t){rr.set(e,t),rl(t,[e])}var Ei=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},_t=[],Vl=0,ru=0;function Ci(){for(var e=Vl,t=ru=Vl=0;t<e;){var a=_t[t];_t[t++]=null;var l=_t[t];_t[t++]=null;var n=_t[t];_t[t++]=null;var i=_t[t];if(_t[t++]=null,l!==null&&n!==null){var c=l.pending;c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n}i!==0&&fr(a,n,i)}}function Ri(e,t,a,l){_t[Vl++]=e,_t[Vl++]=t,_t[Vl++]=a,_t[Vl++]=l,ru|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function fu(e,t,a,l){return Ri(e,t,a,l),Mi(e)}function ml(e,t){return Ri(e,null,null,t),Mi(e)}function fr(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-dt(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function Mi(e){if(50<ei)throw ei=0,bc=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function Hm(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,a,l){return new Hm(e,t,a,l)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ha(e,t){var a=e.alternate;return a===null?(a=Nt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function dr(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zi(e,t,a,l,n,i){var c=0;if(l=e,typeof e=="function")du(e)&&(c=1);else if(typeof e=="string")c=Yg(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case B:return e=Nt(31,a,t,n),e.elementType=B,e.lanes=i,e;case P:return gl(a.children,n,i,t);case V:c=8,n|=24;break;case $:return e=Nt(12,a,t,n|2),e.elementType=$,e.lanes=i,e;case de:return e=Nt(13,a,t,n),e.elementType=de,e.lanes=i,e;case F:return e=Nt(19,a,t,n),e.elementType=F,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:c=10;break e;case ee:c=9;break e;case ie:c=11;break e;case I:c=14;break e;case he:c=16,l=null;break e}c=29,a=Error(f(130,e===null?"null":typeof e,"")),l=null}return t=Nt(c,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function gl(e,t,a,l){return e=Nt(7,e,l,t),e.lanes=a,e}function hu(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function hr(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function mu(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mr=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var a=mr.get(e);return a!==void 0?a:(t={value:e,source:t,stack:xn(t)},mr.set(e,t),t)}return{value:e,source:t,stack:xn(t)}}var Zl=[],$l=0,ki=null,On=0,Ht=[],wt=0,Oa=null,Pt=1,ea="";function ma(e,t){Zl[$l++]=On,Zl[$l++]=ki,ki=e,On=t}function gr(e,t,a){Ht[wt++]=Pt,Ht[wt++]=ea,Ht[wt++]=Oa,Oa=e;var l=Pt;e=ea;var n=32-dt(l)-1;l&=~(1<<n),a+=1;var i=32-dt(t)+n;if(30<i){var c=n-n%5;i=(l&(1<<c)-1).toString(32),l>>=c,n-=c,Pt=1<<32-dt(t)+n|a<<n|l,ea=i+e}else Pt=1<<i|a<<n|l,ea=e}function gu(e){e.return!==null&&(ma(e,1),gr(e,1,0))}function pu(e){for(;e===ki;)ki=Zl[--$l],Zl[$l]=null,On=Zl[--$l],Zl[$l]=null;for(;e===Oa;)Oa=Ht[--wt],Ht[wt]=null,ea=Ht[--wt],Ht[wt]=null,Pt=Ht[--wt],Ht[wt]=null}function pr(e,t){Ht[wt++]=Pt,Ht[wt++]=ea,Ht[wt++]=Oa,Pt=t.id,ea=t.overflow,Oa=e}var at=null,Le=null,Ae=!1,_a=null,Lt=!1,vu=Error(f(519));function Ua(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _n(Ut(t,e)),vu}function vr(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[We]=e,t[ut]=l,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<ai.length;a++)je(ai[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),zo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Do(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Ud(t.textContent,a)?(l.popover!=null&&(je("beforetoggle",t),je("toggle",t)),l.onScroll!=null&&je("scroll",t),l.onScrollEnd!=null&&je("scrollend",t),l.onClick!=null&&(t.onclick=fa),t=!0):t=!1,t||Ua(e,!0)}function yr(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:at=at.return}}function Kl(e){if(e!==at)return!1;if(!Ae)return yr(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Uc(e.type,e.memoizedProps)),a=!a),a&&Le&&Ua(e),yr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Le=Vd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Le=Vd(e)}else t===27?(t=Le,Ja(e.type)?(e=qc,qc=null,Le=e):Le=t):Le=at?qt(e.stateNode.nextSibling):null;return!0}function pl(){Le=at=null,Ae=!1}function yu(){var e=_a;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),_a=null),e}function _n(e){_a===null?_a=[e]:_a.push(e)}var xu=h(null),vl=null,ga=null;function Ha(e,t,a){Z(xu,t._currentValue),t._currentValue=a}function pa(e){e._currentValue=xu.current,M(xu)}function bu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Su(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var r=i;i=n;for(var g=0;g<t.length;g++)if(r.context===t[g]){i.lanes|=a,r=i.alternate,r!==null&&(r.lanes|=a),bu(i.return,a,e),l||(c=null);break e}i=r.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(f(341));c.lanes|=a,i=c.alternate,i!==null&&(i.lanes|=a),bu(c,a,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Jl(e,t,a,l){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(f(387));if(c=c.memoizedProps,c!==null){var r=n.type;jt(n.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(n===be.current){if(c=n.alternate,c===null)throw Error(f(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ui):e=[ui])}n=n.return}e!==null&&Su(t,e,a,l),t.flags|=262144}function Di(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yl(e){vl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return xr(vl,e)}function Oi(e,t){return vl===null&&yl(e),xr(e,t)}function xr(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ga===null){if(e===null)throw Error(f(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return a}var wm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Lm=u.unstable_scheduleCallback,Bm=u.unstable_NormalPriority,Ze={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ju(){return{controller:new wm,data:new Map,refCount:0}}function Un(e){e.refCount--,e.refCount===0&&Lm(Bm,function(){e.controller.abort()})}var Hn=null,Nu=0,Wl=0,Fl=null;function qm(e,t){if(Hn===null){var a=Hn=[];Nu=0,Wl=Ec(),Fl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Nu++,t.then(br,br),t}function br(){if(--Nu===0&&Hn!==null){Fl!==null&&(Fl.status="fulfilled");var e=Hn;Hn=null,Wl=0,Fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ym(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Sr=A.S;A.S=function(e,t){id=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&qm(e,t),Sr!==null&&Sr(e,t)};var xl=h(null);function Tu(){var e=xl.current;return e!==null?e:we.pooledCache}function _i(e,t){t===null?Z(xl,xl.current):Z(xl,t.pool)}function jr(){var e=Tu();return e===null?null:{parent:Ze._currentValue,pool:e}}var Il=Error(f(460)),Au=Error(f(474)),Ui=Error(f(542)),Hi={then:function(){}};function Nr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Tr(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(fa,fa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Er(e),e;default:if(typeof t.status=="string")t.then(fa,fa);else{if(e=we,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Er(e),e}throw Sl=t,Il}}function bl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Sl=a,Il):a}}var Sl=null;function Ar(){if(Sl===null)throw Error(f(459));var e=Sl;return Sl=null,e}function Er(e){if(e===Il||e===Ui)throw Error(f(483))}var Pl=null,wn=0;function wi(e){var t=wn;return wn+=1,Pl===null&&(Pl=[]),Tr(Pl,e,t)}function Ln(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Li(e,t){throw t.$$typeof===k?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cr(e){function t(y,p){if(e){var S=y.deletions;S===null?(y.deletions=[p],y.flags|=16):S.push(p)}}function a(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function l(y){for(var p=new Map;y!==null;)y.key!==null?p.set(y.key,y):p.set(y.index,y),y=y.sibling;return p}function n(y,p){return y=ha(y,p),y.index=0,y.sibling=null,y}function i(y,p,S){return y.index=S,e?(S=y.alternate,S!==null?(S=S.index,S<p?(y.flags|=67108866,p):S):(y.flags|=67108866,p)):(y.flags|=1048576,p)}function c(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function r(y,p,S,L){return p===null||p.tag!==6?(p=hu(S,y.mode,L),p.return=y,p):(p=n(p,S),p.return=y,p)}function g(y,p,S,L){var re=S.type;return re===P?U(y,p,S.props.children,L,S.key):p!==null&&(p.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===he&&bl(re)===p.type)?(p=n(p,S.props),Ln(p,S),p.return=y,p):(p=zi(S.type,S.key,S.props,null,y.mode,L),Ln(p,S),p.return=y,p)}function N(y,p,S,L){return p===null||p.tag!==4||p.stateNode.containerInfo!==S.containerInfo||p.stateNode.implementation!==S.implementation?(p=mu(S,y.mode,L),p.return=y,p):(p=n(p,S.children||[]),p.return=y,p)}function U(y,p,S,L,re){return p===null||p.tag!==7?(p=gl(S,y.mode,L,re),p.return=y,p):(p=n(p,S),p.return=y,p)}function q(y,p,S){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=hu(""+p,y.mode,S),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case J:return S=zi(p.type,p.key,p.props,null,y.mode,S),Ln(S,p),S.return=y,S;case _:return p=mu(p,y.mode,S),p.return=y,p;case he:return p=bl(p),q(y,p,S)}if(ue(p)||X(p))return p=gl(p,y.mode,S,null),p.return=y,p;if(typeof p.then=="function")return q(y,wi(p),S);if(p.$$typeof===O)return q(y,Oi(y,p),S);Li(y,p)}return null}function R(y,p,S,L){var re=p!==null?p.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return re!==null?null:r(y,p,""+S,L);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case J:return S.key===re?g(y,p,S,L):null;case _:return S.key===re?N(y,p,S,L):null;case he:return S=bl(S),R(y,p,S,L)}if(ue(S)||X(S))return re!==null?null:U(y,p,S,L,null);if(typeof S.then=="function")return R(y,p,wi(S),L);if(S.$$typeof===O)return R(y,p,Oi(y,S),L);Li(y,S)}return null}function z(y,p,S,L,re){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return y=y.get(S)||null,r(p,y,""+L,re);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case J:return y=y.get(L.key===null?S:L.key)||null,g(p,y,L,re);case _:return y=y.get(L.key===null?S:L.key)||null,N(p,y,L,re);case he:return L=bl(L),z(y,p,S,L,re)}if(ue(L)||X(L))return y=y.get(S)||null,U(p,y,L,re,null);if(typeof L.then=="function")return z(y,p,S,wi(L),re);if(L.$$typeof===O)return z(y,p,S,Oi(p,L),re);Li(p,L)}return null}function ne(y,p,S,L){for(var re=null,Ce=null,se=p,xe=p=0,Te=null;se!==null&&xe<S.length;xe++){se.index>xe?(Te=se,se=null):Te=se.sibling;var Re=R(y,se,S[xe],L);if(Re===null){se===null&&(se=Te);break}e&&se&&Re.alternate===null&&t(y,se),p=i(Re,p,xe),Ce===null?re=Re:Ce.sibling=Re,Ce=Re,se=Te}if(xe===S.length)return a(y,se),Ae&&ma(y,xe),re;if(se===null){for(;xe<S.length;xe++)se=q(y,S[xe],L),se!==null&&(p=i(se,p,xe),Ce===null?re=se:Ce.sibling=se,Ce=se);return Ae&&ma(y,xe),re}for(se=l(se);xe<S.length;xe++)Te=z(se,y,xe,S[xe],L),Te!==null&&(e&&Te.alternate!==null&&se.delete(Te.key===null?xe:Te.key),p=i(Te,p,xe),Ce===null?re=Te:Ce.sibling=Te,Ce=Te);return e&&se.forEach(function(el){return t(y,el)}),Ae&&ma(y,xe),re}function ge(y,p,S,L){if(S==null)throw Error(f(151));for(var re=null,Ce=null,se=p,xe=p=0,Te=null,Re=S.next();se!==null&&!Re.done;xe++,Re=S.next()){se.index>xe?(Te=se,se=null):Te=se.sibling;var el=R(y,se,Re.value,L);if(el===null){se===null&&(se=Te);break}e&&se&&el.alternate===null&&t(y,se),p=i(el,p,xe),Ce===null?re=el:Ce.sibling=el,Ce=el,se=Te}if(Re.done)return a(y,se),Ae&&ma(y,xe),re;if(se===null){for(;!Re.done;xe++,Re=S.next())Re=q(y,Re.value,L),Re!==null&&(p=i(Re,p,xe),Ce===null?re=Re:Ce.sibling=Re,Ce=Re);return Ae&&ma(y,xe),re}for(se=l(se);!Re.done;xe++,Re=S.next())Re=z(se,y,xe,Re.value,L),Re!==null&&(e&&Re.alternate!==null&&se.delete(Re.key===null?xe:Re.key),p=i(Re,p,xe),Ce===null?re=Re:Ce.sibling=Re,Ce=Re);return e&&se.forEach(function(Ig){return t(y,Ig)}),Ae&&ma(y,xe),re}function Ue(y,p,S,L){if(typeof S=="object"&&S!==null&&S.type===P&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case J:e:{for(var re=S.key;p!==null;){if(p.key===re){if(re=S.type,re===P){if(p.tag===7){a(y,p.sibling),L=n(p,S.props.children),L.return=y,y=L;break e}}else if(p.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===he&&bl(re)===p.type){a(y,p.sibling),L=n(p,S.props),Ln(L,S),L.return=y,y=L;break e}a(y,p);break}else t(y,p);p=p.sibling}S.type===P?(L=gl(S.props.children,y.mode,L,S.key),L.return=y,y=L):(L=zi(S.type,S.key,S.props,null,y.mode,L),Ln(L,S),L.return=y,y=L)}return c(y);case _:e:{for(re=S.key;p!==null;){if(p.key===re)if(p.tag===4&&p.stateNode.containerInfo===S.containerInfo&&p.stateNode.implementation===S.implementation){a(y,p.sibling),L=n(p,S.children||[]),L.return=y,y=L;break e}else{a(y,p);break}else t(y,p);p=p.sibling}L=mu(S,y.mode,L),L.return=y,y=L}return c(y);case he:return S=bl(S),Ue(y,p,S,L)}if(ue(S))return ne(y,p,S,L);if(X(S)){if(re=X(S),typeof re!="function")throw Error(f(150));return S=re.call(S),ge(y,p,S,L)}if(typeof S.then=="function")return Ue(y,p,wi(S),L);if(S.$$typeof===O)return Ue(y,p,Oi(y,S),L);Li(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,p!==null&&p.tag===6?(a(y,p.sibling),L=n(p,S),L.return=y,y=L):(a(y,p),L=hu(S,y.mode,L),L.return=y,y=L),c(y)):a(y,p)}return function(y,p,S,L){try{wn=0;var re=Ue(y,p,S,L);return Pl=null,re}catch(se){if(se===Il||se===Ui)throw se;var Ce=Nt(29,se,null,y.mode);return Ce.lanes=L,Ce.return=y,Ce}}}var jl=Cr(!0),Rr=Cr(!1),wa=!1;function Eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Me&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Mi(e),fr(e,null,a),t}return Ri(e,l,t,a),Mi(e)}function Bn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,pe(e,a)}}function Ru(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Mu=!1;function qn(){if(Mu){var e=Fl;if(e!==null)throw e}}function Yn(e,t,a,l){Mu=!1;var n=e.updateQueue;wa=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var g=r,N=g.next;g.next=null,c===null?i=N:c.next=N,c=g;var U=e.alternate;U!==null&&(U=U.updateQueue,r=U.lastBaseUpdate,r!==c&&(r===null?U.firstBaseUpdate=N:r.next=N,U.lastBaseUpdate=g))}if(i!==null){var q=n.baseState;c=0,U=N=g=null,r=i;do{var R=r.lane&-536870913,z=R!==r.lane;if(z?(Ne&R)===R:(l&R)===R){R!==0&&R===Wl&&(Mu=!0),U!==null&&(U=U.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var ne=e,ge=r;R=t;var Ue=a;switch(ge.tag){case 1:if(ne=ge.payload,typeof ne=="function"){q=ne.call(Ue,q,R);break e}q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ge.payload,R=typeof ne=="function"?ne.call(Ue,q,R):ne,R==null)break e;q=T({},q,R);break e;case 2:wa=!0}}R=r.callback,R!==null&&(e.flags|=64,z&&(e.flags|=8192),z=n.callbacks,z===null?n.callbacks=[R]:z.push(R))}else z={lane:R,tag:r.tag,payload:r.payload,callback:r.callback,next:null},U===null?(N=U=z,g=q):U=U.next=z,c|=R;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;z=r,r=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);U===null&&(g=q),n.baseState=g,n.firstBaseUpdate=N,n.lastBaseUpdate=U,i===null&&(n.shared.lanes=0),Va|=c,e.lanes=c,e.memoizedState=q}}function Mr(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function zr(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Mr(a[e],t)}var en=h(null),Bi=h(0);function kr(e,t){e=Aa,Z(Bi,e),Z(en,t),Aa=e|t.baseLanes}function zu(){Z(Bi,Aa),Z(en,en.current)}function ku(){Aa=Bi.current,M(en),M(Bi)}var Tt=h(null),Bt=null;function qa(e){var t=e.alternate;Z(Ve,Ve.current&1),Z(Tt,e),Bt===null&&(t===null||en.current!==null||t.memoizedState!==null)&&(Bt=e)}function Du(e){Z(Ve,Ve.current),Z(Tt,e),Bt===null&&(Bt=e)}function Dr(e){e.tag===22?(Z(Ve,Ve.current),Z(Tt,e),Bt===null&&(Bt=e)):Ya()}function Ya(){Z(Ve,Ve.current),Z(Tt,Tt.current)}function At(e){M(Tt),Bt===e&&(Bt=null),M(Ve)}var Ve=h(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Lc(a)||Bc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var va=0,ye=null,Oe=null,$e=null,Yi=!1,tn=!1,Nl=!1,Gi=0,Gn=0,an=null,Gm=0;function Ge(){throw Error(f(321))}function Ou(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!jt(e[a],t[a]))return!1;return!0}function _u(e,t,a,l,n,i){return va=i,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?pf:Ju,Nl=!1,i=a(l,n),Nl=!1,tn&&(i=_r(t,a,l,n)),Or(e),i}function Or(e){A.H=Qn;var t=Oe!==null&&Oe.next!==null;if(va=0,$e=Oe=ye=null,Yi=!1,Gn=0,an=null,t)throw Error(f(300));e===null||Ke||(e=e.dependencies,e!==null&&Di(e)&&(Ke=!0))}function _r(e,t,a,l){ye=e;var n=0;do{if(tn&&(an=null),Gn=0,tn=!1,25<=n)throw Error(f(301));if(n+=1,$e=Oe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}A.H=vf,i=t(a,l)}while(tn);return i}function Xm(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?Xn(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ye.flags|=1024),t}function Uu(){var e=Gi!==0;return Gi=0,e}function Hu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function wu(e){if(Yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yi=!1}va=0,$e=Oe=ye=null,tn=!1,Gn=Gi=0,an=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ye.memoizedState=$e=e:$e=$e.next=e,$e}function Qe(){if(Oe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=$e===null?ye.memoizedState:$e.next;if(t!==null)$e=t,Oe=e;else{if(e===null)throw ye.alternate===null?Error(f(467)):Error(f(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},$e===null?ye.memoizedState=$e=e:$e=$e.next=e}return $e}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xn(e){var t=Gn;return Gn+=1,an===null&&(an=[]),e=Tr(an,e,t),t=ye,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?pf:Ju),e}function Vi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xn(e);if(e.$$typeof===O)return lt(e)}throw Error(f(438,String(e)))}function Lu(e){var t=null,a=ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ye.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xi(),ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=K;return t.index++,a}function ya(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Qe();return Bu(t,Oe,e)}function Bu(e,t,a){var l=e.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var r=c=null,g=null,N=t,U=!1;do{var q=N.lane&-536870913;if(q!==N.lane?(Ne&q)===q:(va&q)===q){var R=N.revertLane;if(R===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),q===Wl&&(U=!0);else if((va&R)===R){N=N.next,R===Wl&&(U=!0);continue}else q={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},g===null?(r=g=q,c=i):g=g.next=q,ye.lanes|=R,Va|=R;q=N.action,Nl&&a(i,q),i=N.hasEagerState?N.eagerState:a(i,q)}else R={lane:q,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},g===null?(r=g=R,c=i):g=g.next=R,ye.lanes|=q,Va|=q;N=N.next}while(N!==null&&N!==t);if(g===null?c=i:g.next=r,!jt(i,e.memoizedState)&&(Ke=!0,U&&(a=Fl,a!==null)))throw a;e.memoizedState=i,e.baseState=c,e.baseQueue=g,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function qu(e){var t=Qe(),a=t.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);jt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Ur(e,t,a){var l=ye,n=Qe(),i=Ae;if(i){if(a===void 0)throw Error(f(407));a=a()}else a=t();var c=!jt((Oe||n).memoizedState,a);if(c&&(n.memoizedState=a,Ke=!0),n=n.queue,Xu(Lr.bind(null,l,n,e),[e]),n.getSnapshot!==t||c||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,ln(9,{destroy:void 0},wr.bind(null,l,n,a,t),null),we===null)throw Error(f(349));i||(va&127)!==0||Hr(l,t,a)}return a}function Hr(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ye.updateQueue,t===null?(t=Xi(),ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function wr(e,t,a,l){t.value=a,t.getSnapshot=l,Br(t)&&qr(e)}function Lr(e,t,a){return a(function(){Br(t)&&qr(e)})}function Br(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!jt(e,a)}catch{return!0}}function qr(e){var t=ml(e,2);t!==null&&St(t,e,2)}function Yu(e){var t=gt();if(typeof e=="function"){var a=e;if(e=a(),Nl){Wt(!0);try{a()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t}function Yr(e,t,a,l){return e.baseState=a,Bu(e,Oe,typeof l=="function"?l:ya)}function Vm(e,t,a,l,n){if(Ki(e))throw Error(f(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};A.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,Gr(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Gr(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=A.T,c={};A.T=c;try{var r=a(n,l),g=A.S;g!==null&&g(c,r),Xr(e,t,r)}catch(N){Gu(e,t,N)}finally{i!==null&&c.types!==null&&(i.types=c.types),A.T=i}}else try{i=a(n,l),Xr(e,t,i)}catch(N){Gu(e,t,N)}}function Xr(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Vr(e,t,l)},function(l){return Gu(e,t,l)}):Vr(e,t,a)}function Vr(e,t,a){t.status="fulfilled",t.value=a,Qr(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Gr(e,a)))}function Gu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Qr(t),t=t.next;while(t!==l)}e.action=null}function Qr(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zr(e,t){return t}function $r(e,t){if(Ae){var a=we.formState;if(a!==null){e:{var l=ye;if(Ae){if(Le){t:{for(var n=Le,i=Lt;n.nodeType!==8;){if(!i){n=null;break t}if(n=qt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Le=qt(n.nextSibling),l=n.data==="F!";break e}}Ua(l)}l=!1}l&&(t=a[0])}}return a=gt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zr,lastRenderedState:t},a.queue=l,a=hf.bind(null,ye,l),l.dispatch=a,l=Yu(!1),i=Ku.bind(null,ye,!1,l.queue),l=gt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=Vm.bind(null,ye,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Kr(e){var t=Qe();return Jr(t,Oe,e)}function Jr(e,t,a){if(t=Bu(e,t,Zr)[0],e=Qi(ya)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Xn(t)}catch(c){throw c===Il?Ui:c}else l=t;t=Qe();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(ye.flags|=2048,ln(9,{destroy:void 0},Qm.bind(null,n,a),null)),[l,i,e]}function Qm(e,t){e.action=t}function Wr(e){var t=Qe(),a=Oe;if(a!==null)return Jr(t,a,e);Qe(),t=t.memoizedState,a=Qe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ln(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Xi(),ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Fr(){return Qe().memoizedState}function Zi(e,t,a,l){var n=gt();ye.flags|=e,n.memoizedState=ln(1|t,{destroy:void 0},a,l===void 0?null:l)}function $i(e,t,a,l){var n=Qe();l=l===void 0?null:l;var i=n.memoizedState.inst;Oe!==null&&l!==null&&Ou(l,Oe.memoizedState.deps)?n.memoizedState=ln(t,i,a,l):(ye.flags|=e,n.memoizedState=ln(1|t,i,a,l))}function Ir(e,t){Zi(8390656,8,e,t)}function Xu(e,t){$i(2048,8,e,t)}function Zm(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Xi(),ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Pr(e){var t=Qe().memoizedState;return Zm({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function ef(e,t){return $i(4,2,e,t)}function tf(e,t){return $i(4,4,e,t)}function af(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lf(e,t,a){a=a!=null?a.concat([e]):null,$i(4,4,af.bind(null,t,e),a)}function Vu(){}function nf(e,t){var a=Qe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Ou(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function sf(e,t){var a=Qe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Ou(t,l[1]))return l[0];if(l=e(),Nl){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[l,t],l}function Qu(e,t,a){return a===void 0||(va&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=ud(),ye.lanes|=e,Va|=e,a)}function uf(e,t,a,l){return jt(a,t)?a:en.current!==null?(e=Qu(e,a,l),jt(e,t)||(Ke=!0),e):(va&42)===0||(va&1073741824)!==0&&(Ne&261930)===0?(Ke=!0,e.memoizedState=a):(e=ud(),ye.lanes|=e,Va|=e,t)}function cf(e,t,a,l,n){var i=b.p;b.p=i!==0&&8>i?i:8;var c=A.T,r={};A.T=r,Ku(e,!1,t,a);try{var g=n(),N=A.S;if(N!==null&&N(r,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var U=Ym(g,l);Vn(e,t,U,Rt(e))}else Vn(e,t,l,Rt(e))}catch(q){Vn(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{b.p=i,c!==null&&r.types!==null&&(c.types=r.types),A.T=c}}function $m(){}function Zu(e,t,a,l){if(e.tag!==5)throw Error(f(476));var n=of(e).queue;cf(e,n,t,Q,a===null?$m:function(){return rf(e),a(l)})}function of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:Q},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rf(e){var t=of(e);t.next===null&&(t=e.alternate.memoizedState),Vn(e,t.next.queue,{},Rt())}function $u(){return lt(ui)}function ff(){return Qe().memoizedState}function df(){return Qe().memoizedState}function Km(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=La(a);var l=Ba(t,e,a);l!==null&&(St(l,t,a),Bn(l,t,a)),t={cache:ju()},e.payload=t;return}t=t.return}}function Jm(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)?mf(t,a):(a=fu(e,t,a,l),a!==null&&(St(a,e,l),gf(a,t,l)))}function hf(e,t,a){var l=Rt();Vn(e,t,a,l)}function Vn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))mf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,r=i(c,a);if(n.hasEagerState=!0,n.eagerState=r,jt(r,c))return Ri(e,t,n,0),we===null&&Ci(),!1}catch{}if(a=fu(e,t,n,l),a!==null)return St(a,e,l),gf(a,t,l),!0}return!1}function Ku(e,t,a,l){if(l={lane:2,revertLane:Ec(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(f(479))}else t=fu(e,a,l,2),t!==null&&St(t,e,2)}function Ki(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function mf(e,t){tn=Yi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function gf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,pe(e,a)}}var Qn={readContext:lt,use:Vi,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};Qn.useEffectEvent=Ge;var pf={readContext:lt,use:Vi,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Ir,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Zi(4194308,4,af.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var a=gt();t=t===void 0?null:t;var l=e();if(Nl){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=gt();if(a!==void 0){var n=a(t);if(Nl){Wt(!0);try{a(t)}finally{Wt(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Jm.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Yu(e);var t=e.queue,a=hf.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vu,useDeferredValue:function(e,t){var a=gt();return Qu(a,e,t)},useTransition:function(){var e=Yu(!1);return e=cf.bind(null,ye,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ye,n=gt();if(Ae){if(a===void 0)throw Error(f(407));a=a()}else{if(a=t(),we===null)throw Error(f(349));(Ne&127)!==0||Hr(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,Ir(Lr.bind(null,l,i,e),[e]),l.flags|=2048,ln(9,{destroy:void 0},wr.bind(null,l,i,a,t),null),a},useId:function(){var e=gt(),t=we.identifierPrefix;if(Ae){var a=ea,l=Pt;a=(l&~(1<<32-dt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Gi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Gm++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$u,useFormState:$r,useActionState:$r,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ku.bind(null,ye,!0,a),a.dispatch=t,[e,t]},useMemoCache:Lu,useCacheRefresh:function(){return gt().memoizedState=Km.bind(null,ye)},useEffectEvent:function(e){var t=gt(),a={impl:e};return t.memoizedState=a,function(){if((Me&2)!==0)throw Error(f(440));return a.impl.apply(void 0,arguments)}}},Ju={readContext:lt,use:Vi,useCallback:nf,useContext:lt,useEffect:Xu,useImperativeHandle:lf,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:sf,useReducer:Qi,useRef:Fr,useState:function(){return Qi(ya)},useDebugValue:Vu,useDeferredValue:function(e,t){var a=Qe();return uf(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Qi(ya)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:Ur,useId:ff,useHostTransitionStatus:$u,useFormState:Kr,useActionState:Kr,useOptimistic:function(e,t){var a=Qe();return Yr(a,Oe,e,t)},useMemoCache:Lu,useCacheRefresh:df};Ju.useEffectEvent=Pr;var vf={readContext:lt,use:Vi,useCallback:nf,useContext:lt,useEffect:Xu,useImperativeHandle:lf,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:sf,useReducer:qu,useRef:Fr,useState:function(){return qu(ya)},useDebugValue:Vu,useDeferredValue:function(e,t){var a=Qe();return Oe===null?Qu(a,e,t):uf(a,Oe.memoizedState,e,t)},useTransition:function(){var e=qu(ya)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:Ur,useId:ff,useHostTransitionStatus:$u,useFormState:Wr,useActionState:Wr,useOptimistic:function(e,t){var a=Qe();return Oe!==null?Yr(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Lu,useCacheRefresh:df};vf.useEffectEvent=Pr;function Wu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:T({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Fu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),n=La(l);n.payload=t,a!=null&&(n.callback=a),t=Ba(e,n,l),t!==null&&(St(t,e,l),Bn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),n=La(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Ba(e,n,l),t!==null&&(St(t,e,l),Bn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=La(a);l.tag=2,t!=null&&(l.callback=t),t=Ba(e,l,a),t!==null&&(St(t,e,a),Bn(t,e,a))}};function yf(e,t,a,l,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,c):t.prototype&&t.prototype.isPureReactComponent?!kn(a,l)||!kn(n,i):!0}function xf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Fu.enqueueReplaceState(t,t.state,null)}function Tl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=T({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function bf(e){Ei(e)}function Sf(e){console.error(e)}function jf(e){Ei(e)}function Ji(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Nf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Iu(e,t,a){return a=La(a),a.tag=3,a.payload={element:null},a.callback=function(){Ji(e,t)},a}function Tf(e){return e=La(e),e.tag=3,e}function Af(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){Nf(t,a,l)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Nf(t,a,l),typeof n!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var r=l.stack;this.componentDidCatch(l.value,{componentStack:r!==null?r:""})})}function Wm(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Jl(t,a,n,!0),a=Tt.current,a!==null){switch(a.tag){case 31:case 13:return Bt===null?us():a.alternate===null&&Xe===0&&(Xe=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Nc(e,l,n)),!1;case 22:return a.flags|=65536,l===Hi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Nc(e,l,n)),!1}throw Error(f(435,a.tag))}return Nc(e,l,n),us(),!1}if(Ae)return t=Tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==vu&&(e=Error(f(422),{cause:l}),_n(Ut(e,a)))):(l!==vu&&(t=Error(f(423),{cause:l}),_n(Ut(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Ut(l,a),n=Iu(e.stateNode,l,n),Ru(e,n),Xe!==4&&(Xe=2)),!1;var i=Error(f(520),{cause:l});if(i=Ut(i,a),Pn===null?Pn=[i]:Pn.push(i),Xe!==4&&(Xe=2),t===null)return!0;l=Ut(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Iu(a.stateNode,l,e),Ru(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Qa===null||!Qa.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Tf(n),Af(n,e,a,l),Ru(a,n),!1}a=a.return}while(a!==null);return!1}var Pu=Error(f(461)),Ke=!1;function nt(e,t,a,l){t.child=e===null?Rr(t,null,a,l):jl(t,e.child,a,l)}function Ef(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var c={};for(var r in l)r!=="ref"&&(c[r]=l[r])}else c=l;return yl(t),l=_u(e,t,a,c,i,n),r=Uu(),e!==null&&!Ke?(Hu(e,t,n),xa(e,t,n)):(Ae&&r&&gu(t),t.flags|=1,nt(e,t,l,n),t.child)}function Cf(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!du(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Rf(e,t,i,l,n)):(e=zi(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!uc(e,n)){var c=i.memoizedProps;if(a=a.compare,a=a!==null?a:kn,a(c,l)&&e.ref===t.ref)return xa(e,t,n)}return t.flags|=1,e=ha(i,l),e.ref=t.ref,e.return=t,t.child=e}function Rf(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(kn(i,l)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=l=i,uc(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,xa(e,t,n)}return ec(e,t,a,l,n)}function Mf(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return zf(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_i(t,i!==null?i.cachePool:null),i!==null?kr(t,i):zu(),Dr(t);else return l=t.lanes=536870912,zf(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(_i(t,i.cachePool),kr(t,i),Ya(),t.memoizedState=null):(e!==null&&_i(t,null),zu(),Ya());return nt(e,t,n,a),t.child}function Zn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zf(e,t,a,l,n){var i=Tu();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&_i(t,null),zu(),Dr(t),e!==null&&Jl(e,t,l,!0),t.childLanes=n,null}function Wi(e,t){return t=Ii({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function kf(e,t,a){return jl(t,e.child,null,a),e=Wi(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function Fm(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(l.mode==="hidden")return e=Wi(t,l),t.lanes=536870912,Zn(null,e);if(Du(t),(e=Le)?(e=Xd(e,Lt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=hr(e),a.return=t,t.child=a,at=t,Le=null)):e=null,e===null)throw Ua(t);return t.lanes=536870912,null}return Wi(t,l)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Du(t),n)if(t.flags&256)t.flags&=-257,t=kf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(Ke||Jl(e,t,a,!1),n=(a&e.childLanes)!==0,Ke||n){if(l=we,l!==null&&(c=He(l,a),c!==0&&c!==i.retryLane))throw i.retryLane=c,ml(e,c),St(l,e,c),Pu;us(),t=kf(e,t,a)}else e=i.treeContext,Le=qt(c.nextSibling),at=t,Ae=!0,_a=null,Lt=!1,e!==null&&pr(t,e),t=Wi(t,l),t.flags|=4096;return t}return e=ha(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(f(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ec(e,t,a,l,n){return yl(t),a=_u(e,t,a,l,void 0,n),l=Uu(),e!==null&&!Ke?(Hu(e,t,n),xa(e,t,n)):(Ae&&l&&gu(t),t.flags|=1,nt(e,t,a,n),t.child)}function Df(e,t,a,l,n,i){return yl(t),t.updateQueue=null,a=_r(t,l,a,n),Or(e),l=Uu(),e!==null&&!Ke?(Hu(e,t,i),xa(e,t,i)):(Ae&&l&&gu(t),t.flags|=1,nt(e,t,a,i),t.child)}function Of(e,t,a,l,n){if(yl(t),t.stateNode===null){var i=Ql,c=a.contextType;typeof c=="object"&&c!==null&&(i=lt(c)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Fu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Eu(t),c=a.contextType,i.context=typeof c=="object"&&c!==null?lt(c):Ql,i.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(Wu(t,a,c,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Fu.enqueueReplaceState(i,i.state,null),Yn(t,l,i,n),qn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var r=t.memoizedProps,g=Tl(a,r);i.props=g;var N=i.context,U=a.contextType;c=Ql,typeof U=="object"&&U!==null&&(c=lt(U));var q=a.getDerivedStateFromProps;U=typeof q=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,U||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||N!==c)&&xf(t,i,l,c),wa=!1;var R=t.memoizedState;i.state=R,Yn(t,l,i,n),qn(),N=t.memoizedState,r||R!==N||wa?(typeof q=="function"&&(Wu(t,a,q,l),N=t.memoizedState),(g=wa||yf(t,a,g,l,R,N,c))?(U||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=N),i.props=l,i.state=N,i.context=c,l=g):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,Cu(e,t),c=t.memoizedProps,U=Tl(a,c),i.props=U,q=t.pendingProps,R=i.context,N=a.contextType,g=Ql,typeof N=="object"&&N!==null&&(g=lt(N)),r=a.getDerivedStateFromProps,(N=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==q||R!==g)&&xf(t,i,l,g),wa=!1,R=t.memoizedState,i.state=R,Yn(t,l,i,n),qn();var z=t.memoizedState;c!==q||R!==z||wa||e!==null&&e.dependencies!==null&&Di(e.dependencies)?(typeof r=="function"&&(Wu(t,a,r,l),z=t.memoizedState),(U=wa||yf(t,a,U,l,R,z,g)||e!==null&&e.dependencies!==null&&Di(e.dependencies))?(N||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,z,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,z,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),i.props=l,i.state=z,i.context=g,l=U):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,Fi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=jl(t,e.child,null,n),t.child=jl(t,null,a,n)):nt(e,t,a,n),t.memoizedState=i.state,e=t.child):e=xa(e,t,n),e}function _f(e,t,a,l){return pl(),t.flags|=256,nt(e,t,a,l),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ac(e){return{baseLanes:e,cachePool:jr()}}function lc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ct),e}function Uf(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(n?qa(t):Ya(),(e=Le)?(e=Xd(e,Lt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=hr(e),a.return=t,t.child=a,at=t,Le=null)):e=null,e===null)throw Ua(t);return Bc(e)?t.lanes=32:t.lanes=536870912,null}var r=l.children;return l=l.fallback,n?(Ya(),n=t.mode,r=Ii({mode:"hidden",children:r},n),l=gl(l,n,a,null),r.return=t,l.return=t,r.sibling=l,t.child=r,l=t.child,l.memoizedState=ac(a),l.childLanes=lc(e,c,a),t.memoizedState=tc,Zn(null,l)):(qa(t),nc(t,r))}var g=e.memoizedState;if(g!==null&&(r=g.dehydrated,r!==null)){if(i)t.flags&256?(qa(t),t.flags&=-257,t=ic(e,t,a)):t.memoizedState!==null?(Ya(),t.child=e.child,t.flags|=128,t=null):(Ya(),r=l.fallback,n=t.mode,l=Ii({mode:"visible",children:l.children},n),r=gl(r,n,a,null),r.flags|=2,l.return=t,r.return=t,l.sibling=r,t.child=l,jl(t,e.child,null,a),l=t.child,l.memoizedState=ac(a),l.childLanes=lc(e,c,a),t.memoizedState=tc,t=Zn(null,l));else if(qa(t),Bc(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var N=c.dgst;c=N,l=Error(f(419)),l.stack="",l.digest=c,_n({value:l,source:null,stack:null}),t=ic(e,t,a)}else if(Ke||Jl(e,t,a,!1),c=(a&e.childLanes)!==0,Ke||c){if(c=we,c!==null&&(l=He(c,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,ml(e,l),St(c,e,l),Pu;Lc(r)||us(),t=ic(e,t,a)}else Lc(r)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Le=qt(r.nextSibling),at=t,Ae=!0,_a=null,Lt=!1,e!==null&&pr(t,e),t=nc(t,l.children),t.flags|=4096);return t}return n?(Ya(),r=l.fallback,n=t.mode,g=e.child,N=g.sibling,l=ha(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&65011712,N!==null?r=ha(N,r):(r=gl(r,n,a,null),r.flags|=2),r.return=t,l.return=t,l.sibling=r,t.child=l,Zn(null,l),l=t.child,r=e.child.memoizedState,r===null?r=ac(a):(n=r.cachePool,n!==null?(g=Ze._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=jr(),r={baseLanes:r.baseLanes|a,cachePool:n}),l.memoizedState=r,l.childLanes=lc(e,c,a),t.memoizedState=tc,Zn(e.child,l)):(qa(t),a=e.child,e=a.sibling,a=ha(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function nc(e,t){return t=Ii({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ii(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function ic(e,t,a){return jl(t,e.child,null,a),e=nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),bu(e.return,t,a)}function sc(e,t,a,l,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=n,c.treeForkCount=i)}function wf(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var c=Ve.current,r=(c&2)!==0;if(r?(c=c&1|2,t.flags|=128):c&=1,Z(Ve,c),nt(e,t,l,a),l=Ae?On:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hf(e,a,t);else if(e.tag===19)Hf(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&qi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),sc(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}sc(t,!0,a,null,i,l);break;case"together":sc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function xa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Va|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Jl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,a=ha(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ha(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function uc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Di(e)))}function Im(e,t,a){switch(t.tag){case 3:qe(t,t.stateNode.containerInfo),Ha(t,Ze,e.memoizedState.cache),pl();break;case 27:case 5:Kt(t);break;case 4:qe(t,t.stateNode.containerInfo);break;case 10:Ha(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Du(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(qa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Uf(e,t,a):(qa(t),e=xa(e,t,a),e!==null?e.sibling:null);qa(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Jl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return wf(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Z(Ve,Ve.current),l)break;return null;case 22:return t.lanes=0,Mf(e,t,a,t.pendingProps);case 24:Ha(t,Ze,e.memoizedState.cache)}return xa(e,t,a)}function Lf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!uc(e,a)&&(t.flags&128)===0)return Ke=!1,Im(e,t,a);Ke=(e.flags&131072)!==0}else Ke=!1,Ae&&(t.flags&1048576)!==0&&gr(t,On,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=bl(t.elementType),t.type=e,typeof e=="function")du(e)?(l=Tl(e,l),t.tag=1,t=Of(null,t,e,l,a)):(t.tag=0,t=ec(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===ie){t.tag=11,t=Ef(null,t,e,l,a);break e}else if(n===I){t.tag=14,t=Cf(null,t,e,l,a);break e}}throw t=le(e)||e,Error(f(306,t,""))}}return t;case 0:return ec(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=Tl(l,t.pendingProps),Of(e,t,l,n,a);case 3:e:{if(qe(t,t.stateNode.containerInfo),e===null)throw Error(f(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,Cu(e,t),Yn(t,l,null,a);var c=t.memoizedState;if(l=c.cache,Ha(t,Ze,l),l!==i.cache&&Su(t,[Ze],a,!0),qn(),l=c.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=_f(e,t,l,a);break e}else if(l!==n){n=Ut(Error(f(424)),t),_n(n),t=_f(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Le=qt(e.firstChild),at=t,Ae=!0,_a=null,Lt=!0,a=Rr(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(pl(),l===n){t=xa(e,t,a);break e}nt(e,t,l,a)}t=t.child}return t;case 26:return Fi(e,t),e===null?(a=Jd(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,l=ms(me.current).createElement(a),l[We]=t,l[ut]=e,it(l,a,e),Pe(l),t.stateNode=l):t.memoizedState=Jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kt(t),e===null&&Ae&&(l=t.stateNode=Zd(t.type,t.pendingProps,me.current),at=t,Lt=!0,n=Le,Ja(t.type)?(qc=n,Le=qt(l.firstChild)):Le=n),nt(e,t,t.pendingProps.children,a),Fi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((n=l=Le)&&(l=Rg(l,t.type,t.pendingProps,Lt),l!==null?(t.stateNode=l,at=t,Le=qt(l.firstChild),Lt=!1,n=!0):n=!1),n||Ua(t)),Kt(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,l=i.children,Uc(n,i)?l=null:c!==null&&Uc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=_u(e,t,Xm,null,null,a),ui._currentValue=n),Fi(e,t),nt(e,t,l,a),t.child;case 6:return e===null&&Ae&&((e=a=Le)&&(a=Mg(a,t.pendingProps,Lt),a!==null?(t.stateNode=a,at=t,Le=null,e=!0):e=!1),e||Ua(t)),null;case 13:return Uf(e,t,a);case 4:return qe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=jl(t,null,l,a):nt(e,t,l,a),t.child;case 11:return Ef(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ha(t,t.type,l.value),nt(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,yl(t),n=lt(n),l=l(n),t.flags|=1,nt(e,t,l,a),t.child;case 14:return Cf(e,t,t.type,t.pendingProps,a);case 15:return Rf(e,t,t.type,t.pendingProps,a);case 19:return wf(e,t,a);case 31:return Fm(e,t,a);case 22:return Mf(e,t,a,t.pendingProps);case 24:return yl(t),l=lt(Ze),e===null?(n=Tu(),n===null&&(n=we,i=ju(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},Eu(t),Ha(t,Ze,n)):((e.lanes&a)!==0&&(Cu(e,t),Yn(t,null,null,a),qn()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ha(t,Ze,l)):(l=i.cache,Ha(t,Ze,l),l!==n.cache&&Su(t,[Ze],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function ba(e){e.flags|=4}function cc(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(fd())e.flags|=8192;else throw Sl=Hi,Au}else e.flags&=-16777217}function Bf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!eh(t))if(fd())e.flags|=8192;else throw Sl=Hi,Au}function Pi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kt():536870912,e.lanes|=t,cn|=t)}function $n(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Pm(e,t,a){var l=t.pendingProps;switch(pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pa(Ze),ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?ba(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yu())),Be(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(ba(t),i!==null?(Be(t),Bf(t,i)):(Be(t),cc(t,n,null,l,a))):i?i!==e.memoizedState?(ba(t),Be(t),Bf(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ba(t),Be(t),cc(t,n,e,l,a)),null;case 27:if(la(t),a=me.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(!l){if(t.stateNode===null)throw Error(f(166));return Be(t),null}e=ae.current,Kl(t)?vr(t):(e=Zd(n,l,a),t.stateNode=e,ba(t))}return Be(t),null;case 5:if(la(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(!l){if(t.stateNode===null)throw Error(f(166));return Be(t),null}if(i=ae.current,Kl(t))vr(t);else{var c=ms(me.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?c.createElement(n,{is:l.is}):c.createElement(n)}}i[We]=t,i[ut]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(it(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ba(t)}}return Be(t),cc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(f(166));if(e=me.current,Kl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=at,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[We]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Ud(e.nodeValue,a)),e||Ua(t,!0)}else e=ms(e).createTextNode(l),e[We]=t,t.stateNode=e}return Be(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Kl(t),a!==null){if(e===null){if(!l)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[We]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else a=yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(f(558))}return Be(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Kl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(f(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[We]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),n=!1}else n=yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Pi(t,t.updateQueue),Be(t),null);case 4:return ze(),e===null&&zc(t.stateNode.containerInfo),Be(t),null;case 10:return pa(t.type),Be(t),null;case 19:if(M(Ve),l=t.memoizedState,l===null)return Be(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)$n(l,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=qi(e),i!==null){for(t.flags|=128,$n(l,!1),e=i.updateQueue,t.updateQueue=e,Pi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)dr(a,e),a=a.sibling;return Z(Ve,Ve.current&1|2),Ae&&ma(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&rt()>ns&&(t.flags|=128,n=!0,$n(l,!1),t.lanes=4194304)}else{if(!n)if(e=qi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Pi(t,e),$n(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Ae)return Be(t),null}else 2*rt()-l.renderingStartTime>ns&&a!==536870912&&(t.flags|=128,n=!0,$n(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=rt(),e.sibling=null,a=Ve.current,Z(Ve,n?a&1|2:a&1),Ae&&ma(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return At(t),ku(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),a=t.updateQueue,a!==null&&Pi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&M(xl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pa(Ze),Be(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function eg(e,t){switch(pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(Ze),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return la(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(f(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(Ve),null;case 4:return ze(),null;case 10:return pa(t.type),null;case 22:case 23:return At(t),ku(),e!==null&&M(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(Ze),null;case 25:return null;default:return null}}function qf(e,t){switch(pu(t),t.tag){case 3:pa(Ze),ze();break;case 26:case 27:case 5:la(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:M(Ve);break;case 10:pa(t.type);break;case 22:case 23:At(t),ku(),e!==null&&M(xl);break;case 24:pa(Ze)}}function Kn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,c=a.inst;l=i(),c.destroy=l}a=a.next}while(a!==n)}}catch(r){De(t,t.return,r)}}function Ga(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var c=l.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,n=t;var g=a,N=r;try{N()}catch(U){De(n,g,U)}}}l=l.next}while(l!==i)}}catch(U){De(t,t.return,U)}}function Yf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{zr(t,a)}catch(l){De(e,e.return,l)}}}function Gf(e,t,a){a.props=Tl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){De(e,t,l)}}function Jn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){De(e,t,n)}}function ta(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){De(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){De(e,t,n)}else a.current=null}function Xf(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){De(e,e.return,n)}}function oc(e,t,a){try{var l=e.stateNode;jg(l,e.type,a,t),l[ut]=t}catch(n){De(e,e.return,n)}}function Vf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ja(e.type)||e.tag===4}function rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ja(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=fa));else if(l!==4&&(l===27&&Ja(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(fc(e,t,a),e=e.sibling;e!==null;)fc(e,t,a),e=e.sibling}function es(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ja(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(es(e,t,a),e=e.sibling;e!==null;)es(e,t,a),e=e.sibling}function Qf(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);it(t,l,a),t[We]=e,t[ut]=a}catch(i){De(e,e.return,i)}}var Sa=!1,Je=!1,dc=!1,Zf=typeof WeakSet=="function"?WeakSet:Set,et=null;function tg(e,t){if(e=e.containerInfo,Oc=Ss,e=lr(e),iu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var c=0,r=-1,g=-1,N=0,U=0,q=e,R=null;t:for(;;){for(var z;q!==a||n!==0&&q.nodeType!==3||(r=c+n),q!==i||l!==0&&q.nodeType!==3||(g=c+l),q.nodeType===3&&(c+=q.nodeValue.length),(z=q.firstChild)!==null;)R=q,q=z;for(;;){if(q===e)break t;if(R===a&&++N===n&&(r=c),R===i&&++U===l&&(g=c),(z=q.nextSibling)!==null)break;q=R,R=q.parentNode}q=z}a=r===-1||g===-1?null:{start:r,end:g}}else a=null}a=a||{start:0,end:0}}else a=null;for(_c={focusedElem:e,selectionRange:a},Ss=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var ne=Tl(a.type,n);e=l.getSnapshotBeforeUpdate(ne,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ge){De(a,a.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)wc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(f(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function $f(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Na(e,a),l&4&&Kn(5,a);break;case 1:if(Na(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){De(a,a.return,c)}else{var n=Tl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){De(a,a.return,c)}}l&64&&Yf(a),l&512&&Jn(a,a.return);break;case 3:if(Na(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{zr(e,t)}catch(c){De(a,a.return,c)}}break;case 27:t===null&&l&4&&Qf(a);case 26:case 5:Na(e,a),t===null&&l&4&&Xf(a),l&512&&Jn(a,a.return);break;case 12:Na(e,a);break;case 31:Na(e,a),l&4&&Wf(e,a);break;case 13:Na(e,a),l&4&&Ff(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=rg.bind(null,a),zg(e,a))));break;case 22:if(l=a.memoizedState!==null||Sa,!l){t=t!==null&&t.memoizedState!==null||Je,n=Sa;var i=Je;Sa=l,(Je=t)&&!i?Ta(e,a,(a.subtreeFlags&8772)!==0):Na(e,a),Sa=n,Je=i}break;case 30:break;default:Na(e,a)}}function Kf(e){var t=e.alternate;t!==null&&(e.alternate=null,Kf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,vt=!1;function ja(e,t,a){for(a=a.child;a!==null;)Jf(e,t,a),a=a.sibling}function Jf(e,t,a){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(za,a)}catch{}switch(a.tag){case 26:Je||ta(a,t),ja(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Je||ta(a,t);var l=Ye,n=vt;Ja(a.type)&&(Ye=a.stateNode,vt=!1),ja(e,t,a),ni(a.stateNode),Ye=l,vt=n;break;case 5:Je||ta(a,t);case 6:if(l=Ye,n=vt,Ye=null,ja(e,t,a),Ye=l,vt=n,Ye!==null)if(vt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(i){De(a,t,i)}else try{Ye.removeChild(a.stateNode)}catch(i){De(a,t,i)}break;case 18:Ye!==null&&(vt?(e=Ye,Yd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),pn(e)):Yd(Ye,a.stateNode));break;case 4:l=Ye,n=vt,Ye=a.stateNode.containerInfo,vt=!0,ja(e,t,a),Ye=l,vt=n;break;case 0:case 11:case 14:case 15:Ga(2,a,t),Je||Ga(4,a,t),ja(e,t,a);break;case 1:Je||(ta(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Gf(a,t,l)),ja(e,t,a);break;case 21:ja(e,t,a);break;case 22:Je=(l=Je)||a.memoizedState!==null,ja(e,t,a),Je=l;break;default:ja(e,t,a)}}function Wf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pn(e)}catch(a){De(t,t.return,a)}}}function Ff(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pn(e)}catch(a){De(t,t.return,a)}}function ag(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zf),t;default:throw Error(f(435,e.tag))}}function ts(e,t){var a=ag(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=fg.bind(null,e,l);l.then(n,n)}})}function yt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(Ja(r.type)){Ye=r.stateNode,vt=!1;break e}break;case 5:Ye=r.stateNode,vt=!1;break e;case 3:case 4:Ye=r.stateNode.containerInfo,vt=!0;break e}r=r.return}if(Ye===null)throw Error(f(160));Jf(i,c,n),Ye=null,vt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)If(t,e),t=t.sibling}var Qt=null;function If(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),xt(e),l&4&&(Ga(3,e,e.return),Kn(3,e),Ga(5,e,e.return));break;case 1:yt(t,e),xt(e),l&512&&(Je||a===null||ta(a,a.return)),l&64&&Sa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Qt;if(yt(t,e),xt(e),l&512&&(Je||a===null||ta(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[jn]||i[We]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),it(i,l,a),i[We]=e,Pe(i),l=i;break e;case"link":var c=Id("link","href",n).get(l+(a.href||""));if(c){for(var r=0;r<c.length;r++)if(i=c[r],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(r,1);break t}}i=n.createElement(l),it(i,l,a),n.head.appendChild(i);break;case"meta":if(c=Id("meta","content",n).get(l+(a.content||""))){for(r=0;r<c.length;r++)if(i=c[r],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(r,1);break t}}i=n.createElement(l),it(i,l,a),n.head.appendChild(i);break;default:throw Error(f(468,l))}i[We]=e,Pe(i),l=i}e.stateNode=l}else Pd(n,e.type,e.stateNode);else e.stateNode=Fd(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Pd(n,e.type,e.stateNode):Fd(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&oc(e,e.memoizedProps,a.memoizedProps)}break;case 27:yt(t,e),xt(e),l&512&&(Je||a===null||ta(a,a.return)),a!==null&&l&4&&oc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(yt(t,e),xt(e),l&512&&(Je||a===null||ta(a,a.return)),e.flags&32){n=e.stateNode;try{Ll(n,"")}catch(ne){De(e,e.return,ne)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,oc(e,n,a!==null?a.memoizedProps:n)),l&1024&&(dc=!0);break;case 6:if(yt(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(f(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(ne){De(e,e.return,ne)}}break;case 3:if(vs=null,n=Qt,Qt=gs(t.containerInfo),yt(t,e),Qt=n,xt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{pn(t.containerInfo)}catch(ne){De(e,e.return,ne)}dc&&(dc=!1,Pf(e));break;case 4:l=Qt,Qt=gs(e.stateNode.containerInfo),yt(t,e),xt(e),Qt=l;break;case 12:yt(t,e),xt(e);break;case 31:yt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 13:yt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ls=rt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 22:n=e.memoizedState!==null;var g=a!==null&&a.memoizedState!==null,N=Sa,U=Je;if(Sa=N||n,Je=U||g,yt(t,e),Je=U,Sa=N,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||g||Sa||Je||Al(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){g=a=t;try{if(i=g.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=g.stateNode;var q=g.memoizedProps.style,R=q!=null&&q.hasOwnProperty("display")?q.display:null;r.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(ne){De(g,g.return,ne)}}}else if(t.tag===6){if(a===null){g=t;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(ne){De(g,g.return,ne)}}}else if(t.tag===18){if(a===null){g=t;try{var z=g.stateNode;n?Gd(z,!0):Gd(g.stateNode,!1)}catch(ne){De(g,g.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,ts(e,a))));break;case 19:yt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 30:break;case 21:break;default:yt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Vf(l)){a=l;break}l=l.return}if(a==null)throw Error(f(160));switch(a.tag){case 27:var n=a.stateNode,i=rc(e);es(e,i,n);break;case 5:var c=a.stateNode;a.flags&32&&(Ll(c,""),a.flags&=-33);var r=rc(e);es(e,r,c);break;case 3:case 4:var g=a.stateNode.containerInfo,N=rc(e);fc(e,N,g);break;default:throw Error(f(161))}}catch(U){De(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$f(e,t.alternate,t),t=t.sibling}function Al(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ga(4,t,t.return),Al(t);break;case 1:ta(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Gf(t,t.return,a),Al(t);break;case 27:ni(t.stateNode);case 26:case 5:ta(t,t.return),Al(t);break;case 22:t.memoizedState===null&&Al(t);break;case 30:Al(t);break;default:Al(t)}e=e.sibling}}function Ta(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:Ta(n,i,a),Kn(4,i);break;case 1:if(Ta(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){De(l,l.return,N)}if(l=i,n=l.updateQueue,n!==null){var r=l.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)Mr(g[n],r)}catch(N){De(l,l.return,N)}}a&&c&64&&Yf(i),Jn(i,i.return);break;case 27:Qf(i);case 26:case 5:Ta(n,i,a),a&&l===null&&c&4&&Xf(i),Jn(i,i.return);break;case 12:Ta(n,i,a);break;case 31:Ta(n,i,a),a&&c&4&&Wf(n,i);break;case 13:Ta(n,i,a),a&&c&4&&Ff(n,i);break;case 22:i.memoizedState===null&&Ta(n,i,a),Jn(i,i.return);break;case 30:break;default:Ta(n,i,a)}t=t.sibling}}function hc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Un(a))}function mc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Un(e))}function Zt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ed(e,t,a,l),t=t.sibling}function ed(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,a,l),n&2048&&Kn(9,t);break;case 1:Zt(e,t,a,l);break;case 3:Zt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Un(e)));break;case 12:if(n&2048){Zt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,r=i.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){De(t,t.return,g)}}else Zt(e,t,a,l);break;case 31:Zt(e,t,a,l);break;case 13:Zt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Zt(e,t,a,l):Wn(e,t):i._visibility&2?Zt(e,t,a,l):(i._visibility|=2,nn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&hc(c,t);break;case 24:Zt(e,t,a,l),n&2048&&mc(t.alternate,t);break;default:Zt(e,t,a,l)}}function nn(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,r=a,g=l,N=c.flags;switch(c.tag){case 0:case 11:case 15:nn(i,c,r,g,n),Kn(8,c);break;case 23:break;case 22:var U=c.stateNode;c.memoizedState!==null?U._visibility&2?nn(i,c,r,g,n):Wn(i,c):(U._visibility|=2,nn(i,c,r,g,n)),n&&N&2048&&hc(c.alternate,c);break;case 24:nn(i,c,r,g,n),n&&N&2048&&mc(c.alternate,c);break;default:nn(i,c,r,g,n)}t=t.sibling}}function Wn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Wn(a,l),n&2048&&hc(l.alternate,l);break;case 24:Wn(a,l),n&2048&&mc(l.alternate,l);break;default:Wn(a,l)}t=t.sibling}}var Fn=8192;function sn(e,t,a){if(e.subtreeFlags&Fn)for(e=e.child;e!==null;)td(e,t,a),e=e.sibling}function td(e,t,a){switch(e.tag){case 26:sn(e,t,a),e.flags&Fn&&e.memoizedState!==null&&Gg(a,Qt,e.memoizedState,e.memoizedProps);break;case 5:sn(e,t,a);break;case 3:case 4:var l=Qt;Qt=gs(e.stateNode.containerInfo),sn(e,t,a),Qt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Fn,Fn=16777216,sn(e,t,a),Fn=l):sn(e,t,a));break;default:sn(e,t,a)}}function ad(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function In(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,nd(l,e)}ad(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ld(e),e=e.sibling}function ld(e){switch(e.tag){case 0:case 11:case 15:In(e),e.flags&2048&&Ga(9,e,e.return);break;case 3:In(e);break;case 12:In(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,as(e)):In(e);break;default:In(e)}}function as(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,nd(l,e)}ad(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ga(8,t,t.return),as(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,as(t));break;default:as(t)}e=e.sibling}}function nd(e,t){for(;et!==null;){var a=et;switch(a.tag){case 0:case 11:case 15:Ga(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Un(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,et=l;else e:for(a=e;et!==null;){l=et;var n=l.sibling,i=l.return;if(Kf(l),l===a){et=null;break e}if(n!==null){n.return=i,et=n;break e}et=i}}}var lg={getCacheForType:function(e){var t=lt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return lt(Ze).controller.signal}},ng=typeof WeakMap=="function"?WeakMap:Map,Me=0,we=null,Se=null,Ne=0,ke=0,Et=null,Xa=!1,un=!1,gc=!1,Aa=0,Xe=0,Va=0,El=0,pc=0,Ct=0,cn=0,Pn=null,bt=null,vc=!1,ls=0,id=0,ns=1/0,is=null,Qa=null,Fe=0,Za=null,on=null,Ea=0,yc=0,xc=null,sd=null,ei=0,bc=null;function Rt(){return(Me&2)!==0&&Ne!==0?Ne&-Ne:A.T!==null?Ec():Dl()}function ud(){if(Ct===0)if((Ne&536870912)===0||Ae){var e=ca;ca<<=1,(ca&3932160)===0&&(ca=262144),Ct=e}else Ct=536870912;return e=Tt.current,e!==null&&(e.flags|=32),Ct}function St(e,t,a){(e===we&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(rn(e,0),$a(e,Ne,Ct,!1)),cl(e,a),((Me&2)===0||e!==we)&&(e===we&&((Me&2)===0&&(El|=a),Xe===4&&$a(e,Ne,Ct,!1)),aa(e))}function cd(e,t,a){if((Me&6)!==0)throw Error(f(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Gt(e,t),n=l?ug(e,t):jc(e,t,!0),i=l;do{if(n===0){un&&!l&&$a(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!ig(a)){n=jc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var r=e;n=Pn;var g=r.current.memoizedState.isDehydrated;if(g&&(rn(r,c).flags|=256),c=jc(r,c,!1),c!==2){if(gc&&!g){r.errorRecoveryDisabledLanes|=i,El|=i,n=4;break e}i=bt,bt=n,i!==null&&(bt===null?bt=i:bt.push.apply(bt,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){rn(e,0),$a(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:$a(l,t,Ct,!Xa);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(n=ls+300-rt(),10<n)){if($a(l,t,Ct,!Xa),sl(l,0,!0)!==0)break e;Ea=t,l.timeoutHandle=Bd(od.bind(null,l,a,bt,is,vc,t,Ct,El,cn,Xa,i,"Throttled",-0,0),n);break e}od(l,a,bt,is,vc,t,Ct,El,cn,Xa,i,null,-0,0)}}break}while(!0);aa(e)}function od(e,t,a,l,n,i,c,r,g,N,U,q,R,z){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fa},td(t,i,q);var ne=(i&62914560)===i?ls-rt():(i&4194048)===i?id-rt():0;if(ne=Xg(q,ne),ne!==null){Ea=i,e.cancelPendingCommit=ne(vd.bind(null,e,t,i,a,l,n,c,r,g,U,q,null,R,z)),$a(e,i,c,!N);return}}vd(e,t,i,a,l,n,c,r,g)}function ig(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!jt(i(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $a(e,t,a,l){t&=~pc,t&=~El,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-dt(n),c=1<<i;l[i]=-1,n&=~c}a!==0&&fe(e,a,t)}function ss(){return(Me&6)===0?(ti(0),!1):!0}function Sc(){if(Se!==null){if(ke===0)var e=Se.return;else e=Se,ga=vl=null,wu(e),Pl=null,wn=0,e=Se;for(;e!==null;)qf(e.alternate,e),e=e.return;Se=null}}function rn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ag(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ea=0,Sc(),we=e,Se=a=ha(e.current,null),Ne=t,ke=0,Et=null,Xa=!1,un=Gt(e,t),gc=!1,cn=Ct=pc=El=Va=Xe=0,bt=Pn=null,vc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-dt(l),i=1<<n;t|=e[n],l&=~i}return Aa=t,Ci(),a}function rd(e,t){ye=null,A.H=Qn,t===Il||t===Ui?(t=Ar(),ke=3):t===Au?(t=Ar(),ke=4):ke=t===Pu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,Se===null&&(Xe=1,Ji(e,Ut(t,e.current)))}function fd(){var e=Tt.current;return e===null?!0:(Ne&4194048)===Ne?Bt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Bt:!1}function dd(){var e=A.H;return A.H=Qn,e===null?Qn:e}function hd(){var e=A.A;return A.A=lg,e}function us(){Xe=4,Xa||(Ne&4194048)!==Ne&&Tt.current!==null||(un=!0),(Va&134217727)===0&&(El&134217727)===0||we===null||$a(we,Ne,Ct,!1)}function jc(e,t,a){var l=Me;Me|=2;var n=dd(),i=hd();(we!==e||Ne!==t)&&(is=null,rn(e,t)),t=!1;var c=Xe;e:do try{if(ke!==0&&Se!==null){var r=Se,g=Et;switch(ke){case 8:Sc(),c=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(t=!0);var N=ke;if(ke=0,Et=null,fn(e,r,g,N),a&&un){c=0;break e}break;default:N=ke,ke=0,Et=null,fn(e,r,g,N)}}sg(),c=Xe;break}catch(U){rd(e,U)}while(!0);return t&&e.shellSuspendCounter++,ga=vl=null,Me=l,A.H=n,A.A=i,Se===null&&(we=null,Ne=0,Ci()),c}function sg(){for(;Se!==null;)md(Se)}function ug(e,t){var a=Me;Me|=2;var l=dd(),n=hd();we!==e||Ne!==t?(is=null,ns=rt()+500,rn(e,t)):un=Gt(e,t);e:do try{if(ke!==0&&Se!==null){t=Se;var i=Et;t:switch(ke){case 1:ke=0,Et=null,fn(e,t,i,1);break;case 2:case 9:if(Nr(i)){ke=0,Et=null,gd(t);break}t=function(){ke!==2&&ke!==9||we!==e||(ke=7),aa(e)},i.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Nr(i)?(ke=0,Et=null,gd(t)):(ke=0,Et=null,fn(e,t,i,7));break;case 5:var c=null;switch(Se.tag){case 26:c=Se.memoizedState;case 5:case 27:var r=Se;if(c?eh(c):r.stateNode.complete){ke=0,Et=null;var g=r.sibling;if(g!==null)Se=g;else{var N=r.return;N!==null?(Se=N,cs(N)):Se=null}break t}}ke=0,Et=null,fn(e,t,i,5);break;case 6:ke=0,Et=null,fn(e,t,i,6);break;case 8:Sc(),Xe=6;break e;default:throw Error(f(462))}}cg();break}catch(U){rd(e,U)}while(!0);return ga=vl=null,A.H=l,A.A=n,Me=a,Se!==null?0:(we=null,Ne=0,Ci(),Xe)}function cg(){for(;Se!==null&&!sa();)md(Se)}function md(e){var t=Lf(e.alternate,e,Aa);e.memoizedProps=e.pendingProps,t===null?cs(e):Se=t}function gd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Df(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Df(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:wu(t);default:qf(a,t),t=Se=dr(t,Aa),t=Lf(a,t,Aa)}e.memoizedProps=e.pendingProps,t===null?cs(e):Se=t}function fn(e,t,a,l){ga=vl=null,wu(t),Pl=null,wn=0;var n=t.return;try{if(Wm(e,n,t,a,Ne)){Xe=1,Ji(e,Ut(a,e.current)),Se=null;return}}catch(i){if(n!==null)throw Se=n,i;Xe=1,Ji(e,Ut(a,e.current)),Se=null;return}t.flags&32768?(Ae||l===1?e=!0:un||(Ne&536870912)!==0?e=!1:(Xa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Tt.current,l!==null&&l.tag===13&&(l.flags|=16384))),pd(t,e)):cs(t)}function cs(e){var t=e;do{if((t.flags&32768)!==0){pd(t,Xa);return}e=t.return;var a=Pm(t.alternate,t,Aa);if(a!==null){Se=a;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Xe===0&&(Xe=5)}function pd(e,t){do{var a=eg(e.alternate,e);if(a!==null){a.flags&=32767,Se=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=a}while(e!==null);Xe=6,Se=null}function vd(e,t,a,l,n,i,c,r,g){e.cancelPendingCommit=null;do os();while(Fe!==0);if((Me&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(i=t.lanes|t.childLanes,i|=ru,w(e,a,i,c,r,g),e===we&&(Se=we=null,Ne=0),on=t,Za=e,Ea=a,yc=i,xc=n,sd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dg(Ma,function(){return jd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,n=b.p,b.p=2,c=Me,Me|=4;try{tg(e,t,a)}finally{Me=c,b.p=n,A.T=l}}Fe=1,yd(),xd(),bd()}}function yd(){if(Fe===1){Fe=0;var e=Za,t=on,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=A.T,A.T=null;var l=b.p;b.p=2;var n=Me;Me|=4;try{If(t,e);var i=_c,c=lr(e.containerInfo),r=i.focusedElem,g=i.selectionRange;if(c!==r&&r&&r.ownerDocument&&ar(r.ownerDocument.documentElement,r)){if(g!==null&&iu(r)){var N=g.start,U=g.end;if(U===void 0&&(U=N),"selectionStart"in r)r.selectionStart=N,r.selectionEnd=Math.min(U,r.value.length);else{var q=r.ownerDocument||document,R=q&&q.defaultView||window;if(R.getSelection){var z=R.getSelection(),ne=r.textContent.length,ge=Math.min(g.start,ne),Ue=g.end===void 0?ge:Math.min(g.end,ne);!z.extend&&ge>Ue&&(c=Ue,Ue=ge,ge=c);var y=tr(r,ge),p=tr(r,Ue);if(y&&p&&(z.rangeCount!==1||z.anchorNode!==y.node||z.anchorOffset!==y.offset||z.focusNode!==p.node||z.focusOffset!==p.offset)){var S=q.createRange();S.setStart(y.node,y.offset),z.removeAllRanges(),ge>Ue?(z.addRange(S),z.extend(p.node,p.offset)):(S.setEnd(p.node,p.offset),z.addRange(S))}}}}for(q=[],z=r;z=z.parentNode;)z.nodeType===1&&q.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<q.length;r++){var L=q[r];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Ss=!!Oc,_c=Oc=null}finally{Me=n,b.p=l,A.T=a}}e.current=t,Fe=2}}function xd(){if(Fe===2){Fe=0;var e=Za,t=on,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=A.T,A.T=null;var l=b.p;b.p=2;var n=Me;Me|=4;try{$f(e,t.alternate,t)}finally{Me=n,b.p=l,A.T=a}}Fe=3}}function bd(){if(Fe===4||Fe===3){Fe=0,ua();var e=Za,t=on,a=Ea,l=sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,on=Za=null,Sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Qa=null),ka(a),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(za,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=A.T,n=b.p,b.p=2,A.T=null;try{for(var i=e.onRecoverableError,c=0;c<l.length;c++){var r=l[c];i(r.value,{componentStack:r.stack})}}finally{A.T=t,b.p=n}}(Ea&3)!==0&&os(),aa(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===bc?ei++:(ei=0,bc=e):ei=0,ti(0)}}function Sd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Un(t)))}function os(){return yd(),xd(),bd(),jd()}function jd(){if(Fe!==5)return!1;var e=Za,t=yc;yc=0;var a=ka(Ea),l=A.T,n=b.p;try{b.p=32>a?32:a,A.T=null,a=xc,xc=null;var i=Za,c=Ea;if(Fe=0,on=Za=null,Ea=0,(Me&6)!==0)throw Error(f(331));var r=Me;if(Me|=4,ld(i.current),ed(i,i.current,c,a),Me=r,ti(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(za,i)}catch{}return!0}finally{b.p=n,A.T=l,Sd(e,t)}}function Nd(e,t,a){t=Ut(a,t),t=Iu(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(cl(e,2),aa(e))}function De(e,t,a){if(e.tag===3)Nd(e,e,a);else for(;t!==null;){if(t.tag===3){Nd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qa===null||!Qa.has(l))){e=Ut(a,e),a=Tf(2),l=Ba(t,a,2),l!==null&&(Af(a,l,t,e),cl(l,2),aa(l));break}}t=t.return}}function Nc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new ng;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(gc=!0,n.add(a),e=og.bind(null,e,t,a),t.then(e,e))}function og(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,we===e&&(Ne&a)===a&&(Xe===4||Xe===3&&(Ne&62914560)===Ne&&300>rt()-ls?(Me&2)===0&&rn(e,0):pc|=a,cn===Ne&&(cn=0)),aa(e)}function Td(e,t){t===0&&(t=kt()),e=ml(e,t),e!==null&&(cl(e,t),aa(e))}function rg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Td(e,a)}function fg(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(f(314))}l!==null&&l.delete(t),Td(e,a)}function dg(e,t){return bn(e,t)}var rs=null,dn=null,Tc=!1,fs=!1,Ac=!1,Ka=0;function aa(e){e!==dn&&e.next===null&&(dn===null?rs=dn=e:dn=dn.next=e),fs=!0,Tc||(Tc=!0,mg())}function ti(e,t){if(!Ac&&fs){Ac=!0;do for(var a=!1,l=rs;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var c=l.suspendedLanes,r=l.pingedLanes;i=(1<<31-dt(42|e)+1)-1,i&=n&~(c&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Rd(l,i))}else i=Ne,i=sl(l,l===we?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Gt(l,i)||(a=!0,Rd(l,i));l=l.next}while(a);Ac=!1}}function hg(){Ad()}function Ad(){fs=Tc=!1;var e=0;Ka!==0&&Tg()&&(e=Ka);for(var t=rt(),a=null,l=rs;l!==null;){var n=l.next,i=Ed(l,t);i===0?(l.next=null,a===null?rs=n:a.next=n,n===null&&(dn=a)):(a=l,(e!==0||(i&3)!==0)&&(fs=!0)),l=n}Fe!==0&&Fe!==5||ti(e),Ka!==0&&(Ka=0)}function Ed(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-dt(i),r=1<<c,g=n[c];g===-1?((r&a)===0||(r&l)!==0)&&(n[c]=oa(r,t)):g<=t&&(e.expiredLanes|=r),i&=~r}if(t=we,a=Ne,a=sl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&nl(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Gt(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&nl(l),ka(a)){case 2:case 8:a=mi;break;case 32:a=Ma;break;case 268435456:a=Ml;break;default:a=Ma}return l=Cd.bind(null,e),a=bn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&nl(l),e.callbackPriority=2,e.callbackNode=null,2}function Cd(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(os()&&e.callbackNode!==a)return null;var l=Ne;return l=sl(e,e===we?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(cd(e,l,t),Ed(e,rt()),e.callbackNode!=null&&e.callbackNode===a?Cd.bind(null,e):null)}function Rd(e,t){if(os())return null;cd(e,t,!0)}function mg(){Eg(function(){(Me&6)!==0?bn(il,hg):Ad()})}function Ec(){if(Ka===0){var e=Wl;e===0&&(e=kl,kl<<=1,(kl&261888)===0&&(kl=256)),Ka=e}return Ka}function Md(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function zd(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function gg(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=Md((n[ut]||null).action),c=l.submitter;c&&(t=(t=c[ut]||null)?Md(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var r=new Ni("action","action",null,l,n);e.push({event:r,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ka!==0){var g=c?zd(n,c):new FormData(n);Zu(a,{pending:!0,data:g,method:n.method,action:i},null,g)}}else typeof i=="function"&&(r.preventDefault(),g=c?zd(n,c):new FormData(n),Zu(a,{pending:!0,data:g,method:n.method,action:i},i,g))},currentTarget:n}]})}}for(var Cc=0;Cc<ou.length;Cc++){var Rc=ou[Cc],pg=Rc.toLowerCase(),vg=Rc[0].toUpperCase()+Rc.slice(1);Vt(pg,"on"+vg)}Vt(sr,"onAnimationEnd"),Vt(ur,"onAnimationIteration"),Vt(cr,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(Om,"onTransitionRun"),Vt(_m,"onTransitionStart"),Vt(Um,"onTransitionCancel"),Vt(or,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ai="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(" "),yg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ai));function kd(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var c=l.length-1;0<=c;c--){var r=l[c],g=r.instance,N=r.currentTarget;if(r=r.listener,g!==i&&n.isPropagationStopped())break e;i=r,n.currentTarget=N;try{i(n)}catch(U){Ei(U)}n.currentTarget=null,i=g}else for(c=0;c<l.length;c++){if(r=l[c],g=r.instance,N=r.currentTarget,r=r.listener,g!==i&&n.isPropagationStopped())break e;i=r,n.currentTarget=N;try{i(n)}catch(U){Ei(U)}n.currentTarget=null,i=g}}}}function je(e,t){var a=t[ct];a===void 0&&(a=t[ct]=new Set);var l=e+"__bubble";a.has(l)||(Dd(t,e,2,!1),a.add(l))}function Mc(e,t,a){var l=0;t&&(l|=4),Dd(a,e,l,t)}var ds="_reactListening"+Math.random().toString(36).slice(2);function zc(e){if(!e[ds]){e[ds]=!0,To.forEach(function(a){a!=="selectionchange"&&(yg.has(a)||Mc(a,!1,e),Mc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ds]||(t[ds]=!0,Mc("selectionchange",!1,t))}}function Dd(e,t,a,l){switch(uh(t)){case 2:var n=Zg;break;case 8:n=$g;break;default:n=Qc}a=n.bind(null,t,a,e),n=void 0,!Ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function kc(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var r=l.stateNode.containerInfo;if(r===n)break;if(c===4)for(c=l.return;c!==null;){var g=c.tag;if((g===3||g===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;r!==null;){if(c=Ol(r),c===null)return;if(g=c.tag,g===5||g===6||g===26||g===27){l=i=c;continue e}r=r.parentNode}}l=l.return}Ho(function(){var N=i,U=Ks(a),q=[];e:{var R=rr.get(e);if(R!==void 0){var z=Ni,ne=e;switch(e){case"keypress":if(Si(a)===0)break e;case"keydown":case"keyup":z=fm;break;case"focusin":ne="focus",z=eu;break;case"focusout":ne="blur",z=eu;break;case"beforeblur":case"afterblur":z=eu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Bo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Ph;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=mm;break;case sr:case ur:case cr:z=am;break;case or:z=pm;break;case"scroll":case"scrollend":z=Fh;break;case"wheel":z=ym;break;case"copy":case"cut":case"paste":z=nm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Yo;break;case"toggle":case"beforetoggle":z=bm}var ge=(t&4)!==0,Ue=!ge&&(e==="scroll"||e==="scrollend"),y=ge?R!==null?R+"Capture":null:R;ge=[];for(var p=N,S;p!==null;){var L=p;if(S=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||S===null||y===null||(L=Tn(p,y),L!=null&&ge.push(li(p,L,S))),Ue)break;p=p.return}0<ge.length&&(R=new z(R,ne,null,a,U),q.push({event:R,listeners:ge}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",R&&a!==$s&&(ne=a.relatedTarget||a.fromElement)&&(Ol(ne)||ne[Xt]))break e;if((z||R)&&(R=U.window===U?U:(R=U.ownerDocument)?R.defaultView||R.parentWindow:window,z?(ne=a.relatedTarget||a.toElement,z=N,ne=ne?Ol(ne):null,ne!==null&&(Ue=C(ne),ge=ne.tag,ne!==Ue||ge!==5&&ge!==27&&ge!==6)&&(ne=null)):(z=null,ne=N),z!==ne)){if(ge=Bo,L="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Yo,L="onPointerLeave",y="onPointerEnter",p="pointer"),Ue=z==null?R:Nn(z),S=ne==null?R:Nn(ne),R=new ge(L,p+"leave",z,a,U),R.target=Ue,R.relatedTarget=S,L=null,Ol(U)===N&&(ge=new ge(y,p+"enter",ne,a,U),ge.target=S,ge.relatedTarget=Ue,L=ge),Ue=L,z&&ne)t:{for(ge=xg,y=z,p=ne,S=0,L=y;L;L=ge(L))S++;L=0;for(var re=p;re;re=ge(re))L++;for(;0<S-L;)y=ge(y),S--;for(;0<L-S;)p=ge(p),L--;for(;S--;){if(y===p||p!==null&&y===p.alternate){ge=y;break t}y=ge(y),p=ge(p)}ge=null}else ge=null;z!==null&&Od(q,R,z,ge,!1),ne!==null&&Ue!==null&&Od(q,Ue,ne,ge,!0)}}e:{if(R=N?Nn(N):window,z=R.nodeName&&R.nodeName.toLowerCase(),z==="select"||z==="input"&&R.type==="file")var Ce=Jo;else if($o(R))if(Wo)Ce=zm;else{Ce=Rm;var se=Cm}else z=R.nodeName,!z||z.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?N&&Zs(N.elementType)&&(Ce=Jo):Ce=Mm;if(Ce&&(Ce=Ce(e,N))){Ko(q,Ce,a,U);break e}se&&se(e,R,N),e==="focusout"&&N&&R.type==="number"&&N.memoizedProps.value!=null&&Qs(R,"number",R.value)}switch(se=N?Nn(N):window,e){case"focusin":($o(se)||se.contentEditable==="true")&&(Gl=se,su=N,Dn=null);break;case"focusout":Dn=su=Gl=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,nr(q,a,U);break;case"selectionchange":if(Dm)break;case"keydown":case"keyup":nr(q,a,U)}var xe;if(au)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Yl?Qo(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Te="onCompositionStart");Te&&(Go&&a.locale!=="ko"&&(Yl||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Yl&&(xe=wo()):(Da=U,Fs="value"in Da?Da.value:Da.textContent,Yl=!0)),se=hs(N,Te),0<se.length&&(Te=new qo(Te,e,null,a,U),q.push({event:Te,listeners:se}),xe?Te.data=xe:(xe=Zo(a),xe!==null&&(Te.data=xe)))),(xe=jm?Nm(e,a):Tm(e,a))&&(Te=hs(N,"onBeforeInput"),0<Te.length&&(se=new qo("onBeforeInput","beforeinput",null,a,U),q.push({event:se,listeners:Te}),se.data=xe)),gg(q,e,N,a,U)}kd(q,t)})}function li(e,t,a){return{instance:e,listener:t,currentTarget:a}}function hs(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Tn(e,a),n!=null&&l.unshift(li(e,n,i)),n=Tn(e,t),n!=null&&l.push(li(e,n,i))),e.tag===3)return l;e=e.return}return[]}function xg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,a,l,n){for(var i=t._reactName,c=[];a!==null&&a!==l;){var r=a,g=r.alternate,N=r.stateNode;if(r=r.tag,g!==null&&g===l)break;r!==5&&r!==26&&r!==27||N===null||(g=N,n?(N=Tn(a,i),N!=null&&c.unshift(li(a,N,g))):n||(N=Tn(a,i),N!=null&&c.push(li(a,N,g)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var bg=/\r\n?/g,Sg=/\u0000|\uFFFD/g;function _d(e){return(typeof e=="string"?e:""+e).replace(bg,`
|
|
9
|
+
`).replace(Sg,"")}function Ud(e,t){return t=_d(t),_d(e)===t}function _e(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ll(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ll(e,""+l);break;case"className":vi(e,"class",l);break;case"tabIndex":vi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,a,l);break;case"style":_o(e,l,i);break;case"data":if(t!=="object"){vi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=xi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",n.name,n,null),_e(e,t,"formEncType",n.formEncType,n,null),_e(e,t,"formMethod",n.formMethod,n,null),_e(e,t,"formTarget",n.formTarget,n,null)):(_e(e,t,"encType",n.encType,n,null),_e(e,t,"method",n.method,n,null),_e(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=xi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=fa);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(f(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=xi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":je("beforetoggle",e),je("toggle",e),pi(e,"popover",l);break;case"xlinkActuate":ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ra(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ra(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ra(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ra(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":pi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Jh.get(a)||a,pi(e,a,l))}}function Dc(e,t,a,l,n,i){switch(a){case"style":_o(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(f(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Ll(e,l):(typeof l=="number"||typeof l=="bigint")&&Ll(e,""+l);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"onClick":l!=null&&(e.onclick=fa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ao.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[ut]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):pi(e,a,l)}}}function it(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];if(c!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:_e(e,t,i,c,a,null)}}n&&_e(e,t,"srcSet",a.srcSet,a,null),l&&_e(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var r=i=c=n=null,g=null,N=null;for(l in a)if(a.hasOwnProperty(l)){var U=a[l];if(U!=null)switch(l){case"name":n=U;break;case"type":c=U;break;case"checked":g=U;break;case"defaultChecked":N=U;break;case"value":i=U;break;case"defaultValue":r=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(f(137,t));break;default:_e(e,t,l,U,a,null)}}zo(e,i,r,g,N,c,n,!1);return;case"select":je("invalid",e),l=c=i=null;for(n in a)if(a.hasOwnProperty(n)&&(r=a[n],r!=null))switch(n){case"value":i=r;break;case"defaultValue":c=r;break;case"multiple":l=r;default:_e(e,t,n,r,a,null)}t=i,a=c,e.multiple=!!l,t!=null?wl(e,!!l,t,!1):a!=null&&wl(e,!!l,a,!0);return;case"textarea":je("invalid",e),i=n=l=null;for(c in a)if(a.hasOwnProperty(c)&&(r=a[c],r!=null))switch(c){case"value":l=r;break;case"defaultValue":n=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:_e(e,t,c,r,a,null)}Do(e,l,n,i);return;case"option":for(g in a)a.hasOwnProperty(g)&&(l=a[g],l!=null)&&(g==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":_e(e,t,g,l,a,null));return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(l=0;l<ai.length;l++)je(ai[l],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:_e(e,t,N,l,a,null)}return;default:if(Zs(t)){for(U in a)a.hasOwnProperty(U)&&(l=a[U],l!==void 0&&Dc(e,t,U,l,a,void 0));return}}for(r in a)a.hasOwnProperty(r)&&(l=a[r],l!=null&&_e(e,t,r,l,a,null))}function jg(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,r=null,g=null,N=null,U=null;for(z in a){var q=a[z];if(a.hasOwnProperty(z)&&q!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":g=q;default:l.hasOwnProperty(z)||_e(e,t,z,null,l,q)}}for(var R in l){var z=l[R];if(q=a[R],l.hasOwnProperty(R)&&(z!=null||q!=null))switch(R){case"type":i=z;break;case"name":n=z;break;case"checked":N=z;break;case"defaultChecked":U=z;break;case"value":c=z;break;case"defaultValue":r=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(137,t));break;default:z!==q&&_e(e,t,R,z,l,q)}}Vs(e,c,r,g,N,U,i,n);return;case"select":z=c=r=R=null;for(i in a)if(g=a[i],a.hasOwnProperty(i)&&g!=null)switch(i){case"value":break;case"multiple":z=g;default:l.hasOwnProperty(i)||_e(e,t,i,null,l,g)}for(n in l)if(i=l[n],g=a[n],l.hasOwnProperty(n)&&(i!=null||g!=null))switch(n){case"value":R=i;break;case"defaultValue":r=i;break;case"multiple":c=i;default:i!==g&&_e(e,t,n,i,l,g)}t=r,a=c,l=z,R!=null?wl(e,!!a,R,!1):!!l!=!!a&&(t!=null?wl(e,!!a,t,!0):wl(e,!!a,a?[]:"",!1));return;case"textarea":z=R=null;for(r in a)if(n=a[r],a.hasOwnProperty(r)&&n!=null&&!l.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:_e(e,t,r,null,l,n)}for(c in l)if(n=l[c],i=a[c],l.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":R=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==i&&_e(e,t,c,n,l,i)}ko(e,R,z);return;case"option":for(var ne in a)R=a[ne],a.hasOwnProperty(ne)&&R!=null&&!l.hasOwnProperty(ne)&&(ne==="selected"?e.selected=!1:_e(e,t,ne,null,l,R));for(g in l)R=l[g],z=a[g],l.hasOwnProperty(g)&&R!==z&&(R!=null||z!=null)&&(g==="selected"?e.selected=R&&typeof R!="function"&&typeof R!="symbol":_e(e,t,g,R,l,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 ge in a)R=a[ge],a.hasOwnProperty(ge)&&R!=null&&!l.hasOwnProperty(ge)&&_e(e,t,ge,null,l,R);for(N in l)if(R=l[N],z=a[N],l.hasOwnProperty(N)&&R!==z&&(R!=null||z!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(f(137,t));break;default:_e(e,t,N,R,l,z)}return;default:if(Zs(t)){for(var Ue in a)R=a[Ue],a.hasOwnProperty(Ue)&&R!==void 0&&!l.hasOwnProperty(Ue)&&Dc(e,t,Ue,void 0,l,R);for(U in l)R=l[U],z=a[U],!l.hasOwnProperty(U)||R===z||R===void 0&&z===void 0||Dc(e,t,U,R,l,z);return}}for(var y in a)R=a[y],a.hasOwnProperty(y)&&R!=null&&!l.hasOwnProperty(y)&&_e(e,t,y,null,l,R);for(q in l)R=l[q],z=a[q],!l.hasOwnProperty(q)||R===z||R==null&&z==null||_e(e,t,q,R,l,z)}function Hd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ng(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,c=n.initiatorType,r=n.duration;if(i&&r&&Hd(c)){for(c=0,r=n.responseEnd,l+=1;l<a.length;l++){var g=a[l],N=g.startTime;if(N>r)break;var U=g.transferSize,q=g.initiatorType;U&&Hd(q)&&(g=g.responseEnd,c+=U*(g<r?1:(r-N)/(g-N)))}if(--l,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Oc=null,_c=null;function ms(e){return e.nodeType===9?e:e.ownerDocument}function wd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ld(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Uc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hc=null;function Tg(){var e=window.event;return e&&e.type==="popstate"?e===Hc?!1:(Hc=e,!0):(Hc=null,!1)}var Bd=typeof setTimeout=="function"?setTimeout:void 0,Ag=typeof clearTimeout=="function"?clearTimeout:void 0,qd=typeof Promise=="function"?Promise:void 0,Eg=typeof queueMicrotask=="function"?queueMicrotask:typeof qd<"u"?function(e){return qd.resolve(null).then(e).catch(Cg)}:Bd;function Cg(e){setTimeout(function(){throw e})}function Ja(e){return e==="head"}function Yd(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),pn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ni(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ni(a);for(var i=a.firstChild;i;){var c=i.nextSibling,r=i.nodeName;i[jn]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=c}}else a==="body"&&ni(e.ownerDocument.body);a=n}while(a);pn(t)}function Gd(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":wc(a),Gs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Rg(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[jn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=qt(e.nextSibling),e===null)break}return null}function Mg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=qt(e.nextSibling),e===null))return null;return e}function Xd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qt(e.nextSibling),e===null))return null;return e}function Lc(e){return e.data==="$?"||e.data==="$~"}function Bc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function zg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var qc=null;function Vd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return qt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Qd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Zd(e,t,a){switch(t=ms(a),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function ni(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gs(e)}var Yt=new Map,$d=new Set;function gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ca=b.d;b.d={f:kg,r:Dg,D:Og,C:_g,L:Ug,m:Hg,X:Lg,S:wg,M:Bg};function kg(){var e=Ca.f(),t=ss();return e||t}function Dg(e){var t=_l(e);t!==null&&t.tag===5&&t.type==="form"?rf(t):Ca.r(e)}var hn=typeof document>"u"?null:document;function Kd(e,t,a){var l=hn;if(l&&typeof t=="string"&&t){var n=Ot(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),$d.has(n)||($d.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),it(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Og(e){Ca.D(e),Kd("dns-prefetch",e,null)}function _g(e,t){Ca.C(e,t),Kd("preconnect",e,t)}function Ug(e,t,a){Ca.L(e,t,a);var l=hn;if(l&&e&&t){var n='link[rel="preload"][as="'+Ot(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Ot(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Ot(a.imageSizes)+'"]')):n+='[href="'+Ot(e)+'"]';var i=n;switch(t){case"style":i=mn(e);break;case"script":i=gn(e)}Yt.has(i)||(e=T({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(ii(i))||t==="script"&&l.querySelector(si(i))||(t=l.createElement("link"),it(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Hg(e,t){Ca.m(e,t);var a=hn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ot(l)+'"][href="'+Ot(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=gn(e)}if(!Yt.has(i)&&(e=T({rel:"modulepreload",href:e},t),Yt.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(si(i)))return}l=a.createElement("link"),it(l,"link",e),Pe(l),a.head.appendChild(l)}}}function wg(e,t,a){Ca.S(e,t,a);var l=hn;if(l&&e){var n=Ul(l).hoistableStyles,i=mn(e);t=t||"default";var c=n.get(i);if(!c){var r={loading:0,preload:null};if(c=l.querySelector(ii(i)))r.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(i))&&Yc(e,a);var g=c=l.createElement("link");Pe(g),it(g,"link",e),g._p=new Promise(function(N,U){g.onload=N,g.onerror=U}),g.addEventListener("load",function(){r.loading|=1}),g.addEventListener("error",function(){r.loading|=2}),r.loading|=4,ps(c,t,l)}c={type:"stylesheet",instance:c,count:1,state:r},n.set(i,c)}}}function Lg(e,t){Ca.X(e,t);var a=hn;if(a&&e){var l=Ul(a).hoistableScripts,n=gn(e),i=l.get(n);i||(i=a.querySelector(si(n)),i||(e=T({src:e,async:!0},t),(t=Yt.get(n))&&Gc(e,t),i=a.createElement("script"),Pe(i),it(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Bg(e,t){Ca.M(e,t);var a=hn;if(a&&e){var l=Ul(a).hoistableScripts,n=gn(e),i=l.get(n);i||(i=a.querySelector(si(n)),i||(e=T({src:e,async:!0,type:"module"},t),(t=Yt.get(n))&&Gc(e,t),i=a.createElement("script"),Pe(i),it(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Jd(e,t,a,l){var n=(n=me.current)?gs(n):null;if(!n)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=mn(a.href),a=Ul(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=mn(a.href);var i=Ul(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(ii(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Yt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yt.set(e,a),i||qg(n,e,a,c.state))),t&&l===null)throw Error(f(528,""));return c}if(t&&l!==null)throw Error(f(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gn(a),a=Ul(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function mn(e){return'href="'+Ot(e)+'"'}function ii(e){return'link[rel="stylesheet"]['+e+"]"}function Wd(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function qg(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",a),Pe(t),e.head.appendChild(t))}function gn(e){return'[src="'+Ot(e)+'"]'}function si(e){return"script[async]"+e}function Fd(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ot(a.href)+'"]');if(l)return t.instance=l,Pe(l),l;var n=T({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),it(l,"style",n),ps(l,a.precedence,e),t.instance=l;case"stylesheet":n=mn(a.href);var i=e.querySelector(ii(n));if(i)return t.state.loading|=4,t.instance=i,Pe(i),i;l=Wd(a),(n=Yt.get(n))&&Yc(l,n),i=(e.ownerDocument||e).createElement("link"),Pe(i);var c=i;return c._p=new Promise(function(r,g){c.onload=r,c.onerror=g}),it(i,"link",l),t.state.loading|=4,ps(i,a.precedence,e),t.instance=i;case"script":return i=gn(a.src),(n=e.querySelector(si(i)))?(t.instance=n,Pe(n),n):(l=a,(n=Yt.get(i))&&(l=T({},a),Gc(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Pe(n),it(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ps(l,a.precedence,e));return t.instance}function ps(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,c=0;c<l.length;c++){var r=l[c];if(r.dataset.precedence===t)i=r;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vs=null;function Id(e,t,a){if(vs===null){var l=new Map,n=vs=new Map;n.set(a,l)}else n=vs,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[jn]||i[We]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var r=l.get(c);r?r.push(i):l.set(c,[i])}}return l}function Pd(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Yg(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function eh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Gg(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=mn(l.href),i=t.querySelector(ii(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ys.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Pe(i);return}i=t.ownerDocument||t,l=Wd(l),(n=Yt.get(n))&&Yc(l,n),i=i.createElement("link"),Pe(i);var c=i;c._p=new Promise(function(r,g){c.onload=r,c.onerror=g}),it(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ys.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Xc=0;function Xg(e,t){return e.stylesheets&&e.count===0&&bs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&bs(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Xc===0&&(Xc=62500*Ng());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bs(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Xc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xs=null;function bs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xs=new Map,t.forEach(Vg,e),xs=null,ys.call(e))}function Vg(e,t){if(!(t.state.loading&4)){var a=xs.get(e);if(a)var l=a.get(null);else{a=new Map,xs.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),l=c)}l&&a.set(null,l)}n=t.instance,c=n.getAttribute("data-precedence"),i=a.get(c)||l,i===l&&a.set(null,n),a.set(c,n),this.count++,l=ys.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var ui={$$typeof:O,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Qg(e,t,a,l,n,i,c,r,g){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ul(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.hiddenUpdates=ul(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function th(e,t,a,l,n,i,c,r,g,N,U,q){return e=new Qg(e,t,a,c,g,N,U,q,r),t=1,i===!0&&(t|=24),i=Nt(3,null,null,t),e.current=i,i.stateNode=e,t=ju(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Eu(i),e}function ah(e){return e?(e=Ql,e):Ql}function lh(e,t,a,l,n,i){n=ah(n),l.context===null?l.context=n:l.pendingContext=n,l=La(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Ba(e,l,t),a!==null&&(St(a,e,t),Bn(a,e,t))}function nh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Vc(e,t){nh(e,t),(e=e.alternate)&&nh(e,t)}function ih(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&St(t,e,67108864),Vc(e,67108864)}}function sh(e){if(e.tag===13||e.tag===31){var t=Rt();t=mt(t);var a=ml(e,t);a!==null&&St(a,e,t),Vc(e,t)}}var Ss=!0;function Zg(e,t,a,l){var n=A.T;A.T=null;var i=b.p;try{b.p=2,Qc(e,t,a,l)}finally{b.p=i,A.T=n}}function $g(e,t,a,l){var n=A.T;A.T=null;var i=b.p;try{b.p=8,Qc(e,t,a,l)}finally{b.p=i,A.T=n}}function Qc(e,t,a,l){if(Ss){var n=Zc(l);if(n===null)kc(e,t,l,js,a),ch(e,l);else if(Jg(n,e,t,a,l))l.stopPropagation();else if(ch(e,l),t&4&&-1<Kg.indexOf(e)){for(;n!==null;){var i=_l(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=ht(i.pendingLanes);if(c!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var g=1<<31-dt(c);r.entanglements[1]|=g,c&=~g}aa(i),(Me&6)===0&&(ns=rt()+500,ti(0))}}break;case 31:case 13:r=ml(i,2),r!==null&&St(r,i,2),ss(),Vc(i,2)}if(i=Zc(l),i===null&&kc(e,t,l,js,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else kc(e,t,l,null,a)}}function Zc(e){return e=Ks(e),$c(e)}var js=null;function $c(e){if(js=null,e=Ol(e),e!==null){var t=C(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=x(t),e!==null)return e;e=null}else if(a===31){if(e=H(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return js=e,null}function uh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ls()){case il:return 2;case mi:return 8;case Ma:case Rl:return 32;case Ml:return 268435456;default:return 32}default:return 32}}var Kc=!1,Wa=null,Fa=null,Ia=null,ci=new Map,oi=new Map,Pa=[],Kg="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 ch(e,t){switch(e){case"focusin":case"focusout":Wa=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(t.pointerId)}}function ri(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=_l(t),t!==null&&ih(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Jg(e,t,a,l,n){switch(t){case"focusin":return Wa=ri(Wa,e,t,a,l,n),!0;case"dragenter":return Fa=ri(Fa,e,t,a,l,n),!0;case"mouseover":return Ia=ri(Ia,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return ci.set(i,ri(ci.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,oi.set(i,ri(oi.get(i)||null,e,t,a,l,n)),!0}return!1}function oh(e){var t=Ol(e.target);if(t!==null){var a=C(t);if(a!==null){if(t=a.tag,t===13){if(t=x(a),t!==null){e.blockedOn=t,Ys(e.priority,function(){sh(a)});return}}else if(t===31){if(t=H(a),t!==null){e.blockedOn=t,Ys(e.priority,function(){sh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ns(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);$s=l,a.target.dispatchEvent(l),$s=null}else return t=_l(a),t!==null&&ih(t),e.blockedOn=a,!1;t.shift()}return!0}function rh(e,t,a){Ns(e)&&a.delete(t)}function Wg(){Kc=!1,Wa!==null&&Ns(Wa)&&(Wa=null),Fa!==null&&Ns(Fa)&&(Fa=null),Ia!==null&&Ns(Ia)&&(Ia=null),ci.forEach(rh),oi.forEach(rh)}function Ts(e,t){e.blockedOn===t&&(e.blockedOn=null,Kc||(Kc=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Wg)))}var As=null;function fh(e){As!==e&&(As=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){As===e&&(As=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if($c(l||a)===null)continue;break}var i=_l(a);i!==null&&(e.splice(t,3),t-=3,Zu(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function pn(e){function t(g){return Ts(g,e)}Wa!==null&&Ts(Wa,e),Fa!==null&&Ts(Fa,e),Ia!==null&&Ts(Ia,e),ci.forEach(t),oi.forEach(t);for(var a=0;a<Pa.length;a++){var l=Pa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Pa.length&&(a=Pa[0],a.blockedOn===null);)oh(a),a.blockedOn===null&&Pa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],c=n[ut]||null;if(typeof i=="function")c||fh(a);else if(c){var r=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[ut]||null)r=c.formAction;else if($c(n)!==null)continue}else r=c.action;typeof r=="function"?a[l+1]=r:(a.splice(l,3),l-=3),fh(a)}}}function dh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Jc(e){this._internalRoot=e}Es.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var a=t.current,l=Rt();lh(a,l,e,t,null,null)},Es.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lh(e.current,2,null,e,null,null),ss(),t[Xt]=null}};function Es(e){this._internalRoot=e}Es.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dl();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Pa.length&&t!==0&&t<Pa[a].priority;a++);Pa.splice(a,0,e),a===0&&oh(e)}};var hh=o.version;if(hh!=="19.2.6")throw Error(f(527,hh,"19.2.6"));b.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=m(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var Fg={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cs.isDisabled&&Cs.supportsFiber)try{za=Cs.inject(Fg),ft=Cs}catch{}}return di.createRoot=function(e,t){if(!v(e))throw Error(f(299));var a=!1,l="",n=bf,i=Sf,c=jf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=th(e,1,!1,null,null,a,l,null,n,i,c,dh),e[Xt]=t.current,zc(e),new Jc(t)},di.hydrateRoot=function(e,t,a){if(!v(e))throw Error(f(299));var l=!1,n="",i=bf,c=Sf,r=jf,g=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(r=a.onRecoverableError),a.formState!==void 0&&(g=a.formState)),t=th(e,1,!0,t,a??null,l,n,g,i,c,r,dh),t.context=ah(null),a=t.current,l=Rt(),l=mt(l),n=La(l),n.callback=null,Ba(a,n,l),a=l,t.current.lanes=a,cl(t,a),aa(t),e[Xt]=t.current,zc(e),new Es(t)},di.version="19.2.6",di}var Nh;function cp(){if(Nh)return Ic.exports;Nh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),Ic.exports=up(),Ic.exports}var op=cp();const rp=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fp=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,d,f)=>f?f.toUpperCase():d.toLowerCase()),Th=u=>{const o=fp(u);return o.charAt(0).toUpperCase()+o.slice(1)},Uh=(...u)=>u.filter((o,d,f)=>!!o&&o.trim()!==""&&f.indexOf(o)===d).join(" ").trim(),dp=u=>{for(const o in u)if(o.startsWith("aria-")||o==="role"||o==="title")return!0};var hp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const mp=D.forwardRef(({color:u="currentColor",size:o=24,strokeWidth:d=2,absoluteStrokeWidth:f,className:v="",children:C,iconNode:x,...H},j)=>D.createElement("svg",{ref:j,...hp,width:o,height:o,stroke:u,strokeWidth:f?Number(d)*24/Number(o):d,className:Uh("lucide",v),...!C&&!dp(H)&&{"aria-hidden":"true"},...H},[...x.map(([m,E])=>D.createElement(m,E)),...Array.isArray(C)?C:[C]]));const st=(u,o)=>{const d=D.forwardRef(({className:f,...v},C)=>D.createElement(mp,{ref:C,iconNode:o,className:Uh(`lucide-${rp(Th(u))}`,`lucide-${u}`,f),...v}));return d.displayName=Th(u),d};const gp=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"m9.5 17 5-5",key:"nakeu6"}],["path",{d:"m9.5 12 5 5",key:"1hccrj"}]],pp=st("archive-x",gp);const vp=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],yp=st("ban",vp);const xp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],bp=st("chart-column",xp);const Sp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ah=st("chevron-down",Sp);const jp=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Hh=st("clock",jp);const Np=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Tp=st("file-text",Np);const Ap=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Ep=st("languages",Ap);const Cp=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Rp=st("leaf",Cp);const Mp=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],zp=st("moon",Mp);const kp=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Dp=st("pause",kp);const Op=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],_p=st("play",Op);const Up=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],ao=st("rotate-cw",Up);const Hp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wp=st("search",Hp);const Lp=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Bp=st("share-2",Lp);const qp=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Yp=st("sparkles",qp);const Gp=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Xp=st("sun",Gp);const Vp=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wh=st("triangle-alert",Vp);var Lh=_h();async function lo(){const u=await fetch("/api/projects");if(!u.ok)throw new Error("Failed to load projects");return(await u.json()).projects}async function no(u={}){const o=await fetch("/api/ingest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)});if(!o.ok)throw new Error("Failed to start ingest");return(await o.json()).jobId}async function Rs(u){const o=await fetch(`/api/ingest/jobs/${u}`);if(!o.ok)throw new Error("Failed to load ingest job");return await o.json()}async function io(u,o={}){const d=new URLSearchParams;o.limit!==void 0&&d.set("limit",String(o.limit)),o.offset!==void 0&&d.set("offset",String(o.offset));const f=d.toString()?`?${d.toString()}`:"",v=await fetch(`/api/projects/${u}/timeline${f}`);if(!v.ok)throw new Error("Failed to load timeline");return await v.json()}async function Ms(u){const o=await fetch(`/api/projects/${u}/token-usage/daily`);if(!o.ok)throw new Error("Failed to load daily token usage");return await o.json()}async function Qp(u,o){const d=new URLSearchParams;o&&d.set("projectId",o);const f=d.toString()?`?${d.toString()}`:"",v=await fetch(`/api/task-journeys/${u}${f}`);if(!v.ok)throw new Error("Failed to load task journey detail");return await v.json()}async function Zp(u,o){const d=new URLSearchParams;o&&d.set("projectId",o);const f=d.toString()?`?${d.toString()}`:"",v=await fetch(`/api/task-journeys/${u}/context-replay${f}`);if(!v.ok)throw new Error("Failed to load context replay");return await v.json()}async function $p(){await fetch("/api/reset",{method:"POST"})}const Kp=1e6;function Ee(u){return`${((Number.isFinite(u)&&u>0?u:0)/Kp).toFixed(3)}M`}const Os=200,po=360,vo=22,Ie={top:20,right:24,bottom:44,left:58},Jp=new Intl.NumberFormat(void 0,{maximumFractionDigits:1,style:"percent"});function Wp({data:u,loading:o=!1,initiallyExpanded:d=!1,title:f="Daily Token Usage",subtitle:v,showHeaderToggle:C=!0,expanded:x,onExpandedChange:H,maxVisiblePoints:j,className:m,copy:E,variant:T="bar"}){const k=E,J=f??k?.defaultTitle??"Daily Token Usage",[_,P]=D.useState(d),V=x??_,$=D.useId(),ee=D.useId(),O=D.useId(),ie=D.useMemo(()=>Ip(u,j),[u,j]),de=D.useMemo(()=>Pp(ie),[ie]),F=D.useMemo(()=>e0(ie,T),[ie,T]),I=ie.length>0,he=m?`token-chart-panel ${m}`:"token-chart-panel",B=v??(o?k?.loading??"Loading daily usage":I?k?.visibleDays(ie.length)??`${ie.length} visible day${ie.length===1?"":"s"}`:k?.noVisibleDays??"No visible days");function K(Y){H?.(Y),x===void 0&&P(Y)}return s.jsxs("section",{className:he,"aria-labelledby":$,children:[s.jsxs("div",{className:"token-chart-header",children:[s.jsxs("div",{className:"token-chart-title-block",children:[s.jsx("p",{className:"token-chart-eyebrow",children:k?.eyebrow??"Tokens"}),s.jsx("h2",{id:$,className:"token-chart-title",children:J}),s.jsx("p",{className:"token-chart-subtitle",children:B})]}),C?s.jsxs("dl",{className:"token-chart-summary","aria-label":k?.summaryAria??"Daily token usage summary",children:[s.jsxs("div",{className:"token-chart-summary-item",children:[s.jsx("dt",{children:k?.totalTokens??"Total tokens"}),s.jsx("dd",{children:vn(de.total)})]}),s.jsxs("div",{className:"token-chart-summary-item",children:[s.jsx("dt",{children:k?.kvHit??"KV hit"}),s.jsx("dd",{children:c0(de.kvHit)})]})]}):null,C?s.jsxs("button",{className:"token-chart-toggle",type:"button","aria-controls":ee,"aria-expanded":V,onClick:()=>K(!V),children:[s.jsx("span",{children:V?k?.hideChart??"Hide daily token usage chart":k?.showChart??"Show daily token usage chart"}),s.jsx("span",{className:"token-chart-toggle-icon","aria-hidden":"true",children:V?"-":"+"})]}):null]}),V?s.jsx("div",{id:ee,className:"token-chart-body",children:I?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"token-chart-kpis","aria-label":k?.breakdownAria??"Visible token usage breakdown",children:[s.jsx(zs,{label:k?.input??"Input",value:de.input}),s.jsx(zs,{label:k?.cachedInput??"Cached input",value:de.cachedInput}),s.jsx(zs,{label:k?.output??"Output",value:de.output}),s.jsx(zs,{label:k?.reasoning??"Reasoning",value:de.reasoning})]}),s.jsx("div",{className:"token-chart-scroll",role:"group","aria-label":k?.chartAria??"Daily token usage chart",children:T==="horizon"?Fp(F,k,O):s.jsxs("svg",{className:"token-chart-svg",role:"img","aria-labelledby":O,viewBox:`0 0 ${F.width} ${Os}`,width:F.width,height:Os,children:[s.jsx("title",{id:O,children:k?.chartTitle??"Daily token usage by date"}),F.gridLines.map(Y=>s.jsxs("g",{className:"token-chart-grid-line",children:[s.jsx("line",{x1:Ie.left,x2:F.width-Ie.right,y1:Y.y,y2:Y.y}),s.jsx("text",{x:Ie.left-10,y:Y.y+4,children:u0(Y.value)})]},Y.value)),s.jsx("line",{className:"token-chart-axis",x1:Ie.left,x2:F.width-Ie.right,y1:F.bottom,y2:F.bottom}),T==="area"?s.jsxs(s.Fragment,{children:[F.layers.map(Y=>s.jsx("path",{className:`token-chart-area ${Y.className}`,d:Y.path,children:s.jsx("title",{children:Y.label})},Y.key)),F.dateLabels.map(Y=>s.jsx("text",{className:"token-chart-date-label",x:Y.x,y:F.bottom+24,children:Y.label},Y.label))]}):F.bars.map(Y=>s.jsxs("g",{className:"token-chart-bar-group",children:[s.jsx("title",{children:`${Y.label}: ${vn(Y.total)} ${k?.totalSuffix??"total tokens"}`}),Y.segments.map(X=>X.height>0?s.jsx("rect",{className:`token-chart-segment ${X.className}`,x:Y.x,y:X.y,width:Y.width,height:X.height,rx:4,children:s.jsx("title",{children:`${Y.label} ${X.label}: ${vn(X.value)} ${k?.tokenSuffix??"tokens"}`})},X.key):null),s.jsx("text",{className:"token-chart-date-label",x:Y.centerX,y:F.bottom+24,children:Y.label})]},Y.key)),"trendPath"in F&&F.trendPath?s.jsx("path",{className:"token-chart-trend",d:F.trendPath}):null,T==="bar"?F.bars.map(Y=>s.jsx("circle",{className:"token-chart-trend-point",cx:Y.centerX,cy:Y.trendY,r:3.5,children:s.jsx("title",{children:`${Y.label} ${k?.trendLabel??"trend"}: ${vn(Y.total)} ${k?.tokenSuffix??"tokens"}`})},`${Y.key}-trend`)):null,T==="area"?F.centerXs.map((Y,X)=>s.jsx("circle",{className:"token-chart-trend-point",cx:Y,cy:F.trendYs[X],r:3.5,children:s.jsx("title",{children:`${F.dateLabels[X].label} ${k?.trendLabel??"trend"}: ${vn(F.maxTotal)} ${k?.tokenSuffix??"tokens"}`})},`trend-${X}`)):null]})}),T==="horizon"?s.jsxs("div",{className:"token-chart-horizon-legend","aria-label":k?.legendAria??"Token usage legend",children:[s.jsx(Ra,{className:"token-chart-swatch-cached",label:k?.cachedInput??"Cached input"}),s.jsx(Ra,{className:"token-chart-swatch-input",label:k?.input??"Input"}),s.jsx(Ra,{className:"token-chart-swatch-output",label:k?.output??"Output"}),s.jsx(Ra,{className:"token-chart-swatch-reasoning",label:k?.reasoning??"Reasoning"})]}):s.jsxs("ul",{className:"token-chart-legend","aria-label":k?.legendAria??"Token usage legend",children:[s.jsx(Ra,{className:"token-chart-swatch-cached",label:k?.cachedInput??"Cached input"}),s.jsx(Ra,{className:"token-chart-swatch-input",label:k?.input??"Input"}),s.jsx(Ra,{className:"token-chart-swatch-output",label:k?.output??"Output"}),s.jsx(Ra,{className:"token-chart-swatch-reasoning",label:k?.reasoning??"Reasoning"}),s.jsx(Ra,{className:"token-chart-swatch-trend",label:k?.totalTrend??"Total trend"})]})]}):s.jsx("div",{className:"token-chart-empty","aria-live":"polite",children:o?k?.emptyLoading??"Loading daily token usage...":k?.empty??"No daily token usage yet."})}):null]})}function Fp(u,o,d){return s.jsxs("svg",{className:"token-chart-svg",role:"img","aria-labelledby":d,viewBox:`0 0 ${u.width} ${u.height}`,width:u.width,height:u.height,children:[s.jsx("title",{id:d,children:o?.chartTitle??"Daily token usage by date"}),u.rows.map((C,x)=>{const H=8+x*28;return s.jsxs("g",{className:"token-chart-horizon-row",transform:`translate(0, ${H})`,children:[s.jsx("text",{className:"token-chart-horizon-label",x:6,y:28/2+4,children:C.label}),C.bands.map((j,m)=>s.jsx("path",{className:`token-chart-horizon-band ${j.className}`,d:j.path,children:s.jsx("title",{children:`${C.label} band ${m+1}`})},m))]},C.key)}),s.jsx("line",{className:"token-chart-axis",x1:72,x2:u.width-24,y1:u.bottom,y2:u.bottom}),u.dateLabels.map(C=>s.jsx("text",{className:"token-chart-date-label",x:C.x,y:u.bottom+22,children:C.label},C.label))]})}function zs({label:u,value:o}){return s.jsxs("div",{className:"token-chart-kpi",children:[s.jsx("span",{children:u}),s.jsx("strong",{children:vn(o)})]})}function Ra({className:u,label:o}){return s.jsxs("li",{className:"token-chart-legend-item",children:[s.jsx("span",{className:`token-chart-swatch ${u}`,"aria-hidden":"true"}),s.jsx("span",{children:o})]})}function Ip(u,o){const f=(Array.isArray(u)?u:u?.points??[]).map(v=>({date:v.date,input:Mt(v.input),output:Mt(v.output),reasoning:Mt(v.reasoning),cachedInput:Mt(v.cachedInput),total:Mt(v.total)})).filter(v=>v.date.trim().length>0).sort(s0);return o===void 0||o<=0?f:f.slice(-o)}function Pp(u){const o=u.reduce((d,f)=>{const v=Us(f);return d.total+=v.total,d.input+=f.input,d.output+=f.output,d.reasoning+=f.reasoning,d.cachedInput+=f.cachedInput,d},{total:0,input:0,output:0,reasoning:0,cachedInput:0,kvHit:null});return o.kvHit=o.input>0?i0(o.cachedInput/o.input,0,1):null,o}function e0(u,o){return o==="area"?a0(u):o==="horizon"?l0(u):t0(u)}function t0(u){const o=Math.max(po,Ie.left+Ie.right+u.length*vo),d=Os-Ie.bottom,f=d-Ie.top,v=o-Ie.left-Ie.right,C=u.map(Us),x=bo(Math.max(1,...C.map(k=>k.total))),H=u.length>0?v/u.length:v,j=Math.min(30,Math.max(12,H*.54)),m=u.map((k,J)=>{const _=C[J],P=Ie.left+H*J+H/2,V=P-j/2,$=_s(_.total,x,f,d);let ee=d;const O=n0(_).map(ie=>{const de=yo(ie.value,x,f);return ee-=de,{...ie,y:ee,height:de}});return{key:`${k.date}-${J}`,label:xo(k.date),total:_.total,centerX:P,trendY:$,x:V,y:$,width:j,segments:O}}),E=yn(m.map(k=>({x:k.centerX,y:k.trendY}))),T=[0,.25,.5,.75,1].map(k=>{const J=x*k;return{value:J,y:_s(J,x,f,d)}});return{width:o,bottom:d,bars:m,trendPath:E,gridLines:T}}function a0(u){const o=Math.max(po,Ie.left+Ie.right+u.length*vo),d=Os-Ie.bottom,f=d-Ie.top,v=o-Ie.left-Ie.right,C=u.map(Us),x=bo(Math.max(1,...C.map($=>$.total))),H=u.length>0?v/u.length:v,j=u.map(($,ee)=>Ie.left+H*ee+H/2),m=u.map(($,ee)=>({x:j[ee],label:xo($.date)})),E=["cached","input","output","reasoning"],T={cached:"token-chart-segment-cached",input:"token-chart-segment-input",output:"token-chart-segment-output",reasoning:"token-chart-segment-reasoning"},k=E.map(()=>[]);for(let $=0;$<u.length;$++){const ee=C[$];let O=d;for(const ie of E){const de=yo(Bh(ee,ie),x,f);O-=de,k[E.indexOf(ie)][$]=O}}const J=E.map(($,ee)=>{const O=k[ee],ie=ee===0?Array(u.length).fill(d):k[ee-1],de=j.map((K,Y)=>({x:K,y:O[Y]})),F=j.map((K,Y)=>({x:K,y:ie[Y]})),I=yn(de),he=yn([...F].reverse()),B=`M ${j[0]} ${ie[0]} ${I.slice(1)} L ${j[j.length-1]} ${ie[ie.length-1]} ${he.slice(1)} Z`;return{key:$,label:$==="cached"?"cached input":$,className:T[$],path:B}}),_=C.map($=>_s($.total,x,f,d)),P=yn(j.map(($,ee)=>({x:$,y:_[ee]}))),V=[0,.25,.5,.75,1].map($=>({value:x*$,y:_s(x*$,x,f,d)}));return{width:o,bottom:d,layers:J,trendPath:P,gridLines:V,centerXs:j,trendYs:_,dateLabels:m,maxTotal:x}}function l0(u){const f={top:8,right:24,bottom:36,left:72},v=Math.max(po,f.left+f.right+u.length*vo),C=v-f.left-f.right,x=u.map(Us),H=u.length>0?C/u.length:C,j=[{key:"cachedInput",label:"Cached input",className:"token-chart-horizon-cached"},{key:"input",label:"Input",className:"token-chart-horizon-input"},{key:"output",label:"Output",className:"token-chart-horizon-output"},{key:"reasoning",label:"Reasoning",className:"token-chart-horizon-reasoning"}],m=j.map(J=>{const _=x.map(ee=>Bh(ee,J.key)??0),V=bo(Math.max(1,..._))/3,$=[];for(let ee=0;ee<3;ee++){const O=ee*V,ie=(ee+1)*V,de=28/3,I=_.map(le=>Math.max(0,Math.min(le,ie)-O)).map(le=>le/V*de),he=u.map((le,ue)=>f.left+H*ue+H/2),B=de,K=I.map(le=>B-le),Y=he.map((le,ue)=>({x:le,y:K[ue]})),X=yn(Y);yn(he.map(le=>({x:le,y:B})).reverse());const W=`M ${he[0]} ${B} ${X.slice(1)} L ${he[he.length-1]} ${B}`;$.push({className:`token-chart-horizon-band-${ee+1} token-chart-horizon-${J.key}`,path:W})}return{key:J.key,label:J.label,bands:$}}),E=f.top+f.bottom+j.length*28,T=E-f.bottom,k=u.map((J,_)=>({x:f.left+H*_+H/2,label:xo(J.date)}));return{width:v,height:E,bottom:T,rows:m,dateLabels:k}}function Bh(u,o){switch(o){case"cached":return u.cachedInput;case"cachedInput":return u.cachedInput;case"input":return u.input;case"output":return u.output;case"reasoning":return u.reasoning;case"other":return u.other;case"total":return u.total;default:return 0}}function Us(u){const o=Mt(u.input),d=Math.min(Mt(u.cachedInput),o),f=Math.max(0,o-d),v=Mt(u.output),C=Mt(u.reasoning),x=o+v+C,H=Math.max(Mt(u.total),x),j=Math.max(0,H-x);return{cachedInput:d,input:f,output:v,reasoning:C,other:j,total:H}}function n0(u){return[{key:"cached",label:"cached input",value:u.cachedInput,className:"token-chart-segment-cached"},{key:"input",label:"input",value:u.input,className:"token-chart-segment-input"},{key:"output",label:"output",value:u.output,className:"token-chart-segment-output"},{key:"reasoning",label:"reasoning",value:u.reasoning,className:"token-chart-segment-reasoning"},{key:"other",label:"other",value:u.other,className:"token-chart-segment-other"}]}function yn(u){if(u.length===0)return"";if(u.length===1)return`M ${u[0].x} ${u[0].y}`;if(u.length===2)return`M ${u[0].x} ${u[0].y} L ${u[1].x} ${u[1].y}`;const o=[`M ${u[0].x} ${u[0].y}`];for(let v=1;v<u.length-1;v+=1){const C=u[v],x=u[v+1],H=(C.x+x.x)/2,j=(C.y+x.y)/2;o.push(`Q ${C.x} ${C.y} ${H} ${j}`)}const d=u[u.length-2],f=u[u.length-1];return o.push(`Q ${d.x} ${d.y} ${f.x} ${f.y}`),o.join(" ")}function yo(u,o,d){return Mt(u)/o*d}function _s(u,o,d,f){return f-yo(u,o,d)}function Mt(u){return Number.isFinite(u)&&u>0?u:0}function i0(u,o,d){return Math.min(d,Math.max(o,u))}function s0(u,o){const d=ro(u.date),f=ro(o.date);return d!==null&&f!==null?d-f:d!==null?-1:f!==null?1:u.date.localeCompare(o.date)}function ro(u){const o=Date.parse(u.length===10?`${u}T00:00:00Z`:u);return Number.isNaN(o)?null:o}function xo(u){const o=ro(u);return o===null?u:new Intl.DateTimeFormat(void 0,{month:"numeric",day:"numeric",timeZone:"UTC"}).format(o)}function vn(u){return Ee(Mt(u))}function u0(u){return Ee(Mt(u))}function c0(u){return u===null?"n/a":Jp.format(u)}function bo(u){if(u<=0)return 1;const o=10**Math.floor(Math.log10(u)),d=u/o;return(d<=2?2:d<=5?5:10)*o}function o0(u){return u==="zh-CN"?"zh-CN":"en"}const r0={en:{brandSubtitle:"The black box of your coding agents",language:{short:"中",aria:"Switch language to Simplified Chinese",title:"Switch language to Simplified Chinese"},theme:{aria:"Toggle theme",names:{light:"Bright Command Center",dark:"Dark Command Center",forest:"Forest Lab",plasma:"Plasma Violet"}},topbar:{agentLogRoot:"Agent log root",agentLogRootAria:"Agent log root path",agentLogRootPlaceholder:"Blank scans default Codex logs",source:"Source",sourceAria:"Agent log source",scan:"Scan Agent Logs"},title:{eyebrow:"Project Black Box",emptyProject:"No project indexed yet",lead:""},projectControls:{provider:"Provider",providerAria:"Project provider",project:"Project",projectAria:"Project",all:"All",noProvider:"No provider"},metrics:{projects:"Projects",events:"Events",tasks:"Tasks",tokens:"Tokens",kvHit:"KV hit",cost:"Est. cost",showDailyTokens:"Show daily token usage chart",hideDailyTokens:"Hide daily token usage chart",dailyUsageByDay:"Daily usage by day"},empty:{loadingTitle:"Loading SuperView index",loadingDetail:"Checking local SQLite state.",noRunsTitle:"No agent runs indexed",noRunsDetail:"Scan local Codex, Claude Code, or OpenCode logs to build the first timeline.",noProviderTitle:"No projects for this provider",noProviderDetail:"Switch the project filter to All, or scan logs for the selected provider.",source:"Agent log source",sourceAria:"Empty agent log source",root:"Agent log root path",rootAria:"Empty agent log root path"},loading:{scanningLogs:"Scanning agent logs",loadingTimeline:"Loading timeline page",loadingIndex:"Loading SuperView index",loadingDailyTokens:"Loading daily token usage",steady:"Keeping the workspace steady while SuperView updates.",aria:"Blocking operation"},timeline:{heading:"CLI Conversation",rangeOf:"of",loaded:(u,o)=>`${u} task journeys loaded from ${o} events`,prevPage:"Prev page",nextPage:"Next page",emptyPage:"No user-input task journeys are visible on this page.",aria:"Task conversation thread",masterAria:"User input index",detailsAria:"Conversation details",masterTitle:"User inputs",detailsTitle:"Conversation details",statusLegendAria:"Run status legend",statusLegendRunning:"Running",statusLegendSuccess:"Success",statusLegendFailed:"Failed",detailTabsAria:"Thread detail tabs",conversationTab:"Conversation",contextReplayTab:"Context Replay",contextReplayLedgerAria:"Context Replay ledger",contextReplayLoading:"Loading observable context...",contextReplayEmpty:"Open this task after details are indexed to inspect observable context.",contextReplayObserved:"Observable log evidence only: prompt, tool I/O, file references, verification, warnings, and final response.",contextReplayBlocks:"blocks",contextReplaySnapshotRail:"Context snapshot rail",contextReplayWarnings:"Context warnings",contextReplayNoWarnings:"No warnings for this snapshot",contextReplayWarningJump:"Jump to the related context block",contextReplayActiveContext:"Carried forward context",contextReplayAdded:"Newly added",contextReplayChanged:"Changed or contradicted",contextReplayDropped:"Dropped or stale",contextReplayLaneActive:"Carried forward context",contextReplayLaneRetired:"Retired blocks",contextReplayLaneWarnings:"Warning signals",contextReplayMiniSceneAria:"Context flow swim lanes",contextReplaySource:"Source",contextReplayReason:"Why",contextReplayTokens:"Est. tokens",contextReplayInput:"Input",contextReplayOutput:"Output",contextReplayTokenUsage:"Tokens",contextReplayStep:"Step",contextReplayFromStep:u=>`from step ${u}`,contextReplayAutoReplay:"Auto replay",contextReplayAutoStop:"Stop",contextReplayInspector:"Context evidence",contextReplaySelectedBlock:"Selected block",contextReplayEvent:"Event",contextReplayConfidence:"Confidence",contextReplayNoSelection:"Select a context block to inspect its source, state, and reason.",emptySelection:"Select a user input",nextInput:"Next input",sessionEnd:"Session end",eventCount:u=>`${u} events`,loadingDetails:"Loading details",tokens:"tokens",kvHit:"KV hit",agentWork:"Agent work",viewProcess:"View process...",hideProcess:"Hide process...",backgroundWork:"Background Work",log:"Log",entries:"entries",noBackground:"No background work captured for this task.",noLog:"No tool or verification log entries captured.",user:"User",expand:"Expand",collapse:"Collapse",skills:"Skills",hotkeyHint:"↑↓ switch journey · ←→ switch step · W S A D switch block",resetDatabase:"Reset database",resetDatabaseConfirm:"This will permanently delete all indexed data. Scan again to rebuild. Continue?",share:"Share",shareCopied:"Copied to clipboard!",shareCardTitle:"Context Replay Summary",shareClose:"Close",shareCopy:"Copy summary",shareCopyMarkdown:"Copy as Markdown",shareProject:"Project",shareProvider:"Provider",shareSteps:"Steps",shareTokenUsage:"Token usage",shareInput:"Input",shareOutput:"Output",shareTotal:"Total",shareContextBlocks:"Context blocks",shareActive:"Active",shareRetired:"Retired",shareSnapshotOf:(u,o)=>`Snapshot ${u} / ${o}`,shareTimestamp:"Shared at",shareHeroCacheHit:u=>`${u} cache hit`,shareHeroBigTokens:u=>`${u} tokens`,shareHeroLongRun:u=>`${u} on one task`,shareHeroRiskSignals:u=>`${u} risk signal${u===1?"":"s"}`,shareHeroFailedStep:u=>`Failed at step ${u}`,shareHeroStepReplay:u=>`${u} step replay`,shareCaptionCacheHit:(u,o)=>`Agent reused ${u} cached tokens across ${o} steps.`,shareCaptionBigTokens:u=>`Spent across ${u} reasoning steps.`,shareCaptionLongRun:u=>`${u} steps of agent work in one task journey.`,shareCaptionRiskSignals:"Anomalies detected in the agent's reasoning chain.",shareCaptionFailed:"Agent could not reach a verified finish.",shareCaptionStepReplay:u=>`A traceable agent journey, ${u} end to end.`,shareStoryTemplate:(u,o,d)=>`${u} ran ${o} steps to ${d}`,shareSkillsUsed:u=>`Skills used: ${u}`,shareVerdictCleared:"Cleared",shareVerdictFailed:"Failed",shareVerdictRunning:"In progress",shareVerdictNoteCleared:"Reached final response with proof.",shareVerdictNoteFailed:u=>`Stopped at ${u}`,shareVerdictNoteRunning:"Agent still running this task.",shareVerdictRisks:u=>`${u} risk signal${u===1?"":"s"} along the way`,shareTimelineAria:"Snapshot timeline by phase",shareStatsCompact:(u,o,d)=>`${u} · ${o} · KV ${d}`,shareProviderUnknown:"Coding agent",readoutSessions:"Sessions",readoutEstCost:"Est. Cost",readoutTotalTokens:"Total Tokens",readoutToolCalls:"Tool Calls",readoutErrors:"Errors",pricingHeading:"Token Rates & Cost Assumptions",pricingNote:"Standard API rates, USD per 1M tokens. Anthropic: input + output + cached reads (×0.1) + cache writes (×1.25). Edit any field to recompute costs.",pricingInputRate:"Input $/M",pricingOutputRate:"Output $/M",toolUsageHeading:"Tool Usage",toolUsageErrors:"errors",toolUsageEmpty:"No tool calls recorded for this user input.",searchPlaceholder:"Search by title...",sortLabel:"Sort",sortNewest:"Newest first",sortCost:"Highest cost",sortDuration:"Longest duration",sortTools:"Most tools",sortErrors:"Most errors",dropzoneHint:"Drop JSONL files here",dropzoneActive:"Drop to import",modelSpendHeading:"Spend by Model",modelSpendEmpty:"No model usage data available.",modelSpendModel:"Model",modelSpendMsgs:"Msgs",modelSpendInput:"Input",modelSpendOutput:"Output",modelSpendCached:"Cached",modelSpendCost:"Cost",modelSpendTotal:"Total",recapToggle:"Session Recap",recapRhythmHeading:"Rhythm",recapDailyActivity:"daily activity",recapWhenYouShip:"when you ship",recapEfficiencyHeading:"Efficiency",recapCacheHit:"Cache Hit Rate",recapErrorRate:"Error Rate",recapTokensPerSession:"Tokens / Session",recapCostPerSession:"Cost / Session",recapEmpty:"No session data to recap."},evidence:{heading:"Evidence",loading:"Loading",kind:"Kind",time:"Time",tool:"Tool",call:"Call",noDetail:"No detail captured.",artifacts:"Artifacts",inlineEvidence:"Inline evidence",noArtifacts:"No artifacts attached to this event.",rawEvent:"Raw Event",noRawEvent:"No raw event reference available.",empty:"Select an episode, timeline event, or replay node to inspect redacted evidence."},ingest:{kicker:"Ingest level",completed:"Castle clear",failed:"Level failed",running:"Running level",files:"files",phase:"Phase",current:"Current",waitingFile:"Waiting for next file",coins:"Coins",clearedBlocks:"Cleared blocks",hazards:"Hazards",events:"Events",aria:(u,o,d,f,v)=>`Ingest ${u}, ${o}, ${d} of ${f} files processed, ${v} percent`},tokenChart:{defaultTitle:"Daily Token Usage",eyebrow:"Tokens",loading:"Loading daily usage",visibleDays:u=>`${u} visible day${u===1?"":"s"}`,noVisibleDays:"No visible days",summaryAria:"Daily token usage summary",totalTokens:"Total tokens",kvHit:"KV hit",hideChart:"Hide daily token usage chart",showChart:"Show daily token usage chart",breakdownAria:"Visible token usage breakdown",chartAria:"Daily token usage chart",chartTitle:"Daily token usage by date",totalSuffix:"total tokens",trendLabel:"trend",tokenSuffix:"tokens",input:"Input",cachedInput:"Cached input",output:"Output",reasoning:"Reasoning",totalTrend:"Total trend",legendAria:"Token usage legend",emptyLoading:"Loading daily token usage...",empty:"No daily token usage yet."},tour:{restart:"Restart tour",skip:"Skip tour",next:"Next",prev:"Back",done:"Done",stepLabel:(u,o)=>`Step ${u} of ${o}`,steps:[{title:"Scan Agent Logs",detail:"Point SuperView at your Codex, Claude Code, or OpenCode log directory to start indexing agent runs."},{title:"Switch Projects",detail:"Browse all indexed projects. Filter by provider and select a project to inspect its timeline."},{title:"Session Recap",detail:"A collapsible black-box readout: sessions, tokens, costs, tool usage, daily rhythm, and efficiency gauges — all in one panel."},{title:"Daily Token Usage",detail:"Vertical bar chart of token consumption per day, segmented by input, output, cached, and reasoning tokens."},{title:"User Input",detail:"Every user message becomes a task journey. Click any journey to expand its tool calls, evidence, and context replay."},{title:"Context Replay",detail:"Step through the agent's context window snapshot-by-snapshot. Watch how context blocks are added, changed, and dropped over time."},{title:"Context Replay Summary",detail:"A quick readout of the current context replay session: total snapshots, block counts, hazards, and event counts."},{title:"Context Timeline",detail:"A full-width factory belt view of every snapshot and its active context blocks. See the entire context flow at a glance."},{title:"Theme & Language",detail:"Switch between 4 themes (light, dark, forest, plasma) or toggle Simplified Chinese and English."}]}},"zh-CN":{brandSubtitle:"Coding Agent 黑匣子",language:{short:"EN",aria:"切换语言到英文",title:"切换语言到英文"},theme:{aria:"切换主题",names:{light:"明亮指挥中心",dark:"暗色指挥中心",forest:"森林实验室",plasma:"等离子紫"}},topbar:{agentLogRoot:"Agent 日志根目录",agentLogRootAria:"Agent 日志根目录路径",agentLogRootPlaceholder:"留空则扫描默认 Codex 日志",source:"来源",sourceAria:"Agent 日志来源",scan:"扫描 Agent 日志"},title:{eyebrow:"Project Black Box",emptyProject:"还没有索引项目",lead:""},projectControls:{provider:"来源",providerAria:"项目来源",project:"项目",projectAria:"项目",all:"全部",noProvider:"无来源"},metrics:{projects:"项目",events:"事件",tasks:"任务",tokens:"Tokens",kvHit:"KV 命中",cost:"估算费用",showDailyTokens:"显示按天 token 用量图",hideDailyTokens:"隐藏按天 token 用量图",dailyUsageByDay:"按天用量"},empty:{loadingTitle:"正在加载 SuperView 索引",loadingDetail:"正在检查本地 SQLite 状态。",noRunsTitle:"还没有索引 Agent Runs",noRunsDetail:"扫描本地 Codex、Claude Code 或 OpenCode 日志,生成第一条时间线。",noProviderTitle:"这个来源下还没有项目",noProviderDetail:"把项目过滤切到全部,或者扫描当前来源的日志。",source:"Agent 日志来源",sourceAria:"空状态 Agent 日志来源",root:"Agent 日志根目录路径",rootAria:"空状态 Agent 日志根目录路径"},loading:{scanningLogs:"正在扫描 agent 日志",loadingTimeline:"正在加载时间线分页",loadingIndex:"正在加载 SuperView 索引",loadingDailyTokens:"正在加载按天 token 用量",steady:"SuperView 更新中,暂时锁定工作区。",aria:"阻塞操作"},timeline:{heading:"CLI 对话",rangeOf:"/",loaded:(u,o)=>`已从 ${o} 个事件加载 ${u} 轮任务旅程`,prevPage:"上一页",nextPage:"下一页",emptyPage:"当前页没有可见的用户输入任务旅程。",aria:"任务对话 thread",masterAria:"用户输入索引",detailsAria:"对话详情",masterTitle:"用户输入",detailsTitle:"对话详情",statusLegendAria:"运行状态图例",statusLegendRunning:"进行中",statusLegendSuccess:"成功",statusLegendFailed:"失败",detailTabsAria:"Thread 详情标签",conversationTab:"Conversation",contextReplayTab:"Context Replay",contextReplayLedgerAria:"Context Replay ledger",contextReplayLoading:"正在加载可观察上下文...",contextReplayEmpty:"打开这轮任务后,可查看日志中可观察到的上下文。",contextReplayObserved:"仅展示日志中可观察证据:prompt、tool I/O、文件引用、验证、warning 和最终回复。",contextReplayBlocks:"blocks",contextReplaySnapshotRail:"Context snapshot rail",contextReplayWarnings:"Context warnings",contextReplayNoWarnings:"这个快照没有 warning",contextReplayWarningJump:"跳转到相关上下文块",contextReplayActiveContext:"Carried forward context",contextReplayAdded:"新增上下文",contextReplayChanged:"变化或冲突",contextReplayDropped:"丢失或过期",contextReplayLaneActive:"延续上下文",contextReplayLaneRetired:"已退出",contextReplayLaneWarnings:"风险信号",contextReplayMiniSceneAria:"上下文流泳道",contextReplaySource:"来源",contextReplayReason:"原因",contextReplayTokens:"估算 tokens",contextReplayInput:"输入",contextReplayOutput:"输出",contextReplayTokenUsage:"Token 用量",contextReplayStep:"Step",contextReplayFromStep:u=>`来自步骤 ${u}`,contextReplayAutoReplay:"自动回放",contextReplayAutoStop:"停止",contextReplayInspector:"上下文证据",contextReplaySelectedBlock:"选中 block",contextReplayEvent:"事件",contextReplayConfidence:"置信度",contextReplayNoSelection:"选择一个 context block,查看来源、状态和保留原因。",emptySelection:"选择一条用户输入",nextInput:"下一次输入",sessionEnd:"Session 结束",eventCount:u=>`${u} 个事件`,loadingDetails:"正在加载细节",tokens:"tokens",kvHit:"KV 命中",agentWork:"Agent 工作过程",viewProcess:"查看过程...",hideProcess:"收起过程...",backgroundWork:"后台工作",log:"日志",entries:"条",noBackground:"这轮任务没有捕获到后台工作过程。",noLog:"没有捕获到 tool 或 verification 日志。",user:"用户",expand:"展开",collapse:"收起",skills:"Skills",hotkeyHint:"↑↓ 切换对话 · ←→ 切换步骤 · W S A D 切换上下文块",resetDatabase:"重置数据库",resetDatabaseConfirm:"此操作将永久删除所有已索引数据。重新扫描后可重建。继续?",share:"分享",shareCopied:"已复制到剪贴板!",shareCardTitle:"Context Replay 摘要",shareClose:"关闭",shareCopy:"复制摘要",shareCopyMarkdown:"复制为 Markdown",shareProject:"项目",shareProvider:"来源",shareSteps:"步骤",shareTokenUsage:"Token 用量",shareInput:"输入",shareOutput:"输出",shareTotal:"总计",shareContextBlocks:"Context Block",shareActive:"活跃",shareRetired:"已退出",shareSnapshotOf:(u,o)=>`快照 ${u} / ${o}`,shareTimestamp:"分享时间",shareHeroCacheHit:u=>`缓存命中 ${u}`,shareHeroBigTokens:u=>`${u} tokens`,shareHeroLongRun:u=>`单任务用了 ${u}`,shareHeroRiskSignals:u=>`${u} 条风险信号`,shareHeroFailedStep:u=>`在第 ${u} 步失败`,shareHeroStepReplay:u=>`${u} 步可回放`,shareCaptionCacheHit:(u,o)=>`Agent 在 ${o} 步中复用了 ${u} 缓存 tokens。`,shareCaptionBigTokens:u=>`在 ${u} 个推理步骤里全部消耗。`,shareCaptionLongRun:u=>`一次任务旅程,包含 ${u} 个 Agent 步骤。`,shareCaptionRiskSignals:"Agent 推理链路中出现可观测异常。",shareCaptionFailed:"Agent 未能到达一个可验证的终点。",shareCaptionStepReplay:u=>`一段可追溯的 Agent 旅程,总时长 ${u}。`,shareStoryTemplate:(u,o,d)=>`${u} 用 ${o} 步处理:${d}`,shareSkillsUsed:u=>`用到的能力:${u}`,shareVerdictCleared:"通关",shareVerdictFailed:"失败",shareVerdictRunning:"进行中",shareVerdictNoteCleared:"已抵达最终回复并附带证据。",shareVerdictNoteFailed:u=>`停在:${u}`,shareVerdictNoteRunning:"Agent 仍在处理这个任务。",shareVerdictRisks:u=>`沿途出现 ${u} 条风险信号`,shareTimelineAria:"按阶段排列的快照时间线",shareStatsCompact:(u,o,d)=>`${u} · ${o} · KV ${d}`,shareProviderUnknown:"编码 Agent",readoutSessions:"会话数",readoutEstCost:"估算费用",readoutTotalTokens:"总 Tokens",readoutToolCalls:"工具调用",readoutErrors:"错误数",pricingHeading:"Token 费率与费用假设",pricingNote:"标准 API 费率,USD / 1M tokens。Anthropic:输入 + 输出 + 缓存读取 (×0.1) + 缓存写入 (×1.25)。编辑任意字段重新计算费用。",pricingInputRate:"输入 $/M",pricingOutputRate:"输出 $/M",toolUsageHeading:"工具用量",toolUsageErrors:"错误",toolUsageEmpty:"该用户输入未记录工具调用。",searchPlaceholder:"按标题搜索...",sortLabel:"排序",sortNewest:"最新优先",sortCost:"费用最高",sortDuration:"时长最长",sortTools:"工具最多",sortErrors:"错误最多",dropzoneHint:"拖拽 JSONL 文件到此处",dropzoneActive:"松手导入",modelSpendHeading:"按模型费用",modelSpendEmpty:"无模型用量数据。",modelSpendModel:"模型",modelSpendMsgs:"消息数",modelSpendInput:"输入",modelSpendOutput:"输出",modelSpendCached:"缓存",modelSpendCost:"费用",modelSpendTotal:"合计",recapToggle:"会话概览",recapRhythmHeading:"节奏",recapDailyActivity:"日常活动",recapWhenYouShip:"编码时段",recapEfficiencyHeading:"效率",recapCacheHit:"缓存命中率",recapErrorRate:"错误率",recapTokensPerSession:"Token / 会话",recapCostPerSession:"费用 / 会话",recapEmpty:"暂无会话数据。"},evidence:{heading:"证据",loading:"加载中",kind:"类型",time:"时间",tool:"工具",call:"调用",noDetail:"没有捕获到详情。",artifacts:"Artifacts",inlineEvidence:"Inline evidence",noArtifacts:"这个事件没有附加 artifacts。",rawEvent:"原始事件",noRawEvent:"没有可用的原始事件引用。",empty:"选择一个 episode、timeline event 或 replay node,查看 redacted evidence。"},ingest:{kicker:"Ingest 关卡",completed:"城堡通关",failed:"关卡失败",running:"关卡运行中",files:"文件",phase:"阶段",current:"当前",waitingFile:"等待下一个文件",coins:"金币",clearedBlocks:"已清理砖块",hazards:"障碍",events:"事件",aria:(u,o,d,f,v)=>`Ingest ${u},${o},已处理 ${d}/${f} 个文件,进度 ${v}%`},tokenChart:{defaultTitle:"按天 Token 用量",eyebrow:"Tokens",loading:"正在加载按天用量",visibleDays:u=>`${u} 个可见日期`,noVisibleDays:"没有可见日期",summaryAria:"按天 token 用量摘要",totalTokens:"总 tokens",kvHit:"KV 命中",hideChart:"隐藏按天 token 用量图",showChart:"显示按天 token 用量图",breakdownAria:"可见 token 用量拆分",chartAria:"按天 token 用量图",chartTitle:"按日期统计的 token 用量",totalSuffix:"总 tokens",trendLabel:"趋势",tokenSuffix:"tokens",input:"Input",cachedInput:"Cached input",output:"Output",reasoning:"Reasoning",totalTrend:"总趋势",legendAria:"Token 用量图例",emptyLoading:"正在加载按天 token 用量...",empty:"还没有按天 token 用量。"},tour:{restart:"重新引导",skip:"跳过引导",next:"下一步",prev:"上一步",done:"完成",stepLabel:(u,o)=>`第 ${u} / ${o} 步`,steps:[{title:"扫描 Agent 日志",detail:"将 SuperView 指向您的 Codex、Claude Code 或 OpenCode 日志目录,开始索引 Agent 运行记录。"},{title:"切换项目",detail:"浏览所有已索引的项目。按来源过滤,选择一个项目查看其时间线。"},{title:"会话概览",detail:"可折叠的黑匣子面板:会话数、Token 用量、费用、工具用量、每日节奏和效率指标,一览无余。"},{title:"每日 Token 用量",detail:"按天统计的 Token 消耗柱状图,按输入、输出、缓存和推理 Token 分段显示。"},{title:"用户输入",detail:"每条用户消息都是一个任务旅程。点击任意旅程展开工具调用、证据和上下文回放。"},{title:"上下文回放",detail:"逐步浏览 Agent 上下文窗口的每个快照。观察上下文块的添加、变更和丢弃过程。"},{title:"上下文回放摘要",detail:"当前回放会话的快速概览:快照总数、上下文块数量、警告和事件计数。"},{title:"上下文时间线",detail:"全宽工厂流水线视图,展示所有快照及其活跃上下文块。一目了然地查看整个上下文流转。"},{title:"主题与语言",detail:"在 4 种主题(明亮、暗色、森林、等离子紫)间切换,或切换简体中文和英文。"}]}}},Hs=[{id:"sonnet",provider:"Anthropic",label:"Sonnet",test:/sonnet/i,inRate:3,outRate:15},{id:"haiku45",provider:"Anthropic",label:"Haiku 4.5",test:/haiku-?4-?5/i,inRate:1,outRate:5},{id:"haiku",provider:"Anthropic",label:"Haiku (3.x)",test:/haiku/i,inRate:.8,outRate:4},{id:"opus4x",provider:"Anthropic",label:"Opus 4.5–4.8",test:/opus-?4-?(5|6|7|8)/i,inRate:5,outRate:25},{id:"opus",provider:"Anthropic",label:"Opus",test:/opus/i,inRate:5,outRate:25},{id:"oMini",provider:"OpenAI",label:"GPT mini",test:/mini/i,inRate:.45,outRate:3.6},{id:"oGpt5",provider:"OpenAI",label:"GPT-5",test:/(gpt-?5|o3|o4)/i,inRate:2.5,outRate:15},{id:"o55",provider:"OpenAI",label:"GPT-5.5",test:/gpt-?5\.?5/i,inRate:5,outRate:30},{id:"anthropic",provider:"Anthropic",label:"Claude (unspecified)",test:/anthropic/i,inRate:3,outRate:15},{id:"openai",provider:"OpenAI",label:"GPT (unspecified)",test:/openai/i,inRate:2.5,outRate:15},{id:"unknown",provider:"Other",label:"Unknown",test:/.*/,inRate:3,outRate:15}],f0=.1;function So(u,o=Hs){const d=u??"";for(const f of o)if(f.test.test(d))return f;return o[o.length-1]}function qh(u,o,d=Hs){if(!u)return 0;const f=So(o,d),v=(u.input??0)*f.inRate/1e6,C=(u.output??0)*f.outRate/1e6,x=(u.cachedInput??0)*f.inRate*f0/1e6;return v+C+x}function tl(u,o,d){return qh(u,"sonnet",d)}function Yh(u,o,d=Hs){const f=new Map;for(const v of u){const x=o.get(v.sessionId)?.modelProvider??null,H=So(x,d),j=H.id,m=f.get(j)??{label:H.label,provider:H.provider,input:0,output:0,cachedInput:0,messages:0,cost:0};m.input+=v.tokenUsage?.input??0,m.output+=v.tokenUsage?.output??0,m.cachedInput+=v.tokenUsage?.cachedInput??0,m.messages+=1,m.cost+=qh(v.tokenUsage,x,d),f.set(j,m)}return[...f.entries()].map(([v,C])=>({model:v,...C})).sort((v,C)=>C.cost-v.cost)}function $t(u){return u>=100?`$${Math.round(u)}`:u>=1?`$${u.toFixed(2)}`:u>=.01?`$${u.toFixed(4)}`:`$${u.toFixed(6)}`}const so=1e5,Gh=["light","dark","forest","plasma"];function d0(){const u=localStorage.getItem("superview-theme");return u&&Gh.includes(u)?u:"light"}function Eh({theme:u,size:o=17}){return u==="light"?s.jsx(Xp,{size:o}):u==="dark"?s.jsx(zp,{size:o}):u==="forest"?s.jsx(Rp,{size:o}):s.jsx(Yp,{size:o})}function h0(){const[u,o]=D.useState(d0),[d,f]=D.useState(!1),v=D.useRef(null),C=D.useRef(null),[x,H]=D.useState(()=>o0(localStorage.getItem("superview-language"))),[j,m]=D.useState([]),[E,T]=D.useState(null),[k,J]=D.useState(null),[_,P]=D.useState(!1),[V,$]=D.useState(null),[ee,O]=D.useState(!1),[ie,de]=D.useState(!1),[F,I]=D.useState(!1),[he,B]=D.useState(null),[K,Y]=D.useState({}),[X,W]=D.useState({}),le=D.useRef(new Set),[ue,A]=D.useState({}),[b,Q]=D.useState({}),te=D.useRef(new Set),[G,h]=D.useState({}),[M,Z]=D.useState(null),ae=D.useRef(M);ae.current=M;const ce=D.useRef(null),[me,be]=D.useState("codex"),[qe,ze]=D.useState("all"),[Kt,la]=D.useState(!1),[na,al]=D.useState(""),[Jt,ll]=D.useState(!1),[ia,hi]=D.useState(!0),[xn,tt]=D.useState(null),[bn,nl]=D.useState(!1),sa=D.useRef(null),[ua,rt]=D.useState(()=>Hs.map(w=>({...w,test:w.test}))),[Ls,il]=D.useState(!1),[mi,Ma]=D.useState(0),[Rl,Ml]=D.useState(()=>localStorage.getItem("superview-tour-completed")==="true"),oe=r0[x];D.useEffect(()=>{document.documentElement.dataset.theme=u,localStorage.setItem("superview-theme",u)},[u]),D.useEffect(()=>{if(!d)return;function w(pe){v.current&&(v.current.contains(pe.target)||f(!1))}function fe(pe){pe.key==="Escape"&&f(!1)}return document.addEventListener("mousedown",w),document.addEventListener("keydown",fe),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("keydown",fe)}},[d]),D.useEffect(()=>{if(!Kt)return;function w(pe){C.current&&(C.current.contains(pe.target)||la(!1))}function fe(pe){pe.key==="Escape"&&la(!1)}return document.addEventListener("mousedown",w),document.addEventListener("keydown",fe),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("keydown",fe)}},[Kt]),D.useEffect(()=>{document.documentElement.lang=x,localStorage.setItem("superview-language",x)},[x]),D.useEffect(()=>{if(!Rl&&!ia){const w=setTimeout(()=>il(!0),600);return()=>clearTimeout(w)}},[Rl,ia]),D.useEffect(()=>{localStorage.setItem("superview-tour-completed",String(Rl))},[Rl]),D.useEffect(()=>{za()},[]),D.useEffect(()=>{E&&ft(E)},[E]),D.useEffect(()=>{if(!E){$(null);return}Wt(E)},[E]),D.useEffect(()=>{const w=kh(j,qe);if(w.length===0){T(null),J(null),B(null);return}(!E||!w.some(fe=>fe.id===E))&&T(w[0].id)},[j,qe,E]),D.useEffect(()=>{if(!M||M.status==="completed"||M.status==="failed")return;ce.current&&clearTimeout(ce.current);const w=window.setInterval(async()=>{const fe=await Rs(M.id);if(Z(fe),fe.status==="completed"||fe.status==="failed"){try{const pe=await lo();if(m(pe),E){const[He,mt]=await Promise.all([io(E,{limit:so,offset:0}),Ms(E)]);J(He),$(mt)}}catch{}ce.current=setTimeout(()=>Z(null),2500)}},700);return()=>{window.clearInterval(w),ce.current&&clearTimeout(ce.current)}},[M,E]),D.useEffect(()=>{if(!E)return;const w=window.setInterval(async()=>{try{const[pe,He]=await Promise.all([io(E,{limit:so,offset:0}),Ms(E)]);J(pe),$(He)}catch{}},15e3),fe=window.setInterval(async()=>{if(!co(ae.current))try{const pe=await no({sources:[{provider:me}]});Z(await Rs(pe))}catch{}},6e4);return()=>{window.clearInterval(w),window.clearInterval(fe)}},[E,me]),D.useEffect(()=>{function w(He){He.dataTransfer?.types.includes("Files")&&(He.preventDefault(),sa.current&&clearTimeout(sa.current),nl(!0))}function fe(He){!He.currentTarget||He.relatedTarget&&He.currentTarget.contains(He.relatedTarget)||(sa.current=setTimeout(()=>nl(!1),150))}function pe(He){He.preventDefault(),nl(!1),sa.current&&clearTimeout(sa.current);const mt=He.dataTransfer?.files;!mt||mt.length===0||Bs(mt)}return window.addEventListener("dragover",w),window.addEventListener("dragleave",fe),window.addEventListener("drop",pe),()=>{window.removeEventListener("dragover",w),window.removeEventListener("dragleave",fe),window.removeEventListener("drop",pe),sa.current&&clearTimeout(sa.current)}},[]);async function Bs(w){for(const fe of Array.from(w))if(fe.name.endsWith(".jsonl"))try{const He=(await fe.text()).trim().split(`
|
|
10
|
+
`).filter(Boolean),mt=await no({sources:[{provider:"codex",path:fe.name}]});Z(await Rs(mt)),setTimeout(async()=>{try{const ka=await lo();m(ka),E&&$(await Ms(E))}catch{}},3e3)}catch{}}async function za(){hi(!0);try{const w=await lo();m(w),T(fe=>fe??w[0]?.id??null),tt(null)}catch(w){tt(w instanceof Error?w.message:String(w))}finally{hi(!1)}}async function ft(w){P(!0);try{const fe=await io(w,{limit:so,offset:0});J(fe),B(fe.events[0]??null),h({}),tt(null)}catch(fe){tt(fe instanceof Error?fe.message:String(fe))}finally{P(!1)}}async function Wt(w){O(!0);try{const fe=await Ms(w);$(fe),tt(null)}catch(fe){$(null),tt(fe instanceof Error?fe.message:String(fe))}finally{O(!1)}}async function dt(){if(confirm(oe.timeline.resetDatabaseConfirm)){ll(!1);try{await $p(),Z(null),J(null),B(null),m([]),T(null),$(null),O(!1),P(!1),de(!1),h({}),Y({}),A({}),tt(null),await za()}catch{}}}async function zl(){if(!co(M)){ll(!1),tt(null);try{const w=na.trim(),fe=await no(w?{sources:[{provider:me,root:w,path:w}]}:{sources:[{provider:me}]});Z(await Rs(fe))}catch(w){tt(w instanceof Error?w.message:String(w))}}}async function gi(w,fe=E??void 0){if(!(K[w]||le.current.has(w))){le.current.add(w),W(pe=>({...pe,[w]:!0}));try{const pe=await Qp(w,fe);Y(He=>({...He,[w]:pe})),tt(null)}catch(pe){tt(pe instanceof Error?pe.message:String(pe))}finally{le.current.delete(w),W(pe=>({...pe,[w]:!1}))}}}async function qs(w,fe=E??void 0){if(!(ue[w]||te.current.has(w))){te.current.add(w),Q(pe=>({...pe,[w]:!0}));try{const pe=await Zp(w,fe);A(He=>({...He,[w]:pe})),tt(null)}catch(pe){tt(pe instanceof Error?pe.message:String(pe))}finally{te.current.delete(w),Q(pe=>({...pe,[w]:!1}))}}}function kl(w){h(fe=>{const pe=!fe[w];return pe||gi(w),{...fe,[w]:pe}})}const ca=D.useMemo(()=>kh(j,qe),[j,qe]),zt=ca.find(w=>w.id===E)??null,ht=k?.taskJourneys??[],sl=D.useMemo(()=>new Map((k?.events??[]).map(w=>[w.id,w])),[k]),Gt=D.useMemo(()=>{const w=new Map;for(const fe of zt?.sessions??[])w.set(fe.id,fe);return w},[zt?.sessions]);k?.totalEvents??k?.events.length,zt?.tokenUsage??k?.tokenUsage;const oa=D.useMemo(()=>{if(ht.length===0)return null;let w=0,fe=0,pe=1/0,He=-1/0,mt=0,ka="";const Dl={},Ft=Yh(ht,Gt,ua)[0]?.label??"—";for(const ct of ht){if(w+=tl(ct.tokenUsage,void 0,ua),fe+=ct.durationMs??0,ct.startedAt){const It=Date.parse(ct.startedAt);It<pe&&(pe=It),It>He&&(He=It);const Sn=new Date(new Date(ct.startedAt).getFullYear(),new Date(ct.startedAt).getMonth(),new Date(ct.startedAt).getDate()).toDateString();Dl[Sn]=(Dl[Sn]??0)+tl(ct.tokenUsage,void 0,ua)}const ol=tl(ct.tokenUsage,void 0,ua);if(ol>mt){mt=ol;const It=Gt.get(ct.sessionId)?.cwd;ka=It?It.replace(/\\/g,"/").split("/").filter(Boolean).slice(-2).join("/")||It:"(unknown)"}}const We=fe/36e5,ut=isFinite(pe)&&isFinite(He)?Math.max(1,Math.round((He-pe)/864e5)+1):1;let Xt=null;for(const[ct,ol]of Object.entries(Dl))(!Xt||ol>Xt.cost)&&(Xt={date:new Date(ct),cost:ol});return{spanDays:ut,sessions:ht.length,cost:w,hours:We,favModel:Ft,busyDay:Xt,priciestName:ka,priciestCost:mt}},[ht,ua,Gt]),kt=co(M),ul=H0({copy:oe,loading:ia,timelineLoading:_,dailyTokenUsageLoading:ee}),cl=w0({job:M,message:ul,ingestBusy:kt,loading:ia,timelineLoading:_,dailyTokenUsageLoading:ee});return s.jsxs("div",{className:"app-shell",children:[s.jsxs("header",{className:"topbar",children:[s.jsxs("div",{className:"brand",children:[s.jsx("strong",{children:"SuperView"}),s.jsx("span",{children:oe.brandSubtitle})]}),s.jsxs("div",{className:"topbar-actions",children:[s.jsxs("div",{className:"scan-dropdown",children:[s.jsxs("button",{className:"shell-button scan-dropdown-trigger",onClick:()=>ll(w=>!w),disabled:kt,"aria-expanded":Jt,"aria-controls":"scan-agent-log-panel",children:[s.jsx(ao,{size:16}),oe.topbar.scan,s.jsx(Ah,{size:15,"aria-hidden":"true"})]}),Jt?s.jsxs("div",{className:"scan-dropdown-panel",id:"scan-agent-log-panel",role:"region","aria-label":oe.topbar.scan,children:[s.jsxs("label",{className:"agent-provider-control",children:[s.jsx("span",{children:oe.topbar.source}),s.jsxs("select",{"aria-label":oe.topbar.sourceAria,value:me,onChange:w=>be(w.target.value),disabled:kt,children:[s.jsx("option",{value:"codex",children:"Codex"}),s.jsx("option",{value:"claude-code",children:"Claude Code"}),s.jsx("option",{value:"opencode",children:"OpenCode"})]})]}),s.jsxs("label",{className:"agent-root-control",children:[s.jsx("span",{children:oe.topbar.agentLogRoot}),s.jsx("input",{"aria-label":oe.topbar.agentLogRootAria,value:na,onChange:w=>al(w.target.value),placeholder:oe.topbar.agentLogRootPlaceholder,disabled:kt})]}),s.jsxs("button",{className:"shell-button scan-dropdown-submit",onClick:zl,disabled:kt,children:[s.jsx(ao,{size:16}),oe.topbar.scan]}),s.jsx("button",{className:"shell-button",onClick:dt,style:{marginTop:4,fontSize:11,color:"rgba(255,120,120,.8)"},children:oe.timeline.resetDatabase})]}):null]}),s.jsxs("div",{className:"project-dropdown",ref:C,children:[s.jsxs("button",{className:"shell-button project-dropdown-trigger",onClick:()=>la(w=>!w),"aria-expanded":Kt,disabled:_||kt,children:[s.jsx(Tp,{size:16}),zt?.name??oe.projectControls.project,s.jsx(Ah,{size:15,"aria-hidden":"true"})]}),Kt?s.jsxs("div",{className:"project-dropdown-panel",children:[s.jsx("div",{className:"project-dropdown-chips",role:"group","aria-label":oe.projectControls.provider,children:["all","codex","claude-code","opencode"].map(w=>s.jsx("button",{type:"button",className:`project-dropdown-chip${qe===w?" active":""}`,onClick:()=>ze(w),children:w==="all"?oe.projectControls.all:w==="codex"?"Codex":w==="claude-code"?"Claude Code":"OpenCode"},w))}),s.jsx("div",{className:"project-dropdown-list",role:"listbox","aria-label":oe.projectControls.project,children:ca.length===0?s.jsx("div",{className:"project-dropdown-empty",children:oe.empty.noProviderTitle}):ca.map(w=>s.jsxs("button",{type:"button",role:"option","aria-selected":w.id===E,className:`project-dropdown-item${w.id===E?" active":""}`,onClick:()=>{T(w.id),la(!1)},children:[s.jsx("span",{className:"project-dropdown-item-name",children:w.name}),s.jsxs("span",{className:"project-dropdown-item-meta",children:[Ee(w.tokenUsage.total)," / KV"," ",ws(w.tokenUsage)]})]},w.id))})]}):null]}),s.jsxs("div",{className:"theme-dropdown",ref:v,children:[s.jsx("button",{className:"icon-button","aria-label":oe.theme.aria,title:oe.theme.names[u],"aria-haspopup":"menu","aria-expanded":d,onClick:()=>f(w=>!w),children:s.jsx(Eh,{theme:u})}),d?s.jsx("div",{className:"theme-dropdown-panel",role:"menu","aria-label":oe.theme.aria,children:Gh.map(w=>s.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":u===w,className:`theme-dropdown-option${u===w?" active":""}`,onClick:()=>{o(w),f(!1)},children:[s.jsx(Eh,{theme:w,size:15}),s.jsx("span",{children:oe.theme.names[w]}),u===w?s.jsx("i",{className:"theme-dropdown-check","aria-hidden":"true",children:"✓"}):s.jsx("span",{"aria-hidden":"true"})]},w))}):null]}),s.jsx("button",{className:"icon-button tour-restart-button","aria-label":oe.tour.restart,title:oe.tour.restart,onClick:()=>{Ma(0),Ml(!1),il(!0)},children:s.jsx(ao,{size:16})}),s.jsxs("button",{className:"shell-button language-toggle-button","aria-label":oe.language.aria,title:oe.language.title,onClick:()=>H(w=>w==="en"?"zh-CN":"en"),children:[s.jsx(Ep,{size:16}),oe.language.short]})]})]}),s.jsxs("main",{className:"workspace",children:[s.jsxs("section",{className:"title-row",children:[s.jsxs("div",{children:[s.jsx("p",{className:"eyebrow",children:oe.title.eyebrow}),s.jsx("h1",{children:zt?.name??oe.title.emptyProject}),s.jsx("p",{className:"lead",children:oe.title.lead})]}),oa?s.jsx("div",{className:"recap-title-block",children:s.jsxs("h2",{className:"recap-title-summary",children:["Across ",s.jsx("em",{children:oa.spanDays})," day",oa.spanDays!==1?"s":"",", you ran"," ",s.jsx("em",{children:oa.sessions})," agent session",oa.sessions!==1?"s":"",", spent"," ",s.jsx("em",{children:$t(oa.cost)}),", and kept them working for ",s.jsxs("em",{children:[oa.hours.toFixed(1),"h"]}),"."]})}):null]}),zt?s.jsx(V0,{copy:oe.timeline,metricsCopy:oe.metrics,tokenChartCopy:oe.tokenChart,journeys:ht,timelineEventsById:sl,dailyTokenUsage:V,dailyTokenUsageLoading:ee,sessionMap:Gt,pricing:ua,onPricingChange:rt}):null,xn?s.jsxs("div",{className:"alert",children:[s.jsx(wh,{size:16}),xn]}):null,ul?s.jsx(D0,{copy:oe.loading,ingestCopy:oe.ingest,message:ul,job:cl}):null,ia?s.jsx(uo,{copy:oe.empty,title:oe.empty.loadingTitle,detail:oe.empty.loadingDetail,agentProvider:me,onAgentProviderChange:be,agentLogRoot:na,onAgentLogRootChange:al,onScan:zl,disabled:kt,scanLabel:oe.topbar.scan,placeholder:oe.topbar.agentLogRootPlaceholder}):j.length===0?s.jsx(uo,{copy:oe.empty,title:oe.empty.noRunsTitle,detail:oe.empty.noRunsDetail,agentProvider:me,onAgentProviderChange:be,agentLogRoot:na,onAgentLogRootChange:al,onScan:zl,disabled:kt,scanLabel:oe.topbar.scan,placeholder:oe.topbar.agentLogRootPlaceholder}):ca.length===0?s.jsx(uo,{copy:oe.empty,title:oe.empty.noProviderTitle,detail:oe.empty.noProviderDetail,agentProvider:me,onAgentProviderChange:be,agentLogRoot:na,onAgentLogRootChange:al,onScan:zl,disabled:kt,scanLabel:oe.topbar.scan,placeholder:oe.topbar.agentLogRootPlaceholder}):s.jsx("div",{className:"dashboard-grid conversation-dashboard-grid",children:s.jsx("section",{className:"timeline-panel",children:s.jsx(p0,{copy:oe.timeline,journeys:ht,pricing:ua,detailsByJourneyId:K,contextReplaysByJourneyId:ue,timelineEventsById:sl,collapsedJourneyIds:G,loadingJourneyIds:X,loadingContextReplayIds:b,selectedEventId:he?.id??null,selectedProjectName:zt?.name??"",onToggleDetails:kl,onLoadJourneyDetail:w=>gi(w),onLoadContextReplay:w=>qs(w),onSelectEvent:w=>B(w),tokenTimelineOpen:F,setTokenTimelineOpen:I,sessionMap:Gt})})})]}),bn?s.jsx("div",{className:"dropzone-overlay","aria-hidden":"true",children:s.jsx("div",{className:"dropzone-message",children:oe.timeline.dropzoneActive})}):null,Ls?s.jsx(k0,{step:mi,totalSteps:oe.tour.steps.length,copy:oe.tour,onPrev:()=>Ma(w=>Math.max(0,w-1)),onNext:()=>Ma(w=>Math.min(oe.tour.steps.length-1,w+1)),onDone:()=>{il(!1),Ml(!0)},onSkip:()=>{il(!1),Ml(!0)}}):null]})}function Ch(u,o){const d=["log-entry",u.status];return u.id===o&&d.push("selected"),d.join(" ")}function m0(u){return{added:u.filter(o=>o.state==="new"),active:u.filter(o=>o.state==="retained"||o.state==="cited"),changed:u.filter(o=>o.state==="changed"||o.state==="contradicted"),dropped:u.filter(o=>o.state==="dropped"||o.state==="stale")}}function g0(u){const o=new Map;return u.forEach((d,f)=>{for(const v of d.blocks)o.has(v.id)||o.set(v.id,f+1)}),o}function p0({copy:u,journeys:o,pricing:d,detailsByJourneyId:f,contextReplaysByJourneyId:v,timelineEventsById:C,collapsedJourneyIds:x,loadingJourneyIds:H,loadingContextReplayIds:j,selectedEventId:m,selectedProjectName:E,onToggleDetails:T,onLoadJourneyDetail:k,onLoadContextReplay:J,onSelectEvent:_,tokenTimelineOpen:P,setTokenTimelineOpen:V,sessionMap:$}){const[ee,O]=D.useState(""),[ie,de]=D.useState("newest"),F=D.useMemo(()=>Q0(o,ee,ie,d),[o,ee,ie,d]),[I,he]=D.useState(null),B=D.useRef(null),[K,Y]=D.useState("context"),X=F.find(W=>W.id===I)??F[0]??null;return D.useEffect(()=>{if(F.length===0){he(null);return}he(W=>W&&F.some(le=>le.id===W)?W:F[0].id)},[F]),D.useEffect(()=>{if(!I||!B.current)return;B.current.querySelector(`[data-journey-id="${I}"]`)?.scrollIntoView({behavior:"smooth",block:"nearest"})},[I]),D.useEffect(()=>{K==="context"&&X&&J(X.id)},[K,J,X]),D.useEffect(()=>{K!=="context"&&X&&!x[X.id]&&k(X.id)},[K,k,X,x]),D.useEffect(()=>{function W(ue){const A=ue.target,b=A?.tagName.toLowerCase();return ue.altKey||ue.ctrlKey||ue.metaKey||b==="input"||b==="textarea"||b==="select"||!!A?.isContentEditable}function le(ue){if(ue.key!=="ArrowUp"&&ue.key!=="ArrowDown"||W(ue)||F.length===0)return;const A=F.findIndex(G=>G.id===X?.id),b=A<0?0:A,Q=F.length-1,te=ue.key==="ArrowDown"?Math.min(Q,b+1):Math.max(0,b-1);if(te===A){ue.preventDefault();return}ue.preventDefault(),he(F[te].id)}return document.addEventListener("keydown",le),()=>document.removeEventListener("keydown",le)},[F,X]),o.length===0?s.jsx("p",{className:"muted",children:u.emptyPage}):s.jsxs("div",{className:"conversation-thread conversation-master-detail","aria-label":u.aria,children:[s.jsxs("aside",{className:"conversation-master","aria-label":u.masterAria,children:[s.jsxs("div",{className:"conversation-master-heading",children:[s.jsx("span",{children:u.masterTitle}),s.jsxs("ul",{className:"conversation-status-legend","aria-label":u.statusLegendAria,children:[s.jsxs("li",{className:"running",children:[s.jsx("i",{"aria-hidden":"true"}),u.statusLegendRunning]}),s.jsxs("li",{className:"success",children:[s.jsx("i",{"aria-hidden":"true"}),u.statusLegendSuccess]}),s.jsxs("li",{className:"failed",children:[s.jsx("i",{"aria-hidden":"true"}),u.statusLegendFailed]})]}),s.jsx("strong",{children:F.length}),s.jsx("button",{type:"button",className:"timeline-chart-btn","aria-label":"Token Timeline",title:"Token Timeline",onClick:()=>V(W=>!W),children:s.jsx(bp,{size:13})})]}),s.jsxs("div",{className:"conversation-master-search",children:[s.jsx("input",{type:"search",className:"master-search-input",placeholder:u.searchPlaceholder,value:ee,onChange:W=>O(W.target.value),"aria-label":u.searchPlaceholder}),s.jsxs("select",{className:"master-sort-select",value:ie,onChange:W=>de(W.target.value),"aria-label":u.sortLabel,children:[s.jsx("option",{value:"newest",children:u.sortNewest}),s.jsx("option",{value:"cost",children:u.sortCost}),s.jsx("option",{value:"duration",children:u.sortDuration}),s.jsx("option",{value:"tools",children:u.sortTools}),s.jsx("option",{value:"errors",children:u.sortErrors})]})]}),s.jsx("div",{className:"conversation-master-list",ref:B,children:F.map(W=>s.jsx(v0,{copy:u,journey:W,fallbackPrompt:C.get(W.promptEventId)??null,active:W.id===X?.id,loading:!!H[W.id],timelineEventsById:C,onSelect:()=>he(W.id)},W.id))})]}),s.jsxs("section",{className:"conversation-detail-pane","aria-label":u.detailsAria,children:[s.jsxs("div",{className:"conversation-detail-heading",children:[s.jsx("span",{children:u.detailsTitle}),s.jsx("strong",{children:X?.title??u.emptySelection})]}),s.jsx(B0,{tools:L0(X,C),copy:u}),s.jsxs("div",{className:"thread-detail-tabs",role:"tablist","aria-label":u.detailTabsAria,children:[s.jsx("button",{type:"button",role:"tab","aria-selected":K==="context",className:K==="context"?"active":"",onClick:()=>Y("context"),children:u.contextReplayTab}),s.jsx("button",{type:"button",role:"tab","aria-selected":K==="conversation",className:K==="conversation"?"active":"",onClick:()=>Y("conversation"),children:u.conversationTab})]}),X?K==="context"?s.jsx(y0,{copy:u,replay:v[X.id]??null,loading:!!j[X.id],selectedProjectName:E}):s.jsx(M0,{copy:u,journey:X,detail:f[X.id]??null,fallbackPrompt:C.get(X.promptEventId)??null,expanded:!x[X.id],loading:!!H[X.id],selectedEventId:m,onToggleDetails:()=>T(X.id),onSelectEvent:_},X.id):s.jsx("p",{className:"muted",children:u.emptySelection})]}),P?s.jsx("div",{className:"factory-overlay",onClick:()=>V(!1),children:s.jsxs("div",{className:"factory-overlay-panel",onClick:W=>W.stopPropagation(),children:[s.jsxs("div",{className:"factory-overlay-header",children:[s.jsx("span",{children:"Token Timeline"}),s.jsx("button",{type:"button",className:"factory-overlay-close",onClick:()=>V(!1),children:"✕"})]}),s.jsx(E0,{copy:u,journeys:F,selectedProjectName:E,selectedJourneyId:I,onSelectJourney:he,onClose:()=>V(!1)})]})}):null]})}function v0({copy:u,journey:o,fallbackPrompt:d,active:f,loading:v,timelineEventsById:C,onSelect:x}){const H=d?.detail??o.title;return s.jsxs("button",{type:"button","data-journey-id":o.id,className:`conversation-master-item ${o.status} ${f?"active":""}`,"aria-current":f?"true":void 0,onClick:x,children:[s.jsx("span",{children:mo(o.startedAt)}),s.jsx("strong",{children:H}),f?s.jsx(X0,{eventIds:o.eventIds,timelineEventsById:C}):null,s.jsxs("em",{children:[Cl(o.durationMs)," ·"," ",Ee(o.tokenUsage.total)," ",u.tokens," ·"," ",u.kvHit," ",ws(o.tokenUsage)]}),v?s.jsx("small",{children:u.loadingDetails}):null]})}function y0({copy:u,replay:o,loading:d,selectedProjectName:f}){const[v,C]=D.useState(null),[x,H]=D.useState(null),j=D.useRef({}),m=D.useRef(null),E=D.useRef(null),T=D.useRef(null),[k,J]=D.useState(!1),[_,P]=D.useState(null),V=D.useRef(null);function $(b){clearTimeout(V.current??void 0),P(b),V.current=setTimeout(()=>P(null),2500)}D.useEffect(()=>()=>{clearTimeout(V.current??void 0)},[]),D.useEffect(()=>{const b=E.current,Q=T.current;if(!b||!Q)return;const te=()=>{Q.style.setProperty("--replay-header-height",`${b.offsetHeight}px`)};te();const G=new ResizeObserver(te);return G.observe(b),()=>G.disconnect()},[o]);function ee(b){H(b),requestAnimationFrame(()=>{m.current?.querySelector(`[data-block-id="${b}"]`)?.scrollIntoView({behavior:"smooth",block:"center"})})}D.useEffect(()=>{C(o?.snapshots[0]?.id??null),H(null)},[o?.journey.id]);const O=o?.snapshots.find(b=>b.id===v)??o?.snapshots[0]??null,ie=o&&O?Math.max(0,o.snapshots.findIndex(b=>b.id===O.id)):-1,de=D.useMemo(()=>m0(O?.blocks??[]),[O]),F=D.useMemo(()=>g0(o?.snapshots??[]),[o]),I=O?.blocks.find(b=>b.id===x)??O?.blocks[0]??null,[he,B]=D.useState(!1),[K,Y]=D.useState(!1);function X(b,Q=!1){if(!o?.snapshots.length)return;const te=o.snapshots[b];te&&(C(te.id),H(null),Q&&requestAnimationFrame(()=>{const G=j.current[te.id];G?.focus(),G?.scrollIntoView({block:"nearest",inline:"nearest"})}))}D.useEffect(()=>{if(!he||!o)return;if(ie>=o.snapshots.length-1){B(!1);return}const b=setTimeout(()=>X(ie+1),2800);return()=>clearTimeout(b)},[he,ie,o]);function W(b){B(!1),ee(b)}function le(b,Q=!1){B(!1),X(b,Q)}function ue(b){if(!o?.snapshots.length||ie<0)return null;const Q=o.snapshots.length-1;return b==="ArrowRight"?Math.min(Q,ie+1):b==="ArrowLeft"?Math.max(0,ie-1):b==="Home"?0:b==="End"?Q:null}function A(b){if(K)return;const Q=ue(b.key);Q!==null&&(b.preventDefault(),b.stopPropagation(),le(Q,!0))}return D.useEffect(()=>{C(b=>o?.snapshots.length?b&&o.snapshots.some(Q=>Q.id===b)?b:o.snapshots.at(-1)?.id??null:null)},[o]),D.useEffect(()=>{H(b=>O?.blocks.length?b&&O.blocks.some(Q=>Q.id===b)?b:O.blocks[0].id:null)},[O]),D.useEffect(()=>{function b(te){const G=te.target,h=G?.tagName.toLowerCase();return te.altKey||te.ctrlKey||te.metaKey||h==="input"||h==="textarea"||h==="select"||!!G?.isContentEditable}function Q(te){if(b(te))return;if(K){const ze=ue(te.key);ze!==null&&ze!==ie&&(te.preventDefault(),le(ze,!0));return}const G=ue(te.key);if(G!==null){if(G===ie)return;te.preventDefault(),le(G,!0);return}const h=O?.blocks??[];if(h.length===0)return;const M=te.key.toLowerCase(),Z=M==="a"||M==="w",ae=M==="d"||M==="s";if(!Z&&!ae)return;const ce=h.findIndex(ze=>ze.id===x),me=ce<0?0:ce,be=h.length-1,qe=ae?Math.min(be,me+1):Math.max(0,me-1);te.preventDefault(),qe!==ce&&ee(h[qe].id)}return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[ie,o,O,x,K]),d&&!o?s.jsx("section",{className:"context-replay-panel","aria-label":u.contextReplayLedgerAria,children:s.jsx("div",{className:"context-replay-loading",children:u.contextReplayLoading})}):!o||!O?s.jsx("section",{className:"context-replay-panel","aria-label":u.contextReplayLedgerAria,children:s.jsx("p",{className:"muted",children:u.contextReplayEmpty})}):s.jsxs("section",{ref:T,className:"context-replay-panel","aria-label":u.contextReplayLedgerAria,children:[s.jsxs("div",{ref:E,className:"context-replay-header",children:[s.jsxs("div",{className:"context-replay-summary",children:[s.jsxs("div",{children:[s.jsx("span",{children:u.contextReplayTab}),o&&o.snapshots.length>1?s.jsx("button",{type:"button",className:"replay-play-btn","aria-label":he?u.contextReplayAutoStop:u.contextReplayAutoReplay,onClick:()=>{if(he){B(!1);return}ie>=o.snapshots.length-1&&X(0),B(!0)},children:he?s.jsx(Dp,{size:12}):s.jsx(_p,{size:12})}):null,o?s.jsx("button",{type:"button",className:"share-btn","aria-label":u.share,title:u.share,onClick:()=>J(!0),children:s.jsx(Bp,{size:12})}):null,s.jsx("strong",{children:o.journey.title}),s.jsx("p",{children:u.contextReplayObserved})]}),s.jsxs("div",{className:"context-replay-metrics",role:"group","aria-label":u.contextReplayLedgerAria,children:[s.jsxs("div",{className:"context-replay-metric",children:[s.jsx("span",{children:u.contextReplayInput}),s.jsx("strong",{children:O.tokenUsage?Ee(O.tokenUsage.input):"—"})]}),s.jsxs("div",{className:"context-replay-metric",children:[s.jsx("span",{children:u.contextReplayOutput}),s.jsx("strong",{children:O.tokenUsage?Ee(O.tokenUsage.output):"—"})]}),s.jsxs("div",{className:"context-replay-metric",children:[s.jsx("span",{children:u.contextReplayTokenUsage}),s.jsx("strong",{children:O.tokenUsage?Ee(O.tokenUsage.total):"—"})]}),s.jsxs("div",{className:"context-replay-metric",children:[s.jsx("span",{children:u.contextReplayBlocks}),s.jsx("strong",{children:o.blocks.length})]})]})]}),s.jsx("div",{className:"context-snapshot-rail","aria-label":u.contextReplaySnapshotRail,children:o.snapshots.map((b,Q)=>s.jsx(jo,{text:`${u.contextReplayStep} ${Q+1}: ${b.title}`,children:s.jsxs("button",{ref:te=>{j.current[b.id]=te},type:"button",className:b.id===O.id?"active":"","aria-current":b.id===O.id?"step":void 0,"aria-label":`${u.contextReplayStep} ${Q+1}: ${b.title}`,tabIndex:b.id===O.id?0:-1,onClick:()=>le(Q),onKeyDown:A,children:[s.jsx("b",{className:"context-snapshot-index",children:Q+1}),s.jsx("span",{children:b.phase}),s.jsx("strong",{children:b.title}),s.jsxs("em",{children:["+",b.addedBlockIds.length," / -",b.droppedBlockIds.length]})]})},b.id))}),s.jsx("span",{className:"hotkey-hint","aria-hidden":"true",children:u.hotkeyHint})]}),s.jsxs("div",{className:"context-replay-body",children:[s.jsxs("div",{className:"context-replay-workspace",children:[s.jsxs("div",{className:"context-ledger-groups",ref:m,children:[O.warnings.length>0||o.warnings.length>0?s.jsx("div",{className:"context-warning-strip","aria-label":u.contextReplayWarnings,children:(O.warnings.length>0?O.warnings:o.warnings).map(b=>s.jsxs("button",{type:"button",className:`context-warning ${b.severity}`,disabled:b.blockIds.length===0,onClick:()=>b.blockIds[0]&&ee(b.blockIds[0]),title:b.blockIds.length>0?u.contextReplayWarningJump:void 0,children:[s.jsx("span",{children:b.severity}),s.jsx("strong",{children:b.title}),s.jsx("p",{children:b.detail})]},b.id))}):null,s.jsx(ks,{copy:u,title:u.contextReplayActiveContext,blocks:de.active,blockOriginSteps:F,selectedBlockId:I?.id??null,onSelectBlock:W}),s.jsx(ks,{copy:u,title:u.contextReplayAdded,blocks:de.added,blockOriginSteps:F,selectedBlockId:I?.id??null,onSelectBlock:W}),s.jsx(ks,{copy:u,title:u.contextReplayChanged,blocks:de.changed,blockOriginSteps:F,selectedBlockId:I?.id??null,onSelectBlock:W}),s.jsx(ks,{copy:u,title:u.contextReplayDropped,blocks:de.dropped,blockOriginSteps:F,selectedBlockId:I?.id??null,onSelectBlock:W})]}),K?s.jsx("div",{className:"factory-overlay",onClick:()=>Y(!1),children:s.jsxs("div",{className:"factory-overlay-panel",onClick:b=>b.stopPropagation(),children:[s.jsxs("div",{className:"factory-overlay-header",children:[s.jsx("span",{children:"Context Timeline"}),s.jsx("button",{type:"button",className:"factory-overlay-close",onClick:()=>Y(!1),children:"✕"})]}),s.jsx(C0,{copy:u,snapshots:o.snapshots,activeSnapshotId:O.id,activeSnapshotIndex:ie,blockOriginSteps:F,selectedBlockId:I?.id??null,onSelectBlock:W,onActivateSnapshot:b=>{le(b)}})]})}):null,k?s.jsx(S0,{copy:u,replay:o,activeSnapshot:O,activeSnapshotIndex:ie,projectName:f,onClose:()=>J(!1),onCopy:$}):null,_?s.jsx("div",{className:"share-toast",role:"status","aria-live":"polite",children:_}):null]}),s.jsxs("div",{className:"context-mini-scene","aria-label":u.contextReplayMiniSceneAria,children:[s.jsx(T0,{copy:u,blocks:O.blocks,warnings:O.warnings,blockOriginSteps:F,selectedBlockId:I?.id??null,onSelectBlock:W}),s.jsx("button",{type:"button",className:"factory-expand-btn","aria-label":"Context Timeline",onClick:()=>Y(b=>!b),children:s.jsx(Hh,{size:13})})]})]})]})}function Rh(u){if(!u)return null;const o=u.replace(/['"`]/g,"").replace(/\s+/g," ").trim(),d=o.replace(/[^a-zA-Z0-9一-鿿\s]/g,"").length;return o.length>0&&d/o.length<.4?null:o.length>80?`${o.slice(0,78)}...`:o}function x0(u,o,d,f){const v=o.journey,C=v.tokenUsage,x=o.snapshots.length,H=C?.total??0,j=C?.input??0,m=C?.cachedInput??0,E=j>0?m/j:0,T=`${Math.max(0,Math.min(100,E*100)).toFixed(0)}%`;return v.status==="failed"&&d>=0?{kind:"failed",stat:u.shareHeroFailedStep(d+1),caption:u.shareCaptionFailed,tone:"danger"}:f>=2?{kind:"risk",stat:u.shareHeroRiskSignals(f),caption:u.shareCaptionRiskSignals,tone:"danger"}:E>=.7&&j>0?{kind:"cache",stat:u.shareHeroCacheHit(T),caption:u.shareCaptionCacheHit(Ee(m),x),tone:"success"}:H>=1e6?{kind:"tokens",stat:u.shareHeroBigTokens(Ee(H)),caption:u.shareCaptionBigTokens(x),tone:"orange"}:v.durationMs>=600*1e3?{kind:"duration",stat:u.shareHeroLongRun(Cl(v.durationMs)),caption:u.shareCaptionLongRun(x),tone:"orange"}:{kind:"default",stat:u.shareHeroStepReplay(x),caption:u.shareCaptionStepReplay(Cl(v.durationMs)),tone:"orange"}}const b0={prompt:"var(--blue, var(--orange))",history:"var(--muted)",planning:"var(--orange)",tool_call:"var(--orange)",tool_result:"var(--success)",file_change:"var(--orange)",verification:"var(--success)",response:"var(--success)"};function S0({copy:u,replay:o,activeSnapshot:d,activeSnapshotIndex:f,projectName:v,onClose:C,onCopy:x}){const H=o.snapshots,j=H.length,m=o.journey,E=m.tokenUsage,T=ho(m.sessionId),k=Xh(T)||u.shareProviderUnknown,J=new Map;for(const G of o.warnings)J.set(G.id,!0);for(const G of H)for(const h of G.warnings)J.set(h.id,!0);const _=J.size,P=m.status==="failed"?Math.max(0,H.length-1):-1,V=x0(u,o,P,_),ee=(m.title??"").trim().replace(/\s+/g," ")||d.title,O=u.shareStoryTemplate(k,j,ee),ie=new Set,de=[];for(const G of m.skills)if(!(!G.name||ie.has(G.name))&&(ie.add(G.name),de.push(G.name),de.length>=3))break;const F=de.length>0?u.shareSkillsUsed(de.join(", ")):null;let I,he,B;if(m.status==="success"){I=u.shareVerdictCleared,B="success";const G=[...H].reverse().find(M=>M.phase==="verification"),h=Rh(G?.title);he=h?`${u.shareVerdictNoteCleared} (${h})`:u.shareVerdictNoteCleared}else if(m.status==="failed"){I=u.shareVerdictFailed,B="danger";const G=H[H.length-1],h=Rh(G?.title);he=h?u.shareVerdictNoteFailed(h):u.shareCaptionFailed}else I=u.shareVerdictRunning,B="orange",he=u.shareVerdictNoteRunning;const K=ws(E),Y=u.shareStatsCompact(`${Ee(E?.total??0)} ${u.tokens}`,Cl(m.durationMs),K),X=H.map(G=>G.tokenUsage?.total??0),W=Math.max(1,...X),le=new Date,ue=B==="success"?"+":B==="danger"?"x":"~";function A(){const G=[];return G.push(`${V.stat}`),G.push(V.caption),G.push(""),G.push(O),F&&G.push(F),G.push(""),G.push(`${ue} ${I} — ${he}`),_>0&&V.kind!=="risk"&&V.kind!=="failed"&&G.push(u.shareVerdictRisks(_)),G.push(""),G.push(`${j} ${u.contextReplayStep.toLowerCase()}s · ${Y}`),G.push(`${v||m.projectId} · ${le.toLocaleDateString()}`),G.join(`
|
|
11
|
+
`)}function b(){const G=[];return G.push(`## ${V.stat}`),G.push(""),G.push(V.caption),G.push(""),G.push(`> ${O}`),F&&(G.push(""),G.push(`_${F}_`)),G.push(""),G.push(`**${I}** — ${he}`),_>0&&V.kind!=="risk"&&V.kind!=="failed"&&(G.push(""),G.push(`> ${u.shareVerdictRisks(_)}`)),G.push(""),G.push(`\`${j} ${u.contextReplayStep.toLowerCase()}s · ${Y}\``),G.push(""),G.push(`_${v||m.projectId} · ${le.toLocaleDateString()} · SuperView_`),G.join(`
|
|
12
|
+
`)}async function Q(){try{await navigator.clipboard.writeText(A()),x(u.shareCopied)}catch{x("Failed to copy")}}async function te(){try{await navigator.clipboard.writeText(b()),x(u.shareCopied)}catch{x("Failed to copy")}}return s.jsx("div",{className:"share-overlay",onClick:C,children:s.jsxs("div",{className:"share-card",onClick:G=>G.stopPropagation(),children:[s.jsxs("div",{className:"share-card-header",children:[s.jsxs("div",{className:"share-card-header-brand",children:[s.jsx("strong",{children:"SuperView"}),s.jsx("span",{children:u.shareCardTitle})]}),s.jsx("button",{type:"button",className:"share-card-close",onClick:C,"aria-label":u.shareClose,children:"✕"})]}),s.jsxs("div",{className:"share-card-body",children:[s.jsxs("div",{className:`share-card-hero share-card-hero--${V.tone}`,children:[s.jsx("div",{className:"share-card-hero-stat",children:V.stat}),s.jsx("div",{className:"share-card-hero-caption",children:V.caption})]}),s.jsxs("div",{className:"share-card-story",children:[s.jsx("p",{className:"share-card-story-line",children:O}),F?s.jsx("p",{className:"share-card-story-skills",children:F}):null]}),s.jsxs("div",{className:`share-card-verdict share-card-verdict--${B}`,children:[s.jsx("span",{className:"share-card-verdict-mark","aria-hidden":"true",children:ue}),s.jsx("span",{className:"share-card-verdict-label",children:I}),s.jsx("span",{className:"share-card-verdict-note",children:he})]}),_>0&&V.kind!=="risk"&&V.kind!=="failed"?s.jsxs("div",{className:"share-card-risks",children:[s.jsx(wh,{size:12,"aria-hidden":"true"}),s.jsx("span",{children:u.shareVerdictRisks(_)})]}):null,s.jsx("div",{className:"share-card-visual",role:"img","aria-label":u.shareTimelineAria,children:s.jsx("div",{className:"share-card-spark",children:H.map((G,h)=>{const M=X[h],Z=Math.max(8,Math.round(M/W*100)),ae=b0[G.phase]??"var(--orange)",ce=h===f;return s.jsx("span",{className:`share-card-spark-bar${ce?" active":""}`,style:{height:`${Z}%`,background:ae},title:`${G.phase} · step ${h+1}`},G.id)})})}),s.jsxs("div",{className:"share-card-stats-footer",children:[s.jsxs("span",{className:"share-card-stats-compact",children:[j," ",u.contextReplayStep.toLowerCase(),"s ·"," ",Y]}),s.jsxs("span",{className:"share-card-stats-project",children:[v||m.projectId," · ",le.toLocaleDateString()]})]})]}),s.jsxs("div",{className:"share-card-actions",children:[s.jsx("button",{type:"button",className:"share-card-btn",onClick:Q,children:u.shareCopy}),s.jsx("button",{type:"button",className:"share-card-btn",onClick:te,children:u.shareCopyMarkdown})]})]})})}function ks({copy:u,title:o,blocks:d,blockOriginSteps:f,selectedBlockId:v,onSelectBlock:C}){return d.length===0?null:s.jsxs("section",{className:"context-block-group",children:[s.jsxs("div",{className:"context-block-group-heading",children:[s.jsx("span",{children:o}),s.jsx("em",{children:d.length})]}),s.jsx("div",{className:"context-block-list",children:d.map(x=>s.jsxs("button",{type:"button","data-block-id":x.id,className:`context-block-card ${x.state} ${x.id===v?"active":""}`,"aria-pressed":x.id===v,onClick:()=>C(x.id),title:`${x.title}${x.excerpt?` — ${x.excerpt}`:""}`,children:[s.jsxs("div",{className:"context-block-card-heading",children:[s.jsx("b",{children:f.get(x.id)??1}),s.jsx(N0,{state:x.state}),s.jsx("span",{children:x.state}),s.jsx("em",{children:x.type}),s.jsx("em",{children:u.contextReplayFromStep(f.get(x.id)??1)})]}),s.jsx("strong",{children:x.title}),s.jsx("p",{children:x.excerpt}),s.jsxs("div",{className:"context-block-meta",children:[s.jsxs("span",{children:[u.contextReplaySource,":"," ",x.sourcePath??x.sourceEventId??"inferred"]}),s.jsxs("span",{children:[u.contextReplayTokens,": ",x.tokenEstimate]})]}),s.jsxs("small",{children:[u.contextReplayReason,": ",x.reason]})]},x.id))})]})}function j0(u){return u==="dropped"||u==="stale"||u==="contradicted"}function N0({state:u}){return u==="dropped"?s.jsx(pp,{size:12,"aria-hidden":"true"}):u==="stale"?s.jsx(Hh,{size:12,"aria-hidden":"true"}):u==="contradicted"?s.jsx(yp,{size:12,"aria-hidden":"true"}):null}function T0({copy:u,blocks:o,warnings:d,blockOriginSteps:f,selectedBlockId:v,onSelectBlock:C}){const x=D.useRef(null),H=D.useRef(new Map),j=D.useRef(o),{active:m,retired:E}=D.useMemo(()=>{const T=[],k=[];for(const J of o)j0(J.state)?k.push(J):T.push(J);return{active:T,retired:k}},[o]);if(j.current!==o){const T=x.current;if(T){const k=new Map,J=T.getBoundingClientRect();for(const _ of T.querySelectorAll(".context-flow-dot")){const P=_.dataset.blockId;if(!P)continue;const V=_.getBoundingClientRect();k.set(P,{x:V.left-J.left,y:V.top-J.top})}H.current=k}j.current=o}return D.useLayoutEffect(()=>{const T=x.current;if(!T||H.current.size===0)return;const k=T.getBoundingClientRect(),J=new Set(H.current.keys()),_=new Set,P=[];for(const V of T.querySelectorAll(".context-flow-dot")){const $=V.dataset.blockId;_.add($);const ee=H.current.get($);if(!ee)continue;const O=V.getBoundingClientRect(),ie=O.left-k.left,de=O.top-k.top,F=ee.x-ie,I=ee.y-de;Math.abs(F)<1&&Math.abs(I)<1||(V.classList.add("moving"),V.style.transition="none",V.style.transform=`translate(${F}px, ${I}px)`,P.push(V))}P.length>0&&T.offsetHeight,requestAnimationFrame(()=>{for(const V of P)V.style.transition="";P.length>0&&T.offsetHeight;for(const V of P)V.style.transform=""});for(const V of J){if(_.has(V))continue;const $=H.current.get(V);if(!$)continue;const ee=document.createElement("button");ee.type="button",ee.className="context-flow-dot exiting",ee.dataset.blockId=V,ee.style.position="absolute",ee.style.left=`${$.x}px`,ee.style.top=`${$.y}px`,ee.innerHTML="<span>×</span>",T.appendChild(ee),ee.offsetHeight,ee.style.transition="",ee.style.transform="translateY(28px)",setTimeout(()=>ee.remove(),520)}},[o]),s.jsxs("div",{ref:x,className:"context-mini-scene-inner","aria-label":u.contextReplayMiniSceneAria,children:[s.jsx(Mh,{kind:"active",label:u.contextReplayLaneActive,blocks:m,blockOriginSteps:f,selectedBlockId:v,onSelectBlock:C,copy:u}),s.jsx(Mh,{kind:"retired",label:u.contextReplayLaneRetired,blocks:E,blockOriginSteps:f,selectedBlockId:v,onSelectBlock:C,copy:u}),s.jsxs("div",{className:"context-mini-scene-section warnings",children:[s.jsxs("div",{className:"context-mini-scene-lane",children:[s.jsx("span",{children:u.contextReplayLaneWarnings}),s.jsx("em",{children:d.length})]}),d.length>0?s.jsx("div",{className:"context-mini-scene-warnings",children:d.map(T=>s.jsx("span",{className:`context-mini-scene-warning ${T.severity}`,title:`${T.title} — ${T.detail}`,children:T.severity},T.id))}):s.jsx("p",{className:"context-mini-scene-empty",children:"—"})]})]})}function Mh({kind:u,label:o,blocks:d,blockOriginSteps:f,selectedBlockId:v,onSelectBlock:C,copy:x}){return s.jsxs("div",{className:`context-mini-scene-section ${u}`,children:[s.jsxs("div",{className:"context-mini-scene-lane",children:[s.jsx("span",{children:o}),s.jsx("em",{children:d.length})]}),d.length>0?s.jsx("div",{className:"context-mini-scene-dots",children:d.map((H,j)=>s.jsx(A0,{block:H,active:H.id===v,originStep:f.get(H.id)??1,onSelect:()=>C(H.id),copy:x,index:j},H.id))}):s.jsx("p",{className:"context-mini-scene-empty",children:"—"})]})}function A0({block:u,active:o,originStep:d,onSelect:f,copy:v,index:C}){return s.jsx("button",{type:"button","data-block-id":u.id,className:`context-flow-dot state-${u.state}${o?" active":""}`,style:{"--dot-index":C},onClick:f,title:`${u.title} · ${u.state} · ${v.contextReplayFromStep(d)}`,"aria-pressed":o,"aria-label":`${u.title} (${u.state}, ${v.contextReplayFromStep(d)})`,children:s.jsx("span",{children:d})})}function E0({copy:u,journeys:o,selectedProjectName:d,selectedJourneyId:f,onSelectJourney:v,onClose:C}){const x=D.useMemo(()=>{let m=0,E=0,T=0,k=0,J=null,_=0;for(const P of o){const V=P.tokenUsage?.total??0;m+=V,E+=P.tokenUsage?.input??0,T+=P.tokenUsage?.output??0,k+=P.tokenUsage?.cachedInput??0,V>_&&(_=V,J=P)}return{totalTokens:m,totalInput:E,totalOutput:T,totalCached:k,peakJourney:J,peakTotal:_,count:o.length}},[o]),H=Math.max(x.peakTotal,1),j=D.useMemo(()=>[...o].sort((m,E)=>Date.parse(m.startedAt)-Date.parse(E.startedAt)),[o]);return s.jsxs("div",{className:"token-timeline",children:[s.jsxs("div",{className:"token-timeline-summary",children:[s.jsx("div",{className:"token-timeline-summary-project",children:d}),s.jsxs("div",{className:"token-timeline-summary-stats",children:[s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:u.statusLegendSuccess&&"Conversations"||"Conversations"}),s.jsx("strong",{children:x.count})]}),s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:"Total"}),s.jsx("strong",{children:Ee(x.totalTokens)})]}),s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:"Input"}),s.jsx("strong",{style:{color:"var(--blue)"},children:Ee(x.totalInput)})]}),s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:"Output"}),s.jsx("strong",{style:{color:"var(--orange)"},children:Ee(x.totalOutput)})]}),s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:"Cached"}),s.jsx("strong",{style:{color:"var(--success)"},children:Ee(x.totalCached)})]})]})]}),s.jsxs("div",{className:"token-timeline-legend",children:[s.jsxs("span",{className:"token-timeline-legend-item",children:[s.jsx("i",{className:"seg input"}),"Input"]}),s.jsxs("span",{className:"token-timeline-legend-item",children:[s.jsx("i",{className:"seg output"}),"Output"]}),s.jsxs("span",{className:"token-timeline-legend-item",children:[s.jsx("i",{className:"seg cached"}),"Cached"]}),s.jsxs("span",{className:"token-timeline-legend-item",children:[s.jsx("i",{className:"seg reasoning"}),"Reasoning"]})]}),s.jsx("div",{className:"token-timeline-bars",children:j.map((m,E)=>{const T=m.tokenUsage??{input:0,output:0,reasoning:0,cachedInput:0,total:0},k=T.total,J=Math.max(8,k/H*160),_=m.id===f,P=k>0?T.input/k*100:0,V=k>0?T.output/k*100:0,$=k>0?T.cachedInput/k*100:0,ee=k>0?T.reasoning/k*100:0,O=`${m.title}
|
|
13
|
+
|
|
14
|
+
${Ee(k)} tokens · ${Cl(m.durationMs)} · ${m.status}
|
|
15
|
+
Input: ${Ee(T.input)} · Output: ${Ee(T.output)}
|
|
16
|
+
Cached: ${Ee(T.cachedInput)} · Reasoning: ${Ee(T.reasoning)}`;return s.jsx(jo,{text:O,children:s.jsxs("button",{type:"button",className:`token-timeline-bar ${m.status}${_?" selected":""}`,onClick:()=>{v(m.id),C()},children:[s.jsx("div",{className:"token-timeline-step",children:s.jsx("b",{children:E+1})}),s.jsxs("div",{className:"token-timeline-stack",style:{height:`${J}px`},children:[ee>0?s.jsx("div",{className:"token-timeline-segment reasoning",style:{height:`${ee}%`}}):null,V>0?s.jsx("div",{className:"token-timeline-segment output",style:{height:`${V}%`}}):null,$>0?s.jsx("div",{className:"token-timeline-segment cached",style:{height:`${$}%`}}):null,P>0?s.jsx("div",{className:"token-timeline-segment input",style:{height:`${P}%`}}):null]}),s.jsx("span",{className:"token-timeline-label",children:Ee(k)}),s.jsx("span",{className:"token-timeline-title",children:m.title})]})},m.id)})})]})}function C0({copy:u,snapshots:o,activeSnapshotId:d,activeSnapshotIndex:f,blockOriginSteps:v,selectedBlockId:C,onSelectBlock:x,onActivateSnapshot:H}){const j=D.useRef(null);return D.useEffect(()=>{const m=j.current;if(!m)return;m.querySelector(`[data-station-index="${f}"]`)?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[f]),s.jsx("div",{ref:j,className:"context-factory-strip","aria-label":u.contextReplayMiniSceneAria,children:o.map((m,E)=>{const T=m.blocks.filter($=>$.state!=="dropped"&&$.state!=="stale"),k=m.blocks.filter($=>$.state==="dropped"||$.state==="stale"),J=m.id===d,_=E===0,P=m.addedBlockIds.length,V=m.droppedBlockIds.length;return s.jsx(R0,{snapshot:m,index:E,active:J,added:P,removed:V,activeBlocks:T,droppedBlocks:k,blockOriginSteps:v,selectedBlockId:C,onSelectBlock:x,onActivate:H,copy:u,isFirst:_},m.id)})})}function R0({snapshot:u,index:o,active:d,added:f,removed:v,activeBlocks:C,droppedBlocks:x,blockOriginSteps:H,selectedBlockId:j,onSelectBlock:m,onActivate:E,copy:T,isFirst:k}){const J=d?"div":"button";return s.jsxs(s.Fragment,{children:[k?null:s.jsx("div",{className:"factory-station-connector",children:s.jsx("span",{children:"→"})}),s.jsxs(J,{type:d?void 0:"button","data-station-index":o,className:`factory-station${d?" active":""}`,onClick:d?void 0:()=>E(o),"aria-current":d?"step":void 0,"aria-label":`${T.contextReplayStep} ${o+1}: ${u.title}`,title:`${T.contextReplayStep} ${o+1}: ${u.title}`,children:[s.jsx("div",{className:"factory-station-prompt",title:u.title,children:u.title}),s.jsxs("div",{className:"factory-station-header",children:[s.jsx("span",{className:"factory-station-phase",children:u.phase}),s.jsx("b",{className:"factory-station-index",children:o+1}),f>0||v>0?s.jsxs("span",{className:"factory-station-delta",children:[f>0?s.jsxs("em",{className:"added",children:["+",f]}):null,v>0?s.jsxs("em",{className:"removed",children:["-",v]}):null]}):null]}),s.jsx("div",{className:"factory-station-blocks",children:C.length>0?C.map(_=>s.jsx("button",{type:"button","data-block-id":_.id,className:`factory-block-pill state-${_.state}${_.id===j?" active":""}`,title:`${_.title} · ${_.state} · ${T.contextReplayFromStep(H.get(_.id)??1)}`,"aria-pressed":_.id===j,onClick:P=>{P.stopPropagation(),m(_.id)},children:H.get(_.id)??1},_.id)):s.jsx("span",{className:"factory-station-empty",children:"—"})}),x.length>0?s.jsx("div",{className:"factory-station-drops",children:x.map(_=>s.jsx("button",{type:"button","data-block-id":_.id,className:`factory-block-pill dropped state-${_.state}`,title:`${_.title} · ${_.state}`,onClick:P=>{P.stopPropagation(),m(_.id)},children:H.get(_.id)??1},_.id))}):null]})]})}function M0({copy:u,journey:o,detail:d,fallbackPrompt:f,expanded:v,loading:C,selectedEventId:x,onToggleDetails:H,onSelectEvent:j}){const m=d?.events??[],E=f??m.find(O=>O.id===o.promptEventId||O.kind==="user_prompt"),T=m.find(O=>O.kind==="assistant_message"),k=m.filter(O=>O.kind!=="user_prompt"&&O.id!==T?.id),J=m.filter(O=>O.kind==="tool_call"||O.kind==="tool_result"||O.kind==="file_change"||O.kind==="verification"||O.kind==="error"),_=O0(o.skills,m),P=T?.detail??T?.title??o.summary,V=ho(E?E.sessionId:o.sessionId),$=Xh(V),ee=E?.detail??o.title;return s.jsxs("article",{className:`conversation-turn ${o.status}`,children:[s.jsx("div",{className:"conversation-summary",children:s.jsxs("div",{children:[s.jsx("span",{children:u.eventCount(o.eventIds.length)}),s.jsx("span",{children:_0(o.exitType,u)}),s.jsx("span",{children:Cl(o.durationMs)}),s.jsxs("span",{children:[Ee(o.tokenUsage.total)," ",u.tokens]}),s.jsxs("span",{children:[u.kvHit," ",ws(o.tokenUsage)]}),C?s.jsx("span",{children:u.loadingDetails}):null]})}),s.jsx(zh,{copy:u,variant:"user",label:u.user,text:ee,skills:_,selected:E?.id===x,disabled:!E,onSelect:()=>E?j(E):void 0}),s.jsxs("div",{className:"message-row codex detail-message-row",children:[s.jsx("span",{className:"message-avatar","aria-hidden":"true",children:U0(V)}),s.jsx("div",{className:"message-stack",children:s.jsxs("button",{className:"conversation-message codex detail-toggle",onClick:H,children:[s.jsx("span",{className:"message-meta",children:u.agentWork}),s.jsx("span",{children:v?u.hideProcess:u.viewProcess})]})})]}),v?s.jsxs("div",{className:"background-details",children:[s.jsxs("section",{children:[s.jsxs("div",{className:"detail-section-heading",children:[s.jsx("span",{children:u.backgroundWork}),s.jsxs("em",{children:[k.length," ",u.entries]})]}),s.jsx("div",{className:"log-list",children:k.length>0?k.map(O=>s.jsxs("button",{className:Ch(O,x),"data-event-id":O.id,onClick:()=>j(O),children:[s.jsx("span",{children:O.kind}),s.jsx("strong",{children:O.title}),O.skills&&O.skills.length>0?s.jsxs("small",{children:[u.skills,": ",fo(O.skills)]}):null,s.jsx("small",{children:O.detail??mo(O.timestamp)})]},O.id)):s.jsx("p",{className:"muted",children:u.noBackground})})]}),s.jsxs("section",{children:[s.jsxs("div",{className:"detail-section-heading",children:[s.jsx("span",{children:u.log}),s.jsxs("em",{children:[J.length," ",u.entries]})]}),s.jsx("div",{className:"log-list compact",children:J.length>0?J.map(O=>s.jsxs("button",{className:Ch(O,x),"data-event-id":O.id,onClick:()=>j(O),children:[s.jsx("span",{children:O.toolName??O.kind}),s.jsx("strong",{children:O.title}),O.skills&&O.skills.length>0?s.jsxs("small",{children:[u.skills,": ",fo(O.skills)]}):null,s.jsx("small",{children:O.detail??O.callId??mo(O.timestamp)})]},O.id)):s.jsx("p",{className:"muted",children:u.noLog})})]})]}):null,s.jsx(zh,{copy:u,variant:"codex",label:$,text:P,skills:_,selected:T?.id===x,disabled:!T,onSelect:()=>T?j(T):void 0})]})}function zh({copy:u,variant:o,label:d,title:f,text:v,skills:C=[],selected:x,disabled:H,onSelect:j}){const[m,E]=D.useState(!1),[T,k]=D.useState(!1),J=D.useRef(null);return D.useEffect(()=>{const _=J.current;if(!_)return;const P=()=>{k(_.scrollHeight>250)};P();const V=new ResizeObserver(P);return V.observe(_),()=>V.disconnect()},[v,f]),D.useEffect(()=>{T||E(!1)},[T]),s.jsxs("div",{className:`message-row ${o}`,children:[s.jsx("span",{className:"message-avatar","aria-hidden":"true",children:o==="user"?"U":"C"}),s.jsxs("div",{className:"message-stack",children:[s.jsxs("button",{className:`conversation-message ${o} ${x?"selected":""}`,disabled:H,onClick:j,children:[s.jsx("span",{className:"message-meta",children:d}),s.jsxs("div",{ref:J,className:"message-body","data-expanded":m?"true":"false",children:[f?s.jsx("strong",{children:f}):null,s.jsx("p",{children:v})]}),C.length>0?s.jsx(z0,{copy:u,skills:C}):null,T&&!m?s.jsx("span",{className:"message-fade","aria-hidden":"true"}):null]}),T?s.jsx("button",{className:"message-expand-toggle",onClick:()=>E(_=>!_),children:m?u.collapse:u.expand}):null]})]})}function z0({copy:u,skills:o}){const d=No(o),f=d.slice(0,4),v=Math.max(0,d.length-f.length);return s.jsxs("div",{className:"skill-chip-row","aria-label":`${u.skills}: ${fo(o)}`,children:[s.jsx("span",{className:"skill-chip-label",children:u.skills}),f.map(C=>s.jsx("span",{className:"skill-chip",title:C.excerpt||C.path||C.source,children:C.name},`${C.name}-${C.source}-${C.path??""}`)),v>0?s.jsxs("span",{className:"skill-chip more",children:["+",v]}):null]})}function jo({text:u,children:o}){const[d,f]=D.useState(!1),[v,C]=D.useState({top:0,left:0}),x=D.useRef(null);function H(){const m=x.current?.getBoundingClientRect();if(!m)return;const E=m.bottom+8,T=Math.max(8,Math.min(m.left,window.innerWidth-500));C({top:E,left:T}),f(!0)}function j(m){let T=m.clientX+14,k=m.clientY+14;T+260>window.innerWidth&&(T=m.clientX-260-14),k+120>window.innerHeight&&(k=m.clientY-120-14),C({top:k,left:T})}return s.jsxs("span",{ref:x,onMouseEnter:H,onMouseMove:j,onMouseLeave:()=>f(!1),onFocus:H,onBlur:()=>f(!1),style:{display:"contents"},children:[o,d&&u?Lh.createPortal(s.jsx("div",{className:"app-tooltip",style:{top:v.top,left:v.left},role:"tooltip",children:u}),document.body):null]})}function k0({step:u,totalSteps:o,copy:d,onPrev:f,onNext:v,onDone:C,onSkip:x}){const H=[".scan-dropdown-trigger",".project-dropdown-trigger",".session-recap",".token-chart-panel",".conversation-master-item",".context-replay-panel",".context-replay-summary",".context-factory-strip",".theme-dropdown"],j=[10,10,12,12,10,12,8,8,12],m=["bottom","bottom","top","top","left","top","bottom","bottom","bottom"],[E,T]=D.useState(null),[k,J]=D.useState(!1),[_,P]=D.useState(!1),V=H[u]??null,$=j[u]??10,ee=m[u]??"bottom";D.useLayoutEffect(()=>{if(window.innerWidth<760)return;function X(){const W=V?document.querySelector(V):null;if(!W){T(null);return}const le=W.getBoundingClientRect();T(new DOMRect(le.left-$,le.top-$,le.width+$*2,le.height+$*2))}return X(),window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X)}},[u,V,$]),D.useEffect(()=>{function X(W){W.key==="Escape"&&P(!0)}return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[]),D.useEffect(()=>{if(_){J(!0);const X=setTimeout(()=>{x()},160);return()=>clearTimeout(X)}},[_,x]);function O(){k||(J(!0),setTimeout(()=>{u<o-1?v():C(),J(!1)},100))}function ie(){k||(J(!0),setTimeout(()=>{f(),J(!1)},100))}function de(){J(!0),setTimeout(()=>{C()},160)}if(window.innerWidth<760)return null;const F=Math.min(400,window.innerWidth-32),I=200,he=12;function B(){if(!E)return{top:Math.max(16,(window.innerHeight-I)/2),left:Math.max(16,(window.innerWidth-F)/2)};const X=[ee,"bottom","top","right","left"],W=[...new Set(X)];for(const le of W){let ue=0,A=0;switch(le){case"bottom":ue=E.bottom+he,A=E.left;break;case"top":ue=E.top-he-I,A=E.left;break;case"right":ue=E.top,A=E.right+he;break;case"left":ue=E.top,A=E.left-he-F;break}ue=Math.max(16,Math.min(ue,window.innerHeight-I-16)),A=Math.max(16,Math.min(A,window.innerWidth-F-16));const b={top:ue,left:A,right:A+F,bottom:ue+I};if(!!(b.right<E.left||b.left>E.right||b.bottom<E.top||b.top>E.bottom))return{top:ue,left:A}}return{top:Math.max(16,(window.innerHeight-I)/2),left:Math.max(16,(window.innerWidth-F)/2)}}const K=B(),Y=d.steps[u]??{title:"",detail:""};return Lh.createPortal(s.jsxs("div",{className:"tour-root",children:[s.jsx("div",{className:"tour-backplate"}),E&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"tour-spotlight",style:{left:E.left,top:E.top,width:E.width,height:E.height,borderRadius:8}}),s.jsx("div",{className:"tour-spotlight-border",style:{left:E.left,top:E.top,width:E.width,height:E.height,borderRadius:8}})]}),s.jsxs("div",{className:"tour-card",style:{top:K.top,left:K.left,opacity:k?0:1},children:[s.jsx("div",{className:"tour-card-step-label",children:d.stepLabel(u+1,o)}),s.jsx("h3",{className:"tour-card-title",children:Y.title}),s.jsx("p",{className:"tour-card-detail",children:Y.detail}),s.jsx("div",{className:"tour-card-progress",children:Array.from({length:o},(X,W)=>s.jsx("span",{className:`tour-step-dot${W===u?" active":""}`},W))}),s.jsxs("div",{className:"tour-card-actions",children:[s.jsx("button",{type:"button",className:"tour-skip-btn",onClick:x,children:d.skip}),s.jsxs("div",{className:"tour-nav-group",children:[u>0&&s.jsx("button",{type:"button",className:"tour-nav-btn",onClick:ie,children:d.prev}),u<o-1?s.jsx("button",{type:"button",className:"tour-nav-btn tour-next-btn",onClick:O,children:d.next}):s.jsx("button",{type:"button",className:"tour-nav-btn tour-done-btn",onClick:de,children:d.done})]})]})]})]}),document.body)}function D0({copy:u,ingestCopy:o,message:d,job:f}){const v=f&&f.totalFiles>0?Math.round(f.processedFiles/f.totalFiles*100):0;return s.jsx("div",{className:"blocking-loader",role:"status","aria-live":"polite","aria-label":u.aria,children:s.jsxs("div",{className:"blocking-loader-card",children:[s.jsxs("div",{className:"blocking-loader-message",children:[s.jsx("span",{className:"blocking-loader-icon","aria-hidden":"true"}),s.jsxs("div",{children:[s.jsx("strong",{children:d}),s.jsx("span",{children:u.steady})]})]}),f?s.jsxs("div",{className:"blocking-loader-progress",children:[s.jsx("div",{className:"blocking-loader-progress-bar",children:s.jsx("i",{style:{width:`${v}%`}})}),s.jsxs("div",{className:"blocking-loader-progress-meta",children:[s.jsxs("span",{children:[o.phase,": ",f.phase]}),s.jsxs("span",{children:[f.processedFiles,"/",f.totalFiles," ",o.files]}),s.jsxs("span",{children:[o.events,": ",f.totalEvents]})]})]}):null]})})}function uo({copy:u,title:o,detail:d,agentProvider:f,onAgentProviderChange:v,agentLogRoot:C,onAgentLogRootChange:x,onScan:H,scanLabel:j,placeholder:m,disabled:E=!1}){return s.jsxs("section",{className:"empty-state",children:[s.jsx(wp,{size:34}),s.jsx("h2",{children:o}),s.jsx("p",{children:d}),s.jsxs("label",{className:"empty-agent-provider",children:[s.jsx("span",{children:u.source}),s.jsxs("select",{"aria-label":u.sourceAria,value:f,onChange:T=>v(T.target.value),disabled:E,children:[s.jsx("option",{value:"codex",children:"Codex"}),s.jsx("option",{value:"claude-code",children:"Claude Code"}),s.jsx("option",{value:"opencode",children:"OpenCode"})]})]}),s.jsxs("label",{className:"empty-agent-root",children:[s.jsx("span",{children:u.root}),s.jsx("input",{"aria-label":u.rootAria,value:C,onChange:T=>x(T.target.value),placeholder:m,disabled:E})]}),s.jsx("button",{className:"primary-button",onClick:H,disabled:E,children:j})]})}function O0(u,o){return No([...u??[],...o.flatMap(d=>d.skills??[])])}function kh(u,o){return o==="all"?u:u.filter(d=>d.sessions.some(f=>f.provider===o||f.id.startsWith(`${o}:`)))}function No(u){const o=new Map;for(const d of u)o.has(d.name)||o.set(d.name,d);return[...o.values()].sort((d,f)=>d.name.localeCompare(f.name))}function fo(u){return No(u).map(o=>o.name).join(", ")}function _0(u,o){return u==="next_prompt"?o.nextInput:o.sessionEnd}function ho(u){return u.startsWith("claude-code:")?"claude-code":u.startsWith("opencode:")?"opencode":"codex"}function Xh(u){return u==="claude-code"?"Claude Code":u==="opencode"?"OpenCode":"Codex CLI"}function U0(u){return u==="claude-code"?"CC":u==="opencode"?"OC":"C"}function mo(u,o){const d=new Date(u);return Number.isNaN(d.getTime())?u:d.toLocaleString()}function Cl(u){if(u<1e3)return`${u}ms`;const o=u/1e3;if(o<60)return`${o.toFixed(o<10?1:0)}s`;const d=Math.floor(o/60),f=Math.round(o%60);return f>0?`${d}m ${f}s`:`${d}m`}function ws(u){if(u.input<=0)return"0.0%";const o=u.cachedInput/u.input*100;return`${Math.max(0,Math.min(100,o)).toFixed(1)}%`}function co(u){return u?.status==="queued"||u?.status==="running"}function H0({copy:u,loading:o,timelineLoading:d,dailyTokenUsageLoading:f}){return d?u.loading.loadingTimeline:o?u.loading.loadingIndex:f?u.loading.loadingDailyTokens:null}function w0({job:u,message:o,ingestBusy:d,loading:f,timelineLoading:v,dailyTokenUsageLoading:C}){return o?d&&u?u:f?Ds("loading-projects","scanning",3,12,o):v?Ds("loading-timeline","normalizing",7,12,o):C?Ds("loading-token-usage","parsing",5,12,o):Ds("loading-superview","scanning",4,12,o):null}function Ds(u,o,d,f,v){return{id:u,status:"running",phase:o,startedAt:new Date(0).toISOString(),finishedAt:null,totalFiles:f,processedFiles:d,totalEvents:d*10,errors:[],skippedFiles:Math.max(0,d-2),candidateFiles:f,changedFiles:d,processedBytes:0,totalBytes:0,currentFile:v}}function L0(u,o){if(!u)return[];const d=new Map;for(const f of u.eventIds){const v=o.get(f);if(!v)continue;const C=v.toolName||(v.kind==="tool_call"?v.title:null);if(!C)continue;const x=d.get(C)??{count:0,errors:0};x.count++,v.status==="failed"&&x.errors++,d.set(C,x)}return[...d.entries()].map(([f,{count:v,errors:C}])=>({name:f,count:v,errors:C})).sort((f,v)=>v.count-f.count)}function B0({tools:u,copy:o}){const[d,f]=D.useState(!1);if(u.length===0)return s.jsx("section",{className:"tool-usage-bars",children:s.jsx("p",{className:"muted",children:o.toolUsageEmpty})});const v=Math.max(...u.map(x=>x.count)),C=d?u:u.slice(0,5);return s.jsxs("section",{className:"tool-usage-bars","aria-label":o.toolUsageHeading,children:[s.jsxs("div",{className:"detail-section-heading",children:[s.jsx("span",{children:o.toolUsageHeading}),s.jsx("span",{style:{color:"var(--muted)",fontSize:10,fontWeight:800},children:u.length})]}),s.jsx("div",{className:"tool-usage-list",children:C.map(x=>s.jsxs("div",{className:"tool-usage-row",children:[s.jsx("span",{className:"tool-usage-name",children:x.name}),s.jsx("span",{className:"tool-usage-track",children:s.jsx("span",{className:"tool-usage-fill",style:{width:`${x.count/v*100}%`}})}),s.jsx("span",{className:"tool-usage-count",children:x.count}),x.errors>0?s.jsxs("span",{className:"tool-usage-errors",children:[x.errors," ",o.toolUsageErrors]}):null]},x.name))}),u.length>5?s.jsx("button",{type:"button",className:"tool-usage-toggle",onClick:()=>f(x=>!x),children:d?`▲ ${u.length-5} less`:`▼ ${u.length-5} more`}):null]})}function q0(u){return u.kind==="user_prompt"?"user":u.kind==="assistant_message"?"assistant":u.kind==="tool_call"?"tool":u.kind==="reasoning_marker"?"thinking":u.kind==="error"||u.status==="failed"?"error":"meta"}const Y0={user:"User message",assistant:"Assistant reply",tool:"Tool call",thinking:"Thinking",error:"Error",compact:"Compaction",meta:"Meta"};function G0(u){const o=new Date(u);return isNaN(o.getTime())?"":o.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function Dh(u){const o=new Date(u);return isNaN(o.getTime())?"":new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(o)}function X0({eventIds:u,timelineEventsById:o}){const d=u.map(m=>o.get(m)).filter(m=>m!==void 0);if(d.length===0)return null;const f=d.map(m=>Date.parse(m.timestamp)),v=f[0],x=f[f.length-1]-v,H=!isFinite(x)||x<=0||f.some(m=>isNaN(m)),j=d.length;return s.jsxs("div",{children:[s.jsxs("div",{className:"event-tape","aria-hidden":"true",children:[s.jsx("div",{className:"event-tape-mid"}),d.map((m,E)=>{const T=q0(m),k=T==="error"||T==="compact",J=H?`${j>1?E/(j-1)*100:50}%`:`${(f[E]-v)/x*100}%`,_=T==="meta"?.4:.85,P=[];P.push(Y0[T]??m.kind),m.toolName&&P.push(` · ${m.toolName}`),m.tokenUsage?.total!=null&&P.push(`
|
|
17
|
+
${m.tokenUsage.total.toLocaleString()} tokens`);const V=G0(m.timestamp);return V&&P.push(`
|
|
18
|
+
${V}`),s.jsx(jo,{text:P.join(""),children:s.jsx("div",{className:`event-tape-tick${k?" tall":""} cat-${T}`,style:{left:J,opacity:_}})},m.id)})]}),j>0?s.jsxs("div",{className:"event-tape-axis",children:[s.jsx("span",{children:Dh(d[0].timestamp)}),s.jsx("span",{children:j>1?Cl(x):"1 event"}),s.jsx("span",{children:Dh(d[j-1].timestamp)})]}):null]})}const oo=["var(--surface-soft)","color-mix(in srgb, var(--orange) 25%, var(--surface-soft))","color-mix(in srgb, var(--orange) 50%, var(--surface-soft))","color-mix(in srgb, var(--orange) 72%, var(--surface-soft))","var(--orange)"];function Oh(u,o){if(u<=0||o<=0)return 0;const d=u/o;return d>=.66?4:d>=.33?3:d>=.12?2:1}function V0({copy:u,metricsCopy:o,tokenChartCopy:d,journeys:f,timelineEventsById:v,dailyTokenUsage:C,dailyTokenUsageLoading:x,sessionMap:H,pricing:j,onPricingChange:m}){const[E,T]=D.useState("cost"),[k,J]=D.useState(()=>{const B=localStorage.getItem("superview-recap-open");return B!==null?B==="true":!0}),_=D.useMemo(()=>{let B=f.length,K=0,Y=0,X=0,W=0,le=0,ue=0,A=0,b=0;const Q={};for(const te of f){K+=te.tokenUsage?.total??0,Y+=te.tokenUsage?.input??0,X+=te.tokenUsage?.output??0,W+=te.tokenUsage?.cachedInput??0,le+=tl(te.tokenUsage,void 0,j),b+=te.durationMs??0,te.status==="failed"&&A++;for(const G of te.eventIds){const h=v.get(G);if(h?.toolName){ue++;const M=Q[h.toolName]??{count:0,errors:0};M.count++,h.status==="failed"&&M.errors++,Q[h.toolName]=M}}}return{sessions:B,totalTokens:K,totalInput:Y,totalOutput:X,totalCached:W,estCost:le,toolCalls:ue,errors:A,totalDurationMs:b,toolAgg:Q}},[f,v,j]),P=D.useMemo(()=>Yh(f,H,j),[f,H,j]),V=D.useMemo(()=>{const B=new Map;for(const K of f){if(!K.startedAt)continue;const Y=new Date(K.startedAt),X=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate()).getTime(),W=B.get(X)??{date:new Date(Y.getFullYear(),Y.getMonth(),Y.getDate()),cost:0,tokens:0,sessions:0};W.cost+=tl(K.tokenUsage,void 0,j),W.tokens+=K.tokenUsage?.total??0,W.sessions++,B.set(X,W)}return B},[f,j]),$=D.useMemo(()=>{const B=[...V.values()];if(B.length===0)return{weeks:[],months:[],max:0};B.sort((h,M)=>h.date.getTime()-M.date.getTime());const K=B[0].date,Y=B[B.length-1].date,X=371*864e5,W=new Date(Math.max(K.getTime(),Y.getTime()-X)),le=new Date(W);le.setDate(le.getDate()-le.getDay());const ue=h=>E==="cost"?h.cost:E==="tokens"?h.tokens:h.sessions;let A=0;for(const h of B)if(h.date>=le){const M=ue(h);M>A&&(A=M)}const b=[],Q=[];let te=new Date(le),G=-1;for(;te<=Y;){const h=[];for(let M=0;M<7;M++){const Z=new Date(te),ae=new Date(Z.getFullYear(),Z.getMonth(),Z.getDate()).getTime(),ce=V.get(ae)??null,me=Z<W||Z>Y;h.push({date:Z,rec:ce,out:me});const be=Z.getMonth();M===0&&be!==G&&(Q.push({col:b.length,label:Z.toLocaleDateString(void 0,{month:"short"})}),G=be),te.setDate(te.getDate()+1)}b.push(h)}return{weeks:b,months:Q,max:A}},[V,E]),ee=D.useMemo(()=>{const B=Array.from({length:7},()=>new Array(24).fill(0));let K=0;for(const Y of v.values()){if(!Y.timestamp)continue;const X=new Date(Y.timestamp);isNaN(X.getTime())||(B[X.getDay()][X.getHours()]++,B[X.getDay()][X.getHours()]>K&&(K=B[X.getDay()][X.getHours()]))}return{grid:B,max:K}},[v]),O=D.useMemo(()=>{const B=_.totalInput+_.totalCached,K=B>0?_.totalCached/B*100:0,Y=_.toolCalls,X=Object.values(_.toolAgg).reduce((Q,te)=>Q+te.errors,0),W=Y>0?X/Y*100:0,le=100-W,ue=_.sessions>0?_.totalTokens/_.sessions:0,A=_.sessions>0?_.estCost/_.sessions:0;let b=0;for(const Q of f){const G=H.get(Q.sessionId)?.modelProvider??null,h=So(G,j);b+=(Q.tokenUsage?.cachedInput??0)*h.inRate*.9/1e6}return{cacheHitRate:K,successRate:le,failRate:W,toolErrors:X,tokensPerSession:ue,costPerSession:A,cacheSaved:b}},[_,f,H,j]),ie=D.useRef([]),de=D.useMemo(()=>{const B=P[0]?.label??"—";let K=null;for(const W of V.values())(!K||W.cost>K.cost)&&(K={date:W.date,cost:W.cost});let Y=0,X="";for(const W of f){const le=tl(W.tokenUsage,void 0,j);if(le>Y){Y=le;const ue=H.get(W.sessionId)?.cwd;X=ue?ue.replace(/\\/g,"/").split("/").filter(Boolean).slice(-2).join("/")||ue:"(unknown)"}}return{favModel:B,busyDay:K,priciestName:X,priciestCost:Y}},[P,V,f,j,H]);if(f.length===0)return s.jsxs("details",{className:"session-recap",open:k,onToggle:B=>{const K=B.target.open;J(K),localStorage.setItem("superview-recap-open",String(K))},children:[s.jsxs("summary",{children:[s.jsx("span",{className:"caret",children:"▸"}),u.recapToggle]}),s.jsx("div",{className:"recap-body",children:s.jsx("p",{className:"recap-empty",children:u.recapEmpty})})]});const F=B=>E==="cost"?$t(B):E==="tokens"?Ee(B):`${B} sess`,I=Object.entries(_.toolAgg).sort((B,K)=>K[1].count-B[1].count),he=I.length>0?I[0][1].count:1;return s.jsxs("details",{className:"session-recap",open:k,onToggle:B=>{const K=B.target.open;J(K),localStorage.setItem("superview-recap-open",String(K))},children:[s.jsxs("summary",{children:[s.jsx("span",{className:"caret",children:"▸"}),u.recapToggle,s.jsxs("span",{className:"recap-summary-stats",children:[s.jsxs("span",{children:[_.sessions," ",s.jsx("b",{children:u.readoutSessions.toLowerCase()})]}),s.jsx("span",{children:s.jsx("b",{children:$t(_.estCost)})}),s.jsxs("span",{children:[s.jsx("b",{children:Ee(_.totalTokens)})," tokens"]}),s.jsxs("span",{className:"recap-summary-footnotes",children:[s.jsxs("span",{children:["most-used ",s.jsx("b",{children:de.favModel})]}),de.busyDay?s.jsxs("span",{children:["busiest"," ",s.jsx("b",{children:de.busyDay.date.toLocaleDateString(void 0,{month:"short",day:"numeric"})})," ",s.jsx("em",{children:$t(de.busyDay.cost)})]}):null,s.jsxs("span",{children:["priciest ",s.jsx("b",{children:de.priciestName})," ",s.jsx("em",{children:$t(de.priciestCost)})]})]})]})]}),s.jsxs("div",{className:"recap-body",children:[s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"01"})," readout"]}),s.jsxs("div",{className:"recap-readout",children:[s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutSessions}),s.jsx("div",{className:"rv",children:_.sessions})]}),s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutEstCost}),s.jsx("div",{className:"rv cost",children:$t(_.estCost)})]}),s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutTotalTokens}),s.jsx("div",{className:"rv",children:Ee(_.totalTokens)}),s.jsxs("div",{className:"rn",children:[Ee(_.totalInput)," in ·"," ",Ee(_.totalOutput)," out"]})]}),s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutToolCalls}),s.jsx("div",{className:"rv",children:_.toolCalls.toLocaleString()}),s.jsxs("div",{className:"rn",children:[O.toolErrors," failed"]})]}),s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutErrors}),s.jsx("div",{className:`rv${_.errors>0?" err":""}`,children:_.errors}),s.jsxs("div",{className:"rn",children:[_.sessions-_.errors," succeeded"]})]})]}),s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"02"})," ",u.recapRhythmHeading]}),s.jsxs("div",{className:"recap-rhythm-grid",children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[s.jsxs("div",{className:"recap-rhythm-panel",children:[s.jsxs("div",{className:"recap-rhythm-head",children:[s.jsx("span",{className:"recap-rhythm-title",children:u.recapDailyActivity}),s.jsxs("div",{className:"recap-metric-toggle",children:[s.jsx("button",{className:E==="cost"?"on":"",onClick:()=>T("cost"),children:"cost"}),s.jsx("button",{className:E==="tokens"?"on":"",onClick:()=>T("tokens"),children:"tokens"}),s.jsx("button",{className:E==="sessions"?"on":"",onClick:()=>T("sessions"),children:"sessions"})]})]}),$.weeks.length===0?s.jsx("p",{className:"recap-empty",children:"no dated sessions"}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"recap-cal-scroll",children:[s.jsx("div",{className:"recap-cal-months",children:$.months.map((B,K)=>s.jsx("span",{style:K>0?{marginLeft:(B.col-($.months[K-1]?.col??B.col)-1)*16}:void 0,children:B.label},K))}),s.jsxs("div",{className:"recap-cal-body",children:[s.jsx("div",{className:"recap-cal-wdays",children:["","M","","W","","F",""].map((B,K)=>s.jsx("span",{children:B},K))}),s.jsx("div",{className:"recap-cal",children:$.weeks.map((B,K)=>s.jsx("div",{className:"recap-cal-week",children:B.map((Y,X)=>{const W=Y.rec?E==="cost"?Y.rec.cost:E==="tokens"?Y.rec.tokens:Y.rec.sessions:0;return s.jsx("div",{className:"recap-cal-day",style:Y.rec&&!Y.out?{background:oo[Oh(W,$.max)],borderColor:"transparent"}:void 0,title:Y.rec?`${Y.date.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})} · ${F(W)} · ${Y.rec.sessions} session${Y.rec.sessions!==1?"s":""}`:void 0},X)})},K))})]})]}),s.jsxs("div",{className:"recap-cal-legend",children:["less"," ",oo.map((B,K)=>s.jsx("i",{style:{background:B}},K))," ","more"]})]})]}),s.jsxs("div",{className:"recap-rhythm-panel",children:[s.jsxs("div",{className:"recap-rhythm-head",children:[s.jsx("span",{className:"recap-rhythm-title",children:u.recapWhenYouShip}),s.jsx("span",{className:"recap-rhythm-sub",children:"events · hour × weekday"})]}),ee.max===0?s.jsx("p",{className:"recap-empty",children:"no timestamped events"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"recap-clock",children:[1,2,3,4,5,6,0].map(B=>{const K=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Y=[1,2,3,4,5,6,0].indexOf(B);return s.jsxs(D.Fragment,{children:[s.jsx("div",{className:"cl-lbl",children:K[Y]}),Array.from({length:24},(X,W)=>{const le=ee.grid[B][W];return s.jsx("div",{className:"cl-cell",style:le>0?{background:oo[Oh(le,ee.max)]}:void 0,title:le>0?`${K[Y]} ${String(W).padStart(2,"0")}:00 · ${le} event${le!==1?"s":""}`:void 0},`${B}-${W}`)})]},B)})}),s.jsxs("div",{className:"recap-clock-axis",children:[s.jsx("span",{className:"pad"}),s.jsx("b",{children:"0"}),s.jsx("b",{children:"6"}),s.jsx("b",{children:"12"}),s.jsx("b",{children:"18"})]})]})]})]}),C&&C.points.length>0?s.jsxs("div",{className:"recap-rhythm-panel",children:[s.jsx("div",{className:"recap-rhythm-head",children:s.jsx("span",{className:"recap-rhythm-title",children:o.dailyUsageByDay})}),s.jsx(Wp,{copy:d,data:C,loading:x,title:o.tokens,subtitle:o.dailyUsageByDay,maxVisiblePoints:30,className:"",showHeaderToggle:!1,expanded:!0,onExpandedChange:()=>{},variant:"horizon"})]}):null]}),s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"03"})," ",u.recapEfficiencyHeading]}),s.jsxs("div",{className:"recap-eff-grid",children:[s.jsxs("div",{className:"recap-eff-card",children:[s.jsx("div",{className:"et",children:u.recapCacheHit}),s.jsxs("div",{className:`ev${O.cacheHitRate>=50?" good":O.cacheHitRate<15?" warn":""}`,children:[O.cacheHitRate.toFixed(0),"%"]}),s.jsxs("div",{className:"es",children:["saved ~",$t(O.cacheSaved)," vs uncached input"]}),s.jsx("div",{className:"recap-gauge",children:s.jsx("i",{ref:B=>{ie.current[0]=B},style:{width:`${Math.max(2,Math.min(100,O.cacheHitRate))}%`},className:""})})]}),s.jsxs("div",{className:"recap-eff-card",children:[s.jsx("div",{className:"et",children:u.recapErrorRate}),s.jsxs("div",{className:`ev${O.failRate>10?" warn":" good"}`,children:[O.successRate.toFixed(0),"%"]}),s.jsxs("div",{className:"es",children:[O.toolErrors," failed of"," ",_.toolCalls.toLocaleString()," calls"]}),s.jsx("div",{className:"recap-gauge",children:s.jsx("i",{ref:B=>{ie.current[1]=B},style:{width:`${Math.max(2,Math.min(100,O.successRate))}%`},className:O.failRate>10?"warn":""})})]}),s.jsxs("div",{className:"recap-eff-card",children:[s.jsx("div",{className:"et",children:u.recapTokensPerSession}),s.jsx("div",{className:"ev",children:Ee(O.tokensPerSession)}),s.jsxs("div",{className:"es",children:["avg across ",_.sessions," session",_.sessions!==1?"s":""]}),s.jsx("div",{className:"recap-gauge",children:s.jsx("i",{ref:B=>{ie.current[2]=B},style:{width:`${Math.max(2,Math.min(100,O.tokensPerSession/1e6*100))}%`},className:"clay"})})]}),s.jsxs("div",{className:"recap-eff-card",children:[s.jsx("div",{className:"et",children:u.recapCostPerSession}),s.jsx("div",{className:"ev cost",children:$t(O.costPerSession)}),s.jsxs("div",{className:"es",children:["avg ",$t(O.costPerSession)," / session"]}),s.jsx("div",{className:"recap-gauge",children:s.jsx("i",{ref:B=>{ie.current[3]=B},style:{width:`${Math.max(2,Math.min(100,O.costPerSession*100))}%`},className:"clay"})})]})]}),s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"04"})," ",u.modelSpendHeading]}),P.length===0?s.jsx("p",{className:"recap-empty",children:u.modelSpendEmpty}):s.jsx("div",{className:"recap-model-table",children:s.jsxs("table",{children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:u.modelSpendModel}),s.jsx("th",{children:u.modelSpendMsgs}),s.jsx("th",{children:u.modelSpendInput}),s.jsx("th",{children:u.modelSpendOutput}),s.jsx("th",{children:u.modelSpendCached}),s.jsx("th",{children:u.modelSpendCost})]})}),s.jsx("tbody",{children:P.map(B=>s.jsxs("tr",{children:[s.jsx("td",{children:B.label}),s.jsx("td",{children:B.messages}),s.jsx("td",{children:Ee(B.input)}),s.jsx("td",{children:Ee(B.output)}),s.jsx("td",{children:Ee(B.cachedInput)}),s.jsx("td",{className:"cost",children:$t(B.cost)})]},B.model))}),s.jsx("tfoot",{children:s.jsxs("tr",{children:[s.jsx("td",{children:u.modelSpendTotal}),s.jsx("td",{children:P.reduce((B,K)=>B+K.messages,0)}),s.jsx("td",{children:Ee(_.totalInput)}),s.jsx("td",{children:Ee(_.totalOutput)}),s.jsx("td",{children:Ee(_.totalCached)}),s.jsx("td",{className:"cost",children:$t(_.estCost)})]})})]})}),s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"05"})," ",u.toolUsageHeading]}),I.length===0?s.jsx("p",{className:"recap-empty",children:u.toolUsageEmpty}):s.jsx("div",{className:"recap-tools",children:I.map(([B,K])=>s.jsxs("div",{className:"recap-tool-row",children:[s.jsx("span",{className:"name",children:B}),s.jsx("span",{className:"track",children:s.jsx("span",{className:"fill",style:{width:`${K.count/he*100}%`}})}),s.jsxs("span",{className:"figs",children:[K.count,K.errors>0?s.jsxs(s.Fragment,{children:[" ","· ",s.jsxs("span",{className:"e",children:[K.errors," err"]})]}):null]})]},B))}),s.jsx(Z0,{pricing:j,onPricingChange:m,copy:u})]})]})}function Q0(u,o,d,f){const v=o.trim().toLowerCase();return[...v?u.filter(x=>x.title.toLowerCase().includes(v)):u].sort((x,H)=>{switch(d){case"cost":return tl(H.tokenUsage,void 0,f)-tl(x.tokenUsage,void 0,f);case"duration":return H.durationMs-x.durationMs;case"tools":return H.skills.length-x.skills.length;case"errors":return(H.status==="failed"?1:0)-(x.status==="failed"?1:0);default:return Date.parse(H.startedAt)-Date.parse(x.startedAt)}})}function Z0({pricing:u,onPricingChange:o,copy:d}){const f=["Anthropic","OpenAI","Other"];function v(x,H,j){const m=parseFloat(j);if(isNaN(m)||m<0)return;const E=u.map(T=>T.id===x?{...T,[H]:m}:T);o(E)}const C=D.useMemo(()=>{const x={};for(const H of u)x[H.provider]||(x[H.provider]=[]),x[H.provider].push(H);return x},[u]);return s.jsxs("details",{className:"pricing-editor",children:[s.jsxs("summary",{children:[s.jsx("span",{className:"caret",children:"▶"}),d.pricingHeading]}),s.jsxs("div",{className:"pricing-editor-body",children:[s.jsx("p",{className:"pricing-note",children:d.pricingNote}),s.jsxs("div",{className:"pricing-headers",children:[s.jsx("span",{children:"Model"}),s.jsx("span",{children:d.pricingInputRate}),s.jsx("span",{children:d.pricingOutputRate})]}),f.map(x=>{const H=C[x]??[];return H.length===0?null:s.jsxs("div",{children:[s.jsx("div",{className:"pricing-provider-group",children:x}),H.map(j=>s.jsxs("div",{className:"pricing-row",children:[s.jsx("span",{className:"pricing-row-label",children:j.label}),s.jsx("input",{type:"number",step:"0.1",min:"0",value:j.inRate,onChange:m=>v(j.id,"inRate",m.target.value),"aria-label":`${j.label} input rate`}),s.jsx("input",{type:"number",step:"0.1",min:"0",value:j.outRate,onChange:m=>v(j.id,"outRate",m.target.value),"aria-label":`${j.label} output rate`})]},j.id))]},x)})]})]})}const $0={};op.createRoot(document.getElementById("root")).render(s.jsx(lp.StrictMode,{children:s.jsx(h0,{})}));
|